Spaces:
Runtime error
Runtime error
| var __defProp = Object.defineProperty; | |
| var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | |
| import { d as defineComponent, a3 as useI18n, ad as ref, t as onMounted, o as openBlock, J as createBlock, P as withCtx, m as createBaseVNode, Z as toDisplayString, k as createVNode, j as unref, aK as script, bN as script$1, l as script$2, p as pushScopeId, q as popScopeId, bV as electronAPI, _ as _export_sfc } from "./index-QvfM__ze.js"; | |
| import { _ as _sfc_main$1 } from "./BaseViewTemplate-BhQMaVFP.js"; | |
| const _withScopeId = /* @__PURE__ */ __name((n) => (pushScopeId("data-v-dc169863"), n = n(), popScopeId(), n), "_withScopeId"); | |
| const _hoisted_1 = { class: "comfy-installer grow flex flex-col gap-4 text-neutral-300 max-w-110" }; | |
| const _hoisted_2 = { class: "text-2xl font-semibold text-neutral-100" }; | |
| const _hoisted_3 = { class: "m-1 text-neutral-300" }; | |
| const _hoisted_4 = { class: "ml-2" }; | |
| const _hoisted_5 = { class: "m-1 mb-4" }; | |
| const _hoisted_6 = { class: "m-0" }; | |
| const _hoisted_7 = { class: "m-1" }; | |
| const _hoisted_8 = { class: "font-mono" }; | |
| const _hoisted_9 = { class: "m-1" }; | |
| const _sfc_main = /* @__PURE__ */ defineComponent({ | |
| __name: "ManualConfigurationView", | |
| setup(__props) { | |
| const { t } = useI18n(); | |
| const electron = electronAPI(); | |
| const basePath = ref(null); | |
| const sep = ref("/"); | |
| const restartApp = /* @__PURE__ */ __name((message) => electron.restartApp(message), "restartApp"); | |
| onMounted(async () => { | |
| basePath.value = await electron.getBasePath(); | |
| if (basePath.value.indexOf("/") === -1) sep.value = "\\"; | |
| }); | |
| return (_ctx, _cache) => { | |
| return openBlock(), createBlock(_sfc_main$1, { dark: "" }, { | |
| default: withCtx(() => [ | |
| createBaseVNode("div", _hoisted_1, [ | |
| createBaseVNode("h2", _hoisted_2, toDisplayString(_ctx.$t("install.manualConfiguration.title")), 1), | |
| createBaseVNode("p", _hoisted_3, [ | |
| createVNode(unref(script), { | |
| icon: "pi pi-exclamation-triangle", | |
| severity: "warn", | |
| value: unref(t)("icon.exclamation-triangle") | |
| }, null, 8, ["value"]), | |
| createBaseVNode("strong", _hoisted_4, toDisplayString(_ctx.$t("install.gpuSelection.customComfyNeedsPython")), 1) | |
| ]), | |
| createBaseVNode("div", null, [ | |
| createBaseVNode("p", _hoisted_5, toDisplayString(_ctx.$t("install.manualConfiguration.requirements")) + ": ", 1), | |
| createBaseVNode("ul", _hoisted_6, [ | |
| createBaseVNode("li", null, toDisplayString(_ctx.$t("install.gpuSelection.customManualVenv")), 1), | |
| createBaseVNode("li", null, toDisplayString(_ctx.$t("install.gpuSelection.customInstallRequirements")), 1) | |
| ]) | |
| ]), | |
| createBaseVNode("p", _hoisted_7, toDisplayString(_ctx.$t("install.manualConfiguration.createVenv")) + ":", 1), | |
| createVNode(unref(script$1), { | |
| header: unref(t)("install.manualConfiguration.virtualEnvironmentPath") | |
| }, { | |
| default: withCtx(() => [ | |
| createBaseVNode("span", _hoisted_8, toDisplayString(`${basePath.value}${sep.value}.venv${sep.value}`), 1) | |
| ]), | |
| _: 1 | |
| }, 8, ["header"]), | |
| createBaseVNode("p", _hoisted_9, toDisplayString(_ctx.$t("install.manualConfiguration.restartWhenFinished")), 1), | |
| createVNode(unref(script$2), { | |
| class: "place-self-end", | |
| label: unref(t)("menuLabels.Restart"), | |
| severity: "warn", | |
| icon: "pi pi-refresh", | |
| onClick: _cache[0] || (_cache[0] = ($event) => restartApp("Manual configuration complete")) | |
| }, null, 8, ["label"]) | |
| ]) | |
| ]), | |
| _: 1 | |
| }); | |
| }; | |
| } | |
| }); | |
| const ManualConfigurationView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc169863"]]); | |
| export { | |
| ManualConfigurationView as default | |
| }; | |
| //# sourceMappingURL=ManualConfigurationView-enyqGo0M.js.map | |