Skip to content

Commit

Permalink
Revamp themes loading: now themes are separate
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Aug 11, 2024
1 parent e39b6ad commit a722e31
Show file tree
Hide file tree
Showing 83 changed files with 216 additions and 206 deletions.
13 changes: 0 additions & 13 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
16 changes: 16 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,21 @@ module.exports = {
parser: '@typescript-eslint/parser'
}
}
],
rules: {
'@typescript-eslint/ban-ts-comment': 'off'
},
ignorePatterns: [
'.DS_Store',
'node_modules',
'/build',
'/.svelte-kit',
'/package',
'.env',
'.env.*',
'!.env.example',
'pnpm-lock.yaml',
'package-lock.json',
'yarn.lock'
]
};
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Upcoming...

- **BC Break**: Themes are now separate from the lib, and the default Carbon theme was moved to a `themes/svelte/carbon` subdirectory for now. The goal is to be able to use other kind of themes in the future.
- Add `Email` field.
- Add a setup to unit-test single components, especially fields, and test a lot of them.
- Fix a date parsing bug in `DateField.svelte` by using the luxon lib.
- Fix wrongly configured depth display in `KeyValueObjectField.svelte`.
- Fix `NumberField.svelte`'s inconsistent handling of numbers & enhance visual.
- Replace local packager to `pnpm`.

# v0.16.3

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ which is exactly what we expect when the current web page actually changes!
-->
{#key $page}
<svelte:component
this="{dashboard.adminConfig.theme.dashboard}"
this="{dashboard.theme.dashboard}"
{dashboard}
{crud}
{operation}
Expand Down Expand Up @@ -253,7 +253,7 @@ Here is the \*_shorter version_ with no comments, if you want to copy-paste for

{#key $page}
<svelte:component
this="{dashboard.adminConfig.theme.dashboard}"
this="{dashboard.theme.dashboard}"
{dashboard}
{crud}
{operation}
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"create:field": "node bin/create_field.mjs",
"dev": "vite dev",
"format": "prettier --plugin=prettier-plugin-svelte --write .",
"lint": "prettier --plugin=prettier-plugin-svelte . --check . && eslint src",
"lint": "prettier --plugin=prettier-plugin-svelte . --check . && eslint -c .eslintrc.cjs src",
"package": "svelte-kit sync && svelte-package && publint",
"prepublishOnly": "pnpm run package",
"prettier": "prettier",
Expand All @@ -23,13 +23,13 @@
},
"exports": {
".": "./dist/index.js",
"./themes": "./dist/themes/index.js"
"./themes/svelte": "./dist/themes/svelte/index.js"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"directories": {
".": "./dist/",
"/themes/": "./dist/themes"
"/themes/svelte/": "./dist/themes/svelte"
},
"files": [
"./dist/*",
Expand Down Expand Up @@ -64,8 +64,8 @@
"@typescript-eslint/parser": "^8.0.1",
"@vitest/coverage-v8": "^2.0.5",
"axios": "^1.7.3",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-svelte": "^2.43.0",
"intl-messageformat": "^10.5.14",
"jsdom": "^24.1.1",
Expand Down
Loading

0 comments on commit a722e31

Please sign in to comment.