Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] dev from imsyy:dev #1

Open
wants to merge 32 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c93d7d2
feat: add Actions
imsyy Dec 2, 2023
1e0fe3e
feat: 添加部署说明
imsyy Dec 2, 2023
b28f92b
feat: Add Docker #107
imsyy Dec 6, 2023
a8b1d66
fix: 修复教书先生API接口调用失败 #224
imsyy Dec 11, 2023
f3dd5b8
fix: fix the logo be cut in small screen #157
nova1751 Dec 16, 2023
78e0d05
Merge pull request #226 from nova1751/dev
imsyy Dec 19, 2023
d085ccc
feat: 替换 vue3-aplayer 插件,并添加播放器设置选项
first19326 Jan 1, 2024
e229004
Merge pull request #229 from first19326/dev
imsyy Jan 2, 2024
f016348
feat: 新增 GitHub 仓库列表
imsyy Jan 2, 2024
27780c6
fix: 修复了播放器未加载完成或加载失败时,键盘控制事件仍旧生效的问题
first19326 Jan 2, 2024
c94b230
feat: 更新 vue-aplayer 版本
first19326 Jan 2, 2024
c068f67
Merge pull request #230 from first19326/dev
imsyy Jan 3, 2024
550545f
fix: 修复备用接口获取天气时显示失败的问题
Libw-I Feb 24, 2024
4b60e7e
Merge pull request #252 from L1bw/dev
imsyy Mar 11, 2024
e8b69c5
feat: 优化部分样式 #259
imsyy Mar 11, 2024
462aab2
🐞 fix: 修复一系列问题
imsyy Apr 24, 2024
70e7fa5
🦄 refactor: 移除 env
imsyy Apr 24, 2024
777979f
🐞 fix: 修正时间统计错误
imsyy Apr 28, 2024
e7a4cf7
🐞 fix: 修复移动端样式异常
imsyy Apr 28, 2024
52602e9
🐞 fix: 更新壁纸接口 #302
imsyy Jun 5, 2024
6b778d3
🐞 fix: author和percentage的修正和部分优化
supine0703 Jun 29, 2024
0ea222c
feat: 解决小屏移动端显示问题 并优化细节
supine0703 Jun 29, 2024
7ecc902
Merge pull request #315 from supine0703/dev
imsyy Jul 10, 2024
f616670
🐞 fix: 修复时间胶囊周计算错误
first19326 Jul 29, 2024
23c59bf
Merge pull request #333 from first19326/dev
imsyy Aug 2, 2024
f355925
📃 docs: 更新说明
imsyy Aug 5, 2024
3d46072
Merge branch 'dev' of github.com:imsyy/home into dev
imsyy Aug 5, 2024
f29aa6c
perf: optimize the performance when the cursor is still
nova1751 Aug 24, 2024
f333797
fix: 修正建站日期统计算法
Libw-I Sep 16, 2024
31bbcc3
Merge pull request #356 from Libw-I/dev
imsyy Sep 30, 2024
29062f2
Merge branch 'dev' into dev
imsyy Sep 30, 2024
081834c
Merge pull request #347 from nova1751/dev
imsyy Sep 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules
npm-debug.log
Dockerfile*
docker-compose*
.dockerignore
.git
.github
.gitignore
README.md
LICENSE
.vscode
dist
build
images
script
6 changes: 3 additions & 3 deletions .env → .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 站点信息
VITE_SITE_NAME = "無名の主页" # 名称
VITE_SITE_ANTHOR = "無名" # 作者
VITE_SITE_AUTHOR = "無名" # 作者
VITE_SITE_KEYWORDS = "無名,个人主页" # 关键词
VITE_SITE_DES = "一个默默无闻的主页" # 站点简介
VITE_SITE_URL = "imsyy.top" # 站点地址
Expand All @@ -26,7 +26,7 @@ VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关
## 请注意不是 Web端 (JS API),免费申请,每日上限 5000 次
## 此处提供的服务可能会超量从而无法访问,请自行申请!请自行申请!请自行申请!
## 若此处设为空则调用 教书先生 API https://api.oioweb.cn/doc/weather/GetWeather
VITE_WEATHER_KEY = "6c13af6fc30868bee488faf2cc652ab4"
VITE_WEATHER_KEY = ""

# 建站日期
## 若不需要,请设为空即可
Expand All @@ -48,4 +48,4 @@ VITE_SONG_SERVER = "netease"
# 播放类型 ( song-歌曲, playlist-播放列表, album-专辑, search-搜索, artist-艺术家 )
VITE_SONG_TYPE = "playlist"
# 播放 ID ( 若无需播放器,请设为空即可 )
VITE_SONG_ID = "7452421335"
VITE_SONG_ID = "9379831714"
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.gitignore
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Dev 分支推送部署预览
## 仅部署 Win 端
name: Build Dev

on:
push:
branches:
- dev
- master

jobs:
release:
name: Build Website
runs-on: windows-latest

steps:
# 检出 Git 仓库
- name: Check out git repository
uses: actions/[email protected]
# 安装 Node.js
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: "18.x"
# 复制环境变量文件
- name: Copy .env.example
run: |
if (-not (Test-Path .env)) {
Copy-Item .env.example .env
} else {
Write-Host ".env file already exists. Skipping the copy step."
}
# 安装项目依赖
- name: Install Dependencies
run: npm install
# 构建程序
- name: Build Website
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# 上传构建产物
- name: Upload artifacts
uses: actions/[email protected]
with:
name: Home
path: dist
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
.env

# Editor directories and files
.vscode/*
Expand Down
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 构建应用
FROM node:18 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN [ ! -e ".env" ] && cp .env.example .env || true
RUN npm run build

# 最小化镜像
FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
RUN npm install -g http-server

EXPOSE 12445
CMD ["http-server", "dist", "-p", "12445"]
Loading