Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8755fa3fc | ||
|
|
ec399c2b78 | ||
|
|
46c9d6f627 | ||
|
|
8f96faa9ef | ||
|
|
3c0b537609 | ||
|
|
182d9541f1 | ||
|
|
3a651c99a1 | ||
|
|
6ed57fc0d3 | ||
|
|
3666e294e9 | ||
|
|
af547b35fe | ||
|
|
049997a01b | ||
|
|
e31e8ec2dd | ||
|
|
6481c6fa25 | ||
|
|
b445c8d5b8 | ||
|
|
c14873a8a5 | ||
|
|
6e21642deb | ||
|
|
6001c9210f | ||
|
|
f35252ec8b | ||
|
|
5cd5aa42a4 | ||
|
|
07795429a9 | ||
|
|
789a4c2f6a | ||
|
|
edc2af4d4c | ||
|
|
e1a754abdc | ||
|
|
4d2caeb3e7 | ||
|
|
b6f32c077c | ||
|
|
932a2c35b1 | ||
|
|
32122348b3 | ||
|
|
817efba0d8 | ||
|
|
298eae8cbf |
No files matched your search
@@ -0,0 +1,19 @@
|
||||
name: Check PR title
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- edited
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
statuses: write
|
||||
steps:
|
||||
- uses: aslafy-z/conventional-pr-title-action@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
npm run i18n-extract -- --languageFiles=src/locales/${file##*/} --output=i18n-extract/${file##*/}
|
||||
MISSING=$(cat i18n-extract/${file##*/} | jq '.missingKeys | length')
|
||||
UNUSED=$(cat i18n-extract/${file##*/} | jq '.unusedKeys | length')
|
||||
echo "::set-output name=$file::|${file##*/}|${MISSING}|${UNUSED}|"
|
||||
echo "$file=|${file##*/}|${MISSING}|${UNUSED}|" >> $GITHUB_OUTPUT
|
||||
done
|
||||
- name: Comment PR
|
||||
uses: thollander/actions-comment-pull-request@v2
|
||||
|
||||
@@ -4,7 +4,7 @@ on:
|
||||
push:
|
||||
branches: ['master', 'develop']
|
||||
tags:
|
||||
- '*'
|
||||
- 'v*'
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
@@ -39,7 +39,9 @@ jobs:
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
|
||||
type=edge,branch=develop
|
||||
type=ref,event=tag
|
||||
type=semver,pattern=v{{major}}
|
||||
type=semver,pattern=v{{major}}.{{minor}}
|
||||
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
|
||||
+1108
-1057
File diff suppressed because it is too large.
Load diff
+28
-14
@@ -9,11 +9,11 @@ header = """
|
||||
# https://tera.netlify.app/docs/#introduction
|
||||
body = """
|
||||
{% for group, commits in commits | group_by(attribute="group") %}\
|
||||
### {{ group | split(pat="$") | last | upper_first }}
|
||||
### {{ group | striptags | trim | upper_first }}
|
||||
{% for commit in commits
|
||||
| filter(attribute="scope")
|
||||
| sort(attribute="scope") %}
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }}\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
@@ -23,7 +23,7 @@ body = """
|
||||
{%- if commit.scope -%}
|
||||
{% else -%}
|
||||
{% raw %}\n{% endraw %}\
|
||||
- {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
- {{ commit.message | upper_first | trim }}\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
@@ -39,6 +39,12 @@ trim = true
|
||||
footer = """
|
||||
"""
|
||||
|
||||
# postprocessors
|
||||
postprocessors = [
|
||||
{ pattern = '<REPO>', replace = "https://github.com/mainsail-crew/mainsail" }, # replace repository URL
|
||||
]
|
||||
|
||||
|
||||
[git]
|
||||
# allow only conventional commits
|
||||
# https://www.conventionalcommits.org
|
||||
@@ -46,21 +52,29 @@ conventional_commits = true
|
||||
filter_unconventional = true
|
||||
# regex for parsing and grouping commits
|
||||
commit_parsers = [
|
||||
|
||||
# Commits to skip
|
||||
{ message = "^docs\\(changelog\\):", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^chore\\(changelog\\): update changelog", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^chore: push version number to", group = "9$Other", skip = true}, # Old redundant commits
|
||||
{ message = "^feat(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^feature(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^fix(\\(.*\\))?:", group = "2$Bug Fixes and Improvements"},
|
||||
{ message = "^docs(\\(.*\\))?:", group = "7$Documentation"},
|
||||
{ message = "^perf(\\(.*\\))?:", group = "3$Performance"},
|
||||
{ message = "^refactor(\\(.*\\))?:", group = "4$Refactor"},
|
||||
{ message = "^style(\\(.*\\))?:", group = "5$Styling"},
|
||||
{ message = "^test(\\(.*\\))?:", group = "9$Other"},
|
||||
{ message = "^locale(\\(.*\\))?:", group = "6$Localization"},
|
||||
{ message = "^chore(\\(.*\\))?:", group = "9$Other"},
|
||||
{ message = "^chore\\(changelog\\): update changelog", group = "Changelog", skip = true}, # Old redundant commits
|
||||
|
||||
# Commits to parse
|
||||
{ message = "^feat(\\(.*\\))?:", group = "<!-- 1 -->Features"},
|
||||
{ message = "^feature(\\(.*\\))?:", group = "<!-- 1 -->Features"},
|
||||
{ message = "^fix(\\(.*\\))?:", group = "<!-- 2 -->Bug Fixes and Improvements"},
|
||||
{ message = "^perf(\\(.*\\))?:", group = "<!-- 3 -->Performance"},
|
||||
{ message = "^refactor(\\(.*\\))?:", group = "<!-- 4 -->Refactor"},
|
||||
{ message = "^style(\\(.*\\))?:", group = "<!-- 5 -->Styling"},
|
||||
{ message = "^locale(\\(.*\\))?:", group = "<!-- 6 -->Localization"},
|
||||
{ message = "^docs(\\(.*\\))?:", group = "<!-- 7 -->Documentation"},
|
||||
{ message = "^test(\\(.*\\))?:", group = "<!-- 8 -->Other"},
|
||||
{ message = "^chore(\\(.*\\))?:", group = "<!-- 8 -->Other"},
|
||||
|
||||
{ body = ".*security", group = "Security"},
|
||||
]
|
||||
commit_preprocessors = [
|
||||
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/pull/${2}))" },
|
||||
]
|
||||
# filter out the commits that are not matched by commit parsers
|
||||
filter_commits = true
|
||||
ignore_tags="v*-(beta|rc)*"
|
||||
|
||||
+29
-15
@@ -17,11 +17,11 @@ body = """
|
||||
## [unreleased]
|
||||
{% endif %}\
|
||||
{% for group, commits in commits | group_by(attribute="group") %}\
|
||||
### {{ group | split(pat="$") | last | upper_first }}
|
||||
### {{ group | striptags | trim | upper_first }}
|
||||
{% for commit in commits
|
||||
| filter(attribute="scope")
|
||||
| sort(attribute="scope") %}
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }}\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
@@ -30,7 +30,7 @@ body = """
|
||||
{%- if commit.scope -%}
|
||||
{% else -%}
|
||||
{% raw %}\n{% endraw %}\
|
||||
- {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
- {{ commit.message | upper_first | trim }}\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
@@ -45,6 +45,11 @@ trim = true
|
||||
footer = """
|
||||
"""
|
||||
|
||||
# postprocessors
|
||||
postprocessors = [
|
||||
{ pattern = '<REPO>', replace = "https://github.com/mainsail-crew/mainsail" }, # replace repository URL
|
||||
]
|
||||
|
||||
[git]
|
||||
# allow only conventional commits
|
||||
# https://www.conventionalcommits.org
|
||||
@@ -52,21 +57,30 @@ conventional_commits = true
|
||||
filter_unconventional = false
|
||||
# regex for parsing and grouping commits
|
||||
commit_parsers = [
|
||||
|
||||
# Commits to skip
|
||||
{ message = "^docs\\(changelog\\):", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^chore\\(changelog\\): update changelog", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^chore: push version number to", group = "9$Other", skip = true}, # Old redundant commits
|
||||
{ message = "^feat(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^feature(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^fix(\\(.*\\))?:", group = "2$Bug Fixes and Improvements"},
|
||||
{ message = "^docs(\\(.*\\))?:", group = "7$Documentation"},
|
||||
{ message = "^perf(\\(.*\\))?:", group = "3$Performance"},
|
||||
{ message = "^refactor(\\(.*\\))?:", group = "4$Refactor"},
|
||||
{ message = "^style(\\(.*\\))?:", group = "5$Styling"},
|
||||
{ message = "^test(\\(.*\\))?:", group = "9$Other"},
|
||||
{ message = "^locale(\\(.*\\))?:", group = "6$Localization"},
|
||||
{ message = "^chore(\\(.*\\))?:", group = "9$Other"},
|
||||
{ body = ".*security", group = "Security"},
|
||||
{ message = "^chore\\(changelog\\): update changelog", group = "Changelog", skip = true}, # Old redundant commits
|
||||
|
||||
# Commits to parse
|
||||
{ message = "^feat(\\(.*\\))?:", group = "<!-- 1 -->Features"},
|
||||
{ message = "^feature(\\(.*\\))?:", group = "<!-- 1 -->Features"},
|
||||
{ message = "^fix(\\(.*\\))?:", group = "<!-- 2 -->Bug Fixes and Improvements"},
|
||||
{ message = "^perf(\\(.*\\))?:", group = "<!-- 3 -->Performance"},
|
||||
{ message = "^refactor(\\(.*\\))?:", group = "<!-- 4 -->Refactor"},
|
||||
{ message = "^style(\\(.*\\))?:", group = "<!-- 5 -->Styling"},
|
||||
{ message = "^locale(\\(.*\\))?:", group = "<!-- 6 -->Localization"},
|
||||
{ message = "^docs(\\(.*\\))?:", group = "<!-- 7 -->Documentation"},
|
||||
{ message = "^test(\\(.*\\))?:", group = "<!-- 8 -->Other"},
|
||||
{ message = "^chore(\\(.*\\))?:", group = "<!-- 8 -->Other"},
|
||||
|
||||
{ message = "release v2.1.2", group = "Release"}, # workaround for v2.1.2 release
|
||||
|
||||
{ body = ".*security", group = "Security"},
|
||||
]
|
||||
commit_preprocessors = [
|
||||
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/pull/${2}))" },
|
||||
]
|
||||
# filter out the commits that are not matched by commit parsers
|
||||
filter_commits = true
|
||||
|
||||
Generated
+688
-630
File diff suppressed because it is too large.
Load diff
+11
-9
@@ -34,10 +34,8 @@
|
||||
"@jaames/iro": "^5.5.2",
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@sindarius/gcodeviewer": "^3.2.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"@uiw/codemirror-theme-vscode": "^4.19.11",
|
||||
"axios": "^0.27.0",
|
||||
"axios": "^1.6.0",
|
||||
"codemirror": "^6.0.1",
|
||||
"core-js": "^3.16.0",
|
||||
"detect-browser": "^5.3.0",
|
||||
@@ -45,12 +43,12 @@
|
||||
"echarts-gl": "^2.0.8",
|
||||
"hls.js": "^1.3.3",
|
||||
"jmuxer": "^2.0.5",
|
||||
"js-sha256": "^0.9.0",
|
||||
"js-sha256": "^0.10.0",
|
||||
"lodash.kebabcase": "^4.1.1",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
"overlayscrollbars": "^1.13.1",
|
||||
"overlayscrollbars-vue": "^0.2.2",
|
||||
"regenerator-runtime": "^0.13.9",
|
||||
"regenerator-runtime": "^0.14.0",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"semver": "^7.5.2",
|
||||
"typed_janus_js": "^1.0.14",
|
||||
@@ -76,8 +74,10 @@
|
||||
"@types/jmuxer": "^2.0.3",
|
||||
"@types/lodash.kebabcase": "^4.1.6",
|
||||
"@types/lodash.throttle": "^4.1.6",
|
||||
"@types/node": "^20.0.0",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"@types/semver": "^7.3.8",
|
||||
"@types/uuid": "^8.3.1",
|
||||
"@types/uuid": "^9.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||||
"@typescript-eslint/parser": "^6.0.0",
|
||||
"@vue/eslint-config-typescript": "^12.0.0",
|
||||
@@ -87,13 +87,15 @@
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-plugin-jsonc": "^2.2.1",
|
||||
"eslint-plugin-vue": "^9.0.0",
|
||||
"postcss": "^8.4.31",
|
||||
"postcss-nesting": "^12.0.1",
|
||||
"prettier": "^3.0.0",
|
||||
"sass": "~1.32",
|
||||
"start-server-and-test": "^1.14.0",
|
||||
"start-server-and-test": "^2.0.0",
|
||||
"typescript": "^4.5.5",
|
||||
"unplugin-vue-components": "^0.22.12",
|
||||
"vite": "^3.2.7",
|
||||
"vite-plugin-checker": "^0.5.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-checker": "^0.6.0",
|
||||
"vite-plugin-package-version": "^1.0.2",
|
||||
"vite-plugin-pwa": "^0.16.4",
|
||||
"vite-plugin-vue2": "^2.0.1",
|
||||
|
||||
+7
-6
@@ -40,6 +40,7 @@ import TheUploadSnackbar from '@/components/TheUploadSnackbar.vue'
|
||||
import TheManualProbeDialog from '@/components/dialogs/TheManualProbeDialog.vue'
|
||||
import TheBedScrewsDialog from '@/components/dialogs/TheBedScrewsDialog.vue'
|
||||
import TheScrewsTiltAdjustDialog from '@/components/dialogs/TheScrewsTiltAdjustDialog.vue'
|
||||
import { setAndLoadLocale } from './plugins/i18n'
|
||||
|
||||
Component.registerHooks(['metaInfo'])
|
||||
|
||||
@@ -162,8 +163,8 @@ export default class App extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
@Watch('language')
|
||||
languageChanged(newVal: string): void {
|
||||
this.$i18n.locale = newVal
|
||||
async languageChanged(newVal: string): Promise<void> {
|
||||
await setAndLoadLocale(newVal)
|
||||
}
|
||||
|
||||
@Watch('customStylesheet')
|
||||
@@ -310,10 +311,10 @@ export default class App extends Mixins(BaseMixin) {
|
||||
<style>
|
||||
@import './assets/styles/fonts.css';
|
||||
@import './assets/styles/toastr.css';
|
||||
@import './assets/styles/page.scss';
|
||||
@import './assets/styles/sidebar.scss';
|
||||
@import './assets/styles/utils.scss';
|
||||
@import './assets/styles/updateManager.scss';
|
||||
@import './assets/styles/page.css';
|
||||
@import './assets/styles/sidebar.css';
|
||||
@import './assets/styles/utils.css';
|
||||
@import './assets/styles/updateManager.css';
|
||||
|
||||
:root {
|
||||
--app-height: 100%;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,12 +1,3 @@
|
||||
@mixin no-select {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.user-select-none {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
@@ -124,7 +124,7 @@ export default class CommandHelpModal extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.command-help-content {
|
||||
overflow-x: hidden;
|
||||
|
||||
|
||||
@@ -341,7 +341,7 @@ export default class TheEditor extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
::v-deep .ͼ1 .cm-panel.cm-search *:focus:not(.focus-visible) {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ export default class TempChart extends Mixins(BaseMixin) {
|
||||
}
|
||||
if (seriesNameTarget in dataset.value) {
|
||||
output += ' / '
|
||||
const value = dataset.value[seriesNameTemperature]
|
||||
const value = dataset.value[seriesNameTarget]
|
||||
output += value !== null ? value.toFixed(1) : '--'
|
||||
}
|
||||
output += '°C'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped lang="scss"></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<div :class="'consoleTable ' + (isMini ? 'mini' : '')">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped lang="scss">
|
||||
<style scoped>
|
||||
.consoleTableRow {
|
||||
font-family: 'Roboto Mono', monospace;
|
||||
font-size: 0.95em;
|
||||
|
||||
@@ -52,7 +52,11 @@
|
||||
</template>
|
||||
|
||||
<template #item="{ item }">
|
||||
<SpoolmanChangeSpoolDialogRow :key="item.id" :spool="item" @set-spool="setSpool" />
|
||||
<SpoolmanChangeSpoolDialogRow
|
||||
:key="item.id"
|
||||
:spool="item"
|
||||
:max_id_digits="max_spool_id_digits"
|
||||
@set-spool="setSpool" />
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card-text>
|
||||
@@ -87,6 +91,15 @@ export default class SpoolmanChangeSpoolDialog extends Mixins(BaseMixin) {
|
||||
return this.$store.state.server.spoolman.spools ?? []
|
||||
}
|
||||
|
||||
get max_spool_id_digits(): number {
|
||||
const max_id = this.$store.state.server.spoolman.spools.reduce(
|
||||
(x: number, s: ServerSpoolmanStateSpool) => Math.max(x, s.id),
|
||||
0
|
||||
)
|
||||
|
||||
return max_id.toString().length
|
||||
}
|
||||
|
||||
get headers() {
|
||||
return [
|
||||
{
|
||||
|
||||
@@ -3,8 +3,16 @@
|
||||
<td style="width: 50px" class="pr-0 py-2">
|
||||
<spool-icon :color="color" style="width: 50px; float: left" class="mr-3" />
|
||||
</td>
|
||||
|
||||
<td class="py-2" style="min-width: 300px">
|
||||
<strong class="text-no-wrap">{{ vendor }} - {{ name }}</strong>
|
||||
<v-list-item two-line>
|
||||
<v-list-item-content class="no--padding">
|
||||
<div class="text--disabled mb-1">#{{ id }} | {{ vendor }}</div>
|
||||
<v-list-item-title class="mb-1">
|
||||
<span class="text--filament">{{ name }}</span>
|
||||
</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
<template v-if="location">
|
||||
<br />
|
||||
{{ $t('Panels.SpoolmanPanel.Location') }}: {{ location }}
|
||||
@@ -31,12 +39,25 @@ import { ServerSpoolmanStateSpool } from '@/store/server/spoolman/types'
|
||||
@Component({})
|
||||
export default class SpoolmanChangeSpoolDialogRow extends Mixins(BaseMixin) {
|
||||
@Prop({ required: true }) declare readonly spool: ServerSpoolmanStateSpool
|
||||
@Prop({ required: false }) declare readonly max_id_digits: number
|
||||
|
||||
get color() {
|
||||
const color = this.spool.filament?.color_hex ?? '000'
|
||||
|
||||
return `#${color}`
|
||||
}
|
||||
|
||||
get id() {
|
||||
// add leading zeros depending on max_id digit count
|
||||
let id: string = this.spool.id.toString()
|
||||
|
||||
while (id.length < this.max_id_digits) {
|
||||
id = '0' + id
|
||||
}
|
||||
|
||||
return id
|
||||
}
|
||||
|
||||
get vendor() {
|
||||
return this.spool.filament?.vendor?.name ?? 'Unknown'
|
||||
}
|
||||
@@ -102,3 +123,12 @@ export default class SpoolmanChangeSpoolDialogRow extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.text--filament {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.no--padding {
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -48,7 +48,7 @@ export default class SpoolmanEjectSpoolDialog extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
removeSpool() {
|
||||
this.$store.dispatch('server/spoolman/setActiveSpool', 0)
|
||||
this.$store.dispatch('server/spoolman/setActiveSpool', null)
|
||||
this.close()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,9 @@ export default class StartPrintDialogSpoolman extends Mixins(BaseMixin) {
|
||||
return alerts
|
||||
}
|
||||
|
||||
const gcodeFilamentType = this.file.filament_type ?? ''
|
||||
let gcodeFilamentType = this.file.filament_type ?? ''
|
||||
if (gcodeFilamentType.includes(';')) gcodeFilamentType = gcodeFilamentType.split(';')[0]
|
||||
|
||||
if (
|
||||
gcodeFilamentType !== '' &&
|
||||
this.activeSpool?.filament?.material?.toLowerCase() !== gcodeFilamentType.toLowerCase()
|
||||
|
||||
@@ -173,4 +173,4 @@ export default class TheBedScrewsDialog extends Mixins(BaseMixin, ControlMixin)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
@@ -181,7 +181,7 @@ export default class TheManualProbeDialog extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.v-btn-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -183,11 +183,7 @@ export default class BaseMixin extends Vue {
|
||||
}
|
||||
|
||||
get hours12Format() {
|
||||
const setting = this.$store.state.gui.general.timeFormat
|
||||
if (setting === '12hours') return true
|
||||
if (setting === null && this.browserLocale === 'en-US') return true
|
||||
|
||||
return false
|
||||
return this.$store.getters['gui/getHours12Format']
|
||||
}
|
||||
|
||||
formatDate(value: number | Date): string {
|
||||
|
||||
@@ -9,6 +9,7 @@ import { GuiNavigationStateEntry } from '@/store/gui/navigation/types'
|
||||
export interface NaviPoint {
|
||||
type: 'link' | 'route'
|
||||
title: string
|
||||
orgTitle?: string
|
||||
to?: string
|
||||
href?: string
|
||||
target?: string
|
||||
@@ -53,6 +54,7 @@ export default class NavigationMixin extends Mixins(BaseMixin) {
|
||||
points.push({
|
||||
type: 'route',
|
||||
title: this.$t(`Router.${element.title}`),
|
||||
orgTitle: element.title,
|
||||
icon: element.icon,
|
||||
to: element.path,
|
||||
position,
|
||||
|
||||
@@ -274,7 +274,7 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ExtruderMixi
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
._btn-group {
|
||||
border-radius: 4px;
|
||||
display: inline-flex;
|
||||
|
||||
@@ -49,14 +49,13 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
._btn-group {
|
||||
border-radius: 4px;
|
||||
display: inline-flex;
|
||||
flex-wrap: nowrap;
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
width: 100%;
|
||||
|
||||
.v-btn {
|
||||
border-radius: 0;
|
||||
|
||||
@@ -51,6 +51,32 @@
|
||||
</span>
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
<!-- FILAMENT PURGE -->
|
||||
<v-list-item v-if="purgeFilamentMacro">
|
||||
<v-tooltip top :disabled="canExecutePurgeMacro" color="secondary">
|
||||
<template #activator="{ on }">
|
||||
<div v-on="on">
|
||||
<macro-button
|
||||
:macro="purgeFilamentMacro"
|
||||
:alias="$t('Panels.ExtruderControlPanel.PurgeFilament')"
|
||||
:disabled="!canExecutePurgeMacro || printerIsPrintingOnly"
|
||||
color="#272727" />
|
||||
</div>
|
||||
</template>
|
||||
<span>
|
||||
{{ $t('Panels.ExtruderControlPanel.ExtruderTempTooLow') }}
|
||||
{{ minExtrudeTemp }} °C
|
||||
</span>
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
<!-- NOZZLE CLEAN -->
|
||||
<v-list-item v-if="cleanNozzleMacro">
|
||||
<macro-button
|
||||
:macro="cleanNozzleMacro"
|
||||
:alias="$t('Panels.ExtruderControlPanel.CleanNozzle')"
|
||||
:disabled="printerIsPrintingOnly"
|
||||
color="#272727" />
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</template>
|
||||
@@ -99,11 +125,27 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
|
||||
}
|
||||
|
||||
get loadFilamentMacro(): PrinterStateMacro | undefined {
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name.toUpperCase() === 'LOAD_FILAMENT')
|
||||
const macros = ['LOAD_FILAMENT', 'FILAMENT_LOAD']
|
||||
|
||||
return this.macros.find((macro: PrinterStateMacro) => macros.includes(macro.name.toUpperCase()))
|
||||
}
|
||||
|
||||
get unloadFilamentMacro(): PrinterStateMacro | undefined {
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name.toUpperCase() === 'UNLOAD_FILAMENT')
|
||||
const macros = ['UNLOAD_FILAMENT', 'FILAMENT_UNLOAD']
|
||||
|
||||
return this.macros.find((macro: PrinterStateMacro) => macros.includes(macro.name.toUpperCase()))
|
||||
}
|
||||
|
||||
get purgeFilamentMacro(): PrinterStateMacro | undefined {
|
||||
const macros = ['PURGE_FILAMENT', 'FILAMENT_PURGE']
|
||||
|
||||
return this.macros.find((macro: PrinterStateMacro) => macros.includes(macro.name.toUpperCase()))
|
||||
}
|
||||
|
||||
get cleanNozzleMacro(): PrinterStateMacro | undefined {
|
||||
const macros = ['CLEAN_NOZZLE', 'NOZZLE_CLEAN', 'WIPE_NOZZLE', 'NOZZLE_WIPE']
|
||||
|
||||
return this.macros.find((macro: PrinterStateMacro) => macros.includes(macro.name.toUpperCase()))
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -122,6 +164,12 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
|
||||
return this.heatWaitGcodes.some((gcode) => this.unloadFilamentMacro?.prop.gcode.includes(gcode))
|
||||
}
|
||||
|
||||
get canExecutePurgeMacro(): boolean {
|
||||
if (this.extrudePossible) return true
|
||||
|
||||
return this.heatWaitGcodes.some((gcode) => this.purgeFilamentMacro?.prop.gcode.includes(gcode))
|
||||
}
|
||||
|
||||
get showFilamentMacros(): boolean {
|
||||
return this.loadFilamentMacro !== undefined || this.unloadFilamentMacro !== undefined
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ export default class GitCommitsList extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.groupedCommits {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export default class GitCommitsListDayCommit extends Mixins(BaseMixin) {
|
||||
commitDay.setHours(0, 0, 0, 0)
|
||||
const todayDay = new Date()
|
||||
todayDay.setHours(0, 0, 0, 0)
|
||||
const diff = Math.floor(todayDay.getTime() - commitDay.getTime()) / (1000 * 60 * 60 * 24)
|
||||
const diff = Math.floor((todayDay.getTime() - commitDay.getTime()) / (1000 * 60 * 60 * 24))
|
||||
|
||||
if (diff === 0) {
|
||||
const diffHours = Math.floor((new Date().getTime() - this.commit.date * 1000) / (1000 * 60 * 60))
|
||||
@@ -99,7 +99,7 @@ export default class GitCommitsListDayCommit extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
li.commit {
|
||||
border-color: rgb(48, 54, 61);
|
||||
border-style: solid;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<panel
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<div v-if="['printing', 'paused'].includes(printer_state) && printing_objects.length">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
svg {
|
||||
//background: rgba(200, 200, 200);
|
||||
border: 2px solid #888;
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.filesJobqueue {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ export default class StatusPanelJobqueueEntry extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.filesJobqueue {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<v-card-text class="pa-0">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
<template>
|
||||
<v-card-text class="pa-0">
|
||||
|
||||
@@ -223,7 +223,7 @@ export default class StatusPanelPrintstatusThumbnail extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.statusPanel-big-thumbnail {
|
||||
transition: height 0.25s ease-out;
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
._border-radius {
|
||||
border-bottom-left-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
|
||||
@@ -155,7 +155,7 @@ export default class TemperaturePanelList extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.temperature-panel-table th,
|
||||
.temperature-panel-table ::v-deep td {
|
||||
padding-top: 5px !important;
|
||||
|
||||
@@ -273,7 +273,7 @@ export default class TemperaturePanelListItem extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
::v-deep .v-icon._no-focus-style:focus::after {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ export default class TemperaturePanelListItemNevermore extends Mixins(BaseMixin)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
::v-deep .v-icon._no-focus-style:focus::after {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ export default class TemperaturePanelPresets extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
._preset-title {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.btnHomeAxis {
|
||||
width: 36px;
|
||||
min-width: 36px !important;
|
||||
|
||||
@@ -706,7 +706,7 @@ export default class CircleControl extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
svg {
|
||||
max-height: 350px;
|
||||
min-height: 275px;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.btnMinWidthAuto {
|
||||
min-width: auto !important;
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ export default class ZoffsetControl extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.v-btn-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -82,6 +82,25 @@ export default class SettingsGeneralTab extends Mixins(BaseMixin, SettingsGenera
|
||||
mdiHelpCircle = mdiHelpCircle
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
availableLanguages: { text: string; value: string }[] = []
|
||||
|
||||
async created() {
|
||||
const locales = import.meta.glob<string>('../../locales/*.json', { import: 'title' })
|
||||
const languages: { text: string; value: string }[] = []
|
||||
|
||||
for (const file in locales) {
|
||||
const langKey = file.slice(file.lastIndexOf('.') - 2, file.lastIndexOf('.'))
|
||||
const title = await locales[file]()
|
||||
|
||||
languages.push({
|
||||
text: title,
|
||||
value: langKey,
|
||||
})
|
||||
}
|
||||
|
||||
this.availableLanguages = languages
|
||||
}
|
||||
|
||||
get printerName() {
|
||||
return this.$store.state.gui.general.printername
|
||||
}
|
||||
@@ -98,22 +117,6 @@ export default class SettingsGeneralTab extends Mixins(BaseMixin, SettingsGenera
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'general.language', value: newVal })
|
||||
}
|
||||
|
||||
get availableLanguages() {
|
||||
const locales = import.meta.glob('../../locales/*.json', { eager: true }) as { [key: string]: any }
|
||||
const languages: { text: string; value: string }[] = []
|
||||
|
||||
Object.keys(locales).map((file: string) => {
|
||||
const langKey = file.slice(file.lastIndexOf('.') - 2, file.lastIndexOf('.'))
|
||||
|
||||
languages.push({
|
||||
text: locales[file].title,
|
||||
value: langKey,
|
||||
})
|
||||
})
|
||||
|
||||
return languages
|
||||
}
|
||||
|
||||
get dateFormat() {
|
||||
return this.$store.state.gui.general.dateFormat
|
||||
}
|
||||
|
||||
@@ -78,4 +78,4 @@ export default class SettingsMiscellaneousTab extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
@@ -233,4 +233,4 @@ export default class SettingsMiscellaneousTabLightGroups extends Mixins(BaseMixi
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
@@ -464,4 +464,4 @@ export default class SettingsMiscellaneousTabLightPresets extends Mixins(BaseMix
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
@@ -34,7 +34,7 @@ export default class SettingsNavigationTab extends Mixins(NavigationMixin, BaseM
|
||||
newVal.forEach((naviPoint, index) => {
|
||||
this.$store.dispatch('gui/navigation/updatePos', {
|
||||
type: naviPoint.type,
|
||||
title: naviPoint.title,
|
||||
title: naviPoint.orgTitle ?? naviPoint.title,
|
||||
visible: naviPoint.visible,
|
||||
position: index + 1,
|
||||
})
|
||||
|
||||
@@ -322,7 +322,7 @@ export default class WebcamForm extends Mixins(BaseMixin, WebcamMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
::v-deep ._transition svg {
|
||||
transition: transform 500ms;
|
||||
}
|
||||
|
||||
@@ -70,4 +70,4 @@ export default class WebcamListEntry extends Mixins(BaseMixin, WebcamMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped></style>
|
||||
@@ -83,7 +83,7 @@ export default class Panel extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.expanded header.v-toolbar {
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
@@ -107,7 +107,7 @@ export default class Panel extends Mixins(BaseMixin) {
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
<style>
|
||||
.v-card.panel .v-toolbar__content {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.btn-collapsible > * {
|
||||
will-change: transform;
|
||||
transition: transform 500ms;
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="service === 'mjpegstreamer'">
|
||||
<mjpegstreamer :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
<mjpegstreamer-async :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'mjpegstreamer-adaptive'">
|
||||
<mjpegstreamer-adaptive :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
<mjpegstreamer-adaptive-async :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'uv4l-mjpeg'">
|
||||
<uv4l-mjpeg :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<uv4l-mjpeg-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'ipstream'">
|
||||
<ipstreamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<ipstreamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'hlsstream'">
|
||||
<hlsstreamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<hlsstreamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'jmuxer-stream'">
|
||||
<j-muxer-stream :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<j-muxer-stream-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-camerastreamer'">
|
||||
<webrtc-camera-streamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<webrtc-camera-streamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-janus'">
|
||||
<janus-streamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<janus-streamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-mediamtx'">
|
||||
<webrtc-media-m-t-x :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<webrtc-media-m-t-x-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
@@ -38,18 +38,19 @@ import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
import { DynamicCamLoader } from '@/components/webcams/streamers/DynamicCamLoader'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
Hlsstreamer: () => import('@/components/webcams/Hlsstreamer.vue'),
|
||||
Ipstreamer: () => import('@/components/webcams/Ipstreamer.vue'),
|
||||
JanusStreamer: () => import('@/components/webcams/JanusStreamer.vue'),
|
||||
JMuxerStream: () => import('@/components/webcams/JMuxerStream.vue'),
|
||||
Mjpegstreamer: () => import('@/components/webcams/Mjpegstreamer.vue'),
|
||||
MjpegstreamerAdaptive: () => import('@/components/webcams/MjpegstreamerAdaptive.vue'),
|
||||
Uv4lMjpeg: () => import('@/components/webcams/Uv4lMjpeg.vue'),
|
||||
WebrtcCameraStreamer: () => import('@/components/webcams/WebrtcCameraStreamer.vue'),
|
||||
WebrtcMediaMTX: () => import('@/components/webcams/WebrtcMediaMTX.vue'),
|
||||
HlsstreamerAsync: DynamicCamLoader('Hlsstreamer'),
|
||||
IpstreamerAsync: DynamicCamLoader('Ipstreamer'),
|
||||
JanusStreamerAsync: DynamicCamLoader('JanusStreamer'),
|
||||
JMuxerStreamAsync: DynamicCamLoader('JMuxerStream'),
|
||||
MjpegstreamerAsync: DynamicCamLoader('Mjpegstreamer'),
|
||||
MjpegstreamerAdaptiveAsync: DynamicCamLoader('MjpegstreamerAdaptive'),
|
||||
Uv4lMjpegAsync: DynamicCamLoader('Uv4lMjpeg'),
|
||||
WebrtcCameraStreamerAsync: DynamicCamLoader('WebrtcCameraStreamer'),
|
||||
WebrtcMediaMTXAsync: DynamicCamLoader('WebrtcMediaMTX'),
|
||||
},
|
||||
})
|
||||
export default class WebcamWrapperItem extends Mixins(BaseMixin) {
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
type StreamerTypes =
|
||||
| 'Hlsstreamer'
|
||||
| 'Ipstreamer'
|
||||
| 'JanusStreamer'
|
||||
| 'JMuxerStream'
|
||||
| 'Mjpegstreamer'
|
||||
| 'MjpegstreamerAdaptive'
|
||||
| 'Uv4lMjpeg'
|
||||
| 'WebrtcCameraStreamer'
|
||||
| 'WebrtcMediaMTX'
|
||||
|
||||
function getDynamicCamImport(componentName: StreamerTypes) {
|
||||
// split each webcam streamer into its own chunk
|
||||
switch (componentName) {
|
||||
case 'Hlsstreamer':
|
||||
return () => import('@/components/webcams/streamers/Hlsstreamer.vue')
|
||||
case 'Ipstreamer':
|
||||
return () => import('@/components/webcams/streamers/Ipstreamer.vue')
|
||||
case 'JanusStreamer':
|
||||
return () => import('@/components/webcams/streamers/JanusStreamer.vue')
|
||||
case 'JMuxerStream':
|
||||
return () => import('@/components/webcams/streamers/JMuxerStream.vue')
|
||||
case 'Mjpegstreamer':
|
||||
return () => import('@/components/webcams/streamers/Mjpegstreamer.vue')
|
||||
case 'MjpegstreamerAdaptive':
|
||||
return () => import('@/components/webcams/streamers/MjpegstreamerAdaptive.vue')
|
||||
case 'Uv4lMjpeg':
|
||||
return () => import('@/components/webcams/streamers/Uv4lMjpeg.vue')
|
||||
case 'WebrtcCameraStreamer':
|
||||
return () => import('@/components/webcams/streamers/WebrtcCameraStreamer.vue')
|
||||
case 'WebrtcMediaMTX':
|
||||
return () => import('@/components/webcams/streamers/WebrtcMediaMTX.vue')
|
||||
}
|
||||
}
|
||||
|
||||
export const DynamicCamLoader = (componentName: StreamerTypes) =>
|
||||
Vue.component(componentName, getDynamicCamImport(componentName))
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+112
-12
@@ -1,6 +1,10 @@
|
||||
{
|
||||
"App": {
|
||||
"Notifications": {
|
||||
"BrowserWarnings": {
|
||||
"Description": "{name} er forældet og ikke længere fuldt understøttet. Den nuværende version er {version}, men Mainsail kræver version {minVersion} eller højere.",
|
||||
"Headline": "Forældet browser"
|
||||
},
|
||||
"DependencyDescription": "Den nuværende version af {name} understøtter ikke alle funktioner i Mainsail. Opdatér {name} til minimum version: {neededVersion}.",
|
||||
"DependencyName": "Afhængighed: {name}",
|
||||
"DismissAll": "Fjern alle",
|
||||
@@ -30,6 +34,11 @@
|
||||
"NoEmptyAllowedError": "Må ikke være tom!"
|
||||
},
|
||||
"Printers": "Printere",
|
||||
"TheServiceWorker": {
|
||||
"DescriptionNeedUpdate": "Den lokale cahce er forældet og skal opdateres. Tryk venligst nedenfor for at opdatere.",
|
||||
"TitleNeedUpdate": "PWA skal opdateres",
|
||||
"Update": "Opdater"
|
||||
},
|
||||
"ThrottledStates": {
|
||||
"DescriptionCurrentlyThrottled": "rPi ARM kerne(r) er i øjeblikket begrænset .",
|
||||
"DescriptionFrequencyCapped": "rPi ARM maks. frekvens er i øjeblikket begrænset til 1.2 GHz.",
|
||||
@@ -52,6 +61,7 @@
|
||||
"Complete": "Færdig - {filename}",
|
||||
"Error": "Fejl",
|
||||
"Pause": "Pause",
|
||||
"PrinterOff": "Printer slukket",
|
||||
"Printing": "{percent}% printet",
|
||||
"PrintingETA": "{percent}% printet - ETA {eta}"
|
||||
},
|
||||
@@ -138,6 +148,7 @@
|
||||
"StartPrint": {
|
||||
"Cancel": "Annuller",
|
||||
"DoYouWantToStartFilename": "Vil du begynde at printe: {filename}?",
|
||||
"DoYouWantToStartFilenameFilament": "Vil du begynde at printe {filename} med dette filament?",
|
||||
"Headline": "Start print",
|
||||
"Print": "print",
|
||||
"Timelapse": "Timelapse"
|
||||
@@ -178,7 +189,10 @@
|
||||
"DeleteDirectory": "Slet mappe",
|
||||
"DeleteDirectoryQuestion": "Vil du slette mappen \"{name}\" og alt dens indhold?",
|
||||
"DeleteSelectedQuestion": "Vil du slette alle {count} valgte filer?",
|
||||
"DeleteSingleFileQuestion": "Vil du slette \"{name}\"?",
|
||||
"Download": "Download",
|
||||
"Duplicate": "Dupliker",
|
||||
"DuplicateFile": "Dupliker fil",
|
||||
"EditFile": "Rediger Fil",
|
||||
"Empty": "Tom",
|
||||
"ExtruderTemp": "Hotend temperatur",
|
||||
@@ -215,6 +229,8 @@
|
||||
"Rename": "Omdøb",
|
||||
"RenameDirectory": "Omdøb mappe",
|
||||
"RenameFile": "Omdøb Fil",
|
||||
"ScanMeta": "Skan metadata",
|
||||
"ScanMetaSuccess": "Metadata skannet fra: {filename}.",
|
||||
"Search": "Søg",
|
||||
"SetupCurrentList": "Rediger visning",
|
||||
"Slicer": "Slicer",
|
||||
@@ -279,6 +295,7 @@
|
||||
"Flat": "Fladt",
|
||||
"Heightmap": "Højdekort",
|
||||
"InvalidNameAlreadyExists": "Profilnavnet bruges allerede, vælg venligst et andet profilnavn.",
|
||||
"InvalidNameAscii": "Navnet er ugyldigt. Der kan kun bruges ascii karakterer",
|
||||
"InvalidNameEmpty": "Feltet må ikke være tomt!",
|
||||
"InvalidNameReserved": "Profilnavnet 'default' er reserveret af systemet, vælg venligst et andet profilnavn",
|
||||
"Later": "Senere",
|
||||
@@ -310,6 +327,7 @@
|
||||
"CreateNote": "Gem note",
|
||||
"Delete": "Slet",
|
||||
"DeleteSelectedQuestion": "Er du sikker på du vil slette alle {count} valgte jobs?",
|
||||
"DeleteSingleJobQuestion": "Er du sikker på du vil slette dette job?",
|
||||
"Details": "Detaljer",
|
||||
"EditNote": "Redigér note",
|
||||
"Empty": "Tom",
|
||||
@@ -397,7 +415,10 @@
|
||||
"DeleteDirectory": "Slet mappe",
|
||||
"DeleteDirectoryQuestion": "Vil du slette mappen \"{name}\" og alt dens indhold?",
|
||||
"DeleteSelectedQuestion": "Vil du slette alle {count} valgte filer?",
|
||||
"DeleteSingleFileQuestion": "Vil du slette \"{name}\"?",
|
||||
"Download": "Download",
|
||||
"Duplicate": "Dupliker",
|
||||
"DuplicateFile": "Dupliker fil",
|
||||
"EditFile": "Rediger fil",
|
||||
"Empty": "Tom",
|
||||
"Files": "Filer",
|
||||
@@ -462,7 +483,11 @@
|
||||
}
|
||||
},
|
||||
"UpdatePanel": {
|
||||
"Abort": "Afbryd",
|
||||
"AreYouSure": "Er du sikker?",
|
||||
"CheckForUpdates": "Tjek for opdateringer",
|
||||
"Close": "Luk",
|
||||
"CommitHistory": "Forpligtelseshistorik",
|
||||
"Commits": "Forpligtelse",
|
||||
"CommitsAvailable": "Ingen commits tilgængelige | {count} commits tilgængelige | {count} commits tilgængelige",
|
||||
"CommitsOnDate": " Forpligtelse af {date}",
|
||||
@@ -470,19 +495,36 @@
|
||||
"CommittedHoursAgo": "Forpligtelse delt for {hours} timer siden",
|
||||
"CommittedOnDate": "Forpligtelse delt d. {date}",
|
||||
"CommittedYesterday": "Forpligtelse delt igår",
|
||||
"ConfigChanges": "Konfigurationsændringer",
|
||||
"Corrupt": "Ødelagt",
|
||||
"CountPackagesCanBeUpgraded": "{count} pakker der kan opgraderes",
|
||||
"Detached": "Løsrevet",
|
||||
"Dirty": "Uren-kode",
|
||||
"ERROR": "FEJL",
|
||||
"GenericUpdateQuestion": "Tjek Forpligtelseshistorikken (hvis tilgængelig) og GitHub siden for dette projekt, for at se om der er behov for manuelle justeringer for denne opdatering.",
|
||||
"GitHubPage": "GitHub side",
|
||||
"HardRecovery": "Hård nulstilling",
|
||||
"InitUpdateManager": "Opdateringsmanageren er ikke initialiseret endnu. Dette er normalt ved første opstart. Klik venligst på \"Opdater\" for at initialisere alle komponenter.",
|
||||
"Invalid": "Ugyldig",
|
||||
"IUnderstandTheRisks": "Jeg forstår risisci",
|
||||
"KlipperUpdateQuestionConfig": "Denne opdatering kan indeholde ændringer til konfigurationsparametre, som efterfølgende skal modificeres i printer.cfg filen. Tjek ændringsloggen for yderligere detaljer",
|
||||
"KlipperUpdateQuestionFirmware": "Denne opdatering kan indeholde ændringer til værts-firmwaren. Bundkortet skal muligvis flashes med opdateret firmware før printeren kan bruges igen.",
|
||||
"LinkToGithub": "Link til GitHub",
|
||||
"MoonrakerUpdateQuestion": "Dette vil opdatere Moonraker API. Det kan være nødvendigt at ændre i moonraker.conf filen før printeren kan bruges igen.",
|
||||
"MoreCommitsInfo": "Der kan maksimalt vises 30 forpligtelser her. For at se dem alle, tryk her:",
|
||||
"OSPackages": "OS-Pakker",
|
||||
"PackagesCanBeUpgraded": "Pakker kan opgraderes",
|
||||
"SoftRecovery": "Blød nulstilling",
|
||||
"StartUpdate": "Start opdatering",
|
||||
"System": "System",
|
||||
"ThesePackagesCanBeUpgrade": "Pakker kan opgraderes",
|
||||
"Unknown": "Ukendt",
|
||||
"Update": "Opdater",
|
||||
"UpdateAll": "Opdater alle komponenter",
|
||||
"UpdateManager": "Opdateringsmanager",
|
||||
"UpdateWarning": "Opdateringsadvarsel: {name}",
|
||||
"Upgrade": "Opgrader",
|
||||
"UpToDate": "up-to-date"
|
||||
"UpgradeableSystemPackages": "Systempakker med opdateringer",
|
||||
"UpToDate": "up-to-date",
|
||||
"WebClientUpdateQuestion": "I visse tilfælde kan opdateringer til webklienten forårsage problemer med inkompatibilitet. Se ændingsloggen for yderligere information"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
@@ -547,6 +589,7 @@
|
||||
"Send": "Send"
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Autoscroll": "Automatisk rulning",
|
||||
"Headline": "Terminal",
|
||||
"HideTemperatures": "Skjul temperaturer",
|
||||
"HideTimelapse": "Skjul Timelapse",
|
||||
@@ -579,6 +622,32 @@
|
||||
"On": "Tænd",
|
||||
"PowerControl": "Strømstyring"
|
||||
},
|
||||
"SpoolmanPanel": {
|
||||
"Cancel": "Annuller",
|
||||
"ChangeSpool": "Skift spool",
|
||||
"DaysAgo": "{days} dage siden",
|
||||
"EjectSpool": "Afmontér spole",
|
||||
"EjectSpoolQuestion": "Er du sikker på du ønsker at afmontere spolen?",
|
||||
"Filament": "Filament",
|
||||
"FilamentTypeMismatch": "Materialet på den aktive spole({spoolType}) matcher ikke materialet i G-koden ({fileType}).",
|
||||
"Headline": "Spoolman",
|
||||
"LastUsed": "Sidst brugt",
|
||||
"Location": "Placering",
|
||||
"Material": "Materiale",
|
||||
"Never": "Aldrig",
|
||||
"NoActiveSpool": "Filamentforbrug registreres ikke. Vælg en spole for at begynde.",
|
||||
"NoResults": "Ingen spole fundet der matcher søgekriterierne.",
|
||||
"NoSpools": "Ingen spoler tilgængelige",
|
||||
"NoSpoolSelected": "Ingen spole valgt. Vælg en spole for at registrere filamentforbrug.",
|
||||
"OpenSpoolManager": "Åben SpoolMan",
|
||||
"Refresh": "Opdatér",
|
||||
"Search": "Søg",
|
||||
"SelectSpool": "Vælg spole",
|
||||
"Today": "I dag",
|
||||
"TooLessFilament": "Den nuværende spole har muligvis ikke nok filament til det valgte print. ({spoolWeight}g af {fileWeight}g)",
|
||||
"Weight": "vægt",
|
||||
"Yesterday": "Igår"
|
||||
},
|
||||
"StatusPanel": {
|
||||
"CancelPrint": "Afbryd print",
|
||||
"ClearPrintStats": "Slet printstatistik",
|
||||
@@ -640,6 +709,8 @@
|
||||
"Temperature": "Nuværende temperatur"
|
||||
},
|
||||
"Headline": "Temperaturer",
|
||||
"HideMcuHostSensors": "Skjul værts/MCU sensorer",
|
||||
"HideMonitors": "Skjul overvågere",
|
||||
"Max": "maks",
|
||||
"Min": "min",
|
||||
"Name": "Navn",
|
||||
@@ -682,9 +753,7 @@
|
||||
"SaveConfig": "GEM KONFIGURATION",
|
||||
"SaveInfoDescription": "Det nye z-offset er blevet beregnet og registreret. Klik på \"GEM KONFIGURATION\" for at gemme det nye z-offset i CONFIG og genstarte Klipper.",
|
||||
"SaveInfoDescriptionPrint": "Det nye z-offset er blevet beregnet og registreret. Klik på \"GEM KONFIGURATION\" i topbaren efter endt print for at gemme det nye z-offset i CONFIG og genstarte Klipper.",
|
||||
"SaveInfoHeadline": "Information",
|
||||
"ToEndstop": "Til Endstop",
|
||||
"ToProbe": "Til Probe"
|
||||
"SaveInfoHeadline": "Information"
|
||||
}
|
||||
},
|
||||
"PowerDeviceChangeDialog": {
|
||||
@@ -710,7 +779,8 @@
|
||||
"Accept": "Acceptér",
|
||||
"Base": "Udgangspunkt",
|
||||
"ErrorText": "Noget gik galt under målingsprocessen",
|
||||
"Headline": "Bed-skrue justering"
|
||||
"Headline": "Bed-skrue justering",
|
||||
"Retry": "Forsøg igen"
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "Tilføj Printer",
|
||||
@@ -762,7 +832,8 @@
|
||||
"Cross": "Kryds",
|
||||
"EnableXYHoming": "Aktivér kombineret X & Y homing",
|
||||
"EstimatedExtrusionInfo": "Vis estimerede ekstruderingsinformationer",
|
||||
"EstimatedExtrusionInfoDescription": "Vis/Skjul information om estimerede ekstruderinger baseret på eksrtuderingsmængde og hastighed",
|
||||
"EstimatedExtrusionInfoDescription": "Vis/Skjul information om estimerede ekstruderinger baseret på ekstruderingsmængde og hastighed",
|
||||
"HideDuringPrint": "Skjul akse kontrol under print",
|
||||
"InvertXMovement": "Invertér X",
|
||||
"InvertYMovement": "Invertér Y",
|
||||
"InvertZMovement": "Invertér Z",
|
||||
@@ -799,6 +870,9 @@
|
||||
"Editor": "Editor",
|
||||
"KlipperRestartMethod": "Metode for genstart af Klipper",
|
||||
"KlipperRestartMethodDescription": "Vælg hvilken metode der skal bruges ved brug af 'Gem & Genstart' når der redigeres i Klipper config filer.",
|
||||
"Spaces": "Mellemrum: {count}",
|
||||
"TabSize": "Tabuleringsstørrelse",
|
||||
"TabSizeDescription": "Juster hvor mange mellemrum der skal tilføjes ved tryk på TAB",
|
||||
"UseEscToClose": "Tryk ESC for at lukke Editor.",
|
||||
"UseEscToCloseDescription": "Tillader at ESC lukker Editor"
|
||||
},
|
||||
@@ -834,19 +908,20 @@
|
||||
"DbConsoleHistory": "Terminal Historik",
|
||||
"DbHistoryJobs": "Jobhistorik",
|
||||
"DbHistoryTotals": "Totalhistorik",
|
||||
"DBNavigation": "Navigation",
|
||||
"DbTimelapseSettings": "Timelapse indstillinger",
|
||||
"DbView": "Vis indstillinger",
|
||||
"DbWebcams": "Webcams",
|
||||
"EstimateValues": {
|
||||
"Filament": "Filament",
|
||||
"File": "Fil",
|
||||
"Slicer": "Slicer"
|
||||
},
|
||||
"Everything": "Alt",
|
||||
"FactoryDialog": "Vælg venligst de sektioner du ønsker at nulstille:",
|
||||
"FactoryReset": "Komplet nulstilling",
|
||||
"General": "Generelt",
|
||||
"Language": "Sprog",
|
||||
"MoonrakerDb": "Moonraker DB",
|
||||
"MainsailSettingsMoonrakerDb": "Mainsails indstillinger i Moonrakers database",
|
||||
"PrinterName": "Printernavn",
|
||||
"Reset": "Nulstil",
|
||||
"Restore": "Gendan",
|
||||
@@ -913,6 +988,9 @@
|
||||
"UnableToLoadLight": "Kunne ikke indlæse LED",
|
||||
"UnableToLoadPreset": "Kunne ikke indlæse forudindstilling"
|
||||
},
|
||||
"NavigationTab": {
|
||||
"Navigation": "Navigation"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "Tilføj forudindstilling",
|
||||
"Cooldown": "Nedkøling",
|
||||
@@ -1009,6 +1087,9 @@
|
||||
"VariableFpsMinDescription": "Mindste værdi for variabel FPS"
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BedScrewsDialog": "Bed-skrue justeringsvindue",
|
||||
"BedScrewsDialogDescription": "Viser vindue til hjælp med Bed-skrue justering.",
|
||||
"BigThumbnailBackground": "vælg baggrundsfarver for stor forhåndsvisning",
|
||||
"BoolBigThumbnail": "Stor forhåndsvisning",
|
||||
"BoolBigThumbnailDescription": "Vis et stort billede i statuspanelet under print.",
|
||||
"BoolHideUploadAndPrintButton": "Skjul \"Upload og Print\" knap",
|
||||
@@ -1017,6 +1098,13 @@
|
||||
"ConfirmOnEmergencyStopDescription": "Viser en bekræftelses dialogboks ved tryk på Nødstop",
|
||||
"ConfirmOnPowerDeviceChange": "Kræv bekræftelse ved ændringer på Enhedens strømtilstand",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Vis bekræftelse ved ændringer på Enhedens strømtilstand",
|
||||
"DefaultNavigationState": "Standard for Navigationsfanen",
|
||||
"DefaultNavigationStateAlwaysClosed": "Altid lukket",
|
||||
"DefaultNavigationStateAlwaysOpen": "Altid åben",
|
||||
"DefaultNavigationStateDescription": "Vælg standardindstilling for navigationsfanen.",
|
||||
"DefaultNavigationStateLastState": "Sidste tilstand",
|
||||
"DisableFanAnimation": "Deaktivér animation af blæsere",
|
||||
"DisableFanAnimationDescription": "Dette kan fjerne lidt af belastningen for nogle browsere.",
|
||||
"DisplayCANCEL_PRINT": "Vis Afbryd print",
|
||||
"DisplayCANCEL_PRINTDescription": "Viser Afbryd print knappen konstant - ingen tofaktor godkendelse nødvendig.",
|
||||
"GcodeThumbnails": "G-Kode forhåndsvisninger",
|
||||
@@ -1024,11 +1112,15 @@
|
||||
"Guide": "Guide",
|
||||
"HideSaveConfigButtonForBedMesh": "Skjul GEM KONFIGURATION knap for ændringer i højdekort",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Skjul GEM KONFIGURATION, hvis det kun er ændringer i højdekort der venter på at blive gemt i Klipper.",
|
||||
"HideUpdateWarnings": "Skjul opdateringsadvarsler",
|
||||
"HideUpdateWarningsDescription": "Dette vil skjule alle advarsler om opdateringer i Opdateringsmanageren.",
|
||||
"LockSliders": "Lås sliders på touch-enheder",
|
||||
"LockSlidersDelay": "Forsinkelse på låsning af sliders",
|
||||
"LockSlidersDelayDescription": "Sliders vil låse efter det angivne tidsrum (sek). Hvis sat til 0 eller efterladt tomt, vil Sliders kun låse ved opdatering/genindlæsning af siden.",
|
||||
"LockSlidersDescription": "Sliders skal låses op på touchenheder før de kan ændres.",
|
||||
"Logo": "Logo",
|
||||
"ManualProbeDialog": "Probe justeringsvindue",
|
||||
"ManualProbeDialogDescription": "Viser vindue til hjælp med justering af Proge/Z-offset",
|
||||
"NavigationStyle": "Navigationsstil",
|
||||
"NavigationStyleDescription": "Skift navigationens udseende",
|
||||
"NavigationStyleIconsAndText": "Ikoner + Tekst",
|
||||
@@ -1036,7 +1128,10 @@
|
||||
"PowerDeviceName": "Printer strømenhed",
|
||||
"PowerDeviceNameDescription": "Vælg hvilken strømenhed i Moonraker der styrer printerens strøm.",
|
||||
"Primary": "Primær",
|
||||
"ShowWebcamInNavigation": "Vis Webcam i navigation",
|
||||
"ScrewsTiltAdjustDialog": "Bed-skrue justeringsvindue til Probe",
|
||||
"ScrewsTiltAdjustDialogDescription": "Viser vindue til hjælp med Bed-skrue justeringer ved brug af proben.",
|
||||
"TempchartHeight": "Temperaturgrafens højde",
|
||||
"TempchartHeightDescription": "Ændrer højden på grafen i Temperaturvisningen.",
|
||||
"UiSettings": "UI-indstillinger"
|
||||
},
|
||||
"Update": "Opdater",
|
||||
@@ -1046,6 +1141,7 @@
|
||||
"EditCrowsnestConf": "Redigér crowsnest.conf",
|
||||
"EditWebcam": "Rediger Webcam",
|
||||
"FlipWebcam": "Vend webcam-billedet:",
|
||||
"HideFps": "Skjul FPS",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Horizontally": "horisontalt",
|
||||
"IconBed": "Bed",
|
||||
@@ -1072,7 +1168,10 @@
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikalt",
|
||||
"Webcams": "Webcams"
|
||||
"Webcams": "Webcams",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)",
|
||||
"WebrtcJanus": "WebRTC (janus-gateway)",
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX)"
|
||||
}
|
||||
},
|
||||
"Timelapse": {
|
||||
@@ -1086,6 +1185,7 @@
|
||||
"DeleteDirectory": "Slet mappe",
|
||||
"DeleteDirectoryQuestion": "Vil du slette mappen \"{name}\" og alt dens indhold?",
|
||||
"DeleteSelectedQuestion": "Er du sikker på du vil slette alle {count} valgte filer?",
|
||||
"DeleteSingleFileQuestion": "Vil du slette \"{name}\"?",
|
||||
"Download": "Download",
|
||||
"DuplicateLastframe": "Dupliker sidste frame",
|
||||
"Empty": "Ingen færdige Timelapse filer fundet.",
|
||||
|
||||
@@ -536,6 +536,7 @@
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Erlaubt",
|
||||
"CleanNozzle": "Düse reinigen",
|
||||
"EstimatedExtrusion": "Extrusion:",
|
||||
"Extrude": "Extrudieren",
|
||||
"ExtruderTempTooLow": "Extruder Temp. <",
|
||||
@@ -555,6 +556,7 @@
|
||||
"Extruder": "Extruder",
|
||||
"SmoothTime": "Smooth Time"
|
||||
},
|
||||
"PurgeFilament": "Filament reinigen",
|
||||
"Requested": "Angefordert",
|
||||
"Retract": "Rückzug",
|
||||
"TooLargeExtrusion": "Extrusion zu groß!",
|
||||
|
||||
@@ -536,6 +536,7 @@
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Allowed",
|
||||
"CleanNozzle": "Clean Nozzle",
|
||||
"EstimatedExtrusion": "Extrusion:",
|
||||
"Extrude": "Extrude",
|
||||
"ExtruderTempTooLow": "Extruder temp. <",
|
||||
@@ -555,6 +556,7 @@
|
||||
"Extruder": "Extruder",
|
||||
"SmoothTime": "Smooth Time"
|
||||
},
|
||||
"PurgeFilament": "Purge Filament",
|
||||
"Requested": "Requested",
|
||||
"Retract": "Retract",
|
||||
"TooLargeExtrusion": "Extrusion too large!",
|
||||
|
||||
+590
-490
File diff suppressed because it is too large.
Load diff
+469
-114
File diff suppressed because it is too large.
Load diff
+37
-11
@@ -137,7 +137,6 @@
|
||||
"TryAgain": "Spróbuj ponownie"
|
||||
},
|
||||
"Console": {
|
||||
"Autoscroll": "Autoprzewijanie",
|
||||
"CommandList": "Lista komend",
|
||||
"Empty": "Puste",
|
||||
"HideTemperatures": "Ukryj temperatury",
|
||||
@@ -149,6 +148,7 @@
|
||||
"StartPrint": {
|
||||
"Cancel": "Anuluj",
|
||||
"DoYouWantToStartFilename": "Czy chcesz rozpocząć druk {filename}?",
|
||||
"DoYouWantToStartFilenameFilament": "Rozpocząć {filename} z następującym filamentem?",
|
||||
"Headline": "Rozpocznij",
|
||||
"Print": "drukuj",
|
||||
"Timelapse": "Timelapse"
|
||||
@@ -465,20 +465,20 @@
|
||||
"Load": "Obciążenie",
|
||||
"Memory": "Pamięć",
|
||||
"NoMoreInfos": "Brak informacji",
|
||||
"SystemLoad": "Obciążenie systemu",
|
||||
"SystemLoad": "Obciążenia systemowe",
|
||||
"Values": {
|
||||
"Awake": "Wzbudzony: {awake}",
|
||||
"Bandwidth": "Pasmo: {bandwidth}/s",
|
||||
"Awake": "Aktywność: {awake}",
|
||||
"Bandwidth": "Przepustowość: {bandwidth}/s",
|
||||
"Distro": "Dystrybucja: {name} {version_id}",
|
||||
"Frequency": "Częstotliwość: {frequency}",
|
||||
"Load": "Obciążenie: {load}",
|
||||
"Memory": "Pamięć: {memory}",
|
||||
"Os": "OS: {os}",
|
||||
"Received": "Odebrane: {received}",
|
||||
"Os": "System: {os}",
|
||||
"Received": "Odebrano: {received}",
|
||||
"Temp": "Temp.: {temp}°C",
|
||||
"TempMax": "max: {temp}°C",
|
||||
"TempMin": "min: {temp}°C",
|
||||
"Transmitted": "Przekazywane: {transmitted}",
|
||||
"Transmitted": "Przesłano: {transmitted}",
|
||||
"Version": "Wersja: {version}"
|
||||
}
|
||||
},
|
||||
@@ -622,6 +622,32 @@
|
||||
"On": "Wł.",
|
||||
"PowerControl": "Kontrola zasilania"
|
||||
},
|
||||
"SpoolmanPanel": {
|
||||
"Cancel": "Anuluj",
|
||||
"ChangeSpool": "Zmień szpulę",
|
||||
"DaysAgo": "{days} dni temu",
|
||||
"EjectSpool": "Wysuń szpulę",
|
||||
"EjectSpoolQuestion": "Czy na pewno wysunąć szpulę filamentu?",
|
||||
"Filament": "Filament",
|
||||
"FilamentTypeMismatch": "Materiał aktywnej szpuli ({spoolType}) nie jest zgodny z materiałem G-Code ({fileType}).",
|
||||
"Headline": "Spoolman",
|
||||
"LastUsed": "Ostatnie użycie",
|
||||
"Location": "Lokalizacja",
|
||||
"Material": "Materiał",
|
||||
"Never": "Nigdy",
|
||||
"NoActiveSpool": "Śledzenie filamentu nie jest aktywne. Aby rozpocząć, wybierz szpulę.",
|
||||
"NoResults": "Nie znaleziono szpuli z bieżącymi kryteriami wyszukiwania.",
|
||||
"NoSpools": "Brak dostępnych szpul",
|
||||
"NoSpoolSelected": "Nie wybrano szpuli. Wybierz szpulę, w przeciwnym razie wydruk nie będzie śledzony.",
|
||||
"OpenSpoolManager": "Otwórz menedżer szpul",
|
||||
"Refresh": "Odśwież",
|
||||
"Search": "Szukaj",
|
||||
"SelectSpool": "Wybierz szpulę",
|
||||
"Today": "Dzisiaj",
|
||||
"TooLessFilament": "Bieżąca szpula może nie mieć wystarczającej ilości filamentu dla tego wydruku. ({spoolWeight}g z {fileWeight}g)",
|
||||
"Weight": "Waga",
|
||||
"Yesterday": "Wczoraj"
|
||||
},
|
||||
"StatusPanel": {
|
||||
"CancelPrint": "Anuluj wydruk",
|
||||
"ClearPrintStats": "Wyczyść statystyki drukarki",
|
||||
@@ -684,6 +710,7 @@
|
||||
},
|
||||
"Headline": "Temperatury",
|
||||
"HideMcuHostSensors": "Ukryj czujniki hosta/MCU",
|
||||
"HideMonitors": "Ukryj monitory",
|
||||
"Max": "Maks.",
|
||||
"Min": "Min.",
|
||||
"Name": "Nazwa",
|
||||
@@ -726,9 +753,7 @@
|
||||
"SaveConfig": "ZAPISZ KONFIGURACJĘ",
|
||||
"SaveInfoDescription": "Nowe przesunięcie Z zostało obliczone i zarejestrowane. Kliknij przycisk \"ZAPISZ KONFIGURACJĘ\", aby zapisać ją w pliku printer.cfg i zrestartować Klipper.",
|
||||
"SaveInfoDescriptionPrint": "Nowe przesunięcie Z zostało obliczone i zarejestrowane. Po wydrukowaniu kliknij \"ZAPISZ KONFIGURACJĘ\" na górnym pasku, aby zapisać ją w pliku printer.cfg i zrestartować Klipper.",
|
||||
"SaveInfoHeadline": "Informacja",
|
||||
"ToEndstop": "Do krańcówki",
|
||||
"ToProbe": "Do sondy"
|
||||
"SaveInfoHeadline": "Informacja"
|
||||
}
|
||||
},
|
||||
"PowerDeviceChangeDialog": {
|
||||
@@ -1064,6 +1089,7 @@
|
||||
"UiSettingsTab": {
|
||||
"BedScrewsDialog": "Okno śrub stołu",
|
||||
"BedScrewsDialogDescription": "Wyświetl pomocnicze okno dialogowe dla BED_SCREWS_ADJUST.",
|
||||
"BigThumbnailBackground": "Kolor tła dużej miniatury",
|
||||
"BoolBigThumbnail": "Duża miniaturka",
|
||||
"BoolBigThumbnailDescription": "Pokazuj dużą miniaturkę podczas wydruku.",
|
||||
"BoolHideUploadAndPrintButton": "Ukryj przycisk \"Wgraj i drukuj\"",
|
||||
@@ -1145,7 +1171,7 @@
|
||||
"Webcams": "Kamery",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)",
|
||||
"WebrtcJanus": "WebRTC (brama janus)",
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX / rtsp-simple-server)"
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX)"
|
||||
}
|
||||
},
|
||||
"Timelapse": {
|
||||
|
||||
+5
-5
@@ -635,11 +635,11 @@
|
||||
"Location": "位置",
|
||||
"Material": "材料",
|
||||
"Never": "从未",
|
||||
"NoActiveSpool": "耗材跟踪未激活。要开始,请选择一个料盘。",
|
||||
"NoActiveSpool": "耗材跟踪未激活。若要使用,请先选择一个料盘。",
|
||||
"NoResults": "未找到符合当前搜索条件的料盘。",
|
||||
"NoSpools": "没有可用料盘",
|
||||
"NoSpoolSelected": "没有选择料盘。请选择一个料盘,否则将无法跟踪此打印。",
|
||||
"OpenSpoolManager": "打开料盘管理器",
|
||||
"NoSpoolSelected": "没有选择料盘。请选择一个料盘,否则将无法跟踪此次打印。",
|
||||
"OpenSpoolManager": "打开Spoolman后台",
|
||||
"Refresh": "刷新",
|
||||
"Search": "搜索",
|
||||
"SelectSpool": "选择料盘",
|
||||
@@ -893,7 +893,7 @@
|
||||
"BackupDialog": "请选择你想要备份的内容:",
|
||||
"CalcEstimateTime": "估算剩余时间",
|
||||
"CalcEstimateTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcEtaTime": "估算计完成时间",
|
||||
"CalcEtaTime": "估算完成时间",
|
||||
"CalcEtaTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcPrintProgress": "估算打印进度",
|
||||
"CalcPrintProgressDescription": "计算打印进度的方法。",
|
||||
@@ -1087,7 +1087,7 @@
|
||||
"VariableFpsMinDescription": ""
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BedScrewsDialog": "底板螺丝对话框",
|
||||
"BedScrewsDialog": "热床螺丝对话框",
|
||||
"BedScrewsDialogDescription": "显示BED_SCREWS_ADJUST辅助对话框。",
|
||||
"BigThumbnailBackground": "大缩略图背景颜色",
|
||||
"BoolBigThumbnail": "大缩略图",
|
||||
|
||||
+42
-44
@@ -1,41 +1,53 @@
|
||||
import 'core-js/stable' // polyfills for older browsers
|
||||
import 'regenerator-runtime' // async polyfill used by the gcodeviewer
|
||||
import 'resize-observer-polyfill' // polyfill needed by the responsive class detection
|
||||
|
||||
import Vue from 'vue'
|
||||
import App from '@/App.vue'
|
||||
import vuetify from '@/plugins/vuetify'
|
||||
import i18n from '@/plugins/i18n'
|
||||
import i18n, { setAndLoadLocale } from '@/plugins/i18n'
|
||||
import store from '@/store'
|
||||
import router from '@/plugins/router'
|
||||
import { WebSocketPlugin } from '@/plugins/webSocketClient'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
// vue-observe-visibility
|
||||
import { ObserveVisibility } from 'vue-observe-visibility'
|
||||
Vue.directive('observe-visibility', ObserveVisibility)
|
||||
|
||||
//vue-meta
|
||||
import VueMeta from 'vue-meta'
|
||||
Vue.use(VueMeta)
|
||||
|
||||
//vue-load-image
|
||||
import VueLoadImage from 'vue-load-image'
|
||||
Vue.component('VueLoadImage', VueLoadImage)
|
||||
|
||||
//vue-toast-notifications
|
||||
import VueToast from 'vue-toast-notification'
|
||||
import 'vue-toast-notification/dist/theme-sugar.css'
|
||||
//overlayerscrollbars-vue
|
||||
import { OverlayScrollbarsPlugin } from 'overlayscrollbars-vue'
|
||||
import 'overlayscrollbars/css/OverlayScrollbars.css'
|
||||
// Directives
|
||||
import './directives/longpress'
|
||||
import './directives/responsive-class'
|
||||
|
||||
// Echarts
|
||||
import ECharts from 'vue-echarts'
|
||||
import { use } from 'echarts/core'
|
||||
|
||||
// import ECharts modules manually to reduce bundle size
|
||||
import { SVGRenderer } from 'echarts/renderers'
|
||||
import { BarChart, LineChart, PieChart } from 'echarts/charts'
|
||||
import { DatasetComponent, GridComponent, LegendComponent, TooltipComponent } from 'echarts/components'
|
||||
// vue-resize
|
||||
import 'vue-resize/dist/vue-resize.css'
|
||||
// @ts-ignore
|
||||
import VueResize from 'vue-resize'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Vue.directive('observe-visibility', ObserveVisibility)
|
||||
|
||||
Vue.use(VueMeta)
|
||||
|
||||
Vue.component('VueLoadImage', VueLoadImage)
|
||||
|
||||
Vue.use(VueToast, {
|
||||
duration: 3000,
|
||||
})
|
||||
|
||||
//overlayerscrollbars-vue
|
||||
import { OverlayScrollbarsPlugin } from 'overlayscrollbars-vue'
|
||||
import 'overlayscrollbars/css/OverlayScrollbars.css'
|
||||
|
||||
const isSafari = navigator.userAgent.includes('Safari') && navigator.userAgent.search('Chrome') === -1
|
||||
const isTouch = 'ontouchstart' in window || (navigator.maxTouchPoints > 0 && navigator.maxTouchPoints !== 256)
|
||||
Vue.use(OverlayScrollbarsPlugin, {
|
||||
@@ -46,41 +58,27 @@ Vue.use(OverlayScrollbarsPlugin, {
|
||||
},
|
||||
})
|
||||
|
||||
// Directives
|
||||
import './directives/longpress'
|
||||
import './directives/responsive-class'
|
||||
|
||||
// Echarts
|
||||
import ECharts from 'vue-echarts'
|
||||
import { use } from 'echarts/core'
|
||||
|
||||
// import ECharts modules manually to reduce bundle size
|
||||
import { SVGRenderer } from 'echarts/renderers'
|
||||
import { LineChart, BarChart, PieChart } from 'echarts/charts'
|
||||
import { GridComponent, LegendComponent, TooltipComponent, DatasetComponent } from 'echarts/components'
|
||||
|
||||
use([SVGRenderer, LineChart, BarChart, LegendComponent, PieChart, DatasetComponent, GridComponent, TooltipComponent])
|
||||
Vue.component('EChart', ECharts)
|
||||
|
||||
// vue-resize
|
||||
import 'vue-resize/dist/vue-resize.css'
|
||||
// @ts-ignore
|
||||
import VueResize from 'vue-resize'
|
||||
Vue.use(VueResize)
|
||||
|
||||
const initLoad = async () => {
|
||||
//load config.json
|
||||
await fetch('/config.json')
|
||||
.then((res) => res.json())
|
||||
.then(async (file) => {
|
||||
window.console.debug('Loaded config.json')
|
||||
try {
|
||||
//load config.json
|
||||
const res = await fetch('/config.json')
|
||||
const file = (await res.json()) as Record<string, unknown>
|
||||
|
||||
await store.dispatch('importConfigJson', file)
|
||||
if ('defaultLocale' in file) i18n.locale = file.defaultLocale
|
||||
})
|
||||
.catch(() => {
|
||||
window.console.error('config.json not found or cannot be decoded!')
|
||||
})
|
||||
window.console.debug('Loaded config.json')
|
||||
|
||||
await store.dispatch('importConfigJson', file)
|
||||
if ('defaultLocale' in file) {
|
||||
await setAndLoadLocale(file.defaultLocale as string)
|
||||
}
|
||||
} catch (e) {
|
||||
window.console.error('Failed to load config.json')
|
||||
window.console.error(e)
|
||||
}
|
||||
|
||||
const url = store.getters['socket/getWebsocketUrl']
|
||||
Vue.use(WebSocketPlugin, { url, store })
|
||||
|
||||
+14
-16
@@ -2,23 +2,21 @@ import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
Vue.use(VueI18n)
|
||||
|
||||
function loadLocaleMessages() {
|
||||
const locales = import.meta.globEager('../locales/*.json')
|
||||
const messages: any = {}
|
||||
import defaultLocale from '../locales/en.json'
|
||||
|
||||
for (const file in locales) {
|
||||
const langKey = file.slice(file.lastIndexOf('.') - 2, file.lastIndexOf('.'))
|
||||
const locale = (import.meta.env.VUE_APP_I18N_LOCALE as string) || 'en'
|
||||
|
||||
if (langKey && langKey.length > 1) {
|
||||
messages[langKey] = JSON.parse(JSON.stringify(locales[file]))
|
||||
}
|
||||
}
|
||||
|
||||
return messages
|
||||
}
|
||||
|
||||
export default new VueI18n({
|
||||
locale: (import.meta.env.VUE_APP_I18N_LOCALE as string) || 'en',
|
||||
const i18n = new VueI18n({
|
||||
locale,
|
||||
fallbackLocale: (import.meta.env.VUE_APP_I18N_FALLBACK_LOCALE as string) || 'en',
|
||||
messages: loadLocaleMessages(),
|
||||
messages: { en: defaultLocale },
|
||||
})
|
||||
|
||||
export default i18n
|
||||
|
||||
export async function setAndLoadLocale(lang: string) {
|
||||
const locales = await import(`../locales/${lang}.json`)
|
||||
i18n.setLocaleMessage(lang, locales)
|
||||
i18n.locale = lang
|
||||
return locales
|
||||
}
|
||||
@@ -157,8 +157,9 @@ export const getters: GetterTree<GuiState, any> = {
|
||||
const setting = state.general.timeFormat
|
||||
if (setting === '12hours') return true
|
||||
if (setting === null) {
|
||||
const timestring = new Date().toLocaleTimeString().split(' ')
|
||||
return timestring.includes('AM') || timestring.includes('PM')
|
||||
// create a time string, cut the last 2 chars and check if it contains AM or PM
|
||||
const timeString = new Date().toLocaleString(navigator.language, { timeStyle: 'short' }).slice(-2)
|
||||
if (['AM', 'PM'].includes(timeString)) return true
|
||||
}
|
||||
|
||||
return false
|
||||
|
||||
@@ -2,6 +2,7 @@ import { ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store/types'
|
||||
import Vue from 'vue'
|
||||
import { GuiNavigationState, GuiNavigationStateEntry } from '@/store/gui/navigation/types'
|
||||
import { NaviPoint } from '@/components/mixins/navigation'
|
||||
|
||||
export const actions: ActionTree<GuiNavigationState, RootState> = {
|
||||
reset({ commit }) {
|
||||
@@ -20,7 +21,7 @@ export const actions: ActionTree<GuiNavigationState, RootState> = {
|
||||
commit('updatePos', payload)
|
||||
},
|
||||
|
||||
changeVisibility({ commit, dispatch }, payload: GuiNavigationStateEntry) {
|
||||
changeVisibility({ commit, dispatch }, payload: NaviPoint) {
|
||||
commit('changeVisibility', payload)
|
||||
dispatch('upload')
|
||||
},
|
||||
|
||||
@@ -2,6 +2,7 @@ import { getDefaultState } from './index'
|
||||
import { MutationTree } from 'vuex'
|
||||
import { GuiNavigationState, GuiNavigationStateEntry } from './types'
|
||||
import Vue from 'vue'
|
||||
import { NaviPoint } from '@/components/mixins/navigation'
|
||||
|
||||
export const mutations: MutationTree<GuiNavigationState> = {
|
||||
reset(state) {
|
||||
@@ -34,9 +35,11 @@ export const mutations: MutationTree<GuiNavigationState> = {
|
||||
Vue.set(state, 'entries', entries)
|
||||
},
|
||||
|
||||
changeVisibility(state, payload: GuiNavigationStateEntry) {
|
||||
changeVisibility(state, payload: NaviPoint) {
|
||||
const title = payload.orgTitle ?? payload.title
|
||||
|
||||
const index = state.entries.findIndex((entry) => {
|
||||
return entry.type === payload.type && entry.title === payload.title
|
||||
return entry.type === payload.type && entry.title === title
|
||||
})
|
||||
|
||||
// update existing entry
|
||||
@@ -48,7 +51,7 @@ export const mutations: MutationTree<GuiNavigationState> = {
|
||||
// create new entry
|
||||
const newEntry: GuiNavigationStateEntry = {
|
||||
type: payload.type,
|
||||
title: payload.title,
|
||||
title,
|
||||
visible: !payload.visible,
|
||||
position: payload.position,
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export const actions: ActionTree<GuiPresetsState, RootState> = {
|
||||
store({ commit, dispatch, state }, payload) {
|
||||
const id = uuidv4()
|
||||
|
||||
commit('store', { id, values: payload.values })
|
||||
commit('store', { id, values: { ...payload.values } })
|
||||
dispatch('upload', {
|
||||
id,
|
||||
value: state.presets[id],
|
||||
|
||||
@@ -747,7 +747,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
timeCount++
|
||||
}
|
||||
|
||||
if (time && timeCount) return Date.now() + (time / timeCount) * 1000
|
||||
if (time && timeCount) return Math.round(Date.now() + (time / timeCount) * 1000)
|
||||
|
||||
return 0
|
||||
},
|
||||
|
||||
@@ -47,8 +47,8 @@ export const actions: ActionTree<ServerSpoolmanState, RootState> = {
|
||||
commit('setActiveSpoolId', payload.spool_id)
|
||||
dispatch('socket/removeInitModule', 'server/spoolman/getActiveSpoolId', { root: true })
|
||||
|
||||
// also set active spool to null, if spool_id is 0
|
||||
if (payload.spool_id === 0) {
|
||||
// also set active spool to null, if spool_id is 0 or null
|
||||
if ([null, 0].includes(payload.spool_id)) {
|
||||
commit('setActiveSpool', null)
|
||||
return
|
||||
}
|
||||
@@ -112,9 +112,10 @@ export const actions: ActionTree<ServerSpoolmanState, RootState> = {
|
||||
},
|
||||
|
||||
setActiveSpool(_, id: number | null) {
|
||||
Vue.$socket.emit('server.spoolman.post_spool_id', {
|
||||
spool_id: id,
|
||||
})
|
||||
const params: { spool_id?: number } = {}
|
||||
if (id !== null) params['spool_id'] = id
|
||||
|
||||
Vue.$socket.emit('server.spoolman.post_spool_id', params)
|
||||
},
|
||||
|
||||
refreshActiveSpool({ state }) {
|
||||
|
||||
@@ -6,6 +6,8 @@ declare let self: ServiceWorkerGlobalScope
|
||||
import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching'
|
||||
import { clientsClaim } from 'workbox-core'
|
||||
|
||||
// disable workbox logs
|
||||
self.__wb_disable_dev_logs = true
|
||||
cleanupOutdatedCaches() // cleanup everything that's not needed anymore
|
||||
|
||||
precacheAndRoute(self.__WB_MANIFEST) //cache our new stuff
|
||||
|
||||
+23
-5
@@ -76,17 +76,35 @@ export default defineConfig({
|
||||
resolvers: [VuetifyResolver()],
|
||||
}),
|
||||
],
|
||||
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
css: { charset: false },
|
||||
scss: {
|
||||
quietDeps: true,
|
||||
},
|
||||
postcss: {
|
||||
plugins: [require('postcss-nesting')()],
|
||||
},
|
||||
},
|
||||
|
||||
build: {
|
||||
target: 'safari12',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: (id: string) => {
|
||||
if (id.includes('node_modules')) {
|
||||
// split codemirror into its own chunk
|
||||
if (id.includes('/codemirror/') || id.includes('/@codemirror/')) {
|
||||
return 'codemirror'
|
||||
}
|
||||
|
||||
// split these libs into their own chunks
|
||||
const chunkedLibs = ['vuetify', 'echarts', 'overlayscrollbars']
|
||||
for (const lib of chunkedLibs) {
|
||||
if (id.includes(`/node_modules/${lib}/`)) {
|
||||
return lib.replace('.js', '')
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
envPrefix: 'VUE_',
|
||||
|
||||
Reference in new issue
Block a user