-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add endpoints for bizyair server address (#224)
* init * add front dlg * add example * use toast instead of dialog * fix path * refine --------- Co-authored-by: Your Name <you@example.com>
- Loading branch information
1 parent
d9165dc
commit b5997c4
Showing
8 changed files
with
127 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"last_node_id": 1, | ||
"last_link_id": 0, | ||
"nodes": [ | ||
{ | ||
"id": 1, | ||
"type": "BizyAirToggleServerEndpoint", | ||
"pos": { | ||
"0": 714, | ||
"1": 197 | ||
}, | ||
"size": { | ||
"0": 403.1999816894531, | ||
"1": 58 | ||
}, | ||
"flags": {}, | ||
"order": 0, | ||
"mode": 0, | ||
"inputs": [], | ||
"outputs": [], | ||
"properties": { | ||
"Node name for S&R": "BizyAirToggleServerEndpoint" | ||
}, | ||
"widgets_values": [ | ||
"https://bizyair-api-st.siliconflow.cn/x/v1" | ||
] | ||
} | ||
], | ||
"links": [], | ||
"groups": [], | ||
"config": {}, | ||
"extra": { | ||
"ds": { | ||
"scale": 1, | ||
"offset": [ | ||
0, | ||
0 | ||
] | ||
} | ||
}, | ||
"version": 0.4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { api } from "../../../scripts/api.js"; | ||
import { app } from "../../scripts/app.js"; | ||
import { toast } from './subassembly/toast.js'; | ||
|
||
app.registerExtension({ | ||
name: "bizyair.server.endpoint.switch.dlg", | ||
async setup() { | ||
function messageHandler(event) { | ||
toast({ | ||
content: event.detail.message, | ||
type: 'succeed', | ||
center: true | ||
}) | ||
} | ||
api.addEventListener("bizyair.server.endpoint.switch", messageHandler); | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters