Skip to content

Commit 91f93e6

Browse files
committed
Merge branch 'develop'
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2 parents 62fe404 + 5be5230 commit 91f93e6

Some content is hidden

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

41 files changed

+2780
-2563
lines changed

components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* eslint-disable */
2-
/* prettier-ignore */
32
// @ts-nocheck
43
// Generated by unplugin-vue-components
54
// Read more: https://github.com/vuejs/core/pull/3399
65
export {}
76

7+
/* prettier-ignore */
88
declare module 'vue' {
99
export interface GlobalComponents {
1010
ActionCommandPromptDialog: typeof import('./src/components/common/ActionCommandPromptDialog.vue')['default']

package-lock.json

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

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,34 @@
3434
"dependencies": {
3535
"@ctrl/tinycolor": "^4.1.0",
3636
"@fontsource/raleway": "^5.0.19",
37-
"@fontsource/roboto": "^5.0.13",
37+
"@fontsource/roboto": "^5.0.14",
3838
"@irojs/iro-core": "^1.2.1",
3939
"@jaames/iro": "^5.5.2",
40-
"axios": "^1.7.2",
40+
"axios": "^1.7.4",
4141
"consola": "^3.2.3",
42-
"dompurify": "^3.1.5",
43-
"echarts": "^5.5.0",
42+
"dompurify": "^3.1.6",
43+
"echarts": "^5.5.1",
4444
"echarts-gl": "^2.0.9",
45-
"hls.js": "^1.5.11",
45+
"hls.js": "^1.5.14",
4646
"jwt-decode": "^4.0.0",
4747
"lodash-es": "^4.17.21",
48-
"marked": "^13.0.0",
49-
"marked-base-url": "^1.1.4",
48+
"marked": "^14.0.0",
49+
"marked-base-url": "^1.1.5",
5050
"md5": "^2.3.0",
51-
"monaco-editor": "^0.49.0",
51+
"monaco-editor": "^0.50.0",
5252
"monaco-editor-textmate": "^4.0.0",
5353
"monaco-textmate": "^3.0.1",
5454
"onigasm": "^2.2.5",
5555
"panzoom": "^9.4.3",
5656
"qr-scanner": "^1.4.2",
5757
"qrcode.vue": "^1.7.0",
58-
"semver": "^7.6.2",
58+
"semver": "^7.6.3",
5959
"shlex": "^2.1.2",
6060
"sortablejs": "^1.15.2",
6161
"uuid": "^10.0.0",
6262
"vue": "^2.7.16",
6363
"vue-class-component": "^7.2.6",
64-
"vue-echarts": "^6.7.3",
64+
"vue-echarts": "^7.0.2",
6565
"vue-i18n": "^8.28.2",
6666
"vue-inline-svg": "^2.1.4",
6767
"vue-json-viewer": "^2.2.22",
@@ -81,39 +81,39 @@
8181
"@types/jsdom": "^21.1.7",
8282
"@types/lodash-es": "^4.17.12",
8383
"@types/md5": "^2.3.5",
84-
"@types/node": "^20.14.6",
84+
"@types/node": "^20.14.15",
8585
"@types/semver": "^7.5.8",
8686
"@types/sortablejs": "^1.15.8",
87-
"@types/uuid": "^9.0.8",
88-
"@typescript-eslint/eslint-plugin": "^7.13.1",
89-
"@typescript-eslint/parser": "^7.13.1",
87+
"@types/uuid": "^10.0.0",
88+
"@typescript-eslint/eslint-plugin": "^7.17.0",
89+
"@typescript-eslint/parser": "^7.17.0",
9090
"@vitejs/plugin-vue2": "^2.3.1",
9191
"@vue/eslint-config-standard": "^8.0.1",
9292
"@vue/eslint-config-typescript": "^13.0.0",
9393
"@vue/test-utils": "^1.3.6",
9494
"@vue/tsconfig": "~0.1.3",
9595
"eslint": "^8.57.0",
96-
"eslint-plugin-vue": "^9.26.0",
97-
"husky": "^9.0.11",
98-
"jsdom": "^24.1.0",
96+
"eslint-plugin-vue": "^9.27.0",
97+
"husky": "^9.1.4",
98+
"jsdom": "^24.1.1",
9999
"mockdate": "^3.0.5",
100100
"monaco-vscode-textmate-theme-converter": "^0.1.7",
101-
"rollup": "^4.18.0",
101+
"rollup": "^4.20.0",
102102
"sass": "~1.32.13",
103103
"shx": "^0.3.4",
104-
"skott": "^0.35.0",
104+
"skott": "^0.35.2",
105105
"standard-version": "^9.5.0",
106-
"typescript": "^5.4.5",
107-
"unplugin-vue-components": "^0.27.0",
108-
"vite": "^5.3.1",
109-
"vite-plugin-checker": "^0.6.4",
106+
"typescript": "^5.5.4",
107+
"unplugin-vue-components": "^0.27.4",
108+
"vite": "^5.4.0",
109+
"vite-plugin-checker": "^0.7.2",
110110
"vite-plugin-monaco-editor": "^1.1.0",
111-
"vite-plugin-pwa": "^0.20.0",
111+
"vite-plugin-pwa": "^0.20.1",
112112
"vitest": "^1.6.0",
113113
"vue-debounce-decorator": "^1.0.1",
114114
"vue-i18n-extract": "^2.0.7",
115115
"vue-template-compiler": "^2.7.16",
116-
"vue-tsc": "^1.8.27",
116+
"vue-tsc": "^2.0.29",
117117
"workbox-build": "^7.1.1",
118118
"workbox-core": "^7.1.0",
119119
"workbox-routing": "^7.1.0",

src/components/common/PeripheralsDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:key="peripheralGroup.type"
1616
>
1717
<div>
18-
{{ $filters.startCase(peripheralGroup.type) }}
18+
{{ $filters.prettyCase(peripheralGroup.type) }}
1919
<v-chip
2020
small
2121
link
@@ -85,7 +85,7 @@
8585
<v-col>
8686
<v-card outlined>
8787
<v-card-title>{{ device.device_name }}</v-card-title>
88-
<v-card-subtitle>{{ $filters.startCase(device.device_type) }}</v-card-subtitle>
88+
<v-card-subtitle>{{ $filters.prettyCase(device.device_type) }}</v-card-subtitle>
8989

9090
<v-card-text>
9191
<v-row>

src/components/settings/VersionInformationDialog.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</template>
9292

9393
<script lang="ts">
94-
import type { ArtifactVersion, HashVersion, OSPackage } from '@/store/version/types'
94+
import type { UpdatePackage } from '@/store/version/types'
9595
import { Component, Vue, Prop, VModel } from 'vue-property-decorator'
9696
9797
@Component({})
@@ -100,7 +100,7 @@ export default class VersionInformationDialog extends Vue {
100100
open?: boolean
101101
102102
@Prop({ type: Object })
103-
readonly component!: HashVersion | ArtifactVersion | OSPackage
103+
readonly component!: UpdatePackage
104104
105105
// For HashVersions or ArtifacVersions, show the commit history.
106106
// For type system, show the packages available to update.
@@ -112,7 +112,7 @@ export default class VersionInformationDialog extends Vue {
112112
113113
get baseUrl () {
114114
if ('owner' in this.component) {
115-
return `https://github.com/${this.component.owner}/${this.component.key}`
115+
return `https://github.com/${this.component.owner}/${this.component.repo_name || this.component.key}`
116116
}
117117
return ''
118118
}

src/components/settings/VersionSettings.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ import VersionStatus from './VersionStatus.vue'
180180
import VersionCommitHistoryDialog from './VersionInformationDialog.vue'
181181
import StateMixin from '@/mixins/state'
182182
import { SocketActions } from '@/api/socketActions'
183-
import type { ArtifactVersion, HashVersion, OSPackage } from '@/store/version/types'
183+
import type { VersionedUpdatePackage, UpdatePackage } from '@/store/version/types'
184184
185185
@Component({
186186
components: {
@@ -219,7 +219,7 @@ export default class VersionSettings extends Mixins(StateMixin) {
219219
})
220220
}
221221
222-
packageTitle (component: HashVersion | OSPackage | ArtifactVersion) {
222+
packageTitle (component: UpdatePackage) {
223223
if (component.key === 'system') {
224224
return this.$t('app.version.label.os_packages')
225225
}
@@ -231,7 +231,7 @@ export default class VersionSettings extends Mixins(StateMixin) {
231231
return this.$store.getters['version/hasUpdate'](component)
232232
}
233233
234-
inError (component: HashVersion | OSPackage | ArtifactVersion) {
234+
inError (component: UpdatePackage) {
235235
const dirty = ('is_dirty' in component) ? component.is_dirty : false
236236
const valid = ('is_valid' in component) ? component.is_valid : true
237237
return (dirty || !valid)
@@ -262,7 +262,7 @@ export default class VersionSettings extends Mixins(StateMixin) {
262262
}
263263
264264
// Will attempt to recover a component based on its type and current status.
265-
handleRecoverComponent (component: HashVersion | OSPackage | ArtifactVersion) {
265+
handleRecoverComponent (component: UpdatePackage) {
266266
this.$store.dispatch('version/onUpdateStatus', { busy: true })
267267
const dirty = ('is_dirty' in component) ? component.is_dirty : false
268268
const valid = ('is_valid' in component) ? component.is_valid : true
@@ -282,17 +282,17 @@ export default class VersionSettings extends Mixins(StateMixin) {
282282
}
283283
}
284284
285-
getBaseUrl (component: HashVersion | ArtifactVersion) {
285+
getBaseUrl (component: VersionedUpdatePackage) {
286286
if ('remote_url' in component && component.remote_url) {
287287
return component.remote_url
288288
}
289289
if ('owner' in component) {
290-
return `https://github.com/${component.owner}/${component.key}`
290+
return `https://github.com/${component.owner}/${component.repo_name || component.key}`
291291
}
292292
return ''
293293
}
294294
295-
handleInformationDialog (component: HashVersion | OSPackage | ArtifactVersion) {
295+
handleInformationDialog (component: UpdatePackage) {
296296
if (
297297
'commits_behind' in component ||
298298
'package_list' in component

src/components/settings/presets/PresetDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<template v-for="(item, i) in heaters">
2525
<app-setting
2626
:key="`${i}heater`"
27-
:title="$filters.startCase(item.name)"
27+
:title="$filters.prettyCase(item.name)"
2828
>
2929
<v-checkbox
3030
v-model="preset.values[item.name].active"
@@ -53,7 +53,7 @@
5353
<template v-for="(item, i) in fans">
5454
<app-setting
5555
:key="`${i}fan`"
56-
:title="$filters.startCase(item.name)"
56+
:title="$filters.prettyCase(item.name)"
5757
>
5858
<v-checkbox
5959
v-model="preset.values[item.name].active"

src/components/widgets/bedmesh/BedMeshChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default class BedMeshChart extends Mixins(BrowserMixin) {
162162
<div>
163163
<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${params.color};"></span>
164164
<span style="font-size:16px;color:${fontColor};font-weight:400;margin-left:2px">
165-
${this.$filters.startCase(params.seriesName)}
165+
${this.$filters.prettyCase(params.seriesName)}
166166
</span>
167167
<div style="clear: both"></div>
168168
<span style="font-size:16px;color:${fontColor};font-weight:400;margin-left:2px">

src/components/widgets/camera/CameraItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default class CameraItem extends Vue {
116116
117117
get cameraComponent () {
118118
if (this.camera.service) {
119-
const componentName = `${this.$filters.startCase(this.camera.service).replace(/ /g, '')}Camera`
119+
const componentName = `${this.$filters.prettyCase(this.camera.service).replace(/ /g, '')}Camera`
120120
121121
if (componentName in CameraComponents) {
122122
return CameraComponents[componentName]

src/components/widgets/runout-sensors/RunoutSensorsCard.vue

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,36 @@
2020
</app-btn>
2121
</template>
2222

23-
<v-card-text>
24-
<v-layout
23+
<v-list>
24+
<v-list-item
2525
v-for="item in sensors"
2626
:key="item.name"
27-
align-center
28-
justify-start
29-
class="py-1"
3027
>
31-
<span class="text-subtitle-1">{{ item.name }}</span>
32-
<v-icon
33-
:color="(item.filament_detected) ? 'success' : 'warning'"
34-
class="ml-3"
35-
left
36-
>
37-
{{ (item.filament_detected) ? '$checkedCircle' : '$alertCircle' }}
38-
</v-icon>
39-
<v-switch
40-
class="ml-2"
41-
color="success"
42-
:input-value="item.enabled"
43-
@change="changeSensor(item, $event)"
44-
/>
45-
</v-layout>
46-
</v-card-text>
28+
<v-list-item-content>
29+
<v-list-item-title>{{ item.prettyName }}</v-list-item-title>
30+
</v-list-item-content>
31+
<v-list-item-icon>
32+
<v-icon
33+
v-if="item.filament_detected"
34+
color="success"
35+
>
36+
$checkedCircle
37+
</v-icon>
38+
<v-icon
39+
v-else
40+
color="warning"
41+
>
42+
$alertCircle
43+
</v-icon>
44+
</v-list-item-icon>
45+
<v-list-item-action>
46+
<v-switch
47+
:input-value="item.enabled"
48+
@change="changeSensor(item, $event)"
49+
/>
50+
</v-list-item-action>
51+
</v-list-item>
52+
</v-list>
4753
</collapsable-card>
4854
</template>
4955

@@ -62,8 +68,7 @@ export default class RunoutSensorsCard extends Mixins(StateMixin) {
6268
}
6369
6470
changeSensor (item: RunoutSensor, value: boolean) {
65-
const enable: number = (value) ? 1 : 0
66-
this.sendGcode(`SET_FILAMENT_SENSOR SENSOR=${item.name} ENABLE=${enable}`)
71+
this.sendGcode(`SET_FILAMENT_SENSOR SENSOR=${item.name} ENABLE=${+value}`)
6772
}
6873
}
6974
</script>

0 commit comments

Comments
 (0)