-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change complete project structure - Rename "src" -> "src/frontend" - Rename "electron" -> "src/backend" - Move types.ts to "common/types.ts" * Switch from react-scripts + foreman + webpack + ts-loader -> Vite * Set GH_TOKEN and GITHUB_TOKEN in tests directly This just cleans up package.json a bit * Get SVG & JPG importing working in VSCode * Move type definitions into common/typedefs * Fixup tests * Rewrite large chunks of the backend to be compatible with strict mode * Modify frontend to reflect changes to type definition structure * Remove unused files These weren't necessary, at least as far as I can tell * Update translations * Mapped logger refactor on vite pr * More clean up * Fixed tests and added more lint rules * lint-fix * Small adjustments * Add more tests * i18n * review suggestions * remove test.only * review suggestions (2) Co-authored-by: Mathis Dröge <mathis.droege@ewe.net>
- Loading branch information
Showing
74 changed files
with
1,403 additions
and
965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const constants = jest.requireActual('../constants') | ||
|
||
constants.configStore = { | ||
has: jest.fn(), | ||
set: jest.fn(), | ||
get: jest.fn() | ||
} | ||
|
||
constants.currentLogFile = 'current.log' | ||
constants.lastLogFile = 'last.log' | ||
|
||
module.exports = constants | ||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
import { tmpdir } from 'os' | ||
import { join } from 'path' | ||
|
||
export const dialog = { | ||
const appBasePath = tmpdir() | ||
const dialog = { | ||
// dialog override | ||
showErrorBox: jest.fn(), | ||
showMessageBox: jest.fn() | ||
} | ||
|
||
export const app = { | ||
getPath: jest.fn().mockReturnValue(tmpdir()) | ||
const app = { | ||
// app override | ||
getPath: jest.fn().mockImplementation((path: string) => { | ||
return join(appBasePath, path) | ||
}) | ||
} | ||
|
||
export class Notification { | ||
class Notification { | ||
public show() { | ||
return | ||
} | ||
|
||
public isSupported() { | ||
return false | ||
} | ||
} | ||
|
||
export { dialog, app, Notification } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const utils = jest.requireActual('../utils') | ||
|
||
utils.showErrorBoxModalAuto = jest.fn() | ||
|
||
module.exports = utils | ||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.