Skip to content

Commit 492c040

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip
1 parent fa0fb74 commit 492c040

26 files changed

+940
-2143
lines changed

.stacks/core/alias/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export const alias: Record<string, string> = {
6262
'@stacksjs/lint/*': p.lintPath('src/*'),
6363
'@stacksjs/logging': p.loggingPath('src/index.ts'),
6464
'@stacksjs/logging/*': p.loggingPath('src/*'),
65-
'@stacksjs/modules/*': p.modulesPath('src/*'),
6665
'@stacksjs/notifications': p.notificationsPath('src/index.ts'),
6766
'@stacksjs/notifications/*': p.notificationsPath('src/*'),
6867
'@stacksjs/objects': p.objectsPath('src/index.ts'),
@@ -165,7 +164,6 @@ export const alias: Record<string, string> = {
165164
'stacks/lint/*': p.lintPath('src/*'),
166165
'stacks/logging': p.loggingPath('src/index.ts'),
167166
'stacks/logging/*': p.loggingPath('src/*'),
168-
'stacks/modules/*': p.modulesPath('src/*'),
169167
'stacks/notifications': p.notificationsPath('src/index.ts'),
170168
'stacks/notifications/*': p.notificationsPath('src/*'),
171169
'stacks/objects': p.objectsPath('src/index.ts'),

.stacks/core/buddy/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"@stacksjs/health": "workspace:*",
9797
"@stacksjs/lint": "workspace:*",
9898
"@stacksjs/logging": "workspace:*",
99-
"@stacksjs/modules": "workspace:*",
10099
"@stacksjs/notifications": "workspace:*",
101100
"@stacksjs/objects": "workspace:*",
102101
"@stacksjs/orm": "workspace:*",
@@ -143,7 +142,6 @@
143142
"@stacksjs/health": "workspace:*",
144143
"@stacksjs/lint": "workspace:*",
145144
"@stacksjs/logging": "workspace:*",
146-
"@stacksjs/modules": "workspace:*",
147145
"@stacksjs/notifications": "workspace:*",
148146
"@stacksjs/objects": "workspace:*",
149147
"@stacksjs/orm": "workspace:*",

.stacks/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@
464464
"@stacksjs/health": "workspace:*",
465465
"@stacksjs/lint": "workspace:*",
466466
"@stacksjs/logging": "workspace:*",
467-
"@stacksjs/modules": "workspace:*",
468467
"@stacksjs/notifications": "workspace:*",
469468
"@stacksjs/objects": "workspace:*",
470469
"@stacksjs/orm": "workspace:*",
@@ -513,7 +512,6 @@
513512
"@stacksjs/health": "workspace:*",
514513
"@stacksjs/lint": "workspace:*",
515514
"@stacksjs/logging": "workspace:*",
516-
"@stacksjs/modules": "workspace:*",
517515
"@stacksjs/notifications": "workspace:*",
518516
"@stacksjs/objects": "workspace:*",
519517
"@stacksjs/orm": "workspace:*",

public/favicon-dark.svg

Lines changed: 3 additions & 0 deletions
Loading

public/favicon.svg

Lines changed: 3 additions & 0 deletions
Loading

public/pwa-192x192.png

3.82 KB
Loading

public/pwa-512x512.png

10 KB
Loading

public/safari-pinned-tab.svg

Lines changed: 41 additions & 0 deletions
Loading

resources/components/TheCounter.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<script setup lang="ts">
2+
const props = defineProps<{
3+
initial: number
4+
}>()
5+
6+
const { count, inc, dec } = useCounter(props.initial)
7+
</script>
8+
9+
<template>
10+
<div>
11+
{{ count }}
12+
<button class="inc" @click="inc()">
13+
+
14+
</button>
15+
<button class="dec" @click="dec()">
16+
-
17+
</button>
18+
</div>
19+
</template>

resources/components/TheFooter.vue

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<script setup lang="ts">
2+
import { availableLocales, loadLanguageAsync } from '~/modules/i18n'
3+
4+
const { t, locale } = useI18n()
5+
6+
async function toggleLocales() {
7+
// change to some real logic
8+
const locales = availableLocales
9+
const newLocale = locales[(locales.indexOf(locale.value) + 1) % locales.length]
10+
await loadLanguageAsync(newLocale)
11+
locale.value = newLocale
12+
}
13+
</script>
14+
15+
<template>
16+
<nav flex="~ gap-4" mt-6 justify-center text-xl>
17+
<RouterLink icon-btn to="/" :title="t('button.home')">
18+
<div i-carbon-campsite />
19+
</RouterLink>
20+
21+
<button icon-btn :title="t('button.toggle_dark')" @click="toggleDark()">
22+
<div i="carbon-sun dark:carbon-moon" />
23+
</button>
24+
25+
<a icon-btn :title="t('button.toggle_langs')" @click="toggleLocales()">
26+
<div i-carbon-language />
27+
</a>
28+
29+
<RouterLink icon-btn to="/about" :title="t('button.about')" data-test-id="about">
30+
<div i-carbon-dicom-overlay />
31+
</RouterLink>
32+
33+
<a icon-btn rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank" title="GitHub">
34+
<div i-carbon-logo-github />
35+
</a>
36+
</nav>
37+
</template>

0 commit comments

Comments
 (0)