Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3845f94f6 | ||
|
|
6884326cd9 | ||
|
|
54ce2e029c | ||
|
|
c9dc251e35 | ||
|
|
1b763e23ef | ||
|
|
4d241fc4b4 | ||
|
|
c07606a13c | ||
|
|
c6a3bbc1ca | ||
|
|
3584c0393f | ||
|
|
eac516e0e6 | ||
|
|
350bc1927a |
No files matched your search
@@ -1,19 +0,0 @@
|
||||
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 "$file=|${file##*/}|${MISSING}|${UNUSED}|" >> $GITHUB_OUTPUT
|
||||
echo "::set-output name=$file::|${file##*/}|${MISSING}|${UNUSED}|"
|
||||
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,9 +39,7 @@ jobs:
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
|
||||
type=edge,branch=develop
|
||||
type=semver,pattern=v{{major}}
|
||||
type=semver,pattern=v{{major}}.{{minor}}
|
||||
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
|
||||
type=ref,event=tag
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
|
||||
+1056
-1107
File diff suppressed because it is too large.
Load diff
+14
-28
@@ -9,11 +9,11 @@ header = """
|
||||
# https://tera.netlify.app/docs/#introduction
|
||||
body = """
|
||||
{% for group, commits in commits | group_by(attribute="group") %}\
|
||||
### {{ group | striptags | trim | upper_first }}
|
||||
### {{ group | split(pat="$") | last | upper_first }}
|
||||
{% for commit in commits
|
||||
| filter(attribute="scope")
|
||||
| sort(attribute="scope") %}
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }}\
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
{%- 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.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
@@ -39,12 +39,6 @@ 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,29 +46,21 @@ 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: push version number to", group = "9$Other", skip = true}, # Old redundant commits
|
||||
{ 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 = "^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"},
|
||||
]
|
||||
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)*"
|
||||
|
||||
+15
-29
@@ -17,11 +17,11 @@ body = """
|
||||
## [unreleased]
|
||||
{% endif %}\
|
||||
{% for group, commits in commits | group_by(attribute="group") %}\
|
||||
### {{ group | striptags | trim | upper_first }}
|
||||
### {{ group | split(pat="$") | last | upper_first }}
|
||||
{% for commit in commits
|
||||
| filter(attribute="scope")
|
||||
| sort(attribute="scope") %}
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }}\
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
{%- 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.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
@@ -45,11 +45,6 @@ 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
|
||||
@@ -57,30 +52,21 @@ 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: push version number to", group = "9$Other", skip = true}, # Old redundant commits
|
||||
{ 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
|
||||
|
||||
{ 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"},
|
||||
]
|
||||
commit_preprocessors = [
|
||||
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/pull/${2}))" },
|
||||
{ message = "release v2.1.2", group = "Release"}, # workaround for v2.1.2 release
|
||||
]
|
||||
# filter out the commits that are not matched by commit parsers
|
||||
filter_commits = true
|
||||
|
||||
Generated
+630
-688
File diff suppressed because it is too large.
Load diff
+9
-11
@@ -34,8 +34,10 @@
|
||||
"@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": "^1.6.0",
|
||||
"axios": "^0.27.0",
|
||||
"codemirror": "^6.0.1",
|
||||
"core-js": "^3.16.0",
|
||||
"detect-browser": "^5.3.0",
|
||||
@@ -43,12 +45,12 @@
|
||||
"echarts-gl": "^2.0.8",
|
||||
"hls.js": "^1.3.3",
|
||||
"jmuxer": "^2.0.5",
|
||||
"js-sha256": "^0.10.0",
|
||||
"js-sha256": "^0.9.0",
|
||||
"lodash.kebabcase": "^4.1.1",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
"overlayscrollbars": "^1.13.1",
|
||||
"overlayscrollbars-vue": "^0.2.2",
|
||||
"regenerator-runtime": "^0.14.0",
|
||||
"regenerator-runtime": "^0.13.9",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"semver": "^7.5.2",
|
||||
"typed_janus_js": "^1.0.14",
|
||||
@@ -74,10 +76,8 @@
|
||||
"@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": "^9.0.0",
|
||||
"@types/uuid": "^8.3.1",
|
||||
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||||
"@typescript-eslint/parser": "^6.0.0",
|
||||
"@vue/eslint-config-typescript": "^12.0.0",
|
||||
@@ -87,15 +87,13 @@
|
||||
"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": "^2.0.0",
|
||||
"start-server-and-test": "^1.14.0",
|
||||
"typescript": "^4.5.5",
|
||||
"unplugin-vue-components": "^0.22.12",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-checker": "^0.6.0",
|
||||
"vite": "^3.2.7",
|
||||
"vite-plugin-checker": "^0.5.0",
|
||||
"vite-plugin-package-version": "^1.0.2",
|
||||
"vite-plugin-pwa": "^0.16.4",
|
||||
"vite-plugin-vue2": "^2.0.1",
|
||||
|
||||
+6
-7
@@ -40,7 +40,6 @@ 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'])
|
||||
|
||||
@@ -163,8 +162,8 @@ export default class App extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
@Watch('language')
|
||||
async languageChanged(newVal: string): Promise<void> {
|
||||
await setAndLoadLocale(newVal)
|
||||
languageChanged(newVal: string): void {
|
||||
this.$i18n.locale = newVal
|
||||
}
|
||||
|
||||
@Watch('customStylesheet')
|
||||
@@ -311,10 +310,10 @@ export default class App extends Mixins(BaseMixin) {
|
||||
<style>
|
||||
@import './assets/styles/fonts.css';
|
||||
@import './assets/styles/toastr.css';
|
||||
@import './assets/styles/page.css';
|
||||
@import './assets/styles/sidebar.css';
|
||||
@import './assets/styles/utils.css';
|
||||
@import './assets/styles/updateManager.css';
|
||||
@import './assets/styles/page.scss';
|
||||
@import './assets/styles/sidebar.scss';
|
||||
@import './assets/styles/utils.scss';
|
||||
@import './assets/styles/updateManager.scss';
|
||||
|
||||
:root {
|
||||
--app-height: 100%;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,3 +1,12 @@
|
||||
@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 scoped>
|
||||
<style lang="scss" scoped>
|
||||
.command-help-content {
|
||||
overflow-x: hidden;
|
||||
|
||||
|
||||
@@ -341,7 +341,7 @@ export default class TheEditor extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
<style lang="scss" 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[seriesNameTarget]
|
||||
const value = dataset.value[seriesNameTemperature]
|
||||
output += value !== null ? value.toFixed(1) : '--'
|
||||
}
|
||||
output += '°C'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style scoped lang="scss"></style>
|
||||
|
||||
<template>
|
||||
<div :class="'consoleTable ' + (isMini ? 'mini' : '')">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped>
|
||||
<style scoped lang="scss">
|
||||
.consoleTableRow {
|
||||
font-family: 'Roboto Mono', monospace;
|
||||
font-size: 0.95em;
|
||||
|
||||
@@ -52,11 +52,7 @@
|
||||
</template>
|
||||
|
||||
<template #item="{ item }">
|
||||
<SpoolmanChangeSpoolDialogRow
|
||||
:key="item.id"
|
||||
:spool="item"
|
||||
:max_id_digits="max_spool_id_digits"
|
||||
@set-spool="setSpool" />
|
||||
<SpoolmanChangeSpoolDialogRow :key="item.id" :spool="item" @set-spool="setSpool" />
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card-text>
|
||||
@@ -91,15 +87,6 @@ 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,16 +3,8 @@
|
||||
<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">
|
||||
<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>
|
||||
<strong class="text-no-wrap">{{ vendor }} - {{ name }}</strong>
|
||||
<template v-if="location">
|
||||
<br />
|
||||
{{ $t('Panels.SpoolmanPanel.Location') }}: {{ location }}
|
||||
@@ -39,25 +31,12 @@ 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'
|
||||
}
|
||||
@@ -123,12 +102,3 @@ 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', null)
|
||||
this.$store.dispatch('server/spoolman/setActiveSpool', 0)
|
||||
this.close()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,9 +73,7 @@ export default class StartPrintDialogSpoolman extends Mixins(BaseMixin) {
|
||||
return alerts
|
||||
}
|
||||
|
||||
let gcodeFilamentType = this.file.filament_type ?? ''
|
||||
if (gcodeFilamentType.includes(';')) gcodeFilamentType = gcodeFilamentType.split(';')[0]
|
||||
|
||||
const gcodeFilamentType = this.file.filament_type ?? ''
|
||||
if (
|
||||
gcodeFilamentType !== '' &&
|
||||
this.activeSpool?.filament?.material?.toLowerCase() !== gcodeFilamentType.toLowerCase()
|
||||
|
||||
@@ -173,4 +173,4 @@ export default class TheBedScrewsDialog extends Mixins(BaseMixin, ControlMixin)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -181,7 +181,7 @@ export default class TheManualProbeDialog extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.v-btn-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -183,7 +183,11 @@ export default class BaseMixin extends Vue {
|
||||
}
|
||||
|
||||
get hours12Format() {
|
||||
return this.$store.getters['gui/getHours12Format']
|
||||
const setting = this.$store.state.gui.general.timeFormat
|
||||
if (setting === '12hours') return true
|
||||
if (setting === null && this.browserLocale === 'en-US') return true
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
formatDate(value: number | Date): string {
|
||||
|
||||
@@ -9,7 +9,6 @@ import { GuiNavigationStateEntry } from '@/store/gui/navigation/types'
|
||||
export interface NaviPoint {
|
||||
type: 'link' | 'route'
|
||||
title: string
|
||||
orgTitle?: string
|
||||
to?: string
|
||||
href?: string
|
||||
target?: string
|
||||
@@ -54,7 +53,6 @@ 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 scoped>
|
||||
<style lang="scss" scoped>
|
||||
._btn-group {
|
||||
border-radius: 4px;
|
||||
display: inline-flex;
|
||||
|
||||
@@ -49,13 +49,14 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" 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,32 +51,6 @@
|
||||
</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>
|
||||
@@ -125,27 +99,11 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
|
||||
}
|
||||
|
||||
get loadFilamentMacro(): PrinterStateMacro | undefined {
|
||||
const macros = ['LOAD_FILAMENT', 'FILAMENT_LOAD']
|
||||
|
||||
return this.macros.find((macro: PrinterStateMacro) => macros.includes(macro.name.toUpperCase()))
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name.toUpperCase() === 'LOAD_FILAMENT')
|
||||
}
|
||||
|
||||
get unloadFilamentMacro(): PrinterStateMacro | undefined {
|
||||
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()))
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name.toUpperCase() === 'UNLOAD_FILAMENT')
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -164,12 +122,6 @@ 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 scoped>
|
||||
<style lang="scss" 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 scoped>
|
||||
<style lang="scss" scoped>
|
||||
li.commit {
|
||||
border-color: rgb(48, 54, 61);
|
||||
border-style: solid;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<panel
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div v-if="['printing', 'paused'].includes(printer_state) && printing_objects.length">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
svg {
|
||||
//background: rgba(200, 200, 200);
|
||||
border: 2px solid #888;
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.filesJobqueue {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ export default class StatusPanelJobqueueEntry extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.filesJobqueue {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<v-card-text class="pa-0">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<v-card-text class="pa-0">
|
||||
|
||||
@@ -223,7 +223,7 @@ export default class StatusPanelPrintstatusThumbnail extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.statusPanel-big-thumbnail {
|
||||
transition: height 0.25s ease-out;
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" 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 scoped>
|
||||
<style lang="scss" 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 scoped>
|
||||
<style lang="scss" 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 scoped>
|
||||
<style lang="scss" 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 scoped>
|
||||
<style lang="scss" scoped>
|
||||
._preset-title {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.btnHomeAxis {
|
||||
width: 36px;
|
||||
min-width: 36px !important;
|
||||
|
||||
@@ -706,7 +706,7 @@ export default class CircleControl extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
svg {
|
||||
max-height: 350px;
|
||||
min-height: 275px;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.btnMinWidthAuto {
|
||||
min-width: auto !important;
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ export default class ZoffsetControl extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.v-btn-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -82,25 +82,6 @@ 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
|
||||
}
|
||||
@@ -117,6 +98,22 @@ 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 scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -233,4 +233,4 @@ export default class SettingsMiscellaneousTabLightGroups extends Mixins(BaseMixi
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -464,4 +464,4 @@ export default class SettingsMiscellaneousTabLightPresets extends Mixins(BaseMix
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
<style lang="scss" 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.orgTitle ?? naviPoint.title,
|
||||
title: naviPoint.title,
|
||||
visible: naviPoint.visible,
|
||||
position: index + 1,
|
||||
})
|
||||
|
||||
@@ -322,7 +322,7 @@ export default class WebcamForm extends Mixins(BaseMixin, WebcamMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep ._transition svg {
|
||||
transition: transform 500ms;
|
||||
}
|
||||
|
||||
@@ -70,4 +70,4 @@ export default class WebcamListEntry extends Mixins(BaseMixin, WebcamMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -83,7 +83,7 @@ export default class Panel extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" 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>
|
||||
<style lang="scss">
|
||||
.v-card.panel .v-toolbar__content {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.btn-collapsible > * {
|
||||
will-change: transform;
|
||||
transition: transform 500ms;
|
||||
|
||||
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.
@@ -1,31 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="service === 'mjpegstreamer'">
|
||||
<mjpegstreamer-async :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
<mjpegstreamer :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'mjpegstreamer-adaptive'">
|
||||
<mjpegstreamer-adaptive-async :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
<mjpegstreamer-adaptive :cam-settings="webcam" :show-fps="showFps" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'uv4l-mjpeg'">
|
||||
<uv4l-mjpeg-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<uv4l-mjpeg :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'ipstream'">
|
||||
<ipstreamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<ipstreamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'hlsstream'">
|
||||
<hlsstreamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<hlsstreamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'jmuxer-stream'">
|
||||
<j-muxer-stream-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<j-muxer-stream :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-camerastreamer'">
|
||||
<webrtc-camera-streamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<webrtc-camera-streamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-janus'">
|
||||
<janus-streamer-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<janus-streamer :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-mediamtx'">
|
||||
<webrtc-media-m-t-x-async :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
<webrtc-media-m-t-x :cam-settings="webcam" :printer-url="printerUrl" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
@@ -38,19 +38,18 @@ 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: {
|
||||
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'),
|
||||
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'),
|
||||
},
|
||||
})
|
||||
export default class WebcamWrapperItem extends Mixins(BaseMixin) {
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,39 +0,0 @@
|
||||
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))
|
||||
+12
-112
@@ -1,10 +1,6 @@
|
||||
{
|
||||
"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",
|
||||
@@ -34,11 +30,6 @@
|
||||
"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.",
|
||||
@@ -61,7 +52,6 @@
|
||||
"Complete": "Færdig - {filename}",
|
||||
"Error": "Fejl",
|
||||
"Pause": "Pause",
|
||||
"PrinterOff": "Printer slukket",
|
||||
"Printing": "{percent}% printet",
|
||||
"PrintingETA": "{percent}% printet - ETA {eta}"
|
||||
},
|
||||
@@ -148,7 +138,6 @@
|
||||
"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"
|
||||
@@ -189,10 +178,7 @@
|
||||
"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",
|
||||
@@ -229,8 +215,6 @@
|
||||
"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",
|
||||
@@ -295,7 +279,6 @@
|
||||
"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",
|
||||
@@ -327,7 +310,6 @@
|
||||
"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",
|
||||
@@ -415,10 +397,7 @@
|
||||
"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",
|
||||
@@ -483,11 +462,7 @@
|
||||
}
|
||||
},
|
||||
"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}",
|
||||
@@ -495,36 +470,19 @@
|
||||
"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",
|
||||
"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.",
|
||||
"ERROR": "FEJL",
|
||||
"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",
|
||||
"SoftRecovery": "Blød nulstilling",
|
||||
"StartUpdate": "Start opdatering",
|
||||
"PackagesCanBeUpgraded": "Pakker kan opgraderes",
|
||||
"System": "System",
|
||||
"ThesePackagesCanBeUpgrade": "Pakker kan opgraderes",
|
||||
"Unknown": "Ukendt",
|
||||
"Update": "Opdater",
|
||||
"UpdateAll": "Opdater alle komponenter",
|
||||
"UpdateManager": "Opdateringsmanager",
|
||||
"UpdateWarning": "Opdateringsadvarsel: {name}",
|
||||
"Upgrade": "Opgrader",
|
||||
"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"
|
||||
"UpToDate": "up-to-date"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
@@ -589,7 +547,6 @@
|
||||
"Send": "Send"
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Autoscroll": "Automatisk rulning",
|
||||
"Headline": "Terminal",
|
||||
"HideTemperatures": "Skjul temperaturer",
|
||||
"HideTimelapse": "Skjul Timelapse",
|
||||
@@ -622,32 +579,6 @@
|
||||
"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",
|
||||
@@ -709,8 +640,6 @@
|
||||
"Temperature": "Nuværende temperatur"
|
||||
},
|
||||
"Headline": "Temperaturer",
|
||||
"HideMcuHostSensors": "Skjul værts/MCU sensorer",
|
||||
"HideMonitors": "Skjul overvågere",
|
||||
"Max": "maks",
|
||||
"Min": "min",
|
||||
"Name": "Navn",
|
||||
@@ -753,7 +682,9 @@
|
||||
"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"
|
||||
"SaveInfoHeadline": "Information",
|
||||
"ToEndstop": "Til Endstop",
|
||||
"ToProbe": "Til Probe"
|
||||
}
|
||||
},
|
||||
"PowerDeviceChangeDialog": {
|
||||
@@ -779,8 +710,7 @@
|
||||
"Accept": "Acceptér",
|
||||
"Base": "Udgangspunkt",
|
||||
"ErrorText": "Noget gik galt under målingsprocessen",
|
||||
"Headline": "Bed-skrue justering",
|
||||
"Retry": "Forsøg igen"
|
||||
"Headline": "Bed-skrue justering"
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "Tilføj Printer",
|
||||
@@ -832,8 +762,7 @@
|
||||
"Cross": "Kryds",
|
||||
"EnableXYHoming": "Aktivér kombineret X & Y homing",
|
||||
"EstimatedExtrusionInfo": "Vis estimerede ekstruderingsinformationer",
|
||||
"EstimatedExtrusionInfoDescription": "Vis/Skjul information om estimerede ekstruderinger baseret på ekstruderingsmængde og hastighed",
|
||||
"HideDuringPrint": "Skjul akse kontrol under print",
|
||||
"EstimatedExtrusionInfoDescription": "Vis/Skjul information om estimerede ekstruderinger baseret på eksrtuderingsmængde og hastighed",
|
||||
"InvertXMovement": "Invertér X",
|
||||
"InvertYMovement": "Invertér Y",
|
||||
"InvertZMovement": "Invertér Z",
|
||||
@@ -870,9 +799,6 @@
|
||||
"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"
|
||||
},
|
||||
@@ -908,20 +834,19 @@
|
||||
"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",
|
||||
"MainsailSettingsMoonrakerDb": "Mainsails indstillinger i Moonrakers database",
|
||||
"MoonrakerDb": "Moonraker DB",
|
||||
"PrinterName": "Printernavn",
|
||||
"Reset": "Nulstil",
|
||||
"Restore": "Gendan",
|
||||
@@ -988,9 +913,6 @@
|
||||
"UnableToLoadLight": "Kunne ikke indlæse LED",
|
||||
"UnableToLoadPreset": "Kunne ikke indlæse forudindstilling"
|
||||
},
|
||||
"NavigationTab": {
|
||||
"Navigation": "Navigation"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "Tilføj forudindstilling",
|
||||
"Cooldown": "Nedkøling",
|
||||
@@ -1087,9 +1009,6 @@
|
||||
"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",
|
||||
@@ -1098,13 +1017,6 @@
|
||||
"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",
|
||||
@@ -1112,15 +1024,11 @@
|
||||
"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",
|
||||
@@ -1128,10 +1036,7 @@
|
||||
"PowerDeviceName": "Printer strømenhed",
|
||||
"PowerDeviceNameDescription": "Vælg hvilken strømenhed i Moonraker der styrer printerens strøm.",
|
||||
"Primary": "Primær",
|
||||
"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.",
|
||||
"ShowWebcamInNavigation": "Vis Webcam i navigation",
|
||||
"UiSettings": "UI-indstillinger"
|
||||
},
|
||||
"Update": "Opdater",
|
||||
@@ -1141,7 +1046,6 @@
|
||||
"EditCrowsnestConf": "Redigér crowsnest.conf",
|
||||
"EditWebcam": "Rediger Webcam",
|
||||
"FlipWebcam": "Vend webcam-billedet:",
|
||||
"HideFps": "Skjul FPS",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Horizontally": "horisontalt",
|
||||
"IconBed": "Bed",
|
||||
@@ -1168,10 +1072,7 @@
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikalt",
|
||||
"Webcams": "Webcams",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)",
|
||||
"WebrtcJanus": "WebRTC (janus-gateway)",
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX)"
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
"Timelapse": {
|
||||
@@ -1185,7 +1086,6 @@
|
||||
"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,7 +536,6 @@
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Erlaubt",
|
||||
"CleanNozzle": "Düse reinigen",
|
||||
"EstimatedExtrusion": "Extrusion:",
|
||||
"Extrude": "Extrudieren",
|
||||
"ExtruderTempTooLow": "Extruder Temp. <",
|
||||
@@ -556,7 +555,6 @@
|
||||
"Extruder": "Extruder",
|
||||
"SmoothTime": "Smooth Time"
|
||||
},
|
||||
"PurgeFilament": "Filament reinigen",
|
||||
"Requested": "Angefordert",
|
||||
"Retract": "Rückzug",
|
||||
"TooLargeExtrusion": "Extrusion zu groß!",
|
||||
|
||||
@@ -536,7 +536,6 @@
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Allowed",
|
||||
"CleanNozzle": "Clean Nozzle",
|
||||
"EstimatedExtrusion": "Extrusion:",
|
||||
"Extrude": "Extrude",
|
||||
"ExtruderTempTooLow": "Extruder temp. <",
|
||||
@@ -556,7 +555,6 @@
|
||||
"Extruder": "Extruder",
|
||||
"SmoothTime": "Smooth Time"
|
||||
},
|
||||
"PurgeFilament": "Purge Filament",
|
||||
"Requested": "Requested",
|
||||
"Retract": "Retract",
|
||||
"TooLargeExtrusion": "Extrusion too large!",
|
||||
|
||||
+490
-590
File diff suppressed because it is too large.
Load diff
+114
-469
File diff suppressed because it is too large.
Load diff
+11
-37
@@ -137,6 +137,7 @@
|
||||
"TryAgain": "Spróbuj ponownie"
|
||||
},
|
||||
"Console": {
|
||||
"Autoscroll": "Autoprzewijanie",
|
||||
"CommandList": "Lista komend",
|
||||
"Empty": "Puste",
|
||||
"HideTemperatures": "Ukryj temperatury",
|
||||
@@ -148,7 +149,6 @@
|
||||
"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ążenia systemowe",
|
||||
"SystemLoad": "Obciążenie systemu",
|
||||
"Values": {
|
||||
"Awake": "Aktywność: {awake}",
|
||||
"Bandwidth": "Przepustowość: {bandwidth}/s",
|
||||
"Awake": "Wzbudzony: {awake}",
|
||||
"Bandwidth": "Pasmo: {bandwidth}/s",
|
||||
"Distro": "Dystrybucja: {name} {version_id}",
|
||||
"Frequency": "Częstotliwość: {frequency}",
|
||||
"Load": "Obciążenie: {load}",
|
||||
"Memory": "Pamięć: {memory}",
|
||||
"Os": "System: {os}",
|
||||
"Received": "Odebrano: {received}",
|
||||
"Os": "OS: {os}",
|
||||
"Received": "Odebrane: {received}",
|
||||
"Temp": "Temp.: {temp}°C",
|
||||
"TempMax": "max: {temp}°C",
|
||||
"TempMin": "min: {temp}°C",
|
||||
"Transmitted": "Przesłano: {transmitted}",
|
||||
"Transmitted": "Przekazywane: {transmitted}",
|
||||
"Version": "Wersja: {version}"
|
||||
}
|
||||
},
|
||||
@@ -622,32 +622,6 @@
|
||||
"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",
|
||||
@@ -710,7 +684,6 @@
|
||||
},
|
||||
"Headline": "Temperatury",
|
||||
"HideMcuHostSensors": "Ukryj czujniki hosta/MCU",
|
||||
"HideMonitors": "Ukryj monitory",
|
||||
"Max": "Maks.",
|
||||
"Min": "Min.",
|
||||
"Name": "Nazwa",
|
||||
@@ -753,7 +726,9 @@
|
||||
"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"
|
||||
"SaveInfoHeadline": "Informacja",
|
||||
"ToEndstop": "Do krańcówki",
|
||||
"ToProbe": "Do sondy"
|
||||
}
|
||||
},
|
||||
"PowerDeviceChangeDialog": {
|
||||
@@ -1089,7 +1064,6 @@
|
||||
"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\"",
|
||||
@@ -1171,7 +1145,7 @@
|
||||
"Webcams": "Kamery",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)",
|
||||
"WebrtcJanus": "WebRTC (brama janus)",
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX)"
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX / rtsp-simple-server)"
|
||||
}
|
||||
},
|
||||
"Timelapse": {
|
||||
|
||||
+5
-5
@@ -635,11 +635,11 @@
|
||||
"Location": "位置",
|
||||
"Material": "材料",
|
||||
"Never": "从未",
|
||||
"NoActiveSpool": "耗材跟踪未激活。若要使用,请先选择一个料盘。",
|
||||
"NoActiveSpool": "耗材跟踪未激活。要开始,请选择一个料盘。",
|
||||
"NoResults": "未找到符合当前搜索条件的料盘。",
|
||||
"NoSpools": "没有可用料盘",
|
||||
"NoSpoolSelected": "没有选择料盘。请选择一个料盘,否则将无法跟踪此次打印。",
|
||||
"OpenSpoolManager": "打开Spoolman后台",
|
||||
"NoSpoolSelected": "没有选择料盘。请选择一个料盘,否则将无法跟踪此打印。",
|
||||
"OpenSpoolManager": "打开料盘管理器",
|
||||
"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": "大缩略图",
|
||||
|
||||
+45
-43
@@ -1,53 +1,41 @@
|
||||
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, { setAndLoadLocale } from '@/plugins/i18n'
|
||||
import i18n from '@/plugins/i18n'
|
||||
import store from '@/store'
|
||||
import router from '@/plugins/router'
|
||||
import { WebSocketPlugin } from '@/plugins/webSocketClient'
|
||||
// vue-observe-visibility
|
||||
import { ObserveVisibility } from 'vue-observe-visibility'
|
||||
//vue-meta
|
||||
import VueMeta from 'vue-meta'
|
||||
//vue-load-image
|
||||
import VueLoadImage from 'vue-load-image'
|
||||
//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-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'
|
||||
|
||||
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, {
|
||||
@@ -58,27 +46,41 @@ 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 () => {
|
||||
try {
|
||||
//load config.json
|
||||
const res = await fetch('/config.json')
|
||||
const file = (await res.json()) as Record<string, unknown>
|
||||
//load config.json
|
||||
await fetch('/config.json')
|
||||
.then((res) => res.json())
|
||||
.then(async (file) => {
|
||||
window.console.debug('Loaded config.json')
|
||||
|
||||
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)
|
||||
}
|
||||
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!')
|
||||
})
|
||||
|
||||
const url = store.getters['socket/getWebsocketUrl']
|
||||
Vue.use(WebSocketPlugin, { url, store })
|
||||
|
||||
+16
-14
@@ -2,21 +2,23 @@ import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
Vue.use(VueI18n)
|
||||
|
||||
import defaultLocale from '../locales/en.json'
|
||||
function loadLocaleMessages() {
|
||||
const locales = import.meta.globEager('../locales/*.json')
|
||||
const messages: any = {}
|
||||
|
||||
const locale = (import.meta.env.VUE_APP_I18N_LOCALE as string) || 'en'
|
||||
for (const file in locales) {
|
||||
const langKey = file.slice(file.lastIndexOf('.') - 2, file.lastIndexOf('.'))
|
||||
|
||||
const i18n = new VueI18n({
|
||||
locale,
|
||||
fallbackLocale: (import.meta.env.VUE_APP_I18N_FALLBACK_LOCALE as string) || 'en',
|
||||
messages: { en: defaultLocale },
|
||||
})
|
||||
if (langKey && langKey.length > 1) {
|
||||
messages[langKey] = JSON.parse(JSON.stringify(locales[file]))
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
return messages
|
||||
}
|
||||
|
||||
export default new VueI18n({
|
||||
locale: (import.meta.env.VUE_APP_I18N_LOCALE as string) || 'en',
|
||||
fallbackLocale: (import.meta.env.VUE_APP_I18N_FALLBACK_LOCALE as string) || 'en',
|
||||
messages: loadLocaleMessages(),
|
||||
})
|
||||
@@ -157,9 +157,8 @@ export const getters: GetterTree<GuiState, any> = {
|
||||
const setting = state.general.timeFormat
|
||||
if (setting === '12hours') return true
|
||||
if (setting === null) {
|
||||
// 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
|
||||
const timestring = new Date().toLocaleTimeString().split(' ')
|
||||
return timestring.includes('AM') || timestring.includes('PM')
|
||||
}
|
||||
|
||||
return false
|
||||
|
||||
@@ -2,7 +2,6 @@ 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 }) {
|
||||
@@ -21,7 +20,7 @@ export const actions: ActionTree<GuiNavigationState, RootState> = {
|
||||
commit('updatePos', payload)
|
||||
},
|
||||
|
||||
changeVisibility({ commit, dispatch }, payload: NaviPoint) {
|
||||
changeVisibility({ commit, dispatch }, payload: GuiNavigationStateEntry) {
|
||||
commit('changeVisibility', payload)
|
||||
dispatch('upload')
|
||||
},
|
||||
|
||||
@@ -2,7 +2,6 @@ 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) {
|
||||
@@ -35,11 +34,9 @@ export const mutations: MutationTree<GuiNavigationState> = {
|
||||
Vue.set(state, 'entries', entries)
|
||||
},
|
||||
|
||||
changeVisibility(state, payload: NaviPoint) {
|
||||
const title = payload.orgTitle ?? payload.title
|
||||
|
||||
changeVisibility(state, payload: GuiNavigationStateEntry) {
|
||||
const index = state.entries.findIndex((entry) => {
|
||||
return entry.type === payload.type && entry.title === title
|
||||
return entry.type === payload.type && entry.title === payload.title
|
||||
})
|
||||
|
||||
// update existing entry
|
||||
@@ -51,7 +48,7 @@ export const mutations: MutationTree<GuiNavigationState> = {
|
||||
// create new entry
|
||||
const newEntry: GuiNavigationStateEntry = {
|
||||
type: payload.type,
|
||||
title,
|
||||
title: payload.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 Math.round(Date.now() + (time / timeCount) * 1000)
|
||||
if (time && timeCount) return 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 or null
|
||||
if ([null, 0].includes(payload.spool_id)) {
|
||||
// also set active spool to null, if spool_id is 0
|
||||
if (payload.spool_id === 0) {
|
||||
commit('setActiveSpool', null)
|
||||
return
|
||||
}
|
||||
@@ -112,10 +112,9 @@ export const actions: ActionTree<ServerSpoolmanState, RootState> = {
|
||||
},
|
||||
|
||||
setActiveSpool(_, id: number | null) {
|
||||
const params: { spool_id?: number } = {}
|
||||
if (id !== null) params['spool_id'] = id
|
||||
|
||||
Vue.$socket.emit('server.spoolman.post_spool_id', params)
|
||||
Vue.$socket.emit('server.spoolman.post_spool_id', {
|
||||
spool_id: id,
|
||||
})
|
||||
},
|
||||
|
||||
refreshActiveSpool({ state }) {
|
||||
|
||||
@@ -6,8 +6,6 @@ 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
|
||||
|
||||
+5
-23
@@ -76,35 +76,17 @@ export default defineConfig({
|
||||
resolvers: [VuetifyResolver()],
|
||||
}),
|
||||
],
|
||||
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [require('postcss-nesting')()],
|
||||
preprocessorOptions: {
|
||||
css: { charset: false },
|
||||
scss: {
|
||||
quietDeps: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
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