Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Fixed custom-elements
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Oct 1, 2024
1 parent 02326fd commit 8a0da58
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 113 deletions.
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
112 changes: 56 additions & 56 deletions ui/custom-elements.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8a0da58

Please sign in to comment.