Skip to content

Commit

Permalink
new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed Feb 29, 2024
1 parent 06a27ed commit c775d93
Show file tree
Hide file tree
Showing 286 changed files with 81,650 additions and 12,847 deletions.
23 changes: 9 additions & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.{ts,js,vue,css}]
indent_size = 2
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
7 changes: 3 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 打包路径 根据项目不同按需配置
VITE_BASE_URL = ./

# 开发者模式
ELECTRON_WEB_SERVER_PORT = 42710
ELECTRON_DEV_NETEASE_API_PORT = 30001
VITE_APP_API_URL = http://127.0.0.1:8345/api
4 changes: 0 additions & 4 deletions .env.development

This file was deleted.

19 changes: 3 additions & 16 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
snapshot*
dist
release
dist-electron
dist_electron
lib
es
esm
node_modules
src/_common
static
cypress
script/test/cypress
_site
temp*
static/
!.prettierrc.js
dist
out
.gitignore
111 changes: 0 additions & 111 deletions .eslintrc

This file was deleted.

17 changes: 17 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'@electron-toolkit',
'@electron-toolkit/eslint-config-ts/eslint-recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier'
],
rules: {
'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off'
}
}
6 changes: 0 additions & 6 deletions .gitattributes

This file was deleted.

19 changes: 13 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,33 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: zyplayer-mac
path: ./release/*/*-mac-*.dmg
path: ./dist/*-mac-*.dmg
if-no-files-found: ignore

- name: Upload Artifact (Windows)
uses: actions/upload-artifact@v3
with:
name: zyplayer-win
path: ./release/*/*-win-*.exe
path: ./dist/*-win-*.exe
if-no-files-found: ignore

- name: Upload Artifact (Linux AppImage)
uses: actions/upload-artifact@v3
with:
name: zyplayer-linux
path: ./release/*/*.AppImage
name: zyplayer-linux-appimage
path: ./dist/*.AppImage
if-no-files-found: ignore

- name: Upload Artifact (Linux deb)
uses: actions/upload-artifact@v3
with:
name: zyplayer-linux
path: ./release/*/*.deb
name: zyplayer-linux-deb
path: ./dist/*.deb
if-no-files-found: ignore

- name: Upload Artifact (Linux rpm)
uses: actions/upload-artifact@v3
with:
name: zyplayer-linux-rpm
path: ./dist/*.rpm
if-no-files-found: ignore
31 changes: 4 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
node_modules
.DS_Store

dist
out
thumbnail

# build files
es/
dist/
dist-electron/
dist_electron/
release/
typings/

_site
package
tmp*
temp*
coverage
test-report.html
.idea/
yarn-error.log
*.zip
.history
.stylelintcache
yarn.lock
package-lock.json
pnpm-lock.yaml
.env.local
.env.*.local
.DS_Store
*.log*
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
registry=https://registry.npmmirror.com
electron_mirror=https://npmmirror.com/mirrors/electron/
# electron_mirror=https://registry.npmmirror.com/-/binary/electron/
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
shamefully-hoist=true
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
out
dist
pnpm-lock.yaml
LICENSE.md
tsconfig.json
tsconfig.*.json
16 changes: 8 additions & 8 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 一行最多 120 字符..
# 每行的最大打印宽度
printWidth: 120
# 使用 2 个空格缩进
tabWidth: 2
Expand All @@ -9,29 +9,29 @@ semi: true
# 使用单引号
singleQuote: true
# 对象的 key 仅在必要时用引号
quoteProps: 'as-needed'
quoteProps: as-needed
# jsx 不使用单引号,而使用双引号
jsxSingleQuote: false
# 末尾需要有逗号
trailingComma: 'all'
trailingComma: all
# 大括号内的首尾需要空格
bracketSpacing: true
# jsx 标签的反尖括号需要换行
jsxBracketSameLine: false
# 箭头函数,只有一个参数的时候,也需要括号
arrowParens: 'always'
arrowParens: always
# 每个文件格式化的范围是文件的全部内容
rangeStart: 0
# rangeEnd: Infinity
rangeEnd: Infinity
# 不需要写文件开头的 @prettier
requirePragma: false
# 不需要自动在文件开头插入 @prettier
insertPragma: false
# 使用默认的折行标准
proseWrap: 'preserve'
proseWrap: preserve
# 根据显示样式决定 html 要不要折行
htmlWhitespaceSensitivity: 'css'
htmlWhitespaceSensitivity: css
# vue 文件中的 script 和 style 内不用缩进
vueIndentScriptAndStyle: false
# 换行符使用 lf
endOfLine: 'lf'
endOfLine: lf
8 changes: 0 additions & 8 deletions .stylelintignore

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Hiram·Wong
Copyright (c) 2022 Hiram-Wong

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit c775d93

Please sign in to comment.