Skip to content

Commit 11f2cd6

Browse files
committed
Push DK App
1 parent ff38ebc commit 11f2cd6

File tree

110 files changed

+56257
-0
lines changed

Some content is hidden

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

110 files changed

+56257
-0
lines changed

dk-app/.editorconfig

Lines changed: 9 additions & 0 deletions
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

dk-app/.prettierignore

Lines changed: 6 additions & 0 deletions
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

dk-app/.prettierrc.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
singleQuote: true
2+
semi: false
3+
printWidth: 100
4+
trailingComma: none
5+
plugins:
6+
- prettier-plugin-svelte
7+
overrides:
8+
- files: '*.svelte'
9+
options:
10+
parser: svelte

dk-app/.vscode/extensions.json

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

dk-app/.vscode/launch.json

Lines changed: 39 additions & 0 deletions
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+
}

dk-app/.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
"[svelte]": {
12+
"editor.defaultFormatter": "svelte.svelte-vscode"
13+
},
14+
"svelte.enable-ts-plugin": true,
15+
"eslint.validate": ["javascript", "javascriptreact", "svelte"]
16+
}

dk-app/components.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"style": "new-york",
3+
"tailwind": {
4+
"config": "tailwind.config.js",
5+
"css": "src/renderer/src/assets/base.css",
6+
"baseColor": "zinc"
7+
},
8+
"aliases": {
9+
"components": "@/components",
10+
"utils": "@/lib/utils",
11+
"ui": "@/components/ui",
12+
"hooks": "@/lib/hooks"
13+
},
14+
"typescript": true,
15+
"registry": "https://next.shadcn-svelte.com/registry"
16+
}

dk-app/dev-app-update.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
provider: generic
2+
url: https://example.com/auto-updates
3+
updaterCacheDirName: chat-app-updater

dk-app/electron-builder.yml

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

dk-app/electron.vite.config.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
2+
import { svelte } from '@sveltejs/vite-plugin-svelte'
3+
import { resolve } from 'path'
4+
5+
export default defineConfig({
6+
main: {
7+
plugins: [externalizeDepsPlugin()],
8+
resolve: {
9+
alias: {
10+
'@shared': resolve('src/shared'),
11+
'@main': resolve('src/main'),
12+
'@services': resolve('src/main/services'),
13+
'@ipc': resolve('src/main/ipc'),
14+
'@utils': resolve('src/main/utils'),
15+
'@windows': resolve('src/main/windows')
16+
}
17+
}
18+
},
19+
preload: {
20+
plugins: [externalizeDepsPlugin()],
21+
resolve: {
22+
alias: {
23+
'@shared': resolve('src/shared'),
24+
'@main': resolve('src/main'),
25+
'@preload': resolve('src/preload'),
26+
'@apis': resolve('src/preload/apis')
27+
}
28+
}
29+
},
30+
renderer: {
31+
plugins: [svelte()],
32+
resolve: {
33+
alias: {
34+
'@': resolve('src/renderer/src'),
35+
'@renderer': resolve('src/renderer/src'),
36+
'@components': resolve('src/renderer/src/components'),
37+
'@lib': resolve('src/renderer/src/lib'),
38+
'@assets': resolve('src/renderer/src/assets'),
39+
'@shared': resolve('src/shared')
40+
}
41+
}
42+
}
43+
})

0 commit comments

Comments
 (0)