commit f69367d3f4012529fe069775f3db59cddf3c4b29 Author: heixinyouzi <2410633923@qq.com> Date: Wed May 22 14:45:45 2024 +0800 first commit diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..a993606 --- /dev/null +++ b/.env.development @@ -0,0 +1,7 @@ +# 开发环境配置 +ENV = 'development' +VITE_APP_ENV = 'development' + +#VITE_APP_BASE_URL = 'http://127.0.0.1:7777' +VITE_APP_BASE_URL = 'https://www.hxyouzi.com' + diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..a196e49 --- /dev/null +++ b/.env.production @@ -0,0 +1,5 @@ +# 生产环境配置 +ENV = 'production' +VITE_APP_ENV = 'production' + +VITE_APP_BASE_URL = 'https://www.hxyouzi.com' \ No newline at end of file diff --git a/.gitea/workflows/youzi.yml b/.gitea/workflows/youzi.yml new file mode 100644 index 0000000..6dece5c --- /dev/null +++ b/.gitea/workflows/youzi.yml @@ -0,0 +1,46 @@ +name: Build and Deploy +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache + steps: + - name: Checkout + uses: https://gitea.cn/actions/checkout@v3 + - id: tool-cache + name: 安装node + uses: https://gitea.com/kongxiangyiren/gitea-tool-cache@v4 + with: + # 只有node支持版本号别名 + node-version: 18 + - uses: https://gitea.cn/actions/setup-node@v3 + with: + # gitea-tool-cache导出 node 具体版本 + node-version: ${{ steps.tool-cache.outputs.node-version }} + registry-url: 'https://registry.npmmirror.com' + + - name: 缓存 + uses: https://gitea.cn/actions/cache@v3 + id: cache + with: + path: node_modules + key: ${{ runner.os }}-4 + + - name: Install and Build # 下载依赖 打包项目 + run: | + yarn install + yarn build + - name: Appleboy + uses: https://gitcode.net/weixin_44697517/scp-action@v0.1.4 + with: + host: ${{ secrets.USER_HOST }} # 服务器地址: xxx.xxx.xxx.xxx + username: ${{ secrets.USER_NAME }} # 服务器名字 一般是root + key: ${{ secrets.SERVER_SSH_KEY }} # 服务器连接密钥 + source: './dist/' # 拷贝文件目录 + target: ${{ secrets.USER_TARGET }} # 服务器目标目录 + strip_components: 2 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b46ff4b --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..da222de --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..bacda0f --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# 个人练手 + + +## 主要功能 + +### √ 1.登录注册功能 +### √ 2.首页展示共享文章列表 +### √ 3.画廊页面展示共享图片 + + +### × 4.控制台功能 --目前已完成:画廊上传共享 +### √ 5.文章编辑功能 + +### 其余功能正在考虑中 diff --git a/index.html b/index.html new file mode 100644 index 0000000..a9726d1 --- /dev/null +++ b/index.html @@ -0,0 +1,71 @@ + + + +
+ + + +{{ p.content }}
+—— {{ p.author ? p.author : "佚名" }}
+