@matdata/yasgui 5.11.0 → 5.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ts/src/PersistentConfig.d.ts +4 -0
- package/build/ts/src/PersistentConfig.js +12 -0
- package/build/ts/src/PersistentConfig.js.map +1 -1
- package/build/ts/src/Tab.js +2 -1
- package/build/ts/src/Tab.js.map +1 -1
- package/build/ts/src/TabSettingsModal.js +114 -0
- package/build/ts/src/TabSettingsModal.js.map +1 -1
- package/build/ts/src/ThemeManager.d.ts +3 -0
- package/build/ts/src/ThemeManager.js +11 -1
- package/build/ts/src/ThemeManager.js.map +1 -1
- package/build/ts/src/index.d.ts +1 -0
- package/build/ts/src/index.js +2 -0
- package/build/ts/src/index.js.map +1 -1
- package/build/ts/src/queryManagement/QueryBrowser.js +27 -6
- package/build/ts/src/queryManagement/QueryBrowser.js.map +1 -1
- package/build/ts/src/queryManagement/SaveManagedQueryModal.js +3 -3
- package/build/ts/src/queryManagement/SaveManagedQueryModal.js.map +1 -1
- package/build/ts/src/queryManagement/backends/BitbucketProviderClient.js +2 -2
- package/build/ts/src/queryManagement/backends/BitbucketProviderClient.js.map +1 -1
- package/build/ts/src/queryManagement/backends/GiteaProviderClient.js +2 -2
- package/build/ts/src/queryManagement/backends/GiteaProviderClient.js.map +1 -1
- package/build/ts/src/queryManagement/backends/GithubProviderClient.js +2 -2
- package/build/ts/src/queryManagement/backends/GithubProviderClient.js.map +1 -1
- package/build/ts/src/queryManagement/backends/GitlabProviderClient.js +2 -2
- package/build/ts/src/queryManagement/backends/GitlabProviderClient.js.map +1 -1
- package/build/ts/src/queryManagement/backends/InMemoryWorkspaceBackend.js +4 -4
- package/build/ts/src/queryManagement/backends/InMemoryWorkspaceBackend.js.map +1 -1
- package/build/ts/src/queryManagement/normalizeQueryFilename.js +2 -2
- package/build/ts/src/queryManagement/normalizeQueryFilename.js.map +1 -1
- package/build/ts/src/version.d.ts +1 -1
- package/build/ts/src/version.js +1 -1
- package/build/yasgui.min.css +1 -1
- package/build/yasgui.min.css.map +3 -3
- package/build/yasgui.min.js +162 -162
- package/build/yasgui.min.js.map +3 -3
- package/package.json +1 -1
- package/src/PersistentConfig.ts +15 -0
- package/src/Tab.ts +3 -2
- package/src/TabSettingsModal.scss +12 -0
- package/src/TabSettingsModal.ts +144 -0
- package/src/ThemeManager.ts +18 -1
- package/src/github-dark-theme.scss +192 -0
- package/src/index.ts +4 -0
- package/src/queryManagement/QueryBrowser.ts +34 -7
- package/src/queryManagement/SaveManagedQueryModal.ts +3 -3
- package/src/queryManagement/backends/BitbucketProviderClient.ts +2 -2
- package/src/queryManagement/backends/GiteaProviderClient.ts +2 -2
- package/src/queryManagement/backends/GithubProviderClient.ts +2 -2
- package/src/queryManagement/backends/GitlabProviderClient.ts +2 -2
- package/src/queryManagement/backends/InMemoryWorkspaceBackend.ts +4 -4
- package/src/queryManagement/normalizeQueryFilename.ts +4 -2
- package/src/themes.scss +43 -43
- package/src/version.ts +1 -1
|
@@ -65,7 +65,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
|
|
|
65
65
|
queries.push({
|
|
66
66
|
kind: "query",
|
|
67
67
|
id: queryId,
|
|
68
|
-
label: basename(queryId).replace(/\.sparql$/i, ""),
|
|
68
|
+
label: basename(queryId).replace(/\.(rq|sparql)$/i, ""),
|
|
69
69
|
parentId: undefined,
|
|
70
70
|
});
|
|
71
71
|
continue;
|
|
@@ -75,7 +75,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
|
|
|
75
75
|
queries.push({
|
|
76
76
|
kind: "query",
|
|
77
77
|
id: queryId,
|
|
78
|
-
label: basename(queryId).replace(/\.sparql$/i, ""),
|
|
78
|
+
label: basename(queryId).replace(/\.(rq|sparql)$/i, ""),
|
|
79
79
|
parentId: folder,
|
|
80
80
|
});
|
|
81
81
|
continue;
|
|
@@ -101,7 +101,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
|
|
|
101
101
|
if (!q) return [];
|
|
102
102
|
const hits: FolderEntry[] = [];
|
|
103
103
|
for (const queryId of this.versionsByQueryId.keys()) {
|
|
104
|
-
const label = basename(queryId).replace(/\.sparql$/i, "");
|
|
104
|
+
const label = basename(queryId).replace(/\.(rq|sparql)$/i, "");
|
|
105
105
|
if (label.toLowerCase().includes(q)) {
|
|
106
106
|
hits.push({ kind: "query", id: queryId, label, parentId: dirname(queryId) || undefined });
|
|
107
107
|
}
|
|
@@ -159,7 +159,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
|
|
|
159
159
|
const versions = this.versionsByQueryId.get(queryId);
|
|
160
160
|
if (!versions || versions.length === 0) throw new WorkspaceBackendError("NOT_FOUND", "Query not found");
|
|
161
161
|
|
|
162
|
-
const newId = dirname(queryId) ? `${dirname(queryId)}/${trimmed}.
|
|
162
|
+
const newId = dirname(queryId) ? `${dirname(queryId)}/${trimmed}.rq` : `${trimmed}.rq`;
|
|
163
163
|
if (newId === queryId) return;
|
|
164
164
|
if (this.versionsByQueryId.has(newId))
|
|
165
165
|
throw new WorkspaceBackendError("CONFLICT", "A query with this name already exists");
|
|
@@ -3,6 +3,8 @@ export function normalizeQueryFilename(rawName: string): string {
|
|
|
3
3
|
if (!name) throw new Error("Filename is required");
|
|
4
4
|
|
|
5
5
|
const lower = name.toLowerCase();
|
|
6
|
-
|
|
7
|
-
return
|
|
6
|
+
// Accept both .rq and .sparql extensions for backwards compatibility
|
|
7
|
+
if (lower.endsWith(".rq") || lower.endsWith(".sparql")) return name;
|
|
8
|
+
// Default to .rq for new files
|
|
9
|
+
return `${name}.rq`;
|
|
8
10
|
}
|
package/src/themes.scss
CHANGED
|
@@ -52,49 +52,49 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
[data-theme="dark"] {
|
|
55
|
-
// Dark theme colors
|
|
56
|
-
--yasgui-bg-primary: #
|
|
57
|
-
--yasgui-bg-secondary: #
|
|
58
|
-
--yasgui-bg-tertiary: #
|
|
59
|
-
--yasgui-bg-quaternary: #
|
|
60
|
-
--yasgui-text-primary: #
|
|
61
|
-
--yasgui-text-secondary: #
|
|
62
|
-
--yasgui-text-muted: #
|
|
63
|
-
--yasgui-border-color: #
|
|
64
|
-
--yasgui-border-color-secondary: rgba(
|
|
65
|
-
--yasgui-border-color-light: #
|
|
66
|
-
--yasgui-link-color: #
|
|
67
|
-
--yasgui-link-hover: #
|
|
68
|
-
--yasgui-accent-color: #
|
|
69
|
-
--yasgui-button-text: #
|
|
70
|
-
--yasgui-button-hover: #
|
|
71
|
-
--yasgui-chip-bg: #
|
|
72
|
-
--yasgui-chip-text: #
|
|
73
|
-
--yasgui-tab-bg: #
|
|
74
|
-
--yasgui-tab-bg-active: #
|
|
75
|
-
--yasgui-tab-border: #
|
|
76
|
-
--yasgui-tab-managed: #
|
|
77
|
-
--yasgui-input-border:
|
|
78
|
-
--yasgui-input-focus: #
|
|
79
|
-
--yasgui-label-color:
|
|
80
|
-
--yasgui-tooltip-bg:
|
|
81
|
-
--yasgui-tooltip-text: #
|
|
82
|
-
--yasgui-error-color: #
|
|
83
|
-
--yasgui-notification-bg: #
|
|
84
|
-
--yasgui-notification-text: #
|
|
85
|
-
--yasgui-help-bg: #
|
|
86
|
-
--yasgui-help-text: #
|
|
87
|
-
--yasgui-fallback-bg: #
|
|
88
|
-
--yasgui-fallback-border: #
|
|
89
|
-
--yasgui-resize-handle: #
|
|
90
|
-
--yasgui-nav-bg: #
|
|
91
|
-
--yasgui-match-highlight-bg: #
|
|
92
|
-
--yasgui-endpoint-button-bg: #
|
|
93
|
-
--yasgui-endpoint-button-border: #
|
|
94
|
-
--yasgui-endpoint-button-text: #
|
|
95
|
-
--yasgui-endpoint-button-hover-bg: #
|
|
96
|
-
--yasgui-endpoint-button-hover-border: #
|
|
97
|
-
--yasgui-endpoint-button-focus: #
|
|
55
|
+
// Dark theme colors - GitHub Dark Default inspired
|
|
56
|
+
--yasgui-bg-primary: #0d1117;
|
|
57
|
+
--yasgui-bg-secondary: #161b22;
|
|
58
|
+
--yasgui-bg-tertiary: #21262d;
|
|
59
|
+
--yasgui-bg-quaternary: #30363d;
|
|
60
|
+
--yasgui-text-primary: #c9d1d9;
|
|
61
|
+
--yasgui-text-secondary: #b1bac4;
|
|
62
|
+
--yasgui-text-muted: #8b949e;
|
|
63
|
+
--yasgui-border-color: #30363d;
|
|
64
|
+
--yasgui-border-color-secondary: rgba(240, 246, 252, 0.1);
|
|
65
|
+
--yasgui-border-color-light: #30363d;
|
|
66
|
+
--yasgui-link-color: #58a6ff;
|
|
67
|
+
--yasgui-link-hover: #79c0ff;
|
|
68
|
+
--yasgui-accent-color: #58a6ff;
|
|
69
|
+
--yasgui-button-text: #c9d1d9;
|
|
70
|
+
--yasgui-button-hover: #f0f6fc;
|
|
71
|
+
--yasgui-chip-bg: #21262d;
|
|
72
|
+
--yasgui-chip-text: #c9d1d9;
|
|
73
|
+
--yasgui-tab-bg: #0d1117;
|
|
74
|
+
--yasgui-tab-bg-active: #161b22;
|
|
75
|
+
--yasgui-tab-border: #30363d;
|
|
76
|
+
--yasgui-tab-managed: #1c2d41;
|
|
77
|
+
--yasgui-input-border: #30363d;
|
|
78
|
+
--yasgui-input-focus: #58a6ff;
|
|
79
|
+
--yasgui-label-color: #8b949e;
|
|
80
|
+
--yasgui-tooltip-bg: #161b22;
|
|
81
|
+
--yasgui-tooltip-text: #c9d1d9;
|
|
82
|
+
--yasgui-error-color: #f85149;
|
|
83
|
+
--yasgui-notification-bg: #21262d;
|
|
84
|
+
--yasgui-notification-text: #8b949e;
|
|
85
|
+
--yasgui-help-bg: #1c2d41;
|
|
86
|
+
--yasgui-help-text: #58a6ff;
|
|
87
|
+
--yasgui-fallback-bg: #161b22;
|
|
88
|
+
--yasgui-fallback-border: #30363d;
|
|
89
|
+
--yasgui-resize-handle: #30363d;
|
|
90
|
+
--yasgui-nav-bg: #161b22;
|
|
91
|
+
--yasgui-match-highlight-bg: #1f6feb;
|
|
92
|
+
--yasgui-endpoint-button-bg: #238636;
|
|
93
|
+
--yasgui-endpoint-button-border: #238636;
|
|
94
|
+
--yasgui-endpoint-button-text: #ffffff;
|
|
95
|
+
--yasgui-endpoint-button-hover-bg: #2ea043;
|
|
96
|
+
--yasgui-endpoint-button-hover-border: #2ea043;
|
|
97
|
+
--yasgui-endpoint-button-focus: #58a6ff;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// Apply theme colors to Yasgui components
|
package/src/version.ts
CHANGED