Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit ea53388

Browse files
committed
Add image converter and dynamic colour mode changer
1 parent 2c0e6c7 commit ea53388

File tree

105 files changed

+1607
-1004
lines changed

Some content is hidden

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

105 files changed

+1607
-1004
lines changed

.eslintrc.json

+69-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
{
2+
"root": true,
23
"env": {
34
"browser": true,
45
"es6": true,
5-
"node": true
6+
"node": true,
7+
"jest": true
68
},
79
"extends": [
810
"eslint:recommended",
911
"plugin:@typescript-eslint/eslint-recommended",
1012
"plugin:@typescript-eslint/recommended",
1113
"plugin:import/recommended",
1214
"plugin:import/electron",
13-
"plugin:import/typescript"
15+
"plugin:import/typescript",
16+
"prettier",
17+
"@vue/eslint-config-typescript",
18+
"plugin:vue/vue3-essential",
19+
"plugin:vuejs-accessibility/recommended"
1420
],
15-
"parser": "@typescript-eslint/parser",
21+
"plugins": [
22+
"prettier",
23+
"vuejs-accessibility",
24+
"@typescript-eslint"
25+
],
26+
"parser": "vue-eslint-parser",
27+
"parserOptions": {
28+
"parser": "@typescript-eslint/parser",
29+
"ecmaVersion": 2020,
30+
"sourceType": "module"
31+
},
1632
"rules": {
1733
"indent": [
1834
"error",
@@ -35,8 +51,50 @@
3551
"error"
3652
]
3753
}
54+
],
55+
"comma-dangle": [
56+
"error",
57+
"always-multiline"
58+
],
59+
"space-before-function-paren": [
60+
"warn",
61+
{
62+
"anonymous": "ignore",
63+
"named": "never",
64+
"asyncArrow": "always"
65+
}
66+
],
67+
"prettier/prettier": [
68+
"error",
69+
{
70+
"endOfLine": "auto"
71+
}
72+
],
73+
"vue/html-indent": [
74+
"error",
75+
2
76+
],
77+
"vue/multiline-html-element-content-newline": "off",
78+
"vue/multi-word-component-names": "off",
79+
"vue/max-attributes-per-line": 0,
80+
"vue/require-default-prop": 0,
81+
"vue/no-multiple-template-root": 0,
82+
"@typescript-eslint/no-unused-vars": [
83+
"warn",
84+
{
85+
"varsIgnorePattern": "^_$",
86+
"argsIgnorePattern": "^_$"
87+
}
3888
]
3989
},
90+
"settings": {
91+
"import/resolver": {
92+
"typescript": {
93+
"alwaysTryTypes": true,
94+
"project": "./tsconfig.json"
95+
}
96+
}
97+
},
4098
"ignorePatterns": [
4199
"*.test.ts"
42100
],
@@ -48,6 +106,14 @@
48106
"env": {
49107
"jest": true
50108
}
109+
},
110+
{
111+
"files": [
112+
"*.vue"
113+
],
114+
"rules": {
115+
"max-len": "off"
116+
}
51117
}
52118
]
53119
}

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = true

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"printWidth": 120,
66
"tabWidth": 2,
77
"useTabs": false,
8-
"endOfLine": "auto"
8+
"endOfLine": "auto",
9+
"spaceBeforeFunctionParen": false
910
}

forge.config.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ const config: ForgeConfig = {
3333
appBundleId: 'com.thavarshan.comet',
3434
appCategoryType: 'public.app-category.video',
3535
asar: {
36-
unpack: "**/node_modules/{ffmpeg-static,ffprobe-static}/**",
36+
unpack: '**/node_modules/{ffmpeg-static,ffprobe-static}/**',
3737
},
3838
win32metadata: {
3939
CompanyName: author.name,
4040
OriginalFilename: productName,
41-
}
41+
},
4242
},
4343
rebuildConfig: {},
4444
makers: [
@@ -91,7 +91,7 @@ const config: ForgeConfig = {
9191
name: '@electron-forge/maker-rpm',
9292
platforms: ['linux'],
9393
config: commonLinuxConfig,
94-
}
94+
},
9595
],
9696
plugins: [
9797
new VitePlugin({
@@ -143,10 +143,10 @@ const config: ForgeConfig = {
143143
prerelease: false,
144144
draft: true,
145145
force: true,
146-
generateReleaseNotes: true
147-
}
148-
}
149-
]
146+
generateReleaseNotes: true,
147+
},
148+
},
149+
],
150150
};
151151

152152
export default config;

forge.env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ColorMode } from '@/types/theme';
22

3-
export { }; // Make this a module
3+
export {}; // Make this a module
44

55
declare global {
66
// This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Vite

jest.config.ts

+11-28
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,28 @@ const config: Config = {
1414
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/*.d.ts', '!**/*constants.ts'],
1515
coveragePathIgnorePatterns: ['/node_modules/', '/tests/.*\\.(ts|js)$'],
1616
coverageReporters: ['json', 'html', 'lcov'],
17-
moduleFileExtensions: [
18-
"js",
19-
"mjs",
20-
"cjs",
21-
"jsx",
22-
"ts",
23-
"tsx",
24-
"json",
25-
"node",
26-
"vue"
27-
],
17+
moduleFileExtensions: ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx', 'json', 'node', 'vue'],
2818
moduleNameMapper: {
29-
"^@/(.*)$": "<rootDir>/src/$1",
30-
"^@vue/test-utils": "<rootDir>/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js",
31-
"radix-vue": "<rootDir>/node_modules/radix-vue/dist/radix-vue.cjs.js",
19+
'^@/(.*)$': '<rootDir>/src/$1',
20+
'^@vue/test-utils': '<rootDir>/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js',
21+
'radix-vue': '<rootDir>/node_modules/radix-vue/dist/radix-vue.cjs.js',
3222
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
33-
"^.+\\.(svg|png|jpg|jpeg|gif)$": "jest-transform-stub",
34-
23+
'^.+\\.(svg|png|jpg|jpeg|gif)$': 'jest-transform-stub',
3524
},
3625
resetMocks: false,
3726
resetModules: true,
3827
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
39-
testEnvironment: "jsdom",
28+
testEnvironment: 'jsdom',
4029
testEnvironmentOptions: {
41-
customExportConditions: ["node", "node-addons"]
30+
customExportConditions: ['node', 'node-addons'],
4231
},
43-
testMatch: [
44-
"**/__tests__/**/*.[jt]s?(x)",
45-
"**/tests/**/?(*.)+(spec|test).[tj]s?(x)"
46-
],
32+
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/tests/**/?(*.)+(spec|test).[tj]s?(x)'],
4733
testPathIgnorePatterns: ['/.tmp/'],
4834
transform: {
49-
"^.+\\.vue$": "@vue/vue3-jest",
50-
"^.+\\.ts?$": "ts-jest"
35+
'^.+\\.vue$': '@vue/vue3-jest',
36+
'^.+\\.ts?$': 'ts-jest',
5137
},
52-
transformIgnorePatterns: [
53-
"/node_modules/",
54-
"\\.pnp\\.[^\\/]+$"
55-
],
38+
transformIgnorePatterns: ['/node_modules/', '\\.pnp\\.[^\\/]+$'],
5639
};
5740

5841
export default config;

0 commit comments

Comments
 (0)