Skip to content

Commit f47f4d3

Browse files
committed
Merge branch 'develop'
Signed-off-by: Pedro Lamas <[email protected]>
2 parents 98f1ebb + b486daa commit f47f4d3

File tree

283 files changed

+3277
-2257
lines changed

Some content is hidden

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

283 files changed

+3277
-2257
lines changed

package-lock.json

Lines changed: 268 additions & 205 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test": "npm run test:unit",
2727
"test:unit": "vitest --environment jsdom --config ./vitest.config.ts",
2828
"type-check": "vue-tsc --build --noEmit",
29-
"circular-check": "skott --displayMode=file-tree --showCircularDependencies --tsconfig=./tsconfig.app.json",
29+
"circular-check": "skott --displayMode=file-tree --showCircularDependencies --no-trackTypeOnlyDependencies --tsconfig=./tsconfig.app.json",
3030
"theme:convert": "cd tools; node convertTheme.mjs"
3131
},
3232
"main": "index.js",
@@ -36,7 +36,7 @@
3636
"@fontsource/roboto": "^5.2.5",
3737
"@irojs/iro-core": "^1.2.1",
3838
"@jaames/iro": "^5.5.2",
39-
"axios": "^1.8.1",
39+
"axios": "^1.8.3",
4040
"consola": "^3.4.0",
4141
"dompurify": "^3.2.4",
4242
"echarts": "^5.6.0",
@@ -80,33 +80,33 @@
8080
"@types/jsdom": "^21.1.7",
8181
"@types/lodash-es": "^4.17.12",
8282
"@types/md5": "^2.3.5",
83-
"@types/node": "^22.13.9",
83+
"@types/node": "^22.13.10",
8484
"@types/semver": "^7.5.8",
8585
"@types/sortablejs": "^1.15.8",
8686
"@vitejs/plugin-vue2": "^2.3.3",
87-
"@vue/eslint-config-typescript": "^14.4.0",
87+
"@vue/eslint-config-typescript": "^14.5.0",
8888
"@vue/test-utils": "^1.3.6",
8989
"@vue/tsconfig": "~0.1.3",
90-
"eslint": "^9.21.0",
90+
"eslint": "^9.22.0",
9191
"eslint-plugin-regexp": "^2.7.0",
9292
"eslint-plugin-vue": "^9.32.0",
9393
"husky": "^9.1.7",
9494
"jsdom": "^26.0.0",
9595
"mockdate": "^3.0.5",
9696
"monaco-vscode-textmate-theme-converter": "^0.1.7",
9797
"neostandard": "^0.12.1",
98-
"rollup": "^4.34.9",
98+
"rollup": "^4.35.0",
9999
"sass": "~1.32.13",
100100
"skott": "^0.35.4",
101101
"standard-version": "^9.5.0",
102102
"typescript": "^5.8.2",
103-
"typescript-eslint": "^8.26.0",
103+
"typescript-eslint": "^8.26.1",
104104
"unplugin-vue-components": "^28.4.1",
105-
"vite": "^6.2.0",
105+
"vite": "^6.2.1",
106106
"vite-plugin-checker": "^0.9.0",
107107
"vite-plugin-monaco-editor-esm": "^2.0.2",
108108
"vite-plugin-pwa": "^0.21.1",
109-
"vitest": "^3.0.7",
109+
"vitest": "^3.0.8",
110110
"vue-debounce-decorator": "^1.0.1",
111111
"vue-i18n-extract": "^2.0.7",
112112
"vue-template-compiler": "^2.7.16",

src/App.vue

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,17 @@
7878
(!socketConnected && authenticated)"
7979
/>
8080

81-
<file-system-download-dialog />
82-
<file-system-upload-dialog />
83-
<updating-dialog />
84-
<spool-selection-dialog />
85-
<action-command-prompt-dialog />
86-
<keyboard-shortcuts-dialog />
87-
<manual-probe-dialog />
88-
<bed-screws-adjust-dialog />
89-
<screws-tilt-adjust-dialog />
81+
<template v-if="socketConnected">
82+
<file-system-download-dialog />
83+
<file-system-upload-dialog />
84+
<updating-dialog />
85+
<spool-selection-dialog />
86+
<action-command-prompt-dialog />
87+
<keyboard-shortcuts-dialog />
88+
<manual-probe-dialog />
89+
<bed-screws-adjust-dialog />
90+
<screws-tilt-adjust-dialog />
91+
</template>
9092
</v-main>
9193

9294
<app-footer />
@@ -145,7 +147,7 @@ export default class App extends Mixins(StateMixin, FilesMixin, BrowserMixin) {
145147
}
146148
147149
get theme (): ThemeConfig {
148-
return this.$store.state.config.uiSettings.theme
150+
return this.$typedState.config.uiSettings.theme
149151
}
150152
151153
get showBackgroundLogo () {
@@ -167,28 +169,28 @@ export default class App extends Mixins(StateMixin, FilesMixin, BrowserMixin) {
167169
// Our app is in a loading state when the socket isn't quite ready, or
168170
// our translations are loading.
169171
get updating (): boolean {
170-
return this.$store.state.version.busy
172+
return this.$typedState.version.busy
171173
}
172174
173175
get inLayout (): boolean {
174-
return (this.$store.state.config.layoutMode)
176+
return (this.$typedState.config.layoutMode)
175177
}
176178
177179
get columnCount (): number {
178-
return this.$store.state.config.containerColumnCount
180+
return this.$typedState.config.containerColumnCount
179181
}
180182
181183
get fileDropRoot () {
182184
return this.$route.meta?.fileDropRoot
183185
}
184186
185187
get progress (): number {
186-
const progress: number = this.$store.getters['printer/getPrintProgress']
188+
const progress: number = this.$typedGetters['printer/getPrintProgress']
187189
return Math.floor(progress * 100)
188190
}
189191
190192
get pageTitle () {
191-
const instanceName: string = this.$store.state.config.uiSettings.general.instanceName || ''
193+
const instanceName: string = this.$typedState.config.uiSettings.general.instanceName || ''
192194
const pageName = this.$t(`app.general.title.${this.$route.name}`)
193195
194196
if (this.printerPrinting) {
@@ -274,7 +276,7 @@ export default class App extends Mixins(StateMixin, FilesMixin, BrowserMixin) {
274276
}
275277
276278
get customStyleSheet (): string | undefined {
277-
return this.$store.getters['config/getCustomThemeFile']('custom', ['.css'])
279+
return this.$typedGetters['config/getCustomThemeFile']('custom', ['.css'])
278280
}
279281
280282
@Watch('customStyleSheet')
@@ -303,7 +305,7 @@ export default class App extends Mixins(StateMixin, FilesMixin, BrowserMixin) {
303305
}
304306
305307
get customBackgroundImage (): string | undefined {
306-
return this.$store.getters['config/getCustomThemeFile']('background', ['.png', '.jpg', '.jpeg', '.gif'])
308+
return this.$typedGetters['config/getCustomThemeFile']('background', ['.png', '.jpg', '.jpeg', '.gif'])
307309
}
308310
309311
@Watch('customBackgroundImage')
@@ -323,7 +325,7 @@ export default class App extends Mixins(StateMixin, FilesMixin, BrowserMixin) {
323325
}
324326
325327
get enableKeyboardShortcuts (): boolean {
326-
return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts
328+
return this.$typedState.config.uiSettings.general.enableKeyboardShortcuts
327329
}
328330
329331
mounted () {
@@ -416,18 +418,18 @@ export default class App extends Mixins(StateMixin, FilesMixin, BrowserMixin) {
416418
const files = await getFilesFromDataTransfer(event.dataTransfer)
417419
418420
if (files) {
419-
const pathWithRoot: string = this.$store.getters['files/getCurrentPathByRoot'](root)
421+
const pathWithRoot: string = this.$typedGetters['files/getCurrentPathByRoot'](root)
420422
const path = pathWithRoot === root
421423
? ''
422424
: pathWithRoot.substring(root.length + 1)
423425
424426
const wait = `${this.$waits.onFileSystem}/${pathWithRoot}/`
425427
426-
this.$store.dispatch('wait/addWait', wait)
428+
this.$typedDispatch('wait/addWait', wait)
427429
428430
await this.uploadFiles(files, path, root, false)
429431
430-
this.$store.dispatch('wait/removeWait', wait)
432+
this.$typedDispatch('wait/removeWait', wait)
431433
}
432434
}
433435
}

0 commit comments

Comments
 (0)