-
Notifications
You must be signed in to change notification settings - Fork 0
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 e1724f1
Showing
75 changed files
with
9,193 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,128 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
We as members, contributors, and leaders pledge to make participation in our | ||
community a harassment-free experience for everyone, regardless of age, body | ||
size, visible or invisible disability, ethnicity, sex characteristics, gender | ||
identity and expression, level of experience, education, socio-economic status, | ||
nationality, personal appearance, race, religion, or sexual identity | ||
and orientation. | ||
|
||
We pledge to act and interact in ways that contribute to an open, welcoming, | ||
diverse, inclusive, and healthy community. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to a positive environment for our | ||
community include: | ||
|
||
* Demonstrating empathy and kindness toward other people | ||
* Being respectful of differing opinions, viewpoints, and experiences | ||
* Giving and gracefully accepting constructive feedback | ||
* Accepting responsibility and apologizing to those affected by our mistakes, | ||
and learning from the experience | ||
* Focusing on what is best not just for us as individuals, but for the | ||
overall community | ||
|
||
Examples of unacceptable behavior include: | ||
|
||
* The use of sexualized language or imagery, and sexual attention or | ||
advances of any kind | ||
* Trolling, insulting or derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or email | ||
address, without their explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Enforcement Responsibilities | ||
|
||
Community leaders are responsible for clarifying and enforcing our standards of | ||
acceptable behavior and will take appropriate and fair corrective action in | ||
response to any behavior that they deem inappropriate, threatening, offensive, | ||
or harmful. | ||
|
||
Community leaders have the right and responsibility to remove, edit, or reject | ||
comments, commits, code, wiki edits, issues, and other contributions that are | ||
not aligned to this Code of Conduct, and will communicate reasons for moderation | ||
decisions when appropriate. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies within all community spaces, and also applies when | ||
an individual is officially representing the community in public spaces. | ||
Examples of representing our community include using an official e-mail address, | ||
posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported to the community leaders responsible for enforcement at | ||
[email protected]. | ||
All complaints will be reviewed and investigated promptly and fairly. | ||
|
||
All community leaders are obligated to respect the privacy and security of the | ||
reporter of any incident. | ||
|
||
## Enforcement Guidelines | ||
|
||
Community leaders will follow these Community Impact Guidelines in determining | ||
the consequences for any action they deem in violation of this Code of Conduct: | ||
|
||
### 1. Correction | ||
|
||
**Community Impact**: Use of inappropriate language or other behavior deemed | ||
unprofessional or unwelcome in the community. | ||
|
||
**Consequence**: A private, written warning from community leaders, providing | ||
clarity around the nature of the violation and an explanation of why the | ||
behavior was inappropriate. A public apology may be requested. | ||
|
||
### 2. Warning | ||
|
||
**Community Impact**: A violation through a single incident or series | ||
of actions. | ||
|
||
**Consequence**: A warning with consequences for continued behavior. No | ||
interaction with the people involved, including unsolicited interaction with | ||
those enforcing the Code of Conduct, for a specified period of time. This | ||
includes avoiding interactions in community spaces as well as external channels | ||
like social media. Violating these terms may lead to a temporary or | ||
permanent ban. | ||
|
||
### 3. Temporary Ban | ||
|
||
**Community Impact**: A serious violation of community standards, including | ||
sustained inappropriate behavior. | ||
|
||
**Consequence**: A temporary ban from any sort of interaction or public | ||
communication with the community for a specified period of time. No public or | ||
private interaction with the people involved, including unsolicited interaction | ||
with those enforcing the Code of Conduct, is allowed during this period. | ||
Violating these terms may lead to a permanent ban. | ||
|
||
### 4. Permanent Ban | ||
|
||
**Community Impact**: Demonstrating a pattern of violation of community | ||
standards, including sustained inappropriate behavior, harassment of an | ||
individual, or aggression toward or disparagement of classes of individuals. | ||
|
||
**Consequence**: A permanent ban from any sort of public interaction within | ||
the community. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
version 2.0, available at | ||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. | ||
|
||
Community Impact Guidelines were inspired by [Mozilla's code of conduct | ||
enforcement ladder](https://github.com/mozilla/diversity). | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see the FAQ at | ||
https://www.contributor-covenant.org/faq. Translations are available at | ||
https://www.contributor-covenant.org/translations. |
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,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"] |
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,57 @@ | ||
// Generated by 'unplugin-auto-import' | ||
export {} | ||
declare global { | ||
const EffectScope: typeof import('vue')['EffectScope'] | ||
const ElMessage: typeof import('element-plus/es')['ElMessage'] | ||
const computed: typeof import('vue')['computed'] | ||
const createApp: typeof import('vue')['createApp'] | ||
const customRef: typeof import('vue')['customRef'] | ||
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] | ||
const defineComponent: typeof import('vue')['defineComponent'] | ||
const effectScope: typeof import('vue')['effectScope'] | ||
const getCurrentInstance: typeof import('vue')['getCurrentInstance'] | ||
const getCurrentScope: typeof import('vue')['getCurrentScope'] | ||
const h: typeof import('vue')['h'] | ||
const inject: typeof import('vue')['inject'] | ||
const isProxy: typeof import('vue')['isProxy'] | ||
const isReactive: typeof import('vue')['isReactive'] | ||
const isReadonly: typeof import('vue')['isReadonly'] | ||
const isRef: typeof import('vue')['isRef'] | ||
const markRaw: typeof import('vue')['markRaw'] | ||
const nextTick: typeof import('vue')['nextTick'] | ||
const onActivated: typeof import('vue')['onActivated'] | ||
const onBeforeMount: typeof import('vue')['onBeforeMount'] | ||
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] | ||
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] | ||
const onDeactivated: typeof import('vue')['onDeactivated'] | ||
const onErrorCaptured: typeof import('vue')['onErrorCaptured'] | ||
const onMounted: typeof import('vue')['onMounted'] | ||
const onRenderTracked: typeof import('vue')['onRenderTracked'] | ||
const onRenderTriggered: typeof import('vue')['onRenderTriggered'] | ||
const onScopeDispose: typeof import('vue')['onScopeDispose'] | ||
const onServerPrefetch: typeof import('vue')['onServerPrefetch'] | ||
const onUnmounted: typeof import('vue')['onUnmounted'] | ||
const onUpdated: typeof import('vue')['onUpdated'] | ||
const provide: typeof import('vue')['provide'] | ||
const reactive: typeof import('vue')['reactive'] | ||
const readonly: typeof import('vue')['readonly'] | ||
const ref: typeof import('vue')['ref'] | ||
const resolveComponent: typeof import('vue')['resolveComponent'] | ||
const resolveDirective: typeof import('vue')['resolveDirective'] | ||
const shallowReactive: typeof import('vue')['shallowReactive'] | ||
const shallowReadonly: typeof import('vue')['shallowReadonly'] | ||
const shallowRef: typeof import('vue')['shallowRef'] | ||
const toRaw: typeof import('vue')['toRaw'] | ||
const toRef: typeof import('vue')['toRef'] | ||
const toRefs: typeof import('vue')['toRefs'] | ||
const triggerRef: typeof import('vue')['triggerRef'] | ||
const unref: typeof import('vue')['unref'] | ||
const useAttrs: typeof import('vue')['useAttrs'] | ||
const useCssModule: typeof import('vue')['useCssModule'] | ||
const useCssVars: typeof import('vue')['useCssVars'] | ||
const useSlots: typeof import('vue')['useSlots'] | ||
const watch: typeof import('vue')['watch'] | ||
const watchEffect: typeof import('vue')['watchEffect'] | ||
const watchPostEffect: typeof import('vue')['watchPostEffect'] | ||
const watchSyncEffect: typeof import('vue')['watchSyncEffect'] | ||
} |
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,35 @@ | ||
// generated by unplugin-vue-components | ||
// We suggest you to commit this file into source control | ||
// Read more: https://github.com/vuejs/core/pull/3399 | ||
import '@vue/runtime-core' | ||
|
||
export {} | ||
|
||
declare module '@vue/runtime-core' { | ||
export interface GlobalComponents { | ||
Background: typeof import('./src/components/Background.vue')['default'] | ||
ElCard: typeof import('element-plus/es')['ElCard'] | ||
ElCol: typeof import('element-plus/es')['ElCol'] | ||
ElCollapse: typeof import('element-plus/es')['ElCollapse'] | ||
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] | ||
ElProgress: typeof import('element-plus/es')['ElProgress'] | ||
ElRadio: typeof import('element-plus/es')['ElRadio'] | ||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] | ||
ElRow: typeof import('element-plus/es')['ElRow'] | ||
ElSlider: typeof import('element-plus/es')['ElSlider'] | ||
ElSwitch: typeof import('element-plus/es')['ElSwitch'] | ||
ElTooltip: typeof import('element-plus/es')['ElTooltip'] | ||
Footer: typeof import('./src/components/Footer.vue')['default'] | ||
Hitokoto: typeof import('./src/components/Hitokoto.vue')['default'] | ||
Links: typeof import('./src/components/Links.vue')['default'] | ||
Loading: typeof import('./src/components/Loading.vue')['default'] | ||
Message: typeof import('./src/components/Message.vue')['default'] | ||
MoreContent: typeof import('./src/components/MoreContent.vue')['default'] | ||
Music: typeof import('./src/components/Music.vue')['default'] | ||
Player: typeof import('./src/components/Player.vue')['default'] | ||
Set: typeof import('./src/components/Set.vue')['default'] | ||
SocialLinks: typeof import('./src/components/SocialLinks.vue')['default'] | ||
TimeCapsule: typeof import('./src/components/TimeCapsule.vue')['default'] | ||
Weather: typeof import('./src/components/Weather.vue')['default'] | ||
} | ||
} |
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 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "12445:12445" |
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,47 @@ | ||
# 站点信息 | ||
VITE_SITE_NAME = "Quarterの主页" # 名称 | ||
VITE_SITE_ANTHOR = "QuarterTime" # 作者 | ||
VITE_SITE_KEYWORDS = "QuarterTime,个人主页" # 关键词 | ||
VITE_SITE_DES = "一个默默无闻的主页" # 站点简介 | ||
VITE_SITE_URL = "quartertime.net" # 站点地址 | ||
VITE_SITE_LOGO = "/images/icon/favicon.ico" # 站点主图标 | ||
VITE_SITE_MAIN_LOGO = "/images/icon/logo.png" # 主页图标 | ||
VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png" # Apple 端图标 | ||
|
||
# 简介文本 | ||
VITE_DESC_HELLO = "Hello World !" | ||
VITE_DESC_TEXT = "一个建立于 21 世纪的小站,存活于互联网的边缘" | ||
VITE_DESC_HELLO_OTHER = "Oops !" | ||
VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关闭 )" | ||
|
||
# 社交链接 | ||
## 请在 src/assets/socialLinks.json 文件中配置 | ||
|
||
# 网站链接 | ||
## 请在 src/assets/siteLinks.json 文件中配置 | ||
## 网站链接的图标名称可前往 https://www.xicons.org 自行挑选并在 src/components/Links/index.vue 中引入 | ||
|
||
# 天气 Key | ||
## 请前往 高德开放平台注册 Web服务 Key | ||
## 请注意不是 Web端 (JS API),免费申请,每日上限 5000 次 | ||
## 若此处设为空则调用 教书先生 API https://api.oioweb.cn/doc/weather/GetWeather | ||
VITE_WEATHER_KEY = "8b593d43e341d092751a9bb98bc56403" | ||
|
||
# 建站日期 | ||
## 若不需要,请设为空即可 | ||
## 请按照 YYYY-MM-DD 格式填写或者仅填写年份 YYYY | ||
VITE_SITE_START = "2019-07-10" | ||
|
||
# ICP 备案号 | ||
## 若不需要,请设为空即可 | ||
VITE_SITE_ICP = "津ICP备0000000000号-1" | ||
|
||
# 歌曲 API 地址 | ||
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署 | ||
VITE_SONG_API = "https://api-meting.quartertime.net/api" | ||
# 歌曲服务器 ( netease-网易云, tencent-qq音乐 ) | ||
VITE_SONG_SERVER = "tencent" | ||
# 播放类型 ( song-歌曲, playlist-播放列表, album-专辑, search-搜索, artist-艺术家 ) | ||
VITE_SONG_TYPE = "playlist" | ||
# 播放 ID ( 若无需播放器,请设为空即可 ) | ||
VITE_SONG_ID = "9379831714" |
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,37 @@ | ||
<!doctype html> | ||
<html lang="zh-CN"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="Access-Control-Allow-Origin" content="*" /> | ||
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" href="%VITE_SITE_LOGO%" /> | ||
<link rel="apple-touch-icon" href="%VITE_SITE_APPLE_LOGO%" /> | ||
<link rel="bookmark" href="%VITE_SITE_APPLE_LOGO%" /> | ||
<link rel="apple-touch-icon-precomposed" sizes="200x200" href="%VITE_SITE_APPLE_LOGO%" /> | ||
<meta name="description" content="%VITE_SITE_DES%" /> | ||
<meta name="keywords" content="%VITE_SITE_KEYWORDS%" /> | ||
<meta name="author" content="%VITE_SITE_ANTHOR%" /> | ||
<meta name="theme-color" content="#424242" /> | ||
<title>%VITE_SITE_NAME%</title> | ||
<!-- HarmonyOS Sans --> | ||
<link rel="stylesheet" href="https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css" /> | ||
<!-- IE Out --> | ||
<script> | ||
if (/*@cc_on!@*/ false || (!!window.MSInputMethodContext && !!document.documentMode)) | ||
window.location.href = | ||
'https://support.dmeng.net/upgrade-your-browser.html?referrer=' + | ||
encodeURIComponent(window.location.href); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<!-- 主体内容 --> | ||
<div id="app"></div> | ||
<!-- noscript --> | ||
<noscript> | ||
<div style="text-align: center">请开启 JavaScript</div> | ||
</noscript> | ||
<script type="module" src="/src/main.js"></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,44 @@ | ||
{ | ||
"name": "home", | ||
"author": "QuarterTime", | ||
"github": "https://github.com/QuarterTime/home", | ||
"home": "https://quartertime.net", | ||
"private": true, | ||
"version": "4.1.4", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite --host", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"format": "prettier --write src/", | ||
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix" | ||
}, | ||
"dependencies": { | ||
"@worstone/vue-aplayer": "^1.0.6", | ||
"aplayer": "^1.10.1", | ||
"axios": "^1.6.8", | ||
"dayjs": "^1.11.10", | ||
"element-plus": "^2.7.1", | ||
"fetch-jsonp": "^1.3.0", | ||
"pinia": "^2.1.7", | ||
"pinia-plugin-persistedstate": "^3.2.1", | ||
"swiper": "^11.1.1", | ||
"vue": "^3.4.24" | ||
}, | ||
"devDependencies": { | ||
"@icon-park/vue-next": "^1.4.2", | ||
"@vicons/fa": "^0.12.0", | ||
"@vicons/utils": "^0.1.4", | ||
"@vitejs/plugin-vue": "^4.6.2", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-vue": "^9.25.0", | ||
"prettier": "^3.2.5", | ||
"sass": "^1.75.0", | ||
"terser": "^5.30.4", | ||
"unplugin-auto-import": "^0.11.5", | ||
"unplugin-vue-components": "^0.22.12", | ||
"vite": "^4.5.3", | ||
"vite-plugin-compression": "^0.5.1", | ||
"vite-plugin-pwa": "^0.14.7" | ||
} | ||
} |
Oops, something went wrong.