Skip to content

Commit 9dbdced

Browse files
committed
more github pages fixing
1 parent 67c1e58 commit 9dbdced

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
name: Build
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424

25-
- uses: pnpm/action-setup@v2
25+
- uses: pnpm/action-setup@v4
2626
with:
2727
version: latest
2828

app.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import eslint from "vite-plugin-eslint";
55
import Icons from "unplugin-icons/vite";
66

77
export default defineConfig({
8+
appRoot: process.env.BASE_PATH,
89
server: {
910
baseURL: process.env.BASE_PATH,
1011
static: true,

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export default tseslint.config(
77
tseslint.configs.strict,
88
tseslint.configs.stylistic,
99
jsxA11y.flatConfigs.strict,
10+
{
11+
ignores: [".output/", ".vinxi/", "node_modules/", "**/*.min.js"],
12+
},
1013
{
1114
files: ["**/*.{js,jsx,ts,tsx}"],
1215
languageOptions: {

src/app.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { Router } from "@solidjs/router";
22
import { FileRoutes } from "@solidjs/start/router";
3-
import {
4-
ColorModeProvider,
5-
ColorModeScript,
6-
createLocalStorageManager,
7-
} from "@kobalte/core";
3+
import { ColorModeProvider, ColorModeScript, createLocalStorageManager } from "@kobalte/core";
84
import { Suspense, Show } from "solid-js";
95

106
import "./app.css";
@@ -22,19 +18,15 @@ export default function App() {
2218
<Router
2319
base={import.meta.env.SERVER_BASE_URL}
2420
root={(props) => (
25-
<Show
26-
when={ENABLE_COLOR_MODE}
27-
fallback={<Suspense>{props.children}</Suspense>}
28-
>
21+
<Show when={ENABLE_COLOR_MODE} fallback={<Suspense>{props.children}</Suspense>}>
2922
<>
3023
<ColorModeScript storageType={storageManager.type} />
3124
<ColorModeProvider storageManager={storageManager}>
3225
<Suspense>{props.children}</Suspense>
3326
</ColorModeProvider>
3427
</>
3528
</Show>
36-
)}
37-
>
29+
)}>
3830
<FileRoutes />
3931
</Router>
4032
);

0 commit comments

Comments
 (0)