Skip to content

Commit 8470c41

Browse files
committed
Initial commit
0 parents  commit 8470c41

Some content is hidden

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

72 files changed

+24036
-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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package-lock=true
2+
legacy-peer-deps=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+
}

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
build:
2+
npm run build
3+
4+
format:
5+
npm run format
6+
7+
gitinit:
8+
rm -rf .git
9+
git init
10+
git add .
11+
git config user.name "Batchor"
12+
git config user.email "batchfy@gmail.com"
13+
git commit -m "Initial commit"
14+
git remote add github git@github.com:scien-hub/nuxt-front
15+
git remote add gitlab git@gitlab.com:scienhub/nuxt-front
16+
git push -u github main:main -f
17+
git push -u gitlab main:main -f
18+
19+
ncu:
20+
rm -rf node_modules package-lock.json
21+
npm i npm-check-updates -g
22+
npm run ncu -- -u
23+
npm i

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>

0 commit comments

Comments
 (0)