-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
1,411 additions
and
1,349 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--ignore-engines true |
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,2 +1,3 @@ | ||
# In case we update to Yarn v4 | ||
nmHoistingLimits: dependencies | ||
nodeLinker: node-modules |
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,7 +1,7 @@ | ||
{ | ||
"name": "bridgecmdr", | ||
"productName": "BridgeCmdr", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Controller for professional A/V monitors and switches", | ||
"packageManager": "[email protected]", | ||
"type": "module", | ||
|
@@ -74,7 +74,7 @@ | |
"@types/ini": "^4.1.1", | ||
"@types/level": "^6.0.3", | ||
"@types/levelup": "^5.1.5", | ||
"@types/node": "^20.16.10", | ||
"@types/node": "^20.16.15", | ||
"@types/pouchdb-core": "^7.0.15", | ||
"@types/pouchdb-find": "^7.3.3", | ||
"@types/setimmediate": "^1.0.4", | ||
|
@@ -83,7 +83,7 @@ | |
"@typescript-eslint/parser": "^8.7.0", | ||
"@vitejs/plugin-vue": "^5.1.4", | ||
"@vitejs/plugin-vue-jsx": "^4.0.1", | ||
"@vitest/coverage-v8": "^2.1.1", | ||
"@vitest/coverage-v8": "^2.1.3", | ||
"@vue/eslint-config-prettier": "^9.0.0", | ||
"@vue/eslint-config-typescript": "^13.0.0", | ||
"@vue/tsconfig": "^0.5.1", | ||
|
@@ -100,7 +100,7 @@ | |
"electron": "^31.6.0", | ||
"electron-builder": "^24.13.3", | ||
"electron-unhandled": "^5.0.0", | ||
"electron-updater": "^6.3.8", | ||
"electron-updater": "^6.3.9", | ||
"electron-vite": "^2.3.0", | ||
"eslint": "^8.57.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
|
@@ -112,40 +112,40 @@ | |
"eslint-plugin-promise": "^7.1.0", | ||
"eslint-plugin-vue": "^9.28.0", | ||
"events": "^3.3.0", | ||
"execa": "^9.4.0", | ||
"execa": "^9.4.1", | ||
"husky": "^9.1.6", | ||
"ini": "^4.1.3", | ||
"levelup": "^5.1.1", | ||
"mime": "^4.0.4", | ||
"multileveldown": "^5.0.1", | ||
"npm-check-updates": "^17.1.3", | ||
"npm-run-all2": "^6.2.3", | ||
"pinia": "^2.2.2", | ||
"npm-check-updates": "^17.1.6", | ||
"npm-run-all2": "^6.2.6", | ||
"pinia": "^2.2.4", | ||
"pouchdb-adapter-leveldb-core": "^9.0.0", | ||
"pouchdb-core": "^9.0.0", | ||
"pouchdb-find": "^9.0.0", | ||
"prettier": "^3.3.3", | ||
"radash": "^12.1.0", | ||
"sass": "^1.79.4", | ||
"sass": "^1.79.6", | ||
"setimmediate": "^1.0.5", | ||
"stream-browserify": "^3.0.0", | ||
"tslib": "^2.7.0", | ||
"type-fest": "^4.26.1", | ||
"typescript": "^5.6.2", | ||
"typescript": "^5.6.3", | ||
"typescript-eslint-parser-for-extra-files": "^0.7.0", | ||
"util": "^0.12.5", | ||
"uuid": "^10.0.0", | ||
"vite": "^5.4.8", | ||
"vite": "^5.4.10", | ||
"vite-plugin-vue-devtools": "^7.4.6", | ||
"vite-plugin-vuetify": "^2.0.4", | ||
"vite-tsconfig-paths": "^5.0.1", | ||
"vitest": "^2.1.1", | ||
"vue": "^3.5.10", | ||
"vitest": "^2.1.3", | ||
"vue": "^3.5.12", | ||
"vue-eslint-parser": "^9.4.3", | ||
"vue-i18n": "^9.14.1", | ||
"vue-router": "^4.4.5", | ||
"vue-tsc": "^2.1.6", | ||
"vuetify": "^3.7.2", | ||
"vue-tsc": "^2.1.8", | ||
"vuetify": "^3.7.3", | ||
"xdg-basedir": "^5.1.0", | ||
"zod": "^3.23.8" | ||
}, | ||
|
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,14 +1,27 @@ | ||
/** Provides a means to define a tuple via satisfies. */ | ||
export type Fixed<T = unknown> = [T, ...T[]] | ||
|
||
/** Could be a promise. */ | ||
export type MaybePromise<T> = Promise<T> | T | ||
|
||
/** Guards and filter to not nullish */ | ||
export const isNotNullish = <T>(value: T | null | undefined): value is T => value != null | ||
|
||
/** Wraps a non-array value in an array, or simply passes an array through. */ | ||
export function toArray<T>(value: T): T extends unknown[] ? T : T[] { | ||
if (value == null) { | ||
return [] as never | ||
} | ||
|
||
return (Array.isArray(value) ? value : [value]) as never | ||
} | ||
|
||
/** | ||
* Wait a specified amount of time. | ||
* @param timeout - The amount of time to wait in milliseconds. | ||
*/ | ||
export async function waitTill(timeout: number) { | ||
await new Promise<void>((resolve) => { | ||
setTimeout(resolve, timeout) | ||
}) | ||
} |
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 +1,5 @@ | ||
export type Action<Result = void> = () => Result | ||
/** The type of functions. */ | ||
export type Func<Result, Args extends unknown[] = []> = (...args: Args) => Result | ||
|
||
/** The type of action functions. */ | ||
export type Action<Args extends unknown[] = []> = (...args: Args) => void |
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
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.