Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]import js error #72

Merged
merged 3 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/connection_color.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { app } from "../../../scripts/app.js";
import { app } from "../../scripts/app.js";

app.registerExtension({
name: "bizyair.custom.connectionColorByType",
Expand Down
2 changes: 1 addition & 1 deletion js/image_caption.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { app } from "../../scripts/app.js";
import { ComfyWidgets } from "../../../scripts/widgets.js";
import { ComfyWidgets } from "../../scripts/widgets.js";

app.registerExtension({
name: "bizyair.image.to.caption",
Expand Down
5 changes: 2 additions & 3 deletions js/set_api_key.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { app } from "../../scripts/app.js";
import { api } from "../../../../scripts/api.js";
import { api } from "../../scripts/api.js";


app.registerExtension({
Expand Down Expand Up @@ -32,8 +32,7 @@ app.registerExtension({
BizyAir_SetAPIKey.style.borderRadius = "12px";

// 动态获取当前页面的协议、地址和端口
const currentUrl = window.location.protocol + "//" + window.location.host;
const apiKeyUrl = currentUrl + "/bizyair/set-api-key";
const apiKeyUrl = `${location.href}/bizyair/set-api-key`;

// 设置按钮点击事件
BizyAir_SetAPIKey.onclick = () => {
Expand Down
6 changes: 3 additions & 3 deletions js/showcases.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { api } from "../../../../scripts/api.js";
import { app } from "../../../scripts/app.js";
import { $el } from "../../../scripts/ui.js";
import { api } from "../../scripts/api.js";
import { app } from "../../scripts/app.js";
import { $el } from "../../scripts/ui.js";

const style = `
#comfy-floating-button {
Expand Down
2 changes: 1 addition & 1 deletion js/siliconcloud_llm_api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { app } from "../../scripts/app.js";
import { ComfyWidgets } from "../../../scripts/widgets.js";
import { ComfyWidgets } from "../../scripts/widgets.js";

app.registerExtension({
name: "bizyair.siliconcloud.llm.api",
Expand Down
Loading