Skip to content

Commit 7662359

Browse files
committed
add calendar view and light mode support
1 parent d78708e commit 7662359

21 files changed

+499
-236
lines changed

electron.vite.config.ts

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,37 @@ import { resolve } from 'path'
33
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
44
import vue from '@vitejs/plugin-vue'
55

6+
const isProduction = process.env.NODE_ENV === 'production'
7+
68
export default defineConfig({
79
main: {
810
build: {
911
sourcemap: true,
1012
},
1113
plugins: [
1214
externalizeDepsPlugin(),
13-
sentryVitePlugin({
14-
org: 'solidtime',
15-
project: 'desktop',
16-
}),
15+
...(isProduction
16+
? [
17+
sentryVitePlugin({
18+
org: 'solidtime',
19+
project: 'desktop',
20+
}),
21+
]
22+
: []),
1723
],
1824
},
1925

2026
preload: {
2127
plugins: [
2228
externalizeDepsPlugin(),
23-
sentryVitePlugin({
24-
org: 'solidtime',
25-
project: 'desktop',
26-
}),
29+
...(isProduction
30+
? [
31+
sentryVitePlugin({
32+
org: 'solidtime',
33+
project: 'desktop',
34+
}),
35+
]
36+
: []),
2737
],
2838
build: {
2939
sourcemap: true,
@@ -54,10 +64,14 @@ export default defineConfig({
5464
},
5565
plugins: [
5666
vue(),
57-
sentryVitePlugin({
58-
org: 'solidtime',
59-
project: 'desktop',
60-
}),
67+
...(isProduction
68+
? [
69+
sentryVitePlugin({
70+
org: 'solidtime',
71+
project: 'desktop',
72+
}),
73+
]
74+
: []),
6175
],
6276
},
6377
})

src/main/mainWindow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function initializeMainWindow(icon: string) {
55
const mainWindow = new BrowserWindow({
66
width: 800,
77
minWidth: 400,
8-
trafficLightPosition: { x: 15, y: 15 },
8+
trafficLightPosition: { x: 10, y: 10 },
99
minHeight: 400,
1010
height: 800,
1111
show: false,
859 KB
Binary file not shown.
344 KB
Binary file not shown.
-54.1 KB
Binary file not shown.
-54 KB
Binary file not shown.
-53.5 KB
Binary file not shown.
-53.6 KB
Binary file not shown.
-54.2 KB
Binary file not shown.
-108 KB
Binary file not shown.

0 commit comments

Comments
 (0)