From c71b71de2e5705a66207a16142ef4e4415967011 Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Thu, 7 Nov 2024 17:15:51 +0100 Subject: [PATCH 01/13] Fix ESLint in VS Code The eslint.validate setting recently became exclusive, so we need to add everything we want checked to the list --- .vscode/settings.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 55ce0ba0b..2767675d4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,6 +23,10 @@ "sort-imports.on-save": true, "editor.detectIndentation": false, "eslint.validate": [ + "javascript", + "typescript", + "html", + "json", "svelte" ], "yaml.schemas": { From f69ef5292d918e2450da161fabd6be19b61b9976 Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Fri, 8 Nov 2024 14:51:24 +0100 Subject: [PATCH 02/13] Move admin user filters to GQL (#1219) * Make getSearchParam work better for union string types * Move admin user filters to GQL * sort draft projects by created date and name --------- Co-authored-by: Kevin Hahn --- .../lib/components/Users/UserFilter.svelte | 16 ---- frontend/src/lib/util/query-params.ts | 4 +- .../routes/(authenticated)/admin/+page.svelte | 7 +- .../src/routes/(authenticated)/admin/+page.ts | 75 +++++++++++++------ 4 files changed, 59 insertions(+), 43 deletions(-) diff --git a/frontend/src/lib/components/Users/UserFilter.svelte b/frontend/src/lib/components/Users/UserFilter.svelte index 1fc55a834..a013482a2 100644 --- a/frontend/src/lib/components/Users/UserFilter.svelte +++ b/frontend/src/lib/components/Users/UserFilter.svelte @@ -1,6 +1,4 @@ - +{#key options} + +{/key}
diff --git a/frontend/viewer/src/lib/entry-editor/field-editors/SingleOptionEditor.svelte b/frontend/viewer/src/lib/entry-editor/field-editors/SingleOptionEditor.svelte index 0f44e9576..2cbcc4e25 100644 --- a/frontend/viewer/src/lib/entry-editor/field-editors/SingleOptionEditor.svelte +++ b/frontend/viewer/src/lib/entry-editor/field-editors/SingleOptionEditor.svelte @@ -94,7 +94,9 @@ $: empty = !value; - +{#key options} + +{/key}
From 9a099a3b91195fac6a2bb984d1daf44ebaec7781 Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Wed, 13 Nov 2024 10:59:21 +0100 Subject: [PATCH 13/13] Document mdi icon version/availability checking --- frontend/viewer/tailwind.config.cjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/viewer/tailwind.config.cjs b/frontend/viewer/tailwind.config.cjs index 7691179c6..2e0d53eeb 100644 --- a/frontend/viewer/tailwind.config.cjs +++ b/frontend/viewer/tailwind.config.cjs @@ -11,6 +11,9 @@ module.exports = { }, plugins: [ iconsPlugin({ + // Root source: https://github.com/Templarian/MaterialDesign + // Our source (that pulls from ☝️): https://www.npmjs.com/package/@iconify-json/mdi + // Search showing aliases and version (of root source) icons were introduced: https://pictogrammers.com/library/mdi/ collections: getIconCollections(['mdi']), }), svelteUx({ colorSpace: 'oklch' }),