Compare commits

..
247 Commits
Author SHA1 Message Date
Stefan Dej a9cc16911d update top corner menu icon
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 23:15:56 +02:00
Stefan Dej 9bd2f7bdf5 push version number to v1.6.0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 22:42:05 +02:00
Stefan Dej 83347fa35d bugfix: adjusting the home text in the control panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 22:25:24 +02:00
Stefan Dej 4eabaf3971 bugfix: rename reverse motion to invert motion in settings control panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 22:17:47 +02:00
Stefan Dej bb1b548db9 bugfix: fix typo in connection failed dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 22:14:16 +02:00
Stefan Dej f693e40fc1 bugfix: make in_progress history entries deletable
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 21:57:14 +02:00
Stefan Dej 38c4da2f43 bugfix: add moonraker inotify support (#282)
* bugfix: update to moonraker file_manager inotify events

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* feature: add root_update to enable gcode files with registered root directories

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 21:38:33 +02:00
Stefan Dej 0ed0975005 add translation for UV4L-MJPEG webcam service
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 20:56:23 +02:00
Stefan Dej 97c06c3061 feature: add UV4L-MJPEG webcam support
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-18 01:08:47 +02:00
Stefan Dej 76727a82dc bugfix: VUE_APP_REMOTE_MODE true/false doesnt work
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-17 21:29:21 +02:00
Stefan Dej d8aea8feb7 bugfix: reload metadata after move/rename gcode file (fix: #281)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-15 23:49:18 +02:00
Stefan Dej 57fbe9eb7c update npm packages
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-15 22:41:04 +02:00
Stefan Dej 600186e895 Merge remote-tracking branch 'origin/master' 2021-05-15 22:37:04 +02:00
dependabot[bot] f346db30fc build(deps): bump rexml from 3.2.4 to 3.2.5 in /docs (#273)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.4...v3.2.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-15 22:15:41 +02:00
lixxbox 598a7fe94f docs: stylesheets & escaping gcode (#279)
* docs: just a few stylesheet adjustments
	modified:   docs/_sass/color_schemes/mainsail.scss
	new file:   docs/assets/img/alert.svg
	new file:   docs/assets/img/info.svg
	new file:   docs/assets/img/success.svg
	new file:   docs/assets/img/warning.svg

* docs: escape gcodes, so that it can be rendered.
	modified:   necessary-cfg.md
2021-05-11 16:52:15 +02:00
Alex Zellner 6096704fe5 remove defaut_parameter from macro (#276)
* remove defaut_parameter

Change macros in preparation of the removal of default_parameter

* fix typo
2021-05-11 15:02:29 +02:00
lixxbox a0a3aa79ac docs: a simple recommendation for remote access (#277)
* docs: a simple recommendation for remote access
	new file:   quicktips/remote-access.md

* Update remote-access.md
2021-05-11 15:01:35 +02:00
Stefan Dej 1919aa6921 feature: add filament_motion_sensors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-05-10 18:09:06 +02:00
Stefan Dej 576e0eaada fix typos in Files.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-25 13:08:47 +02:00
Stefan Dej bf5851264d Merge remote-tracking branch 'origin/master' 2021-04-23 21:21:06 +02:00
Eike Ahmels 1cbe7d1164 save file with special characters (#269)
* image fix, grammar fix

* fixed suggestions bug, some cleanup from old editor, svg edge case

* FIX: save a file with special characters
2021-04-23 21:20:18 +02:00
Stefan Dej 84eed4c190 Merge remote-tracking branch 'origin/master' 2021-04-23 21:19:21 +02:00
Stefan Dej 11f46e8ec8 update vue.config.js
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-23 21:18:44 +02:00
Stefan Dej abb19a4ac9 feature: add FR to i18n
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-23 21:18:08 +02:00
Stefan Dej 5f0b628f6e bugfix: fix download in firefox (open new window)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-20 23:57:33 +02:00
Stefan Dej f6679effd9 feature: rename directory in ConfigFilesPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-20 23:25:41 +02:00
Stefan Dej ee4a07c9b2 rework history list dialog
add estimated filament weight to history list dialog

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-20 23:03:17 +02:00
Stefan Dej b49c57405c feature: multiple custom console filters
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-20 21:46:04 +02:00
Stefan Dej 71db147a19 bugfix: fix upper directory colspan number
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 23:21:36 +02:00
Stefan Dej 8a66899837 feature: store webcam settings in printer farm
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 21:48:31 +02:00
Stefan Dej 64d6dd596d bugfix: fix end time, when the job is in_progress in HistoryListPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 17:41:51 +02:00
Stefan Dej 091b78c569 fix missing space in upload dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 16:48:04 +02:00
Stefan Dej 5e09f52a79 feature: display filament weight metadata in gcode-files list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 12:59:05 +02:00
Stefan Dej ddbab8538a add titles to i18n in HistoryListPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 12:17:08 +02:00
Stefan Dej 2865a8f83a bugfix: fix icon issue in edit tool dialog of temperature_sensors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 12:07:35 +02:00
Stefan Dej b09615dc2f bugfix: fix translations in ToolsPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 12:02:47 +02:00
Stefan Dej 365ed2cda7 feature: display printername in SelectPrinterDialog.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-18 01:15:04 +02:00
Stefan Dej d578c9105c feature: limit requested_speed wiht current max_velocity
cleanup StatusPanel.vue

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-17 23:30:38 +02:00
Stefan Dej 3df44b05e2 feature: delete directory with content in config files panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-17 00:18:01 +02:00
Stefan Dej 025921e84a feature: delete directory with content in g-code files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-17 00:01:25 +02:00
lixxbox f0fbce478d In preparation for 1.5.0 (#264)
modified:   README.md
	new file:   docs/assets/img/quicktips/history/history.png
	modified:   docs/index.md
	new file:   docs/quicktips/history.md
2021-04-13 22:26:08 +02:00
Stefan Dej e814ea5169 fix webcam url in printer farm
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-13 22:10:43 +02:00
Stefan Dej 6825f6c39e push version number to v1.5.0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-13 19:18:56 +02:00
Stefan Dej 4728eb41b7 Merge remote-tracking branch 'origin/master' 2021-04-13 19:11:09 +02:00
Stefan Dej e88a64ecc5 fix table headers
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-13 19:10:51 +02:00
winbin 3b170b1e0d Update zh.json (#262)
update translation
2021-04-13 18:27:34 +02:00
lixxbox 263b2d245c docs: add credits (#263)
new file:   docs/_data/contributors.json
	new file:   docs/_data/licenses.json
	new file:   docs/credits.md
2021-04-13 18:27:21 +02:00
Stefan Dej 69f89ab162 fix table header translations on refresh
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-12 22:38:26 +02:00
Stefan Dej 0f47a452db fix alignment of m117 message and printing filename
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-12 22:26:06 +02:00
Eike Ahmels 96db215171 fixing a bug for longpress on ios/safari (#261)
* image fix, grammar fix

* fixed suggestions bug, some cleanup from old editor, svg edge case

* longpress ios fix
2021-04-12 20:11:27 +02:00
Stefan Dej 3dbca5ed02 delete old entries in RU and ZH.
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 22:09:08 +02:00
TheBugLebowsky 5bac81339f Create it.json (#259)
First version of the Italian translation
2021-04-11 22:06:36 +02:00
Stefan Dej 01641941ba Merge remote-tracking branch 'origin/master' 2021-04-11 22:02:33 +02:00
Stefan Dej f4e418b644 fix last german translations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 22:02:18 +02:00
Stefan Dej 56c09ac11f Revert "updated de local + deleted empty keys (#258)" (#260)
This reverts commit 16e7f03dce.
2021-04-11 21:59:00 +02:00
Lanovar 16e7f03dce updated de local + deleted empty keys (#258)
* language from js to json and new de language

* added translation to controlpanel, added translations

* de translation

fixed typo "rename"

* updated de translation

* fixes

* removed de.old

* updated de translation

* updated de local + deleted empty keys
2021-04-11 21:57:24 +02:00
Stefan Dej 9d24bd0c9d cleanup for tooltip filament usage
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 21:33:43 +02:00
Stefan Dej 36c2678b29 fix tooltip date for safari browser in history > statistics > filament usage
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 21:32:39 +02:00
Stefan Dej 451d2ec5ac fix control panel toggle buttons to full width
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 21:14:27 +02:00
Stefan Dej e9929cd1bf bugfix: fix shared_heater min_extrude_temp in control panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 18:47:28 +02:00
Emperor 95fb7d4f70 Update ru.json - i18n (#257) 2021-04-11 17:52:43 +02:00
CodingJustForRun afaff38265 Update hu.json (#256)
* Update hu.json

Adding missing components, fixing doubled names (english+hungarian leftovers).
This is ready for release. Other changes after 0.16 release and live test will be requested.

* 2021 04 11 after todays changes up to date

also deleted previous problems, corrected the langage marks place, deleted not needed lines
2021-04-11 15:38:14 +02:00
Stefan Dej 52089368d5 update language attributes in PresetsPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 13:55:59 +02:00
Stefan Dej 2761e7a3c4 fix console send command
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 13:30:36 +02:00
Stefan Dej 2d3e118d36 fix reprint button in status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 13:21:14 +02:00
Stefan Dej 542dd1d9c4 fix last translations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-11 00:13:14 +02:00
Lanovar b270c2ea29 update DE and sort all locales alphabetical (#254)
* language from js to json and new de language

* added translation to controlpanel, added translations

* de translation

fixed typo "rename"

* updated de translation

* fixes

* removed de.old

* updated de translation
2021-04-10 23:16:45 +02:00
Stefan Dej 1dbbedfee7 add missing translation in HistoryListPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-10 19:27:48 +02:00
Stefan Dej 86d45b8507 feature: add state avg to heaters and temperature_fans in ToolsPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-10 17:52:29 +02:00
Stefan Dej 87f85d9dee fix translation in heightmap (clear to titleClear)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-10 16:50:55 +02:00
Stefan Dej a28ca91f73 display only hours as max unit in total printtime
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-10 16:46:11 +02:00
Stefan Dej f970d0ae34 fix component name output in printer farm grid
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-10 14:23:31 +02:00
Stefan Dej c078471360 fix init load of history data
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-10 14:04:26 +02:00
Stefan Dej f7a3488d32 fix some translations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-10 00:03:09 +02:00
Stefan Dej 84130f2891 feature: display full version number of up-to-date components in the update manager
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-09 23:28:45 +02:00
Stefan Dej 00722ab1ca split extract sidebar and topbar from App.vue and display full klipper version number in sidebar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-09 23:16:46 +02:00
Stefan Dej fe05d5c489 feature: send an api e-stop instead of M112 gcode
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-09 21:00:28 +02:00
Stefan Dej 85770b8489 add names to page components & add dynamic page filter in navi
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-08 22:42:01 +02:00
Stefan Dej 09c370630f fix status panel linebreaks and add icon to M117 output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-08 21:13:04 +02:00
Stefan Dej 8d0add6d41 add missing language entry
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-08 21:10:47 +02:00
Stefan Dej b720d8319a fix translation typo
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-08 20:03:13 +02:00
Stefan Dej e0b87dc905 fix variable does not exist in miscellaneous panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-08 19:43:14 +02:00
Emperor 7e50c1fe86 fix typo 2021-04-08 18:57:09 +02:00
Emperor 8f6ccf320f add locals - Statistics Panel 2021-04-08 18:57:09 +02:00
Emperor db22c444e2 add locals - Temp Chart 2021-04-08 18:57:09 +02:00
Emperor dc977a7c32 add locals - Endstop Panel 2021-04-08 18:57:09 +02:00
Emperor 9e88b7125f Update de.json
fixed typo, too long
2021-04-08 18:57:09 +02:00
Emperor 3a3699e97d add locals - Misc Panel 2021-04-08 18:57:09 +02:00
Emperor 59fc47cdc7 Update de.json 2021-04-08 18:57:09 +02:00
Emperor d3fe17f451 Update ControlPanel.vue 2021-04-08 18:57:09 +02:00
Emperor d8eb7038e8 add local RU 2021-04-08 18:57:09 +02:00
Emperor be056e76b6 Update de.json 2021-04-08 18:57:09 +02:00
Emperor 09f4703e46 Update de.json 2021-04-08 18:57:09 +02:00
Emperor 60e51a471b Update de.json 2021-04-08 18:57:09 +02:00
Emperor 53eec45a1a Update de.json 2021-04-08 18:57:09 +02:00
Emperor dfa003624c Update de.json 2021-04-08 18:57:09 +02:00
Emperor 93f76ab6f4 add local DE 2021-04-08 18:57:09 +02:00
Eike Ahmels 55a82ed4a1 fixed suggestions bug, some cleanup from old editor, svg edge case 2021-04-08 18:54:13 +02:00
Stefan Dej c988b4fb2c fix margin bottom in standby state of status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-06 00:42:43 +02:00
Stefan Dej 3da9dd22b0 feature: redesign status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-06 00:28:18 +02:00
Stefan Dej 40ade2050f fix loading history entries (every 51 element lost)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-05 19:40:11 +02:00
Stefan Dej 336c82ad55 feature: add "Busy"-State, if the printer is in "standby" and execute some commands
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-05 18:55:37 +02:00
Stefan Dej b2a953f79a feature: add M117 output to status panel in standby mode
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-05 18:37:14 +02:00
Stefan Dej 31ababd23d bugfix: reverse Y in alternative joggle control doesnt work
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-05 18:36:11 +02:00
Stefan Dej 55800c3ba6 fix language select in settings > interface
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-05 00:27:16 +02:00
Stefan Dej f3110e3587 last change of history status chart
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-05 00:20:01 +02:00
Stefan Dej bab3680bc0 docs: fix localization guide
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-05 00:19:31 +02:00
Stefan Dej 8af31e5f36 docs: add Localization to development docs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-04 19:37:30 +02:00
Stefan Dej 5f40b23fa0 remove debug output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-04 14:30:32 +02:00
Stefan Dej 550fb88e63 change locales to json
feature: add i18n-extract to check locales

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-04 14:13:49 +02:00
CodingJustForRun 93ccb16b15 Adding hu.js language vocabulary
Hi based on the other language packages i made a hungarian 1.0 translation. 
I hope my fellow makers will enjoy it.
Cheers ;)
2021-04-04 13:46:58 +02:00
winbinandStefan Dej 099578333d Update zh.js (#248)
Co-authored-by: Stefan Dej <meteyou@gmail.com>
2021-04-04 13:44:34 +02:00
Stefan Dej 36a4fc2805 bugfix: show only one webcam in full screen mode instead of grid view
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-04 03:23:41 +02:00
Stefan Dej c17951b53d feature: add webcam support to printer farm
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-04 03:02:58 +02:00
Stefan Dej 88afe071e1 feature: grid view for multi webcam
feature: lazy loading for adaptive mjpegstreamer webcam

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-04 01:40:33 +02:00
Stefan Dej b3e9d85701 bugfix: destroy resize event before component destroy
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-03 22:11:51 +02:00
Stefan Dej 5a8a42cfdd feature: add debug mode to display ram usage
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-03 20:33:39 +02:00
Stefan Dej d47b578ddc bugfix: don't display "up-to-date" for unknown versions in update manager
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-03 15:44:46 +02:00
Stefan Dej cf7fa3009e bugfix: fix typo in connection dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-03 15:07:39 +02:00
Stefan Dej 433bba21fe fix margin top of alternative control feedrates
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-03 12:38:51 +02:00
Stefan Dej 54c3511572 add border to pi chart sections
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-02 23:35:26 +02:00
Stefan Dej a3c9a235e6 fix mixed tab and spaces in zh
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-02 23:34:47 +02:00
Stefan Dej 9d065acabd Merge remote-tracking branch 'origin/master' 2021-04-02 23:29:14 +02:00
Eike Ahmels 8eee177c6c image fix, grammar fix 2021-04-02 23:26:46 +02:00
winbin 9289dea1b0 edit translation file 2021-04-02 23:26:27 +02:00
Stefan Dej dfe2e8ccf6 fix history statistic starts starttime
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-02 23:19:43 +02:00
Stefan Dej 7735bedc51 round new tempchart values
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-02 23:08:43 +02:00
Stefan Dej 4eb157f1b0 Merge remote-tracking branch 'origin/master' 2021-04-02 23:08:23 +02:00
Stefan Dej ddd0c61c26 fix print history hide columns
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-04-02 23:08:15 +02:00
lixxbox f726ec987d Sneak Preview
new file:   assets/img/preview/Clippy2k.gif
	new file:   assets/img/preview/Mainsail2k.png
	new file:   assets/img/preview/Merlin2k.png
	new file:   assets/img/preview/Wallpaper2k.png
	new file:   assets/img/preview/logo2k.png
	new file:   assets/img/preview/menu2k.gif
	new file:   preview.md
2021-04-01 10:08:36 +02:00
Stefan Dej 08900f5442 close websocket every time (close/error...)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-31 23:19:15 +02:00
Stefan Dej 44dec77ad5 max event history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-31 23:18:47 +02:00
Stefan Dej 41c356bab2 fix typo connection failed
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-31 02:30:04 +02:00
Stefan Dej f1eca15c2d feature: add recovery function to update manager
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-31 02:25:34 +02:00
Stefan Dej cae2bfd2cb feature: add ip cam to webcams
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-31 01:32:58 +02:00
Stefan Dej fcbdd18d04 fix webcam panel bottom margin
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-31 01:17:17 +02:00
Stefan Dej b2f36b84d9 add loop load to print history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-31 00:59:11 +02:00
Stefan Dej b2055ed879 feature: add days to ETA (status panel + tab title)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-30 23:50:02 +02:00
Stefan Dej 9866030255 remove row status in gcode-files list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-30 22:00:28 +02:00
Stefan Dej b45497fb9c bugfix: tool input field as number (mobile input fix)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-30 21:26:46 +02:00
Stefan Dej 2d74a55026 fix double headlines in gcode-files (copy&paste typo)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-30 21:22:46 +02:00
Stefan Dej 5c2d37b59b fix thumbnail url for remote printers
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-30 21:00:37 +02:00
Stefan Dej b320ba4d60 init load of history data 14 days
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-30 00:15:04 +02:00
Stefan Dej b21231dbd3 disable debug output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-29 21:25:04 +02:00
Stefan Dej 761f08b87d optimize tempchart workflow
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-29 21:24:16 +02:00
Stefan Dej 0edb9dd1d2 fix type in en language file
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-29 20:16:24 +02:00
Stefan Dej c6e6794f0a fix webcam performance
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-29 01:02:56 +02:00
Eike Ahmels 51dda65a6e feature: new editor (#243)
* using monaco

* dirty

* wasm gcode editor

* fixing stuff, working now, except on ios

* style fixes

* ios editor fix

* removed comments

* multi language added
2021-03-29 00:27:59 +02:00
Stefan Dej 10ab6ec088 format framerate in webcam
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-29 00:26:21 +02:00
Stefan Dej 8af80463c3 fix webcam update state
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-29 00:00:47 +02:00
Stefan Dej cca33770fc cleanup multi webcam
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-28 22:58:27 +02:00
Stefan Dej 85de19ffeb fix chart colors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-28 22:57:44 +02:00
5528988566 Add Multiple Cams (#235)
* add webcam store methodes

* add experimentell multicam panel

* add dev stuff

* update getter

* add stream not found picture workspace

* update button label

* finish webcam setting panel

* remove remote mode, move navbar switch, add multicam support to webcam panel

* fix package-lock

* update url not working picture workspace

* add error messages, add icon to cams, remove picture workspace

* fix spacing

* fix layouts, fix forgotten boolean for nav, fix cam selection

* fix layout

* add url rule

* fix picture format

* replace index with name, add check if selected cam is still configured

* fix default value

* update database layout

* fix database entries

* fix cam url validation

* try other url check methode

* remove url validation

* add experimentell cam migration

* fix cam migration

Co-authored-by: eliteSCHW31N <business@eliteschw31n.de>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
2021-03-27 14:36:10 +01:00
lixxbox 133bd5598b docs: fix theme list 2021-03-27 14:23:03 +01:00
Stefan Dej fcf5d38dce Merge pull request #242 from meteyou/feature/history
Feature/history
2021-03-27 13:19:47 +01:00
Stefan Dej 94363d5810 fix tooltip output format of filament usage statistic
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-27 13:14:31 +01:00
Stefan Dej 451e4d2266 fix typo in i18n-en
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-27 12:48:46 +01:00
Stefan Dej d9e7ff9606 fix relative thumbnail url from files with subdirectories
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-27 12:48:34 +01:00
Stefan Dej ecae7345ea add history to i18n
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-27 01:15:26 +01:00
Stefan Dej fe32007582 Merge branch 'master' into feature/history
# Conflicts:
#	package-lock.json
#	package.json
#	src/components/panels/StatusPanel.vue
#	src/pages/Files.vue
#	src/store/gui/mutations.js
#	src/store/printer/getters.js
2021-03-27 00:39:01 +01:00
Stefan Dej 641fcfb854 add heightmap to translation
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-27 00:29:37 +01:00
Stefan Dej 3b5723d7ee bugfix merge i18n
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-26 23:18:02 +01:00
Stefan Dej f50bb9d3ae Merge pull request #199 from winbin/LanguageChange
Add Language Change
2021-03-26 22:42:05 +01:00
lixxbox 39c2b51faa modified: README.md 2021-03-26 22:08:22 +01:00
lixxbox 0d9af550a7 few changes to the docs 2021-03-26 22:08:22 +01:00
winbin 138b9a9e70 Merge branch 'master' of https://github.com/meteyou/mainsail into LanguageChange
# Conflicts:
#	src/components/panels/ControlPanel.vue
2021-03-26 09:35:18 +08:00
Stefan Dej 33d431bf3a fix dashboard for minimal klipper config
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-25 23:35:58 +01:00
Stefan Dej cd6edc33ea feature: add ETA to page title
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-25 23:35:58 +01:00
Stefan Dej 59543418b0 sync tooltips in history statistics
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-25 22:08:01 +01:00
Stefan Dej 7bbf77885d change icons and fix gcode files list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-25 22:05:54 +01:00
Stefan Dej 9fc16ffe43 update history status in gcode filelist
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-24 23:12:21 +01:00
Stefan Dej 721964cf2c fix tooltip in history allprintstatus chart
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-24 22:28:04 +01:00
Eike Ahmels 39eb654b96 gmoonraker_db_docker_fix 2021-03-24 11:02:01 +01:00
Stefan Dej f70a1813f4 history change chart colors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-23 22:01:53 +01:00
Stefan Dej 5eb30ce4bb update history status list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-23 21:59:53 +01:00
Stefan Dej 0b5188d187 update history to moonraker history totals
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-23 00:05:04 +01:00
Stefan Dej f943c24086 fix hide status col in gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-22 23:42:27 +01:00
Stefan Dej 98b8c5ce51 fix status estimated times
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-22 22:44:31 +01:00
winbin 4e06616611 change language file 2021-03-22 11:05:15 +08:00
winbin ecb88c7092 Merge branch 'master' of https://github.com/meteyou/mainsail into LanguageChange
# Conflicts:
#	src/components/panels/ControlPanel.vue
#	src/components/panels/MoonrakerFailedComponentsPanel.vue
#	src/components/panels/Settings/ControlPanel.vue
#	src/components/panels/Settings/UpdatePanel.vue
#	src/components/panels/StatusPanel.vue
2021-03-22 09:43:36 +08:00
Stefan Dej 5b24071b94 Merge branch 'master' into feature/history 2021-03-22 00:11:42 +01:00
Stefan Dej d643e63017 feature: add ETA to page title
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-22 00:11:27 +01:00
Stefan Dej e61274938d fix button group in history (1 chart must have)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 21:40:46 +01:00
Stefan Dej 63d55993b5 fix filament usage chart (add every day to dataset)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 20:38:22 +01:00
Stefan Dej 41f625efa5 move chip icons & colors to history module getters
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 20:17:32 +01:00
Stefan Dej ac963a7547 add icons to status chips and rename footer page text
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 19:46:03 +01:00
Stefan Dej 261794630d feature: add tooltip with object height on layer counter
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 17:04:19 +01:00
Stefan Dej 3972404c5a change icon, when file dont exist anymore in history list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 16:49:56 +01:00
Stefan Dej 1764a6ab4d Merge branch 'master' into feature/history 2021-03-21 14:06:58 +01:00
Stefan Dej 56b9172efa bugfix: also change hover color (emphasis) from dataset
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 14:06:05 +01:00
Stefan Dej 7ebb947a58 fix fileload in gcode-files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 03:09:03 +01:00
Stefan Dej 1486f1a1fd code cleanup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 02:23:40 +01:00
Stefan Dej 758932c4af Merge branch 'master' into feature/history
# Conflicts:
#	src/store/files/getters.js
2021-03-21 02:07:04 +01:00
Stefan Dej 0dfb06d656 bugfix: only accept data later than the last entry of the dataset (tempchart)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 02:05:41 +01:00
Stefan Dej d7125e0f8a feature: show/hide printed files in gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 01:57:59 +01:00
Stefan Dej 657f9392a2 add status in gcode files and code cleanup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 01:24:29 +01:00
Stefan Dej 95d3db49c5 add lazy loader to g-code files & history thumbnails
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-21 00:00:29 +01:00
Stefan Dej ed3aca4a8b fix history all status chart colors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-20 23:50:09 +01:00
eliteSCHW31N f147dc7810 add jpeg file extension 2021-03-20 20:44:50 +01:00
Eike Ahmels da61946bc1 so nobody asks about it anymore! 2021-03-20 20:44:26 +01:00
Stefan Dej 4260192e9c Merge branch 'master' into feature/history 2021-03-19 19:55:35 +01:00
Stefan Dej bbdbde3869 bugfix: pwm scale with uppercase fans
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-19 19:55:00 +01:00
Stefan Dej 0c10c178aa switch from base64 thumbnail in printer list to relative_path image
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-19 19:51:02 +01:00
Stefan Dej 4cdb0b1697 switch from github api to moonraker commits_behind for display commits between current commit and newest updateable commit
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-19 19:25:12 +01:00
Stefan Dej 8cb410b99e reverse compatibility for moonraker components/plugins
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-19 19:23:56 +01:00
Stefan Dej 31d898c6ef rename moonraker plugins in components (update for https://github.com/Arksine/moonraker/commit/1dc920019cba92bd329d6f407cdeb75398a2fd72)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-19 10:17:55 +01:00
Stefan Dej f43a6d9c37 fix chart sizes after page switch
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-19 10:08:31 +01:00
Stefan Dej 88d1debd73 add context menu of history jobs (details, reprint, delete)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-17 22:16:40 +01:00
Stefan Dej 286523a997 add detail dialog to history list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 23:32:35 +01:00
Stefan Dej 62f4a602d9 change history filament usage chart from line to bar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 20:46:38 +01:00
Stefan Dej 38fa2bd75b add notify_history_changed
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 20:34:53 +01:00
winbin 9db7638495 Merge branch 'master' of https://github.com/meteyou/mainsail into LanguageChange
# Conflicts:
#	src/store/gui/index.js
2021-03-16 09:29:02 +08:00
Stefan Dej 8e77e84a6e fix allPrintStatusChart in history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 00:59:36 +01:00
Stefan Dej 45f726159b Merge branch 'master' into feature/history 2021-03-16 00:51:09 +01:00
Stefan Dej 4119955399 change from base64 thumbnails to relative_path png thumbnails in Files.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 00:48:32 +01:00
Stefan Dej aa803727af feature: add restart webcamd button in top corner menu, when webcam is enabled in sidebar or dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 00:35:45 +01:00
Stefan Dej fafd10555d feature: add option to display ZOffsetPanel in Standby (fix #230)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 00:26:19 +01:00
Stefan Dej 322bbcb33b bugfix: remove remote printer (save array in moonraker db)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 00:15:48 +01:00
Stefan Dej 4224553710 first implementation of print history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-16 00:10:52 +01:00
winbin 76aec74e92 add translation 2021-03-15 16:55:31 +08:00
winbin 2ca5adecaa get language list 2021-03-15 16:40:52 +08:00
winbin 9a218c516e get language list 2021-03-15 16:33:32 +08:00
winbin ef732ebc87 Merge branch 'master' of https://github.com/meteyou/mainsail into LanguageChange
# Conflicts:
#	package.json
#	src/App.vue
#	src/components/ConnectingDialog.vue
#	src/components/SelectPrinterDialog.vue
#	src/components/panels/ControlPanel.vue
#	src/components/panels/ExtruderPanel.vue
#	src/components/panels/Settings/ConfigFilesPanel.vue
#	src/components/panels/Settings/ControlPanel.vue
#	src/components/panels/Settings/EndstopPanel.vue
#	src/components/panels/Settings/GeneralPanel.vue
#	src/components/panels/Settings/LimitsPanel.vue
#	src/components/panels/Settings/UpdatePanel.vue
#	src/components/panels/StatusPanel.vue
#	src/components/panels/ToolsPanel.vue
#	src/components/panels/WebcamPanel.vue
#	src/components/panels/ZOffsetPanel.vue
#	src/main.js
#	src/pages/Files.vue
#	src/store/gui/actions.js
#	src/store/gui/index.js
2021-03-15 16:17:56 +08:00
Stefan Dej b1e13bce28 change gcode files icon in navi
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-12 13:00:28 +01:00
Stefan Dej 9f7dc5effb bugfix: fix typo in connecting dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-12 10:12:09 +01:00
Stefan Dej 58c0aa216d bugfix: fix margins in temperature datasets options dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-12 00:37:33 +01:00
Stefan Dej 914a4baad7 bugfix: fix tempchart resize error after switching page
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-12 00:34:02 +01:00
Stefan Dej 3b86377b58 bugfix: fix updateManager enable_repo_debug doesn't work
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 23:24:56 +01:00
Stefan Dej 4e7f7310dd bugfix: fix updateManager commits dialog responsive mobile view
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 17:11:35 +01:00
Stefan Dej 40293a22d1 feature: add probe to endstop status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 16:12:54 +01:00
Stefan Dej bc458a11af bugfix: fix margin between panels in settings > interface
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 15:53:50 +01:00
Stefan Dej 68a957b43b bugfix: fix responsive view on mobile devices of presets editing dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 15:31:30 +01:00
Stefan Dej 21056ff01a bugfix: fix max width of update dialog on mobile devices
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 14:58:11 +01:00
Stefan Dej a940115e4e bugfix: fix migrate presets from .mainsail.json to moonraker db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 14:54:02 +01:00
Stefan Dej 8ab94747eb change position of min/max in bed_mesh profile tooltip
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-03-11 14:35:16 +01:00
winbin 518af48843 Merge branch 'master' of https://github.com/meteyou/mainsail into LanguageChange
# Conflicts:
#	src/components/charts/TempChart.vue
#	src/components/panels/ToolsPanel.vue
2021-02-23 01:10:14 +08:00
winbin fcc298a8a3 Filament 2021-02-18 13:50:31 +08:00
winbin 3bc80e4a97 Z Baby Stepping 2021-02-18 13:48:10 +08:00
winbin baa7cb2d19 endstop translate 2021-02-18 13:39:43 +08:00
winbin ecc406788d Add translation 2021-02-16 00:03:56 +08:00
winbin d9a4fab307 Modify language storage mode 2021-02-15 22:51:56 +08:00
winbin f51d35d101 set language 2021-02-15 22:19:24 +08:00
winbin f04802a1c0 Merge branch 'master' of https://github.com/meteyou/mainsail into LanguageChange 2021-02-15 19:14:41 +08:00
winbin 0a32aaa875 change translate 2021-02-15 19:14:17 +08:00
winbin 6bfb20766a bugfix: refresh metadata on refresh directory 2021-02-12 23:02:29 +08:00
winbin 616c7aa7f4 edit page 2021-02-11 01:21:32 +08:00
winbin d6cd1c81fb Add The Language Change And Chinese 2021-02-11 00:57:36 +08:00
175 changed files with 18213 additions and 5029 deletions

No files matched your search

+8 -1
View File
@@ -5,4 +5,11 @@ VUE_APP_HOSTNAME=printer.local
VUE_APP_PORT=7125
# reconnect interval in ms
VUE_APP_RECONNECT_INTERVAL=5000
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
+2
View File
@@ -14,6 +14,8 @@ package-lock.json
*.local
docker/gcode
docker/logs
docker/moonraker
docker/config/**/*
docker/config/*.cfg
docker/config/*.conf
docker/config/.mainsail.json
+33 -4
View File
@@ -1,12 +1,39 @@
# 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)
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.
## 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)
For support join our discord server -> [https://discord.gg/skWTwTD](https://discord.gg/skWTwTD)
## 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)
## Credit, sources and inspiration
* [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
@@ -16,3 +43,5 @@ For support join our discord server -> [https://discord.gg/skWTwTD](https://disc
* [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)
+590
View File
@@ -0,0 +1,590 @@
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
@@ -0,0 +1 @@
{"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
+1
View File
@@ -9,6 +9,7 @@ services:
- ./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
+10
View File
@@ -0,0 +1,10 @@
CNAME
# Ignore metadata generated by Jekyll
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Ignore folders generated by Bundler
.bundle/
vendor/
+34
View File
@@ -0,0 +1,34 @@
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
@@ -0,0 +1,277 @@
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
+5
View File
@@ -6,6 +6,11 @@ logo: "/assets/img/logo-mainsail.png"
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
@@ -0,0 +1,506 @@
[
{
"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
@@ -0,0 +1,152 @@
{
"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
@@ -0,0 +1,2 @@
name,author,repo
Dracula,steadyjaw,dracula-mainsail-theme
1 name author repo
2 Dracula steadyjaw dracula-mainsail-theme
+50 -39
View File
@@ -1,49 +1,60 @@
$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 {
margin: 32px 0px;
padding: 25px;
position: relative;
border-radius: 3px;
width: 100%;
display: block;
background-color: #f5f6fa;
border-left: 4px solid;
border-color: rgb(38, 203, 124);
border-left-color: rgb(38, 203, 124);
}
.info {
margin: 32px 0px;
padding: 25px;
position: relative;
border-radius: 3px;
width: 100%;
display: block;
background-color: #f5f6fa;
border-left: 4px solid;
border-color: rgb(56, 132, 255);
border-left-color: rgb(56, 132, 255);
}
.warning {
margin: 32px 0px;
padding: 25px;
position: relative;
border-radius: 3px;
width: 100%;
display: block;
background-color: #f5f6fa;
border-left: 4px solid;
border-color: rgb(247, 125, 5);
border-left-color: rgb(247, 125, 5);
}
.alert {
border-left-color: rgb(255, 70, 66);
}
.alert {
margin: 32px 0px;
padding: 25px;
position: relative;
border-radius: 3px;
width: 100%;
display: block;
background-color: #f5f6fa;
border-left: 4px solid;
border-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;
}
+1
View File
@@ -0,0 +1 @@
<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>

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

+1
View File
@@ -0,0 +1 @@
<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>

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+1
View File
@@ -0,0 +1 @@
<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>

After

Width:  |  Height:  |  Size: 376 B

+1
View File
@@ -0,0 +1 @@
<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>

After

Width:  |  Height:  |  Size: 406 B

+41
View File
@@ -0,0 +1,41 @@
---
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 %}
-15
View File
@@ -1,15 +0,0 @@
---
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
@@ -1,22 +0,0 @@
---
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)
### coming soon
- change primary color (all blue buttons atm)
-16
View File
@@ -1,16 +0,0 @@
---
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
@@ -1,22 +0,0 @@
---
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)
+40
View File
@@ -0,0 +1,40 @@
---
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
```
+5 -3
View File
@@ -12,17 +12,19 @@ description: >-
{{ page.description }}
## Setup
Make a copy of the '.env.development.local.example' and omit the .example.
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
VUE_APP_HOSTNAME=192.168.0.15 #for your printer with moonraker running on 192.168.0.15
#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>
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
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

+31 -8
View File
@@ -5,19 +5,42 @@ nav_order: 1
has_children: false
---
# Welcome to the Mainsail docs!
# 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 }
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}
[Getting Started](/setup){: .btn .btn-primary }
[GitHub](https://github.com/meteyou/mainsail){: .btn}{:target="_blank"}
[Release Notes](https://github.com/meteyou/mainsail/releases){: .btn}{:target="_blank"}
For support join us on Discord, or open an issue on Github.
## 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.
[Discord](https://discord.gg/skWTwTD){: .btn}{:target="_blank"}
[Github](https://github.com/meteyou/mainsail){: .btn}{:target="_blank"}
[GitHub Issues](https://github.com/meteyou/mainsail/issues){: .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"}
## Screenshots
![Dashboard](assets/img/screenshot.png)
However, we would also like to ask you to support the regular contributors.
{: .info}
+34 -17
View File
@@ -8,59 +8,73 @@ 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}
G1 E-{e} F2100
G1 Z{z_safe}
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
@@ -70,11 +84,13 @@ 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
@@ -87,3 +103,4 @@ gcode:
BASE_BED_MESH_CALIBRATE
#after the original gcode
```
{% endraw %}
+42
View File
@@ -0,0 +1,42 @@
---
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)
+24
View File
@@ -0,0 +1,24 @@
---
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.
+2 -1
View File
@@ -4,7 +4,8 @@ title: Quicktips
nav_order: 10
has_children: true
permalink: /quicktips
description: quick tips, without much explanation
description: >-
quick tips, without much explanation
---
# {{ page.title }}
+86
View File
@@ -0,0 +1,86 @@
---
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 -2
View File
@@ -4,13 +4,13 @@ title: Slicer Upload
parent: Quicktips
permalink: /quicktips/slicer-upload
description: >-
It is possible to upload G-Code from your slicer and have it start printing.
You can upload your sliced G-Code from within 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.
add the following to your `moonraker.conf` and restart Moonraker.
```
[octoprint_compat]
+1
View File
@@ -2,6 +2,7 @@
layout: default
title: Remote Mode
nav_order: 4
nav_exclude: true
has_children: false
permalink: /remotemode
description: >-
+23 -4
View File
@@ -7,8 +7,27 @@ permalink: /setup/
has_toc: false
---
# Setup Guides
There are different ways to install Mainsail.
- [MainsailOS (recommend)](mainsail-os.md)
- [Kiauh (Klipper Install And Update Helper)](kiauh.md)
- [Manual Setup](manual-setup/index.md)
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}
+6 -5
View File
@@ -1,14 +1,15 @@
---
layout: default
title: Kiauh Guide
title: KIAUH
parent: Setup Guides
nav_order: 2
has_children: false
permalink: /setup/kiauh
---
# Installing Mainsail with Kiauh
# Installing Mainsail with KIAUH
Kiauh is a tool that helps you install or upgrade Klipper, Moonraker, Mainsail and various
other extensions easily and comfortably.
[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.
For more informations and get to the guide click [here](https://github.com/th33xitus/kiauh).
![](../assets/img/setup/kiauh.png)
For more information and get to the guide click [here](https://github.com/th33xitus/kiauh).
+1 -1
View File
@@ -1,6 +1,6 @@
---
layout: default
title: MainsailOS Guide
title: MainsailOS
parent: Setup Guides
nav_order: 1
has_children: false
+4 -1
View File
@@ -1,9 +1,12 @@
---
layout: default
title: Manual Setup Guide
title: Manual Setup
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.
+6 -5
View File
@@ -1,14 +1,14 @@
---
layout: default
title: Klipper
parent: Manual Setup Guide
parent: Manual Setup
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,8 +55,9 @@ 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.
+6 -7
View File
@@ -1,16 +1,15 @@
---
layout: default
title: Mainsail
parent: Manual Setup Guide
parent: Manual Setup
grand_parent: Setup Guides
nav_order: 5
permalink: /setup/manual-setup/mainsail
---
# Mainsail
## Mainsail
### Install webserver & reverse proxy (nginx)
## 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:
@@ -140,7 +139,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
@@ -151,14 +150,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:
+10 -7
View File
@@ -1,15 +1,15 @@
---
layout: default
title: Moonraker
parent: Manual Setup Guide
parent: Manual Setup
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,9 +22,10 @@ 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.
@@ -33,8 +34,9 @@ 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]
@@ -55,7 +57,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
@@ -64,6 +66,7 @@ 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,27 +1,35 @@
---
layout: default
title: Operating System
parent: Manual Setup Guide
parent: Manual Setup
grand_parent: Setup Guides
nav_order: 2
permalink: /setup/manual-setup/operating-systen
description: >-
Manual Setup: tips and recommendations for the OS.
---
## Operation System
> ⚠️ **Please don't use an OctoPi image!**
It can cause unforeseeable events, like rips in the space-time continuum. So be aware!
# {{ 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 }
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.
**Moonraker requires Python 3.7 or greater,** verify that your distribution's Python 3 packages meet this requirement.
{: .alert }
```
python3 --version
+39
View File
@@ -0,0 +1,39 @@
---
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}
@@ -1,12 +1,12 @@
---
layout: default
title: Custom CSS
parent: Customizing
nav_order: 99
permalink: /customizing/custom-css
parent: Theming
nav_order: 30
permalink: /theming/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.
+38
View File
@@ -0,0 +1,38 @@
---
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
@@ -0,0 +1,14 @@
---
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
@@ -0,0 +1,43 @@
---
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
@@ -0,0 +1,17 @@
---
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
@@ -0,0 +1,43 @@
---
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 %}
+5432 -2919
View File
File diff suppressed because it is too large. Load diff
+39 -23
View File
@@ -1,52 +1,68 @@
{
"name": "mainsail",
"version": "1.4.0",
"version": "1.6.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 .."
"build.zip": "cd ./dist && zip -r mainsail.zip ./ && cd ..",
"i18n-extract": "vue-i18n-extract use-config"
},
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.8.2",
"echarts": "^5.0.2",
"echarts-gl": "^2.0.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",
"object-assign-deep": "^0.4.0",
"onigasm": "^2.2.5",
"plotly.js": "^1.58.4",
"prismjs": "^1.23.0",
"semver": "^7.3.4",
"semver": "^7.3.5",
"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-prism-editor": "^1.2.2",
"vue-resource": "^1.5.1",
"vue-resource": "^1.5.2",
"vue-simple-upload": "^0.1.6",
"vue-toast-notification": "^0.6.0",
"vuetify": "^2.4.5",
"vue-toast-notification": "^0.6.1",
"vuetify": "^2.5.0",
"vuex": "^3.6.2"
},
"devDependencies": {
"@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",
"@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",
"babel-eslint": "^10.1.0",
"css-loader": "^5.0.1",
"eslint": "^7.17.0",
"eslint-plugin-vue": "^7.4.1",
"css-loader": "^5.2.4",
"eslint": "^7.26.0",
"eslint-plugin-vue": "^7.9.0",
"generate-file-webpack-plugin": "^1.0.1",
"sass": "^1.32.4",
"sass-loader": "^10.1.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",
"sw-precache-webpack-plugin": "^1.0.0",
"vue-cli-plugin-route": "0.0.7",
"vue-cli-plugin-vuetify": "^2.0.9",
"vue-router": "^3.4.9",
"vue-cli-plugin-vuetify": "^2.4.0",
"vue-i18n-extract": "^1.2.3",
"vue-loader": "^16.2.0",
"vue-router": "^3.5.1",
"vue-template-compiler": "^2.6.12",
"vuetify-loader": "^1.7.2"
},
+698
View File
@@ -0,0 +1,698 @@
{
"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
@@ -0,0 +1,79 @@
{
"$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"
}
@@ -0,0 +1,550 @@
{
"$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.
+15 -390
View File
@@ -2,92 +2,16 @@
@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';
.button-min-width-auto {
min-width: auto !important;
}
#page-container {
max-width: 1400px;
}
#sidebarVersions {
position: absolute;
left: 0;
bottom: 0;
}
@import './assets/styles/updateManager.scss';
</style>
<template>
<v-app>
<vue-headful :title="getTitle" />
<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>
<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="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">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>
<sidebar></sidebar>
<topbar></topbar>
<v-main id="content" v-bind:style="{background:mainBackground,backgroundAttachment:'fixed',backgroundSize: 'cover',backgroundRepeat: 'no-repeat'}">
<v-scroll-y-transition>
@@ -99,31 +23,6 @@
</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>
@@ -131,77 +30,38 @@
</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 PrinterSelecter from "@/components/PrinterSelecter"
import axios from "axios"
import { validGcodeExtensions } from "@/store/variables"
import Sidebar from "@/components/Sidebar"
import Topbar from "@/components/Topbar"
export default {
props: {
source: String,
},
components: {
PrinterSelecter,
ConnectingDialog,
SelectPrinterDialog,
UpdateDialog,
TopCornerMenu,
Sidebar,
Topbar,
},
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
}
},
validGcodeExtensions: validGcodeExtensions
}),
created () {
this.$vuetify.theme.dark = true;
this.boolNaviHeightmap = (typeof(this.config.bed_mesh) !== "undefined");
this.$vuetify.theme.dark = true
},
computed: {
currentPage: function() {
return this.$route.fullPath;
},
...mapState({
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,
language: state => state.gui.general.language,
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() {
@@ -213,16 +73,6 @@ export default {
return this.$store.getters["files/getFavicons"]
}
},
sidebarLogo: {
get() {
return this.$store.getters["files/getSidebarLogo"]
}
},
sidebarBackground: {
get() {
return this.$store.getters["files/getSidebarBackground"]
}
},
mainBackground: {
get() {
return this.$store.getters["files/getMainBackground"]
@@ -233,102 +83,8 @@ 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']")
@@ -378,9 +134,12 @@ export default {
favicon16.href = favicon16Default
favicon32.href = favicon32Default
}
}
},
},
watch: {
language(){
this.$i18n.locale = this.language;
},
print_percent() {
this.drawFavicon(this.print_percent);
},
@@ -389,9 +148,6 @@ 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")
@@ -415,134 +171,3 @@ 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>
+12
View File
@@ -1,3 +1,15 @@
body {
background: #121212;
}
#page-container {
max-width: 1400px;
}
.overflowingContentWidgets {
visibility: hidden;
}
.fill-width {
width: 100%;
}
+112
View File
@@ -0,0 +1,112 @@
#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
@@ -0,0 +1,15 @@
@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);
}
}
+9
View File
@@ -15,3 +15,12 @@
-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;
}
+3 -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>Connecting<span v-if="connectingFailed"> failed</span><span v-if="isConnecting"> to {{ parseInt(port) !== 80 && port !== "" ? hostname+":"+port : hostname }}</span>
<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>
</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>Cannot not connect to {{ parseInt(port) !== 80 && port !== "" ? hostname+":"+port : hostname }}.</p>
<p>{{ $t("App.CannotNotConnectTo") }} {{ parseInt(port) !== 80 && port !== "" ? hostname+":"+port : hostname }}.</p>
<div class="text-center">
<v-btn @click="reconnect" color="primary">try again</v-btn>
<v-btn @click="reconnect" color="primary">{{ $t("App.TryAgain") }}</v-btn>
</div>
</v-card-text>
</v-card>
+2 -2
View File
@@ -12,7 +12,7 @@
role="button"
>
<v-icon>mdi-view-dashboard-outline</v-icon>
<span class="nav-title">Printers</span>
<span class="nav-title">{{ $t("App.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">Printers</v-btn>
<v-btn class="col" color="primary" @click="switchToPrinters">{{ $t("App.Printers")}}</v-btn>
</v-item-group>
</li>
+34 -37
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">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-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-toolbar-title>
<v-spacer></v-spacer>
<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 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 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>Cannot not connect to {{ parseInt(port) !== 80 ? hostname+":"+port : hostname }}.</p>
<p>{{ $t("App.CannotNotConnectTo") }} {{ parseInt(port) !== 80 ? hostname+":"+port : hostname }}.</p>
<div class="text-center">
<v-btn @click="switchToChangePrinter" color="white" outlined class="mr-3">change printer</v-btn>
<v-btn @click="reconnect" color="primary">try again</v-btn>
<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>
</div>
</v-card-text>
<v-card-text class="pt-3" v-if="!isConnecting && dialogAddPrinter.bool">
@@ -63,7 +63,7 @@
class="middle"
@click="addPrinter"
>
add printer
{{ $t("App.AddPrinter") }}
</v-btn>
</v-col>
</v-row>
@@ -111,7 +111,7 @@
class="middle"
@click="updatePrinter"
>
update printer
{{ $t("App.UpdatePrinter") }}
</v-btn>
</v-col>
</v-row>
@@ -119,7 +119,7 @@
</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 this['farm/getPrinters']" v-bind:key="index">
<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 align="center">
<v-col class="col-auto pr-0">
@@ -133,21 +133,21 @@
v-if="!printer.socket.isConnecting"
>mdi-{{ printer.socket.isConnected ? 'checkbox-marked-circle' : 'cancel' }}</v-icon>
</v-col>
<v-col>{{ printer.socket.hostname }}{{ parseInt(printer.socket.port) !== 80 ? ":"+printer.socket.port : "" }}</v-col>
<v-col>{{ getPrinterName(printer._namespace) }}</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="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 mb-0">You can find more details at <a href="https://docs.mainsail.xyz/remotemode" target="_blank">docs.mainsail.xyz/remotemode</a>.</p>
<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>
</v-col>
</v-row>
<v-row>
<v-col class="text-center mt-0">
<v-btn @click="dialogAddPrinter.bool = true">add printer</v-btn>
<v-btn @click="dialogAddPrinter.bool = true">{{ $t("App.AddPrinter") }}</v-btn>
</v-col>
</v-row>
</v-container>
@@ -187,30 +187,27 @@ export default {
hostname: state => state.socket.hostname,
port: state => state.socket.port,
}),
...mapGetters([
"farm/countPrinters",
"farm/getPrinters"
]),
...mapGetters({
countPrinters: "farm/countPrinters",
printers: "farm/getPrinters",
getPrinterName: "farm/getPrinterName",
}),
...mapActions({
readPrinters: "farm/readStoredPrinters"
}),
currentUrl: {
get() {
return "http://"+window.location.hostname+(window.location.port !== 80 && window.location.port !== '' ? ':'+window.location.port : '')
}
currentUrl() {
return "http://"+window.location.hostname+(window.location.port !== 80 && window.location.port !== '' ? ':'+window.location.port : '')
},
showCorsInfo: {
get() {
if (this["farm/countPrinters"]) {
for (const [ ,printer] of Object.entries(this["farm/getPrinters"])) {
if (!printer.socket.isConnected) return true
}
return false
showCorsInfo() {
if (this.countPrinters) {
for (const [ ,printer] of Object.entries(this.printers)) {
if (!printer.socket.isConnected) return true
}
return true
return false
}
return true
}
},
methods: {
@@ -227,8 +224,8 @@ export default {
this.$store.dispatch("farm/savePrinters")
},
editPrinter(index) {
this.dialogEditPrinter.hostname = this["farm/getPrinters"][index].socket.hostname
this.dialogEditPrinter.port = this["farm/getPrinters"][index].socket.port
this.dialogEditPrinter.hostname = this.printers[index].socket.hostname
this.dialogEditPrinter.port = this.printers[index].socket.port
this.dialogEditPrinter.index = index
this.dialogEditPrinter.bool = true
},
@@ -264,7 +261,7 @@ export default {
this.$store.dispatch('socket/setData', { connectingFailed: false })
},
checkPrinters() {
Object.entries(this['farm/getPrinters']).forEach(([key, printer]) => {
Object.entries(this.printers).forEach(([key, printer]) => {
if (!printer.socket.isConnected && !printer.socket.isConnecting) {
this.$store.dispatch('farm/'+key+'/connect')
}
+131
View File
@@ -0,0 +1,131 @@
<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>
+24 -12
View File
@@ -7,30 +7,33 @@
<template>
<v-menu bottom left :offset-y="true" :close-on-content-click="false" v-model="showMenu">
<template v-slot:activator="{ on, attrs }">
<v-btn dark icon v-bind="attrs" v-on="on">
<v-icon>mdi-dots-vertical</v-icon>
<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>
</template>
<v-list dense>
<v-subheader class="" style="height: auto;">Klipper Control</v-subheader>
<v-subheader class="" style="height: auto;">{{ $t("App.KlipperControl") }}</v-subheader>
<v-list-item class="minheight30" link @click="doRestart()">
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>Restart</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>{{ $t("App.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>Firmware Restart</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>{{ $t("App.FirmwareRestart") }}</v-list-item-title>
</v-list-item>
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">Restart Services</v-subheader>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.RestartServices") }}</v-subheader>
<v-list-item class="minheight30" link @click="doServiceRestartKlipper()">
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>Klipper</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-restart</v-icon>{{ $t("App.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>Moonraker</v-list-item-title>
<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>
<div v-if="countPowerDevices">
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">Power Devices</v-subheader>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.PowerDevices") }}</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 }}
@@ -38,12 +41,12 @@
</v-list-item>
</div>
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">Host Control</v-subheader>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.HostControl") }}</v-subheader>
<v-list-item class="minheight30" link @click="doHostReboot()">
<v-list-item-title><v-icon class="mr-2" small>mdi-power</v-icon>Reboot</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-power</v-icon>{{ $t("App.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>Shutdown</v-list-item-title>
<v-list-item-title><v-icon class="mr-2" small>mdi-power</v-icon>{{ $t("App.Shutdown") }}</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
@@ -70,6 +73,11 @@ 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) {
@@ -97,6 +105,10 @@ 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
@@ -0,0 +1,211 @@
<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 width="60%" max-width="800">
<v-dialog :value="application !== ''" persistent max-width="800" class="mx-0">
<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>Updating {{ application }}{{ complete ? " done!" : "..." }}</span>
<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>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="py-6">
@@ -45,7 +45,7 @@
color="primary"
>
<template #no-data>
<div class="py-2">empty</div>
<div class="py-2">{{ $t("App.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">close</v-btn>
<v-btn @click="close" :disabled="!complete" color="primary">{{ $t("App.Close")}}</v-btn>
</v-col>
</v-row>
</v-card-text>
@@ -0,0 +1,97 @@
<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>
@@ -0,0 +1,158 @@
<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>
@@ -0,0 +1,141 @@
<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>
+26 -22
View File
@@ -12,11 +12,11 @@ export default {
},
data: function() {
let _this = this;
return {
chart : null,
timerChart: '',
timerDataset: '',
isVisable: true,
isVisible: true,
chartOptions: {
darkMode: true,
animation: false,
@@ -118,7 +118,7 @@ export default {
},
yAxis: [
{
name: 'Temperature [°C]',
name: _this.$t('Panels.ToolsPanel.TemperaturesInChart'),
type: 'value',
min: 0,
max: 300,
@@ -186,7 +186,6 @@ export default {
computed: {
...mapState({
intervalChartUpdate: state => state.gui.tempchart.intervalChartUpdate,
intervalDatasetUpdate: state => state.gui.tempchart.intervalDatasetUpdate,
boolTempchart: state => state.gui.dashboard.boolTempchart,
}),
maxHistory: {
@@ -230,21 +229,16 @@ export default {
if (document.getElementById("tempchart") && this.chart === null) {
this.chart = echarts.init(document.getElementById("tempchart"), null, {renderer: 'canvas'})
this.chart.setOption(this.chartOptions)
this.updateChart()
} else setTimeout(() => {
this.createChart()
}, 500)
}, 1000)
},
visibilityChanged (isVisible) {
this.isVisible = isVisible
if(isVisible) this.chart.resize()
},
},
created() {
this.timerChart = setInterval(() => {
updateChart() {
if (
this.chart &&
this.boolTempchart &&
this.isVisable
this.isVisible
) {
this.chart.setOption({
series: this.series,
@@ -300,19 +294,29 @@ export default {
}
}],
})
setTimeout(() => {
this.updateChart()
}, this.intervalChartUpdate)
}
}, this.intervalChartUpdate)
this.timerDataset = setInterval(() => {
this.$store.dispatch("printer/tempHistory/updateDatasets")
}, this.intervalDatasetUpdate)
window.addEventListener('resize', () => {
if (this.chart) this.chart.resize()
})
},
visibilityChanged (isVisible) {
this.isVisible = isVisible
if(isVisible && this.chart !== null) this.chart.resize()
if(this.chart !== null) this.updateChart()
},
resize() {
this.chart?.resize();
}
},
created() {
window.addEventListener('resize', this.resize)
},
mounted: function() {
this.createChart()
},
beforeDestroy() {
window.removeEventListener('resize', this.resize);
}
}
</script>
+86 -55
View File
@@ -25,20 +25,28 @@
<v-card class="mb-4" v-if="['standby', 'paused', 'complete', 'error'].includes(printer_state)">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-gamepad</v-icon>Controls</span>
<span class="subheading"><v-icon left>mdi-gamepad</v-icon>{{ $t('Panels.ControlPanel.Controls') }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-menu :offset-y="true" :close-on-content-click="false" title="Setup Controls" left>
<v-menu :offset-y="true" :close-on-content-click="false" :title="$t('Panels.ControlPanel.SetupControls')" left>
<template v-slot:activator="{ on, attrs }">
<v-btn small class="px-2 minwidth-0" color="grey darken-3" v-bind="attrs" v-on="on"><v-icon small>mdi-cog</v-icon></v-btn>
</template>
<v-list>
<v-list-item class="minHeight36">
<v-checkbox v-model="useCross" class="mt-0" hide-details label="Alternate controls"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36" v-if="useCross">
<v-checkbox v-model="reverseZ" class="mt-0" hide-details label="Invert Z"></v-checkbox>
<v-checkbox v-model="useCross" class="mt-0" hide-details :label="$t('Panels.ControlPanel.AlternateControls')"></v-checkbox>
</v-list-item>
<template v-if="useCross">
<v-list-item class="minHeight36">
<v-checkbox v-model="reverseX" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertX')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox v-model="reverseY" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertY')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox v-model="reverseZ" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertZ')"></v-checkbox>
</v-list-item>
</template>
</v-list>
</v-menu>
</v-toolbar>
@@ -51,7 +59,7 @@
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Y+'+stepsReversed[selectedCrossStep], feedrateXY)"
@click="doSendMove('Y'+(reverseY ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
@@ -70,7 +78,7 @@
<v-col cols="3" class="p-rel">
<v-btn class="btnMinWidthAuto fill-width p-abs" style="top: -50%; width: calc(100% - 8px);"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('X-'+stepsReversed[selectedCrossStep], feedrateXY)"
@click="doSendMove('X'+(!reverseX ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-left</v-icon>
</v-btn>
@@ -78,7 +86,7 @@
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Y-'+stepsReversed[selectedCrossStep], feedrateXY)"
@click="doSendMove('Y'+(!reverseY ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
@@ -86,7 +94,7 @@
<v-col cols="3" class="p-rel">
<v-btn class="btnMinWidthAuto fill-width p-abs" style="top: -50%; width: calc(100% - 8px);"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('X+'+stepsReversed[selectedCrossStep], feedrateXY)"
@click="doSendMove('X'+(reverseX ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-right</v-icon>
</v-btn>
@@ -94,7 +102,7 @@
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Z'+(reverseZ ? '+' : '-')+stepsReversed[selectedCrossStep], feedrateZ)"
@click="doSendMove('Z'+(!reverseZ ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateZ)"
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
@@ -114,7 +122,7 @@
>
<div class="d-flex align-center">
<v-icon>mdi-home</v-icon>
<span class="ml-1">ALL</span>
<span class="ml-1"><span class="d-none d-sm-inline">{{ $t('Panels.ControlPanel.Home') }} </span>{{ $t('Panels.ControlPanel.ALL') }}</span>
</div>
</v-btn>
</v-col>
@@ -127,7 +135,7 @@
height="30"
:loading="loadings.includes('qgl')"
@click="doQGL"
>QGL</v-btn>
>{{ $t('Panels.ControlPanel.QGL') }}</v-btn>
<v-btn v-if="'z_tilt' in config"
class="btnMinWidthAuto flex-grow-1 px-0"
tile
@@ -136,7 +144,7 @@
height="30"
:loading="loadings.includes('zTilt')"
@click="doZtilt"
>Z-Tilt</v-btn>
>{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn>
</v-col>
</v-row>
<v-row dense class="">
@@ -148,7 +156,7 @@
:color="homedAxes.includes('x') ? 'primary' : 'warning'"
@click="doHomeX"
>
X
{{ $t('Panels.ControlPanel.X') }}
</v-btn>
</v-col>
<v-col cols="4" class="flex-grow-1">
@@ -159,7 +167,7 @@
:color="homedAxes.includes('y') ? 'primary' : 'warning'"
@click="doHomeY"
>
Y
{{ $t('Panels.ControlPanel.Y') }}
</v-btn>
</v-col>
<v-col cols="4" class="flex-grow-1">
@@ -170,14 +178,14 @@
:color="homedAxes.includes('z') ? 'primary' : 'warning'"
@click="doHomeZ"
>
Z
{{ $t('Panels.ControlPanel.Z') }}
</v-btn>
</v-col>
</v-row>
</div>
</v-col>
</v-row>
<v-row no-gutters>
<v-row no-gutters class="mt-3">
<v-col class="col-12">
<v-btn-toggle v-if="stepsReversed.length > 0" dense no-gutters style="flex-wrap: nowrap; width: 100%;" v-model="selectedCrossStep">
<v-btn dense class="btnMinWidthAuto flex-grow-1 px-0" v-for="steps of stepsReversed" :key="'all-'+steps">
@@ -185,8 +193,8 @@
</v-btn>
</v-btn-toggle>
<div class="font-weight-bold warning rounded pa-2" v-else>
Please configure steps<br>
<router-link style="color: white;" to="/settings/interface">Settings > Interface > Control</router-link>
{{ $t('Panels.ControlPanel.PleaseConfigureSteps') }}<br>
<router-link style="color: white;" to="/settings/interface">{{ $t('Panels.ControlPanel.SettingsInterfaceControl') }}</router-link>
</div>
</v-col>
</v-row>
@@ -194,70 +202,72 @@
<template v-else>
<v-row no-gutters>
<v-col class="col-12 pb-0 text-center">
<v-btn small @click="doHome" :loading="loadings.includes('homeAll')" :color="homedAxes.includes('xyz') ? 'primary' : 'warning'"><v-icon class="mr-1">mdi-home</v-icon><span class="d-none d-sm-inline">Home </span>all</v-btn>
<v-btn small @click="doQGL" :loading="loadings.includes('qgl')" color="primary" class="ml-2" v-if="'quad_gantry_level' in config">QGL</v-btn>
<v-btn small @click="doZtilt" :loading="loadings.includes('zTilt')" color="primary" class="ml-2" v-if="'z_tilt' in config">Z Tilt</v-btn>
<v-btn small @click="doHome" :loading="loadings.includes('homeAll')" :color="homedAxes.includes('xyz') ? 'primary' : 'warning'"><v-icon class="mr-1">mdi-home</v-icon><span class="d-none d-sm-inline">{{ $t('Panels.ControlPanel.Home') }} </span>{{ $t('Panels.ControlPanel.ALL') }}</v-btn>
<v-btn small @click="doQGL" :loading="loadings.includes('qgl')" color="primary" class="ml-2" v-if="'quad_gantry_level' in config">{{ $t('Panels.ControlPanel.QGL') }}</v-btn>
<v-btn small @click="doZtilt" :loading="loadings.includes('zTilt')" color="primary" class="ml-2" v-if="'z_tilt' in config">{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn>
</v-col>
</v-row>
<v-row no-gutters class="mt-2">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters mx-auto" style="flex-wrap: nowrap;" >
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('X-'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsorted" v-bind:key="'x-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeX" :color="homedAxes.includes('x') ? 'primary' : 'warning'" :loading="loadings.includes('homeX')" class="font-weight-bold btnHomeAxis">X</v-btn>
<v-btn @click="doHomeX" :color="homedAxes.includes('x') ? 'primary' : 'warning'" :loading="loadings.includes('homeX')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.X') }}</v-btn>
<v-btn @click="doSendMove('X+'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsortedReverse" v-bind:key="'x+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row no-gutters class="mt-3">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters mx-auto" style="flex-wrap: nowrap;" >
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('Y-'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsorted" v-bind:key="'y-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeY" :color="homedAxes.includes('y') ? 'primary' : 'warning'" :loading="loadings.includes('homeY')" class="font-weight-bold btnHomeAxis">Y</v-btn>
<v-btn @click="doHomeY" :color="homedAxes.includes('y') ? 'primary' : 'warning'" :loading="loadings.includes('homeY')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.Y') }}</v-btn>
<v-btn @click="doSendMove('Y+'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsortedReverse" v-bind:key="'y+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row no-gutters class="mt-3">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters mx-auto" style="flex-wrap: nowrap;" >
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('Z-'+steps, feedrateZ)" class="btnMinWidthAuto col" v-for="steps of stepsZsorted" v-bind:key="'z-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeZ" :color="homedAxes.includes('z') ? 'primary' : 'warning'" :loading="loadings.includes('homeZ')" class="font-weight-bold btnHomeAxis">Z</v-btn>
<v-btn @click="doHomeZ" :color="homedAxes.includes('z') ? 'primary' : 'warning'" :loading="loadings.includes('homeZ')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.Z') }}</v-btn>
<v-btn @click="doSendMove('Z+'+steps, feedrateZ)" class="btnMinWidthAuto col" v-for="steps of stepsZsortedReverse" v-bind:key="'z+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
</template>
<v-row>
<v-col class="pa-0">
<v-divider></v-divider>
</v-col>
</v-row>
<v-row class="">
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: .9em">Feed amount [mm]</span>
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%;" >
<v-btn v-for="amount in feedamountsSorted" v-bind:key="amount" @click="setFeedAmount(amount)" dense :class="(amount === currentFeedAmount ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ amount }}</v-btn>
</v-btn-toggle>
</v-col>
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: .9em">Feedrate [mm/s]</span>
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%;" >
<v-btn v-for="rate in feedratesSorted" v-bind:key="rate" @click="setFeedrate(rate)" dense :class="(rate === currentFeedRate ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ rate }}</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row class="">
<v-col class="col text-center pt-0">
<v-btn small @click="sendRetract()" class="mx-3" :loading="loadings.includes('btnRetract')" :disabled="!this['printer/getExtrudePossible']"><v-icon small class="mr-1">mdi-arrow-up-bold</v-icon> Retract</v-btn>
<v-btn small @click="sendDetract()" class="mx-3" :loading="loadings.includes('btnDetract')" :disabled="!this['printer/getExtrudePossible']"><v-icon small class="mr-1">mdi-arrow-down-bold</v-icon> Extrude</v-btn>
</v-col>
</v-row>
<template v-if="existsExtruder">
<v-row>
<v-col class="pa-0">
<v-divider></v-divider>
</v-col>
</v-row>
<v-row class="">
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: .9em">{{ $t("Panels.ControlPanel.FeedAmountIn") }} [mm]</span>
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%;" >
<v-btn v-for="amount in feedamountsSorted" v-bind:key="amount" @click="setFeedAmount(amount)" dense :class="(amount === currentFeedAmount ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ amount }}</v-btn>
</v-btn-toggle>
</v-col>
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: .9em">{{ $t("Panels.ControlPanel.FeedrateIn") }} [mm/s]</span>
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%;" >
<v-btn v-for="rate in feedratesSorted" v-bind:key="rate" @click="setFeedrate(rate)" dense :class="(rate === currentFeedRate ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ rate }}</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row class="">
<v-col class="col text-center pt-0">
<v-btn small @click="sendRetract()" class="mx-3" :loading="loadings.includes('btnRetract')" :disabled="!this['printer/getExtrudePossible']"><v-icon small class="mr-1">mdi-arrow-up-bold</v-icon> {{ $t('Panels.ControlPanel.Retract') }}</v-btn>
<v-btn small @click="sendDetract()" class="mx-3" :loading="loadings.includes('btnDetract')" :disabled="!this['printer/getExtrudePossible']"><v-icon small class="mr-1">mdi-arrow-down-bold</v-icon> {{ $t('Panels.ControlPanel.Extrude') }}</v-btn>
</v-col>
</v-row>
</template>
</v-container>
</v-card>
<v-card class="mt-6" v-if="this['printer/getMacros'].length > 0">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-code-tags</v-icon>Macros</span>
<span class="subheading"><v-icon left>mdi-code-tags</v-icon>{{ $t('Panels.ControlPanel.Macros') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-container>
@@ -316,6 +326,22 @@
'printer/getMacros',
'printer/getExtrudePossible',
]),
reverseX: {
get() {
return this.$store.state.gui.dashboard.control.reverseX;
},
set(reverseX) {
return this.$store.dispatch('gui/setSettings', { dashboard: { control: { reverseX } } })
}
},
reverseY: {
get() {
return this.$store.state.gui.dashboard.control.reverseY;
},
set(reverseY) {
return this.$store.dispatch('gui/setSettings', { dashboard: { control: { reverseY } } })
}
},
reverseZ: {
get() {
return this.$store.state.gui.dashboard.control.reverseZ;
@@ -374,6 +400,11 @@
])).sort((a, b) => a-b)
}
},
existsExtruder: {
get() {
return 'extruder' in this.$store.state.printer
}
},
feedamountsSorted: {
get() {
return [...this.feedamounts].sort((a,b) => { return b-a })
+92 -1
View File
@@ -3,6 +3,22 @@
opacity: 0.6;
filter: grayscale(70%);
}
.webcamContainer,
.webcamContainer .vue-load-image,
.webcamContainer>div,
.webcamContainer img {
position: absolute !important;
top: 0; left: 0; right: 0; bottom: 0;
}
.webcamContainer img {
height: 100%;
}
.webcamContainer .webcamFpsOutput {
display: none;
}
</style>
<template>
@@ -15,12 +31,49 @@
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-printer-3d</v-icon>{{ printer_name }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-item-group v-if="this.printer_webcams.length">
<v-menu :offset-y="true" title="Webcam">
<template v-slot:activator="{ on, attrs }">
<v-btn small class="px-2 minwidth-0" color="grey darken-3" v-bind="attrs" v-on="on">
<v-icon small>mdi-webcam</v-icon>
<v-icon small>mdi-menu-down</v-icon>
</v-btn>
</template>
<v-list dense class="py-0">
<v-list-item link @click="currentCamName = 'off'">
<v-list-item-icon class="mr-0">
<v-icon small>mdi-webcam-off</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.FarmPrinterPanel.WebcamOff') }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item v-for="webcam of this.printer_webcams" v-bind:key="webcam.index" link @click="currentCamName = webcam.name">
<v-list-item-icon class="mr-0">
<v-icon small>{{ webcam.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title v-text="webcam.name"></v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list>
</v-menu>
</v-item-group>
</v-toolbar>
<v-img
height="200px"
:src="printer_image"
class="d-flex align-end"
>
<div v-if="currentCamName !== 'off' && currentWebcam" class="webcamContainer">
<template v-if="'service' in currentWebcam && currentWebcam.service === 'mjpegstreamer'">
<webcam-mjpegstreamer :cam-settings="currentWebcam"></webcam-mjpegstreamer>
</template>
<template v-if="'service' in currentWebcam && currentWebcam.service === 'mjpegstreamer-adaptive'">
<webcam-mjpegstreamer-adaptive :cam-settings="currentWebcam" :printer-url="printerUrl"></webcam-mjpegstreamer-adaptive>
</template>
</div>
<v-card-title class="white--text py-2" style="background-color: rgba(0,0,0,0.3); backdrop-filter: blur(3px);">
<v-row>
<v-col class="col-auto pr-0 d-flex align-center" style="width: 58px">
@@ -48,10 +101,18 @@
<script>
import { mapState } from 'vuex'
import Mjpegstreamer from "@/components/webcams/Mjpegstreamer"
import MjpegstreamerAdaptive from "@/components/webcams/MjpegstreamerAdaptive"
export default {
components: {
"webcam-mjpegstreamer": Mjpegstreamer,
"webcam-mjpegstreamer-adaptive": MjpegstreamerAdaptive,
},
data: function() {
return {
}
},
props: {
printer: {
@@ -63,11 +124,28 @@
...mapState({
remoteMode: state => state.socket.remoteMode
}),
printerUrl() {
const thisUrl = window.location.href.split("/")
const protocol = thisUrl[0]
let url = protocol+"//"+this.printer.socket.hostname
if (80 !== parseInt(this.printer.socket.webPort)) url += ":"+this.printer.socket.webPort
return url
},
isCurrentPrinter: {
get() {
return this.$store.getters["farm/"+this.printer._namespace+"/isCurrentPrinter"]
}
},
currentCamName: {
get() {
return this.$store.getters["farm/"+this.printer._namespace+"/getSetting"]('currentCamName', 'off')
},
set(newVal) {
return this.$store.dispatch("farm/"+this.printer._namespace+"/setSettings", { currentCamName: newVal })
}
},
printer_name: {
get() {
return this.$store.getters["farm/"+this.printer._namespace+"/getPrinterName"]
@@ -102,6 +180,19 @@
get() {
return this.$store.getters["farm/"+this.printer._namespace+"/getPrinterPreview"]
}
},
printer_webcams: {
get() {
return this.$store.getters["farm/"+this.printer._namespace+"/getPrinterWebcams"]
}
},
currentWebcam: {
get() {
const currentCam = this.printer_webcams.find(webcam => webcam.name === this.currentCamName)
if (currentCam) return currentCam
return false
}
}
},
methods: {
@@ -111,7 +202,7 @@
},
changePrinter() {
if (this.remoteMode) this.$store.dispatch('changePrinter', { printer: this.printer._namespace })
else window.location.href = "//"+this.printer.socket.hostname+(parseInt(this.printer.socket.webPort) !== 80 ? ':'+this.printer.socket.webPort : '')
else window.location.href = this.printerUrl
},
reconnectPrinter() {
this.$store.dispatch("farm/"+this.printer._namespace+"/reconnect")
+553
View File
@@ -0,0 +1,553 @@
<template>
<div>
<v-card>
<v-card-title>
{{ $t('History.PrintHistory') }}
<v-spacer class="d-none d-sm-block"></v-spacer>
<v-item-group class="v-btn-toggle my-5 my-sm-0 col-12 col-sm-auto px-0 py-0" name="controllers">
<v-btn :title="$t('History.TitleRefreshHistory')" class="flex-grow-1" @click="refreshHistory"><v-icon>mdi-refresh</v-icon></v-btn>
<v-menu :offset-y="true" :close-on-content-click="false" title="Setup current list">
<template v-slot:activator="{ on, attrs }">
<v-btn class="flex-grow-1" :title="$t('History.TitleSettings')" v-bind="attrs" v-on="on"><v-icon class="">mdi-cog</v-icon></v-btn>
</template>
<v-list>
<v-list-item class="minHeight36" v-for="header of configHeaders" v-bind:key="header.key">
<v-checkbox class="mt-0" hide-details v-model="header.visible" @change="changeColumnVisible(header.value)" :label="header.text"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
</v-item-group>
</v-card-title>
<v-card-text>
<v-text-field
v-model="search"
append-icon="mdi-magnify"
:label="$t('History.Search')"
single-line
hide-details
></v-text-field>
</v-card-text>
<v-data-table
:items="jobs"
class="files-table"
:headers="filteredHeaders"
:options="options"
:custom-sort="sortFiles"
:sort-by.sync="sortBy"
:sort-desc.sync="sortDesc"
:items-per-page.sync="countPerPage"
:footer-props="{
itemsPerPageText: $t('History.Jobs'),
itemsPerPageAllText: $t('History.AllJobs'),
itemsPerPageOptions: [10,25,50,100,-1]
}"
item-key="name"
:search="search"
:custom-filter="advancedSearch"
mobile-breakpoint="0">
<template slot="items" slot-scope="props">
<td v-for="header in filteredHeaders" v-bind:key="header.text">{{ props.item[header.value] }}</td>
</template>
<template #no-data>
<div class="text-center">{{ $t('History.Empty') }}</div>
</template>
<template #item="{ index, item }">
<tr
:key="`${index} ${item.filename}`"
v-longpress:600="(e) => showContextMenu(e, item)"
@contextmenu="showContextMenu($event, item)"
@click="clickRow(item)"
:class="'file-list-cursor user-select-none '+(item.exists ? '' : 'text--disabled')"
>
<td class="pr-0 text-center" style="width: 32px;">
<template v-if="!item.exists">
<v-icon class="text--disabled">mdi-file-cancel</v-icon>
</template>
<template v-else-if="getSmallThumbnail(item) && getBigThumbnail(item)">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<vue-load-image>
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" v-bind="attrs" v-on="on" />
<v-progress-circular slot="preloader" indeterminate color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
<span><img :src="getBigThumbnail(item)" width="250" /></span>
</v-tooltip>
</template>
<template v-else-if="getSmallThumbnail(item)">
<vue-load-image>
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" />
<v-progress-circular slot="preloader" indeterminate color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
<template v-else>
<v-icon>mdi-file</v-icon>
</template>
</td>
<td class=" ">{{ item.filename }}</td>
<td class="text-center">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<v-icon small :color="getStatusColor(item.status)" :disabled="!item.exists">{{ getStatusIcon(item.status) }}</v-icon>
</span>
</template>
<span>{{ item.status.replaceAll("_", " ") }}</span>
</v-tooltip>
</td>
<td class=" " v-if="headers.find(header => header.value === 'size').visible">{{ 'size' in item.metadata && item.metadata.size ? formatFilesize(item.metadata.size) : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'modified').visible">{{ 'modified' in item.metadata && item.metadata.modified ? formatDate(item.metadata.modified) : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'start_time').visible">{{ item.start_time > 0 ? formatDate(item.start_time) : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'end_time').visible">{{ item.end_time > 0 ? formatDate(item.end_time) : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'estimated_time').visible">{{ 'estimated_time' in item.metadata && item.metadata.estimated_time ? formatPrintTime(item.metadata.estimated_time) : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'print_duration').visible">{{ item.print_duration > 0 ? formatPrintTime(item.print_duration) : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'total_duration').visible">{{ item.total_duration > 0 ? formatPrintTime(item.total_duration) : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'filament_total').visible">{{ 'filament_total' in item.metadata && item.metadata.filament_total ? item.metadata.filament_total+' mm' : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'filament_used').visible">{{ item.filament_used ? item.filament_used.toFixed()+' mm' : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'first_layer_extr_temp').visible">{{ 'first_layer_extr_temp' in item.metadata && item.metadata.first_layer_extr_temp ? item.metadata.first_layer_extr_temp+' °C' : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'first_layer_bed_temp').visible">{{ 'first_layer_bed_temp' in item.metadata && item.metadata.first_layer_bed_temp ? item.metadata.first_layer_bed_temp+' °C' : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'first_layer_height').visible">{{ 'first_layer_height' in item.metadata && item.metadata.first_layer_height ? item.metadata.first_layer_height+' mm' : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'layer_height').visible">{{ 'layer_height' in item.metadata && item.metadata.layer_height ? item.metadata.layer_height+' mm' : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'object_height').visible">{{ 'object_height' in item.metadata && item.metadata.object_height ? item.metadata.object_height+' mm' : '--' }}</td>
<td class=" " v-if="headers.find(header => header.value === 'slicer').visible">
{{ 'slicer' in item.metadata && item.metadata.slicer ? item.metadata.slicer : '--' }}
<small v-if="'slicer_version' in item.metadata && item.metadata.slicer_version"><br />{{ item.metadata.slicer_version }}</small>
</td>
</tr>
</template>
</v-data-table>
</v-card>
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
<v-list>
<v-list-item @click="clickRow(contextMenu.item)">
<v-icon class="mr-1">mdi-text-box-search</v-icon> {{ $t('History.Details') }}
</v-list-item>
<v-list-item @click="startPrint(contextMenu.item)" v-if="contextMenu.item.exists" :disabled="is_printing">
<v-icon class="mr-1">mdi-printer</v-icon> {{ $t('History.Reprint') }}
</v-list-item>
<v-list-item @click="deleteJob(contextMenu.item)">
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('History.Delete') }}
</v-list-item>
</v-list>
</v-menu>
<v-dialog v-model="detailsDialog.boolShow" :max-width="600" :max-height="500" scrollable>
<v-card dark>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-update</v-icon>{{ $t('History.JobDetails') }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn small class="minwidth-0" color="grey darken-3" @click="detailsDialog.boolShow = false"><v-icon small>mdi-close-thick</v-icon></v-btn>
</v-toolbar>
<v-card-text class="pt-5" style="height: 350px;">
<v-row>
<v-col>{{ $t('History.Filename') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.filename }}</v-col>
</v-row>
<template v-if="'metadata' in detailsDialog.item && 'size' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.Filesize') }}</v-col>
<v-col class="text-right">{{ formatFilesize(detailsDialog.item.metadata.size) }}</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'modified' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.LastModified') }}</v-col>
<v-col class="text-right">{{ formatDate(detailsDialog.item.metadata.modified) }}</v-col>
</v-row>
</template>
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.Status') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.status }}</v-col>
</v-row>
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.StartTime') }}</v-col>
<v-col class="text-right">{{ formatDate(detailsDialog.item.start_time) }}</v-col>
</v-row>
<template v-if="'end_time' in detailsDialog.item && detailsDialog.item.end_time > 0">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.EndTime') }}</v-col>
<v-col class="text-right">{{ formatDate(detailsDialog.item.end_time) }}</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'estimated_time' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.EstimatedTime') }}</v-col>
<v-col class="text-right">{{ formatPrintTime(detailsDialog.item.metadata.estimated_time) }}</v-col>
</v-row>
</template>
<template v-if="detailsDialog.item.print_duration > 0">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.PrintDuration') }}</v-col>
<v-col class="text-right">{{ formatPrintTime(detailsDialog.item.print_duration) }}</v-col>
</v-row>
</template>
<template v-if="detailsDialog.item.total_duration > 0">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.TotalDuration') }}</v-col>
<v-col class="text-right">{{ formatPrintTime(detailsDialog.item.total_duration) }}</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'filament_total' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.EstimatedFilamentWeight') }}</v-col>
<v-col class="text-right">{{ Math.round(detailsDialog.item.metadata.filament_weight_total*100)/100 }} g</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'filament_total' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.EstimatedFilament') }}</v-col>
<v-col class="text-right">{{ Math.round(detailsDialog.item.metadata.filament_total) }} mm</v-col>
</v-row>
</template>
<template v-if="detailsDialog.item.filament_used > 0">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.FilamentUsed') }}</v-col>
<v-col class="text-right">{{ Math.round(detailsDialog.item.filament_used) }} mm</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'first_layer_extr_temp' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.FirstLayerExtTemp') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.metadata.first_layer_extr_temp }} °C</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'first_layer_bed_temp' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.FirstLayerBedTemp') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.metadata.first_layer_bed_temp }} °C</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'first_layer_height' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.FirstLayerHeight') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.metadata.first_layer_height }} mm</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'layer_height' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.LayerHeight') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.metadata.layer_height }} mm</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'object_height' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.ObjectHeight') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.metadata.object_height }} mm</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'slicer' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.Slicer') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.metadata.slicer }}</v-col>
</v-row>
</template>
<template v-if="'metadata' in detailsDialog.item && 'slicer_version' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.SlicerVersion') }}</v-col>
<v-col class="text-right">{{ detailsDialog.item.metadata.slicer_version }}</v-col>
</v-row>
</template>
</v-card-text>
</v-card>
</v-dialog>
</div>
</template>
<script>
import {mapGetters, mapState} from 'vuex'
import VueLoadImage from 'vue-load-image'
export default {
components: {
'vue-load-image': VueLoadImage
},
data() {
return {
boolAllData: false,
search: '',
sortBy: 'start_time',
sortDesc: true,
selected: [],
hideHeaderColums: [],
options: {
},
contextMenu: {
shown: false,
touchTimer: undefined,
x: 0,
y: 0,
item: {}
},
detailsDialog: {
item: {},
boolShow: false,
}
}
},
computed: {
...mapState({
jobs: state => state.server.history.jobs,
}),
...mapGetters( {
is_printing: "is_printing",
getStatusIcon: "server/history/getPrintStatusChipIcon",
getStatusColor: "server/history/getPrintStatusChipColor",
}),
headers() {
const headers = [
{ text: '', value: '', align: 'left', configable: false, visible: true, filterable: false },
{ text: this.$t("History.Filename"), value: 'filename', align: 'left', configable: false, visible: true },
{ text: '', value: 'status', align: 'left', configable: false, visible: true, filterable: false },
{ text: this.$t("History.Filesize"), value: 'size', align: 'left', configable: true, visible: true },
{ text: this.$t("History.LastModified"), value: 'modified', align: 'left', configable: true, visible: true },
{ text: this.$t("History.StartTime"), value: 'start_time', align: 'left', configable: true, visible: true },
{ text: this.$t("History.EndTime"), value: 'end_time', align: 'left', configable: true, visible: true },
{ text: this.$t("History.EstimatedTime"), value: 'estimated_time', align: 'left', configable: true, visible: true },
{ text: this.$t("History.PrintTime"), value: 'print_duration', align: 'left', configable: true, visible: true },
{ text: this.$t("History.TotalTime"), value: 'total_duration', align: 'left', configable: true, visible: true },
{ text: this.$t("History.FilamentCalc"), value: 'filament_total', align: 'left', configable: true, visible: true },
{ text: this.$t("History.FilamentUsed"), value: 'filament_used', align: 'left', configable: true, visible: true },
{ text: this.$t("History.FirstLayerExtTemp"), value: 'first_layer_extr_temp', align: 'left', configable: true, visible: true },
{ text: this.$t("History.FirstLayerBedTemp"), value: 'first_layer_bed_temp', align: 'left', configable: true, visible: true },
{ text: this.$t("History.FirstLayerHeight"), value: 'first_layer_height', align: 'left', configable: true, visible: true },
{ text: this.$t("History.LayerHeight"), value: 'layer_height', align: 'left', configable: true, visible: true },
{ text: this.$t("History.ObjectHeight"), value: 'object_height', align: 'left', configable: true, visible: true },
{ text: this.$t("History.Slicer"), value: 'slicer', align: 'left', configable: true, visible: true },
]
headers.forEach((header) => {
if (header.visible && this.hideColums.includes(header.value)) {
header.visible = false
} else if (!header.visible && !this.hideColums.includes(header.value)) {
header.visible = true
}
})
return headers
},
configHeaders() {
return this.headers.filter(header => header.configable === true)
},
filteredHeaders() {
return this.headers.filter(header => header.visible === true)
},
baseUrl: {
get: function() {
return this.$store.getters["socket/getUrl"]
}
},
countPerPage: {
get: function() {
return this.$store.state.gui.history.countPerPage
},
set: function(newVal) {
return this.$store.dispatch("gui/setSettings", { history: { countPerPage: newVal } })
}
},
hideColums: {
get: function() {
return this.$store.state.gui.history.hideColums
},
set: function(newVal) {
return this.$store.dispatch("gui/setSettings", { history: { hideColums: newVal } })
}
},
},
methods: {
refreshHistory: function() {
this.$socket.sendObj('server.history.list', { start: 0, limit: 50 }, 'server/history/getHistory')
},
formatDate(date) {
let tmp2 = new Date(date*1000)
return tmp2.toLocaleString().replace(',', '')
},
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]
},
formatPrintTime(totalSeconds) {
if (totalSeconds) {
let output = ""
let days = Math.floor(totalSeconds / (3600 * 24))
if (days) {
totalSeconds %= (3600 * 24)
output += days+"d"
}
let hours = Math.floor(totalSeconds / 3600)
totalSeconds %= 3600
if (hours) output += " "+hours+"h"
let minutes = Math.floor(totalSeconds / 60)
if (minutes) output += " "+minutes+"m"
let seconds = totalSeconds % 60
if (seconds) output += " "+seconds.toFixed(0)+"s"
return output
}
return '--'
},
clickRow(item) {
this.detailsDialog.item = item
this.detailsDialog.boolShow = true
},
showContextMenu (e, item) {
if (!this.contextMenu.shown) {
e?.preventDefault();
this.contextMenu.shown = true
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2;
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2;
this.contextMenu.item = item
this.$nextTick(() => {
this.contextMenu.shown = true
})
}
},
sortFiles(items, sortBy, sortDesc) {
sortBy = sortBy.length ? sortBy[0] : 'filename';
sortDesc = sortDesc[0];
if (items !== undefined) {
// Sort by index
items.sort(function(a, b) {
if (a[sortBy] === b[sortBy]) {
return 0;
}
if (a[sortBy] === null || a[sortBy] === undefined) {
return -1;
}
if (b[sortBy] === null || b[sortBy] === undefined) {
return 1;
}
if (a[sortBy].constructor === String && b[sortBy].constructor === String) {
return a[sortBy].localeCompare(b[sortBy], undefined, { sensivity: 'base' });
}
if (a[sortBy] instanceof Array && b[sortBy] instanceof Array) {
const reducedA = a[sortBy].length ? a.filament.reduce((a, b) => a + b) : 0;
const reducedB = b[sortBy].length ? b.filament.reduce((a, b) => a + b) : 0;
return reducedA - reducedB;
}
return a[sortBy] - b[sortBy];
});
// Deal with descending order
if (sortDesc) items.reverse()
}
return items;
},
advancedSearch: function(value, search) {
return value != null &&
search != null &&
typeof value === 'string' &&
value.toString().toLowerCase().indexOf(search.toLowerCase()) !== -1
},
changeColumnVisible: function(name) {
if (this.headers.filter(header => header.value === name).length) {
let value = this.headers.filter(header => header.value === name)[0].visible;
this.$store.dispatch("gui/setHistoryColumns", {name: name, value: value});
}
},
startPrint(item) {
if (item.exists) this.$socket.sendObj('printer.print.start', { filename: item.filename }, 'switchToDashboard')
},
deleteJob(item) {
this.$socket.sendObj('server.history.delete_job', { uid: item.job_id }, 'server/history/getDeletedJobs')
},
getSmallThumbnail(item) {
if (
'metadata' in item &&
'thumbnails' in item.metadata &&
item.metadata.thumbnails.length
) {
const thumbnail = item.metadata.thumbnails.find(thumb =>
thumb.width >= 32 && thumb.width <= 64 &&
thumb.height >= 32 && thumb.height <= 64
)
let relative_url = ""
if (item.filename.lastIndexOf("/") !== -1) {
relative_url = item.filename.substr(0, item.filename.lastIndexOf("/")+1)
}
if (thumbnail && 'relative_path' in thumbnail) return this.baseUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
}
return false
},
getBigThumbnail(item) {
if (
'metadata' in item &&
'thumbnails' in item.metadata &&
item.metadata.thumbnails.length
) {
const thumbnail = item.metadata.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400)
let relative_url = ""
if (item.filename.lastIndexOf("/") !== -1) {
relative_url = item.filename.substr(0, item.filename.lastIndexOf("/")+1)
}
if (thumbnail && 'relative_path' in thumbnail) return this.baseUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
}
return false
},
getThumbnailWidth(item) {
if (this.getBigThumbnail(item)) {
const thumbnail = item.metadata.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400)
if (thumbnail) return thumbnail.width
}
return 400
},
},
watch: {
hideColums: function(newVal) {
this.headers.forEach((header) => {
if (header.visible && newVal.includes(header.value)) {
header.visible = false
} else if (!header.visible && !newVal.includes(header.value)) {
header.visible = true
}
})
}
}
}
</script>
+4 -4
View File
@@ -2,21 +2,21 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-alert-circle</v-icon>Klippy-State: {{ klippy_state}}</span>
<span class="subheading"><v-icon left>mdi-alert-circle</v-icon>{{ $t('Panels.KlippyStatePanel.KlippyState')}}: {{ klippy_state}}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="py-0">
<v-layout wrap class=" text-center">
<v-flex col class="text-left" v-if="klippy_connected"><pre style="white-space: pre-wrap;">{{ klippy_message }}</pre></v-flex>
<v-flex col class="text-left" v-if="!klippy_connected">
<p>Moonraker can't connect to Klippy!<br />Please check if the Klipper service is running and an UDS (Unix Domain Socket) is configured.</p>
<p style="white-space:pre-wrap">{{ $t('Panels.KlippyStatePanel.KlippyInfo') }}</p>
</v-flex>
</v-layout>
</v-card-text>
<v-divider class="my-2" v-if="klippy_connected" ></v-divider>
<v-card-text class="px-4 pt-2 pb-4 content text-center text-lg-left" v-if="klippy_connected">
<v-btn small @click="doRestart" color="error" class=""><v-icon class="mr-sm-2">mdi-restart</v-icon>Restart</v-btn>
<v-btn small @click="doRestartFirmware" class="ml-4" color="error"><v-icon class="mr-sm-2">mdi-restart</v-icon>FIRMWARE Restart</v-btn>
<v-btn small @click="doRestart" color="error" class=""><v-icon class="mr-sm-2">mdi-restart</v-icon>{{ $t('Panels.KlippyStatePanel.Restart') }}</v-btn>
<v-btn small @click="doRestartFirmware" class="ml-4" color="error"><v-icon class="mr-sm-2">mdi-restart</v-icon>{{ $t('Panels.KlippyStatePanel.FirmwareRestart') }}</v-btn>
</v-card-text>
</v-card>
</template>
+8 -8
View File
@@ -12,21 +12,21 @@
<v-toolbar flat dense color="orange darken-2">
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-alert-circle" left></v-icon>Missing configuration
<v-icon class="mdi mdi-alert-circle" left></v-icon>{{ $t("Panels.MinSettingsPanel.MissingConfiguration") }}
</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="px-0 pt-0 pb-2 content">
<v-layout wrap class=" text-center">
<v-flex col class="text-left">
<p v-if="!boolVirtualSdcard" class="orange--text"><code>virtual_sdcard</code> is not defined in config.</p>
<p v-if="!boolPauseResume" class="orange--text"><code>pause_resume</code> is not defined in config.</p>
<p v-if="!boolDisplayStatus" class="orange--text"><code>display_status</code> is not defined in config.</p>
<p v-if="!boolMacroPause" class="orange--text"><code>gcode_macro PAUSE</code> is not defined in config.</p>
<p v-if="!boolMacroResume" class="orange--text"><code>gcode_macro RESUME</code> is not defined in config.</p>
<p v-if="!boolMacroCancelPrint" class="orange--text"><code>gcode_macro CANCEL_PRINT</code> is not defined in config.</p>
<p v-if="!boolVirtualSdcard" class="orange--text"><code>virtual_sdcard</code> {{ $t("Panels.MinSettingsPanel.IsNotDefinedInConfig") }}</p>
<p v-if="!boolPauseResume" class="orange--text"><code>pause_resume</code> {{ $t("Panels.MinSettingsPanel.IsNotDefinedInConfig") }}</p>
<p v-if="!boolDisplayStatus" class="orange--text"><code>display_status</code> {{ $t("Panels.MinSettingsPanel.IsNotDefinedInConfig") }}</p>
<p v-if="!boolMacroPause" class="orange--text"><code>gcode_macro PAUSE</code> {{ $t("Panels.MinSettingsPanel.IsNotDefinedInConfig") }}</p>
<p v-if="!boolMacroResume" class="orange--text"><code>gcode_macro RESUME</code> {{ $t("Panels.MinSettingsPanel.IsNotDefinedInConfig") }}</p>
<p v-if="!boolMacroCancelPrint" class="orange--text"><code>gcode_macro CANCEL_PRINT</code> {{ $t("Panels.MinSettingsPanel.IsNotDefinedInConfig") }}</p>
<div class="text-center">
<v-btn href="https://docs.mainsail.xyz/necessary-configuration" target="_blank" color="white" outlined small><v-icon small class="mr-1">mdi-information</v-icon>more information</v-btn>
<v-btn href="https://docs.mainsail.xyz/necessary-configuration" target="_blank" color="white" outlined small><v-icon small class="mr-1">mdi-information</v-icon>{{ $t("Panels.MinSettingsPanel.MoreInformation") }}</v-btn>
</div>
</v-flex>
</v-layout>
+20 -25
View File
@@ -23,19 +23,19 @@
<v-card>
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-console-line</v-icon>Console</span>
<span class="subheading"><v-icon left>mdi-console-line</v-icon>{{ $t("Panels.MiniconsolePanel.Console") }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-menu :offset-y="true" :close-on-content-click="false" title="Setup Console">
<v-menu :offset-y="true" :close-on-content-click="false" :title="$t('Panels.MiniconsolePanel.SetupConsole')">
<template v-slot:activator="{ on, attrs }">
<v-btn small class="px-2 minwidth-0" color="grey darken-3" v-bind="attrs" v-on="on"><v-icon small>mdi-cog</v-icon></v-btn>
</template>
<v-list>
<v-list-item class="minHeight36">
<v-checkbox class="mt-0" v-model="hideWaitTemperatures" hide-details label="Hide temperatures"></v-checkbox>
<v-checkbox class="mt-0" v-model="hideWaitTemperatures" hide-details :label="$t('Panels.MiniconsolePanel.HideTemperatures')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox class="mt-0" v-model="boolCustomFilters" hide-details label="Custom filters"></v-checkbox>
<v-list-item class="minHeight36" v-for="(filter, index) in customFilters" v-bind:key="index">
<v-checkbox class="mt-0" v-model="filter.bool" @change="toggleFilter(filter)" hide-details :label="filter.name"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
@@ -45,7 +45,7 @@
<v-row>
<v-col>
<v-text-field
label="Send code..."
:label="$t('Panels.MiniconsolePanel.SendCode')"
ref="gcodeCommandField"
solo
hide-details
@@ -60,7 +60,7 @@
</v-col>
<v-col class="col-auto align-content-center">
<v-btn color="info" class="gcode-command-btn" @click="doSend" :loading="loadings.includes('sendGcode')" :disabled="loadings.includes('sendGcode')" >
<v-icon class="mr-2">mdi-send</v-icon> send
<v-icon class="mr-2">mdi-send</v-icon> {{ $t("Panels.MiniconsolePanel.Send") }}
</v-btn>
</v-col>
</v-row>
@@ -81,7 +81,7 @@
sort-by="date"
>
<template #no-data>
<div class="py-2">empty</div>
<div class="py-2">{{ $t("Panels.MiniconsolePanel.Empty") }}</div>
</template>
<template #item="{ item }">
@@ -101,8 +101,7 @@
<script>
import {mapState} from 'vuex'
import Vue from "vue";
import { colorConsoleMessage, formatConsoleMessage } from "@/plugins/helpers";
import { colorConsoleMessage, formatConsoleMessage } from "@/plugins/helpers"
export default {
components: {
@@ -153,23 +152,16 @@ import {mapState} from 'vuex'
return this.$store.dispatch("gui/setSettings", { console: { hideWaitTemperatures: newVal } })
}
},
boolCustomFilters: {
get() {
return this.$store.state.gui.console.boolCustomFilters
},
set: function(newVal) {
return this.$store.dispatch("gui/setSettings", { console: { boolCustomFilters: newVal } })
}
}
customFilters() {
return this.$store.state.gui.console.customFilters
},
},
methods: {
doSend() {
this.$store.commit('socket/addLoading', { name: 'sendGcode' });
this.$store.commit('server/addEvent', { message: this.gcode, type: 'command' });
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: this.gcode }, "socket/removeLoading", { name: 'sendGcode' });
this.lastCommands.push(this.gcode);
this.gcode = "";
this.lastCommandNumber = null;
this.$store.dispatch('printer/sendGcode', this.gcode)
this.lastCommands.push(this.gcode)
this.gcode = ""
this.lastCommandNumber = null
},
onKeyUp() {
if (this.lastCommandNumber === null && this.lastCommands.length) {
@@ -233,7 +225,10 @@ import {mapState} from 'vuex'
});
return items;
}
},
toggleFilter(filter) {
this.$store.dispatch('gui/updateConsoleFilter', filter)
},
}
}
</script>
+12 -5
View File
@@ -20,17 +20,19 @@
<v-card class="mt-6" v-if="['printing', 'paused'].includes(printer_state)">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon class="mdi mdi-printer-3d" left></v-icon>Print Settings</span>
<span class="subheading"><v-icon class="mdi mdi-printer-3d" left></v-icon>{{ $t("Panels.MiscellaneousPanel.PrintSettings") }}</span>
</v-toolbar-title>
</v-toolbar>
<tool-slider label="Speed factor" :target="speed_factor" :max="200" :multi="100" :step="5" :dynamic-range="true" command="M220" attribute-name="S" ></tool-slider>
<v-divider></v-divider>
<tool-slider label="Extrusion factor" :target="extrude_factor" :max="200" :multi="100" :step="1" command="M221" attribute-name="S" ></tool-slider>
<tool-slider :label="$t('Panels.MiscellaneousPanel.SpeedFactor')" :target="speed_factor" :max="200" :multi="100" :step="5" :dynamic-range="true" command="M220" attribute-name="S" ></tool-slider>
<template v-if="existsExtruder">
<v-divider></v-divider>
<tool-slider :label="$t('Panels.MiscellaneousPanel.ExtrusionFactor')" :target="extrude_factor" :max="200" :multi="100" :step="1" command="M221" attribute-name="S" ></tool-slider>
</template>
</v-card>
<v-card class="mt-6" v-if="this['printer/getMiscellaneous'].length">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-dip-switch</v-icon>Miscellaneous</span>
<span class="subheading"><v-icon left>mdi-dip-switch</v-icon>{{ $t("Panels.MiscellaneousPanel.Miscellaneous") }}</span>
</v-toolbar-title>
</v-toolbar>
<div v-for="(object, index) of this['printer/getMiscellaneous']" v-bind:key="index">
@@ -75,6 +77,11 @@
...mapGetters([
'printer/getMiscellaneous',
]),
existsExtruder: {
get() {
return 'extruder' in this.$store.state.printer
}
},
}
}
</script>
@@ -4,24 +4,24 @@
<v-toolbar flat dense color="orange darken-2">
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-alert-circle" left></v-icon>Moonraker Failed Plugins
<v-icon class="mdi mdi-alert-circle" left></v-icon>{{ $t("Panels.MoonrakerFailedComponentsPanel.MoonrakerFailedComponents") }}
</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="px-0 pt-0 pb-2 content">
<v-layout wrap class=" text-center">
<v-flex col class="text-left">
<p class="orange--text">An error was detected while loading the moonraker plugins. Please check the logfile and fix the issue.</p>
<p class="mb-2 orange--text">Following plugin has an error:</p>
<p class="orange--text">{{ $t("Panels.MoonrakerFailedComponentsPanel.MoonrakerErrorInfo") }}</p>
<p class="mb-2 orange--text">{{ $t("Panels.MoonrakerFailedComponentsPanel.FollowingPluginHasAnError") }}</p>
<ul class="mt-0 pt-0">
<li v-for="plugin in failedPlugins" v-bind:key="plugin" class="orange--text"><code>{{ plugin }}</code></li>
<li v-for="component in failedComponents" v-bind:key="component" class="orange--text"><code>{{ component }}</code></li>
</ul>
</v-flex>
</v-layout>
</v-card-text>
<v-divider class="my-2"></v-divider>
<v-card-text class="px-4 pt-2 pb-4 content text-center text-lg-left">
<v-btn small :href="'//'+hostname+':'+port+'/server/files/moonraker.log'" color="primary" class=""><v-icon class="mr-2">mdi-download</v-icon>Download Log</v-btn>
<v-btn small :href="'//'+hostname+':'+port+'/server/files/moonraker.log'" color="primary" class=""><v-icon class="mr-2">mdi-download</v-icon>{{ $t("Panels.MoonrakerFailedComponentsPanel.DownloadLog") }}</v-btn>
</v-card-text>
</v-card>
</template>
@@ -35,7 +35,7 @@
}),
computed: {
...mapState({
failedPlugins: state => state.server.failed_plugins,
failedComponents: state => state.server.failed_components,
hostname: state => state.socket.hostname,
port: state => state.socket.port,
}),
+4 -4
View File
@@ -7,7 +7,7 @@
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-power" left></v-icon>Power Control
<v-icon class="mdi mdi-power" left></v-icon>{{ $t('Panels.PowerControlPanel.PowerControl') }}
</span>
</v-toolbar-title>
</v-toolbar>
@@ -19,9 +19,9 @@
<v-col class="py-0 pt-1">{{ device.device }}</v-col>
<v-col class="py-0 text-right">
<v-btn-toggle v-model="device.status">
<v-btn small v-if="device.status === 'error'" disabled>Error</v-btn>
<v-btn small v-if="device.status !== 'error'" :disabled="device.status === 'on'" @click="setPower(device,1)">On</v-btn>
<v-btn small v-if="device.status !== 'error'" :disabled="device.status === 'off'" @click="setPower(device,0)">Off</v-btn>
<v-btn small v-if="device.status === 'error'" disabled>{{ $t('Panels.PowerControlPanel.Error') }}</v-btn>
<v-btn small v-if="device.status !== 'error'" :disabled="device.status === 'on'" @click="setPower(device,1)">{{ $t('Panels.PowerControlPanel.On') }}</v-btn>
<v-btn small v-if="device.status !== 'error'" :disabled="device.status === 'off'" @click="setPower(device,0)">{{ $t('Panels.PowerControlPanel.Off') }}</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
@@ -8,10 +8,6 @@
padding: 5px;
}
.prism-editor__textarea:focus {
outline: none;
}
.config-editor-overlay div.v-card {
position: relative;
}
@@ -26,30 +22,72 @@
<template>
<v-row>
<v-dialog fullscreen :transition="null" v-model="editor.show" @keydown.esc="closeEditor()">
<v-card d-flex class="fill-height">
<v-toolbar dark color="primary">
<v-btn icon dark @click="closeEditor()">
<v-icon>mdi-close</v-icon>
</v-btn>
<v-toolbar-title>{{ editor.item.filename }}</v-toolbar-title>
<v-spacer></v-spacer>
<v-toolbar-items>
<v-menu
transition="slide-y-transition"
:close-on-content-click="false"
offset-y
bottom
left
>
<template #activator="{ on, attrs }">
<v-btn
dark
icon
v-bind="attrs"
v-on="on"
>
<v-icon>mdi-cog</v-icon>
</v-btn>
</template>
<v-list dense>
<v-list-item class="minheight30">
<v-checkbox v-model="editorMinimap" :label="$t('Editor.Minimap')"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
<v-btn dark text href="https://www.klipper3d.org/Config_Reference.html" target="_blank" class="d-none d-md-flex"><v-icon small class="mr-1">mdi-help</v-icon>{{ $t('Settings.ConfigFilesPanel.ConfigReference') }}</v-btn>
<v-divider white vertical v-if="currentPath !== '/config_examples'" class="d-none d-md-flex"></v-divider>
<v-btn dark text @click="saveFile(false)" v-if="currentPath !== '/config_examples'"><v-icon small class="mr-1">mdi-content-save</v-icon><span class="d-none d-sm-inline">{{ $t('Settings.ConfigFilesPanel.SaveClose') }}</span></v-btn>
<v-divider white vertical v-if="currentPath !== '/config_examples' && !['printing', 'paused'].includes(printer_state)" class="d-none d-sm-flex"></v-divider>
<v-btn dark text @click="saveFile(true)" v-if="currentPath !== '/config_examples' && !['printing', 'paused'].includes(printer_state)" class="d-none d-sm-flex"><v-icon small class="mr-1">mdi-restart</v-icon>{{ $t('Settings.ConfigFilesPanel.SaveRestart') }}</v-btn>
</v-toolbar-items>
</v-toolbar>
<div v-if="editor.init" id="editor" class="mainsail-editor" style="height: 92%; width: 100%; overflow: hidden;"></div>
</v-card>
</v-dialog>
<v-col>
<v-card>
<v-card-title>
Config Files
{{ $t('Settings.ConfigFilesPanel.ConfigFiles') }}
<v-spacer class="d-none d-sm-block"></v-spacer>
<input type="file" ref="fileUpload" style="display: none" multiple @change="uploadFile" />
<v-item-group class="v-btn-toggle my-5 my-sm-0 col-12 col-sm-auto px-0 py-0">
<v-btn v-if="currentPath !== '' && currentPath !== '/config_examples'" class="flex-grow-1" @click="uploadFileButton" :loading="loadings.includes['configFileUpload']"><v-icon>mdi-file-upload</v-icon></v-btn>
<v-btn v-if="currentPath !== '' && currentPath !== '/config_examples'" class="flex-grow-1" @click="createFile"><v-icon>mdi-file-plus</v-icon></v-btn>
<v-btn v-if="currentPath !== '' && currentPath !== '/config_examples'" class="flex-grow-1" @click="createFolder"><v-icon>mdi-folder-plus</v-icon></v-btn>
<v-btn v-if="currentPath !== '' && currentPath !== '/config_examples'" class="flex-grow-1" @click="createDirecotry"><v-icon>mdi-folder-plus</v-icon></v-btn>
<v-btn class="flex-grow-1" @click="refreshFileList"><v-icon>mdi-refresh</v-icon></v-btn>
<v-menu :offset-y="true" title="Setup current list">
<v-menu :offset-y="true" :title="$t('Settings.ConfigFilesPanel.SetupCurrentList')">
<template v-slot:activator="{ on, attrs }">
<v-btn class="flex-grow-1" v-bind="attrs" v-on="on"><v-icon class="">mdi-cog</v-icon></v-btn>
</template>
<v-list>
<v-list-item class="minHeight36">
<v-checkbox class="mt-0" hide-details v-model="showHiddenFiles" label="Hidden files"></v-checkbox>
<v-checkbox class="mt-0" hide-details v-model="showHiddenFiles" :label="$t('Settings.ConfigFilesPanel.HiddenFiles')"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
</v-item-group>
</v-card-title>
<v-card-subtitle>Current path: {{ this.currentPath === "" ? "/" : this.currentPath }}</v-card-subtitle>
<v-card-subtitle>{{ $t('Settings.ConfigFilesPanel.CurrentPath') }}: {{ this.currentPath === "" ? "/" : this.currentPath }}</v-card-subtitle>
<v-data-table
:items="files"
class="files-table"
@@ -61,13 +99,15 @@
:sort-desc.sync="sortDesc"
:items-per-page.sync="countPerPage"
:footer-props="{
itemsPerPageText: 'Files'
itemsPerPageText: $t('Settings.ConfigFilesPanel.Files'),
itemsPerPageAllText: $t('Settings.ConfigFilesPanel.AllFiles'),
itemsPerPageOptions: [10,25,50,100,-1]
}"
mobile-breakpoint="0"
item-key="name">
<template #no-data>
<div class="text-center">empty</div>
<div class="text-center">{{ $t('Settings.ConfigFilesPanel.Empty') }}</div>
</template>
<template slot="body.prepend" v-if="(currentPath !== '')">
@@ -75,12 +115,13 @@
class="file-list-cursor"
@click="clickRowGoBack">
<td class="pr-0 text-center" style="width: 32px;"><v-icon>mdi-folder-upload</v-icon></td>
<td class=" " colspan="8">..</td>
<td class=" " colspan="4">..</td>
</tr>
</template>
<template #item="{ item }">
<template #item="{ index, item }">
<tr
:key="`${index} ${item.filename}`"
v-longpress:600="(e) => showContextMenu(e, item)"
@contextmenu="showContextMenu($event, item)"
@click="clickRow(item)"
@@ -100,85 +141,108 @@
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
<v-list>
<v-list-item @click="clickRow(contextMenu.item, true)" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-file-document-edit-outline</v-icon> Edit file
<v-icon class="mr-1">mdi-file-document-edit-outline</v-icon> {{ $t('Settings.ConfigFilesPanel.EditFile') }}
</v-list-item>
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-cloud-download</v-icon> Download
<v-icon class="mr-1">mdi-cloud-download</v-icon> {{ $t('Settings.ConfigFilesPanel.Download') }}
</v-list-item>
<v-list-item @click="renameFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory && currentPath !== '/config_examples'">
<v-icon class="mr-1">mdi-rename-box</v-icon> Rename
<v-icon class="mr-1">mdi-rename-box</v-icon> {{ $t('Settings.ConfigFilesPanel.Rename') }}
</v-list-item>
<v-list-item @click="renameDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory && currentPath !== '/config_examples'">
<v-icon class="mr-1">mdi-rename-box</v-icon> {{ $t('Settings.ConfigFilesPanel.Rename') }}
</v-list-item>
<v-list-item @click="removeFile" v-if="!contextMenu.item.isDirectory && currentPath !== '/config_examples'">
<v-icon class="mr-1">mdi-delete</v-icon> Delete
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('Settings.ConfigFilesPanel.Delete') }}
</v-list-item>
<v-list-item @click="deleteDirectoryAction" v-if="contextMenu.item.isDirectory && currentPath !== '' && currentPath !== '/config_examples'">
<v-icon class="mr-1">mdi-delete</v-icon> Delete
<v-list-item @click="deleteDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory && currentPath !== '' && currentPath !== '/config_examples'">
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('Settings.ConfigFilesPanel.Delete') }}
</v-list-item>
</v-list>
</v-menu>
<v-dialog v-model="editor.showLoader" hide-overlay persistent width="300" >
<v-dialog v-model="editor.showLoader" hide-overlay persistent width="300">
<v-card color="primary" dark >
<v-card-text>
Please stand by
{{ $t('Settings.ConfigFilesPanel.PleaseStandBy') }}
<v-progress-linear indeterminate color="white" class="mb-0" ></v-progress-linear>
</v-card-text>
</v-card>
</v-dialog>
<v-dialog v-model="editor.show" fullscreen hide-overlay transition="dialog-bottom-transition" content-class="config-editor-overlay">
<v-card d-flex>
<v-toolbar dark color="primary">
<v-btn icon dark @click="editor.show = false">
<v-icon>mdi-close</v-icon>
</v-btn>
<v-toolbar-title>{{ editor.item.filename }}</v-toolbar-title>
<v-spacer></v-spacer>
<v-toolbar-items>
<v-btn dark text href="https://www.klipper3d.org/Config_Reference.html" target="_blank" class="d-none d-md-flex"><v-icon small class="mr-1">mdi-help</v-icon>Config Reference</v-btn>
<v-divider white vertical v-if="currentPath !== '/config_examples'" class="d-none d-md-flex"></v-divider>
<v-btn dark text @click="saveFile(false)" v-if="currentPath !== '/config_examples'"><v-icon small class="mr-1">mdi-content-save</v-icon><span class="d-none d-sm-inline">Save</span></v-btn>
<v-divider white vertical v-if="currentPath !== '/config_examples' && !['printing', 'paused'].includes(printer_state)" class="d-none d-sm-flex"></v-divider>
<v-btn dark text @click="saveFile(true)" v-if="currentPath !== '/config_examples' && !['printing', 'paused'].includes(printer_state)" class="d-none d-sm-flex"><v-icon small class="mr-1">mdi-restart</v-icon>Save & restart</v-btn>
</v-toolbar-items>
</v-toolbar>
<prism-editor class="my-editor" v-model="editor.sourcecode" :readonly="editor.readonly" :highlight="highlighter" line-numbers></prism-editor>
</v-card>
<v-dialog v-model="image.show" hide-overlay fullscreen @keydown.esc="image.show = false; image.url = null; image.svg = null;" class="fill-height">
<v-card style="position: relative;">
<v-toolbar dark color="primary">
<v-btn icon dark @click="image.show = false; image.url = null; image.svg = null;">
<v-icon>mdi-close</v-icon>
</v-btn>
</v-toolbar>
<div class="d-flex justify-center" style="max-height: calc(100vh - 64px); overflow: auto;">
<img v-if="image.url" :src="image.url" style="max-height: 100%; width: auto;" alt="image" />
<svg v-else-if="image.svg" v-html="image.svg"></svg>
</div>
</v-card>
</v-dialog>
<v-dialog v-model="dialogRenameFile.show" max-width="400">
<v-card>
<v-card-title class="headline">Rename File</v-card-title>
<v-card-title class="headline">{{ $t('Settings.ConfigFilesPanel.RenameFile') }}</v-card-title>
<v-card-text>
<v-text-field label="Name" required v-model="dialogRenameFile.newName"></v-text-field>
<v-text-field :label="$t('Settings.ConfigFilesPanel.Name')" required v-model="dialogRenameFile.newName"></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogRenameFile.show = false">Cancel</v-btn>
<v-btn color="primary" text @click="renameFileAction">rename</v-btn>
<v-btn color="" text @click="dialogRenameFile.show = false">{{ $t('Settings.ConfigFilesPanel.Cancel') }}</v-btn>
<v-btn color="primary" text @click="renameFileAction">{{ $t('Settings.ConfigFilesPanel.Rename') }}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="dialogCreateFile.show" max-width="400">
<v-card>
<v-card-title class="headline">Create File</v-card-title>
<v-card-title class="headline">{{ $t('Settings.ConfigFilesPanel.CreateFile') }}</v-card-title>
<v-card-text>
<v-text-field label="Name" required v-model="dialogCreateFile.name"></v-text-field>
<v-text-field :label="$t('Settings.ConfigFilesPanel.Name')" required v-model="dialogCreateFile.name"></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogCreateFile.show = false">Cancel</v-btn>
<v-btn color="primary" text @click="createFileAction">create</v-btn>
<v-btn color="" text @click="dialogCreateFile.show = false">{{ $t('Settings.ConfigFilesPanel.Cancel') }}</v-btn>
<v-btn color="primary" text @click="createFileAction">{{ $t('Settings.ConfigFilesPanel.Create') }}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="dialogCreateFolder.show" max-width="400">
<v-dialog v-model="dialogCreateDirectory.show" max-width="400">
<v-card>
<v-card-title class="headline">Create Folder</v-card-title>
<v-card-title class="headline">{{ $t('Settings.ConfigFilesPanel.CreateDirectory') }}</v-card-title>
<v-card-text>
<v-text-field label="Name" required v-model="dialogCreateFolder.name"></v-text-field>
<v-text-field :label="$t('Settings.ConfigFilesPanel.Name')" required v-model="dialogCreateDirectory.name"></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogCreateFolder.show = false">Cancel</v-btn>
<v-btn color="primary" text @click="createFolderAction">create</v-btn>
<v-btn color="" text @click="dialogCreateDirectory.show = false">{{ $t('Settings.ConfigFilesPanel.Cancel') }}</v-btn>
<v-btn color="primary" text @click="createDirectoryAction">{{ $t('Settings.ConfigFilesPanel.Create') }}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="dialogRenameDirectory.show" max-width="400">
<v-card>
<v-card-title class="headline">{{ $t('Settings.ConfigFilesPanel.RenameDirectory') }}</v-card-title>
<v-card-text>
<v-text-field :label="$t('Settings.ConfigFilesPanel.Name')" required v-model="dialogRenameDirectory.newName"></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogRenameDirectory.show = false">{{ $t('Settings.ConfigFilesPanel.Cancel') }}</v-btn>
<v-btn color="primary" text @click="renameDirectoryAction">{{ $t('Settings.ConfigFilesPanel.Rename') }}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="dialogDeleteDirectory.show" max-width="400">
<v-card>
<v-card-title class="headline">{{ $t('Settings.ConfigFilesPanel.DeleteDirectory') }}</v-card-title>
<v-card-text>
<p class="mb-0">{{ $t('Settings.ConfigFilesPanel.DeleteDirectoryQuestion', { name: dialogDeleteDirectory.item.filename } )}}</p>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogDeleteDirectory.show = false">{{ $t('Settings.ConfigFilesPanel.Cancel') }}</v-btn>
<v-btn color="error" text @click="deleteDirectoryAction">{{ $t('Settings.ConfigFilesPanel.Delete') }}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@@ -191,7 +255,7 @@
dark
v-model="uploadSnackbar.status"
>
<span v-if="uploadSnackbar.max > 1" class="mr-1">({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})</span><strong>Uploading {{ uploadSnackbar.filename }}</strong><br />
<span v-if="uploadSnackbar.max > 1" class="mr-1">({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})</span><strong>{{ $t('Settings.ConfigFilesPanel.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 }">
@@ -211,47 +275,66 @@
</template>
<script>
import { mapState } from 'vuex'
import {findDirectory} from "@/plugins/helpers";
import {mapState} from 'vuex'
import {findDirectory} from "@/plugins/helpers";
import { PrismEditor } from 'vue-prism-editor';
import 'vue-prism-editor/dist/prismeditor.min.css'; // import the styles somewhere
import axios from "axios";
// import highlighting library (you can use any library you want just return html string)
import { highlight, languages } from 'prismjs/components/prism-core';
import 'prismjs/components/prism-editorconfig';
import 'prismjs/components/prism-ini';
import 'prismjs/themes/prism-okaidia.css';
import axios from "axios"; // import syntax highlighting styles
import * as monaco from 'monaco-editor';
export default {
import {LANGUAGE_MAP, liftOff} from "@/plugins/monaco";
export default {
components: {
PrismEditor,
},
data: function() {
return {
sortBy: 'filename',
sortDesc: false,
selected: [],
headers: [
{ text: '', value: '', },
{ text: 'Name', value: 'filename', },
{ text: 'Filesize', value: 'size', align: 'right', },
{ text: 'Last modified', value: 'modified', align: 'right', },
],
options: {
},
currentPage: 1,
files: [],
currentPath: '/config',
image: {
show: false,
url: null,
svg: null
},
editor: {
show: false,
/*show: false,
showLoader: false,
readonly: false,
init: false,
item: {
filename: "",
},
sourcecode: ''
sourcecode: ''*/
show: false,
showLoader: false,
readonly: false,
token: null,
init: false,
progress: {
total: 0,
loaded: 0,
speed: "",
lastTimestamp: 0
},
options: {
contextmenu: false,
automaticLayout: true,
readOnly: false,
language: 'klipper-config',
theme: 'dark-converted'
},
item: {
filename: "",
},
sourcecode: "",
monaco: null
},
contextMenu: {
shown: false,
@@ -270,10 +353,19 @@
show: false,
name: "",
},
dialogCreateFolder: {
dialogCreateDirectory: {
show: false,
name: "",
},
dialogRenameDirectory: {
show: false,
newName: "",
item: {}
},
dialogDeleteDirectory: {
show: false,
item: {}
},
uploadSnackbar: {
status: false,
filename: "",
@@ -298,6 +390,30 @@
loadings: state => state.socket.loadings,
printer_state: state => state.printer.print_stats.state,
}),
headers() {
return [
{ text: '', value: '', },
{ text: this.$t('Settings.ConfigFilesPanel.Name'), value: 'filename', },
{ text: this.$t('Settings.ConfigFilesPanel.Filesize'), value: 'size', align: 'right', },
{ text: this.$t('Settings.ConfigFilesPanel.LastModified'), value: 'modified', align: 'right', },
]
},
editorOptions() {
return {
...this.editor.options,
minimap: {
enabled: this.editorMinimap
}
};
},
editorMinimap: {
get() {
return this.$store.state.gui.editor.minimap;
},
set(val) {
return this.$store.dispatch("gui/setSettings", { editor: { minimap: val } })
}
},
countPerPage: {
get: function() {
return this.$store.state.gui.settings.configfiles.countPerPage
@@ -319,8 +435,22 @@
this.loadPath();
},
methods: {
closeEditor() {
console.log("close");
this.editor.show = false;
this.editor.init = false;
this.editor.monaco = null;
this.editor.sourcecode = "";
this.editor.file = null;
},
async editorWillMount(monaco) {
if (!monaco.languages?.getLanguages().find(l => l.id === 'klipper-config')) {
await liftOff(monaco);
}
},
highlighter(code) {
return highlight(code, languages.ini); //returns html
//return highlight(code, languages.ini); //returns html
return code;
},
refreshFileList() {
if (this.currentPath === "") {
@@ -396,19 +526,45 @@
this.contextMenu.shown = false;
}
if (!item.isDirectory) {
this.editor.showLoader = true;
this.editor.sourcecode = "";
this.editor.item = item;
const ext = item.filename.split('.')?.pop()?.toLowerCase();
if(['svg'].includes(ext)) {
let url = '//' + this.hostname + ':' + this.port + '/server/files' + this.currentPath + '/' + item.filename + '?time=' + Date.now();
fetch(url)
.then(res => res.text())
.then(svg => {
this.image.show = true;
this.image.svg = svg;
});
} else if(['jpg', 'jpeg', 'png', 'bmp', 'tiff', 'gif'].includes(ext)) {
let url = '//' + this.hostname + ':' + this.port + '/server/files' + this.currentPath + '/' + item.filename + '?time=' + Date.now();
this.image.show = true;
this.image.url = url;
} else {
/*const query = '/server/files' + this.currentPath + '/' + item.filename;
this.$router.push({
name: 'edit-file', query: {
path: query
}
});*/
this.editor.showLoader = true;
this.editor.sourcecode = "";
this.editor.item = item;
let url = '//' + this.hostname + ':' + this.port + '/server/files' + this.currentPath + '/' + item.filename + '?time=' + Date.now();
fetch(url, {cache: "no-cache"}).then(res => res.text()).then(file => {
this.editor.sourcecode = file;
this.editor.show = true;
this.editor.showLoader = false;
this.editor.readonly = false;
if (this.currentPath === '/config_examples') this.editor.readonly = true;
});
let url = '//' + this.hostname + ':' + this.port + '/server/files' + this.currentPath + '/' + item.filename + '?time=' + Date.now();
fetch(url, {cache: "no-cache"}).then(res => res.text()).then(file => {
this.editor.sourcecode = file;
this.editor.options.language = LANGUAGE_MAP[ext] ?? ext.toString();
this.editor.show = true;
this.editor.init = true;
this.$nextTick(() => {
this.editor.showLoader = false;
this.editor.options.readOnly = false;
if (this.currentPath === '/config_examples') this.editor.options.readOnly = true;
});
});
}
} else {
this.currentPath += "/" + item.filename;
this.currentPage = 1;
@@ -432,14 +588,16 @@
}
).then(() => {
this.$toast.success("File '"+this.editor.item.filename+"' successfully saved.");
this.editor.show = false;
this.editor.sourcecode = "";
if (boolRestart && this.editor.item.filename === "moonraker.conf") {
this.$socket.sendObj('machine.services.restart', { service: "moonraker" })
} else if (boolRestart) {
this.$store.commit('server/addEvent', { message: "FIRMWARE_RESTART", type: 'command' })
this.$socket.sendObj('printer.gcode.script', { script: "FIRMWARE_RESTART" })
this.closeEditor();
if (boolRestart) {
if (this.editor.item.filename === "moonraker.conf") {
this.$socket.sendObj('machine.services.restart', { service: "moonraker" })
} else {
this.$store.commit('server/addEvent', { message: "FIRMWARE_RESTART", type: 'command' })
this.$socket.sendObj('printer.gcode.script', { script: "FIRMWARE_RESTART" })
}
}
}).catch(() => {
this.$toast.error("Error save "+this.editor.item.filename);
@@ -458,25 +616,41 @@
}
},
downloadFile() {
let filename = (this.currentPath+"/"+this.contextMenu.item.filename);
let link = document.createElement("a");
link.download = name;
link.href = '//' + this.hostname + ':' + this.port + '/server/files' + filename;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
const filename = (this.currentPath+"/"+this.contextMenu.item.filename)
const href = '//' + this.hostname + ':' + this.port + '/server/files' + filename
window.open(href)
},
createFolder() {
this.dialogCreateFolder.name = "";
this.dialogCreateFolder.show = true;
createDirecotry() {
this.dialogCreateDirectory.name = "";
this.dialogCreateDirectory.show = true;
},
createFolderAction() {
this.dialogCreateFolder.show = false;
createDirectoryAction() {
this.dialogCreateDirectory.show = false;
this.$socket.sendObj('server.files.post_directory', {
path: this.currentPath.substring(1)+"/"+this.dialogCreateFolder.name
path: this.currentPath.substring(1)+"/"+this.dialogCreateDirectory.name
}, 'files/getCreateDir');
},
renameDirectory(item) {
this.dialogRenameDirectory.item = item;
this.dialogRenameDirectory.newName = item.filename;
this.dialogRenameDirectory.show = true;
},
renameDirectoryAction() {
this.dialogRenameDirectory.show = false;
this.$socket.sendObj('server.files.move', {
source: this.currentPath+"/"+this.dialogRenameDirectory.item.filename,
dest: this.currentPath+"/"+this.dialogRenameDirectory.newName
}, 'files/getMove');
},
deleteDirectory(item) {
this.dialogDeleteDirectory.item = item;
this.dialogDeleteDirectory.show = true;
},
deleteDirectoryAction() {
this.dialogDeleteDirectory.show = false;
this.$socket.sendObj('server.files.delete_directory', { path: this.currentPath+"/"+this.dialogDeleteDirectory.item.filename, force: true }, 'files/getDeleteDir')
},
createFile() {
this.dialogCreateFile.name = "";
this.dialogCreateFile.show = true;
@@ -515,9 +689,6 @@
removeFile() {
this.$socket.sendObj('server.files.delete_file', { path: this.currentPath+"/"+this.contextMenu.item.filename }, 'files/getDeleteFile');
},
deleteDirectoryAction() {
this.$socket.sendObj('server.files.delete_directory', { path: this.currentPath+"/"+this.contextMenu.item.filename }, 'files/getDeleteDir');
},
uploadFileButton() {
this.$refs.fileUpload.click()
},
@@ -593,6 +764,25 @@
},
},
watch: {
'editor.init'(val) {
if (val) {
setTimeout(() => {
this.editor.monaco = monaco.editor.create(document.getElementById('editor'), {
...(this.editorOptions || this.editor.options),
value: this.editor.sourcecode
});
this.editor.monaco.onDidChangeModelContent(() => {
this.editor.sourcecode = this.editor.monaco.getModel().getValue();
});
}, 10);
}
},
editorOptions: {
deep: true,
handler(val) {
this.editor.monaco?.updateOptions(val);
}
},
config: {
deep: true,
handler() {
+159 -50
View File
@@ -3,51 +3,141 @@
</style>
<template>
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-console-line</v-icon>Console</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="py-3">
<v-container px-0 py-0>
<v-row>
<v-col class="py-2">
<v-switch v-model="hideWaitTemperatures" label="Hide temperatures" hide-details class="mt-0"></v-switch>
</v-col>
</v-row>
<v-row>
<v-col class="py-2">
<v-switch v-model="boolCustomFilters" label="Custom filter" hide-details class="mt-0"></v-switch>
</v-col>
</v-row>
<v-row v-if="boolCustomFilters">
<v-col class="py-2">
<v-textarea
outlined
label="Rules"
v-model="customFilters"
hide-details
class="mb-2"
></v-textarea>
</v-col>
</v-row>
</v-container>
</v-card-text>
</v-card>
<div>
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-console-line</v-icon>{{ $t('Settings.ConsolePanel.Console') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="py-3">
<v-container>
<v-row>
<v-col class="rounded transition-swing secondary py-2 px-2 mb-3" style="cursor: pointer;">
<v-row align="center">
<v-col class="pl-4">
<v-switch v-model="hideWaitTemperatures" :label="$t('Settings.ConsolePanel.HideTemperatures')" hide-details class="mt-0"></v-switch>
</v-col>
</v-row>
</v-col>
</v-row>
<v-row v-for="(filter, index) in this['gui/getConsoleFilters']" v-bind:key="index">
<v-col class="rounded transition-swing secondary py-2 px-2 mb-3" style="cursor: pointer;">
<v-row align="center">
<v-col class="pl-4">
<v-switch v-model="filter.bool" @change="toggleFilter(filter)" :label="filter.name" hide-details class="mt-0"></v-switch>
</v-col>
<v-col class="col-auto text-right"><v-btn small class="minwidth-0 float-right" v-on:click.stop.prevent="editFilter(filter)"><v-icon small>mdi-pencil</v-icon></v-btn></v-col>
</v-row>
</v-col>
</v-row>
<v-row>
<v-col class="text-center mt-0">
<v-btn @click="createFilter">{{ $t('Settings.ConsolePanel.AddFilter')}}</v-btn>
</v-col>
</v-row>
</v-container>
</v-card-text>
</v-card>
<v-dialog v-model="dialog.bool" persistent :width="400">
<v-card dark>
<v-toolbar flat dense color="primary">
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-fire" left></v-icon>
{{ dialog.index === null ? $t('Settings.ConsolePanel.CreateHeadline') : $t('Settings.ConsolePanel.EditHeadline') }}
</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn small class="minwidth-0" @click="dialog.bool = false"><v-icon small>mdi-close-thick</v-icon></v-btn>
</v-toolbar>
<v-card-text class="pt-3">
<v-container class="pb-0">
<v-form
v-model="dialog.valid"
@submit.prevent="saveFilter"
>
<v-row>
<v-col>
<v-row>
<v-col class="col-12">
<v-text-field
v-model="dialog.name"
:label="$t('Settings.ConsolePanel.Name')"
hide-details="auto"
:rules="[rules.required, rules.unique]"
dense
></v-text-field>
</v-col>
</v-row>
</v-col>
</v-row>
<v-row>
<v-col>
<v-textarea
outlined
name="input-7-4"
:label="$t('Settings.ConsolePanel.Regex')"
v-model="dialog.regex"
hide-details="auto"
></v-textarea>
</v-col>
</v-row>
<v-row class="mt-3">
<v-col class="text-center">
<v-btn
color="red"
outlined
class="float-left minwidth-0"
@click="deleteFilter"
v-if="this.dialog.index !== null"
>
<v-icon>mdi-delete</v-icon>
</v-btn>
<v-btn
color="white"
outlined
:class="dialog.index !== null ? 'float-right' : '' "
type="submit"
>
{{ dialog.index === null ? $t('Settings.ConsolePanel.StoreButton') : $t('Settings.ConsolePanel.UpdateButton') }}
</v-btn>
</v-col>
</v-row>
</v-form>
</v-container>
</v-card-text>
</v-card>
</v-dialog>
</div>
</template>
<script>
import {mapGetters} from "vuex";
export default {
components: {
},
data: function() {
return {
dialog: {
bool: false,
valid: false,
name: "",
regex: "",
index: null,
},
rules: {
required: (value) => value !== '' || 'required',
unique: (value) => !this.existsPresetName(value) || 'Name already exists',
},
}
},
computed: {
...mapGetters([
'gui/getConsoleFilters',
]),
hideWaitTemperatures: {
get() {
return this.$store.state.gui.console.hideWaitTemperatures;
@@ -55,26 +145,45 @@
set(status) {
return this.$store.dispatch('gui/setSettings', { console: { hideWaitTemperatures: status } });
}
},
boolCustomFilters: {
get() {
return this.$store.state.gui.console.boolCustomFilters;
},
set(status) {
return this.$store.dispatch('gui/setSettings', { console: { boolCustomFilters: status } });
}
},
customFilters: {
get() {
return this.$store.state.gui.console.customFilters;
},
set(status) {
return this.$store.dispatch('gui/setSettings', { console: { customFilters: status } });
}
},
}
},
methods: {
existsPresetName(name) {
return (this["gui/getConsoleFilters"].findIndex((filter) => filter.name === name && filter.index !== this.dialog.index) >= 0)
},
clearDialog() {
this.dialog.bool = false
this.dialog.index = null
this.dialog.name = ""
this.dialog.regex = ""
},
createFilter() {
this.clearDialog()
this.dialog.bool = true
},
editFilter(preset) {
this.dialog.name = preset.name
this.dialog.index = preset.index
this.dialog.regex = preset.regex
this.dialog.bool = true
},
saveFilter() {
if (this.dialog.valid) {
if (this.dialog.index) {
this.$store.dispatch('gui/updateConsoleFilter', this.dialog)
} else this.$store.dispatch('gui/addConsoleFilter', this.dialog)
this.clearDialog()
}
},
toggleFilter(filter) {
this.$store.dispatch('gui/updateConsoleFilter', filter)
},
deleteFilter() {
this.$store.dispatch('gui/deleteConsoleFilter', this.dialog)
this.clearDialog()
},
}
}
</script>
+32 -12
View File
@@ -1,5 +1,7 @@
<style>
.webcamImage {
width: 100%;
}
</style>
<template>
@@ -7,7 +9,7 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-tune</v-icon>Control</span>
<span class="subheading"><v-icon left>mdi-tune</v-icon>{{ $t('Settings.ControlPanel.Control')}}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="pa-0">
@@ -15,7 +17,7 @@
<v-row>
<v-col col-6>
<v-text-field
label="Speed XY"
:label="$t('Settings.ControlPanel.SpeedXY')"
v-model="feedrateXY"
@blur="blurFeedrateXY"
type="number"
@@ -28,7 +30,7 @@
</v-col>
<v-col col-6>
<v-text-field
label="Speed Z"
:label="$t('Settings.ControlPanel.SpeedZ')"
v-model="feedrateZ"
@blur="blurFeedrateZ"
type="number"
@@ -43,14 +45,14 @@
</v-row>
<v-row>
<v-col class="py-0">
<v-switch v-model="useCross" label="Enable movement cross" hide-details="auto" class="mt-0"></v-switch>
<v-switch v-model="useCross" :label="$t('Settings.ControlPanel.EnableCross')" hide-details="auto" class="mt-0"></v-switch>
</v-col>
</v-row>
<template v-if="useCross">
<v-row>
<v-col>
<v-combobox
label="Move distances in mm"
:label="$t('Settings.ControlPanel.MoveDistancesInMm')"
v-model="stepsAll"
hide-selected
hide-details="auto"
@@ -68,7 +70,9 @@
</v-row>
<v-row>
<v-col class="pt-0">
<v-switch v-model="reverseZ" label="Reverse Z movement" hide-details="auto" class="mt-0"></v-switch>
<v-switch v-model="reverseX" :label="$t('Settings.ControlPanel.InvertXMovement')" hide-details="auto" class="mt-0"></v-switch>
<v-switch v-model="reverseY" :label="$t('Settings.ControlPanel.InvertYMovement')" hide-details="auto" class="mt-0"></v-switch>
<v-switch v-model="reverseZ" :label="$t('Settings.ControlPanel.InvertZMovement')" hide-details="auto" class="mt-0"></v-switch>
</v-col>
</v-row>
</template>
@@ -76,7 +80,7 @@
<v-row>
<v-col>
<v-combobox
label="Move distances XY in mm"
:label="$t('Settings.ControlPanel.MoveDistancesXYInMm')"
v-model="stepsXY"
hide-selected
hide-details="auto"
@@ -95,7 +99,7 @@
<v-row>
<v-col>
<v-combobox
label="Move distances Z in mm"
:label="$t('Settings.ControlPanel.MoveDistancesZInMm')"
v-model="stepsZ"
hide-selected
hide-details="auto"
@@ -118,7 +122,7 @@
<v-card class="mt-6">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-tune</v-icon>Extruder</span>
<span class="subheading"><v-icon left>mdi-tune</v-icon>{{ $t('Settings.ControlPanel.Extruder') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="pa-0">
@@ -126,7 +130,7 @@
<v-row>
<v-col>
<v-combobox
label="Move distances E in mm"
:label="$t('Settings.ControlPanel.MoveDistancesEInMm')"
v-model="feedamountsE"
hide-selected
hide-details="auto"
@@ -145,7 +149,7 @@
<v-row>
<v-col>
<v-combobox
label="Speed E in mm/s"
:label="$t('Settings.ControlPanel.SpeedEInMms')"
v-model="feedratesE"
hide-selected
hide-details="auto"
@@ -178,6 +182,22 @@
}
},
computed: {
reverseX: {
get() {
return this.$store.state.gui.dashboard.control.reverseZ;
},
set(reverseX) {
return this.$store.dispatch('gui/setSettings', { dashboard: { control: { reverseX } } })
}
},
reverseY: {
get() {
return this.$store.state.gui.dashboard.control.reverseZ;
},
set(reverseY) {
return this.$store.dispatch('gui/setSettings', { dashboard: { control: { reverseY } } })
}
},
reverseZ: {
get() {
return this.$store.state.gui.dashboard.control.reverseZ;
@@ -6,30 +6,30 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-view-dashboard</v-icon>Dashboard</span>
<span class="subheading"><v-icon left>mdi-view-dashboard</v-icon>{{ $t('Settings.DashboardPanel.Dashboard') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text>
<v-container px-0 py-0>
<v-row>
<v-col class="py-2">
<v-switch v-model="boolShowWebcamOnDashboard" label="Webcam" hide-details class="mt-0"></v-switch>
<v-switch v-model="boolShowWebcamOnDashboard" :label="$t('Settings.DashboardPanel.Webcam')" hide-details class="mt-0"></v-switch>
</v-col>
</v-row>
<v-row>
<v-col class="py-2">
<v-switch v-model="boolShowTempchartOnDashboard" label="Tempchart" hide-details class="mt-0"></v-switch>
<v-switch v-model="boolShowTempchartOnDashboard" :label="$t('Settings.DashboardPanel.Tempchart')" hide-details class="mt-0"></v-switch>
</v-col>
</v-row>
<v-row>
<v-col class="py-2">
<v-switch v-model="boolShowConsoleOnDashboard" label="Console" hide-details class="mt-0"></v-switch>
<v-switch v-model="boolShowConsoleOnDashboard" :label="$t('Settings.DashboardPanel.Console')" hide-details class="mt-0"></v-switch>
</v-col>
</v-row>
<v-row class="mt-2">
<v-col col-6>
<v-text-field
label="Chart update interval"
:label="$t('Settings.DashboardPanel.ChartUpdateInterval')"
v-model="intervalChartUpdate"
@blur="blurIntervalChartUpdate"
type="number"
@@ -42,7 +42,7 @@
</v-col>
<v-col col-6>
<v-text-field
label="Datapoint interval"
:label="$t('Settings.DashboardPanel.DatapointInterval')"
type="number"
v-model="intervalDatasetUpdate"
@blur="blurIntervalDatasetUpdate"
+47 -11
View File
@@ -2,20 +2,42 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-arrow-expand-vertical</v-icon>Endstops</span>
<span class="subheading"><v-icon left>mdi-arrow-expand-vertical</v-icon>{{ $t('Settings.EndstopPanel.Endstops')}}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="pb-0">
<v-container px-0 py-0>
<v-row v-for="(status, index) of sortEndstops" v-bind:key="index">
<v-col>
<label class="mt-1 d-inline-block">Endstop <b>{{ index.toUpperCase() }}</b></label>
<v-chip class="float-right" :color="status === 'open' ? 'green' : 'red' " text-color="white">{{ status }}</v-chip>
</v-col>
</v-row>
<div class="py-2" v-if="Object.keys(endstops).length">
<v-row v-for="(status, index) of sortEndstops" v-bind:key="index">
<v-col class="py-1">
<label class="mt-1 d-inline-block">{{ $t('Settings.EndstopPanel.Endstop')}} <b>{{ index.toUpperCase() }}</b></label>
<v-chip class="float-right" small :color="status === 'open' ? 'green' : 'red' " text-color="white">
<template v-if="status === 'open'">
{{ $t('Settings.EndstopPanel.open')}}
</template>
<template v-else>
{{ $t('Settings.EndstopPanel.TRIGGERED')}}
</template>
</v-chip>
</v-col>
</v-row>
<v-row v-if="probe !== false">
<v-col class="py-1">
<label class="mt-1 d-inline-block">Probe</label>
<v-chip class="float-right" small :color="probe ? 'red' : 'green' " text-color="white">
<template v-if="probe">
{{ $t('Settings.EndstopPanel.TRIGGERED')}}
</template>
<template v-else>
{{ $t('Settings.EndstopPanel.open')}}
</template>
</v-chip>
</v-col>
</v-row>
</div>
<v-row v-if="(Object.keys(endstops).length === 0 && endstops.constructor === Object)" >
<v-col>
<p>Press the sync-button on the right-bottom to load the current endstop status.</p>
<p>{{ $t('Settings.EndstopPanel.EndstopInfo')}}</p>
</v-col>
</v-row>
</v-container>
@@ -45,15 +67,29 @@
...mapState({
loadings: state => state.socket.loadings,
endstops: state => state.printer.endstops,
})
}),
probe: {
get() {
if (
'probe' in this.$store.state.printer &&
'last_query' in this.$store.state.printer.probe
) return this.$store.state.printer.probe.last_query
return false
}
}
},
created() {
this.getEndstops();
},
methods: {
syncEndstops() {
this.$store.commit('socket/addLoading', { name: 'queryEndstops' });
this.$socket.sendObj('printer.query_endstops.status', { }, "printer/getEndstopStatus");
this.$store.commit('socket/addLoading', { name: 'queryEndstops' })
this.$socket.sendObj('printer.query_endstops.status', { }, "printer/getEndstopStatus")
if (this.probe !== false) {
this.$store.commit('server/addEvent', { message: "QUERY_PROBE", type: 'command' })
this.$socket.sendObj('printer.gcode.script', { script: "QUERY_PROBE" })
}
},
getEndstops() {
this.sortEndstops = {};
@@ -3,29 +3,54 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-cog</v-icon>General</span>
<span class="subheading"><v-icon left>mdi-cog</v-icon>{{ $t('Settings.GeneralPanel.General') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="pt-2 pb-0">
<v-card-text>
<v-row>
<v-col>
<v-text-field
v-model="printerName"
label="Printer Name"
:label="$t('Settings.GeneralPanel.PrinterName')"
hide-details
></v-text-field>
</v-col>
</v-row>
<v-row>
<v-col>
<v-select
v-model="currentLanguage"
:items="availableLanguages"
:label="$t('Settings.GeneralPanel.Language')"
hide-details
></v-select>
</v-col>
</v-row>
<v-row>
<v-col class="py-2">
<v-switch v-model="displayCancelPrint" hide-details class="mt-0">
<template v-slot:label>
Display CANCEL_PRINT
{{ $t('Settings.GeneralPanel.DisplayCANCEL_PRINT') }}
<v-tooltip right>
<template v-slot:activator="{ on, attrs }">
<v-icon class="text--secondary ml-2" v-bind="attrs" v-on="on">mdi mdi-information</v-icon>
</template>
<span>Shows the CANCEL_PRINT button permanently - no second layer confirmation needed.</span>
<span>{{ $t('Settings.GeneralPanel.ShowCANCEL_PRINT') }}</span>
</v-tooltip>
</template>
</v-switch>
</v-col>
</v-row>
<v-row>
<v-col class="py-2">
<v-switch v-model="displayZOffsetStandby" hide-details class="mt-0">
<template v-slot:label>
{{ $t('Settings.GeneralPanel.DisplayZOffset') }}
<v-tooltip right>
<template v-slot:activator="{ on, attrs }">
<v-icon class="text--secondary ml-2" v-bind="attrs" v-on="on">mdi mdi-information</v-icon>
</template>
<span>{{ $t('Settings.GeneralPanel.ShowZOffset') }}</span>
</v-tooltip>
</template>
</v-switch>
@@ -33,7 +58,7 @@
</v-row>
<v-row>
<v-col class="text-center">
<v-btn @click="dialogResetMainsail=true" >factory reset</v-btn>
<v-btn @click="dialogResetMainsail=true" >{{ $t('Settings.GeneralPanel.FactoryReset') }}</v-btn>
</v-col>
</v-row>
</v-card-text>
@@ -43,7 +68,7 @@
<v-toolbar flat dense color="primary">
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-help-circle" left></v-icon> Factory reset
<v-icon class="mdi mdi-help-circle" left></v-icon> {{ $t('Settings.GeneralPanel.FactoryReset') }}
</span>
</v-toolbar-title>
<v-spacer></v-spacer>
@@ -54,7 +79,7 @@
<v-row>
<v-col>
<p class="text-center mb-0">Do you really want to reset mainsail to factory settings?</p>
<p class="text-center mb-0">{{ $t('Settings.GeneralPanel.FactoryInfo') }}</p>
</v-col>
</v-row>
@@ -64,7 +89,7 @@
color="red"
@click="resetMainsail"
>
reset mainsail
{{ $t('Settings.GeneralPanel.ResetMainsail') }}
</v-btn>
</v-col>
</v-row>
@@ -94,6 +119,29 @@
return this.$store.dispatch('gui/setSettings', { general: { printername: newName } })
}
},
currentLanguage: {
get() {
return this.$store.state.gui.general.language;
},
set(newVal){
return this.$store.dispatch('gui/setSettings', { general: { language: newVal } });
}
},
availableLanguages: {
get() {
const locales = require.context('@/locales', true, /[A-Za-z0-9-_,\s]+\.json$/i)
const languages = []
locales.keys().map(key=>{
languages.push({
text: locales(key).title,
value: key.match(/([A-Za-z0-9-_]+)\./i)[1]
})
})
return languages
}
},
displayCancelPrint: {
get() {
return this.$store.state.gui.general.displayCancelPrint;
@@ -102,6 +150,14 @@
return this.$store.dispatch('gui/setSettings', { general: { displayCancelPrint: displayCancelPrint } });
}
},
displayZOffsetStandby: {
get() {
return this.$store.state.gui.general.displayZOffsetStandby;
},
set(displayZOffsetStandby) {
return this.$store.dispatch('gui/setSettings', { general: { displayZOffsetStandby: displayZOffsetStandby } });
}
},
},
methods: {
resetMainsail() {
@@ -2,16 +2,16 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-speedometer</v-icon>Machine Limits</span>
<span class="subheading"><v-icon left>mdi-speedometer</v-icon>{{ $t('Settings.LimitsPanel.MachineLimits')}}</span>
</v-toolbar-title>
</v-toolbar>
<tool-slider label="Velocity" unit="mm/s" :target="current_velocity" :max="max_velocity" :default-value="max_velocity" command="SET_VELOCITY_LIMIT" attribute-name="VELOCITY=" ></tool-slider>
<tool-slider :label="$t('Settings.LimitsPanel.Velocity')" unit="mm/s" :target="current_velocity" :max="max_velocity" :default-value="max_velocity" command="SET_VELOCITY_LIMIT" attribute-name="VELOCITY=" ></tool-slider>
<v-divider></v-divider>
<tool-slider label="Acceleration" unit="mm/s²" :target="current_accel" :max="max_accel" :default-value="max_accel" command="SET_VELOCITY_LIMIT" attribute-name="ACCEL=" ></tool-slider>
<tool-slider :label="$t('Settings.LimitsPanel.Acceleration')" unit="mm/s²" :target="current_accel" :max="max_accel" :default-value="max_accel" command="SET_VELOCITY_LIMIT" attribute-name="ACCEL=" ></tool-slider>
<v-divider></v-divider>
<tool-slider label="Deceleration" unit="mm/s²" :target="current_accel_to_decel" :max="max_accel_to_decel" :default-value="max_accel_to_decel" command="SET_VELOCITY_LIMIT" attribute-name="ACCEL_TO_DECEL=" ></tool-slider>
<tool-slider :label="$t('Settings.LimitsPanel.Deceleration')" unit="mm/s²" :target="current_accel_to_decel" :max="max_accel_to_decel" :default-value="max_accel_to_decel" command="SET_VELOCITY_LIMIT" attribute-name="ACCEL_TO_DECEL=" ></tool-slider>
<v-divider></v-divider>
<tool-slider label="Square corner velocity" unit="mm/s" :target="current_square_corner_velocity" :max="max_square_corner_velocity" :default-value="max_square_corner_velocity" command="SET_VELOCITY_LIMIT" attribute-name="SQUARE_CORNER_VELOCITY=" ></tool-slider>
<tool-slider :label="$t('Settings.LimitsPanel.SquareCornerVelocity')" unit="mm/s" :target="current_square_corner_velocity" :max="max_square_corner_velocity" :default-value="max_square_corner_velocity" command="SET_VELOCITY_LIMIT" attribute-name="SQUARE_CORNER_VELOCITY=" ></tool-slider>
</v-card>
</template>
@@ -2,17 +2,17 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-file-document-edit</v-icon>Logfiles</span>
<span class="subheading"><v-icon left>mdi-file-document-edit</v-icon>{{ $t("Settings.LogfilesPanel.Logfiles")}}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text :class="'text-center text-lg-left py-0'">
<v-container pb-0 px-0>
<v-row>
<v-col :class="'col-12' +(klippy_state !== 'ready' ? 'col-md-6' : 'col-md-12')+ ''">
<v-btn :href="'//'+hostname+':'+port+'/server/files/klippy.log'" block color="primary"><v-icon class="mr-2">mdi-download</v-icon>Klipper</v-btn>
<v-btn :href="'//'+hostname+':'+port+'/server/files/klippy.log'" @click="downloadLog" block color="primary"><v-icon class="mr-2">mdi-download</v-icon>Klipper</v-btn>
</v-col>
<v-col :class="'col-12 pt-0 ' +(klippy_state !== 'ready' ? 'col-md-6 mt-md-3 ' : 'col-md-12')+ ''">
<v-btn :href="'//'+hostname+':'+port+'/server/files/moonraker.log'" block color="primary"><v-icon class="mr-2">mdi-download</v-icon>Moonraker</v-btn>
<v-btn :href="'//'+hostname+':'+port+'/server/files/moonraker.log'" @click="downloadLog" block color="primary"><v-icon class="mr-2">mdi-download</v-icon>Moonraker</v-btn>
</v-col>
</v-row>
</v-container>
@@ -39,5 +39,15 @@
klippy_state: state => state.server.klippy_state,
}),
},
methods: {
downloadLog(event) {
event.preventDefault()
let href = ""
if ('href' in event.target.attributes) href = event.target.attributes.href.value;
if ('href' in event.target.parentElement.attributes) href = event.target.parentElement.attributes.href.value;
window.open(href)
}
}
}
</script>
@@ -3,7 +3,7 @@
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-code-tags</v-icon>Macros</span>
<span class="subheading"><v-icon left>mdi-code-tags</v-icon>{{ $t('Settings.MacrosPanel.Macros') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="py-3">
@@ -15,7 +15,7 @@
</v-row>
<v-row v-if="this['printer/getAllMacros'].length === 0">
<v-col>
<p class="mb-0 text-center font-italic">No macros found...</p>
<p class="mb-0 text-center font-italic">{{ $t('Settings.MacrosPanel.NOMacros') }}</p>
</v-col>
</v-row>
</v-container>
Loaded 100 of 175 files, more files were not shown because too many files have changed in this diff. Show more