Skip to content

Commit ffcd27a

Browse files
committed
1
1 parent 53983f1 commit ffcd27a

Some content is hidden

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

61 files changed

+5683
-0
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.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

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
extends: [
6+
'eslint:recommended',
7+
'plugin:vue/vue3-recommended',
8+
'@electron-toolkit',
9+
'@electron-toolkit/eslint-config-ts/eslint-recommended',
10+
'@vue/eslint-config-typescript/recommended',
11+
'@vue/eslint-config-prettier'
12+
],
13+
rules: {
14+
'vue/require-default-prop': 'off',
15+
'vue/multi-word-component-names': 'off'
16+
}
17+
}

.eslintrc.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"standard-with-typescript",
8+
"plugin:vue/vue3-essential"
9+
],
10+
"files": ["src/**/*.ts", "src/**/*.vue"],
11+
"overrides": [
12+
{
13+
"env": {
14+
"node": true
15+
},
16+
"files": [
17+
".eslintrc.{js,cjs}"
18+
],
19+
"parserOptions": {
20+
"sourceType": "script"
21+
}
22+
}
23+
],
24+
"parserOptions": {
25+
"ecmaVersion": "latest",
26+
"sourceType": "module"
27+
},
28+
"plugins": [
29+
"vue"
30+
],
31+
"rules": {
32+
semi: "error",
33+
"prefer-const": "error"
34+
}
35+
}

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
out
4+
.DS_Store
5+
*.log*

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
electron_mirror=https://npmmirror.com/mirrors/electron/
2+
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
out
2+
dist
3+
pnpm-lock.yaml
4+
LICENSE.md
5+
tsconfig.json
6+
tsconfig.*.json

.prettierrc.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
singleQuote: true
2+
semi: false
3+
printWidth: 100
4+
trailingComma: none

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dbaeumer.vscode-eslint"]
3+
}

.vscode/launch.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Main Process",
6+
"type": "node",
7+
"request": "launch",
8+
"cwd": "${workspaceRoot}",
9+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
10+
"windows": {
11+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
12+
},
13+
"runtimeArgs": ["--sourcemap"],
14+
"env": {
15+
"REMOTE_DEBUGGING_PORT": "9222"
16+
}
17+
},
18+
{
19+
"name": "Debug Renderer Process",
20+
"port": 9222,
21+
"request": "attach",
22+
"type": "chrome",
23+
"webRoot": "${workspaceFolder}/src/renderer",
24+
"timeout": 60000,
25+
"presentation": {
26+
"hidden": true
27+
}
28+
}
29+
],
30+
"compounds": [
31+
{
32+
"name": "Debug All",
33+
"configurations": ["Debug Main Process", "Debug Renderer Process"],
34+
"presentation": {
35+
"order": 1
36+
}
37+
}
38+
]
39+
}

.vscode/settings.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"[typescript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"[javascript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[json]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
}
11+
}

build/AnyConv.com__dock-icon.icns

174 KB
Binary file not shown.

build/dock-icon.ico

3.93 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-1.icns

83.6 KB
Binary file not shown.

build/icon-1.png

35.1 KB
Loading

build/icon.icns

174 KB
Binary file not shown.

build/icon.ico

121 KB
Binary file not shown.

build/icon.png

1.66 KB
Loading

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: app-electron-chats-updater

electron-builder.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
appId: com.electron.app
2+
productName: app-electron-chats
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: app-electron-chats
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: generic
43+
url: https://example.com/auto-updates
44+
electronDownload:
45+
mirror: https://npmmirror.com/mirrors/electron/
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// electron.vite.config.ts
2+
import { resolve } from "path";
3+
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
4+
import vue from "@vitejs/plugin-vue";
5+
var electron_vite_config_default = defineConfig({
6+
main: {
7+
plugins: [externalizeDepsPlugin()]
8+
},
9+
preload: {
10+
plugins: [externalizeDepsPlugin()]
11+
},
12+
renderer: {
13+
resolve: {
14+
alias: {
15+
"@renderer": resolve("src/renderer/src")
16+
}
17+
},
18+
plugins: [vue()]
19+
}
20+
});
21+
export {
22+
electron_vite_config_default as default
23+
};

electron.vite.config.ts

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

package.json

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"name": "gzi",
3+
"version": "1.0.0",
4+
"description": "ai agregator",
5+
"main": "./out/main/index.js",
6+
"author": "example.com",
7+
"scripts": {
8+
"format": "prettier --write .",
9+
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",
10+
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
11+
"typecheck:web": "vue-tsc --noEmit -p tsconfig.web.json --composite false",
12+
"typecheck": "npm run typecheck:node && npm run typecheck:web",
13+
"start": "electron-vite preview",
14+
"dev": "electron-vite dev --watch",
15+
"build": "electron-vite build",
16+
"postinstall": "electron-builder install-app-deps",
17+
"build:unpack": "npm run build && electron-builder --dir",
18+
"build:win": "npm run build && electron-builder --win",
19+
"build:mac": "npm run build && electron-builder --mac",
20+
"build:linux": "npm run build && electron-builder --linux",
21+
"pack": "build --dir",
22+
"dist": "electron-builder"
23+
},
24+
"dependencies": {
25+
"@electron-toolkit/preload": "^3.0.0",
26+
"@electron-toolkit/utils": "^3.0.0",
27+
"electron-updater": "^6.1.7",
28+
"gsap": "^3.12.5"
29+
},
30+
"devDependencies": {
31+
"@electron-toolkit/eslint-config": "^1.0.2",
32+
"@electron-toolkit/eslint-config-ts": "^1.0.1",
33+
"@electron-toolkit/tsconfig": "^1.0.1",
34+
"@lukeed/uuid": "^2.0.1",
35+
"@rushstack/eslint-patch": "^1.7.1",
36+
"@types/node": "^18.19.9",
37+
"@typescript-eslint/eslint-plugin": "^6.4.0",
38+
"@vitejs/plugin-vue": "^5.0.3",
39+
"@vue/eslint-config-prettier": "^9.0.0",
40+
"@vue/eslint-config-typescript": "^12.0.0",
41+
"electron": "^28.2.0",
42+
"electron-builder": "^24.13.3",
43+
"electron-vite": "^2.0.0",
44+
"eslint": "^8.0.1",
45+
"eslint-config-standard-with-typescript": "^43.0.1",
46+
"eslint-plugin-import": "^2.25.2",
47+
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
48+
"eslint-plugin-promise": "^6.0.0",
49+
"eslint-plugin-vue": "^9.23.0",
50+
"prettier": "^3.2.4",
51+
"typescript": "*",
52+
"vite": "^5.0.12",
53+
"vue": "^3.4.15",
54+
"vue-tsc": "^1.8.27"
55+
},
56+
"build": {
57+
"appId": "dot.gzi",
58+
"productName": "gzi",
59+
"directories": {
60+
"buildResources": "build"
61+
},
62+
"mac": {
63+
"hardenedRuntime": true,
64+
"entitlements": "./build/entitlements.mac.plist",
65+
"entitlementsInherit": "./build/entitlements.mac.plist",
66+
"gatekeeperAssess": false,
67+
"category": "public.app-category.developer-tools",
68+
"icon": "build/icon.icns",
69+
"target": [
70+
{
71+
"target": "zip",
72+
"arch": [
73+
"x64",
74+
"arm64"
75+
]
76+
}
77+
]
78+
},
79+
"win": {
80+
"target": "nsis"
81+
},
82+
"nsis": {
83+
"oneClick": false,
84+
"allowToChangeInstallationDirectory": true
85+
},
86+
"linux": {
87+
"target": "AppImage"
88+
}
89+
}
90+
}

resources/icon.png

1.66 KB
Loading

resources/icon1.png

35.1 KB
Loading

src/main/dock-icon.png

2.22 KB
Loading

src/main/icon.png

13.9 KB
Loading

src/main/icon16.png

880 Bytes
Loading

src/main/icon32.png

974 Bytes
Loading

0 commit comments

Comments
 (0)