[V1] Flatpak KCEF Fix & Extension Management

This commit is contained in:
Youwes09
2026-02-22 15:58:29 -06:00
parent d834e10fd8
commit 7ed7ec0ea3
6 changed files with 448 additions and 38 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ const DEFAULT_URL = "http://127.0.0.1:4567";
function getServerUrl(): string {
// Read from persisted Zustand store if available, fall back to default
try {
const raw = localStorage.getItem("moku-settings");
const raw = localStorage.getItem("moku-store");
if (raw) {
const parsed = JSON.parse(raw);
const url = parsed?.state?.settings?.serverUrl;
+19
View File
@@ -399,4 +399,23 @@ export const INSTALL_EXTERNAL_EXTENSION = `
}
}
}
`;
// ── Settings ──────────────────────────────────────────────────────────────────
export const GET_SETTINGS = `
query GetSettings {
settings {
extensionRepos
}
}
`;
export const SET_EXTENSION_REPOS = `
mutation SetExtensionRepos($repos: [String!]!) {
setSettings(input: { settings: { extensionRepos: $repos } }) {
settings {
extensionRepos
}
}
}
`;