-
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
Showing
30 changed files
with
153 additions
and
67 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 |
---|---|---|
|
@@ -32,4 +32,4 @@ jobs: | |
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: docs | ||
folder: dist | ||
folder: dist |
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
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
typescript: false, | ||
markdown: false, | ||
ignores: [ | ||
'node_modules', | ||
'src/notes/public', | ||
'dist', | ||
'index.html', | ||
], | ||
}, { | ||
rules: { | ||
'jsdoc/check-param-names': 'off', | ||
'jsdoc/check-types': 'off', | ||
'jsdoc/require-returns-description': 'off', | ||
|
||
'node/prefer-global/process': 'off', | ||
|
||
'no-console': 'off', | ||
'curly': 'off', | ||
'eqeqeq': 'off', | ||
'no-unused-vars': 'off', | ||
|
||
'unused-imports/no-unused-vars': 'off', | ||
|
||
'vue/html-self-closing': 'off', | ||
'vue/block-order': '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 |
---|---|---|
|
@@ -3,39 +3,35 @@ | |
"type": "module", | ||
"version": "1.6.2", | ||
"packageManager": "[email protected]", | ||
"description": "viarotel-site", | ||
"description": "Viarotel site", | ||
"author": "viarotel", | ||
"license": "ISC", | ||
"keywords": [], | ||
"scripts": { | ||
"dev": "vitepress dev", | ||
"build": "vitepress build", | ||
"preview": "vitepress preview", | ||
"lint": "pnpm run lint:js", | ||
"lint:js": "eslint . .vitepress --ext .vue,.js,.ts,.jsx,.tsx,.json --ignore-path .eslintignore --fix" | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix" | ||
}, | ||
"dependencies": { | ||
"@lottiefiles/lottie-player": "^1.7.1", | ||
"@waline/client": "^2.15.7", | ||
"@waline/client": "^3.1.1", | ||
"dayjs": "^1.11.7", | ||
"ga-gtag": "^1.1.7", | ||
"gsap": "^3.11.5", | ||
"load-js": "^3.1.1", | ||
"load-script": "^2.0.0", | ||
"lodash-es": "^4.17.21", | ||
"ofetch": "^1.0.1", | ||
"pathe": "^1.1.0", | ||
"qs": "^6.11.1" | ||
"ofetch": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@viarotel-org/eslint-config": "^0.5.10", | ||
"@viarotel-org/unocss-config": "^0.5.9", | ||
"eslint": "^8.48.0", | ||
"typescript": "^5.2.2", | ||
"unocss": "^0.53.5", | ||
"vite-plugin-eslint": "^1.8.1", | ||
"vite-plugin-remove-console": "^2.1.1", | ||
"vitepress": "1.0.0-rc.22", | ||
"vitepress-sidebar": "^1.18.0" | ||
"@antfu/eslint-config": "^2.6.4", | ||
"@unocss/preset-wind": "^0.58.5", | ||
"@unocss/transformer-directives": "^0.58.5", | ||
"eslint": "^8.56.0", | ||
"typescript": "^5.3.3", | ||
"unocss": "^0.58.5", | ||
"vite-plugin-remove-console": "^2.2.0", | ||
"vitepress": "1.0.0-rc.44", | ||
"vitepress-sidebar": "^1.18.6" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
import ViaCrowd from '@/components/ViaCrowd/index.vue' | ||
</script> | ||
|
||
<ViaCrowd class=""/> | ||
<ViaCrowd class=""/> |
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
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ hero: | |
- theme: alt | ||
text: Contact me | ||
link: /en/contact | ||
--- | ||
--- |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Time flies, only words remain. Even if the world changes dramatically, it still remembers you. | ||
Time flies, only words remain. Even if the world changes dramatically, it still remembers you. |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ hero: | |
- theme: alt | ||
text: 联系我 | ||
link: /contact | ||
--- | ||
--- |
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
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
```yml | ||
[http] | ||
proxy = http://127.0.0.1:7890 | ||
``` | ||
``` |
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,19 @@ | ||
# Git 上传可执行程序权限问题 | ||
|
||
## 单个 | ||
|
||
```bash | ||
git update-index --chmod=+x "electron/resources/extra/adb.exe" | ||
``` | ||
|
||
## 批量 | ||
|
||
```bash | ||
find "electron/resources/extra" -type f -exec git update-index --chmod=+x {} + | ||
``` | ||
|
||
## 查看权限 | ||
|
||
```bash | ||
git ls-files --stage | ||
``` |
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 |
---|---|---|
@@ -1 +1 @@ | ||
流年易逝,惟有文字,即使沧海桑田,它依然铭记你。 | ||
流年易逝,惟有文字,即使沧海桑田,它依然铭记你。 |
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,3 @@ | ||
# 解决微软开发者注册无法通过 | ||
|
||
state/province 输入城市首母缩写,比如上海,写成 sh 。 其它选项正常填写准确的即可,中英文都行。然后就不会有这个提示了,这个问题有人反馈过,用这个方法就可以成功。 专门针对这个 2201 错误。 |
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,5 @@ | ||
# Windows 提示 无法打开此 ms-gamingoverlay 链接 | ||
|
||
```powershell | ||
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR " /v AppCaptureEnabled /t REG_DWORD /d 0 /f | ||
``` |
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 @@ | ||
# 在 Node.js 中使用 child_process.exec 或 child_process.spawn 执行包含空格的程序路径 | ||
|
||
使用 `""` 包裹可执行文件路径 | ||
|
||
```js | ||
const { exec } = require('child_process') | ||
exec( | ||
'C:/Program Files/myApp.exe' | ||
// ... | ||
) | ||
spawn( | ||
'C:/Program Files/myApp.exe' | ||
// ... | ||
) | ||
``` |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ app_proxy = 1 | |
app_proxy_address = 127.0.0.1 | ||
app_proxy_port = 7890 | ||
app_proxy_scheme = http | ||
``` | ||
``` |
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
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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
// import { defineConfig } from "unocss"; | ||
import extendConfig from '@viarotel-org/unocss-config' | ||
import { defineConfig } from 'unocss' | ||
import presetWind from '@unocss/preset-wind' | ||
import transformerDirectives from '@unocss/transformer-directives' | ||
|
||
const primary = { | ||
DEFAULT: '#0464bb', | ||
} | ||
const presets = [ | ||
presetWind(), | ||
] | ||
|
||
export default extendConfig({ | ||
export default defineConfig({ | ||
presets, | ||
transformers: [transformerDirectives()], | ||
safelist: ['hover:opacity-100', 'opacity-70', 'duration-500'], | ||
theme: { | ||
colors: { | ||
primary, | ||
}, | ||
colors: {}, | ||
}, | ||
shortcuts: { | ||
'inset-0': 'top-0 bottom-0 left-0 right-0', | ||
'inset-center': | ||
'absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2', | ||
'inset-x-center': 'absolute left-1/2 transform -translate-x-1/2', | ||
'inset-y-center': 'absolute top-1/2 transform -translate-y-1/2', | ||
}, | ||
shortcuts: {}, | ||
}) |
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