Compare commits

..
Author SHA1 Message Date
Rejdukien 822a622d97 Change from websockets to regular pull-based approach 2021-02-14 19:45:46 +01:00
Rejdukien 1e7aba5297 PyImageStreamer websocket support 2021-02-14 17:41:26 +01:00
200 changed files with 6058 additions and 21305 deletions

No files matched your search

+1 -8
View File
@@ -5,11 +5,4 @@ VUE_APP_HOSTNAME=printer.local
VUE_APP_PORT=7125
# reconnect interval in ms
VUE_APP_RECONNECT_INTERVAL=5000
# remote mode
VUE_APP_REMOTE_MODE=false
# defaults for multi language tests
VUE_APP_I18N_LOCALE=en
VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_RECONNECT_INTERVAL=5000
+1 -10
View File
@@ -9,14 +9,5 @@ temp
.version
.versions
.changelog
.idea
package-lock.json
*.local
docker/gcode
docker/logs
docker/moonraker
docker/config/**/*
docker/config/*.cfg
docker/config/*.conf
docker/config/.mainsail.json
docker/config/.theme
*.local
+5 -34
View File
@@ -1,39 +1,12 @@
# Mainsail
Mainsail is a lightweight & responsive web interface for the [Klipper](https://github.com/KevinOConnor/klipper)
3D printer firmware. It communicates with the [Moonraker (Klipper-API)](https://github.com/arksine/moonraker) from [Arksine](https://github.com/arksine).
Mainsail a lightweight & responsive web interface for [Klipper](https://github.com/KevinOConnor/klipper), the 3D printer firmware. It communicates with [Moonraker (Klipper-API)](https://github.com/arksine/moonraker) from [Arksine](https://github.com/arksine).
[Getting Started](https://docs.mainsail.xyz/setup)
Mainsail is also available in remote mode on [http://my.mainsail.xyz](http://my.mainsail.xyz). Find out [more](https://docs.mainsail.xyz/setup#mymainsailxyz).
[Documentation](https://docs.mainsail.xyz)
[Release Notes](https://github.com/meteyou/mainsail/releases)
## Screenshots
![screenshot-dashboard](docs/assets/img/screenshot.png)
## Features
- Optimized for desktops, tablets and mobile devices
- Supports multiple 3D printers (Printer Farm)
- Localization (i18n)
- File Manager (gcode and config files)
- File Editor (gcode and config files)
- Print History / Stats
- Temperature Presets (with custom gcode)
- Bed Mesh Leveling
- Multi-Webcam support
- Control power devices (relays, TPLink, Tasmota, ..)
- Customizable UI (logos, backgrounds & even custom css)
To begin using Mainsail start by [installing](https://meteyou.github.io/mainsail/setup/) it or read the [pages](https://meteyou.github.io/mainsail/) for more informations.
## Get support & assistance
Do you need help or just want to talk? Join us on [Discord](https://discord.gg/skWTwTD). We have a very active community.
Have you found a bug? Then we would like you to create an [issue](https://github.com/meteyou/mainsail/issues).
## Support this project
The project is primarily developed and maintained by meteyou. To keep the project going he invests his free time, almost every day. To motivate him (☕🍺😜) there are several ways to support the project.
- [Patreon (recurring)](https://patreon.com/meteyou)
- [Ko-Fi (one-time)](https://ko-fi.com/mainsail)
For support join our discord server -> [https://discord.gg/skWTwTD](https://discord.gg/skWTwTD)
## Credit, sources and inspiration
* [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
@@ -42,6 +15,4 @@ The project is primarily developed and maintained by meteyou. To keep the projec
* [Vue.js](https://vuejs.org/): The Progressive JavaScript Framework
* [Vuetify](https://vuetifyjs.com/): Material Design Component Framework for Vue.js
Massive thanks to the whole [Voron Design](http://vorondesign.com/) community. Without them such a project would not be possible.
[Full Credits & Licenseinformation](https://docs.mainsail.xyz/credits)
Massive thanks to the whole [Voron Design](http://vorondesign.com/) community. Without them such a project would not be possible.
-590
View File
@@ -1,590 +0,0 @@
const converter = require('monaco-vscode-textmate-theme-converter');
const fs = require('fs');
const converted = converter.convertTheme({
"$schema": "vscode://schemas/color-theme",
"type": "dark",
"colors": {
"activityBarBadge.background": "#007acc",
"editor.background": "#1e1e1e",
"editor.foreground": "#d4d4d4",
"editor.inactiveSelectionBackground": "#3a3d41",
"editor.selectionHighlightBackground": "#add6ff26",
"editorIndentGuide.activeBackground": "#707070",
"editorIndentGuide.background": "#404040",
"input.placeholderForeground": "#a6a6a6",
"list.dropBackground": "#383b3d",
"menu.background": "#252526",
"menu.foreground": "#cccccc",
"sideBarSectionHeader.background": "#00000000",
"sideBarSectionHeader.border": "#cccccc33",
"sideBarTitle.foreground": "#bbbbbb",
"statusBarItem.remoteBackground": "#16825d",
"statusBarItem.remoteForeground": "#ffffff",
"tab.lastPinnedBorder": "#cccccc33",
},
"tokenColors": [
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
],
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "header",
"settings": {
"foreground": "#000080"
}
},
{
"scope": "comment",
"settings": {
"foreground": "#6A9955"
}
},
{
"scope": "constant.language",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"constant.numeric",
"variable.other.enummember",
"keyword.operator.plus.exponent",
"keyword.operator.minus.exponent"
],
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": "constant.regexp",
"settings": {
"foreground": "#646695"
}
},
{
"scope": "entity.name.tag",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "entity.name.tag.css",
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "entity.other.attribute-name",
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": [
"entity.other.attribute-name.class.css",
"entity.other.attribute-name.class.mixin.css",
"entity.other.attribute-name.id.css",
"entity.other.attribute-name.parent-selector.css",
"entity.other.attribute-name.pseudo-class.css",
"entity.other.attribute-name.pseudo-element.css",
"source.css.less entity.other.attribute-name.id",
"entity.other.attribute-name.scss"
],
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "invalid",
"settings": {
"foreground": "#F44747"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.bold",
"settings": {
"foreground": "#569CD6",
"fontStyle": "bold"
}
},
{
"scope": "markup.heading",
"settings": {
"foreground": "#569CD6",
"fontStyle": "bold"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "markup.inserted",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": "markup.deleted",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "markup.changed",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "punctuation.definition.quote.begin.markdown",
"settings": {
"foreground": "#6A9955"
}
},
{
"scope": "punctuation.definition.list.begin.markdown",
"settings": {
"foreground": "#6796E6"
}
},
{
"scope": "markup.inline.raw",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "punctuation.definition.tag",
"settings": {
"foreground": "#808080"
}
},
{
"scope": [
"meta.preprocessor",
"entity.name.function.preprocessor"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "meta.preprocessor.string",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "meta.preprocessor.numeric",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": "meta.structure.dictionary.key.python",
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": "meta.diff.header",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "storage",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "storage.type",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"storage.modifier",
"keyword.operator.noexcept"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"string",
"meta.embedded.assembly"
],
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "string.tag",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "string.value",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "string.regexp",
"settings": {
"foreground": "#D16969"
}
},
{
"scope": [
"punctuation.definition.template-expression.begin",
"punctuation.definition.template-expression.end",
"punctuation.section.embedded"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"meta.template.expression"
],
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": [
"support.type.vendored.property-name",
"support.type.property-name",
"variable.css",
"variable.scss",
"variable.other.less",
"source.coffee.embedded"
],
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": "keyword",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "keyword.control",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "keyword.operator",
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": [
"keyword.operator.new",
"keyword.operator.expression",
"keyword.operator.cast",
"keyword.operator.sizeof",
"keyword.operator.alignof",
"keyword.operator.typeid",
"keyword.operator.alignas",
"keyword.operator.instanceof",
"keyword.operator.logical.python",
"keyword.operator.wordlike"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "keyword.other.unit",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": [
"punctuation.section.embedded.begin.php",
"punctuation.section.embedded.end.php"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "support.function.git-rebase",
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": "constant.sha.git-rebase",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": [
"storage.modifier.import.java",
"variable.language.wildcard.java",
"storage.modifier.package.java"
],
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": "variable.language",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"entity.name.function",
"support.function",
"support.constant.handlebars",
"source.powershell variable.other.member",
"entity.name.operator.custom-literal"
],
"settings": {
"foreground": "#DCDCAA"
}
},
{
"scope": [
"meta.return-type",
"support.class",
"support.type",
"entity.name.type",
"entity.name.namespace",
"entity.other.attribute",
"entity.name.scope-resolution",
"entity.name.class",
"storage.type.numeric.go",
"storage.type.byte.go",
"storage.type.boolean.go",
"storage.type.string.go",
"storage.type.uintptr.go",
"storage.type.error.go",
"storage.type.rune.go",
"storage.type.cs",
"storage.type.generic.cs",
"storage.type.modifier.cs",
"storage.type.variable.cs",
"storage.type.annotation.java",
"storage.type.generic.java",
"storage.type.java",
"storage.type.object.array.java",
"storage.type.primitive.array.java",
"storage.type.primitive.java",
"storage.type.token.java",
"storage.type.groovy",
"storage.type.annotation.groovy",
"storage.type.parameters.groovy",
"storage.type.generic.groovy",
"storage.type.object.array.groovy",
"storage.type.primitive.array.groovy",
"storage.type.primitive.groovy"
],
"settings": {
"foreground": "#4EC9B0"
}
},
{
"scope": [
"meta.type.cast.expr",
"meta.type.new.expr",
"support.constant.math",
"support.constant.dom",
"support.constant.json",
"entity.other.inherited-class"
],
"settings": {
"foreground": "#4EC9B0"
}
},
{
"scope": [
"keyword.control",
"source.cpp keyword.operator.new",
"keyword.operator.delete",
"keyword.other.using",
"keyword.other.operator",
"entity.name.operator"
],
"settings": {
"foreground": "#C586C0"
}
},
{
"scope": [
"variable",
"meta.definition.variable.name",
"support.variable",
"entity.name.variable"
],
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": [
"variable.other.constant",
"variable.other.enummember"
],
"settings": {
"foreground": "#4FC1FF"
}
},
{
"scope": [
"meta.object-literal.key"
],
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": [
"support.constant.property-value",
"support.constant.font-name",
"support.constant.media-type",
"support.constant.media",
"constant.other.color.rgb-value",
"constant.other.rgb-value",
"support.constant.color"
],
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": [
"punctuation.definition.group.regexp",
"punctuation.definition.group.assertion.regexp",
"punctuation.definition.character-class.regexp",
"punctuation.character.set.begin.regexp",
"punctuation.character.set.end.regexp",
"keyword.operator.negation.regexp",
"support.other.parenthesis.regexp"
],
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": [
"constant.character.character-class.regexp",
"constant.other.character-class.set.regexp",
"constant.other.character-class.regexp",
"constant.character.set.regexp"
],
"settings": {
"foreground": "#D16969"
}
},
{
"scope": [
"keyword.operator.or.regexp",
"keyword.control.anchor.regexp"
],
"settings": {
"foreground": "#DCDCAA"
}
},
{
"scope": "keyword.operator.quantifier.regexp",
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "constant.character",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "constant.character.escape",
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "entity.name.label",
"settings": {
"foreground": "#C8C8C8"
}
},
{
"scope": "token.info-token",
"settings": {
"foreground": "#6796E6"
}
},
{
"scope": "token.warn-token",
"settings": {
"foreground": "#CD9731"
}
},
{
"scope": "token.error-token",
"settings": {
"foreground": "#F44747"
}
},
{
"scope": "token.debug-token",
"settings": {
"foreground": "#B267E6"
}
}
]
});
fs.writeFile('converted.json', JSON.stringify(converted), (err) => {
if (err) {
throw err;
}
console.log('converted');
});
-1
View File
@@ -1 +0,0 @@
{"inherit":false,"base":"vs-dark","colors":{"activityBarBadge.background":"#007acc","editor.background":"#1e1e1e","editor.foreground":"#d4d4d4","editor.inactiveSelectionBackground":"#3a3d41","editor.selectionHighlightBackground":"#add6ff26","editorIndentGuide.activeBackground":"#707070","editorIndentGuide.background":"#404040","input.placeholderForeground":"#a6a6a6","list.dropBackground":"#383b3d","menu.background":"#252526","menu.foreground":"#cccccc","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.border":"#cccccc33","sideBarTitle.foreground":"#bbbbbb","statusBarItem.remoteBackground":"#16825d","statusBarItem.remoteForeground":"#ffffff","tab.lastPinnedBorder":"#cccccc33"},"rules":[{"foreground":"#D4D4D4","token":"meta.embedded"},{"foreground":"#D4D4D4","token":"source.groovy.embedded"},{"fontStyle":"italic","token":"emphasis"},{"fontStyle":"bold","token":"strong"},{"foreground":"#000080","token":"header"},{"foreground":"#6A9955","token":"comment"},{"foreground":"#569CD6","token":"constant.language"},{"foreground":"#B5CEA8","token":"constant.numeric"},{"foreground":"#B5CEA8","token":"variable.other.enummember"},{"foreground":"#B5CEA8","token":"keyword.operator.plus.exponent"},{"foreground":"#B5CEA8","token":"keyword.operator.minus.exponent"},{"foreground":"#646695","token":"constant.regexp"},{"foreground":"#569CD6","token":"entity.name.tag"},{"foreground":"#D7BA7D","token":"entity.name.tag.css"},{"foreground":"#9CDCFE","token":"entity.other.attribute-name"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.class.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.class.mixin.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.id.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.parent-selector.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.pseudo-class.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.pseudo-element.css"},{"foreground":"#D7BA7D","token":"source.css.less entity.other.attribute-name.id"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.scss"},{"foreground":"#F44747","token":"invalid"},{"fontStyle":"underline","token":"markup.underline"},{"foreground":"#569CD6","fontStyle":"bold","token":"markup.bold"},{"foreground":"#569CD6","fontStyle":"bold","token":"markup.heading"},{"fontStyle":"italic","token":"markup.italic"},{"foreground":"#B5CEA8","token":"markup.inserted"},{"foreground":"#CE9178","token":"markup.deleted"},{"foreground":"#569CD6","token":"markup.changed"},{"foreground":"#6A9955","token":"punctuation.definition.quote.begin.markdown"},{"foreground":"#6796E6","token":"punctuation.definition.list.begin.markdown"},{"foreground":"#CE9178","token":"markup.inline.raw"},{"foreground":"#808080","token":"punctuation.definition.tag"},{"foreground":"#569CD6","token":"meta.preprocessor"},{"foreground":"#569CD6","token":"entity.name.function.preprocessor"},{"foreground":"#CE9178","token":"meta.preprocessor.string"},{"foreground":"#B5CEA8","token":"meta.preprocessor.numeric"},{"foreground":"#9CDCFE","token":"meta.structure.dictionary.key.python"},{"foreground":"#569CD6","token":"meta.diff.header"},{"foreground":"#569CD6","token":"storage"},{"foreground":"#569CD6","token":"storage.type"},{"foreground":"#569CD6","token":"storage.modifier"},{"foreground":"#569CD6","token":"keyword.operator.noexcept"},{"foreground":"#CE9178","token":"string"},{"foreground":"#CE9178","token":"meta.embedded.assembly"},{"foreground":"#CE9178","token":"string.tag"},{"foreground":"#CE9178","token":"string.value"},{"foreground":"#D16969","token":"string.regexp"},{"foreground":"#569CD6","token":"punctuation.definition.template-expression.begin"},{"foreground":"#569CD6","token":"punctuation.definition.template-expression.end"},{"foreground":"#569CD6","token":"punctuation.section.embedded"},{"foreground":"#D4D4D4","token":"meta.template.expression"},{"foreground":"#9CDCFE","token":"support.type.vendored.property-name"},{"foreground":"#9CDCFE","token":"support.type.property-name"},{"foreground":"#9CDCFE","token":"variable.css"},{"foreground":"#9CDCFE","token":"variable.scss"},{"foreground":"#9CDCFE","token":"variable.other.less"},{"foreground":"#9CDCFE","token":"source.coffee.embedded"},{"foreground":"#569CD6","token":"keyword"},{"foreground":"#569CD6","token":"keyword.control"},{"foreground":"#D4D4D4","token":"keyword.operator"},{"foreground":"#569CD6","token":"keyword.operator.new"},{"foreground":"#569CD6","token":"keyword.operator.expression"},{"foreground":"#569CD6","token":"keyword.operator.cast"},{"foreground":"#569CD6","token":"keyword.operator.sizeof"},{"foreground":"#569CD6","token":"keyword.operator.alignof"},{"foreground":"#569CD6","token":"keyword.operator.typeid"},{"foreground":"#569CD6","token":"keyword.operator.alignas"},{"foreground":"#569CD6","token":"keyword.operator.instanceof"},{"foreground":"#569CD6","token":"keyword.operator.logical.python"},{"foreground":"#569CD6","token":"keyword.Line truncated
-34
View File
@@ -1,34 +0,0 @@
version: "3.8"
services:
api:
build:
context: ./docker
dockerfile: api/Dockerfile
image: mainsail-stack-api/1
volumes:
- ./docker/config:/home/node/printer_config
- ./docker/logs:/tmp/logs
- ./docker/gcode:/home/node/gcode
- ./docker/config/moonraker:/home/node/.moonraker_database
container_name: ${APP_NAME}-stack-api
ports:
- 7125:7125
networks:
- dev_net
application:
build:
context: ./docker
dockerfile: Dockerfile
image: mainsail-stack-npm/1
volumes:
- ./:/home/node/mainsail
container_name: ${APP_NAME}-stack-npm
ports:
- 8080:8080
depends_on:
- api
networks:
- dev_net
networks:
dev_net:
driver: bridge
-15
View File
@@ -1,15 +0,0 @@
FROM node:buster AS base
EXPOSE 8080
RUN apt-get update
RUN apt-get install -y zip
COPY start-npm /usr/local/bin/start-npm
RUN chmod +x /usr/local/bin/start-npm
USER node
WORKDIR /home/node/mainsail
ENTRYPOINT ["start-npm"]
-66
View File
@@ -1,66 +0,0 @@
FROM debian:buster AS base
RUN groupadd --force -g 1000 node
RUN useradd -ms /bin/bash --no-user-group -g 1000 -u 1000 node
RUN apt-get update
RUN apt-get install -y sudo wget cmake swig git virtualenv python-dev libffi-dev build-essential libncurses-dev libusb-dev avrdude gcc-avr binutils-avr avr-libc dfu-util libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0
RUN mkdir /src
WORKDIR /src
RUN wget http://download.savannah.nongnu.org/releases/simulavr/libsim_1.1.0_amd64.deb
RUN apt install /src/libsim_1.1.0_amd64.deb
#prebuild files for simulavr, not needed currently, because we just build the python lib later
#RUN wget http://download.savannah.nongnu.org/releases/simulavr/simulavr_1.1.0_amd64.deb
#RUN apt install /src/simulavr_1.1.0_amd64.deb
#RUN wget http://download.savannah.nongnu.org/releases/simulavr/python3-simulavr_1.1.0_amd64.deb
#RUN apt install /src/python3-simulavr_1.1.0_amd64.deb
RUN cat /etc/passwd
RUN echo 'node ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/node && \
chown node:node -R ./
#if systemd is installed, we need to backup the current systemctl command
#RUN mv /bin/systemctl /bin/systemctl.bak
RUN ln -s /bin/true /bin/systemctl
USER node
WORKDIR /home/node
RUN git clone https://github.com/KevinOConnor/klipper
WORKDIR /home/node/klipper
COPY api/simulavr.config /home/node/klipper/.config
RUN make
RUN cp /home/node/klipper/out/klipper.elf /home/node/klipper/simulavr.elf
RUN rm /home/node/klipper/.config
COPY api/linux.config /home/node/klipper/.config
RUN make clean
RUN make
RUN chmod +x /home/node/klipper/scripts/install-debian.sh
RUN /home/node/klipper/scripts/install-debian.sh
WORKDIR /home/node
RUN git clone https://github.com/Arksine/moonraker
WORKDIR /home/node/moonraker
RUN sed -E 's/check_klipper\(\)/check_klipper() { return 0; }\nold()/' /home/node/moonraker/scripts/install-moonraker.sh > /home/node/moonraker/scripts/install-moonraker2.sh
RUN chmod +x /home/node/moonraker/scripts/install-moonraker2.sh
RUN /home/node/moonraker/scripts/install-moonraker2.sh
RUN sudo rm -f /bin/systemctl
#restore backed up systemctl command
#RUN sudo mv /bin/systemctl.bak /bin/systemctl
WORKDIR /home/node/
RUN git clone https://git.savannah.nongnu.org/git/simulavr.git
WORKDIR /home/node/simulavr
RUN make python
RUN make build
USER root
COPY api/run-api /usr/local/bin/run-api
RUN chmod +x /usr/local/bin/run-api
USER node
ENTRYPOINT ["run-api"]
-25
View File
@@ -1,25 +0,0 @@
CONFIG_LOW_LEVEL_OPTIONS=y
# CONFIG_MACH_AVR is not set
# CONFIG_MACH_ATSAM is not set
# CONFIG_MACH_ATSAMD is not set
# CONFIG_MACH_LPC176X is not set
# CONFIG_MACH_STM32 is not set
# CONFIG_MACH_PRU is not set
CONFIG_MACH_LINUX=y
# CONFIG_MACH_SIMU is not set
CONFIG_STEP_DELAY=2
CONFIG_BOARD_DIRECTORY="linux"
CONFIG_CLOCK_FREQ=50000000
CONFIG_LINUX_SELECT=y
CONFIG_USB_VENDOR_ID=0x1d50
CONFIG_USB_DEVICE_ID=0x614e
CONFIG_USB_SERIAL_NUMBER="12345"
# CONFIG_CUSTOM_STEP_DELAY is not set
CONFIG_INITIAL_PINS=""
CONFIG_HAVE_GPIO=y
CONFIG_HAVE_GPIO_ADC=y
CONFIG_HAVE_GPIO_SPI=y
CONFIG_HAVE_GPIO_I2C=y
CONFIG_HAVE_GPIO_HARD_PWM=y
CONFIG_HAVE_GPIO_BITBANGING=y
CONFIG_INLINE_STEPPER_HACK=y
-6
View File
@@ -1,6 +0,0 @@
#!/usr/bin/env bash
PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf &
/home/node/klippy-env/bin/python /home/node/klipper/klippy/klippy.py /home/node/printer_config/printer.cfg -l /tmp/logs/klippy.log -a /tmp/klippy_uds &
/home/node/moonraker-env/bin/python /home/node/moonraker/moonraker/moonraker.py -l /tmp/logs/moonraker.log -c /home/node/printer_config/moonraker.conf &
echo "Starting ..." >> /tmp/logs/klippy.log
tail -f /tmp/logs/klippy.log
-50
View File
@@ -1,50 +0,0 @@
CONFIG_LOW_LEVEL_OPTIONS=y
CONFIG_MACH_AVR=y
# CONFIG_MACH_ATSAM is not set
# CONFIG_MACH_ATSAMD is not set
# CONFIG_MACH_LPC176X is not set
# CONFIG_MACH_STM32 is not set
# CONFIG_MACH_PRU is not set
# CONFIG_MACH_LINUX is not set
# CONFIG_MACH_SIMU is not set
CONFIG_AVR_SELECT=y
CONFIG_STEP_DELAY=-1
CONFIG_BOARD_DIRECTORY="avr"
# CONFIG_MACH_atmega2560 is not set
# CONFIG_MACH_atmega1280 is not set
# CONFIG_MACH_at90usb1286 is not set
# CONFIG_MACH_at90usb646 is not set
# CONFIG_MACH_atmega32u4 is not set
# CONFIG_MACH_atmega1284p is not set
CONFIG_MACH_atmega644p=y
# CONFIG_MACH_atmega328p is not set
# CONFIG_MACH_atmega328 is not set
# CONFIG_MACH_atmega168 is not set
CONFIG_MCU="atmega644p"
CONFIG_AVRDUDE_PROTOCOL="arduino"
# CONFIG_AVR_FREQ_16000000 is not set
CONFIG_AVR_FREQ_20000000=y
# CONFIG_AVR_FREQ_8000000 is not set
CONFIG_CLOCK_FREQ=20000000
CONFIG_AVR_CLKPR=-1
CONFIG_AVR_STACK_SIZE=256
CONFIG_AVR_WATCHDOG=y
CONFIG_SERIAL=y
CONFIG_AVR_SERIAL_UART0=y
# CONFIG_AVR_SERIAL_UART1 is not set
CONFIG_SERIAL_PORT=0
CONFIG_SIMULAVR=y
CONFIG_SERIAL_BAUD=250000
CONFIG_USB_VENDOR_ID=0x1d50
CONFIG_USB_DEVICE_ID=0x614e
CONFIG_USB_SERIAL_NUMBER="12345"
# CONFIG_CUSTOM_STEP_DELAY is not set
CONFIG_INITIAL_PINS=""
CONFIG_HAVE_GPIO=y
CONFIG_HAVE_GPIO_ADC=y
CONFIG_HAVE_GPIO_SPI=y
CONFIG_HAVE_GPIO_I2C=y
CONFIG_HAVE_GPIO_HARD_PWM=y
CONFIG_HAVE_GPIO_BITBANGING=y
CONFIG_HAVE_STRICT_TIMING=y
CONFIG_INLINE_STEPPER_HACK=y
-14
View File
@@ -1,14 +0,0 @@
# moonraker.conf
[server]
host: 0.0.0.0
port: 7125
enable_debug_logging: True
config_path: /home/node/printer_config/
[authorization]
enabled: True
trusted_clients:
0.0.0.0/0
cors_domains:
*
-179
View File
@@ -1,179 +0,0 @@
[virtual_sdcard]
path: ~/gcode
[pause_resume]
[display_status]
[mcu]
serial: /tmp/pseudoserial
pin_map: arduino
baud: 250000
[stepper_x]
step_pin: PD7
dir_pin: !PC5
enable_pin: !PD6
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC2
position_endstop: 0
position_max: 235
homing_speed: 50
homing_retract_dist: 0
[stepper_y]
step_pin: PC6
dir_pin: !PC7
enable_pin: !PD6
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC3
position_endstop: 0
position_max: 235
homing_speed: 50
homing_retract_dist: 0
[stepper_z]
step_pin: PB3
dir_pin: PB2
enable_pin: !PA5
microsteps: 16
rotation_distance: 8
endstop_pin: ^PC4
position_endstop: 0.0
position_max: 250
homing_retract_dist: 0
[extruder]
max_extrude_only_distance: 100.0
step_pin: PB1
dir_pin: !PB0
enable_pin: !PD6
microsteps: 16
rotation_distance: 33.683
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PD5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA7
control: watermark
min_temp: 0
max_temp: 250
min_extrude_temp: 50
[heater_bed]
heater_pin: PD4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA6
control: watermark
min_temp: 0
max_temp: 130
[fan]
pin: PB4
[heater_fan nozzle_fan]
pin: PB5
off_below: 0.0
shutdown_speed: 1.0
max_power: 1.0
[controller_fan mcu_fan]
pin: PB6
off_below: 0.2
shutdown_speed: 1.0
max_power: 1.0
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
#[display]
#lcd_type: st7920
#cs_pin: PA3
#sclk_pin: PA1
#sid_pin: PC1
#encoder_pins: ^PD2, ^PD3
#click_pin: ^!PC0
# The print bed can move so far to the front, that the nozzle can reach the
# plastic cover of the print bed heater cable (only when the bed is moved by
# hand). By homing the Y axis before the X axis, it is ensured the nozzle will
# not melt through the plastic part.
# BEWARE: You will lose the ability to home axes individually. The printer will
# always home all axes for every G28 command.
#[homing_override]
#gcode:
# G28 Y0
# G28 X0
# G28 Z0
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230 #edit to your park position
default_parameter_Y: 230 #edit to your park position
default_parameter_Z: 10 #edit to your park position
default_parameter_E: 1 #edit to your retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 1 #edit to your retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
[gcode_macro START_PRINT]
default_parameter_BED_TEMP: 103.3
default_parameter_EXTRUDER_TEMP: 103.3
gcode:
# Start bed heating
M140 S103.3
# Use absolute coordinates
G90
# Reset the G-Code Z offset (adjust Z offset if needed)
SET_GCODE_OFFSET Z=0.0
# Home the printer
G28
# Move the nozzle near the bed
G1 Z5 F3000
# Move the nozzle very close to the bed
G1 Z0.15 F300
# Wait for bed to reach temperature
M190 S103.3
# Set and wait for nozzle to reach temperature
M109 S103.3
[gcode_macro END_PRINT]
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
G1 X-2 Y-2 E-3 F300
# Raise nozzle by 10mm
G1 Z10 F3000
G90
# Disable steppers
M84
-17
View File
@@ -1,17 +0,0 @@
#!/usr/bin/env bash
export APP_NAME=mainsail
if [ $# -gt 0 ]; then
if [ "$1" == "restart" ]; then
docker-compose restart "$2"
elif [ "$1" == "bash" ]; then
docker exec -it "$APP_NAME-stack-$2" bash
elif [ "$1" == "npm-build" ]; then
docker exec "$APP_NAME-stack-npm" npm run build
else
docker-compose "$@"
fi
else
docker-compose ps
fi
-5
View File
@@ -1,5 +0,0 @@
#!/usr/bin/env bash
if [ ! -d 'node_modules' ]; then
npm ci
fi
npm run serve
-10
View File
@@ -1,10 +0,0 @@
CNAME
# Ignore metadata generated by Jekyll
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Ignore folders generated by Bundler
.bundle/
vendor/
-34
View File
@@ -1,34 +0,0 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
#gem "jekyll", "~> 4.2.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
#gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem "jekyll-remote-theme"
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
-277
View File
@@ -1,277 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.5)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.8)
dnsruby (1.61.5)
simpleidn (~> 0.1)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.12.0)
ffi (>= 1.3.0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
execjs (2.7.0)
faraday (1.3.0)
faraday-net_http (~> 1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords
faraday-net_http (1.0.1)
ffi (1.14.2)
ffi (1.14.2-x64-mingw32)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (212)
github-pages-health-check (= 1.17.0)
jekyll (= 3.9.0)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.1.6)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.15.1)
jekyll-gist (= 1.5.0)
jekyll-github-metadata (= 2.13.0)
jekyll-mentions (= 1.6.0)
jekyll-optional-front-matter (= 0.3.2)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.3.0)
jekyll-redirect-from (= 0.16.0)
jekyll-relative-links (= 0.6.1)
jekyll-remote-theme (= 0.4.2)
jekyll-sass-converter (= 1.5.2)
jekyll-seo-tag (= 2.7.1)
jekyll-sitemap (= 1.4.0)
jekyll-swiss (= 1.0.0)
jekyll-theme-architect (= 0.1.1)
jekyll-theme-cayman (= 0.1.1)
jekyll-theme-dinky (= 0.1.1)
jekyll-theme-hacker (= 0.1.2)
jekyll-theme-leap-day (= 0.1.1)
jekyll-theme-merlot (= 0.1.1)
jekyll-theme-midnight (= 0.1.1)
jekyll-theme-minimal (= 0.1.1)
jekyll-theme-modernist (= 0.1.1)
jekyll-theme-primer (= 0.5.4)
jekyll-theme-slate (= 0.1.1)
jekyll-theme-tactile (= 0.1.1)
jekyll-theme-time-machine (= 0.1.1)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.12.0)
kramdown (= 2.3.0)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.3)
mercenary (~> 0.3)
minima (= 2.5.1)
nokogiri (>= 1.10.4, < 2.0)
rouge (= 3.26.0)
terminal-table (~> 1.4)
github-pages-health-check (1.17.0)
addressable (~> 2.3)
dnsruby (~> 1.60)
octokit (~> 4.0)
public_suffix (>= 2.0.2, < 5.0)
typhoeus (~> 1.3)
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.9.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-avatar (0.7.0)
jekyll (>= 3.0, < 5.0)
jekyll-coffeescript (1.1.1)
coffee-script (~> 2.2)
coffee-script-source (~> 1.11.1)
jekyll-commonmark (1.3.1)
commonmarker (~> 0.14)
jekyll (>= 3.7, < 5.0)
jekyll-commonmark-ghpages (0.1.6)
commonmarker (~> 0.17.6)
jekyll-commonmark (~> 1.2)
rouge (>= 2.0, < 4.0)
jekyll-default-layout (0.1.4)
jekyll (~> 3.0)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-github-metadata (2.13.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.6.0)
html-pipeline (~> 2.3)
jekyll (>= 3.7, < 5.0)
jekyll-optional-front-matter (0.3.2)
jekyll (>= 3.0, < 5.0)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.3.0)
jekyll (>= 3.0, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-relative-links (0.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-remote-theme (0.4.2)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
rubyzip (>= 1.3.0, < 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.7.1)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-swiss (1.0.0)
jekyll-theme-architect (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-cayman (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-dinky (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-hacker (0.1.2)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-leap-day (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-merlot (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-midnight (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-minimal (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-modernist (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.5.4)
jekyll (> 3.5, < 5.0)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.0)
jekyll-theme-slate (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-tactile (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.5.3)
jekyll (>= 3.3, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.12.0)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.4.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.14.4)
multipart-post (2.1.1)
nokogiri (1.11.1-x64-mingw32)
racc (~> 1.4)
nokogiri (1.11.1-x86_64-linux)
racc (~> 1.4)
octokit (4.20.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
racc (1.5.2)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
ruby-enum (0.9.0)
i18n
ruby2_keywords (0.0.4)
rubyzip (2.3.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
simpleidn (0.2.1)
unf (~> 0.1.4)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.9)
thread_safe (~> 0.1)
tzinfo-data (1.2021.1)
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unf_ext (0.0.7.7-x64-mingw32)
unicode-display_width (1.7.0)
wdm (0.1.1)
zeitwerk (2.4.2)
PLATFORMS
x64-mingw32
x86_64-linux
DEPENDENCIES
github-pages
jekyll-feed (~> 0.12)
jekyll-remote-theme
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)
BUNDLED WITH
2.2.13
+1 -6
View File
@@ -2,15 +2,10 @@ title: "Mainsail"
tagline: A web interface for Klipper
description: Mainsail is a lightweight & responsive web interface for the Klipper 3D printer firmware. It communicates with Moonraker (Klipper-API) from Arksine.
logo: "/assets/img/logo-mainsail.png"
# theme: just-the-docs
theme: just-the-docs
remote_theme: pmarsceill/just-the-docs
color_scheme: "mainsail"
search_enabled: true
aux_links:
"Mainsail on GitHub":
- "//github.com/meteyou/mainsail"
aux_links_new_tab: true
defaults:
-
-506
View File
@@ -1,506 +0,0 @@
[
{
"login": "meteyou",
"id": 8167632,
"node_id": "MDQ6VXNlcjgxNjc2MzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/8167632?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/meteyou",
"html_url": "https://github.com/meteyou",
"followers_url": "https://api.github.com/users/meteyou/followers",
"following_url": "https://api.github.com/users/meteyou/following{/other_user}",
"gists_url": "https://api.github.com/users/meteyou/gists{/gist_id}",
"starred_url": "https://api.github.com/users/meteyou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meteyou/subscriptions",
"organizations_url": "https://api.github.com/users/meteyou/orgs",
"repos_url": "https://api.github.com/users/meteyou/repos",
"events_url": "https://api.github.com/users/meteyou/events{/privacy}",
"received_events_url": "https://api.github.com/users/meteyou/received_events",
"type": "User",
"site_admin": false,
"contributions": 653
},
{
"login": "freasy",
"id": 5220632,
"node_id": "MDQ6VXNlcjUyMjA2MzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/5220632?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/freasy",
"html_url": "https://github.com/freasy",
"followers_url": "https://api.github.com/users/freasy/followers",
"following_url": "https://api.github.com/users/freasy/following{/other_user}",
"gists_url": "https://api.github.com/users/freasy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/freasy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/freasy/subscriptions",
"organizations_url": "https://api.github.com/users/freasy/orgs",
"repos_url": "https://api.github.com/users/freasy/repos",
"events_url": "https://api.github.com/users/freasy/events{/privacy}",
"received_events_url": "https://api.github.com/users/freasy/received_events",
"type": "User",
"site_admin": false,
"contributions": 57
},
{
"login": "winbin",
"id": 9819264,
"node_id": "MDQ6VXNlcjk4MTkyNjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/9819264?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/winbin",
"html_url": "https://github.com/winbin",
"followers_url": "https://api.github.com/users/winbin/followers",
"following_url": "https://api.github.com/users/winbin/following{/other_user}",
"gists_url": "https://api.github.com/users/winbin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/winbin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/winbin/subscriptions",
"organizations_url": "https://api.github.com/users/winbin/orgs",
"repos_url": "https://api.github.com/users/winbin/repos",
"events_url": "https://api.github.com/users/winbin/events{/privacy}",
"received_events_url": "https://api.github.com/users/winbin/received_events",
"type": "User",
"site_admin": false,
"contributions": 22
},
{
"login": "le3tspeak",
"id": 21110785,
"node_id": "MDQ6VXNlcjIxMTEwNzg1",
"avatar_url": "https://avatars.githubusercontent.com/u/21110785?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/le3tspeak",
"html_url": "https://github.com/le3tspeak",
"followers_url": "https://api.github.com/users/le3tspeak/followers",
"following_url": "https://api.github.com/users/le3tspeak/following{/other_user}",
"gists_url": "https://api.github.com/users/le3tspeak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/le3tspeak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/le3tspeak/subscriptions",
"organizations_url": "https://api.github.com/users/le3tspeak/orgs",
"repos_url": "https://api.github.com/users/le3tspeak/repos",
"events_url": "https://api.github.com/users/le3tspeak/events{/privacy}",
"received_events_url": "https://api.github.com/users/le3tspeak/received_events",
"type": "User",
"site_admin": false,
"contributions": 16
},
{
"login": "lixxbox",
"id": 5130466,
"node_id": "MDQ6VXNlcjUxMzA0NjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/5130466?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lixxbox",
"html_url": "https://github.com/lixxbox",
"followers_url": "https://api.github.com/users/lixxbox/followers",
"following_url": "https://api.github.com/users/lixxbox/following{/other_user}",
"gists_url": "https://api.github.com/users/lixxbox/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lixxbox/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lixxbox/subscriptions",
"organizations_url": "https://api.github.com/users/lixxbox/orgs",
"repos_url": "https://api.github.com/users/lixxbox/repos",
"events_url": "https://api.github.com/users/lixxbox/events{/privacy}",
"received_events_url": "https://api.github.com/users/lixxbox/received_events",
"type": "User",
"site_admin": false,
"contributions": 12
},
{
"login": "translucentfocus",
"id": 26986716,
"node_id": "MDQ6VXNlcjI2OTg2NzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/26986716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/translucentfocus",
"html_url": "https://github.com/translucentfocus",
"followers_url": "https://api.github.com/users/translucentfocus/followers",
"following_url": "https://api.github.com/users/translucentfocus/following{/other_user}",
"gists_url": "https://api.github.com/users/translucentfocus/gists{/gist_id}",
"starred_url": "https://api.github.com/users/translucentfocus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/translucentfocus/subscriptions",
"organizations_url": "https://api.github.com/users/translucentfocus/orgs",
"repos_url": "https://api.github.com/users/translucentfocus/repos",
"events_url": "https://api.github.com/users/translucentfocus/events{/privacy}",
"received_events_url": "https://api.github.com/users/translucentfocus/received_events",
"type": "User",
"site_admin": false,
"contributions": 8
},
{
"login": "Birkemosen",
"id": 12812702,
"node_id": "MDQ6VXNlcjEyODEyNzAy",
"avatar_url": "https://avatars.githubusercontent.com/u/12812702?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Birkemosen",
"html_url": "https://github.com/Birkemosen",
"followers_url": "https://api.github.com/users/Birkemosen/followers",
"following_url": "https://api.github.com/users/Birkemosen/following{/other_user}",
"gists_url": "https://api.github.com/users/Birkemosen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Birkemosen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Birkemosen/subscriptions",
"organizations_url": "https://api.github.com/users/Birkemosen/orgs",
"repos_url": "https://api.github.com/users/Birkemosen/repos",
"events_url": "https://api.github.com/users/Birkemosen/events{/privacy}",
"received_events_url": "https://api.github.com/users/Birkemosen/received_events",
"type": "User",
"site_admin": false,
"contributions": 7
},
{
"login": "eliteSchwein",
"id": 39838619,
"node_id": "MDQ6VXNlcjM5ODM4NjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/39838619?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eliteSchwein",
"html_url": "https://github.com/eliteSchwein",
"followers_url": "https://api.github.com/users/eliteSchwein/followers",
"following_url": "https://api.github.com/users/eliteSchwein/following{/other_user}",
"gists_url": "https://api.github.com/users/eliteSchwein/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eliteSchwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eliteSchwein/subscriptions",
"organizations_url": "https://api.github.com/users/eliteSchwein/orgs",
"repos_url": "https://api.github.com/users/eliteSchwein/repos",
"events_url": "https://api.github.com/users/eliteSchwein/events{/privacy}",
"received_events_url": "https://api.github.com/users/eliteSchwein/received_events",
"type": "User",
"site_admin": false,
"contributions": 6
},
{
"login": "randellhodges",
"id": 7727467,
"node_id": "MDQ6VXNlcjc3Mjc0Njc=",
"avatar_url": "https://avatars.githubusercontent.com/u/7727467?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/randellhodges",
"html_url": "https://github.com/randellhodges",
"followers_url": "https://api.github.com/users/randellhodges/followers",
"following_url": "https://api.github.com/users/randellhodges/following{/other_user}",
"gists_url": "https://api.github.com/users/randellhodges/gists{/gist_id}",
"starred_url": "https://api.github.com/users/randellhodges/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/randellhodges/subscriptions",
"organizations_url": "https://api.github.com/users/randellhodges/orgs",
"repos_url": "https://api.github.com/users/randellhodges/repos",
"events_url": "https://api.github.com/users/randellhodges/events{/privacy}",
"received_events_url": "https://api.github.com/users/randellhodges/received_events",
"type": "User",
"site_admin": false,
"contributions": 4
},
{
"login": "cadriel",
"id": 205520,
"node_id": "MDQ6VXNlcjIwNTUyMA==",
"avatar_url": "https://avatars.githubusercontent.com/u/205520?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cadriel",
"html_url": "https://github.com/cadriel",
"followers_url": "https://api.github.com/users/cadriel/followers",
"following_url": "https://api.github.com/users/cadriel/following{/other_user}",
"gists_url": "https://api.github.com/users/cadriel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cadriel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cadriel/subscriptions",
"organizations_url": "https://api.github.com/users/cadriel/orgs",
"repos_url": "https://api.github.com/users/cadriel/repos",
"events_url": "https://api.github.com/users/cadriel/events{/privacy}",
"received_events_url": "https://api.github.com/users/cadriel/received_events",
"type": "User",
"site_admin": false,
"contributions": 3
},
{
"login": "FrYakaTKoP",
"id": 10913183,
"node_id": "MDQ6VXNlcjEwOTEzMTgz",
"avatar_url": "https://avatars.githubusercontent.com/u/10913183?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FrYakaTKoP",
"html_url": "https://github.com/FrYakaTKoP",
"followers_url": "https://api.github.com/users/FrYakaTKoP/followers",
"following_url": "https://api.github.com/users/FrYakaTKoP/following{/other_user}",
"gists_url": "https://api.github.com/users/FrYakaTKoP/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FrYakaTKoP/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FrYakaTKoP/subscriptions",
"organizations_url": "https://api.github.com/users/FrYakaTKoP/orgs",
"repos_url": "https://api.github.com/users/FrYakaTKoP/repos",
"events_url": "https://api.github.com/users/FrYakaTKoP/events{/privacy}",
"received_events_url": "https://api.github.com/users/FrYakaTKoP/received_events",
"type": "User",
"site_admin": false,
"contributions": 3
},
{
"login": "kageurufu",
"id": 259751,
"node_id": "MDQ6VXNlcjI1OTc1MQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/259751?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kageurufu",
"html_url": "https://github.com/kageurufu",
"followers_url": "https://api.github.com/users/kageurufu/followers",
"following_url": "https://api.github.com/users/kageurufu/following{/other_user}",
"gists_url": "https://api.github.com/users/kageurufu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kageurufu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kageurufu/subscriptions",
"organizations_url": "https://api.github.com/users/kageurufu/orgs",
"repos_url": "https://api.github.com/users/kageurufu/repos",
"events_url": "https://api.github.com/users/kageurufu/events{/privacy}",
"received_events_url": "https://api.github.com/users/kageurufu/received_events",
"type": "User",
"site_admin": false,
"contributions": 3
},
{
"login": "Rejdukien",
"id": 2448290,
"node_id": "MDQ6VXNlcjI0NDgyOTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/2448290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Rejdukien",
"html_url": "https://github.com/Rejdukien",
"followers_url": "https://api.github.com/users/Rejdukien/followers",
"following_url": "https://api.github.com/users/Rejdukien/following{/other_user}",
"gists_url": "https://api.github.com/users/Rejdukien/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Rejdukien/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rejdukien/subscriptions",
"organizations_url": "https://api.github.com/users/Rejdukien/orgs",
"repos_url": "https://api.github.com/users/Rejdukien/repos",
"events_url": "https://api.github.com/users/Rejdukien/events{/privacy}",
"received_events_url": "https://api.github.com/users/Rejdukien/received_events",
"type": "User",
"site_admin": false,
"contributions": 3
},
{
"login": "dependabot[bot]",
"id": 49699333,
"node_id": "MDM6Qm90NDk2OTkzMzM=",
"avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dependabot%5Bbot%5D",
"html_url": "https://github.com/apps/dependabot",
"followers_url": "https://api.github.com/users/dependabot%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/dependabot%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/dependabot%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dependabot%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dependabot%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/dependabot%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/dependabot%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/dependabot%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/dependabot%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false,
"contributions": 3
},
{
"login": "CodingJustForRun",
"id": 71041835,
"node_id": "MDQ6VXNlcjcxMDQxODM1",
"avatar_url": "https://avatars.githubusercontent.com/u/71041835?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CodingJustForRun",
"html_url": "https://github.com/CodingJustForRun",
"followers_url": "https://api.github.com/users/CodingJustForRun/followers",
"following_url": "https://api.github.com/users/CodingJustForRun/following{/other_user}",
"gists_url": "https://api.github.com/users/CodingJustForRun/gists{/gist_id}",
"starred_url": "https://api.github.com/users/CodingJustForRun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CodingJustForRun/subscriptions",
"organizations_url": "https://api.github.com/users/CodingJustForRun/orgs",
"repos_url": "https://api.github.com/users/CodingJustForRun/repos",
"events_url": "https://api.github.com/users/CodingJustForRun/events{/privacy}",
"received_events_url": "https://api.github.com/users/CodingJustForRun/received_events",
"type": "User",
"site_admin": false,
"contributions": 2
},
{
"login": "Lanovar",
"id": 59284012,
"node_id": "MDQ6VXNlcjU5Mjg0MDEy",
"avatar_url": "https://avatars.githubusercontent.com/u/59284012?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Lanovar",
"html_url": "https://github.com/Lanovar",
"followers_url": "https://api.github.com/users/Lanovar/followers",
"following_url": "https://api.github.com/users/Lanovar/following{/other_user}",
"gists_url": "https://api.github.com/users/Lanovar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Lanovar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lanovar/subscriptions",
"organizations_url": "https://api.github.com/users/Lanovar/orgs",
"repos_url": "https://api.github.com/users/Lanovar/repos",
"events_url": "https://api.github.com/users/Lanovar/events{/privacy}",
"received_events_url": "https://api.github.com/users/Lanovar/received_events",
"type": "User",
"site_admin": false,
"contributions": 2
},
{
"login": "th33xitus",
"id": 31533186,
"node_id": "MDQ6VXNlcjMxNTMzMTg2",
"avatar_url": "https://avatars.githubusercontent.com/u/31533186?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/th33xitus",
"html_url": "https://github.com/th33xitus",
"followers_url": "https://api.github.com/users/th33xitus/followers",
"following_url": "https://api.github.com/users/th33xitus/following{/other_user}",
"gists_url": "https://api.github.com/users/th33xitus/gists{/gist_id}",
"starred_url": "https://api.github.com/users/th33xitus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/th33xitus/subscriptions",
"organizations_url": "https://api.github.com/users/th33xitus/orgs",
"repos_url": "https://api.github.com/users/th33xitus/repos",
"events_url": "https://api.github.com/users/th33xitus/events{/privacy}",
"received_events_url": "https://api.github.com/users/th33xitus/received_events",
"type": "User",
"site_admin": false,
"contributions": 2
},
{
"login": "sir-thanksalot",
"id": 36886251,
"node_id": "MDQ6VXNlcjM2ODg2MjUx",
"avatar_url": "https://avatars.githubusercontent.com/u/36886251?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sir-thanksalot",
"html_url": "https://github.com/sir-thanksalot",
"followers_url": "https://api.github.com/users/sir-thanksalot/followers",
"following_url": "https://api.github.com/users/sir-thanksalot/following{/other_user}",
"gists_url": "https://api.github.com/users/sir-thanksalot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sir-thanksalot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sir-thanksalot/subscriptions",
"organizations_url": "https://api.github.com/users/sir-thanksalot/orgs",
"repos_url": "https://api.github.com/users/sir-thanksalot/repos",
"events_url": "https://api.github.com/users/sir-thanksalot/events{/privacy}",
"received_events_url": "https://api.github.com/users/sir-thanksalot/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
},
{
"login": "pusewicz",
"id": 940,
"node_id": "MDQ6VXNlcjk0MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/940?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pusewicz",
"html_url": "https://github.com/pusewicz",
"followers_url": "https://api.github.com/users/pusewicz/followers",
"following_url": "https://api.github.com/users/pusewicz/following{/other_user}",
"gists_url": "https://api.github.com/users/pusewicz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pusewicz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pusewicz/subscriptions",
"organizations_url": "https://api.github.com/users/pusewicz/orgs",
"repos_url": "https://api.github.com/users/pusewicz/repos",
"events_url": "https://api.github.com/users/pusewicz/events{/privacy}",
"received_events_url": "https://api.github.com/users/pusewicz/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
},
{
"login": "rufo",
"id": 2745,
"node_id": "MDQ6VXNlcjI3NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2745?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rufo",
"html_url": "https://github.com/rufo",
"followers_url": "https://api.github.com/users/rufo/followers",
"following_url": "https://api.github.com/users/rufo/following{/other_user}",
"gists_url": "https://api.github.com/users/rufo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rufo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rufo/subscriptions",
"organizations_url": "https://api.github.com/users/rufo/orgs",
"repos_url": "https://api.github.com/users/rufo/repos",
"events_url": "https://api.github.com/users/rufo/events{/privacy}",
"received_events_url": "https://api.github.com/users/rufo/received_events",
"type": "User",
"site_admin": true,
"contributions": 1
},
{
"login": "shinuza",
"id": 137940,
"node_id": "MDQ6VXNlcjEzNzk0MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/137940?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shinuza",
"html_url": "https://github.com/shinuza",
"followers_url": "https://api.github.com/users/shinuza/followers",
"following_url": "https://api.github.com/users/shinuza/following{/other_user}",
"gists_url": "https://api.github.com/users/shinuza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shinuza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shinuza/subscriptions",
"organizations_url": "https://api.github.com/users/shinuza/orgs",
"repos_url": "https://api.github.com/users/shinuza/repos",
"events_url": "https://api.github.com/users/shinuza/events{/privacy}",
"received_events_url": "https://api.github.com/users/shinuza/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
},
{
"login": "morganfw",
"id": 5797249,
"node_id": "MDQ6VXNlcjU3OTcyNDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/5797249?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/morganfw",
"html_url": "https://github.com/morganfw",
"followers_url": "https://api.github.com/users/morganfw/followers",
"following_url": "https://api.github.com/users/morganfw/following{/other_user}",
"gists_url": "https://api.github.com/users/morganfw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/morganfw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/morganfw/subscriptions",
"organizations_url": "https://api.github.com/users/morganfw/orgs",
"repos_url": "https://api.github.com/users/morganfw/repos",
"events_url": "https://api.github.com/users/morganfw/events{/privacy}",
"received_events_url": "https://api.github.com/users/morganfw/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
},
{
"login": "ru-ace",
"id": 10783157,
"node_id": "MDQ6VXNlcjEwNzgzMTU3",
"avatar_url": "https://avatars.githubusercontent.com/u/10783157?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ru-ace",
"html_url": "https://github.com/ru-ace",
"followers_url": "https://api.github.com/users/ru-ace/followers",
"following_url": "https://api.github.com/users/ru-ace/following{/other_user}",
"gists_url": "https://api.github.com/users/ru-ace/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ru-ace/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ru-ace/subscriptions",
"organizations_url": "https://api.github.com/users/ru-ace/orgs",
"repos_url": "https://api.github.com/users/ru-ace/repos",
"events_url": "https://api.github.com/users/ru-ace/events{/privacy}",
"received_events_url": "https://api.github.com/users/ru-ace/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
},
{
"login": "dewi-ny-je",
"id": 2866139,
"node_id": "MDQ6VXNlcjI4NjYxMzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/2866139?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dewi-ny-je",
"html_url": "https://github.com/dewi-ny-je",
"followers_url": "https://api.github.com/users/dewi-ny-je/followers",
"following_url": "https://api.github.com/users/dewi-ny-je/following{/other_user}",
"gists_url": "https://api.github.com/users/dewi-ny-je/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dewi-ny-je/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dewi-ny-je/subscriptions",
"organizations_url": "https://api.github.com/users/dewi-ny-je/orgs",
"repos_url": "https://api.github.com/users/dewi-ny-je/repos",
"events_url": "https://api.github.com/users/dewi-ny-je/events{/privacy}",
"received_events_url": "https://api.github.com/users/dewi-ny-je/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
}
]
-152
View File
@@ -1,152 +0,0 @@
{
"axios": {
"licenses": "MIT",
"repository": "https://github.com/axios/axios",
"licenseUrl": "https://github.com/axios/axios/raw/master/LICENSE",
"parents": "mainsail"
},
"core-js": {
"licenses": "MIT",
"repository": "https://github.com/zloirock/core-js",
"licenseUrl": "https://github.com/zloirock/core-js/raw/master/LICENSE",
"parents": "mainsail"
},
"echarts-gl": {
"licenses": "BSD",
"repository": "https://github.com/ecomfe/echarts-gl",
"licenseUrl": "https://github.com/ecomfe/echarts-gl/raw/master/LICENSE",
"parents": "mainsail"
},
"echarts": {
"licenses": "Apache-2.0",
"repository": "https://github.com/apache/echarts",
"licenseUrl": "https://github.com/apache/echarts/raw/master/LICENSE",
"parents": "mainsail"
},
"monaco-editor-textmate": {
"licenses": "MIT",
"repository": "https://github.com/NeekSandhu/monaco-editor-textmate",
"licenseUrl": "https://github.com/NeekSandhu/monaco-editor-textmate/raw/master/LICENSE",
"parents": "mainsail"
},
"monaco-editor": {
"licenses": "MIT",
"repository": "https://github.com/Microsoft/monaco-editor",
"licenseUrl": "https://github.com/microsoft/monaco-editor/raw/main/LICENSE.md",
"parents": "mainsail"
},
"monaco-textmate": {
"licenses": "MIT",
"repository": "https://github.com/NeekSandhu/monaco-textmate",
"licenseUrl": "https://github.com/NeekSandhu/monaco-textmate/raw/master/LICENSE.md",
"parents": "mainsail"
},
"monaco-themes": {
"licenses": "MIT",
"repository": "https://github.com/brijeshb42/monaco-themes",
"licenseUrl": "https://github.com/brijeshb42/monaco-themes/raw/master/LICENSE",
"parents": "mainsail"
},
"object-assign-deep": {
"licenses": "MIT",
"repository": "https://github.com/saikojosh/Object-Assign-Deep",
"licenseUrl": "https://github.com/saikojosh/Object-Assign-Deep",
"parents": "mainsail"
},
"onigasm": {
"licenses": "MIT",
"repository": "https://github.com/NeekSandhu/onigasm",
"licenseUrl": "https://github.com/NeekSandhu/onigasm/raw/master/LICENSE",
"parents": "mainsail"
},
"plotly.js": {
"licenses": "MIT",
"repository": "https://github.com/plotly/plotly.js",
"licenseUrl": "https://github.com/plotly/plotly.js/raw/master/LICENSE",
"parents": "mainsail"
},
"semver": {
"licenses": "ISC",
"repository": "https://github.com/npm/node-semver",
"licenseUrl": "https://github.com/npm/node-semver/raw/master/LICENSE",
"parents": "mainsail"
},
"vue-context": {
"licenses": "MIT",
"repository": "https://github.com/rawilk/vue-context",
"licenseUrl": "https://github.com/rawilk/vue-context/raw/master/LICENSE",
"parents": "mainsail"
},
"vue-github-api": {
"licenses": "MIT",
"repository": "https://gitlab.com/clorichel/vue-github-api",
"licenseUrl": "https://gitlab.com/clorichel/vue-github-api",
"parents": "mainsail"
},
"vue-headful": {
"licenses": "MIT",
"repository": "https://github.com/troxler/vue-headful",
"licenseUrl": "https://github.com/troxler/vue-headful/raw/master/LICENSE",
"parents": "mainsail"
},
"vue-i18n": {
"licenses": "MIT",
"repository": "https://github.com/kazupon/vue-i18n",
"licenseUrl": "https://github.com/kazupon/vue-i18n/raw/master/LICENSE",
"parents": "mainsail"
},
"vue-load-image": {
"licenses": "MIT",
"repository": "https://github.com/john015/vue-load-image",
"licenseUrl": "https://github.com/john015/vue-load-image/raw/master/LICENSE",
"parents": "mainsail"
},
"vue-observe-visibility": {
"licenses": "MIT",
"repository": "https://github.com/Akryum/vue-observe-visibility",
"licenseUrl": "https://github.com/Akryum/vue-observe-visibility",
"parents": "mainsail"
},
"vue-plotly": {
"licenses": "MIT",
"repository": "https://github.com/David-Desmaisons/vue-plotly",
"licenseUrl": "https://github.com/David-Desmaisons/vue-plotly/raw/master/LICENSE",
"parents": "mainsail"
},
"vue-resource": {
"licenses": "MIT",
"repository": "https://github.com/pagekit/vue-resource",
"licenseUrl": "https://github.com/pagekit/vue-resource/raw/master/LICENSE",
"parents": "mainsail"
},
"vue-simple-upload": {
"licenses": "MIT",
"repository": "https://github.com/saivarunk/vue-simple-upload",
"licenseUrl": "https://github.com/saivarunk/vue-simple-upload/raw/master/LICENCE",
"parents": "mainsail"
},
"vue-toast-notification": {
"licenses": "MIT",
"repository": "https://github.com/ankurk91/vue-toast-notification",
"licenseUrl": "https://github.com/ankurk91/vue-toast-notification/raw/master/LICENSE.txt",
"parents": "mainsail"
},
"vue": {
"licenses": "MIT",
"repository": "https://github.com/vuejs/vue",
"licenseUrl": "https://github.com/vuejs/vue/raw/master/LICENSE",
"parents": "mainsail"
},
"vuetify": {
"licenses": "MIT",
"repository": "https://github.com/vuetifyjs/vuetify",
"licenseUrl": "https://github.com/vuetifyjs/vuetify/raw/master/LICENSE.md",
"parents": "mainsail"
},
"vuex": {
"licenses": "MIT",
"repository": "https://github.com/vuejs/vuex",
"licenseUrl": "https://github.com/vuejs/vuex/raw/master/LICENSE",
"parents": "mainsail"
}
}
-2
View File
@@ -1,2 +0,0 @@
name,author,repo
Dracula,steadyjaw,dracula-mainsail-theme
1 name author repo
2 Dracula steadyjaw dracula-mainsail-theme
-59
View File
@@ -1,60 +1 @@
$link-color: $red-300;
$btn-primary-color: $red-300;
.success, .info, .warning, .alert {
margin: 16px 0px;
padding: 20px;
position: relative;
border-radius: 3px;
width: 100%;
display: block;
background: #f5f6fa;
border: 1px solid hsl(0, 0%, 85%);
border-left: 4px solid;
padding-left: 3.5em;
}
.success {
border-left-color: rgb(38, 203, 124);
}
.info {
border-left-color: rgb(56, 132, 255);
}
.warning {
border-left-color: rgb(247, 125, 5);
}
.alert {
border-left-color: rgb(255, 70, 66);
}
.success::before, .info::before, .warning::before, .alert::before {
display: inline-block;
position: absolute;
left: 1.0em;
width: 1.5em;
height: 1.5em;
vertical-align: middle;
margin: 0px 10px 0px 0px;
}
.success::before {
content: url("/assets/img/success.svg");
}
.info::before {
content: url("/assets/img/info.svg");
}
.warning::before {
content: url("/assets/img/warning.svg");
}
.alert::before {
content: url("/assets/img/alert.svg");
}
.key {
padding: 0px 5px;
border-radius: 3px;
border: 1px solid;
border-color: hsl(0,0%,70%);
background-color: hsl(0,0%,98%);
font-style: normal;
font-size: 14px;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

-1
View File
@@ -1 +0,0 @@
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(255, 70, 66);" class="icon-7f6730be--text-3f89f380"><g><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12" y2="17"/></g></svg>

Before

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

-1
View File
@@ -1 +0,0 @@
<svg preserveAspectRatio="xMidYMid meet" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" stroke="none" style="color: rgb(56, 132, 255);" class="icon-7f6730be--text-3f89f380"><g><path d="M12.2 8.98c.06-.01.12-.03.18-.06.06-.02.12-.05.18-.09l.15-.12c.18-.19.29-.45.29-.71 0-.06-.01-.13-.02-.19a.603.603 0 0 0-.06-.19.757.757 0 0 0-.09-.18c-.03-.05-.08-.1-.12-.15-.28-.27-.72-.37-1.09-.21-.13.05-.23.12-.33.21-.04.05-.09.1-.12.15-.04.06-.07.12-.09.18-.03.06-.05.12-.06.19-.01.06-.02.13-.02.19 0 .26.11.52.29.71.1.09.2.16.33.21.12.05.25.08.38.08.06 0 .13-.01.2-.02M13 16v-4a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0M12 3c-4.962 0-9 4.038-9 9 0 4.963 4.038 9 9 9 4.963 0 9-4.037 9-9 0-4.962-4.037-9-9-9m0 20C5.935 23 1 18.065 1 12S5.935 1 12 1c6.066 0 11 4.935 11 11s-4.934 11-11 11" fill-rule="evenodd"></path></g></svg>

Before

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 KiB

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

-1
View File
@@ -1 +0,0 @@
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(38, 203, 124);" class="icon-7f6730be--text-3f89f380"><g><path d="M22 11.07V12a10 10 0 1 1-5.93-9.14"></path><polyline points="23 3 12 14 9 11"></polyline></g></svg>

Before

Width:  |  Height:  |  Size: 376 B

-1
View File
@@ -1 +0,0 @@
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(247, 125, 5);" class="icon-7f6730be--text-3f89f380"><g><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line></g></svg>

Before

Width:  |  Height:  |  Size: 406 B

-41
View File
@@ -1,41 +0,0 @@
---
layout: default
title: Credits
nav_order: 100
has_children: false
permalink: /credits
description: >-
Credits for our contributors
---
# {{ page.title }}
{: .no_toc }
<!-- {{ page.description }} -->
We would like to say "thank you" to all the
- contributors, who help make Mainsail better
- testers, who help find bugs in Mainsail, so they can be quickly fixed
- supporters via patreon/ko-fi
and of course the projects Mainsail is built on, especially [Klipper](https://github.com/KevinOConnor/klipper){:target="_blank"}, [Moonraker](https://github.com/Arksine/moonraker){:target="_blank"} and [MainsailOS](https://github.com/raymondh2/MainsailOS/){:target="_blank"}.
**THANK YOU for YOUR support. ❤️**
- TOC
{:toc}
# Contributors
| contributor | link |
|:--------|:-----|
{% for contributor in site.data.contributors %}{% if contributor.login != "meteyou" and contributor.login != "dependabot[bot]" %}|![]({{ contributor.avatar_url }}){: style="width: 20px; vertical-align: bottom;"} **{{ contributor.login }}**|[{{ contributor.html_url }}]({{ contributor.html_url }}){:target="_blank"}|
{% endif %}{% endfor %}
# Licenses
| project | license | link |
|:--------|:-------:|:-----|
{% for deps in site.data.licenses %}| **{{ deps[0] }}**<br>{{ deps[1].description }} | [{{ deps[1].licenses }}]({{ deps[1].licenseUrl }}){:target="_blank"} | [{{ deps[1].repository }}]({{ deps[1].repository }}){:target="_blank"} |
{% endfor %}
@@ -1,12 +1,12 @@
---
layout: default
title: Custom CSS
parent: Theming
nav_order: 30
permalink: /theming/custom-css
parent: Customizing
nav_order: 99
permalink: /customizing/custom-css
---
# Custom-CSS
## Custom-CSS
The custom.css file allows you to customize the appearance of Mainsail
without the need of rebuilding it. All you need to do is to place a file
@@ -18,13 +18,13 @@ your css rules in there.
![example result](../assets/img/customizing/screenshot-custom-css-example-result.png "custom.css result")
## How to CSS
### How to CSS
You need to be familiar with the CSS (**C**ascading **S**tyle **S**heets) syntax.
There are many resources to learn CSS online, for example:
- https://www.w3schools.com/css/default.asp
### find the Element selector (example based on Chrome Browser)
#### find the Element selector (example based on Chrome Browser)
Use your browser's built-in developer tools to find the right selector of the element you want to add your own flair to.
+15
View File
@@ -0,0 +1,15 @@
---
layout: default
title: Favicons
parent: Customizing
nav_order: 3
permalink: /customizing/favicons
---
## Custom favicon
Upload the images with the name "favicon-16x16.png" and "favicon-32x32.png"
to the .theme folder. Allowed extension is only .png. The "favicon-32x32.png"
is required. The "favicon-16x16.png" is optional. Maybe a hard refresh is
necessary (CTRL+SHIFT+F5 on windows or CMD+SHIFT+R on mac).
![screenshot](../assets/img/customizing/screenshot-favicons.png)
+22
View File
@@ -0,0 +1,22 @@
---
layout: default
title: Customizing
nav_order: 6
has_children: true
permalink: /customizing
---
# Customizing
Feel free to customize Mainsail to your preferences. At the moment there
are not many possibilities, but i will expand them continuously. If some features
are not yet listed below, please create a FR (feature request) on Github.
### currently supported functions
- [change sidebar logo](sidebar.md)
- [change sidebar background](sidebar.md)
- [change favicon](favicon.md)
- [upload custom.css](custom-css.md)
### cooming soon
- change primary color (all blue buttons atm)
+16
View File
@@ -0,0 +1,16 @@
---
layout: default
title: Prepare
parent: Customizing
nav_order: 1
permalink: /customizing/prepare
---
## Prepare theme
To prepare mainsail to use themes, you only have to create the ".theme" directory. Go into
"Settings" > "Machine" and check if you have enabled "Hidden files". Then you can create a
directory with the name ".theme". Important is the "." on the beginning. All further customizing
files, will be placed in this directory.
![screenshot](../assets/img/customizing/screenshot-display-hidden-files.png)
+22
View File
@@ -0,0 +1,22 @@
---
layout: default
title: Sidebar
parent: Customizing
nav_order: 2
permalink: /customizing/sidebar
---
## Sidebar customizing
### Change sidebar logo
Upload an image with the name "sidebar-logo" to the .theme folder.
Allowed file extensions for the image are: .svg, .jpg, .png and .gif.
![screenshot](../assets/img/customizing/screenshot-sidebar-logo.png)
### Change sidebar background image
Upload an image with the name "sidebar-background" to the .theme folder.
Allowed file extensions for the image are: .jpg, .png and .gif. The
recommended image size is 300x1000px.
![screenshot](../assets/img/customizing/screenshot-sidebar-background.png)
-46
View File
@@ -1,46 +0,0 @@
---
layout: default
title: Docker
parent: Development
has_children: false
permalink: /development/docker
description: >-
Setup docker and docker-compose for quick full stack mainsail development with simulavr without any real printer
---
# {{ page.title }}
{{ page.description }}
## Setup
Install docker and docker-compose on your desired machine.
### Debian/Ubuntu
```shell
sudo apt install docker docker-compose
```
### Mac
https://docs.docker.com/docker-for-mac/install/
### Windows
https://docs.docker.com/docker-for-windows/install/
## Start
1. Look into the docker/config folder. Copy the ".example" without the "example ending".
2. Edit the configs to your likings. They are inital setup for a minimal setup environment with simulavr.
3. In the root directory of mainsail run
```shell
docker/run up
```
## Development
### Commands
```shell
docker/run ps # showing running containers
docker/run restart <api/npm> # restarting container
# api: restarting complete api container with simulavr/moonraker/klipper services,
# npm: restarting nodejs container with running 'npm run serve'
docker/run bash <api/npm> # spawning bash shell inside container
```
Restarting the api container will happen a lot, because simulavr WILL crash a lot! Timings within simulavr are not precise and klipper will bug alot about that.
## Todo
1. The current implementation of simulavr/moonraker/klipper is kinda naiv, because docker wont run with systemd.
I will fix that in later versions of the docker container, so you can restart specific containers and omit simulavr and bind a real connected printer for example.
-11
View File
@@ -1,11 +0,0 @@
---
layout: default
title: Development
nav_order: 15
has_children: true
permalink: /development
description: development guide
---
# {{ page.title }}
{{ page.description }}
-40
View File
@@ -1,40 +0,0 @@
---
layout: default
title: Localization
parent: Development
has_children: false
permalink: /development/localization
description: >-
Mainsail uses [vue-i18n](https://kazupon.github.io/vue-i18n/) for its localization.
All Locales can be found in the `/src/locales` directory in JSON format.
---
# {{ page.title }}
{{ page.description }}
## How to contribute
You can contribute in a couple of different ways:
1. Create/Update translations using an i18n translation tool.<br />
(For Example: [BabelEdit](https://www.codeandweb.com/babeledit), [i18N-Manager](https://www.electronjs.org/apps/i18n-manager))
2. Create/Update translations using [VSCode](https://code.visualstudio.com/) and [i18n Ally](https://github.com/lokalise/i18n-ally).
If you have a finished translation file, you can make a [PR (pull request)](https://github.com/meteyou/mainsail/pulls)
on github or create an [issue](https://github.com/meteyou/mainsail/issues) on github and attach the translation.
## Testing
### Test your translations live
You can follow [this guide](https://docs.mainsail.xyz/development/standalone)
to start Mainsail in a "Debug Mode" and check your translation live. Alternatively
you can also use a docker container, instructions can be found
[here](https://docs.mainsail.xyz/development/docker).
### Check the translation with vue-i18n-extract
Mainsail comes with [vue-i18n-extract](https://github.com/pixari/vue-i18n-extract) in the dev dependency,
with this tool, you can check your translation for missing or unused entries.
```shell
npm install # only once and if you updated/installed packages
npm run i18n-extract # starting i18n-extract to check all translation files
```
-45
View File
@@ -1,45 +0,0 @@
---
layout: default
title: Standalone
parent: Development
has_children: false
permalink: /development/standalone
description: >-
Setup the project and start developing with your local printer(s)
---
# {{ page.title }}
{{ page.description }}
## Setup
Make a copy of the `.env.development.local.example` and omit the .example.
In the new file edit it to refect your desired printer:
```dotenv
#for your printer with moonraker running on 192.168.0.15
VUE_APP_HOSTNAME=192.168.0.15
```
In moonraker you need to add your local ip at the cors_domains:
```yaml
cors_domains:
http://<your local ip>:<local port>
```
access the local running dev environment with `http://<your local ip>:<local port>`.
(for example: `http://localhost:8080`)
### Nodejs Environment >= v15.9.0
Linux
```shell
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
```
Debian/Ubuntu
```shell
sudo apt-get install -y nodejs
```
For other package-managers look here:
https://nodejs.org/en/download/package-manager/
## Start
```shell
npm install # only once and if you updated/installed packages
npm run serve # starting current build with hot module reloading
```
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

+8 -31
View File
@@ -5,42 +5,19 @@ nav_order: 1
has_children: false
---
# Welcome to Mainsail!
Mainsail is a lightweight & responsive web interface for Klipper, the 3D printer firmware. It focuses especially on an intuitive and consistent interface.
{: .fs-5 }
# Welcome to the Mainsail docs!
[Getting Started](/setup){: .btn .btn-primary }
[GitHub](https://github.com/meteyou/mainsail){: .btn}{:target="_blank"}
Mainsail is a lightweight & responsive web interface for the Klipper 3D printer firmware. It communicates with Moonraker (Klipper-API) from Arksine.
[Setup Guide](/setup){: .btn}
[Release Notes](https://github.com/meteyou/mainsail/releases){: .btn}{:target="_blank"}
## Screenshots
![Dashboard](assets/img/screenshot.png)
## Features
- Optimized for desktops, tablets and mobile devices
- Supports multiple 3D printers (Printer Farm)
- Localization (i18n)
- File Manager (gcode and config files)
- File Editor (gcode and config files)
- Print History / Stats
- Temperature Presets (with custom gcode)
- Bed Mesh Leveling
- Multi-Webcam support
- Control power devices (relays, TPLink, Tasmota, ..)
- Customizable UI (logos, backgrounds & even custom css)
## Get support & assistance
Do you need help or just want to talk? Join us on discord. We have a very active community.
Have you found a bug? Then we would like you to create an Issue on GitHub.
For support join us on Discord, or open an issue on Github.
[Discord](https://discord.gg/skWTwTD){: .btn}{:target="_blank"}
[GitHub Issues](https://github.com/meteyou/mainsail/issues){: .btn}{:target="_blank"}
[Github](https://github.com/meteyou/mainsail){: .btn}{:target="_blank"}
## Support this project
The project is primarily developed and maintained by meteyou. To keep the project going he invests his free time, almost every day. To motivate him (☕🍺😜) there are several ways to support the project.
- [Patreon (recurring)](https://patreon.com/meteyou){:target="_blank"}
- [Ko-Fi (one-time)](https://ko-fi.com/mainsail){:target="_blank"}
However, we would also like to ask you to support the regular contributors.
{: .info}
## Screenshots
![Dashboard](assets/img/screenshot.png)
+17 -34
View File
@@ -8,73 +8,59 @@ permalink: /necessary-configuration
Mainsail requires a minimum configuration to function properly. It should give you a warning at startup if the required parts are not found in your configuration.
# Required configuration
## virtual_sdcard
## Required configuration
### virtual_sdcard
This allows gcode file uploads.
```yaml
[virtual_sdcard]
path: ~/gcode_files
```
## display_status
### display_status
This is required for messages in your status panel, if you don't have a `[display]` in your configuration.
```yaml
[display_status]
```
## pause / resume / cancel
### pause / resume / cancel
This enables pause / resume in mainsail.
```yaml
[pause_resume]
```
# Macros
## for pause / resume / cancel functionality
## Macros
### for pause /resume / cancel functionality
These should be modified to your own needs.
{% raw %}
```yaml
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230 #edit to your park position
default_parameter_Y: 230 #edit to your park position
default_parameter_Z: 10 #edit to your park position
default_parameter_E: 1 #edit to your retract length
gcode:
##### set defaults #####
{% set x = params.X|default(230) %} #edit to your park position
{% set y = params.Y|default(230) %} #edit to your park position
{% set z = params.Z|default(10)|float %} #edit to your park position
{% set e = params.E|default(1) %} #edit to your retract length
##### calculate save lift position #####
{% set max_z = printer.toolhead.axis_maximum.z|float %}
{% set act_z = printer.toolhead.position.z|float %}
{% set lift_z = z|abs %}
{% if act_z < (max_z - lift_z) %}
{% set z_safe = lift_z %}
{% else %}
{% set z_safe = max_z - act_z %}
{% endif %}
##### end of definitions #####
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{e} F2100
G1 Z{z_safe}
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{x} Y{y} F6000
G1 X{X} Y{Y} F6000
```
```yaml
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 1 #edit to your retract length
gcode:
##### set defaults #####
{% set e = params.E|default(1) %} #edit to your retract length
G91
G1 E{e} F2100
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
```
```yaml
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
@@ -84,13 +70,11 @@ gcode:
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
```
{% endraw %}
# Optional
## Optional
## customize klipper default commands
### customize klipper default commands
for example, if you want to adjust the `BED_MESH_CALIBRATE` command, which you can run from "heightmap > calibrate".
{% raw %}
```yaml
[gcode_macro BED_MESH_CALIBRATE]
rename_existing: BASE_BED_MESH_CALIBRATE
@@ -103,4 +87,3 @@ gcode:
BASE_BED_MESH_CALIBRATE
#after the original gcode
```
{% endraw %}
-42
View File
@@ -1,42 +0,0 @@
---
layout: default
title: Preview
nav_exclude: true
permalink: /preview
description: >-
We would like to give you a little sneak peak on the next big thing.
---
# Sneak Peak
Some users have asked which new features are planned for Mainsail 2.0. So we would like to give you a little sneak peak.
# Ground breaking changes
We have completely rethought the system of Mainsail and MainsailOS and will further bring the OS aspect to the focus. This will include a **complete design overhaul** to integrate **the all new help assistant**.
Due to the major changes we will probably jump directly to **Mainsail 2000** instead of 2.0.
![logo](/assets/img/preview/logo2k.png){: style="display: block; margin-left: auto; margin-right: auto; width: 50%;"}
# New UI
- Works especially well on small displays. For example, with a resolution of 800x600 pixels.
- Dark theme was tossed overboard. This provides new possibilities in design.
- The new menu arrangement is especially targeted at mobile devices and short thumbs.
![logo](/assets/img/preview/Mainsail2k.png)
![logo](/assets/img/preview/menu2k.gif)
# Easy to customize
Throw your own wallaper in the folder and you are ready to go.
![logo](/assets/img/preview/Wallpaper2k.png)
# Clippy, our Smart Assistant
Mainsails new smart assistant *Clippy* is always there to help and advise.
![logo](/assets/img/preview/Clippy2k.gif)
He may be receiving support from *Wizard* in the near future, who could help you with your printing problems.
![logo](/assets/img/preview/Merlin2k.png)
+1 -1
View File
@@ -17,7 +17,7 @@ Append the following section to your printer.cfg:
```yaml
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
sensor_type: rpi_temperature
min_temp: 10
max_temp: 100
```
-24
View File
@@ -1,24 +0,0 @@
---
layout: default
title: Print History/Stats
parent: Quicktips
has_children: false
permalink: /quicktips/history
description: >-
Since Mainsail 1.5.0 it is possible to report and visualize print statistics. These contain various information such as print status, print duration, amount of filament used, etc.
---
# {{ page.title }}
{{ page.description }}
It's also possible to reprint jobs.
![](../assets/img/quicktips/history/history.png){: style="width: 50%;"}
## Enable print history tracking
For this, it is necessary to enable print history tracking in moonraker.
Just add `[history]` to your moonraker.conf and restart moonraker.
The new history entry will appear in Mainsails sidebar.
+1 -2
View File
@@ -4,8 +4,7 @@ title: Quicktips
nav_order: 10
has_children: true
permalink: /quicktips
description: >-
quick tips, without much explanation
description: quick tips, without much explanation
---
# {{ page.title }}
+1 -1
View File
@@ -16,7 +16,7 @@ In Mainsails interface settings you will find a section called "Preheat Presets"
### Preheat
Enter a name \(e.g. name, color and type of filament\) and the temperatures obtained. You can disable individual heaters and even specify a custom gcode for the preheat phase. The gcode will be executed after the selected temperatures are set.
Enter a name \(e.g. name, color and type of filament\) and the temperatures obtained. You can disable individual heaters and even specify a custom gcode for the preheat phase.
![](../assets/img/quicktips/presets/preheat.png)
-86
View File
@@ -1,86 +0,0 @@
---
layout: default
title: Remote Access
parent: Quicktips
permalink: /quicktips/remote-access
description: >-
A guide to safe remote access.
---
# {{ page.title }}
{{ page.description }}
__Notice__
This is not a complete guide with every single step in detail, but rather a recommendation of what to do and especially what not to do to get access to the printer from somewhere remote from your network.
{: .info}
You have to decide if you ..
- only want to have status messages on your smartphone
- or you need full remote access to Mainsail from everywhere
Of course, you can also use a combination of both.
## Status messages
For simple status messages there are a couple of additional tools that can be used:
- __discord:__ Mooncord is a bot that sends you status messages over discord.
[https://github.com/eliteSchwein/mooncord](https://github.com/eliteSchwein/mooncord)
- __telegram:__ moonraker-telegram is a bot that sends you status messages over telegram.
[https://github.com/Raabi91/moonraker-telegram](https://github.com/Raabi91/moonraker-telegram)
These tools are installed on the local machine and send the status messages via the respective platforms. Thus, no access to your local network from outside is necessary.
For details, please refer to the projects instructions.
## Remote Access to Mainsail
<div class="alert">
What <b>not to do</b>:
<ul>
<li>Please do not open ports of Mainsail/Moonraker in your router to the rest of the world. There are plenty of reports of Octoprint installations being freely accessible on the Internet, with just as many reasons why this is not a good idea.</li>
</ul>
<a href="https://isc.sans.edu/forums/diary/3D+Printers+in+The+Wild+What+Can+Go+Wrong/24044/" target="_blank">https://isc.sans.edu/forums/diary/3D+Printers+in+The+Wild+What+Can+Go+Wrong/24044/</a>
</div>
<div class="warning">
What you <b>could do</b>:
<ul>
<li>Use an external service provider (e.g. tailscale) to gain access to your home network.
<ul>
<li>Con: you give the control out of your hand</li>
</ul>
</li>
<li>Reverse Proxy</li>
</ul>
</div>
<div class="success">
<b>Recommendation</b> what you <b>should do</b>:
<ul>
<li>Set up your own secured VPN tunnel.
<ul>
<li>either in the router</li>
<li>or your Pi</li>
</ul>
</li>
</ul>
</div>
## Set up VPN
Several routers allow you to set up a VPN tunnel without much effort.
After you have entered the login data into e.g. your smartphone, you will have secure access to your entire network, including Mainsail.
If your router does not support this, you can also set up your own VPN, e.g. on your Pi.
Therefore you could use: [OpenVPN](https://openvpn.net/), [WireGuard](https://www.wireguard.com/) or [PiVPN](https://www.pivpn.io/)
To be able to reach your home network even with a non-static IP address, you should use a dynamic DNS service. This will forward a domain directly to your IP address. Often, these DynDNS services can also be set up directly in the router, so that the IP address gets automatically updated on a change.
Some free services: [DuckDNS](https://www.duckdns.org) or [FreeDNS ](https://freedns.afraid.org/)
__Notice__
The devices that dial in via the VPN tunnel are assigned to a different address range. This address range must be configured in moonraker under _trusted_clients_ and _cors_domains_. [https://moonraker.readthedocs.io/en/latest/configuration/#authorization](https://moonraker.readthedocs.io/en/latest/configuration/#authorization) <br/><br/>
For example:
__192.168.1__.x&emsp;_// devices on your regular LAN_
__192.168.50__.x&emsp;_// devices connected through your VPN tunnel_
{: .info}
+2 -14
View File
@@ -4,18 +4,12 @@ title: Slicer Upload
parent: Quicktips
permalink: /quicktips/slicer-upload
description: >-
You can upload your sliced G-Code from within your slicer and have it start printing.
It is possible to upload G-Code from your slicer and have it start printing.
---
# {{ page.title }}
{{ page.description }}
Moonraker has compatibility with Octoprint's API. To enable octoprint api compatibility,
add the following to your `moonraker.conf` and restart Moonraker.
```
[octoprint_compat]
```
Moonraker has compatibility with Octoprint's legacy file upload API.
### PrusaSlicer/SuperSlicer (prior to v2.3.0)
@@ -27,9 +21,3 @@ For "API Key" you can type anything.
### PrusaSlicer/SuperSlicer (since v2.3.0)
A "Physical Printer" must be defined to configure the settings from above.
More detailed instructions will follow.
### Cura with OctoPrint-Connect
Install the OctoPrint-Connection plugin via Marketplace. In `Settings > Printer > Manage Printers...`
you can find the Button `Connect OctoPrint`. Add your printer and type anything in the `API Key` field.
![screenshot](../assets/img/additional/FileUpload-Cura-4.8.png)
+1 -8
View File
@@ -17,7 +17,7 @@ description: >-
In "Expert" mode PrusaSlicer has an option in the "Printer Settings" tab to activate previews.
Under `General / Firmware`, enter `32x32,400x300` as "G-code thumbnails".
![PrusaSlicer](../assets/img/additional/PrusaSlicer2.3.0-thumbnails.png)
![SuperSlicer](../assets/img/additional/PrusaSlicer2.3.0-thumbnails.png)
### SuperSlicer (since v2.2.54.0)
@@ -33,10 +33,3 @@ Open your printer profile in a text editor and find `thumbnails =` and add the r
![PrusaSlicer](../assets/img/additional/PrusaSlicer-thumbnails.png)
From now on the gcode files contain thumbnails displayed by mainsail.
### Cura
The Cura plugin "Cura2Moonraker" is required for this. You can find this plugin and a install guide
here: [https://github.com/emtrax-ltd/Cura2MoonrakerPlugin](https://github.com/emtrax-ltd/Cura2MoonrakerPlugin)
![Cura](../assets/img/additional/Cura-thumbnails.png)
-1
View File
@@ -2,7 +2,6 @@
layout: default
title: Remote Mode
nav_order: 4
nav_exclude: true
has_children: false
permalink: /remotemode
description: >-
+4 -23
View File
@@ -7,27 +7,8 @@ permalink: /setup/
has_toc: false
---
# Setup Guides
There are different ways to install Mainsail.
To get started, you first have to decide which route you want to follow for the installation. There are several ways to install Mainsail on a Raspberry Pi.
- [MainsailOS](mainsail-os.md) <span class="label label-red">recommended</span>
A prebuilt image for your Raspberry Pi. Flash it and you are almost ready to go.
- [KIAUH](kiauh.md) - _Klipper Installation And Update Helper_
A script toolbox to install and keep Klipper, Moonraker and Mainsail up to date. It contains many additional features and is the way to go for multiprinter setups.
- [Manual Setup](manual-setup/index.md)
The rocky road. If you want to know how everything is set up by hand, you will get all the information here.
## my.mainsail.xyz
In addition to these guides, there is [my.mainsail.xyz](http://my.mainsail.xyz){: target="_blank"}. The latest Mainsail version is always hosted there. This obviates the need to set up a web server for Mainsail on your hardware.
To use [my.mainsail.xyz](http://my.mainsail.xyz){: target="_blank"}, the following requirements must be met:
- Klipper must be installed.
- Moonraker must be installed.
- my.mainsail.xyz must be configured as a CORS domain in moonraker.conf.
**MainsailOS & KIAUH already fulfill these requirements.**
_Note_, only the static .html, .js and .css files are loaded into your browser storage. No further information is transferred to the server. The communication to your printer is then done locally directly between your browser and your Moonraker installation.
If you have any concerns, you can of course still install Mainsail on your hardware locally. Parallel operation is also possible.
{: .info}
- [MainsailOS (recommend)](mainsail-os.md)
- [Kiauh (Klipper Install And Update Helper)](kiauh.md)
- [Manual Setup](manual-setup/index.md)
+5 -6
View File
@@ -1,15 +1,14 @@
---
layout: default
title: KIAUH
title: Kiauh Guide
parent: Setup Guides
nav_order: 2
has_children: false
permalink: /setup/kiauh
---
# Installing Mainsail with KIAUH
# Installing Mainsail with Kiauh
[KIAUH](https://github.com/th33xitus/kiauh) is a handy tool that helps you install or upgrade Klipper, Moonraker, Mainsail and various other extensions easily and comfortably.
Kiauh is a tool that helps you install or upgrade Klipper, Moonraker, Mainsail and various
other extensions easily and comfortably.
![](../assets/img/setup/kiauh.png)
For more information and get to the guide click [here](https://github.com/th33xitus/kiauh).
For more informations and get to the guide click [here](https://github.com/th33xitus/kiauh).
+1 -1
View File
@@ -1,6 +1,6 @@
---
layout: default
title: MainsailOS
title: MainsailOS Guide
parent: Setup Guides
nav_order: 1
has_children: false
+1 -4
View File
@@ -1,12 +1,9 @@
---
layout: default
title: Manual Setup
title: Manual Setup Guide
parent: Setup Guides
nav_order: 3
has_children: true
permalink: /setup/manual-setup
---
# Installing Mainsail the manual way
This is a guide to setting up Klipper, Moonraker & Mainsail on a Raspberry Pi with Raspberry Pi OS. Other SBCs and/or Linux distributions might work, but may require a customized installation script or configs.
+5 -6
View File
@@ -1,14 +1,14 @@
---
layout: default
title: Klipper
parent: Manual Setup
parent: Manual Setup Guide
grand_parent: Setup Guides
nav_order: 3
permalink: /setup/manual-setup/klipper
---
# Klipper
## Installation
## Klipper
### Installation
The following commands will clone Klipper to an appropriate directory in HOME and run the setup script.
```bash
cd ~
@@ -17,7 +17,7 @@ cd ~/klipper
./scripts/install-octopi.sh
```
## Configuration
### Configuration
After Klipper is installed, you will need to change the default location of the printer.cfg and add the UDS (unix domain socket). This is defined in the file `/etc/default/klipper`
To edit this file type:
@@ -55,9 +55,8 @@ path: ~/gcode_files
# for pause/resume functionality.
# Mainsail needs gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT` to make the buttons work.
```
**These entries are very important.**
> ℹ️ **These entries are very important.**
For the full functionality of mainsail, you should also define gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT`. You'll find further information in [this](../../necessary-cfg.md){: target="_blank"} document.
{: .info }
After your config is in place, restart klipper with `sudo service klipper restart`. Check the `/tmp/klippy.log` for errors, if Klipper starts correctly you can continue the guide.
+7 -6
View File
@@ -1,15 +1,16 @@
---
layout: default
title: Mainsail
parent: Manual Setup
parent: Manual Setup Guide
grand_parent: Setup Guides
nav_order: 5
permalink: /setup/manual-setup/mainsail
---
# Mainsail
## Install webserver & reverse proxy (nginx)
## Mainsail
### Install webserver & reverse proxy (nginx)
nginx is important to mount all components on port 80 and host the static files from Mainsail. To install nginx you only need to execute:
@@ -139,7 +140,7 @@ Now you can check again the API if it works with the reverse proxy. Open the url
Now we can install Mainsail (static httpdocs).
## Install httpdocs
### Install httpdocs
Now you can download the current mainsail static data
@@ -150,14 +151,14 @@ wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/latest/down
Now it should be possible to open the interface: `http://<printer-ip>/`.
## Important macros
### Important macros
if you want to get the full experience with mainsail and klipper virtual_sdcard print, you should use these macros, or use them as templates for your own.
[Macro Link](../../necessary-cfg.md){: .btn target="_blank"}
## Change the Hostname (optional)
### Change the Hostname (optional)
to use the hostname instate of the ip, you can install the avahi-daemon:
+7 -10
View File
@@ -1,15 +1,15 @@
---
layout: default
title: Moonraker
parent: Manual Setup
parent: Manual Setup Guide
grand_parent: Setup Guides
nav_order: 4
permalink: /setup/manual-setup/moonraker
---
# Moonraker
## Moonraker
Moonraker is a web server that exposes APIs which lets Mainsail interact with Klipper.
## Installation
### Installation
Clone Moonraker into your HOME directory:
```bash
cd ~
@@ -22,10 +22,9 @@ cd ~/moonraker/scripts
./install-moonraker.sh -c /home/pi/klipper_config/moonraker.conf
```
## Configuration
**Please pay attention to the following steps!**
### Configuration
> ⚠️ **Please pay attention to the following steps!**
Misconfigured trusted_clients are a very common source of failure.
{: .warning }
For Moonraker you'll need to create a separate config file.
@@ -34,9 +33,8 @@ For Moonraker you'll need to create a separate config file.
Insert the following part and modify `trusted_clients` according to arksines description below.
Also consider further IP ranges, e.g. when connecting via VPN. To determine your local ip `ip a` and `ifconfig -a` are common ways to do so on Linux and `ipconfig` on Windows.
**This is a very basic config**
> ℹ️ **This is a very basic config**
For more options and detailed explanations you should follow [arksines instructions](https://github.com/Arksine/moonraker/blob/master/docs/installation.md).
{: .info }
```
[server]
@@ -57,7 +55,7 @@ repo: meteyou/mainsail
path: ~/mainsail
```
🔥 **trusted_clients - read carefully** 🔥
> 🔥 **trusted_clients - read carefully** 🔥
A list of newline separated ip addresses and/or ip ranges that are
trusted. Trusted clients are given full access to the API. Both IPv4
and IPv6 addresses and ranges are supported. Ranges must be expressed
@@ -66,7 +64,6 @@ For example, an entry of 192.168.1.0/24 will authorize IPs in the range of 192.1
192.168.1.254. Note that when specifying IPv4 ranges the last segment
of the ip address must be 0. The default is no clients or ranges are
trusted.
{: .alert }
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
@@ -1,35 +1,27 @@
---
layout: default
title: Operating System
parent: Manual Setup
parent: Manual Setup Guide
grand_parent: Setup Guides
nav_order: 2
permalink: /setup/manual-setup/operating-systen
description: >-
Manual Setup: tips and recommendations for the OS.
---
# {{ page.title }}
{{ page.description }}
**Please don't use an OctoPi image!**
It can cause unforeseeable events, like rips in the space-time continuum. So be aware!
No seriously. Experiences have shown that it is advisable not to use an OctoPi image (especially for beginners).
{: .warning }
## Operation System
> ⚠️ **Please don't use an OctoPi image!**
It can cause unforeseeable events, like rips in the space-time continuum. So be aware!
It is recommended to use a clean Raspberry Pi OS 32-bit Lite image (previously called Raspbian). You can download it [here](https://downloads.raspberrypi.org/raspios_lite_armhf_latest){:target="_blank"}.
For more information about installing Raspberry Pi OS click [here](https://www.raspberrypi.org/documentation/installation/installing-images/){:target="_blank"}. Don't forget to enable ssh.
Once you have finished the installation and are connected via ssh, you can continue.
## Requirements
### Requirements
```bash
sudo apt update && sudo apt upgrade
sudo apt install git dfu-util unzip
```
**Moonraker requires Python 3.7 or greater,** verify that your distribution's Python 3 packages meet this requirement.
{: .alert }
> ⚠️ **Moonraker requires Python 3.7 or greater,** verify that your distribution's Python 3 packages meet this requirement.
```
python3 --version
-39
View File
@@ -1,39 +0,0 @@
---
layout: default
title: Backgrounds
parent: Theming
nav_order: 10
permalink: /theming/backgrounds
description: >-
Place some background images to give Mainsail its own look with ease.
---
# {{ page.title }}
{{ page.description }}
At the moment there are two background images that can be set. In the sidebar- and mainview.
![screenshot](../assets/img/customizing/sidebar-main.jpg){:width="50%"}
For uploads you can use the built-in file manager. `(Settings > Machine)`
<!-- ![screenshot](../assets/img/customizing/screenshot-sidebar-background.png) -->
## Sidebar background image
Just load a background image into your .theme folder and name it `sidebar-background.<extension>`.
| Filename | sidebar-background |
| Valid file extensions | .jpg, .png and .gif |
| Recommended image size | 300x1000px |
## Mainview background image
Upload a background image into your .theme folder and name it `main-background.<extension>`.
| Filename | main-background |
| Valid file extensions | .jpg, .png and .gif |
**Please note**: By default, the background image is stretched to the entire area.
For example, if you want a repeating pattern, you also need to use custom css.
{: .info}
-38
View File
@@ -1,38 +0,0 @@
---
layout: default
title: Logos/Icons
parent: Theming
nav_order: 20
permalink: /theming/favicons
description: >-
Replace the default logos/icons, to quickly recognize your printers.
---
# {{ page.title }}
{{ page.description }}
For uploads you can use the built-in file manager. `(Settings > Machine)`
## Sidebar logo
Just upload a logo into your .theme folder and name it `sidebar-logo.<extension>`.
| Filename | sidebar-logo |
| Valid file extensions | .svg, .jpg, .png and .gif |
| Recommended image size | XxY px |
![screenshot](../assets/img/customizing/screenshot-sidebar-logo.png)
## Favicons
Upload favicons into your .theme folder and name them `favicon-32x32.png` *(required)* and `favicon-16x16.png` *(optional)*.
| Filename | favicon-32x32 *(required)* |
| | favicon-16x16 *(optional)* |
| Valid file extensions | .png |
| Recommended image size | 32x32px, 16x16px |
A hard browser refresh may be necessary (CTRL+SHIFT+F5 on windows or CMD+SHIFT+R on mac).
{: .info}
![screenshot](../assets/img/customizing/screenshot-favicons.png)
-14
View File
@@ -1,14 +0,0 @@
---
layout: default
title: Theming
nav_order: 6
has_children: true
permalink: /theming
description: >-
Personalize Mainsail according to your preferences. Here you will find instructions for custom background images, logos, icons & more.
---
# {{ page.title }}
{{ page.description }}
Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community.
-43
View File
@@ -1,43 +0,0 @@
---
layout: default
title: Prepare
parent: Theming
nav_order: 1
permalink: /theming/prepare
description: >-
Create a basic folder structure to build your own theme.
---
# {{ page.title }}
{{ page.description }}
## .theme folder
You only need to create a ".theme" folder in your config folder.
There you will place all the files you need to personalize Mainsail.
You can use Mainsail's built-in file manager `(Settings > Machine)` to create the .theme folder and upload all the files and edit your css-files.
The dot in the folder name means that it is a hidden folder. Therefore you have to activate "show hidden files".
{: .info}
![screenshot](../assets/img/customizing/screenshot-display-hidden-files.png)
## directory structure
We have prepared the following simple overview for you.
Please refer to the separate instructions for details.
All listed files in the .theme folder are optional and will only be loaded if they are provided.
{: .info}
```
+-- ..
|-- klipper_config
| |-- .theme
| | |-- sidebar-logo.svg|jpg|png|gif
| | |-- sidebar-background.jpg|png|gif
| | |-- main-background.jpg|png|gif
| | |-- favicon-16x16.png
| | |-- favicon-32x32.png
| | |-- custom.css
| | |-- ...
```
-17
View File
@@ -1,17 +0,0 @@
---
layout: default
title: Submit
grand_parent: Theming
parent: Community Themes
nav_exclude: true
nav_order: 150
permalink: /theming/themes/submit
description: >-
Submit a theme!
---
# {{ page.title }}
{{ page.description }}
work in progess
{: .alert}
-43
View File
@@ -1,43 +0,0 @@
---
layout: default
title: Community Themes
parent: Theming
nav_order: 100
has_children: false
permalink: /theming/themes
description: >-
A collection of community themes for Mainsail.
---
# {{ page.title }}
{: .no_toc}
{{ page.description }}
## Setup Instructions
{: .no_toc}
Go to the repo of the theme and download it. Place the files according to [these instructions](/theming/prepare#directory-structure).
[KIAUH](/setup/kiauh) has an integrated theme installer
Go to `[Advanced] > [Theme installer]`, enter the desired theme <span class="key">id</span> and confirm with return.
{: .info}
<details closed markdown="block">
<summary>
List of themes
</summary>
{: .text-delta }
1. TOC
{:toc}
</details>
{% for theme in site.data.themes %}
---
## {{ theme.name }}
<div>id: <span class="key">{{ forloop.index}}</span></div>
<div>author: <a href="https://github.com/{{ theme.author }}" target="_blank" alt="github.com">{{ theme.author }}</a></div>
<div>url: <a href="https://github.com/{{ theme.author }}/{{ theme.repo }}" target="_blank" alt="github.com">{{ theme.author }}/{{ theme.repo }}</a></div>
<img width="50%" src="https://raw.githubusercontent.com/{{ theme.author }}/{{ theme.repo }}/master/screenshot.png" />
{% endfor %}
+2 -5
View File
@@ -23,11 +23,8 @@ If you see a content like this
To use the update manager in Mainsail you have to add this in your moonraker.conf:
```
[update_manager]
[update_manager client mainsail]
type: web
repo: meteyou/mainsail
path: ~/mainsail
client_repo: meteyou/mainsail
client_path: ~/mainsail
```
### Change Moonraker to systemd service (December 6th 2020)
+3457 -6170
View File
File diff suppressed because it is too large. Load diff
+22 -42
View File
@@ -1,70 +1,50 @@
{
"name": "mainsail",
"version": "1.6.0",
"version": "1.2.0",
"private": true,
"decription": "a klipper web interface",
"author": {
"name": "Stefan Dej"
},
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build && npm run build.zip",
"lint": "vue-cli-service lint",
"build.zip": "cd ./dist && zip -r mainsail.zip ./ && cd ..",
"i18n-extract": "vue-i18n-extract use-config"
"build.zip": "cd ./dist && zip -r mainsail.zip ./ && cd .."
},
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.12.1",
"echarts": "^5.1.1",
"echarts-gl": "^2.0.4",
"monaco-editor": "^0.24.0",
"monaco-editor-textmate": "^2.2.2",
"monaco-textmate": "^3.0.1",
"monaco-themes": "^0.3.3",
"core-js": "^3.8.2",
"object-assign-deep": "^0.4.0",
"onigasm": "^2.2.5",
"plotly.js": "^1.58.4",
"semver": "^7.3.5",
"prismjs": "^1.23.0",
"vue": "^2.6.12",
"vue-context": "^6.0.0",
"vue-github-api": "^0.1.7",
"vue-headful": "^2.1.0",
"vue-i18n": "^8.24.4",
"vue-load-image": "^0.1.12",
"vue-observe-visibility": "^1.0.0",
"vue-plotly": "^1.1.0",
"vue-resource": "^1.5.2",
"vue-prism-editor": "^1.2.2",
"vue-resource": "^1.5.1",
"vue-simple-upload": "^0.1.6",
"vue-toast-notification": "^0.6.1",
"vuetify": "^2.5.0",
"vuex": "^3.6.2"
"vue-toast-notification": "^0.6.0",
"vuetify": "^2.4.2",
"vuex": "^3.6.0"
},
"devDependencies": {
"@mdi/font": "^5.9.55",
"@vue/cli-plugin-babel": "^4.5.13",
"@vue/cli-plugin-eslint": "^4.5.13",
"@vue/cli-plugin-pwa": "^4.5.13",
"@vue/cli-service": "^4.5.13",
"@mdi/font": "^5.8.55",
"@vue/cli-plugin-babel": "^4.5.10",
"@vue/cli-plugin-eslint": "^4.5.3",
"@vue/cli-plugin-pwa": "^4.5.10",
"@vue/cli-service": "^4.5.10",
"babel-eslint": "^10.1.0",
"css-loader": "^5.2.4",
"eslint": "^7.26.0",
"eslint-plugin-vue": "^7.9.0",
"css-loader": "^5.0.1",
"eslint": "^7.17.0",
"eslint-plugin-vue": "^7.4.1",
"generate-file-webpack-plugin": "^1.0.1",
"monaco-editor-webpack-plugin": "^3.1.0",
"monaco-vscode-textmate-theme-converter": "^0.1.1",
"node-sass": "^6.0.0",
"sass": "^1.32.13",
"sass-loader": "^10.2.0",
"style-loader": "^2.0.0",
"sass": "^1.32.4",
"sass-loader": "^10.1.1",
"sw-precache-webpack-plugin": "^1.0.0",
"vue-cli-plugin-route": "0.0.7",
"vue-cli-plugin-vuetify": "^2.4.0",
"vue-i18n-extract": "^1.2.3",
"vue-loader": "^16.2.0",
"vue-router": "^3.5.1",
"vue-cli-plugin-vuetify": "^2.0.9",
"vue-router": "^3.4.9",
"vue-template-compiler": "^2.6.12",
"vuetify-loader": "^1.7.2"
"vuetify-loader": "^1.6.0"
},
"eslintConfig": {
"root": true,
-698
View File
@@ -1,698 +0,0 @@
{
"inherit":true,
"base":"vs-dark",
"colors":{
"activityBarBadge.background":"#007acc",
"editor.background":"#1e1e1e",
"editor.foreground":"#d4d4d4",
"editor.inactiveSelectionBackground":"#3a3d41",
"editor.selectionHighlightBackground":"#add6ff26",
"editorIndentGuide.activeBackground":"#707070",
"editorIndentGuide.background":"#404040",
"input.placeholderForeground":"#a6a6a6",
"list.dropBackground":"#383b3d",
"menu.background":"#252526",
"menu.foreground":"#cccccc",
"sideBarSectionHeader.background":"#00000000",
"sideBarSectionHeader.border":"#cccccc33",
"sideBarTitle.foreground":"#bbbbbb",
"statusBarItem.remoteBackground":"#16825d",
"statusBarItem.remoteForeground":"#ffffff",
"tab.lastPinnedBorder":"#cccccc33"
},
"rules":[
{
"foreground":"#D4D4D4",
"token":"meta.embedded"
},
{
"foreground":"#D4D4D4",
"token":"source.groovy.embedded"
},
{
"fontStyle":"italic",
"token":"emphasis"
},
{
"fontStyle":"bold",
"token":"strong"
},
{
"foreground":"#000080",
"token":"header"
},
{
"foreground":"#6A9955",
"token":"comment"
},
{
"foreground":"#569CD6",
"token":"constant.language"
},
{
"foreground":"#B5CEA8",
"token":"constant.numeric"
},
{
"foreground":"#B5CEA8",
"token":"variable.other.enummember"
},
{
"foreground":"#B5CEA8",
"token":"keyword.operator.plus.exponent"
},
{
"foreground":"#B5CEA8",
"token":"keyword.operator.minus.exponent"
},
{
"foreground":"#646695",
"token":"constant.regexp"
},
{
"foreground":"#569CD6",
"token":"entity.name.tag"
},
{
"foreground":"#D7BA7D",
"token":"entity.name.tag.css"
},
{
"foreground":"#9CDCFE",
"token":"entity.other.attribute-name"
},
{
"foreground":"#D7BA7D",
"token":"entity.other.attribute-name.class.css"
},
{
"foreground":"#D7BA7D",
"token":"entity.other.attribute-name.class.mixin.css"
},
{
"foreground":"#D7BA7D",
"token":"entity.other.attribute-name.id.css"
},
{
"foreground":"#D7BA7D",
"token":"entity.other.attribute-name.parent-selector.css"
},
{
"foreground":"#D7BA7D",
"token":"entity.other.attribute-name.pseudo-class.css"
},
{
"foreground":"#D7BA7D",
"token":"entity.other.attribute-name.pseudo-element.css"
},
{
"foreground":"#D7BA7D",
"token":"source.css.less entity.other.attribute-name.id"
},
{
"foreground":"#D7BA7D",
"token":"entity.other.attribute-name.scss"
},
{
"foreground":"#F44747",
"token":"invalid"
},
{
"fontStyle":"underline",
"token":"markup.underline"
},
{
"foreground":"#569CD6",
"fontStyle":"bold",
"token":"markup.bold"
},
{
"foreground":"#569CD6",
"fontStyle":"bold",
"token":"markup.heading"
},
{
"fontStyle":"italic",
"token":"markup.italic"
},
{
"foreground":"#B5CEA8",
"token":"markup.inserted"
},
{
"foreground":"#CE9178",
"token":"markup.deleted"
},
{
"foreground":"#569CD6",
"token":"markup.changed"
},
{
"foreground":"#6A9955",
"token":"punctuation.definition.quote.begin.markdown"
},
{
"foreground":"#6796E6",
"token":"punctuation.definition.list.begin.markdown"
},
{
"foreground":"#CE9178",
"token":"markup.inline.raw"
},
{
"foreground":"#808080",
"token":"punctuation.definition.tag"
},
{
"foreground":"#569CD6",
"token":"meta.preprocessor"
},
{
"foreground":"#569CD6",
"token":"entity.name.function.preprocessor"
},
{
"foreground":"#CE9178",
"token":"meta.preprocessor.string"
},
{
"foreground":"#B5CEA8",
"token":"meta.preprocessor.numeric"
},
{
"foreground":"#9CDCFE",
"token":"meta.structure.dictionary.key.python"
},
{
"foreground":"#569CD6",
"token":"meta.diff.header"
},
{
"foreground":"#569CD6",
"token":"storage"
},
{
"foreground":"#569CD6",
"token":"storage.type"
},
{
"foreground":"#569CD6",
"token":"storage.modifier"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.noexcept"
},
{
"foreground":"#CE9178",
"token":"string"
},
{
"foreground":"#CE9178",
"token":"meta.embedded.assembly"
},
{
"foreground":"#CE9178",
"token":"string.tag"
},
{
"foreground":"#CE9178",
"token":"string.value"
},
{
"foreground":"#D16969",
"token":"string.regexp"
},
{
"foreground":"#569CD6",
"token":"punctuation.definition.template-expression.begin"
},
{
"foreground":"#569CD6",
"token":"punctuation.definition.template-expression.end"
},
{
"foreground":"#569CD6",
"token":"punctuation.section.embedded"
},
{
"foreground":"#D4D4D4",
"token":"meta.template.expression"
},
{
"foreground":"#9CDCFE",
"token":"support.type.vendored.property-name"
},
{
"foreground":"#9CDCFE",
"token":"support.type.property-name"
},
{
"foreground":"#9CDCFE",
"token":"variable.css"
},
{
"foreground":"#9CDCFE",
"token":"variable.scss"
},
{
"foreground":"#9CDCFE",
"token":"variable.other.less"
},
{
"foreground":"#9CDCFE",
"token":"source.coffee.embedded"
},
{
"foreground":"#569CD6",
"token":"keyword"
},
{
"foreground":"#569CD6",
"token":"keyword.control"
},
{
"foreground":"#D4D4D4",
"token":"keyword.operator"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.new"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.expression"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.cast"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.sizeof"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.alignof"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.typeid"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.alignas"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.instanceof"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.logical.python"
},
{
"foreground":"#569CD6",
"token":"keyword.operator.wordlike"
},
{
"foreground":"#B5CEA8",
"token":"keyword.other.unit"
},
{
"foreground":"#569CD6",
"token":"punctuation.section.embedded.begin.php"
},
{
"foreground":"#569CD6",
"token":"punctuation.section.embedded.end.php"
},
{
"foreground":"#9CDCFE",
"token":"support.function.git-rebase"
},
{
"foreground":"#B5CEA8",
"token":"constant.sha.git-rebase"
},
{
"foreground":"#D4D4D4",
"token":"storage.modifier.import.java"
},
{
"foreground":"#D4D4D4",
"token":"variable.language.wildcard.java"
},
{
"foreground":"#D4D4D4",
"token":"storage.modifier.package.java"
},
{
"foreground":"#569CD6",
"token":"variable.language"
},
{
"foreground":"#DCDCAA",
"token":"entity.name.function"
},
{
"foreground":"#DCDCAA",
"token":"support.function"
},
{
"foreground":"#DCDCAA",
"token":"support.constant.handlebars"
},
{
"foreground":"#DCDCAA",
"token":"source.powershell variable.other.member"
},
{
"foreground":"#DCDCAA",
"token":"entity.name.operator.custom-literal"
},
{
"foreground":"#4EC9B0",
"token":"meta.return-type"
},
{
"foreground":"#4EC9B0",
"token":"support.class"
},
{
"foreground":"#4EC9B0",
"token":"support.type"
},
{
"foreground":"#4EC9B0",
"token":"entity.name.type"
},
{
"foreground":"#4EC9B0",
"token":"entity.name.namespace"
},
{
"foreground":"#4EC9B0",
"token":"entity.other.attribute"
},
{
"foreground":"#4EC9B0",
"token":"entity.name.scope-resolution"
},
{
"foreground":"#4EC9B0",
"token":"entity.name.class"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.numeric.go"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.byte.go"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.boolean.go"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.string.go"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.uintptr.go"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.error.go"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.rune.go"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.cs"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.generic.cs"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.modifier.cs"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.variable.cs"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.annotation.java"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.generic.java"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.java"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.object.array.java"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.primitive.array.java"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.primitive.java"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.token.java"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.groovy"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.annotation.groovy"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.parameters.groovy"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.generic.groovy"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.object.array.groovy"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.primitive.array.groovy"
},
{
"foreground":"#4EC9B0",
"token":"storage.type.primitive.groovy"
},
{
"foreground":"#4EC9B0",
"token":"meta.type.cast.expr"
},
{
"foreground":"#4EC9B0",
"token":"meta.type.new.expr"
},
{
"foreground":"#4EC9B0",
"token":"support.constant.math"
},
{
"foreground":"#4EC9B0",
"token":"support.constant.dom"
},
{
"foreground":"#4EC9B0",
"token":"support.constant.json"
},
{
"foreground":"#4EC9B0",
"token":"entity.other.inherited-class"
},
{
"foreground":"#C586C0",
"token":"keyword.control"
},
{
"foreground":"#C586C0",
"token":"source.cpp keyword.operator.new"
},
{
"foreground":"#C586C0",
"token":"keyword.operator.delete"
},
{
"foreground":"#C586C0",
"token":"keyword.other.using"
},
{
"foreground":"#C586C0",
"token":"keyword.other.operator"
},
{
"foreground":"#C586C0",
"token":"entity.name.operator"
},
{
"foreground":"#9CDCFE",
"token":"variable"
},
{
"foreground":"#9CDCFE",
"token":"meta.definition.variable.name"
},
{
"foreground":"#9CDCFE",
"token":"support.variable"
},
{
"foreground":"#9CDCFE",
"token":"entity.name.variable"
},
{
"foreground":"#4FC1FF",
"token":"variable.other.constant"
},
{
"foreground":"#4FC1FF",
"token":"variable.other.enummember"
},
{
"foreground":"#9CDCFE",
"token":"meta.object-literal.key"
},
{
"foreground":"#CE9178",
"token":"support.constant.property-value"
},
{
"foreground":"#CE9178",
"token":"support.constant.font-name"
},
{
"foreground":"#CE9178",
"token":"support.constant.media-type"
},
{
"foreground":"#CE9178",
"token":"support.constant.media"
},
{
"foreground":"#CE9178",
"token":"constant.other.color.rgb-value"
},
{
"foreground":"#CE9178",
"token":"constant.other.rgb-value"
},
{
"foreground":"#CE9178",
"token":"support.constant.color"
},
{
"foreground":"#CE9178",
"token":"punctuation.definition.group.regexp"
},
{
"foreground":"#CE9178",
"token":"punctuation.definition.group.assertion.regexp"
},
{
"foreground":"#CE9178",
"token":"punctuation.definition.character-class.regexp"
},
{
"foreground":"#CE9178",
"token":"punctuation.character.set.begin.regexp"
},
{
"foreground":"#CE9178",
"token":"punctuation.character.set.end.regexp"
},
{
"foreground":"#CE9178",
"token":"keyword.operator.negation.regexp"
},
{
"foreground":"#CE9178",
"token":"support.other.parenthesis.regexp"
},
{
"foreground":"#D16969",
"token":"constant.character.character-class.regexp"
},
{
"foreground":"#D16969",
"token":"constant.other.character-class.set.regexp"
},
{
"foreground":"#D16969",
"token":"constant.other.character-class.regexp"
},
{
"foreground":"#D16969",
"token":"constant.character.set.regexp"
},
{
"foreground":"#DCDCAA",
"token":"keyword.operator.or.regexp"
},
{
"foreground":"#DCDCAA",
"token":"keyword.control.anchor.regexp"
},
{
"foreground":"#D7BA7D",
"token":"keyword.operator.quantifier.regexp"
},
{
"foreground":"#569CD6",
"token":"constant.character"
},
{
"foreground":"#D7BA7D",
"token":"constant.character.escape"
},
{
"foreground":"#C8C8C8",
"token":"entity.name.label"
},
{
"foreground":"#6796E6",
"token":"token.info-token"
},
{
"foreground":"#CD9731",
"token":"token.warn-token"
},
{
"foreground":"#F44747",
"token":"token.error-token"
},
{
"foreground":"#B267E6",
"token":"token.debug-token"
}
],
"encodedTokensColors":[
]
}
-79
View File
@@ -1,79 +0,0 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "NC-Gcode",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
}
],
"repository": {
"single_line_comment": {
"patterns": [
{
"name": "comment.line.number-sign",
"match": "#(.*)$"
},
{
"name": "comment.line.gcode",
"match": ";(.*)$"
}
]
},
"keywords": {
"patterns": [
{
"include": "#single_line_comment"
},
{
"name": "constant.gcode",
"match": "[nN][ \\t]*[0-9\\.]+"
},
{
"name": "keyword.control.gcode.gcode",
"match": "[gG][ \\t]*[0-9][0-9\\.]*"
},
{
"name": "keyword.string.gcode",
"match": "(?i)[rRzZ][ \\t]*[\\-\\+]?[0-9\\.]+"
},
{
"name": "string.xcode.gcode",
"match": "(?i)[XAUIYBVJ][ \\t]*[\\-\\+]?[0-9\\.]+"
},
{
"name": "support.function.mcode.gcode",
"match": "[mM][ \\t]*[0-9][0-9\\.]*"
},
{
"name": "support.type.dDfFhHsStTcode.gcode",
"match": "[dDfFhHsStT][ \\t]*[0-9][0-9\\.]*"
},
{
"name": "variable.parameter.pqecode.gcode",
"match": "[pPqQeE][ \\t]*\\-?\\.?[0-9][0-9\\.]*"
},
{
"name": "string.control.mcode.gcode",
"match": "[cCwWkKlL][ \\t]*[\\-\\+]?[0-9\\.]+"
}
]
},
"strings": {
"name": "keyword.operator.gcode",
"comment": "This pattern is actually for comments",
"begin": "(\\()|(\\;)",
"end": "(\\))|(\n)",
"patterns": [
{
"name": "constant.character.escape.gcode",
"match": "\\\\."
}
]
}
},
"scopeName": "source.gcode"
}
@@ -1,550 +0,0 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Klipper Config",
"foldingStartMarker": "({%\\s*(block|filter|for|if|macro|raw))",
"foldingStopMarker": "({%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",
"patterns": [
{
"include": "#single_line_comment"
},
{
"include": "#config_block"
},
{
"include": "#config_line"
},
{
"include": "#number"
},
{
"include": "#gcode_line"
},
{
"begin": "({%)\\s*(raw)\\s*(%})",
"captures": {
"1": {
"name": "entity.other.jinja.delimiter.tag"
},
"2": {
"name": "keyword.control.jinja"
},
"3": {
"name": "entity.other.jinja.delimiter.tag"
}
},
"end": "({%)\\s*(endraw)\\s*(%})",
"name": "comment.block.jinja.raw"
},
{
"include": "#comments"
},
{
"begin": "{{-?",
"captures": [
{
"name": "entity.other.jinja.delimiter.variable"
}
],
"end": "-?}}",
"name": "meta.scope.jinja.variable",
"patterns": [
{
"include": "#expression"
}
]
},
{
"begin": "{%-?",
"captures": [
{
"name": "entity.other.jinja.delimiter.tag"
}
],
"end": "-?%}",
"name": "meta.scope.jinja.tag",
"patterns": [
{
"include": "#expression"
}
]
}
],
"repository": {
"single_line_comment": {
"patterns": [
{
"name": "comment.line.number-sign",
"match": "#(.+)$"
},
{
"name": "comment.line.gcode",
"match": ";(.+)$"
}
]
},
"number": {
"patterns": [
{
"name": "constant.numeric",
"match": "\\-?\\d+([\\.,]\\d+)?\\b"
},
{
"name": "constant.numeric",
"match": "\\-?[\\.,]\\d+?\\b"
}
]
},
"boolean": {
"name": "constant.language",
"match": "(?i)\\b(true|false)\\b"
},
"config_block": {
"contentName": "keyword.control",
"begin": "^\\[",
"end": "\\]$",
"patterns": [
{
"include": "#known_config_block_name"
},
{
"include": "#known_driver_type"
}
]
},
"known_config_block_name": {
"name": "storage.type",
"match": "(?i)\\b(ad5206|adc_temperature|bed_mesh|bed_screws|bed_tilt|bltouch|board_pins|controller_fan|delayed_gcode|delta_calibrate|display|display_data|display_template|dotstar|dual_carriage|endstop_phase|extruder_stepper|extruder[1-9]{0,1}|fan|filament_switch_sensor|firmware_retraction|force_move|gcode_arcs|gcode_button|gcode_macro|hall_filament_width_sensor|heater_bed|heater_fan|heater_generic|homing_heaters|homing_override|idle_timeout|include|manual_stepper|mcp4018|mcp4451|mcp4728|mcu|menu|multi_pin|neopixel|output_pin|pause_resume|printer|probe|quad_gantry_level|replicape|respond|safe_z_home|samd_sercom|screws_tilt_adjust|servo|skew_correction|static_digital_output|stepper_(bed|arm|[abcdxy]|z[1-9]{0,1})|sx1509|temperature_fan|temperature_sensor|thermistor|tsl1401cl_filament_width_sensor|verify_heater|virtual_sdcard|z_tilt)\\b"
},
"known_driver_type": {
"name": "support.type",
"match": "(?i)\\btmc(2130|2208|2209|2660|5160)\\b"
},
"known_thermistor_type": {
"name": "support.type",
"match": "(?i)\\b(EPCOS 100K B57560G104F|ATC Semitec 104GT-2|NTC 100K beta 3950|Honeywell 100K 135-104LAG-J01|NTC 100K MGB18-104F39050L32)\\b"
},
"known_extruder_sensor_type": {
"name": "support.type",
"match": "(?i)\\b(MAX6675|MAX31855|MAX31856|MAX31865|PT100 INA826|AD595|AD8494|AD8495|AD8496|AD8497|PT1000|BME280)\\b"
},
"known_control_type": {
"name": "support.type",
"match": "(?i)\\b(watermark|pid)\\b"
},
"known_display_type": {
"name": "support.type",
"match": "(?i)\\b(hd44780|st7920|uc1701|ssd1306|sh1106)\\b"
},
"serial": {
"name": "support.type",
"match": "\\/dev\\/serial\\/by-(id|path)\\/[\\d\\w\\/\\-:\\.]+"
},
"pin": {
"patterns": [
{
"name": "support.type",
"match": "(?i)[\\^~!]*(ar|analog)\\d{1,2}"
},
{
"name": "support.type",
"match": "(?i)[\\^~!]*(z:)?[a-z]{1,2}\\d{1,2}(\\.\\d{1,2})?"
}
]
},
"config_line": {
"begin": "^(\\w+)\\s*[:=]\\s*",
"beginCaptures": {
"1": {
"name": "variable.name"
}
},
"end": "$",
"patterns": [
{
"include": "#known_thermistor_type"
},
{
"include": "#known_extruder_sensor_type"
},
{
"include": "#known_control_type"
},
{
"include": "#known_display_type"
},
{
"include": "#pin"
},
{
"include": "#serial"
},
{
"include": "#number"
},
{
"include": "#boolean"
},
{
"include": "#single_line_comment"
}
]
},
"gcode_line": {
"patterns": [
{
"include": "#gcode_command"
},
{
"include": "#gcode_extended_command"
},
{
"include": "#gcode_parameter"
},
{
"include": "#gcode_extended_parameter"
}
]
},
"gcode_command": {
"begin": "(?ix)^\\s* ([GMTD]) (?![a-z])",
"beginCaptures": {
"1": {
"name": "keyword.operator"
}
},
"end": "\\s",
"patterns": [
{
"include": "#number"
}
]
},
"gcode_parameter": {
"begin": "(?ix)\\b ([a-z]) (?![a-z])",
"beginCaptures": {
"1": {
"name": "variable.parameter"
}
},
"end": "\\s",
"patterns": [
{
"include": "#number"
}
]
},
"gcode_extended_command": {
"name": "keyword.operator",
"match": "(?i)^\\s*(ABORT|ACCEPT|ACTIVATE_EXTRUDER|BED_MESH_CALIBRATE|BED_MESH_CLEAR|BED_MESH_MAP|BED_MESH_OUTPUT|BED_MESH_PROFILE|BED_SCREWS_ADJUST|BED_TILT_CALIBRATE|BLTOUCH_DEBUG|BLTOUCH_STORE|CALC_MEASURED_SKEW|CLEAR_PAUSE|DELTA_ANALYZE|DELTA_CALIBRATE|DUMP_TMC|ENDSTOP_PHASE_CALIBRATE|FIRMWARE_RESTART|FORCE_MOVE|GET_CURRENT_SKEW|GET_POSITION|GET_RETRACTION|HELP|MANUAL_PROBE|MANUAL_STEPPER|PAUSE|PID_CALIBRATE|PROBE|PROBE_ACCURACY|PROBE_CALIBRATE|QUAD_GANTRY_LEVEL|QUERY_ADC|QUERY_ENDSTOPS|QUERY_FILAMENT_SENSOR|QUERY_PROBE|RESPOND|RESTART|RESTORE_GCODE_STATE|RESUME|SAVE_CONFIG|SAVE_GCODE_STATE|SCREWS_TILT_CALCULATE|SET_DUAL_CARRIAGE|SET_EXTRUDER_STEP_DISTANCE|SET_FILAMENT_SENSOR|SET_GCODE_OFFSET|SET_GCODE_VARIABLE|SET_HEATER_TEMPERATURE|SET_IDLE_TIMEOUT|SET_KINEMATIC_POSITION|SET_LED|SET_PIN|SET_PRESSURE_ADVANCE|SET_RETRACTION|SET_SERVO|SET_SKEW|SET_STEPPER_ENABLE|SET_TMC_CURRENT|SET_TMC_FIELD|SET_VELOCITY_LIMIT|SKEW_PROFILE|STATUS|STEPPER_BUZZ|TESTZ|TUNING_TOWER|TURN_OFF_HEATERS|UPDATE_DELAYED_GCODE|Z_ENDSTOP_CALIBRATE|Z_TILT_ADJUST)\\s"
},
"gcode_extended_parameter": {
"begin": "(?i)\\b(AC|ACCEL|ACCEL_TO_DECEL|AD|ADVANCE|ANGLE|BAND|BD|BLUE|CARRIAGE|CLEAR|COMMAND|CURRENT|DISTANCE|DURATION|ENABLE|EXTRUDER|FACTOR|FIELD|GREEN|HEATER|HOLDCURRENT|ID|INDEX|LED|LIFT_SPEED|LOAD|MACRO|METHOD|MODE|MOVE_SPEED|MSG|NAME|PARAMETER|PGP|PIN|PREFIX|PROBE_SPEED|PULLUP|RED|REMOVE|RETRACT_LENGTH|RETRACT_SPEED|SAMPLE_RETRACT_DIST|SAMPLES|SAMPLES_RESULT|SAMPLES_TOLERANCE|SAMPLES_TOLERANCE_RETRIES|SAVE|SENSOR|SERVO|SET_POSITION|SMOOTH_TIME|SPEED|SQUARE_CORNER_VELOCITY|START|STEPPER|STOP_ON_ENDSTOP|SYNC|TARGET|TIMEOUT|TRANSMIT|TYPE|UNRETRACT_EXTRA_LENGTH|UNRETRACT_SPEED|VALUE|VARIABLE|VELOCITY|WIDTH|WRITE_FILE|X|X_ADJUST|XY|XZ|Y|Y_ADJUST|YZ|Z|Z_ADJUST)=",
"beginCaptures": {
"1": {
"name": "variable.parameter"
}
},
"end": "\\s",
"patterns": [
{
"name": "constant.language",
"match": "(?i)(5V|average|command|echo|error|manual|median|OD|output_mode_store|pin_down|pin_up|reset|self_test|set_5V_output_mode|set_5V_output_mode|set_OD_output_mode|touch_mode)"
},
{
"include": "#number"
}
]
},
"gcode_macro_block": {
"name": "string.unquoted",
"begin": "{",
"end": "}"
},
"comments": {
"begin": "{#-?",
"captures": [
{
"name": "entity.other.jinja.delimiter.comment"
}
],
"end": "-?#}",
"name": "comment.block.jinja",
"patterns": [
{
"include": "#comments"
}
]
},
"escaped_char": {
"match": "\\\\x[0-9A-F]{2}",
"name": "constant.character.escape.hex.jinja"
},
"escaped_unicode_char": {
"captures": {
"1": {
"name": "constant.character.escape.unicode.16-bit-hex.jinja"
},
"2": {
"name": "constant.character.escape.unicode.32-bit-hex.jinja"
},
"3": {
"name": "constant.character.escape.unicode.name.jinja"
}
},
"match": "(\\\\U[0-9A-Fa-f]{8})|(\\\\u[0-9A-Fa-f]{4})|(\\\\N\\{[a-zA-Z ]+\\})"
},
"expression": {
"patterns": [
{
"captures": {
"1": {
"name": "keyword.control.jinja"
},
"2": {
"name": "variable.other.jinja.block"
}
},
"match": "\\s*\\b(block)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"captures": {
"1": {
"name": "keyword.control.jinja"
},
"2": {
"name": "variable.other.jinja.filter"
}
},
"match": "\\s*\\b(filter)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"captures": {
"1": {
"name": "keyword.control.jinja"
},
"2": {
"name": "variable.other.jinja.test"
}
},
"match": "\\s*\\b(is)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"captures": {
"1": {
"name": "keyword.control.jinja"
}
},
"match": "(?<=\\{\\%-|\\{\\%)\\s*\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*[,=])"
},
{
"match": "\\b(and|else|if|in|import|not|or|recursive|with(out)?\\s+context)\\b",
"name": "keyword.control.jinja"
},
{
"match": "\\b(true|false|none)\\b",
"name": "constant.language.jinja"
},
{
"match": "\\b(loop|super|self|varargs|kwargs)\\b",
"name": "variable.language.jinja"
},
{
"match": "[a-zA-Z_][a-zA-Z0-9_]*",
"name": "variable.other.jinja"
},
{
"match": "(\\+|\\-|\\*\\*|\\*|\/\/|\/|%)",
"name": "keyword.operator.arithmetic.jinja"
},
{
"captures": {
"1": {
"name": "punctuation.other.jinja"
},
"2": {
"name": "variable.other.jinja.filter"
}
},
"match": "(\\|)([a-zA-Z_][a-zA-Z0-9_]*)"
},
{
"captures": {
"1": {
"name": "punctuation.other.jinja"
},
"2": {
"name": "variable.other.jinja.attribute"
}
},
"match": "(\\.)([a-zA-Z_][a-zA-Z0-9_]*)"
},
{
"begin": "\\[",
"captures": [
{
"name": "punctuation.other.jinja"
}
],
"end": "\\]",
"patterns": [
{
"include": "#expression"
}
]
},
{
"begin": "\\(",
"captures": [
{
"name": "punctuation.other.jinja"
}
],
"end": "\\)",
"patterns": [
{
"include": "#expression"
}
]
},
{
"begin": "\\{",
"captures": [
{
"name": "punctuation.other.jinja"
}
],
"end": "\\}",
"patterns": [
{
"include": "#expression"
}
]
},
{
"match": "(\\.|:|\\||,)",
"name": "punctuation.other.jinja"
},
{
"match": "(==|<=|=>|<|>|!=)",
"name": "keyword.operator.comparison.jinja"
},
{
"match": "=",
"name": "keyword.operator.assignment.jinja"
},
{
"begin": "\"",
"beginCaptures": [
{
"name": "punctuation.definition.string.begin.jinja"
}
],
"end": "\"",
"endCaptures": [
{
"name": "punctuation.definition.string.end.jinja"
}
],
"name": "string.quoted.double.jinja",
"patterns": [
{
"include": "#string"
}
]
},
{
"begin": "'",
"beginCaptures": [
{
"name": "punctuation.definition.string.begin.jinja"
}
],
"end": "'",
"endCaptures": [
{
"name": "punctuation.definition.string.end.jinja"
}
],
"name": "string.quoted.single.jinja",
"patterns": [
{
"include": "#string"
}
]
},
{
"begin": "@\/",
"beginCaptures": [
{
"name": "punctuation.definition.regexp.begin.jinja"
}
],
"end": "\/",
"endCaptures": [
{
"name": "punctuation.definition.regexp.end.jinja"
}
],
"name": "string.regexp.jinja",
"patterns": [
{
"include": "#simple_escapes"
}
]
}
]
},
"simple_escapes": {
"captures": {
"1": {
"name": "constant.character.escape.newline.jinja"
},
"10": {
"name": "constant.character.escape.tab.jinja"
},
"11": {
"name": "constant.character.escape.vertical-tab.jinja"
},
"2": {
"name": "constant.character.escape.backlash.jinja"
},
"3": {
"name": "constant.character.escape.double-quote.jinja"
},
"4": {
"name": "constant.character.escape.single-quote.jinja"
},
"5": {
"name": "constant.character.escape.bell.jinja"
},
"6": {
"name": "constant.character.escape.backspace.jinja"
},
"7": {
"name": "constant.character.escape.formfeed.jinja"
},
"8": {
"name": "constant.character.escape.linefeed.jinja"
},
"9": {
"name": "constant.character.escape.return.jinja"
}
},
"match": "(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)"
},
"string": {
"patterns": [
{
"include": "#simple_escapes"
},
{
"include": "#escaped_char"
},
{
"include": "#escaped_unicode_char"
}
]
}
},
"scopeName": "source.klipper-config"
}
Binary file not shown.
+388 -22
View File
@@ -1,19 +1,93 @@
<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';
.button-min-width-auto {
min-width: auto !important;
}
#page-container {
max-width: 1400px;
}
#sidebarVersions {
position: absolute;
left: 0;
bottom: 0;
}
</style>
<template>
<v-app>
<vue-headful :title="getTitle" />
<sidebar></sidebar>
<topbar></topbar>
<v-navigation-drawer
class="sidebar-wrapper" persistent v-model="drawer" enable-resize-watcher fixed app
:src="sidebarBackground"
>
<div id="nav-header">
<img :src="sidebarLogo" />
<v-toolbar-title>{{ printername !== "" ? printername : hostname }}</v-toolbar-title>
</div>
<ul class="navi" :expand="$vuetify.breakpoint.mdAndUp">
<printer-selecter></printer-selecter>
<li v-for="(category, index) in routes" :key="index" :prepend-icon="category.icon"
:class="[category.path !== '/' && currentPage.includes(category.path) ? 'active' : '', 'nav-item']"
:value="true"
>
<router-link
style="position: relative;"
slot="activator" class="nav-link" exact :to="category.path" @click.prevent
v-if="
(category.title === 'Webcam' && boolNaviWebcam) ||
(category.title === 'Heightmap' && boolNaviHeightmap) || (
category.title !== 'Webcam' &&
category.title !== 'Heightmap' &&
(klippy_state !== 'error' || category.alwaysShow)
)
">
<v-icon>mdi-{{ category.icon }}</v-icon>
<v-icon
small
color="warning"
style="
top: 11px;
left: 32px;
position: absolute;
"
v-if="category.title === 'Settings' && isUpdateAvailable"
>mdi-progress-upload</v-icon>
<span class="nav-title">
{{ category.title }}
</span>
<v-icon class="nav-arrow" v-if="category.children && category.children.length > 0">mdi-chevron-down</v-icon>
</router-link>
<v-main id="content" v-bind:style="{background:mainBackground,backgroundAttachment:'fixed',backgroundSize: 'cover',backgroundRepeat: 'no-repeat'}">
<ul class="child">
<li v-for="(page, pageIndex) in category.children" class="nav-item" v-bind:key="`${index}-${pageIndex}`">
<router-link :to="page.path" class="nav-link" @click.prevent v-if="klippy_state !== 'error' || page.alwaysShow">
<v-icon>mdi-{{ page.icon }}</v-icon>
<span class="nav-title">{{ page.title }}</span>
</router-link>
</li>
</ul>
</li>
</ul>
<p id="sidebarVersions" class="mb-0 text-body-2 pl-3 pb-2">
v{{ getVersion }}<span class="" v-if="klipperVersion"> - {{ klipperVersion.substr(0, klipperVersion.lastIndexOf('-')) }}</span>
</p>
</v-navigation-drawer>
<v-app-bar app elevate-on-scroll>
<v-app-bar-nav-icon @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
<v-spacer></v-spacer>
<input type="file" ref="fileUploadAndStart" accept=".gcode, .ufp" style="display: none" @change="uploadAndStart" />
<v-btn color="primary" class="mr-5 d-none d-sm-flex" v-if="isConnected && save_config_pending" :disabled="['printing', 'paused'].includes(printer_state)" :loading="loadings.includes['topbarSaveConfig']" @click="clickSaveConfig">SAVE CONFIG</v-btn>
<v-btn color="primary" class="mr-5 d-none d-sm-flex" v-if="isConnected && ['standby', 'complete'].includes(printer_state)" :loading="loadings.includes['btnUploadAndStart']" @click="btnUploadAndStart"><v-icon class="mr-2">mdi-file-upload</v-icon>Upload & Print</v-btn>
<v-btn color="error" class="button-min-width-auto px-3" v-if="isConnected" :loading="loadings.includes['topbarEmergencyStop']" @click="clickEmergencyStop"><v-icon class="mr-sm-2">mdi-alert-circle-outline</v-icon><span class="d-none d-sm-flex">Emergency Stop</span></v-btn>
<top-corner-menu></top-corner-menu>
</v-app-bar>
<v-main id="content">
<v-scroll-y-transition>
<v-container fluid id="page-container" class="container px-3 px-sm-6 py-sm-6 mx-auto">
<keep-alive>
@@ -23,6 +97,31 @@
</v-scroll-y-transition>
</v-main>
<v-snackbar
:timeout="-1"
:value="true"
fixed
right
bottom
dark
v-model="uploadSnackbar.status"
>
<strong>Uploading {{ uploadSnackbar.filename }}</strong><br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s<br />
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
<template v-slot:action="{ attrs }">
<v-btn
color="red"
text
v-bind="attrs"
@click="cancelUpload"
style="min-width: auto;"
>
<v-icon class="0">mdi-close</v-icon>
</v-btn>
</template>
</v-snackbar>
<select-printer-dialog v-if="remoteMode"></select-printer-dialog>
<connecting-dialog v-if="!remoteMode"></connecting-dialog>
<update-dialog></update-dialog>
@@ -30,38 +129,75 @@
</template>
<script>
import routes from './routes'
import { mapState, mapGetters } from 'vuex'
import TopCornerMenu from "@/components/TopCornerMenu"
import UpdateDialog from "@/components/UpdateDialog"
import ConnectingDialog from "@/components/ConnectingDialog"
import SelectPrinterDialog from "@/components/SelectPrinterDialog"
import Sidebar from "@/components/Sidebar"
import Topbar from "@/components/Topbar"
import ConnectingDialog from "@/components/ConnectingDialog";
import SelectPrinterDialog from "@/components/SelectPrinterDialog";
import PrinterSelecter from "@/components/PrinterSelecter"
import axios from "axios";
export default {
props: {
source: String,
},
components: {
PrinterSelecter,
ConnectingDialog,
SelectPrinterDialog,
UpdateDialog,
Sidebar,
Topbar,
TopCornerMenu,
},
data: () => ({
drawer: null,
activeClass: 'active',
routes: routes.filter((element) => element.title !== "Printers"),
boolNaviHeightmap: false,
uploadSnackbar: {
status: false,
filename: "",
percent: 0,
speed: 0,
total: 0,
cancelTokenSource: "",
lastProgress: {
time: 0,
loaded: 0
}
}
}),
created () {
this.$vuetify.theme.dark = true
this.$vuetify.theme.dark = true;
this.boolNaviHeightmap = (typeof(this.config.bed_mesh) !== "undefined");
},
computed: {
currentPage: function() {
return this.$route.fullPath;
},
...mapState({
language: state => state.gui.general.language,
isConnected: state => state.socket.isConnected,
hostname: state => state.printer.hostname,
apiHost: state => state.socket.hostname,
apiPort: state => state.socket.port,
klippy_state: state => state.server.klippy_state,
printer_state: state => state.printer.print_stats.state,
loadings: state => state.socket.loadings,
toolhead: state => state.printer.toolhead,
printername: state => state.gui.general.printername,
virtual_sdcard: state => state.printer.virtual_sdcard,
current_file: state => state.printer.print_stats.filename,
boolNaviWebcam: state => state.gui.webcam.bool,
config: state => state.printer.configfile.config,
save_config_pending: state => state.printer.configfile.save_config_pending,
klipperVersion: state => state.printer.software_version,
remoteMode: state => state.socket.remoteMode,
}),
...mapGetters([
'getTitle',
'getVersion',
]),
print_percent: {
get() {
@@ -73,9 +209,14 @@ export default {
return this.$store.getters["files/getFavicons"]
}
},
mainBackground: {
sidebarLogo: {
get() {
return this.$store.getters["files/getMainBackground"]
return this.$store.getters["files/getSidebarLogo"]
}
},
sidebarBackground: {
get() {
return this.$store.getters["files/getSidebarBackground"]
}
},
customStylesheet: {
@@ -83,8 +224,102 @@ export default {
return this.$store.getters["files/getCustomStylesheet"]
}
},
isUpdateAvailable: {
get() {
return this.$store.getters["server/updateManager/isUpdateAvailable"]
}
}
},
methods: {
clickEmergencyStop: function() {
this.$store.commit('socket/addLoading', { name: 'topbarEmergencyStop' });
this.$socket.sendObj('printer.emergency_stop', {}, 'socket/removeLoading',{ name: 'topbarEmergencyStop' });
},
clickSaveConfig: function() {
this.$store.commit('server/addEvent', { message: "SAVE_CONFIG", type: "command" });
this.$store.commit('socket/addLoading', { name: 'topbarSaveConfig' });
this.$socket.sendObj('printer.gcode.script', { script: "SAVE_CONFIG" }, 'socket/removeLoading', { name: 'topbarSaveConfig' });
},
btnUploadAndStart: function() {
this.$refs.fileUploadAndStart.click()
},
async uploadAndStart() {
if (this.$refs.fileUploadAndStart.files.length) {
this.$store.commit('socket/addLoading', { name: 'btnUploadAndStart' })
let successFiles = []
for (const file of this.$refs.fileUploadAndStart.files) {
const result = await this.doUploadAndStart(file)
successFiles.push(result)
}
this.$store.commit('socket/removeLoading', { name: 'gcodeUpload' })
for(const file of successFiles) {
this.$toast.success("Upload of "+file+" successful!")
}
this.$refs.fileUploadAndStart.value = ''
this.$router.push("/");
}
},
doUploadAndStart(file) {
let toast = this.$toast
let formData = new FormData()
let filename = file.name.replace(" ", "_")
this.uploadSnackbar.filename = filename
this.uploadSnackbar.status = true
this.uploadSnackbar.percent = 0
this.uploadSnackbar.speed = 0
this.uploadSnackbar.lastProgress.loaded = 0
this.uploadSnackbar.lastProgress.time = 0
formData.append('file', file, filename)
formData.append('print', true)
return new Promise(resolve => {
this.uploadSnackbar.cancelTokenSource = axios.CancelToken.source();
axios.post('//' + this.apiHost + ':' + this.apiPort + '/server/files/upload',
formData, {
cancelToken: this.uploadSnackbar.cancelTokenSource.token,
headers: { 'Content-Type': 'multipart/form-data' },
onUploadProgress: (progressEvent) => {
this.uploadSnackbar.percent = (progressEvent.loaded * 100) / progressEvent.total
if (this.uploadSnackbar.lastProgress.time) {
const time = progressEvent.timeStamp - this.uploadSnackbar.lastProgress.time
const data = progressEvent.loaded - this.uploadSnackbar.lastProgress.loaded
if (time) this.uploadSnackbar.speed = data / (time / 1000)
}
this.uploadSnackbar.lastProgress.time = progressEvent.timeStamp
this.uploadSnackbar.lastProgress.loaded = progressEvent.loaded
this.uploadSnackbar.total = progressEvent.total
}
}
).then((result) => {
this.uploadSnackbar.status = false
resolve(result.data.result)
}).catch(() => {
this.uploadSnackbar.status = false
this.$store.commit('socket/removeLoading', { name: 'btnUploadAndStart' })
toast.error("Cannot upload the file!")
})
})
},
cancelUpload: function() {
this.uploadSnackbar.cancelTokenSource.cancel()
this.uploadSnackbar.status = false
},
formatFilesize(fileSizeInBytes) {
let i = -1
let byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB']
do {
fileSizeInBytes = fileSizeInBytes / 1024
i++
} while (fileSizeInBytes > 1024)
return Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i]
},
drawFavicon(val) {
let favicon16 = document.querySelector("link[rel*='icon'][sizes='16x16']")
let favicon32 = document.querySelector("link[rel*='icon'][sizes='32x32']")
@@ -134,12 +369,9 @@ export default {
favicon16.href = favicon16Default
favicon32.href = favicon32Default
}
},
}
},
watch: {
language(){
this.$i18n.locale = this.language;
},
print_percent() {
this.drawFavicon(this.print_percent);
},
@@ -148,6 +380,9 @@ export default {
this.$socket.sendObj("server.files.metadata", { filename: newVal }, "files/getMetadataCurrentFile");
}
},
config() {
this.boolNaviHeightmap = (typeof(this.config.bed_mesh) !== "undefined");
},
customStylesheet(newVal) {
if (newVal !== null) {
let style = document.getElementById("customStylesheet")
@@ -171,3 +406,134 @@ export default {
},
}
</script>
<style>
body {
background: #121212;
}
/*.sidebar-wrapper:before {
position: absolute;
content: ' ';
top: 0; right: 0; bottom: 0; left: 0;
background: #000;
opacity: .5;
}*/
#nav-header {
text-align: center;
border-bottom: 1px solid #ffffff40;
margin-bottom: 1em;
padding: .75em 0 .75em 0;
display: flex;
align-items: center;
justify-content: center;
}
#nav-header img {
height: 40px;
margin-right: 1em;
}
#nav-header .v-toolbar__title {
font-size: 24px;
vertical-align: middle;
}
.v-navigation-drawer__content {
z-index: 10;
}
nav ul.navi {
list-style: none;
padding: 0;
margin: 0;
}
nav ul.navi li.nav-item {
padding: 0;
margin: 0;
}
nav ul.navi .nav-link {
display: block;
color: white;
border-radius: .5em;
line-height: 30px;
font-size: 14px;
font-weight: 600;
padding: 10px 15px;
opacity: .85;
transition: all .15s ease-in;
text-decoration: none;
margin: 0.5em 1em;
}
nav ul.navi .nav-link:hover,
nav ul.navi li.active>.nav-link,
nav ul.navi .nav-link.router-link-active {
background: rgba(255,255,255,.3);
opacity: 1;
}
nav ul.navi li.active>.nav-link i.nav-arrow ,
nav ul.navi .nav-link.router-link-active i.nav-arrow {
transform: rotate(0);
}
nav ul.navi .nav-link>i.v-icon {
color: white;
font-size: 1.7em;
margin-right: .5em;
}
nav ul.navi .nav-link>span.nav-title {
line-height: 30px;
font-weight: 600;
text-transform: uppercase;
white-space: nowrap;
letter-spacing: 1px;
}
nav ul.navi .nav-link>.nav-arrow {
float: right;
margin-top: 5px;
margin-right: 0;
transform: rotate(90deg);
}
nav ul.navi .nav-link>.nav-arrow.right {
transform: rotate(-90deg);
}
nav ul.navi>li>ul.child {
display: none;
list-style: none;
padding: 0;
margin: 0;
}
nav ul.navi>li>a.router-link-active+ul.child,
nav ul.navi>li.active>ul.child {
display: block;
}
nav ul.navi>li>ul.child .nav-link {
padding: 5px 15px 5px 15px;
}
nav ul.navi>li>ul.child .nav-link:hover,
nav ul.navi>li>ul.child .nav-link.router-link-active {
background: rgba(255,255,255,.2);
}
nav ul.navi>li>ul.child .nav-link>span.nav-title {
text-transform: capitalize;
font-weight: 400;
font-size: 14px;
}
.v-btn--absolute.v-btn--bottom, .v-btn--fixed.v-btn--bottom {
bottom: 52px;
}
</style>
-47
View File
@@ -1,47 +0,0 @@
body {
background: #121212;
}
#page-container {
max-width: 1400px;
}
.overflowingContentWidgets {
visibility: hidden;
}
.fill-width {
width: 100%;
}
.mb-fix-2 {
margin-bottom: -8px!important;
}
.mr-fix-2 {
margin-right: -8px!important;
}
.mr-fix-1 {
margin-right: -4px!important;
}
.gutter-2 {
margin: -2px!important;
}
.gutter-2 > .col, .gutter-2 > [class*=col-] {
padding: 1px!important;
}
.w-100 {
width: 100%!important;
}
.h-100 {
height: 100%!important;
}
.p-abs {
position: absolute!important;
}
.p-rel {
position: relative!important;
}
-112
View File
@@ -1,112 +0,0 @@
#nav-header {
text-align: center;
border-bottom: 1px solid #ffffff40;
margin-bottom: 1em;
padding: .75em 0 .75em 0;
display: flex;
align-items: center;
justify-content: center;
}
#nav-header img {
height: 40px;
margin-right: 1em;
}
#nav-header .v-toolbar__title {
font-size: 24px;
vertical-align: middle;
}
.v-navigation-drawer__content {
z-index: 10;
padding-bottom: 1em;
}
nav ul.navi {
list-style: none;
padding: 0;
margin: 0;
}
nav ul.navi li.nav-item {
padding: 0;
margin: 0;
}
nav ul.navi .nav-link {
display: block;
color: white;
border-radius: .5em;
line-height: 30px;
font-size: 14px;
font-weight: 600;
padding: 10px 15px;
opacity: .85;
transition: all .15s ease-in;
text-decoration: none;
margin: 0.5em 1em;
}
nav ul.navi .nav-link:hover,
nav ul.navi li.active>.nav-link,
nav ul.navi .nav-link.router-link-active {
background: rgba(255,255,255,.3);
opacity: 1;
}
nav ul.navi li.active>.nav-link i.nav-arrow ,
nav ul.navi .nav-link.router-link-active i.nav-arrow {
transform: rotate(0);
}
nav ul.navi .nav-link>i.v-icon {
color: white;
font-size: 1.7em;
margin-right: .5em;
}
nav ul.navi .nav-link>span.nav-title {
line-height: 30px;
font-weight: 600;
text-transform: uppercase;
white-space: nowrap;
letter-spacing: 1px;
}
nav ul.navi .nav-link>.nav-arrow {
float: right;
margin-top: 5px;
margin-right: 0;
transform: rotate(90deg);
}
nav ul.navi .nav-link>.nav-arrow.right {
transform: rotate(-90deg);
}
nav ul.navi>li>ul.child {
display: none;
list-style: none;
padding: 0;
margin: 0;
}
nav ul.navi>li>a.router-link-active+ul.child,
nav ul.navi>li.active>ul.child {
display: block;
}
nav ul.navi>li>ul.child .nav-link {
padding: 5px 15px 5px 15px;
}
nav ul.navi>li>ul.child .nav-link:hover,
nav ul.navi>li>ul.child .nav-link.router-link-active {
background: rgba(255,255,255,.2);
}
nav ul.navi>li>ul.child .nav-link>span.nav-title {
text-transform: capitalize;
font-weight: 400;
font-size: 14px;
}
-15
View File
@@ -1,15 +0,0 @@
@media screen and (max-width: 480px) {
.v-application--is-ltr .updateManager.v-timeline--dense:not(.v-timeline--reverse):before {
left: calc(24px - 1px);
}
.updateManager .v-timeline-item__divider {
min-width: 48px
}
.updateManager.v-timeline--dense .v-timeline-item__body {
max-width: calc(100% - 48px);
}
}
-26
View File
@@ -1,26 +0,0 @@
@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;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.mainsail-editor {
height: 92%;
width: 100%;
overflow: hidden;
-webkit-overflow-scrolling: touch;
user-select: auto;
-webkit-user-select: auto;
}
+4 -3
View File
@@ -8,7 +8,7 @@
<v-toolbar flat dense color="primary">
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-connection" left></v-icon>{{ $t("App.Connecting") }}<span v-if="connectingFailed"> {{ $t("App.Failed") }}</span><span v-if="isConnecting"> {{ $t("App.To") }} {{ parseInt(port) !== 80 && port !== "" ? hostname+":"+port : hostname }}</span>
<v-icon class="mdi mdi-connection" left></v-icon>Connecting<span v-if="connectingFailed"> failed</span><span v-if="isConnecting"> to {{ parseInt(port) !== 80 && port !== "" ? hostname+":"+port : hostname }}</span>
</span>
</v-toolbar-title>
</v-toolbar>
@@ -16,9 +16,9 @@
<v-progress-linear color="white" indeterminate></v-progress-linear>
</v-card-text>
<v-card-text class="pt-5" v-if="!isConnecting && connectingFailed">
<p>{{ $t("App.CannotNotConnectTo") }} {{ parseInt(port) !== 80 && port !== "" ? hostname+":"+port : hostname }}.</p>
<p>Cannot not connect to {{ parseInt(port) !== 80 && port !== "" ? hostname+":"+port : hostname }}.</p>
<div class="text-center">
<v-btn @click="reconnect" color="primary">{{ $t("App.TryAgain") }}</v-btn>
<v-btn @click="reconnect" color="primary">try again</v-btn>
</div>
</v-card-text>
</v-card>
@@ -65,6 +65,7 @@ export default {
},
methods: {
connect() {
window.console.log("save connection")
Vue.prototype.$socket.setUrl(this.protocol+"://"+this.hostname+":"+this.port+"/websocket")
Vue.prototype.$socket.connect()
},
+2 -2
View File
@@ -12,7 +12,7 @@
role="button"
>
<v-icon>mdi-view-dashboard-outline</v-icon>
<span class="nav-title">{{ $t("App.Printers")}}</span>
<span class="nav-title">Printers</span>
<v-menu bottom :offset-x="true">
<template v-slot:activator="{ on, attrs }">
@@ -30,7 +30,7 @@
</v-menu>
</div>
<v-item-group class="v-btn-toggle mx-4 d-block row" name="printers" v-if="false">
<v-btn class="col" color="primary" @click="switchToPrinters">{{ $t("App.Printers")}}</v-btn>
<v-btn class="col" color="primary" @click="switchToPrinters">Printers</v-btn>
</v-item-group>
</li>
+38 -35
View File
@@ -9,15 +9,15 @@
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-connection" left></v-icon>
<span v-if="isConnecting">{{ $t("App.ConnectionTo") }}{{ parseInt(port) !== 80 ? hostname+':'+port : hostname }}</span>
<span v-if="connectingFailed">{{ $t("App.ConnectionFailed") }}</span>
<span v-if="!isConnecting && !connectingFailed && !dialogAddPrinter.bool && !dialogEditPrinter.bool">{{ $t("App.SelectPrinter") }}</span>
<span v-if="dialogAddPrinter.bool">{{ $t("App.AddPrinter") }}</span>
<span v-if="dialogEditPrinter.bool">{{ $t("App.EditPrinter") }}</span>
<span v-if="isConnecting">Connection to {{ parseInt(port) !== 80 ? hostname+':'+port : hostname }}</span>
<span v-if="connectingFailed">Connection failed</span>
<span v-if="!isConnecting && !connectingFailed && !dialogAddPrinter.bool && !dialogEditPrinter.bool">Select Printer</span>
<span v-if="dialogAddPrinter.bool">Add Printer</span>
<span v-if="dialogEditPrinter.bool">Edit Printer</span>
</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!isConnecting && !connectingFailed && !dialogAddPrinter.bool && !dialogEditPrinter.bool && countPrinters > 0" small class="minwidth-0" @click="checkPrinters"><v-icon small>mdi-sync</v-icon></v-btn>
<v-btn v-if="!isConnecting && !connectingFailed && !dialogAddPrinter.bool && !dialogEditPrinter.bool && this['farm/countPrinters'] > 0" small class="minwidth-0" @click="checkPrinters"><v-icon small>mdi-sync</v-icon></v-btn>
<v-btn small class="minwidth-0" v-if="!isConnecting && !connectingFailed && dialogAddPrinter.bool" @click="dialogAddPrinter.bool = false"><v-icon small>mdi-close-thick</v-icon></v-btn>
<v-btn small class="minwidth-0" v-if="!isConnecting && !connectingFailed && dialogEditPrinter.bool" @click="dialogEditPrinter.bool = false"><v-icon small>mdi-close-thick</v-icon></v-btn>
</v-toolbar>
@@ -25,10 +25,10 @@
<v-progress-linear color="white" indeterminate></v-progress-linear>
</v-card-text>
<v-card-text class="pt-5" v-if="!isConnecting && connectingFailed">
<p>{{ $t("App.CannotNotConnectTo") }} {{ parseInt(port) !== 80 ? hostname+":"+port : hostname }}.</p>
<p>Cannot not connect to {{ parseInt(port) !== 80 ? hostname+":"+port : hostname }}.</p>
<div class="text-center">
<v-btn @click="switchToChangePrinter" color="white" outlined class="mr-3">{{ $t("App.ChangePrinter") }}</v-btn>
<v-btn @click="reconnect" color="primary">{{ $t("App.TryAgain") }}</v-btn>
<v-btn @click="switchToChangePrinter" color="white" outlined class="mr-3">change printer</v-btn>
<v-btn @click="reconnect" color="primary">try again</v-btn>
</div>
</v-card-text>
<v-card-text class="pt-3" v-if="!isConnecting && dialogAddPrinter.bool">
@@ -63,7 +63,7 @@
class="middle"
@click="addPrinter"
>
{{ $t("App.AddPrinter") }}
add printer
</v-btn>
</v-col>
</v-row>
@@ -111,7 +111,7 @@
class="middle"
@click="updatePrinter"
>
{{ $t("App.UpdatePrinter") }}
update printer
</v-btn>
</v-col>
</v-row>
@@ -119,8 +119,8 @@
</v-card-text>
<v-card-text class="pt-3" v-if="!isConnecting && !connectingFailed && !dialogAddPrinter.bool && !dialogEditPrinter.bool">
<v-container class="px-0 pb-0">
<v-row v-for="(printer, index) in printers" v-bind:key="index">
<v-col class="rounded transition-swing secondary py-2 px-2 mb-2" style="cursor: pointer;" @click="connect(printer)">
<v-row v-for="(printer, index) in this['farm/getPrinters']" v-bind:key="index">
<v-col class="rounded transition-swing secondary py-2 px-2 mb-6" style="cursor: pointer;" @click="connect(printer)">
<v-row align="center">
<v-col class="col-auto pr-0">
<v-progress-circular
@@ -133,21 +133,21 @@
v-if="!printer.socket.isConnecting"
>mdi-{{ printer.socket.isConnected ? 'checkbox-marked-circle' : 'cancel' }}</v-icon>
</v-col>
<v-col>{{ getPrinterName(printer._namespace) }}</v-col>
<v-col>{{ printer.socket.hostname }}{{ parseInt(printer.socket.port) !== 80 ? ":"+printer.socket.port : "" }}</v-col>
<v-col class="col-auto"><v-btn small class="minwidth-0" v-on:click.stop.prevent="editPrinter(index)"><v-icon small>mdi-pencil</v-icon></v-btn></v-col>
</v-row>
</v-col>
</v-row>
<v-row v-if="showCorsInfo">
<v-col>
<p class="text-center" v-if="countPrinters === 0">{{ $t("App.Hello") }}</p>
<p class="text-center">{{ $t("App.PleaseRememberToAdd") }}<code>{{ currentUrl }}</code> {{ $t("App.InMoonrakerConf") }}</p>
<p class="text-center mb-0">{{ $t("App.YouCanFindMore") }} <a :href="$t('App.Remotemode')" target="_blank">{{ $t("App.Remotemode") }}</a>.</p>
<p class="text-center" v-if="this['farm/countPrinters'] === 0">Hello and welcome to the remote mode of Mainsail!</p>
<p class="text-center">Please remember to add <code>{{ currentUrl }}</code> in moonraker.conf within "cors_domains".</p>
<p class="text-center">You can find more details at <a href="https://docs.mainsail.xyz/remotemode" target="_blank">docs.mainsail.xyz/remotemode</a>.</p>
</v-col>
</v-row>
<v-row>
<v-col class="text-center mt-0">
<v-btn @click="dialogAddPrinter.bool = true">{{ $t("App.AddPrinter") }}</v-btn>
<v-btn @click="dialogAddPrinter.bool = true">add printer</v-btn>
</v-col>
</v-row>
</v-container>
@@ -187,27 +187,30 @@ export default {
hostname: state => state.socket.hostname,
port: state => state.socket.port,
}),
...mapGetters({
countPrinters: "farm/countPrinters",
printers: "farm/getPrinters",
getPrinterName: "farm/getPrinterName",
}),
...mapGetters([
"farm/countPrinters",
"farm/getPrinters"
]),
...mapActions({
readPrinters: "farm/readStoredPrinters"
}),
currentUrl() {
return "http://"+window.location.hostname+(window.location.port !== 80 && window.location.port !== '' ? ':'+window.location.port : '')
currentUrl: {
get() {
return "http://"+window.location.hostname+(window.location.port !== 80 && window.location.port !== '' ? ':'+window.location.port : '')
}
},
showCorsInfo() {
if (this.countPrinters) {
for (const [ ,printer] of Object.entries(this.printers)) {
if (!printer.socket.isConnected) return true
showCorsInfo: {
get() {
if (this["farm/countPrinters"]) {
for (const [ ,printer] of Object.entries(this["farm/getPrinters"])) {
if (!printer.socket.isConnected) return true
}
return false
}
return false
return true
}
return true
}
},
methods: {
@@ -224,8 +227,8 @@ export default {
this.$store.dispatch("farm/savePrinters")
},
editPrinter(index) {
this.dialogEditPrinter.hostname = this.printers[index].socket.hostname
this.dialogEditPrinter.port = this.printers[index].socket.port
this.dialogEditPrinter.hostname = this["farm/getPrinters"][index].socket.hostname
this.dialogEditPrinter.port = this["farm/getPrinters"][index].socket.port
this.dialogEditPrinter.index = index
this.dialogEditPrinter.bool = true
},
@@ -261,7 +264,7 @@ export default {
this.$store.dispatch('socket/setData', { connectingFailed: false })
},
checkPrinters() {
Object.entries(this.printers).forEach(([key, printer]) => {
Object.entries(this['farm/getPrinters']).forEach(([key, printer]) => {
if (!printer.socket.isConnected && !printer.socket.isConnecting) {
this.$store.dispatch('farm/'+key+'/connect')
}
-131
View File
@@ -1,131 +0,0 @@
<style>
#sidebarVersions {
position: absolute;
left: 0;
bottom: 0;
}
@media screen and (max-width: 1024px) {
#sidebarVersions {
display: none;
}
}
</style>
<template>
<v-navigation-drawer class="sidebar-wrapper" persistent v-model="naviDrawer" enable-resize-watcher fixed app :src="sidebarBackground" >
<div id="nav-header">
<img :src="sidebarLogo" alt="Logo" />
<v-toolbar-title>{{ printerName }}</v-toolbar-title>
</div>
<ul class="navi" :expand="$vuetify.breakpoint.mdAndUp">
<printer-selecter></printer-selecter>
<li v-for="(category, index) in naviPoints" :key="index" :prepend-icon="category.icon"
:class="[category.path !== '/' && currentPage.includes(category.path) ? 'active' : '', 'nav-item']"
:value="true"
>
<router-link
style="position: relative;"
slot="activator" class="nav-link" exact :to="category.path" @click.prevent
v-if="getBoolShowInNavi(category)">
<v-icon>mdi-{{ category.icon }}</v-icon>
<v-icon
small
color="warning"
style="
top: 11px;
left: 32px;
position: absolute;
"
v-if="category.title === 'Settings' && isUpdateAvailable"
>mdi-progress-upload</v-icon>
<span class="nav-title">{{ $t(`Router.${category.title}`) }}</span>
<v-icon class="nav-arrow" v-if="category.children && category.children.length > 0">mdi-chevron-down</v-icon>
</router-link>
<ul class="child">
<li v-for="(page, pageIndex) in category.children" class="nav-item" v-bind:key="`${index}-${pageIndex}`">
<router-link :to="page.path" class="nav-link" @click.prevent v-if="klippy_state !== 'error' || page.alwaysShow">
<v-icon>mdi-{{ page.icon }}</v-icon>
<span class="nav-title">{{ $t(`Router.${page.title}`) }}</span>
</router-link>
</li>
</ul>
</li>
</ul>
<p id="sidebarVersions" class="mb-0 text-body-2 pl-3 pb-2">
v{{ mainsailVersion }}
<span class="" v-if="klipperVersion"><br />{{ klipperVersion }}</span>
</p>
</v-navigation-drawer>
</template>
<script>
import { mapState } from 'vuex'
import routes from '@/routes'
import PrinterSelecter from "@/components/PrinterSelecter"
export default {
components: {
PrinterSelecter,
},
data: () => ({
}),
computed: {
...mapState({
klippy_state: state => state.server.klippy_state,
klipperConfigfileSettings: state => state.printer.configfile.settings,
boolNaviWebcam: state => state.gui.webcam.bool,
mainsailVersion: state => state.packageVersion,
klipperVersion: state => state.printer?.software_version
}),
naviDrawer: {
get() {
return this.$store.state.naviDrawer
},
set(newVal) {
return this.$store.dispatch("setNaviDrawer", newVal)
}
},
currentPage() {
return this.$route.fullPath
},
naviPoints() {
return routes.filter((element) => element.showInNavi)
},
printerName() {
return this.$store.state.gui.general.printername || this.$store.state.printer.hostname
},
sidebarLogo() {
return this.$store.getters["files/getSidebarLogo"]
},
sidebarBackground() {
return this.$store.getters["files/getSidebarBackground"]
},
isUpdateAvailable() {
return this.$store.getters["server/updateManager/isUpdateAvailable"]
},
moonrakerComponents() {
return this.$store.state.server.components
},
registeredDirectories() {
return this.$store.state.server.registered_directories
}
},
methods: {
getBoolShowInNavi(route) {
if (['shutdown', 'error', 'disconnected'].includes(this.klippy_state) && !route.alwaysShow) return false
if (route.component?.name === 'webcam') return this.boolNaviWebcam
if ('moonrakerComponent' in route) return this.moonrakerComponents.includes(route.moonrakerComponent)
if ('registeredDirectory' in route) return this.registeredDirectories.includes(route.registeredDirectory)
if ('klipperComponent' in route) return (route.klipperComponent in this.klipperConfigfileSettings)
return true
},
},
}
</script>
+12 -24
View File
@@ -7,33 +7,30 @@
<template>
<v-menu bottom left :offset-y="true" :close-on-content-click="false" v-model="showMenu">
<template v-slot:activator="{ on, attrs }">
<v-btn color="grey darken-3" v-bind="attrs" v-on="on" class="ml-5 minwidth-0 px-2">
<v-icon>mdi-power-standby</v-icon>
<v-btn dark icon v-bind="attrs" v-on="on">
<v-icon>mdi-dots-vertical</v-icon>
</v-btn>
</template>
<v-list dense>
<v-subheader class="" style="height: auto;">{{ $t("App.KlipperControl") }}</v-subheader>
<v-subheader class="" style="height: auto;">Klipper Control</v-subheader>
<v-list-item class="minheight30" link @click="doRestart()">
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>{{ $t("App.Restart") }}</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>Restart</v-list-item-title>
</v-list-item>
<v-list-item class="minheight30" link @click="doFirmwareRestart()">
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>{{ $t("App.FirmwareRestart") }}</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>Firmware Restart</v-list-item-title>
</v-list-item>
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.RestartServices") }}</v-subheader>
<v-subheader class="pt-2" style="height: auto;">Restart Services</v-subheader>
<v-list-item class="minheight30" link @click="doServiceRestartKlipper()">
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>{{ $t("App.Klipper") }}</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>Klipper</v-list-item-title>
</v-list-item>
<v-list-item class="minheight30" link @click="doServiceRestartMoonraker()">
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>{{ $t("App.Moonraker") }}</v-list-item-title>
</v-list-item>
<v-list-item class="minheight30" v-if="boolWebcam" link @click="doServiceRestartWebcam()">
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>Webcam</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>Moonraker</v-list-item-title>
</v-list-item>
<div v-if="countPowerDevices">
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.PowerDevices") }}</v-subheader>
<v-subheader class="pt-2" style="height: auto;">Power Devices</v-subheader>
<v-list-item v-for="(device, index) in devices" v-bind:key="index" class="minheight30" @click="changeSwitch(device, device.status)" :disabled="(device.status === 'error' || device.locked_while_printing && ['printing', 'paused'].includes(printer_state))">
<v-list-item-title>
<v-icon class="mr-2" :color="device.status === 'on' ? '' : 'grey darken-2'">mdi-{{ device.status === 'on' ? 'toggle-switch' : 'toggle-switch-off' }}</v-icon>{{ device.device }}
@@ -41,12 +38,12 @@
</v-list-item>
</div>
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.HostControl") }}</v-subheader>
<v-subheader class="pt-2" style="height: auto;">Host Control</v-subheader>
<v-list-item class="minheight30" link @click="doHostReboot()">
<v-list-item-title><v-icon class="mr-2" small>mdi-power</v-icon>{{ $t("App.Reboot") }}</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-power</v-icon>Reboot</v-list-item-title>
</v-list-item>
<v-list-item class="minheight30" link @click="doHostShutdown()">
<v-list-item-title><v-icon class="mr-2" small>mdi-power</v-icon>{{ $t("App.Shutdown") }}</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-power</v-icon>Shutdown</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
@@ -73,11 +70,6 @@ export default {
return this.$store.getters["server/power/count"]
}
},
boolWebcam: {
get() {
return this.$store.state.gui.dashboard.boolWebcam || this.$store.state.gui.webcam.bool
}
}
},
methods: {
changeSwitch(device, value) {
@@ -105,10 +97,6 @@ export default {
this.showMenu = false
this.$socket.sendObj('machine.services.restart', { service: "moonraker" })
},
doServiceRestartWebcam: function() {
this.showMenu = false
this.$socket.sendObj('machine.services.restart', { service: "webcamd" })
},
doHostReboot: function() {
this.showMenu = false
this.$socket.sendObj('machine.reboot', { })
-211
View File
@@ -1,211 +0,0 @@
<style>
.button-min-width-auto {
min-width: auto !important;
}
</style>
<template>
<div>
<v-app-bar app elevate-on-scroll>
<v-app-bar-nav-icon @click.stop="naviDrawer = !naviDrawer"></v-app-bar-nav-icon>
<v-spacer></v-spacer>
<template v-if="debugMode" class="mr-3">
<span v-if="'jsHeapSizeLimit' in debugModeData.memory" class="mr-5">L: {{ formatFilesize(debugModeData.memory.jsHeapSizeLimit) }}</span>
<span v-if="'totalJSHeapSize' in debugModeData.memory" class="mr-5">T: {{ formatFilesize(debugModeData.memory.totalJSHeapSize) }}</span>
<span v-if="'usedJSHeapSize' in debugModeData.memory" class="mr-5">U: {{ formatFilesize(debugModeData.memory.usedJSHeapSize) }}</span>
</template>
<input type="file" ref="fileUploadAndStart" :accept="validGcodeExtensions.join(', ')" style="display: none" @change="uploadAndStart" />
<v-btn color="primary" class="mr-5 d-none d-sm-flex" v-if="isConnected && save_config_pending" :disabled="['printing', 'paused'].includes(printer_state)" :loading="loadings.includes['topbarSaveConfig']" @click="clickSaveConfig">{{ $t("App.SAVECONFIG") }}</v-btn>
<v-btn color="primary" class="mr-5 d-none d-sm-flex" v-if="isConnected && ['standby', 'complete'].includes(printer_state)" :loading="loadings.includes['btnUploadAndStart']" @click="btnUploadAndStart"><v-icon class="mr-2">mdi-file-upload</v-icon>{{ $t("App.UploadPrint") }}</v-btn>
<v-btn color="error" class="button-min-width-auto px-3" v-if="isConnected" :loading="loadings.includes['topbarEmergencyStop']" @click="clickEmergencyStop"><v-icon class="mr-sm-2">mdi-alert-circle-outline</v-icon><span class="d-none d-sm-flex">{{ $t("App.EmergencyStop") }}</span></v-btn>
<top-corner-menu></top-corner-menu>
</v-app-bar>
<v-snackbar
:timeout="-1"
:value="true"
fixed
right
bottom
dark
v-model="uploadSnackbar.status"
>
<strong>{{ $t("App.Uploading")}} {{ uploadSnackbar.filename }}</strong><br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s<br />
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
<template v-slot:action="{ attrs }">
<v-btn
color="red"
text
v-bind="attrs"
@click="cancelUpload"
style="min-width: auto;"
>
<v-icon class="0">mdi-close</v-icon>
</v-btn>
</template>
</v-snackbar>
</div>
</template>
<script>
import { mapState } from "vuex"
import TopCornerMenu from "@/components/TopCornerMenu"
import axios from "axios"
import { validGcodeExtensions } from "@/store/variables"
export default {
components: {
TopCornerMenu,
},
data: () => ({
uploadSnackbar: {
status: false,
filename: "",
percent: 0,
speed: 0,
total: 0,
cancelTokenSource: "",
lastProgress: {
time: 0,
loaded: 0
}
},
debugModeData: {
memory: {}
},
validGcodeExtensions: validGcodeExtensions
}),
created() {
if(this.debugMode) this.getMemoryUsage()
},
computed: {
...mapState({
debugMode: state => state.debugMode,
loadings: state => state.socket.loadings,
printer_state: state => state.printer.print_stats.state,
isConnected: state => state.socket.isConnected,
apiHost: state => state.socket.hostname,
apiPort: state => state.socket.port,
save_config_pending: state => state.printer.configfile.save_config_pending,
}),
naviDrawer: {
get() {
return this.$store.state.naviDrawer
},
set(newVal) {
return this.$store.dispatch("setNaviDrawer", newVal)
}
},
currentPage: {
get() {
return this.$route.fullPath
}
},
},
methods: {
clickEmergencyStop: function() {
this.$store.commit('socket/addLoading', { name: 'topbarEmergencyStop' });
this.$socket.sendObj('printer.emergency_stop', {}, 'socket/removeLoading',{ name: 'topbarEmergencyStop' });
},
clickSaveConfig: function() {
this.$store.commit('server/addEvent', { message: "SAVE_CONFIG", type: "command" });
this.$store.commit('socket/addLoading', { name: 'topbarSaveConfig' });
this.$socket.sendObj('printer.gcode.script', { script: "SAVE_CONFIG" }, 'socket/removeLoading', { name: 'topbarSaveConfig' });
},
btnUploadAndStart: function() {
this.$refs.fileUploadAndStart.click()
},
async uploadAndStart() {
if (this.$refs.fileUploadAndStart.files.length) {
this.$store.commit('socket/addLoading', { name: 'btnUploadAndStart' })
let successFiles = []
for (const file of this.$refs.fileUploadAndStart.files) {
const result = await this.doUploadAndStart(file)
successFiles.push(result)
}
this.$store.commit('socket/removeLoading', { name: 'gcodeUpload' })
for(const file of successFiles) {
this.$toast.success("Upload of "+file+" successful!")
}
this.$refs.fileUploadAndStart.value = ''
if (this.currentPage !== "/") await this.$router.push("/");
}
},
doUploadAndStart(file) {
let toast = this.$toast
let formData = new FormData()
let filename = file.name.replace(" ", "_")
this.uploadSnackbar.filename = filename
this.uploadSnackbar.status = true
this.uploadSnackbar.percent = 0
this.uploadSnackbar.speed = 0
this.uploadSnackbar.lastProgress.loaded = 0
this.uploadSnackbar.lastProgress.time = 0
formData.append('file', file, filename)
formData.append('print', true)
return new Promise(resolve => {
this.uploadSnackbar.cancelTokenSource = axios.CancelToken.source();
axios.post('//' + this.apiHost + ':' + this.apiPort + '/server/files/upload',
formData, {
cancelToken: this.uploadSnackbar.cancelTokenSource.token,
headers: { 'Content-Type': 'multipart/form-data' },
onUploadProgress: (progressEvent) => {
this.uploadSnackbar.percent = (progressEvent.loaded * 100) / progressEvent.total
if (this.uploadSnackbar.lastProgress.time) {
const time = progressEvent.timeStamp - this.uploadSnackbar.lastProgress.time
const data = progressEvent.loaded - this.uploadSnackbar.lastProgress.loaded
if (time) this.uploadSnackbar.speed = data / (time / 1000)
}
this.uploadSnackbar.lastProgress.time = progressEvent.timeStamp
this.uploadSnackbar.lastProgress.loaded = progressEvent.loaded
this.uploadSnackbar.total = progressEvent.total
}
}
).then((result) => {
this.uploadSnackbar.status = false
resolve(result.data.result)
}).catch(() => {
this.uploadSnackbar.status = false
this.$store.commit('socket/removeLoading', { name: 'btnUploadAndStart' })
toast.error("Cannot upload the file!")
})
})
},
cancelUpload: function() {
this.uploadSnackbar.cancelTokenSource.cancel()
this.uploadSnackbar.status = false
},
formatFilesize(fileSizeInBytes) {
let i = -1
let byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB']
do {
fileSizeInBytes = fileSizeInBytes / 1024
i++
} while (fileSizeInBytes > 1024)
return Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i]
},
getMemoryUsage() {
if ('memory' in performance) {
if ('jsHeapSizeLimit' in performance.memory)
this.debugModeData.memory.jsHeapSizeLimit = performance.memory.jsHeapSizeLimit
if ('totalJSHeapSize' in performance.memory)
this.debugModeData.memory.totalJSHeapSize = performance.memory.totalJSHeapSize
if ('usedJSHeapSize' in performance.memory)
this.debugModeData.memory.usedJSHeapSize = performance.memory.usedJSHeapSize
}
setTimeout(() => { this.getMemoryUsage() }, 1000)
},
}
}
</script>
+4 -4
View File
@@ -15,7 +15,7 @@
</style>
<template>
<v-dialog :value="application !== ''" persistent max-width="800" class="mx-0">
<v-dialog :value="application !== ''" persistent width="60%" max-width="800">
<v-card
dark
:loading="!complete"
@@ -25,7 +25,7 @@
</template>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-update</v-icon>{{ application !== null && application.substr(0, 8) === 'recover_' ? $t("App.Recovering") : $t("App.Updating")}} {{ application !== null && application.substr(0, 8) === 'recover_' ? application.substr(8) : application }}{{ complete ? $t("App.done") : " ..." }}</span>
<span class="subheading"><v-icon left>mdi-update</v-icon>Updating {{ application }}{{ complete ? " done!" : "..." }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="py-6">
@@ -45,7 +45,7 @@
color="primary"
>
<template #no-data>
<div class="py-2">{{ $t("App.Empty")}}</div>
<div class="py-2">empty</div>
</template>
<template #item="{ item }">
@@ -61,7 +61,7 @@
</v-data-table>
<v-row>
<v-col class="text-center pt-5">
<v-btn @click="close" :disabled="!complete" color="primary">{{ $t("App.Close")}}</v-btn>
<v-btn @click="close" :disabled="!complete" color="primary">close</v-btn>
</v-col>
</v-row>
</v-card-text>
@@ -1,97 +0,0 @@
<template>
<div id="historyAllPrintStatus" style="height: 250px; width: 100%;" v-observe-visibility="visibilityChanged"></div>
</template>
<script>
import { mapState } from 'vuex'
import * as echarts from 'echarts'
export default {
components: {
},
data: function() {
return {
chart : null,
chartOptions: {
darkMode: true,
animation: false,
grid: {
top: 10,
right: 0,
bottom: 0,
left: 10,
},
tooltip: {
trigger: 'item',
borderWidth: 0,
},
series: [{
type: 'pie',
data: [],
//radius: '50%',
avoidLabelOverlap: false,
radius: ['35%', '60%'],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}]
},
}
},
computed: {
...mapState({
}),
getAllPrintStatusArray: {
get: function() {
return this.$store.getters["server/history/getAllPrintStatusArray"]
}
},
},
methods: {
visibilityChanged (isVisible) {
if(isVisible && this.chart !== null) this.chart.resize()
},
createChart() {
if (document.getElementById("historyAllPrintStatus") && this.chart === null) {
this.chart = echarts.init(document.getElementById("historyAllPrintStatus"), null, { renderer: 'svg' })
this.chart.setOption(this.chartOptions)
this.updateChart()
} else
setTimeout(() => {
this.createChart()
}, 500)
},
updateChart() {
if (this.chart) {
const chartOptions = { series: this.chartOptions.series }
chartOptions.series[0].data = this.getAllPrintStatusArray
this.chart.setOption(chartOptions)
this.chart.resize()
}
},
},
created() {
window.addEventListener('resize', () => {
if (this.chart) this.chart.resize()
})
},
mounted: function() {
this.createChart()
},
watch: {
getAllPrintStatusArray: {
deep: true,
handler() {
this.updateChart()
}
},
}
}
</script>
@@ -1,158 +0,0 @@
<template>
<div id="historyFilamentUsage" style="height: 175px; width: 100%;" v-observe-visibility="visibilityChanged"></div>
</template>
<script>
import { mapState } from 'vuex'
import * as echarts from 'echarts'
export default {
components: {
},
data: function() {
let _this = this;
return {
chart : null,
chartOptions: {
darkMode: true,
animation: false,
grid: {
top: 25,
right: 40,
bottom: 30,
left: 40,
},
tooltip: {
trigger: 'axis',
borderWidth: 0,
formatter: (datasets) => {
let output = ""
if (datasets.length) {
output = datasets[0]['marker']
const outputTime = datasets[0]['axisValueLabel']
const a = outputTime.split(/[^0-9]/)
const outputTimeDate = new Date (a[0],a[1]-1, a[2])
const outputValue = Math.round(datasets[0]['data'][1] * 10) / 10
output += outputTimeDate.toLocaleDateString()+": "+outputValue+"m"
}
return output
}
},
xAxis: {
type: 'time',
min: new Date().setHours(0,0,0) - 60*60*24*14*1000,
max: new Date().setHours(0,0,0),
minInterval: 60*60*24*1000,
splitLine: {
show: true,
lineStyle: {
color: 'rgba(255, 255, 255, 0.06)',
},
},
axisLabel: {
color: 'rgba(255, 255, 255, 0.24)',
margin: 10,
},
},
yAxis: {
name: _this.$t('History.HistoryFilamentUsage'),
type: 'value',
minInterval: 10,
maxInterval: 100,
nameLocation: 'end',
nameGap: 5,
nameTextStyle: {
color: 'rgba(255, 255, 255, 0.24)',
align: 'left',
},
splitLine: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.12)',
},
},
axisLabel: {
color: 'rgba(255, 255, 255, 0.24)',
formatter: '{value}',
//rotate: 90,
//showMaxLabel: false,
showMinLabel: true,
margin: 5,
},
axisLine: {
show: true,
lineStyle: {
color: 'rgba(255, 255, 255, 0.12)',
},
}
},
color: ['#BDBDBD'],
series: [{
type: 'bar',
data: [],
showSymbol: false
}],
},
}
},
computed: {
...mapState({
}),
filamentUsageArray: {
get: function() {
return this.$store.getters["server/history/getFilamentUsageArray"]
}
},
},
methods: {
visibilityChanged (isVisible) {
if(isVisible && this.chart !== null) this.chart.resize()
},
createChart() {
if (document.getElementById("historyFilamentUsage") && this.chart === null) {
this.chart = echarts.init(document.getElementById("historyFilamentUsage"), null, { renderer: 'canvas' })
this.chart.setOption(this.chartOptions)
this.updateChart()
} else setTimeout(() => {
this.createChart()
}, 500)
},
updateChart() {
if (this.chart) {
const chartOptions = { series: this.chartOptions.series }
chartOptions.series[0].data = this.filamentUsageArray
//chartOptions.color = [this.getPrimaryColor()]
this.chart.setOption(chartOptions)
this.chart.resize()
}
},
getPrimaryColor() {
if (this.$vuetify.theme.isDark) {
return this.$vuetify.theme.themes.dark.primary
} else {
return this.$vuetify.theme.themes.light.primary
}
}
},
created() {
window.addEventListener('resize', () => {
if (this.chart) this.chart.resize()
})
},
mounted: function() {
this.createChart()
},
watch: {
filamentUsageArray: {
deep: true,
handler() {
this.updateChart()
}
},
}
}
</script>
@@ -1,141 +0,0 @@
<template>
<div id="historyPrinttimeAvg" style="height: 175px; width: 100%;" v-observe-visibility="visibilityChanged"></div>
</template>
<script>
import { mapState } from 'vuex'
import * as echarts from 'echarts'
export default {
components: {
},
data: function() {
let _this = this;
return {
chart : null,
chartOptions: {
darkMode: true,
animation: false,
grid: {
top: 25,
right: 40,
bottom: 30,
left: 40,
},
tooltip: {
trigger: 'item',
borderWidth: 0,
},
xAxis: {
type: 'category',
data: ['0-2h', '2-6h', '6-12h', '12-24h', '>24h'],
splitLine: {
show: true,
lineStyle: {
color: 'rgba(255, 255, 255, 0.06)',
},
},
axisLabel: {
color: 'rgba(255, 255, 255, 0.24)',
margin: 10,
},
},
yAxis: {
name: _this.$t('History.HistoryPrinttimeAVG'),
type: 'value',
minInterval: 10,
maxInterval: 100,
nameLocation: 'end',
nameGap: 5,
nameTextStyle: {
color: 'rgba(255, 255, 255, 0.24)',
align: 'left',
},
splitLine: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.12)',
},
},
axisLabel: {
color: 'rgba(255, 255, 255, 0.24)',
formatter: '{value}',
//rotate: 90,
//showMaxLabel: false,
showMinLabel: true,
margin: 5,
},
axisLine: {
show: true,
lineStyle: {
color: 'rgba(255, 255, 255, 0.12)',
},
}
},
series: [{
type: 'bar',
data: [],
itemStyle: {
color: '#BDBDBD'
}
}]
},
}
},
computed: {
...mapState({
}),
printtimeAvgArray: {
get: function() {
return this.$store.getters["server/history/getPrinttimeAvgArray"]
}
},
},
methods: {
visibilityChanged (isVisible) {
if(isVisible && this.chart !== null) this.chart.resize()
},
createChart() {
if (document.getElementById("historyPrinttimeAvg") && this.chart === null) {
this.chart = echarts.init(document.getElementById("historyPrinttimeAvg"), null, { renderer: 'canvas' })
this.chart.setOption(this.chartOptions)
this.updateChart()
} else setTimeout(() => {
this.createChart()
}, 500)
},
updateChart() {
if (this.chart) {
const chartOptions = { series: this.chartOptions.series }
chartOptions.series[0].data = this.printtimeAvgArray
//chartOptions.series[0].itemStyle.color = this.getPrimaryColor()
this.chart.setOption(chartOptions)
}
},
getPrimaryColor() {
if (this.$vuetify.theme.isDark) {
return this.$vuetify.theme.themes.dark.primary
} else {
return this.$vuetify.theme.themes.light.primary
}
}
},
created() {
window.addEventListener('resize', () => {
if (this.chart) this.chart.resize()
})
},
mounted: function() {
this.createChart()
},
watch: {
filamentUsageArray: {
deep: true,
handler() {
this.updateChart()
}
},
}
}
</script>
Loaded 100 of 200 files, more files were not shown because too many files have changed in this diff. Show more