Skip to content

Commit

Permalink
optimize ui on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
solaoi committed Apr 16, 2022
1 parent 5d982d1 commit e684b7f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/src/rete/components/ApiComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ApiComponent extends Rete.Component {
const queryInput = new Rete.Input("query", "Query (JSON)", this.jsonSocket);
const dummyJsonInput = new Rete.Input(
"json",
"Output (DummyJSON)",
"Expected (DummyJSON)",
this.dummyJsonSocket
);
const urlInput = new Rete.Input("url", "URL", this.urlSocket);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/rete/components/MySQLComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class MySQLComponent extends Rete.Component {
builder(node) {
const dummyJsonInput = new Rete.Input(
"json",
"Output (DummyJSON)",
"Expected (DummyJSON)",
this.dummyJsonSocket
);
const out = new Rete.Output("json", "JSON", this.jsonSocket);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/rete/components/PostgreSQLComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class PostgreSQLComponent extends Rete.Component {
builder(node) {
const dummyJsonInput = new Rete.Input(
"json",
"Output (DummyJSON)",
"Expected (DummyJSON)",
this.dummyJsonSocket
);
const out = new Rete.Output("json", "JSON", this.jsonSocket);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/rete/components/RequestComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class RequestComponent extends Rete.Component {
builder(node) {
const dummyJsonInput = new Rete.Input(
"json",
"Output (DummyJSON)",
"Expected (DummyJSON)",
this.dummyJsonSocket
);
const out = new Rete.Output("json", "JSON", this.jsonSocket);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/rete/components/SQLiteComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SQLiteComponent extends Rete.Component {
builder(node) {
const dummyJsonInput = new Rete.Input(
"json",
"Output (DummyJSON)",
"Expected (DummyJSON)",
this.dummyJsonSocket
);
const out = new Rete.Output("json", "JSON", this.jsonSocket);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/rete/components/input/DummyJsonComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class DummyJsonComponent extends Rete.Component {
}

builder(node) {
const out = new Rete.Output("json", "JSON", this.socket);
const out = new Rete.Output("json", "DummyJSON", this.socket);

return node
.addControl(new JsonControl(this.editor, "json", node))
Expand Down
2 changes: 1 addition & 1 deletion ui/src/rete/controls/UrlWithPathParamControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class UrlWithPathParamControl extends Rete.Control {
this.key = key;
this.component = UrlWithPathParamControl.component;

const initial = node.data[key] || `https://example.com`;
const initial = node.data[key] || `https://example.com/:id`;

node.data[key] = initial;
node.data.output = initial;
Expand Down

0 comments on commit e684b7f

Please sign in to comment.