Skip to content

Commit

Permalink
Feat: installer base (#47)
Browse files Browse the repository at this point in the history
* feat: new installer logic

* chore: adjust gitignore

* feat: improve install screen

* feat: add dashboard and settings

* feat: added unpack with 7z

* feat: add more translations

introduces labels file
add json sorter from sibling PR
extends json-sorter for multiple files

* feat: break installer into pages

* feat: install process journey

* fix: add missing translations in UI

* feat: improve install screen

* feat: better language illustration

* refactor: move members from old utils

* test: add tests

* test: add tests

* test: add tests

* test: add tests

* test: add tests

* test: adjust tests

---------

Co-authored-by: Tim Pietrusky <[email protected]>
  • Loading branch information
pixelass and TimPietrusky authored Feb 20, 2024
1 parent ce6c891 commit 694d518
Show file tree
Hide file tree
Showing 224 changed files with 7,944 additions and 105,774 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"prettier/prettier": "error",
"arrow-body-style": ["error", "as-needed"],
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-top-level-await": "off",
"@typescript-eslint/consistent-type-imports": "error",
"react/jsx-curly-brace-presence": "error",
"react/self-closing-comp": "error",
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build

# python
resources/python-embedded/
resources/python-embeded/
resources/git/
resources/python/caption/wd14/models/model.onnx
__pycache__
.pytest_cache
Expand All @@ -24,3 +24,6 @@ __pycache__
live-canvas-frontend-user-data.png
live-canvas-generate-image-output.png
live-canvas-generate-image-output.png.tmp.png

# test
coverage
2 changes: 2 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ files:
- app
- resources/python/**/*
- resources/powershell/**/*
- resources/7zip/**/*
publish: null
nsis:
oneClick: false
Expand All @@ -20,3 +21,4 @@ asar: true
asarUnpack:
- "resources/python/**/*"
- "resources/powershell/**/*"
- "resources/7zip/**/*"
29 changes: 29 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { defaults } from "jest-config";

// Adjust the import path to your tsconfig.json file

const jestConfig = {
...defaults,
testMatch: ["**/?(*.)test.ts?(x)"],
testPathIgnorePatterns: [".e2e."],
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
},
moduleNameMapper: {
"@/(.*)": "<rootDir>/src/electron/future/$1",
"#/(.*)": "<rootDir>/src/shared/$1",
},
collectCoverage: true,
coverageDirectory: "./coverage",
coverageProvider: "v8",
coverageReporters: ["lcov", "text", "json"],
coverageThreshold: {
global: {
lines: 80,
},
},
transformIgnorePatterns: ["/node_modules/"],
extensionsToTreatAsEsm: [".ts", ".tsx"],
};

export default jestConfig;
6 changes: 5 additions & 1 deletion jest.config.unit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ import { defaults } from "jest-config";

const jestConfig = {
...defaults,
roots: ["<rootDir>/main/", "<rootDir>/tests/"],
roots: ["<rootDir>/src/", "<rootDir>/tests/"],
testMatch: ["**/unit/**/*.test.ts"],
collectCoverage: false,
testEnvironment: "node",
preset: "ts-jest",
transformIgnorePatterns: ["/node_modules/(?!(nanoid)/)"],
extensionsToTreatAsEsm: [".ts", ".tsx"],
setupFilesAfterEnv: ["<rootDir>/tests/jest.setup.js"],
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/electron/future/$1",
"^#/(.*)$": "<rootDir>/src/shared/$1",
},
};

export default jestConfig;
109 changes: 0 additions & 109 deletions main/background.ts

This file was deleted.

1 change: 0 additions & 1 deletion main/captions/index.ts

This file was deleted.

99 changes: 0 additions & 99 deletions main/captions/ipc.ts

This file was deleted.

Loading

0 comments on commit 694d518

Please sign in to comment.