Skip to content

Commit 3ac2fc6

Browse files
authored
Merge pull request #3 from Darcrandex/dev-v2
Dev v2
2 parents 1906b5a + 1cb8dcf commit 3ac2fc6

File tree

122 files changed

+8560
-1080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+8560
-1080
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
out
4+
.gitignore

.eslintrc.cjs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:react/recommended',
5+
'plugin:react/jsx-runtime',
6+
'plugin:react-hooks/recommended',
7+
'@electron-toolkit/eslint-config-ts/recommended',
8+
'@electron-toolkit/eslint-config-prettier'
9+
],
10+
11+
rules: {
12+
'@typescript-eslint/no-explicit-any': 'off',
13+
'@typescript-eslint/explicit-function-return-type': 'off'
14+
}
15+
}

.eslintrc.json

-30
This file was deleted.

.github/workflows/build-render.yml

-46
This file was deleted.

.github/workflows/build-test.yml

-43
This file was deleted.

.github/workflows/create-release.yml

-32
This file was deleted.

.github/workflows/test.yml

-29
This file was deleted.

.gitignore

+3-29
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,7 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
101
node_modules
112
dist
12-
dist-ssr
13-
dist-electron
14-
release
15-
*.local
16-
17-
# Editor directories and files
18-
.vscode/.debug.env
19-
.idea
3+
out
204
.DS_Store
21-
*.suo
22-
*.ntvs*
23-
*.njsproj
24-
*.sln
25-
*.sw?
5+
*.log*
266

27-
#lockfile
28-
package-lock.json
29-
pnpm-lock.yaml
30-
yarn.lock
31-
/test-results/
32-
/playwright-report/
33-
/playwright/.cache/
7+
*.local

.npmrc

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# For electron-builder
2-
# https://github.com/electron-userland/electron-builder/issues/6289#issuecomment-1042620422
3-
shamefully-hoist=true
4-
5-
# For China 🇨🇳 developers
61
electron_mirror=https://npmmirror.com/mirrors/electron/
2+
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
3+
shamefully-hoist=true
74

5+
# for pnpm
86
registry=https://registry.npmmirror.com/
9-
107
auto-install-peers = true
118
node-linker = hoisted

.prettierrc .prettierrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"semi": false,
33
"singleQuote": true,
44
"jsxSingleQuote": true,
5+
"trailingComma": "none",
56
"printWidth": 120
67
}

build/dilidili-logo.psd

-271 KB
Binary file not shown.

build/dilidili-logo@512.png

-26.2 KB
Binary file not shown.

build/entitlements.mac.plist

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-jit</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
10+
<true/>
11+
</dict>
12+
</plist>

build/icon.icns

-147 KB
Binary file not shown.

build/icon.ico

-232 KB
Binary file not shown.

build/icon.png

7.54 KB
Loading

build/icons/1024x1024.png

-127 KB
Binary file not shown.

build/icons/128x128.png

-8.06 KB
Binary file not shown.

build/icons/16x16.png

-759 Bytes
Binary file not shown.

build/icons/24x24.png

-1.19 KB
Binary file not shown.

build/icons/256x256.png

-15.6 KB
Binary file not shown.

build/icons/32x32.png

-1.68 KB
Binary file not shown.

build/icons/48x48.png

-2.67 KB
Binary file not shown.

build/icons/64x64.png

-3.8 KB
Binary file not shown.

build/screenshort.png

-40.5 KB
Binary file not shown.

dev-app-update.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
provider: generic
2+
url: https://example.com/auto-updates
3+
updaterCacheDirName: dilidili-updater

electron-builder.config.js

-23
This file was deleted.

electron-builder.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
appId: com.electron.app
2+
productName: dilidili
3+
directories:
4+
buildResources: build
5+
files:
6+
- '!**/.vscode/*'
7+
- '!src/*'
8+
- '!electron.vite.config.{js,ts,mjs,cjs}'
9+
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
10+
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
11+
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
12+
asarUnpack:
13+
- resources/**
14+
win:
15+
executableName: dilidili
16+
nsis:
17+
artifactName: ${name}-${version}-setup.${ext}
18+
shortcutName: ${productName}
19+
uninstallDisplayName: ${productName}
20+
createDesktopShortcut: always
21+
mac:
22+
entitlementsInherit: build/entitlements.mac.plist
23+
extendInfo:
24+
- NSCameraUsageDescription: Application requests access to the device's camera.
25+
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
26+
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
27+
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
28+
notarize: false
29+
dmg:
30+
artifactName: ${name}-${version}.${ext}
31+
linux:
32+
target:
33+
- AppImage
34+
- snap
35+
- deb
36+
maintainer: electronjs.org
37+
category: Utility
38+
appImage:
39+
artifactName: ${name}-${version}.${ext}
40+
npmRebuild: false
41+
publish:
42+
provider: github
43+
electronDownload:
44+
mirror: https://npmmirror.com/mirrors/electron/

electron.vite.config.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import react from '@vitejs/plugin-react'
2+
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
3+
import { resolve } from 'path'
4+
5+
export default defineConfig({
6+
main: {
7+
plugins: [externalizeDepsPlugin()]
8+
},
9+
preload: {
10+
plugins: [externalizeDepsPlugin()]
11+
},
12+
renderer: {
13+
resolve: {
14+
alias: {
15+
'@main': resolve('src/main'),
16+
'@renderer': resolve('src/renderer/src')
17+
}
18+
},
19+
plugins: [react()]
20+
}
21+
})

electron/electron-env.d.ts

-13
This file was deleted.

0 commit comments

Comments
 (0)