-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,445 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Github Pages | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: fetch | ||
steps: | ||
- name: Set Timezone | ||
run: sudo timedatectl set-timezone "Asia/Shanghai" | ||
- uses: actions/checkout@v2 | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
cache: pnpm | ||
- name: Install | ||
run: pnpm install | ||
- name: Build | ||
run: pnpm build | ||
- name: Github Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="theme-color" content="#ffffff"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
<link rel="icon" href="/favicon.svg" type="image/svg+xml"> | ||
<title>Miki Captain</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<h1>Miki's Captain</h1> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { createApp } from "vue"; | ||
|
||
import "uno.css"; | ||
|
||
import App from "./App.vue"; | ||
|
||
createApp(App).mount("#app"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import path from "path"; | ||
|
||
import { defineConfig } from "vite"; | ||
import vue from "@vitejs/plugin-vue"; | ||
|
||
import Unocss from "unocss/vite"; | ||
import { | ||
presetUno, | ||
presetAttributify, | ||
transformerDirectives, | ||
transformerVariantGroup, | ||
} from "unocss"; | ||
import Icons from "unplugin-icons/vite"; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
vue(), | ||
Icons(), | ||
Unocss({ | ||
presets: [presetUno(), presetAttributify()], | ||
transformers: [transformerDirectives(), transformerVariantGroup()], | ||
}), | ||
], | ||
build: { | ||
outDir: path.join(__dirname, "../dist"), | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"build": "vite build app", | ||
"dev": "vite app", | ||
"format": "prettier --write app/**/*.{ts,vue}", | ||
"preview": "vite preview app" | ||
}, | ||
"dependencies": { | ||
"date-fns": "^2.28.0", | ||
"vue": "^3.2.31", | ||
"vue-router": "4" | ||
}, | ||
"devDependencies": { | ||
"@iconify/json": "^1.1.450", | ||
"@types/node": "^17.0.22", | ||
"@vitejs/plugin-vue": "^2.2.4", | ||
"pinia": "^2.0.11", | ||
"pnpm": "^6.32.3", | ||
"prettier": "^2.6.0", | ||
"typescript": "^4.6.2", | ||
"unocss": "^0.26.3", | ||
"unplugin-icons": "^0.13.0", | ||
"vite": "^2.8.6", | ||
"vitest": "^0.7.9" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.