-
Notifications
You must be signed in to change notification settings - Fork 19
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
0 parents
commit 7649188
Showing
76 changed files
with
14,196 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
PORT=8050 | ||
|
||
# Nuxt Auth | ||
NUXT_SECRET="chaoxing-sign" | ||
ORIGIN="http://localhost:8050" | ||
|
||
# Prisma | ||
DATABASE_URL="postgresql://username:password@localhost:5432/chaoxing" |
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,6 @@ | ||
{ | ||
"extends": "@kuizuo", | ||
"rules": { | ||
"no-console": "off" | ||
} | ||
} |
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,49 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Set node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: pnpm | ||
|
||
- name: Setup | ||
run: npm i -g @antfu/ni | ||
|
||
- name: Install | ||
run: nci | ||
|
||
- name: Build | ||
run: nr build | ||
|
||
- name: SSH Deploy | ||
uses: easingthemes/[email protected] | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
ARGS: '-avzr --delete' | ||
SOURCE: '.output' | ||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | ||
REMOTE_USER: ${{ secrets.REMOTE_USER }} | ||
TARGET: '/www/wwwroot/NodeProject/chaoxing-sign' | ||
|
||
- name: SSH Commands | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.REMOTE_HOST }} | ||
username: ${{ secrets.REMOTE_USER }} | ||
key: ${{ secrets.PRIVATE_KEY }} | ||
script: pm2 restart Protocol |
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,9 @@ | ||
node_modules | ||
*.log | ||
dist | ||
.output | ||
.nuxt | ||
.env | ||
.env.production | ||
.vercel | ||
data |
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,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
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,4 @@ | ||
{ | ||
"installDependencies": true, | ||
"startCommand": "npm run dev" | ||
} |
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,10 @@ | ||
{ | ||
"recommendations": [ | ||
"antfu.iconify", | ||
"antfu.unocss", | ||
"antfu.goto-alias", | ||
"csstools.postcss", | ||
"dbaeumer.vscode-eslint", | ||
"vue.volar" | ||
] | ||
} |
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,10 @@ | ||
{ | ||
"prettier.enable": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"files.associations": { | ||
"*.css": "postcss" | ||
}, | ||
"editor.formatOnSave": false | ||
} |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023-PRESENT Kuizuo<https://github.com/kuizuo> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,51 @@ | ||
<p align="center"> | ||
<img src="https://api.iconify.design/majesticons:shooting-star-line.svg" width="50" height="50" /> | ||
</p> | ||
<pre align="center"> | ||
🌟 某签到助手是一款方便快捷的工具,可以帮助用户记录签到信息。 | ||
</pre> | ||
|
||
<p align="center"> | ||
<br> | ||
<a href="https://chaoxing-sign.vercel.app">🖥 Online Preview</a> | ||
<br><br> | ||
<a href="https://stackblitz.com/github/kuizuo/chaoxing-sign"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt=""></a> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/nuxt/v/rc"><img alt="size" src="https://img.shields.io/github/package-json/dependency-version/kuizuo/chaoxing-sign/dev/nuxt?style=flat&colorA=002438&colorB=28CF8D"></a> | ||
<a href="https://github.com/kuizuo/chaoxing-sign/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/workflow/status/kuizuo/chaoxing-sign/ci?label=ci&logo=github"></a> | ||
<a href="https://github.com/kuizuo/chaoxing-sign/tree/HEAD/LICENSE"><img alt="License" src="https://img.shields.io/github/license/kuizuo/chaoxing-sign?style=flat&colorA=002438&colorB=28CF8D" /></a> | ||
</p> | ||
|
||
## ✨Features | ||
|
||
- [x] 普通签到 | ||
- [x] 拍照签到 | ||
- [x] 手势签到 | ||
- [x] 位置签到 | ||
- [x] 签到码签到 | ||
- [x] 二维码签到(10秒变换不影响) | ||
- [x] 多用户凭据储存 | ||
|
||
## 🛠 部署 | ||
|
||
```shell | ||
git clone https://github.com/kuizuo/chaoxing-sign.git | ||
cd chaoxing-sign | ||
pnpm install | ||
``` | ||
|
||
你需要一个 PostgreSQL 数据库地址,然后将项目根目录下 `.env.example` 文件更改成 `.env` 并填入相关信息。执行 | ||
|
||
```shell | ||
pnpm run dev | ||
``` | ||
|
||
## 🤝 免责声明 | ||
|
||
本项目仅作为个人技术专研,仅供学习参考。不得用于商业用途。 | ||
|
||
## 📝 License | ||
|
||
MIT License © 2023-PRESENT Kuizuo |
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,15 @@ | ||
export default defineAppConfig({ | ||
logo: 'majesticons:shooting-star-line', | ||
title: '', | ||
description: '支持某星普通签到、拍照签到、手势签到、位置签到、签到码签到、二维码签到网页版', | ||
keywords: | ||
'chaoxing, sign, 超星, 签到, 拍照签到, 手势签到, 位置签到, 签到码签到, 二维码签到', | ||
author: { | ||
name: 'kuizuo', | ||
link: 'https://github.com/kuizuo', | ||
}, | ||
nuxtIcon: { | ||
size: '20px', | ||
class: 'icon', | ||
}, | ||
}) |
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,76 @@ | ||
<script setup lang="ts"> | ||
import 'assets/css/preflight.css' | ||
import { darkTheme, dateZhCN, lightTheme, zhCN } from 'naive-ui' | ||
const colorMode = useColorMode() | ||
const { title, keywords, description } = useAppConfig() | ||
useHead({ | ||
title, | ||
link: [ | ||
{ | ||
rel: 'icon', type: 'image/svg+xml', href: '/logo.svg', | ||
}, | ||
], | ||
meta: [ | ||
{ | ||
name: 'keywords', | ||
content: keywords, | ||
}, | ||
{ | ||
name: 'description', content: description, | ||
}, | ||
{ | ||
name: 'referrer', content: 'no-referrer', | ||
}, | ||
], | ||
}) | ||
</script> | ||
|
||
<template> | ||
<n-config-provider :locale="zhCN" :date-locale="dateZhCN" :theme="colorMode.preference === 'dark' ? darkTheme : lightTheme"> | ||
<n-global-style /> | ||
<NuxtLayout> | ||
<n-message-provider> | ||
<NuxtLoadingIndicator /> | ||
<NuxtPage /> | ||
</n-message-provider> | ||
</NuxtLayout> | ||
</n-config-provider> | ||
</template> | ||
|
||
<style> | ||
html, | ||
body, | ||
#__nuxt { | ||
height: 100vh; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
html.dark body { | ||
--at-apply: duration-300 transition-colors text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900; | ||
} | ||
.page-enter-active, | ||
.page-leave-active { | ||
transition: all 0.4s; | ||
} | ||
.page-enter-from, | ||
.page-leave-to { | ||
transform: translateY(20px); | ||
opacity: 0; | ||
} | ||
.layout-enter-active , | ||
.layout-leave-active { | ||
transition: all 0.1s ease-out; | ||
transition: all 0.4s; | ||
} | ||
.layout-enter-from, | ||
.layout-leave-to { | ||
transform: translateY(-20px); | ||
opacity: 0; | ||
} | ||
</style> |
Oops, something went wrong.
7649188
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
chaoxing-sign – ./
chaoxing-sign-six.vercel.app
chaoxing-sign-git-main-kuizuo1.vercel.app
chaoxing-sign-kuizuo1.vercel.app
7649188
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
chaoxing-sign – ./
chaoxing-sign-six.vercel.app
chaoxing-sign-git-main-kuizuo1.vercel.app
chaoxing-sign-kuizuo1.vercel.app