From 8a0da5847d60e008360696c3ef5613fab5112292 Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Tue, 1 Oct 2024 13:42:50 +0200 Subject: [PATCH] Fixed custom-elements --- docs/package.json | 3 +- .../elements/custom-elements.json | 112 +++++++++--------- ui/custom-elements.json | 112 +++++++++--------- 3 files changed, 114 insertions(+), 113 deletions(-) rename docs/{ => public}/elements/custom-elements.json (100%) diff --git a/docs/package.json b/docs/package.json index f69e5778..7b5c1dd1 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,7 +7,8 @@ "start": "pnpm dev", "dev": "pnpm setup:docs && vitepress dev --open", "build": "pnpm setup:docs && vitepress build", - "setup:docs": "pnpm -F @darksoil-studio/notifications analyze && cp ../ui/custom-elements.json elements && pnpm setup:cargo", + "setup:docs": "pnpm setup:custom-elements && pnpm setup:cargo", + "setup:custom-elements": "pnpm -F @darksoil-studio/notifications analyze && mkdir -p public/elements && cp ../ui/custom-elements.json ./public/elements/custom-elements.json", "setup:cargo": "cargo doc --release --no-deps --target-dir public/backend", "preview": "vitepress preview" }, diff --git a/docs/elements/custom-elements.json b/docs/public/elements/custom-elements.json similarity index 100% rename from docs/elements/custom-elements.json rename to docs/public/elements/custom-elements.json index 39fd72e3..0236c221 100644 --- a/docs/elements/custom-elements.json +++ b/docs/public/elements/custom-elements.json @@ -2,62 +2,6 @@ "schemaVersion": "1.0.0", "readme": "", "modules": [ - { - "kind": "javascript-module", - "path": "locales/locales.js", - "declarations": [ - { - "kind": "variable", - "name": "sourceLocale", - "default": "`en`", - "description": "The locale code that templates in this source code are written in." - }, - { - "kind": "variable", - "name": "targetLocales", - "type": { - "text": "array" - }, - "default": "[\n ,\n]", - "description": "The other locale codes that this application is localized into. Sorted\nlexicographically." - }, - { - "kind": "variable", - "name": "allLocales", - "type": { - "text": "array" - }, - "default": "[\n `en`,\n]", - "description": "All valid project locale codes. Sorted lexicographically." - } - ], - "exports": [ - { - "kind": "js", - "name": "sourceLocale", - "declaration": { - "name": "sourceLocale", - "module": "locales/locales.js" - } - }, - { - "kind": "js", - "name": "targetLocales", - "declaration": { - "name": "targetLocales", - "module": "locales/locales.js" - } - }, - { - "kind": "js", - "name": "allLocales", - "declaration": { - "name": "allLocales", - "module": "locales/locales.js" - } - } - ] - }, { "kind": "javascript-module", "path": "src/context.ts", @@ -567,6 +511,62 @@ "declarations": [], "exports": [] }, + { + "kind": "javascript-module", + "path": "locales/locales.js", + "declarations": [ + { + "kind": "variable", + "name": "sourceLocale", + "default": "`en`", + "description": "The locale code that templates in this source code are written in." + }, + { + "kind": "variable", + "name": "targetLocales", + "type": { + "text": "array" + }, + "default": "[\n ,\n]", + "description": "The other locale codes that this application is localized into. Sorted\nlexicographically." + }, + { + "kind": "variable", + "name": "allLocales", + "type": { + "text": "array" + }, + "default": "[\n `en`,\n]", + "description": "All valid project locale codes. Sorted lexicographically." + } + ], + "exports": [ + { + "kind": "js", + "name": "sourceLocale", + "declaration": { + "name": "sourceLocale", + "module": "locales/locales.js" + } + }, + { + "kind": "js", + "name": "targetLocales", + "declaration": { + "name": "targetLocales", + "module": "locales/locales.js" + } + }, + { + "kind": "js", + "name": "allLocales", + "declaration": { + "name": "allLocales", + "module": "locales/locales.js" + } + } + ] + }, { "kind": "javascript-module", "path": "src/elements/my-notifications-icon-button.ts", diff --git a/ui/custom-elements.json b/ui/custom-elements.json index 39fd72e3..0236c221 100644 --- a/ui/custom-elements.json +++ b/ui/custom-elements.json @@ -2,62 +2,6 @@ "schemaVersion": "1.0.0", "readme": "", "modules": [ - { - "kind": "javascript-module", - "path": "locales/locales.js", - "declarations": [ - { - "kind": "variable", - "name": "sourceLocale", - "default": "`en`", - "description": "The locale code that templates in this source code are written in." - }, - { - "kind": "variable", - "name": "targetLocales", - "type": { - "text": "array" - }, - "default": "[\n ,\n]", - "description": "The other locale codes that this application is localized into. Sorted\nlexicographically." - }, - { - "kind": "variable", - "name": "allLocales", - "type": { - "text": "array" - }, - "default": "[\n `en`,\n]", - "description": "All valid project locale codes. Sorted lexicographically." - } - ], - "exports": [ - { - "kind": "js", - "name": "sourceLocale", - "declaration": { - "name": "sourceLocale", - "module": "locales/locales.js" - } - }, - { - "kind": "js", - "name": "targetLocales", - "declaration": { - "name": "targetLocales", - "module": "locales/locales.js" - } - }, - { - "kind": "js", - "name": "allLocales", - "declaration": { - "name": "allLocales", - "module": "locales/locales.js" - } - } - ] - }, { "kind": "javascript-module", "path": "src/context.ts", @@ -567,6 +511,62 @@ "declarations": [], "exports": [] }, + { + "kind": "javascript-module", + "path": "locales/locales.js", + "declarations": [ + { + "kind": "variable", + "name": "sourceLocale", + "default": "`en`", + "description": "The locale code that templates in this source code are written in." + }, + { + "kind": "variable", + "name": "targetLocales", + "type": { + "text": "array" + }, + "default": "[\n ,\n]", + "description": "The other locale codes that this application is localized into. Sorted\nlexicographically." + }, + { + "kind": "variable", + "name": "allLocales", + "type": { + "text": "array" + }, + "default": "[\n `en`,\n]", + "description": "All valid project locale codes. Sorted lexicographically." + } + ], + "exports": [ + { + "kind": "js", + "name": "sourceLocale", + "declaration": { + "name": "sourceLocale", + "module": "locales/locales.js" + } + }, + { + "kind": "js", + "name": "targetLocales", + "declaration": { + "name": "targetLocales", + "module": "locales/locales.js" + } + }, + { + "kind": "js", + "name": "allLocales", + "declaration": { + "name": "allLocales", + "module": "locales/locales.js" + } + } + ] + }, { "kind": "javascript-module", "path": "src/elements/my-notifications-icon-button.ts",