Skip to content

Commit 4265a15

Browse files
committed
Refactoring...
1 parent aceaa19 commit 4265a15

15 files changed

Lines changed: 443 additions & 449 deletions

File tree

.github/workflows/deploy-deno.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121

2222
- name: Setup Runtime
2323
uses: denoland/setup-deno@v2

.github/workflows/deploy-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727

2828
- name: Setup Runtime
2929
uses: denoland/setup-deno@v2

.github/workflows/publish-jsr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919

2020
- name: Setup Runtime
2121
uses: denoland/setup-deno@v2

.oxlintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"eslint/max-statements": [ "warn", 50 ],
5555
"eslint/no-bitwise": "off",
5656
"eslint/no-console": "off",
57+
"no-empty-function": "off",
5758
"eslint/no-inline-comments": "off",
5859
"eslint/no-magic-numbers": "off",
5960
"eslint/no-negated-condition": "off",

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
},
1010
"oxc.enable": true,
1111
"typescript.tsdk": "node_modules/typescript/lib",
12-
"typescript.tsserver.experimental.enableProjectDiagnostics": false,
12+
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
1313
"[jsonc]": {
1414
"editor.defaultFormatter": "oxc.oxc-vscode"
1515
},
16+
"[svg]": {
17+
"editor.defaultFormatter": "jock.svg"
18+
},
1619
}

deno.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"name": "@kuchta/radixverse",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
4+
"repository": "kuchta/radixverse",
5+
"homepage": "https://kuchta.github.io/radixverse",
46
"exports": "./src/radixes.ts",
57
"nodeModulesDir": "auto",
68
"exclude": [ ".history" ],

deno.lock

Lines changed: 362 additions & 378 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "radixverse",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"license": "MIT",
55
"repository": "kuchta/radixverse",
66
"homepage": "https://kuchta.github.io/radixverse",
@@ -28,35 +28,35 @@
2828
"devDependencies": {
2929
"@eslint/css": "^1.1.0",
3030
"@eslint/js": "^10.0.1",
31-
"@rolldown/plugin-babel": "^0.2.2",
31+
"@rolldown/plugin-babel": "^0.2.3",
3232
"@stylistic/eslint-plugin": "^5.10.0",
33-
"@tailwindcss/vite": "^4.2.2",
33+
"@tailwindcss/vite": "4.2.2",
3434
"@types/node": "^25.6.0",
3535
"@types/react": "^19.2.14",
3636
"@types/react-dom": "^19.2.3",
3737
"@vitejs/plugin-react": "^6.0.1",
3838
"babel-plugin-react-compiler": "^1.0.0",
3939
"daisyui": "^5.5.19",
40-
"eslint": "^9.39.4",
40+
"eslint": "^10.2.1",
4141
"eslint-plugin-import": "^2.32.0",
4242
"eslint-plugin-react": "^7.37.5",
4343
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
4444
"eslint-plugin-react-hooks": "7.0.0",
45-
"globals": "^17.4.0",
46-
"oxfmt": "^0.44.0",
47-
"oxlint": "^1.59.0",
48-
"oxlint-tsgolint": "^0.20.0",
45+
"globals": "^17.5.0",
46+
"oxfmt": "^0.46.0",
47+
"oxlint": "^1.61.0",
48+
"oxlint-tsgolint": "^0.22.0",
4949
"react": "^19.2.5",
5050
"react-dom": "^19.2.5",
5151
"react-error-boundary": "^6.1.1",
5252
"react-icons": "^5.6.0",
53-
"react-router-dom": "^7.14.0",
53+
"react-router-dom": "^7.14.2",
5454
"react-textarea-autosize": "^8.5.9",
5555
"tailwind-csstree": "^0.3.1",
56-
"tailwindcss": "^4.2.2",
57-
"typescript": "6.0.2",
58-
"typescript-eslint": "^8.58.1",
59-
"vite": "^8.0.8",
56+
"tailwindcss": "^4.2.4",
57+
"typescript": "^6.0.3",
58+
"typescript-eslint": "^8.59.0",
59+
"vite": "^8.0.10",
6060
"vite-plugin-pwa": "^1.2.0",
6161
"zod": "^4.3.6"
6262
}

src/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import 'tailwindcss';
22

33
@plugin "daisyui" {
4-
themes: all;
4+
/* themes: all; */
55
}
66

77
/* @plugin "flyonui" {

src/app.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,19 @@ function useStore(updateError: (error: unknown) => void) {
105105

106106
useEffect(() => {
107107
if (searchParams.has('clear-settings')) localStorage.clear()
108+
108109
if (searchParams.has('r')) {
109110
const searchRadixes = searchParams.getAll('r')
110111
radixes.forEach(r => { r.enabled = searchRadixes.includes(r.name) })
111112
updateRadixes(radixes)
112113
setEnabledRadixes(radixes.filter(r => r.enabled))
114+
} else {
115+
enabledRadixes.forEach(r => { searchParams.append('r', r.name) })
116+
setSearchParams(searchParams)
113117
}
118+
114119
let r: Radix | undefined = radix
120+
115121
const sRadix = searchParams.get('radix')
116122
if (sRadix) {
117123
r = radixes.find(r => r.name === sRadix)
@@ -121,6 +127,7 @@ function useStore(updateError: (error: unknown) => void) {
121127
}
122128
setRadix(r)
123129
}
130+
124131
const sValue = searchParams.get('value')
125132
if (sValue) {
126133
const [ value, rest ] = sanitizeInput(sValue, r)

0 commit comments

Comments
 (0)