Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
baobao1270 committed Apr 2, 2024
0 parents commit 5b0df28
Show file tree
Hide file tree
Showing 39 changed files with 812 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy

on:
push:
workflow_dispatch:

permissions:
contents: read

env:
API_KEY: ${{ secrets.API_KEY }}
PROJECT: vcportal
S3_DOMAIN: cos.accelerate.myqcloud.com
S3_BUCKET: luotianyi-dev-1251131545
S3_PREFIX: web/host/${{ env.PROJECT }}
S3_ENDPOINT: https://${{ env.S3_DOMAIN }}
S3_CDN_URL: https://${{ env.S3_BUCKET }}.${{ env.S3_DOMAIN }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: pdm install && pdm add git+https://github.com/luotianyi-dev/deploykit.git
- name: Set S3 Deployment URL
run: echo "S3_DEPLOYMENT_URL=$S3_CDN_URL/$(date +%Y%m%d-%H%M%S)-${{ github.sha }}" >> $GITHUB_ENV
- name: Build
run: |
pdm run portal-build --assets-cdn-url $S3_DEPLOYMENT_URL/assets --css-cdn-url $S3_DEPLOYMENT_URL/css \
build --clean --with-assets --with-css --with-manifest
- name: Upload to DeployKit
run: pdm run deployctl deploy upload --commit ${{ github.sha }} -f dist public -f server.conf server.conf --switch
- name: Upload to S3
run: |
pdm run deployctl s3 --bucket $S3_BUCKET --prefix $S3_DEPLOYMENT_URL -f assets -f css
working-directory: ./dist
162 changes: 162 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm-project.org/#use-with-ide
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# VC 导航站
VC 导航站是一个简单的网站导航系统,收集了中文 VOCALOID 的各种常用网站。

此项目是 Tianyi Network Web 的一部分。

## 构建
此项目使用 GitHub Actions 自动构建,构建文件请参见 [deploy.yml](https://github.com/luotianyi-dev/web-vcportal/blob/main/.github/workflows/deploy.yml)

## 版权
除了 `data/assets` 下的内容,其余内容使用 [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/) 许可证。

`data/assets` 下的内容并非由 Tianyi Network 创作,应遵循合理、非商用的规则使用。
Binary file added data/.DS_Store
Binary file not shown.
42 changes: 42 additions & 0 deletions data/articles/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: 关于
---
## 我想提交新的网站

如果您想要提交新的网站,请点击页脚的「联系我们」,或者联系QQ:3600424575。

请在提交网站时,包含以下内容:

- 网站名称
- 网站地址
- 网站简介
- 推荐理由(可选)

如果您推荐的是软件下载相关的网站,我们会对该网站的信誉进行审查,避免有人通过该网站投放病毒。

我们欢迎您提交同人网站、同人组织的相关链接,无论您是否为该组织的负责人或Staff。无论网站是否备案均可。我们原则上不会在此列出以展示个人生活、个人作品为主要内容的网站。如果您的网站为VC相关同人网站,请确保您提交的网站:

- 在国内外均可正常访问
- 启用 HTTPS,包括网站本身和网站的 CSS、JS 及资源文件
- WAF 设置不影响正常用户体验
- 不包含违法违规内容和 NSFW 内容,不包括对特定或不特定虚拟歌手有攻击性的内容
- 有实质性的内容,不是Demo页、空白页、「建设中」页面等

## 我想删除此网站上的内容

如果您不想您拥有的网站出现在我们这里,或者您认为我们的网站上的内容侵害了您的权益,请点击页脚的「联系我们」。

如果我们的网站包含了您的作品,请使用「DMCA Notice」的格式,向我们发出函件。

## 我想在您的网站上进行推广

我们的网站不接受刊登任何商业性质的推广信息。但是,如果您是中文虚拟歌手的创作者、相关软件开发者或社区维护者,您可以通过我们的网站推广您的非商业性质的作品。值得注意的是,我们的网站的流量较低,可能很难得到理想的推广效果。

对于音乐作品,无论是原创还是翻唱,只要您作品符合以下要求我们均会尽力为您进行推广:

- 使用虚拟歌手创作
- 发布时间距今6个月以内
- 不是商业曲、梗曲;歌曲质量符合最低要求,不「毁狗耳」
- 如果您的作品为其他虚拟歌手相关的内容,如教程、工具、MMD等,也可以联系我们进行推广。

请注意,在此网站上推广作品我们不会收取任何费用,如果任何人以我们的名义向您索要钱财或物品,请不要相信并向相关部门或平台举报。
1 change: 1 addition & 0 deletions data/assets/719.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/acestudio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/assets/av2bv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/cleanup_pictures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/cvseplus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions data/assets/infinity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/ivocaloid.ico
Binary file not shown.
Binary file added data/assets/lrccon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/luotianyi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/luotianyi.love.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/assets/manual.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/midishow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/mikustudio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/mikutap.ico
Binary file not shown.
Binary file added data/assets/opensynth.ico
Binary file not shown.
Binary file added data/assets/synthv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/tdd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/tianyitap.ico
Binary file not shown.
1 change: 1 addition & 0 deletions data/assets/tybbs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/assets/u-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/assets/vcmusic.org.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/vcmusic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/vocadb.ico
Binary file not shown.
1 change: 1 addition & 0 deletions data/assets/vocakey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/vocaloid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/vsqx.top.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/assets/wantwords.ico
Binary file not shown.
Binary file added data/assets/xiayuyao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5b0df28

Please sign in to comment.