Skip to content

Commit 776e023

Browse files
fix(admin): tailwind styles for nuxt ui (#214)
Co-authored-by: jay <[email protected]> Co-authored-by: Dropheart <[email protected]>
1 parent 5a0705f commit 776e023

File tree

6 files changed

+107
-43
lines changed

6 files changed

+107
-43
lines changed

.github/workflows/deploy-website.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
outputs:
1212
base-tag: ${{ steps.tags.outputs.base-tag }}
1313
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
1417
- name: Fetch and set tags
1518
id: tags
1619
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM oven/bun:1.1.44-alpine AS builder
22
WORKDIR /app
33
COPY package.json bun.lock* ./
4-
RUN bun install --frozen-lockfile --no-save
4+
RUN bun install --frozen-lockfile
55
COPY . .
66
RUN bun run build
77

app/middleware/requireAuth.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
1212
if (store.profile == null)
1313
return navigateTo({
1414
path: '/login',
15-
query: {
16-
redirect: to.fullPath
17-
}
15+
query:
16+
to.fullPath !== '/'
17+
? {
18+
redirect: to.fullPath
19+
}
20+
: undefined
1821
});
1922
});

bun.lock

Lines changed: 94 additions & 37 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"devDependencies": {
2323
"@inquirer/confirm": "^5.1.3",
2424
"@inquirer/select": "^4.0.6",
25+
"@nuxtjs/tailwindcss": "6.13.1",
2526
"@types/bun": "^1.1.6",
2627
"@types/chart.js": "^2.9.41",
2728
"@types/matter-js": "^0.19.8",
@@ -53,7 +54,7 @@
5354
"@iconify-json/heroicons": "^1.1.24",
5455
"@lucia-auth/adapter-drizzle": "^1.1.0",
5556
"@nuxt/fonts": "^0.10.3",
56-
"@nuxt/ui": "^2.19.2",
57+
"@nuxt/ui": "2.21.0",
5758
"@nuxtjs/seo": "^2.0.2",
5859
"@pinia/nuxt": "^0.9.0",
5960
"@types/nunjucks": "^3.2.6",

packages/common/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { fileURLToPath } from 'bun';
1+
import { fileURLToPath } from 'url';
22

33
export default defineNuxtConfig({
44
alias: {

0 commit comments

Comments
 (0)