mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: implement plugin management UI
This commit is contained in:
1 parent
88d7bc5525
commit
3ed5775ed5
52 files changed
+20072
-41
No files matched your search
@@ -508,6 +508,7 @@ async function initializeCompleteDatabase(): Promise<void> {
|
||||
installed_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
auto_update INTEGER NOT NULL DEFAULT 0,
|
||||
pinned_version TEXT,
|
||||
manifest_json TEXT NOT NULL
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_plugins_registry_id ON plugins (registry_id);
|
||||
@@ -1605,6 +1606,7 @@ const migrateSchema = () => {
|
||||
// Plugin runtime: lastError reports why a plugin is blocked or failed, and
|
||||
// grants record whether a capability came from an admin or from bundling.
|
||||
addColumnIfNotExists("plugins", "last_error", "TEXT");
|
||||
addColumnIfNotExists("plugins", "pinned_version", "TEXT");
|
||||
addColumnIfNotExists(
|
||||
"plugin_permission_grants",
|
||||
"source",
|
||||
|
||||
@@ -1005,6 +1005,8 @@ export const plugins = mysqlTable(
|
||||
autoUpdate: boolean("auto_update")
|
||||
.notNull()
|
||||
.default(false),
|
||||
/** Version an admin pinned. Never auto-updated while set. */
|
||||
pinnedVersion: text("pinned_version"),
|
||||
manifestJson: text("manifest_json").notNull(),
|
||||
},
|
||||
(table) => [index("idx_plugins_registry_id").on(table.registryId)],
|
||||
|
||||
@@ -1005,6 +1005,8 @@ export const plugins = pgTable(
|
||||
autoUpdate: boolean("auto_update")
|
||||
.notNull()
|
||||
.default(false),
|
||||
/** Version an admin pinned. Never auto-updated while set. */
|
||||
pinnedVersion: text("pinned_version"),
|
||||
manifestJson: text("manifest_json").notNull(),
|
||||
},
|
||||
(table) => [index("idx_plugins_registry_id").on(table.registryId)],
|
||||
|
||||
@@ -1003,6 +1003,8 @@ export const plugins = sqliteTable(
|
||||
autoUpdate: integer("auto_update", { mode: "boolean" })
|
||||
.notNull()
|
||||
.default(false),
|
||||
/** Version an admin pinned. Never auto-updated while set. */
|
||||
pinnedVersion: text("pinned_version"),
|
||||
manifestJson: text("manifest_json").notNull(),
|
||||
},
|
||||
(table) => [index("idx_plugins_registry_id").on(table.registryId)],
|
||||
|
||||
Reference in new issue
Block a user