Skip to content

Commit dc065b7

Browse files
committed
init
0 parents  commit dc065b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+23389
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "22"
20+
cache: "npm"
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Check
26+
run: npm run lint && npm run prettier
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Cache build output
32+
uses: actions/cache@v4
33+
with:
34+
path: .output
35+
key: ${{ runner.os }}-nuxt-build

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example

.gitlab-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
variables:
2+
GIT_SUBMODULE_STRATEGY: recursive
3+
GIT_SUBMODULE_DEPTH: 1
4+
5+
build:
6+
tags:
7+
- "runner"
8+
- "x86"
9+
stage: build
10+
rules:
11+
- if: '$CI_COMMIT_BRANCH == "main"'
12+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
13+
before_script:
14+
- npm ci
15+
- npm run lint
16+
- npm run prettier
17+
script:
18+
- npm run build

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
npx lint-staged
3+
npm run build

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=true

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"eslint.useFlatConfig": true,
3+
"files.associations": {
4+
"*.css": "tailwindcss"
5+
},
6+
"editor.quickSuggestions": {
7+
"strings": "on"
8+
},
9+
"tailwindCSS.classAttributes": ["class", "ui"],
10+
"tailwindCSS.experimental.classRegex": [["ui:\\s*{([^)]*)\\s*}", "(?:'|\"|`)([^']*)(?:'|\"|`)"]]
11+
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Nuxt Frontend
2+
3+
[directory structure](https://nuxt.com/docs/guide/directory-structure/app)
4+
5+
[You should know this before choosing Next.js](https://news.ycombinator.com/item?id=43481295)

app/app.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default defineAppConfig({
2+
ui: {
3+
colors: {
4+
primary: "blue",
5+
neutral: "zinc",
6+
},
7+
},
8+
})

app/app.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup>
2+
// import ColorModeButton from "./components/ColorModeButton.vue"
3+
</script>
4+
5+
<template>
6+
<UApp>
7+
<NuxtLayout>
8+
<NuxtPage />
9+
</NuxtLayout>
10+
</UApp>
11+
</template>

app/assets/css/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@import "tailwindcss";
2+
@import "@nuxt/ui-pro";
3+
4+
@plugin "@tailwindcss/typography";
5+
6+
:root {
7+
--ui-header-height: --spacing(12);
8+
}

0 commit comments

Comments
 (0)