Skip to content

Commit 45f6b80

Browse files
committed
chore: use routesDir instead
1 parent 85de2ed commit 45f6b80

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

server/index.html renamed to index.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,33 @@
1212
</head>
1313

1414
<body>
15-
<div id="app" class="isolate"></div>
15+
<div id="app" class="isolate">
16+
<span class="loader"></span>
17+
<style>
18+
.loader {
19+
width: 40px;
20+
height: 40px;
21+
border: 5px solid #2b7fff;
22+
border-bottom-color: transparent;
23+
border-radius: 50%;
24+
display: inline-block;
25+
box-sizing: border-box;
26+
animation: rotation 1s linear infinite;
27+
position: fixed;
28+
top: calc(50% - 20px);
29+
left: calc(50% - 20px);
30+
}
31+
32+
@keyframes rotation {
33+
0% {
34+
transform: rotate(0deg);
35+
}
36+
100% {
37+
transform: rotate(360deg);
38+
}
39+
}
40+
</style>
41+
</div>
1642
<script type="module" src="/src/main.ts"></script>
1743
</body>
1844

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default defineConfig({
2323
}),
2424
nitro({
2525
config: {
26-
srcDir: './server/',
26+
routesDir: './server/routes',
2727
}
2828
}),
2929
vueDevtools()

0 commit comments

Comments
 (0)