Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ebd3a8396 | ||
|
|
eaba28e24b | ||
|
|
51602fe69c | ||
|
|
ee6a603fae | ||
|
|
34f2eb3189 | ||
|
|
b6cfb0fd88 | ||
|
|
5d2400ccbe | ||
|
|
a75b133dea | ||
|
|
f1ab29e4e6 | ||
|
|
bc5731e0bf | ||
|
|
44309b37df | ||
|
|
fbead2efb1 | ||
|
|
b6c2901908 | ||
|
|
3f4eeadb6f | ||
|
|
678eda0e8c | ||
|
|
3784d8e9c0 | ||
|
|
ae1fa8736a | ||
|
|
30b0469ffd | ||
|
|
7ab6f32d3a | ||
|
|
f60811255f | ||
|
|
47dd6ad6d9 | ||
|
|
64f7c2bebd | ||
|
|
d4b1be9fcc | ||
|
|
1779cca828 | ||
|
|
46e8821821 | ||
|
|
470a00c288 | ||
|
|
ad52728131 | ||
|
|
5d94063973 | ||
|
|
0bcfc4b582 | ||
|
|
57aa96420c | ||
|
|
eef899c19e | ||
|
|
94c1f35f9c | ||
|
|
ed82856140 | ||
|
|
a581be6aec | ||
|
|
a2d90df97c | ||
|
|
6fa1c28bc4 | ||
|
|
86ab389b32 | ||
|
|
88c78518d2 | ||
|
|
0a2a2fd3c5 | ||
|
|
f4e07b7278 | ||
|
|
96578bb95c | ||
|
|
3262e0cfc1 | ||
|
|
ae6667e259 | ||
|
|
7553d4e6c8 | ||
|
|
97298f92dc | ||
|
|
05e88f6ee9 | ||
|
|
216099c524 | ||
|
|
c38d770b69 | ||
|
|
4ab2def2f8 | ||
|
|
41584b47f7 | ||
|
|
8a4a4ce234 | ||
|
|
5a44322ac2 | ||
|
|
9069617de6 | ||
|
|
08b60c0072 | ||
|
|
6b8f56985a | ||
|
|
de673810c3 | ||
|
|
5efbd50024 | ||
|
|
19928e3244 | ||
|
|
fb714fc904 | ||
|
|
45a4113420 | ||
|
|
09e92caa43 | ||
|
|
ceb4ff395c | ||
|
|
ced16fbc1b | ||
|
|
d6e4fc09d6 | ||
|
|
f12d0dd89b | ||
|
|
4c681d5de1 | ||
|
|
d161cf875c | ||
|
|
a9bb288407 | ||
|
|
5495d53cd3 | ||
|
|
bb9d10e00c | ||
|
|
6597c9cdc2 | ||
|
|
8ded071403 | ||
|
|
4fdd49fb27 | ||
|
|
34f44a00b7 | ||
|
|
8bc17d01b3 | ||
|
|
ec44294441 | ||
|
|
4cc9c90a30 | ||
|
|
645575ea31 | ||
|
|
d12f1cbb32 | ||
|
|
877c7ee861 | ||
|
|
c6934d751f | ||
|
|
9cb63ee193 | ||
|
|
a24c6bd90e | ||
|
|
b6fa2e3d83 | ||
|
|
b7e58d98ff | ||
|
|
6a9aef4785 | ||
|
|
890d32c2cf | ||
|
|
16a09e006f | ||
|
|
9a270c5054 | ||
|
|
806ac9cd6a | ||
|
|
bf3077d858 | ||
|
|
2a85e8999f | ||
|
|
875035f6f3 | ||
|
|
60c218fe18 | ||
|
|
89f2b2ce0b | ||
|
|
7e9a274ff7 | ||
|
|
d4cd31291d | ||
|
|
840d8c1c96 | ||
|
|
4340b15ee0 | ||
|
|
eb88bc703b | ||
|
|
eecd24a8d6 | ||
|
|
2f1fd2788e | ||
|
|
6554f5b084 | ||
|
|
0338efd914 | ||
|
|
e8583181e1 | ||
|
|
feeee61ffb | ||
|
|
e6eb4fae18 | ||
|
|
cb2da07479 | ||
|
|
bad3a842e8 | ||
|
|
6e97cf24f2 | ||
|
|
4a88b74bb7 | ||
|
|
ca298eba0f | ||
|
|
ed3ef6adfc | ||
|
|
e7e87eb20d | ||
|
|
e3f15325c1 | ||
|
|
55ab7395e2 | ||
|
|
310e0342c1 | ||
|
|
5f784aa4f5 | ||
|
|
03b8b591b4 | ||
|
|
581cd2b306 | ||
|
|
48b84f9ffd | ||
|
|
9627f6248d | ||
|
|
94896ac4f8 | ||
|
|
adf31153eb | ||
|
|
8ed9f33dc0 | ||
|
|
931d0a6d50 | ||
|
|
c81311bc61 | ||
|
|
c6d4e0630f | ||
|
|
f0481501d5 | ||
|
|
7a9f601a4a | ||
|
|
a307b4e784 | ||
|
|
c9696ad1f8 | ||
|
|
dd9c71a3bb | ||
|
|
1aeaf7d36f | ||
|
|
4d52d9660e | ||
|
|
d1a1d43701 | ||
|
|
a45d6d2c2e | ||
|
|
42ed8bb548 | ||
|
|
e9b1b7963b | ||
|
|
0909dc1357 | ||
|
|
b5b1b44c8d | ||
|
|
76f98caa25 | ||
|
|
4ef29d3ad3 | ||
|
|
922143554b | ||
|
|
bd1fd1fb12 | ||
|
|
4335175daa | ||
|
|
5e0198e259 | ||
|
|
ee18b4cc33 | ||
|
|
bafde49d15 | ||
|
|
243f0d7df0 | ||
|
|
86d75bce77 | ||
|
|
330dee04ed | ||
|
|
0a0c456faa | ||
|
|
4ece97a535 | ||
|
|
3984a40fd9 | ||
|
|
f90fc81634 | ||
|
|
2f81bf390f | ||
|
|
e53d5056dd | ||
|
|
ae82bfe7f7 | ||
|
|
05f5da93d3 | ||
|
|
20a969ebcd | ||
|
|
b99463ee99 | ||
|
|
332ed154d4 | ||
|
|
1e10e34449 | ||
|
|
ec8bcc7fd8 | ||
|
|
8c60877ffe | ||
|
|
a15ddd82bb | ||
|
|
a02963cc88 | ||
|
|
182d7f146e | ||
|
|
1582d886aa | ||
|
|
62ccb1f97d | ||
|
|
5f93aac095 | ||
|
|
6b7894eadc | ||
|
|
d21b080c2b | ||
|
|
c75b621951 | ||
|
|
f8f730e379 | ||
|
|
fc06389f32 | ||
|
|
4d2a61b8b7 | ||
|
|
92a848747a | ||
|
|
af6254a8a7 | ||
|
|
89bc5d6e7d | ||
|
|
39fd77d065 | ||
|
|
ea67e9fa38 | ||
|
|
13233ca878 | ||
|
|
f8842ff070 | ||
|
|
b43cb4efb4 | ||
|
|
7979eaac9b | ||
|
|
951de0e5e7 | ||
|
|
239b4d8525 | ||
|
|
89876a2500 | ||
|
|
7ce9dc30a6 | ||
|
|
11c64e084e | ||
|
|
49b806a10e | ||
|
|
e294a5cdc0 | ||
|
|
4803df5d5d | ||
|
|
2144888ef8 | ||
|
|
ebc61c4e4b | ||
|
|
3dae42edb0 | ||
|
|
d147a92695 | ||
|
|
4ea2721b75 | ||
|
|
5b3e662062 | ||
|
|
9d2ba3b022 | ||
|
|
31327e581d | ||
|
|
ea95381410 | ||
|
|
af6b45bd92 | ||
|
|
a81a486602 | ||
|
|
dd2c8c58ca | ||
|
|
32310bad29 | ||
|
|
eadc796e01 | ||
|
|
dc9d3361a0 | ||
|
|
6d5a31cc39 | ||
|
|
10a867227f | ||
|
|
f93ee19b9a | ||
|
|
d3c1d1409d | ||
|
|
5eab1917bd | ||
|
|
c8551abdda | ||
|
|
fbc3afd69e | ||
|
|
65acd0f190 | ||
|
|
58bbe40a8c | ||
|
|
638dd0dcb3 | ||
|
|
5b622fdcd9 | ||
|
|
395ead7ce1 | ||
|
|
2c38aad7fd | ||
|
|
1c1ce285bd | ||
|
|
bb15bbec08 | ||
|
|
542e094348 | ||
|
|
61232dfd95 | ||
|
|
5dbffdb167 | ||
|
|
7ae0fe2209 | ||
|
|
855959a1f9 | ||
|
|
4d38b019be | ||
|
|
2cf4d8ba58 | ||
|
|
62afec1934 | ||
|
|
5f40c54160 | ||
|
|
3c570cadfe | ||
|
|
4f42092159 | ||
|
|
b2f6e7dc08 | ||
|
|
44c43a6fb5 | ||
|
|
f83d33b20d | ||
|
|
c0a1bdd1d6 | ||
|
|
3e4c73e381 | ||
|
|
005ed8814b | ||
|
|
41b21aa66e | ||
|
|
62e2147f0b | ||
|
|
f482b57c71 | ||
|
|
673fd9f879 | ||
|
|
586977cc89 | ||
|
|
2f88def03a | ||
|
|
cc85e2a441 | ||
|
|
13e305e9e7 | ||
|
|
fb0bc9755e | ||
|
|
b2447ee9d9 | ||
|
|
f1094e9c29 | ||
|
|
29364f7403 | ||
|
|
b078b141f1 | ||
|
|
5659365588 | ||
|
|
c27857d1bb | ||
|
|
b8c93bdb0f | ||
|
|
c8df1418d1 | ||
|
|
3c7f9ae7ba | ||
|
|
e896590eb0 | ||
|
|
99dde5405d | ||
|
|
aa6221f1d3 | ||
|
|
c346510cdf | ||
|
|
aed9caef6b | ||
|
|
3cf493db73 | ||
|
|
d4670c5f0e | ||
|
|
5a37e67420 | ||
|
|
3cfa85fc2b | ||
|
|
a13f9d9a92 | ||
|
|
6e63324187 | ||
|
|
61c2f8426d | ||
|
|
eb1e1d4f5c | ||
|
|
0f13d2efc1 | ||
|
|
166ffff875 | ||
|
|
be065e88f8 | ||
|
|
65855544eb | ||
|
|
dd5197f1ce | ||
|
|
54d3484d02 | ||
|
|
d39e6b587c | ||
|
|
ff0c58a901 | ||
|
|
f7e9b50806 | ||
|
|
b8428c498e | ||
|
|
9dbde140d8 | ||
|
|
7b08ae5ff7 | ||
|
|
9b9d39c1a7 | ||
|
|
00caf8a655 | ||
|
|
da3f8b2907 | ||
|
|
af098460df | ||
|
|
5af6c07fdf | ||
|
|
b6703c84f1 | ||
|
|
ef9b17a9f4 | ||
|
|
94d445c9fe | ||
|
|
3f0d595a9d | ||
|
|
d5218ca059 | ||
|
|
ca39f4d91c | ||
|
|
90572482ce | ||
|
|
bcb541f470 | ||
|
|
c7b70d2cf4 | ||
|
|
be0d1433cd | ||
|
|
e47257386c | ||
|
|
ca926a5ce1 | ||
|
|
c41ea7aebc | ||
|
|
15191784b3 | ||
|
|
24cf380b17 | ||
|
|
6bd2977190 | ||
|
|
0e6897a295 | ||
|
|
da28b87ae1 | ||
|
|
f27b038fa6 | ||
|
|
f70a6b6d99 | ||
|
|
2b09a5c927 | ||
|
|
639866ac80 | ||
|
|
2403fca28c | ||
|
|
5171564d49 | ||
|
|
dc379e544a | ||
|
|
3b13444859 | ||
|
|
260fa11362 | ||
|
|
008351359b | ||
|
|
3c6bbd228a | ||
|
|
ad25c421be | ||
|
|
b6223af123 | ||
|
|
63aae04794 | ||
|
|
dd36ffa925 | ||
|
|
2aa459e13e | ||
|
|
ce35a112e5 | ||
|
|
97247184d9 | ||
|
|
37d1867bd6 | ||
|
|
99f5325fe8 | ||
|
|
8911ee2633 | ||
|
|
77b2b235f1 | ||
|
|
65d23b3ded | ||
|
|
218b660a13 | ||
|
|
30261a076e | ||
|
|
e58ce07db1 | ||
|
|
be470f91f7 | ||
|
|
7c5f613f5a | ||
|
|
601c52af40 | ||
|
|
0cf99e8bba | ||
|
|
9437da4444 | ||
|
|
189c7e428f | ||
|
|
96f8a68448 | ||
|
|
4f0e06f285 | ||
|
|
c6c67996b5 | ||
|
|
3aa386b5a4 | ||
|
|
52d07b7f45 | ||
|
|
102d429a40 | ||
|
|
8cc9018b58 | ||
|
|
037e610136 | ||
|
|
105a493a74 | ||
|
|
824c68f766 | ||
|
|
7c60c9dd35 | ||
|
|
0f425d30be | ||
|
|
39fd216836 | ||
|
|
adea64249a | ||
|
|
0f6168dc04 | ||
|
|
4832fa09eb | ||
|
|
29f41b029a | ||
|
|
f4a3de15ca | ||
|
|
1d40c8aeb2 | ||
|
|
d0de862af1 | ||
|
|
74cb2384e1 | ||
|
|
4cb68488b7 | ||
|
|
bfa4e2524c | ||
|
|
50dbc468e8 | ||
|
|
30fce076bd | ||
|
|
390a3ef571 | ||
|
|
370c104f56 | ||
|
|
895bdf1db7 | ||
|
|
19e2d36fdf | ||
|
|
5a5f0c5fb3 | ||
|
|
d197b78490 | ||
|
|
bf06dd67c5 | ||
|
|
382943ab7c | ||
|
|
45f200b40b | ||
|
|
58ddf91f85 | ||
|
|
6999f0a724 | ||
|
|
183b5d8e8e | ||
|
|
5c83992021 | ||
|
|
fe6fb1c209 | ||
|
|
8a29847465 | ||
|
|
126c8c40f7 | ||
|
|
0fb55444f7 | ||
|
|
069e689306 | ||
|
|
f53d895f4e | ||
|
|
ca3e9ed161 | ||
|
|
51214fa701 | ||
|
|
b325224dbe | ||
|
|
885df927e8 | ||
|
|
f1f8aeebc1 | ||
|
|
2ecb3e461c | ||
|
|
2d743eaa37 | ||
|
|
fd1f70649f | ||
|
|
aefd4caf5e | ||
|
|
9f8db4856a | ||
|
|
1b679e0185 | ||
|
|
10c530454e | ||
|
|
79c490b1a6 | ||
|
|
4c4742bc7e | ||
|
|
f304039a2f | ||
|
|
237195b02d | ||
|
|
7a55cad11d | ||
|
|
ed7b8c4b24 | ||
|
|
f887d4ee05 | ||
|
|
2308d70d5c | ||
|
|
e594ba7ab6 | ||
|
|
76453e86f2 | ||
|
|
1fda940f11 | ||
|
|
c642fc2b15 | ||
|
|
34a3b66b5d | ||
|
|
ac83670212 | ||
|
|
6ed16758af | ||
|
|
f8b2e7f1ea | ||
|
|
5d28ce7427 | ||
|
|
90343478a7 | ||
|
|
83294f757a | ||
|
|
baa25c4bcd | ||
|
|
84e86bb8b2 | ||
|
|
1c2e8b470e | ||
|
|
36ca7b99a0 | ||
|
|
80db327188 | ||
|
|
cb874c1918 | ||
|
|
f929610bad | ||
|
|
d30161620f | ||
|
|
13537cef35 | ||
|
|
20439269b1 | ||
|
|
75246d58d1 | ||
|
|
de3e4200e5 | ||
|
|
edc10f4815 | ||
|
|
b5b1f0d03a | ||
|
|
3e219e24ac | ||
|
|
844363f004 | ||
|
|
cc292f090e | ||
|
|
d8de425d69 | ||
|
|
037db5f14a | ||
|
|
1529261f6a | ||
|
|
776f35889b | ||
|
|
d224a320fd | ||
|
|
8f9b295340 | ||
|
|
bf0bde624e | ||
|
|
cc010354ca | ||
|
|
01aa9e12e4 | ||
|
|
a02fa9975c | ||
|
|
cb7df834a2 | ||
|
|
51fa7bda9e | ||
|
|
2c96d724ce | ||
|
|
dff099c5aa | ||
|
|
7895910a08 | ||
|
|
7819bc966d | ||
|
|
e10fd11acd | ||
|
|
c2c5592452 | ||
|
|
9f2a54100b | ||
|
|
a9cc16911d | ||
|
|
9bd2f7bdf5 | ||
|
|
83347fa35d | ||
|
|
4eabaf3971 | ||
|
|
bb1b548db9 | ||
|
|
f693e40fc1 | ||
|
|
38c4da2f43 | ||
|
|
0ed0975005 | ||
|
|
97c06c3061 | ||
|
|
76727a82dc | ||
|
|
d8aea8feb7 | ||
|
|
57fbe9eb7c | ||
|
|
600186e895 | ||
|
|
f346db30fc | ||
|
|
598a7fe94f | ||
|
|
6096704fe5 | ||
|
|
a0a3aa79ac | ||
|
|
1919aa6921 | ||
|
|
576e0eaada | ||
|
|
bf5851264d | ||
|
|
1cbe7d1164 | ||
|
|
84eed4c190 | ||
|
|
11f46e8ec8 | ||
|
|
abb19a4ac9 | ||
|
|
5f0b628f6e | ||
|
|
f6679effd9 | ||
|
|
ee4a07c9b2 | ||
|
|
b49c57405c | ||
|
|
71db147a19 | ||
|
|
8a66899837 | ||
|
|
64d6dd596d | ||
|
|
091b78c569 | ||
|
|
5e09f52a79 | ||
|
|
ddbab8538a | ||
|
|
2865a8f83a | ||
|
|
b09615dc2f | ||
|
|
365ed2cda7 | ||
|
|
d578c9105c | ||
|
|
3df44b05e2 | ||
|
|
025921e84a |
No files matched your search
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"root": true,
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"eslint:recommended",
|
||||
"@vue/typescript"
|
||||
],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parser": "vue-eslint-parser",
|
||||
"parserOptions": {
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"vue"
|
||||
],
|
||||
"rules": {
|
||||
"indent": [
|
||||
"error",
|
||||
4
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"never"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
# Contributor Code of Conduct
|
||||
|
||||
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
||||
|
||||
We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
||||
|
||||
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
||||
@@ -0,0 +1,45 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Build
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the develop branch
|
||||
push:
|
||||
branches: [ develop ]
|
||||
pull_request:
|
||||
branches: [ develop ]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: Fetch repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Copy output
|
||||
run: cp ${{ github.workspace }}/dist/mainsail.zip mainsail-latest.zip
|
||||
|
||||
- uses: actions/upload-artifact@v2.2.4
|
||||
with:
|
||||
name: mainsail-latest.zip
|
||||
path: mainsail-latest.zip
|
||||
@@ -20,3 +20,4 @@ docker/config/*.cfg
|
||||
docker/config/*.conf
|
||||
docker/config/.mainsail.json
|
||||
docker/config/.theme
|
||||
.env
|
||||
@@ -0,0 +1,42 @@
|
||||
# Mainsail Contributing Guide
|
||||
|
||||
Hi! I'm really excited that you are interested in contributing to Mainsail. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
|
||||
|
||||
- [Code of Conduct](https://github.com/meteyou/mainsail/.github/CODE_OF_CONDUCT.md)
|
||||
- [Issue Reporting Guidelines](#issue-reporting-guidelines)
|
||||
- [Pull Request Guidelines](#pull-request-guidelines)
|
||||
|
||||
## Issue Reporting Guidelines
|
||||
|
||||
- Use [https://github.com/meteyou/mainsail/issues](https://github.com/meteyou/mainsail/issues) to create new issues.
|
||||
|
||||
## Pull Request Guidelines
|
||||
|
||||
- The `master` branch is just a snapshot of the latest stable release. All development should be done in dedicated branches. **Do not submit PRs against the `master` branch.**
|
||||
|
||||
- Checkout a topic branch from the relevant branch, e.g. `develop`, and merge back against that branch.
|
||||
|
||||
- It's OK to have multiple small commits as you work on the PR - GitHub will automatically squash it before merging.
|
||||
|
||||
- If adding a new feature:
|
||||
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
|
||||
|
||||
- If fixing bug:
|
||||
- If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log, e.g. `update entities encoding/decoding (fix #3899)`.
|
||||
- Provide a detailed description of the bug in the PR. Live demo preferred.
|
||||
- Add appropriate test coverage if applicable.
|
||||
|
||||
## Committing Changes
|
||||
|
||||
Commit messages should follow the [commit message convention](https://www.conventionalcommits.org/en/v1.0.0/) so that changelogs can be automatically generated.
|
||||
|
||||
## Financial Contribution
|
||||
|
||||
As a pure community-driven project without major corporate backing, we also welcome financial contributions via Patreon and OpenCollective.
|
||||
|
||||
- [Become a supporter on Patreon](https://patreon.com/meteyou)
|
||||
- [One-time donation via Ko-Fi](https://ko-fi.com/mainsail)
|
||||
|
||||
## Credits
|
||||
|
||||
Thank you to all the people who have already contributed to Mainsail!
|
||||
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
||||
@@ -1,590 +0,0 @@
|
||||
const converter = require('monaco-vscode-textmate-theme-converter');
|
||||
const fs = require('fs');
|
||||
|
||||
const converted = converter.convertTheme({
|
||||
"$schema": "vscode://schemas/color-theme",
|
||||
"type": "dark",
|
||||
"colors": {
|
||||
"activityBarBadge.background": "#007acc",
|
||||
"editor.background": "#1e1e1e",
|
||||
"editor.foreground": "#d4d4d4",
|
||||
"editor.inactiveSelectionBackground": "#3a3d41",
|
||||
"editor.selectionHighlightBackground": "#add6ff26",
|
||||
"editorIndentGuide.activeBackground": "#707070",
|
||||
"editorIndentGuide.background": "#404040",
|
||||
"input.placeholderForeground": "#a6a6a6",
|
||||
"list.dropBackground": "#383b3d",
|
||||
"menu.background": "#252526",
|
||||
"menu.foreground": "#cccccc",
|
||||
"sideBarSectionHeader.background": "#00000000",
|
||||
"sideBarSectionHeader.border": "#cccccc33",
|
||||
"sideBarTitle.foreground": "#bbbbbb",
|
||||
"statusBarItem.remoteBackground": "#16825d",
|
||||
"statusBarItem.remoteForeground": "#ffffff",
|
||||
"tab.lastPinnedBorder": "#cccccc33",
|
||||
},
|
||||
"tokenColors": [
|
||||
{
|
||||
"scope": [
|
||||
"meta.embedded",
|
||||
"source.groovy.embedded"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "emphasis",
|
||||
"settings": {
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "strong",
|
||||
"settings": {
|
||||
"fontStyle": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "header",
|
||||
"settings": {
|
||||
"foreground": "#000080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "comment",
|
||||
"settings": {
|
||||
"foreground": "#6A9955"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "constant.language",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"constant.numeric",
|
||||
"variable.other.enummember",
|
||||
"keyword.operator.plus.exponent",
|
||||
"keyword.operator.minus.exponent"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#B5CEA8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "constant.regexp",
|
||||
"settings": {
|
||||
"foreground": "#646695"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "entity.name.tag",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "entity.name.tag.css",
|
||||
"settings": {
|
||||
"foreground": "#D7BA7D"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "entity.other.attribute-name",
|
||||
"settings": {
|
||||
"foreground": "#9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"entity.other.attribute-name.class.css",
|
||||
"entity.other.attribute-name.class.mixin.css",
|
||||
"entity.other.attribute-name.id.css",
|
||||
"entity.other.attribute-name.parent-selector.css",
|
||||
"entity.other.attribute-name.pseudo-class.css",
|
||||
"entity.other.attribute-name.pseudo-element.css",
|
||||
"source.css.less entity.other.attribute-name.id",
|
||||
"entity.other.attribute-name.scss"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#D7BA7D"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "invalid",
|
||||
"settings": {
|
||||
"foreground": "#F44747"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.underline",
|
||||
"settings": {
|
||||
"fontStyle": "underline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.bold",
|
||||
"settings": {
|
||||
"foreground": "#569CD6",
|
||||
"fontStyle": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.heading",
|
||||
"settings": {
|
||||
"foreground": "#569CD6",
|
||||
"fontStyle": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.italic",
|
||||
"settings": {
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.inserted",
|
||||
"settings": {
|
||||
"foreground": "#B5CEA8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.deleted",
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.changed",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "punctuation.definition.quote.begin.markdown",
|
||||
"settings": {
|
||||
"foreground": "#6A9955"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "punctuation.definition.list.begin.markdown",
|
||||
"settings": {
|
||||
"foreground": "#6796E6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "markup.inline.raw",
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "punctuation.definition.tag",
|
||||
"settings": {
|
||||
"foreground": "#808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"meta.preprocessor",
|
||||
"entity.name.function.preprocessor"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "meta.preprocessor.string",
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "meta.preprocessor.numeric",
|
||||
"settings": {
|
||||
"foreground": "#B5CEA8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "meta.structure.dictionary.key.python",
|
||||
"settings": {
|
||||
"foreground": "#9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "meta.diff.header",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "storage",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "storage.type",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"storage.modifier",
|
||||
"keyword.operator.noexcept"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"string",
|
||||
"meta.embedded.assembly"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "string.tag",
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "string.value",
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "string.regexp",
|
||||
"settings": {
|
||||
"foreground": "#D16969"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"punctuation.definition.template-expression.begin",
|
||||
"punctuation.definition.template-expression.end",
|
||||
"punctuation.section.embedded"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"meta.template.expression"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"support.type.vendored.property-name",
|
||||
"support.type.property-name",
|
||||
"variable.css",
|
||||
"variable.scss",
|
||||
"variable.other.less",
|
||||
"source.coffee.embedded"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "keyword",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "keyword.control",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "keyword.operator",
|
||||
"settings": {
|
||||
"foreground": "#D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"keyword.operator.new",
|
||||
"keyword.operator.expression",
|
||||
"keyword.operator.cast",
|
||||
"keyword.operator.sizeof",
|
||||
"keyword.operator.alignof",
|
||||
"keyword.operator.typeid",
|
||||
"keyword.operator.alignas",
|
||||
"keyword.operator.instanceof",
|
||||
"keyword.operator.logical.python",
|
||||
"keyword.operator.wordlike"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "keyword.other.unit",
|
||||
"settings": {
|
||||
"foreground": "#B5CEA8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"punctuation.section.embedded.begin.php",
|
||||
"punctuation.section.embedded.end.php"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "support.function.git-rebase",
|
||||
"settings": {
|
||||
"foreground": "#9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "constant.sha.git-rebase",
|
||||
"settings": {
|
||||
"foreground": "#B5CEA8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"storage.modifier.import.java",
|
||||
"variable.language.wildcard.java",
|
||||
"storage.modifier.package.java"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "variable.language",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"entity.name.function",
|
||||
"support.function",
|
||||
"support.constant.handlebars",
|
||||
"source.powershell variable.other.member",
|
||||
"entity.name.operator.custom-literal"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#DCDCAA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"meta.return-type",
|
||||
"support.class",
|
||||
"support.type",
|
||||
"entity.name.type",
|
||||
"entity.name.namespace",
|
||||
"entity.other.attribute",
|
||||
"entity.name.scope-resolution",
|
||||
"entity.name.class",
|
||||
"storage.type.numeric.go",
|
||||
"storage.type.byte.go",
|
||||
"storage.type.boolean.go",
|
||||
"storage.type.string.go",
|
||||
"storage.type.uintptr.go",
|
||||
"storage.type.error.go",
|
||||
"storage.type.rune.go",
|
||||
"storage.type.cs",
|
||||
"storage.type.generic.cs",
|
||||
"storage.type.modifier.cs",
|
||||
"storage.type.variable.cs",
|
||||
"storage.type.annotation.java",
|
||||
"storage.type.generic.java",
|
||||
"storage.type.java",
|
||||
"storage.type.object.array.java",
|
||||
"storage.type.primitive.array.java",
|
||||
"storage.type.primitive.java",
|
||||
"storage.type.token.java",
|
||||
"storage.type.groovy",
|
||||
"storage.type.annotation.groovy",
|
||||
"storage.type.parameters.groovy",
|
||||
"storage.type.generic.groovy",
|
||||
"storage.type.object.array.groovy",
|
||||
"storage.type.primitive.array.groovy",
|
||||
"storage.type.primitive.groovy"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#4EC9B0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"meta.type.cast.expr",
|
||||
"meta.type.new.expr",
|
||||
"support.constant.math",
|
||||
"support.constant.dom",
|
||||
"support.constant.json",
|
||||
"entity.other.inherited-class"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#4EC9B0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"keyword.control",
|
||||
"source.cpp keyword.operator.new",
|
||||
"keyword.operator.delete",
|
||||
"keyword.other.using",
|
||||
"keyword.other.operator",
|
||||
"entity.name.operator"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#C586C0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"variable",
|
||||
"meta.definition.variable.name",
|
||||
"support.variable",
|
||||
"entity.name.variable"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"variable.other.constant",
|
||||
"variable.other.enummember"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#4FC1FF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"meta.object-literal.key"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"support.constant.property-value",
|
||||
"support.constant.font-name",
|
||||
"support.constant.media-type",
|
||||
"support.constant.media",
|
||||
"constant.other.color.rgb-value",
|
||||
"constant.other.rgb-value",
|
||||
"support.constant.color"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"punctuation.definition.group.regexp",
|
||||
"punctuation.definition.group.assertion.regexp",
|
||||
"punctuation.definition.character-class.regexp",
|
||||
"punctuation.character.set.begin.regexp",
|
||||
"punctuation.character.set.end.regexp",
|
||||
"keyword.operator.negation.regexp",
|
||||
"support.other.parenthesis.regexp"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"constant.character.character-class.regexp",
|
||||
"constant.other.character-class.set.regexp",
|
||||
"constant.other.character-class.regexp",
|
||||
"constant.character.set.regexp"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#D16969"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": [
|
||||
"keyword.operator.or.regexp",
|
||||
"keyword.control.anchor.regexp"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#DCDCAA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "keyword.operator.quantifier.regexp",
|
||||
"settings": {
|
||||
"foreground": "#D7BA7D"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "constant.character",
|
||||
"settings": {
|
||||
"foreground": "#569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "constant.character.escape",
|
||||
"settings": {
|
||||
"foreground": "#D7BA7D"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "entity.name.label",
|
||||
"settings": {
|
||||
"foreground": "#C8C8C8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "token.info-token",
|
||||
"settings": {
|
||||
"foreground": "#6796E6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "token.warn-token",
|
||||
"settings": {
|
||||
"foreground": "#CD9731"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "token.error-token",
|
||||
"settings": {
|
||||
"foreground": "#F44747"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scope": "token.debug-token",
|
||||
"settings": {
|
||||
"foreground": "#B267E6"
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
fs.writeFile('converted.json', JSON.stringify(converted), (err) => {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
console.log('converted');
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{"inherit":false,"base":"vs-dark","colors":{"activityBarBadge.background":"#007acc","editor.background":"#1e1e1e","editor.foreground":"#d4d4d4","editor.inactiveSelectionBackground":"#3a3d41","editor.selectionHighlightBackground":"#add6ff26","editorIndentGuide.activeBackground":"#707070","editorIndentGuide.background":"#404040","input.placeholderForeground":"#a6a6a6","list.dropBackground":"#383b3d","menu.background":"#252526","menu.foreground":"#cccccc","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.border":"#cccccc33","sideBarTitle.foreground":"#bbbbbb","statusBarItem.remoteBackground":"#16825d","statusBarItem.remoteForeground":"#ffffff","tab.lastPinnedBorder":"#cccccc33"},"rules":[{"foreground":"#D4D4D4","token":"meta.embedded"},{"foreground":"#D4D4D4","token":"source.groovy.embedded"},{"fontStyle":"italic","token":"emphasis"},{"fontStyle":"bold","token":"strong"},{"foreground":"#000080","token":"header"},{"foreground":"#6A9955","token":"comment"},{"foreground":"#569CD6","token":"constant.language"},{"foreground":"#B5CEA8","token":"constant.numeric"},{"foreground":"#B5CEA8","token":"variable.other.enummember"},{"foreground":"#B5CEA8","token":"keyword.operator.plus.exponent"},{"foreground":"#B5CEA8","token":"keyword.operator.minus.exponent"},{"foreground":"#646695","token":"constant.regexp"},{"foreground":"#569CD6","token":"entity.name.tag"},{"foreground":"#D7BA7D","token":"entity.name.tag.css"},{"foreground":"#9CDCFE","token":"entity.other.attribute-name"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.class.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.class.mixin.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.id.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.parent-selector.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.pseudo-class.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.pseudo-element.css"},{"foreground":"#D7BA7D","token":"source.css.less entity.other.attribute-name.id"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.scss"},{"foreground":"#F44747","token":"invalid"},{"fontStyle":"underline","token":"markup.underline"},{"foreground":"#569CD6","fontStyle":"bold","token":"markup.bold"},{"foreground":"#569CD6","fontStyle":"bold","token":"markup.heading"},{"fontStyle":"italic","token":"markup.italic"},{"foreground":"#B5CEA8","token":"markup.inserted"},{"foreground":"#CE9178","token":"markup.deleted"},{"foreground":"#569CD6","token":"markup.changed"},{"foreground":"#6A9955","token":"punctuation.definition.quote.begin.markdown"},{"foreground":"#6796E6","token":"punctuation.definition.list.begin.markdown"},{"foreground":"#CE9178","token":"markup.inline.raw"},{"foreground":"#808080","token":"punctuation.definition.tag"},{"foreground":"#569CD6","token":"meta.preprocessor"},{"foreground":"#569CD6","token":"entity.name.function.preprocessor"},{"foreground":"#CE9178","token":"meta.preprocessor.string"},{"foreground":"#B5CEA8","token":"meta.preprocessor.numeric"},{"foreground":"#9CDCFE","token":"meta.structure.dictionary.key.python"},{"foreground":"#569CD6","token":"meta.diff.header"},{"foreground":"#569CD6","token":"storage"},{"foreground":"#569CD6","token":"storage.type"},{"foreground":"#569CD6","token":"storage.modifier"},{"foreground":"#569CD6","token":"keyword.operator.noexcept"},{"foreground":"#CE9178","token":"string"},{"foreground":"#CE9178","token":"meta.embedded.assembly"},{"foreground":"#CE9178","token":"string.tag"},{"foreground":"#CE9178","token":"string.value"},{"foreground":"#D16969","token":"string.regexp"},{"foreground":"#569CD6","token":"punctuation.definition.template-expression.begin"},{"foreground":"#569CD6","token":"punctuation.definition.template-expression.end"},{"foreground":"#569CD6","token":"punctuation.section.embedded"},{"foreground":"#D4D4D4","token":"meta.template.expression"},{"foreground":"#9CDCFE","token":"support.type.vendored.property-name"},{"foreground":"#9CDCFE","token":"support.type.property-name"},{"foreground":"#9CDCFE","token":"variable.css"},{"foreground":"#9CDCFE","token":"variable.scss"},{"foreground":"#9CDCFE","token":"variable.other.less"},{"foreground":"#9CDCFE","token":"source.coffee.embedded"},{"foreground":"#569CD6","token":"keyword"},{"foreground":"#569CD6","token":"keyword.control"},{"foreground":"#D4D4D4","token":"keyword.operator"},{"foreground":"#569CD6","token":"keyword.operator.new"},{"foreground":"#569CD6","token":"keyword.operator.expression"},{"foreground":"#569CD6","token":"keyword.operator.cast"},{"foreground":"#569CD6","token":"keyword.operator.sizeof"},{"foreground":"#569CD6","token":"keyword.operator.alignof"},{"foreground":"#569CD6","token":"keyword.operator.typeid"},{"foreground":"#569CD6","token":"keyword.operator.alignas"},{"foreground":"#569CD6","token":"keyword.operator.instanceof"},{"foreground":"#569CD6","token":"keyword.operator.logical.python"},{"foreground":"#569CD6","token":"keyword.Line truncated
|
||||
@@ -6,16 +6,16 @@ services:
|
||||
dockerfile: api/Dockerfile
|
||||
image: mainsail-stack-api/1
|
||||
volumes:
|
||||
- ./docker/config:/home/node/printer_config
|
||||
- ./docker/logs:/tmp/logs
|
||||
- ./docker/config:/home/node/klipper_config
|
||||
- ./docker/logs:/home/node/klipper_logs
|
||||
- ./docker/gcode:/home/node/gcode
|
||||
- ./docker/config/moonraker:/home/node/.moonraker_database
|
||||
container_name: ${APP_NAME}-stack-api
|
||||
ports:
|
||||
- 7125:7125
|
||||
- "7125:7125"
|
||||
networks:
|
||||
- dev_net
|
||||
application:
|
||||
npm:
|
||||
build:
|
||||
context: ./docker
|
||||
dockerfile: Dockerfile
|
||||
@@ -24,7 +24,7 @@ services:
|
||||
- ./:/home/node/mainsail
|
||||
container_name: ${APP_NAME}-stack-npm
|
||||
ports:
|
||||
- 8080:8080
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- api
|
||||
networks:
|
||||
|
||||
@@ -1,21 +1,17 @@
|
||||
FROM debian:buster AS base
|
||||
FROM python:3-slim-buster AS base
|
||||
|
||||
RUN groupadd --force -g 1000 node
|
||||
RUN useradd -ms /bin/bash --no-user-group -g 1000 -u 1000 node
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y sudo wget cmake swig git virtualenv python-dev libffi-dev build-essential libncurses-dev libusb-dev avrdude gcc-avr binutils-avr avr-libc dfu-util libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0
|
||||
RUN apt-get install -y sudo wget cmake swig git virtualenv python-dev libffi-dev \
|
||||
build-essential libncurses-dev libusb-dev avrdude gcc-avr binutils-avr avr-libc \
|
||||
dfu-util libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0
|
||||
RUN mkdir /src
|
||||
WORKDIR /src
|
||||
RUN wget http://download.savannah.nongnu.org/releases/simulavr/libsim_1.1.0_amd64.deb
|
||||
RUN apt install /src/libsim_1.1.0_amd64.deb
|
||||
|
||||
#prebuild files for simulavr, not needed currently, because we just build the python lib later
|
||||
#RUN wget http://download.savannah.nongnu.org/releases/simulavr/simulavr_1.1.0_amd64.deb
|
||||
#RUN apt install /src/simulavr_1.1.0_amd64.deb
|
||||
#RUN wget http://download.savannah.nongnu.org/releases/simulavr/python3-simulavr_1.1.0_amd64.deb
|
||||
#RUN apt install /src/python3-simulavr_1.1.0_amd64.deb
|
||||
|
||||
RUN cat /etc/passwd
|
||||
|
||||
RUN echo 'node ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/node && \
|
||||
@@ -27,7 +23,7 @@ RUN ln -s /bin/true /bin/systemctl
|
||||
USER node
|
||||
|
||||
WORKDIR /home/node
|
||||
RUN git clone https://github.com/KevinOConnor/klipper
|
||||
RUN git clone https://github.com/klipper3d/klipper
|
||||
WORKDIR /home/node/klipper
|
||||
COPY api/simulavr.config /home/node/klipper/.config
|
||||
RUN make
|
||||
@@ -46,7 +42,6 @@ RUN sed -E 's/check_klipper\(\)/check_klipper() { return 0; }\nold()/' /home/nod
|
||||
RUN chmod +x /home/node/moonraker/scripts/install-moonraker2.sh
|
||||
RUN /home/node/moonraker/scripts/install-moonraker2.sh
|
||||
|
||||
RUN sudo rm -f /bin/systemctl
|
||||
#restore backed up systemctl command
|
||||
#RUN sudo mv /bin/systemctl.bak /bin/systemctl
|
||||
|
||||
@@ -54,13 +49,17 @@ WORKDIR /home/node/
|
||||
RUN git clone https://git.savannah.nongnu.org/git/simulavr.git
|
||||
WORKDIR /home/node/simulavr
|
||||
RUN make python
|
||||
RUN make build
|
||||
RUN make build -j8
|
||||
|
||||
USER root
|
||||
RUN rm /bin/systemctl
|
||||
|
||||
COPY api/run-api /usr/local/bin/run-api
|
||||
RUN chmod +x /usr/local/bin/run-api
|
||||
RUN apt-get -y install supervisor
|
||||
|
||||
USER node
|
||||
RUN ln -s /usr/bin/supervisorctl /bin/systemctl
|
||||
|
||||
ENTRYPOINT ["run-api"]
|
||||
RUN mkdir -p /var/log/supervisor
|
||||
COPY api/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY api/start-api /bin/start-api
|
||||
RUN chmod +x /bin/start-api
|
||||
ENTRYPOINT ["/bin/start-api"]
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf &
|
||||
/home/node/klippy-env/bin/python /home/node/klipper/klippy/klippy.py /home/node/printer_config/printer.cfg -l /tmp/logs/klippy.log -a /tmp/klippy_uds &
|
||||
/home/node/moonraker-env/bin/python /home/node/moonraker/moonraker/moonraker.py -l /tmp/logs/moonraker.log -c /home/node/printer_config/moonraker.conf &
|
||||
echo "Starting ..." >> /tmp/logs/klippy.log
|
||||
tail -f /tmp/logs/klippy.log
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
chown -hR node:node /home/node/klipper_logs
|
||||
/usr/bin/supervisord
|
||||
@@ -0,0 +1,38 @@
|
||||
[supervisord]
|
||||
#logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
|
||||
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
|
||||
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
|
||||
loglevel=info ; (log level;default info; others: debug,warn,trace)
|
||||
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
|
||||
nodaemon=true ; (start in foreground if true;default false)
|
||||
minfds=1024 ; (min. avail startup file descriptors;default 1024)
|
||||
minprocs=200 ; (min. avail process descriptors;default 200)
|
||||
|
||||
[program:simulavr]
|
||||
command=bash -c 'sleep 10 && /home/node/klipper/scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf'
|
||||
environment=PYTHONPATH=/home/node/simulavr/build/pysimulavr/
|
||||
user=node
|
||||
process_name=simulavr
|
||||
directory=/home/node
|
||||
autostart=true
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
|
||||
[program:klipper]
|
||||
command=/home/node/klippy-env/bin/python /home/node/klipper/klippy/klippy.py /home/node/klipper_config/printer.cfg -l /home/node/klipper_logs/klippy.log -a /tmp/klippy_uds
|
||||
user=node
|
||||
process_name=klipper
|
||||
directory=/home/node
|
||||
autostart=true
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
|
||||
|
||||
[program:moonraker]
|
||||
command=/home/node/moonraker-env/bin/python /home/node/moonraker/moonraker/moonraker.py -l /home/node/klipper_logs/moonraker.log -c /home/node/klipper_config/moonraker.conf
|
||||
user=node
|
||||
process_name=moonraker
|
||||
directory=/home/node
|
||||
autostart=true
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
@@ -6,7 +6,7 @@ path: ~/gcode
|
||||
|
||||
[mcu]
|
||||
serial: /tmp/pseudoserial
|
||||
pin_map: arduino
|
||||
restart_method: arduino
|
||||
baud: 250000
|
||||
|
||||
[stepper_x]
|
||||
@@ -110,70 +110,3 @@ max_z_accel: 100
|
||||
# G28 Y0
|
||||
# G28 X0
|
||||
# G28 Z0
|
||||
|
||||
[gcode_macro PAUSE]
|
||||
rename_existing: BASE_PAUSE
|
||||
default_parameter_X: 230 #edit to your park position
|
||||
default_parameter_Y: 230 #edit to your park position
|
||||
default_parameter_Z: 10 #edit to your park position
|
||||
default_parameter_E: 1 #edit to your retract length
|
||||
gcode:
|
||||
SAVE_GCODE_STATE NAME=PAUSE_state
|
||||
BASE_PAUSE
|
||||
G91
|
||||
G1 E-{E} F2100
|
||||
G1 Z{Z}
|
||||
G90
|
||||
G1 X{X} Y{Y} F6000
|
||||
[gcode_macro RESUME]
|
||||
rename_existing: BASE_RESUME
|
||||
default_parameter_E: 1 #edit to your retract length
|
||||
gcode:
|
||||
G91
|
||||
G1 E{E} F2100
|
||||
G90
|
||||
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
|
||||
BASE_RESUME
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
rename_existing: BASE_CANCEL_PRINT
|
||||
gcode:
|
||||
TURN_OFF_HEATERS
|
||||
CLEAR_PAUSE
|
||||
SDCARD_RESET_FILE
|
||||
BASE_CANCEL_PRINT
|
||||
|
||||
[gcode_macro START_PRINT]
|
||||
default_parameter_BED_TEMP: 103.3
|
||||
default_parameter_EXTRUDER_TEMP: 103.3
|
||||
gcode:
|
||||
# Start bed heating
|
||||
M140 S103.3
|
||||
# Use absolute coordinates
|
||||
G90
|
||||
# Reset the G-Code Z offset (adjust Z offset if needed)
|
||||
SET_GCODE_OFFSET Z=0.0
|
||||
# Home the printer
|
||||
G28
|
||||
# Move the nozzle near the bed
|
||||
G1 Z5 F3000
|
||||
# Move the nozzle very close to the bed
|
||||
G1 Z0.15 F300
|
||||
# Wait for bed to reach temperature
|
||||
M190 S103.3
|
||||
# Set and wait for nozzle to reach temperature
|
||||
M109 S103.3
|
||||
|
||||
[gcode_macro END_PRINT]
|
||||
gcode:
|
||||
# Turn off bed, extruder, and fan
|
||||
M140 S0
|
||||
M104 S0
|
||||
M106 S0
|
||||
# Move nozzle away from print while retracting
|
||||
G91
|
||||
G1 X-2 Y-2 E-3 F300
|
||||
# Raise nozzle by 10mm
|
||||
G1 Z10 F3000
|
||||
G90
|
||||
# Disable steppers
|
||||
M84
|
||||
@@ -1,13 +1,13 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
activesupport (6.0.3.5)
|
||||
activesupport (6.0.4.1)
|
||||
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)
|
||||
addressable (2.8.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
coffee-script (2.4.1)
|
||||
coffee-script-source
|
||||
@@ -16,26 +16,40 @@ GEM
|
||||
colorator (1.1.0)
|
||||
commonmarker (0.17.13)
|
||||
ruby-enum (~> 0.5)
|
||||
concurrent-ruby (1.1.8)
|
||||
dnsruby (1.61.5)
|
||||
concurrent-ruby (1.1.9)
|
||||
dnsruby (1.61.7)
|
||||
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-x64-mingw32)
|
||||
execjs (2.7.0)
|
||||
faraday (1.3.0)
|
||||
ethon (0.14.0)
|
||||
ffi (>= 1.15.0)
|
||||
eventmachine (1.2.7)
|
||||
execjs (2.8.1)
|
||||
faraday (1.7.0)
|
||||
faraday-em_http (~> 1.0)
|
||||
faraday-em_synchrony (~> 1.0)
|
||||
faraday-excon (~> 1.1)
|
||||
faraday-httpclient (~> 1.0.1)
|
||||
faraday-net_http (~> 1.0)
|
||||
faraday-net_http_persistent (~> 1.1)
|
||||
faraday-patron (~> 1.0)
|
||||
faraday-rack (~> 1.0)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
ruby2_keywords
|
||||
ruby2_keywords (>= 0.0.4)
|
||||
faraday-em_http (1.0.0)
|
||||
faraday-em_synchrony (1.0.0)
|
||||
faraday-excon (1.1.0)
|
||||
faraday-httpclient (1.0.1)
|
||||
faraday-net_http (1.0.1)
|
||||
ffi (1.14.2-x64-mingw32)
|
||||
faraday-net_http_persistent (1.2.0)
|
||||
faraday-patron (1.0.0)
|
||||
faraday-rack (1.0.0)
|
||||
ffi (1.15.3)
|
||||
forwardable-extended (2.6.0)
|
||||
gemoji (3.0.1)
|
||||
github-pages (212)
|
||||
github-pages-health-check (= 1.17.0)
|
||||
github-pages (218)
|
||||
github-pages-health-check (= 1.17.2)
|
||||
jekyll (= 3.9.0)
|
||||
jekyll-avatar (= 0.7.0)
|
||||
jekyll-coffeescript (= 1.1.1)
|
||||
@@ -50,27 +64,27 @@ GEM
|
||||
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-remote-theme (= 0.4.3)
|
||||
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-theme-architect (= 0.2.0)
|
||||
jekyll-theme-cayman (= 0.2.0)
|
||||
jekyll-theme-dinky (= 0.2.0)
|
||||
jekyll-theme-hacker (= 0.2.0)
|
||||
jekyll-theme-leap-day (= 0.2.0)
|
||||
jekyll-theme-merlot (= 0.2.0)
|
||||
jekyll-theme-midnight (= 0.2.0)
|
||||
jekyll-theme-minimal (= 0.2.0)
|
||||
jekyll-theme-modernist (= 0.2.0)
|
||||
jekyll-theme-primer (= 0.6.0)
|
||||
jekyll-theme-slate (= 0.2.0)
|
||||
jekyll-theme-tactile (= 0.2.0)
|
||||
jekyll-theme-time-machine (= 0.2.0)
|
||||
jekyll-titles-from-headings (= 0.5.3)
|
||||
jemoji (= 0.12.0)
|
||||
kramdown (= 2.3.0)
|
||||
kramdown (= 2.3.1)
|
||||
kramdown-parser-gfm (= 1.1.0)
|
||||
liquid (= 4.0.3)
|
||||
mercenary (~> 0.3)
|
||||
@@ -78,7 +92,7 @@ GEM
|
||||
nokogiri (>= 1.10.4, < 2.0)
|
||||
rouge (= 3.26.0)
|
||||
terminal-table (~> 1.4)
|
||||
github-pages-health-check (1.17.0)
|
||||
github-pages-health-check (1.17.2)
|
||||
addressable (~> 2.3)
|
||||
dnsruby (~> 1.60)
|
||||
octokit (~> 4.0)
|
||||
@@ -136,7 +150,7 @@ GEM
|
||||
jekyll (>= 3.3, < 5.0)
|
||||
jekyll-relative-links (0.6.1)
|
||||
jekyll (>= 3.3, < 5.0)
|
||||
jekyll-remote-theme (0.4.2)
|
||||
jekyll-remote-theme (0.4.3)
|
||||
addressable (~> 2.0)
|
||||
jekyll (>= 3.5, < 5.0)
|
||||
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
|
||||
@@ -148,45 +162,45 @@ GEM
|
||||
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-theme-architect (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-leap-day (0.1.1)
|
||||
jekyll (~> 3.5)
|
||||
jekyll-theme-cayman (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-merlot (0.1.1)
|
||||
jekyll (~> 3.5)
|
||||
jekyll-theme-dinky (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-midnight (0.1.1)
|
||||
jekyll (~> 3.5)
|
||||
jekyll-theme-hacker (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-minimal (0.1.1)
|
||||
jekyll (~> 3.5)
|
||||
jekyll-theme-leap-day (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-modernist (0.1.1)
|
||||
jekyll (~> 3.5)
|
||||
jekyll-theme-merlot (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-primer (0.5.4)
|
||||
jekyll-theme-midnight (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-minimal (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-modernist (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-primer (0.6.0)
|
||||
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-theme-slate (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-tactile (0.1.1)
|
||||
jekyll (~> 3.5)
|
||||
jekyll-theme-tactile (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-theme-time-machine (0.1.1)
|
||||
jekyll (~> 3.5)
|
||||
jekyll-theme-time-machine (0.2.0)
|
||||
jekyll (> 3.5, < 5.0)
|
||||
jekyll-seo-tag (~> 2.0)
|
||||
jekyll-titles-from-headings (0.5.3)
|
||||
jekyll (>= 3.3, < 5.0)
|
||||
@@ -196,39 +210,41 @@ GEM
|
||||
gemoji (~> 3.0)
|
||||
html-pipeline (~> 2.2)
|
||||
jekyll (>= 3.0, < 5.0)
|
||||
kramdown (2.3.0)
|
||||
kramdown (2.3.1)
|
||||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
liquid (4.0.3)
|
||||
listen (3.4.1)
|
||||
listen (3.7.0)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
mercenary (0.3.6)
|
||||
mini_portile2 (2.6.1)
|
||||
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)
|
||||
nokogiri (1.12.5)
|
||||
mini_portile2 (~> 2.6.1)
|
||||
racc (~> 1.4)
|
||||
octokit (4.20.0)
|
||||
octokit (4.21.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-fsevent (0.11.0)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
rexml (3.2.4)
|
||||
rexml (3.2.5)
|
||||
rouge (3.26.0)
|
||||
ruby-enum (0.9.0)
|
||||
i18n
|
||||
ruby2_keywords (0.0.4)
|
||||
rubyzip (2.3.0)
|
||||
ruby2_keywords (0.0.5)
|
||||
rubyzip (2.3.2)
|
||||
safe_yaml (1.0.5)
|
||||
sass (3.7.4)
|
||||
sass-listen (~> 4.0.0)
|
||||
@@ -247,17 +263,14 @@ GEM
|
||||
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-x64-mingw32)
|
||||
unf_ext (0.0.7.7)
|
||||
unicode-display_width (1.7.0)
|
||||
wdm (0.1.1)
|
||||
zeitwerk (2.4.2)
|
||||
|
||||
PLATFORMS
|
||||
x64-mingw32
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
github-pages
|
||||
@@ -268,4 +281,4 @@ DEPENDENCIES
|
||||
wdm (~> 0.1.1)
|
||||
|
||||
BUNDLED WITH
|
||||
2.2.13
|
||||
2.1.4
|
||||
@@ -1 +1 @@
|
||||
Welcome to the Mainsail documentation. The [index](http://meteyou.github.io/mainsail) of the docs is here.
|
||||
Welcome to the Mainsail documentation. The [index](https://docs.mainsail.xyz) of the docs is here.
|
||||
@@ -8,10 +8,9 @@ color_scheme: "mainsail"
|
||||
search_enabled: true
|
||||
aux_links:
|
||||
"Mainsail on GitHub":
|
||||
- "//github.com/meteyou/mainsail"
|
||||
- "//github.com/mainsail-crew/mainsail"
|
||||
aux_links_new_tab: true
|
||||
|
||||
|
||||
defaults:
|
||||
-
|
||||
scope:
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
name,author,repo
|
||||
Dracula,steadyjaw,dracula-mainsail-theme
|
||||
name,short_note,author,repo
|
||||
Dracula,,steadyjaw,dracula-mainsail-theme
|
||||
Cyberpunk,,Dario-Ciceri,cp2077-mainsail-theme
|
||||
Mainsail x Voron Toolhead,Various toolhead images inside the theme folder can be renamed to 'sidebar-background.png',eriroh,Mainsail-x-Voron-Toolhead-Theme
|
||||
Rat Rig (unofficial), includes various sidebar images which can be renamed to ‘sidebar-background.png’,Raabi91,ratrig-mainsail-theme
|
||||
|
@@ -0,0 +1,205 @@
|
||||
---
|
||||
layout: table_wrappers
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="{{ site.lang | default: 'en-US' }}">
|
||||
{% include head.html %}
|
||||
<head>
|
||||
<script src="/assets/js/images.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
<symbol id="svg-link" viewBox="0 0 24 24">
|
||||
<title>Link</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link">
|
||||
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
||||
</svg>
|
||||
</symbol>
|
||||
<symbol id="svg-search" viewBox="0 0 24 24">
|
||||
<title>Search</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search">
|
||||
<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
||||
</svg>
|
||||
</symbol>
|
||||
<symbol id="svg-menu" viewBox="0 0 24 24">
|
||||
<title>Menu</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu">
|
||||
<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>
|
||||
</svg>
|
||||
</symbol>
|
||||
<symbol id="svg-arrow-right" viewBox="0 0 24 24">
|
||||
<title>Expand</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right">
|
||||
<polyline points="9 18 15 12 9 6"></polyline>
|
||||
</svg>
|
||||
</symbol>
|
||||
<symbol id="svg-doc" viewBox="0 0 24 24">
|
||||
<title>Document</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file">
|
||||
<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>
|
||||
</svg>
|
||||
</symbol>
|
||||
</svg>
|
||||
|
||||
<div class="side-bar">
|
||||
<div class="site-header">
|
||||
<a href="{{ '/' | absolute_url }}" class="site-title lh-tight">{% include title.html %}</a>
|
||||
<a href="#" id="menu-button" class="site-button">
|
||||
<svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-menu"></use></svg>
|
||||
</a>
|
||||
</div>
|
||||
<nav role="navigation" aria-label="Main" id="site-nav" class="site-nav">
|
||||
{% if site.just_the_docs.collections %}
|
||||
{% assign collections_size = site.just_the_docs.collections | size %}
|
||||
{% for collection_entry in site.just_the_docs.collections %}
|
||||
{% assign collection_key = collection_entry[0] %}
|
||||
{% assign collection_value = collection_entry[1] %}
|
||||
{% assign collection = site[collection_key] %}
|
||||
{% if collection_value.nav_exclude != true %}
|
||||
{% if collections_size > 1 %}
|
||||
<div class="nav-category">{{ collection_value.name }}</div>
|
||||
{% endif %}
|
||||
{% include nav.html pages=collection %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% include nav.html pages=site.html_pages %}
|
||||
{% endif %}
|
||||
</nav>
|
||||
<footer class="site-footer">
|
||||
This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.
|
||||
</footer>
|
||||
</div>
|
||||
<div class="main" id="top">
|
||||
<div id="main-header" class="main-header">
|
||||
{% if site.search_enabled != false %}
|
||||
<div class="search">
|
||||
<div class="search-input-wrap">
|
||||
<input type="text" id="search-input" class="search-input" tabindex="0" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
|
||||
<label for="search-input" class="search-label"><svg viewBox="0 0 24 24" class="search-icon"><use xlink:href="#svg-search"></use></svg></label>
|
||||
</div>
|
||||
<div id="search-results" class="search-results"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% include header_custom.html %}
|
||||
{% if site.aux_links %}
|
||||
<nav aria-label="Auxiliary" class="aux-nav">
|
||||
<ul class="aux-nav-list">
|
||||
{% for link in site.aux_links %}
|
||||
<li class="aux-nav-list-item">
|
||||
<a href="{{ link.last }}" class="site-button"
|
||||
{% if site.aux_links_new_tab %}
|
||||
target="_blank" rel="noopener noreferrer"
|
||||
{% endif %}
|
||||
>
|
||||
{{ link.first }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="main-content-wrap" class="main-content-wrap">
|
||||
{% unless page.url == "/" %}
|
||||
{% if page.parent %}
|
||||
{%- for node in pages_list -%}
|
||||
{%- if node.parent == nil -%}
|
||||
{%- if page.parent == node.title or page.grand_parent == node.title -%}
|
||||
{%- assign first_level_url = node.url | absolute_url -%}
|
||||
{%- endif -%}
|
||||
{%- if node.has_children -%}
|
||||
{%- assign children_list = pages_list | where: "parent", node.title -%}
|
||||
{%- for child in children_list -%}
|
||||
{%- if page.url == child.url or page.parent == child.title -%}
|
||||
{%- assign second_level_url = child.url | absolute_url -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
<nav aria-label="Breadcrumb" class="breadcrumb-nav">
|
||||
<ol class="breadcrumb-nav-list">
|
||||
{% if page.grand_parent %}
|
||||
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.grand_parent }}</a></li>
|
||||
<li class="breadcrumb-nav-list-item"><a href="{{ second_level_url }}">{{ page.parent }}</a></li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.parent }}</a></li>
|
||||
{% endif %}
|
||||
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
|
||||
</ol>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
<div id="main-content" class="main-content" role="main">
|
||||
{% if site.heading_anchors != false %}
|
||||
{% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
|
||||
{% else %}
|
||||
{{ content }}
|
||||
{% endif %}
|
||||
|
||||
{% if page.has_children == true and page.has_toc != false %}
|
||||
<hr>
|
||||
<h2 class="text-delta">Table of contents</h2>
|
||||
<ul>
|
||||
{%- assign children_list = pages_list | where: "parent", page.title | where: "grand_parent", page.parent -%}
|
||||
{% for child in children_list %}
|
||||
<li>
|
||||
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% capture footer_custom %}
|
||||
{%- include footer_custom.html -%}
|
||||
{% endcapture %}
|
||||
{% if footer_custom != "" or site.last_edit_timestamp or site.gh_edit_link %}
|
||||
<hr>
|
||||
<footer>
|
||||
{% if site.back_to_top %}
|
||||
<p><a href="#top" id="back-to-top">{{ site.back_to_top_text }}</a></p>
|
||||
{% endif %}
|
||||
|
||||
{{ footer_custom }}
|
||||
|
||||
{% if site.last_edit_timestamp or site.gh_edit_link %}
|
||||
<div class="d-flex mt-2">
|
||||
{% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
|
||||
<p class="text-small text-grey-dk-000 mb-0 mr-2">
|
||||
Page last modified: <span class="d-inline-block">{{ page.last_modified_date | date: site.last_edit_time_format }}</span>.
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if
|
||||
site.gh_edit_link and
|
||||
site.gh_edit_link_text and
|
||||
site.gh_edit_repository and
|
||||
site.gh_edit_branch and
|
||||
site.gh_edit_view_mode
|
||||
%}
|
||||
<p class="text-small text-grey-dk-000 mb-0">
|
||||
<a href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}/{{ page.path }}" id="edit-this-page">{{ site.gh_edit_link_text }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if site.search_enabled != false %}
|
||||
{% if site.search.button %}
|
||||
<a href="#" id="search-button" class="search-button">
|
||||
<svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-search"></use></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<div class="search-overlay"></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,52 +1,52 @@
|
||||
$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: 16px 0px;
|
||||
padding: 20px;
|
||||
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: 16px 0px;
|
||||
padding: 20px;
|
||||
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: 16px 0px;
|
||||
padding: 20px;
|
||||
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: 16px 0px;
|
||||
padding: 20px;
|
||||
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 {
|
||||
@@ -57,4 +57,24 @@ $btn-primary-color: $red-300;
|
||||
background-color: hsl(0,0%,98%);
|
||||
font-style: normal;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.screenshot {
|
||||
animation: fadein 1.0s;
|
||||
}
|
||||
|
||||
@keyframes fadein {
|
||||
0% {
|
||||
opacity: 0;
|
||||
border-radius: 100%;
|
||||
transform: scale(.3);
|
||||
}
|
||||
50% {
|
||||
border-radius: 0%;
|
||||
transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -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 |
|
After Width: | Height: | Size: 63 KiB |
@@ -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 |
|
Before Width: | Height: | Size: 336 KiB After Width: | Height: | Size: 385 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 85 KiB |
@@ -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 |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 30 KiB |
@@ -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 |
@@ -0,0 +1,58 @@
|
||||
function get_filesize(id, url, extension = "png") {
|
||||
url = url+"."+extension;
|
||||
return new Promise((resolve, reject) => {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("HEAD", url, true);
|
||||
xhr.onreadystatechange = function() {
|
||||
if (this.readyState == this.DONE) {
|
||||
resolve({id: id, size: parseInt(xhr.getResponseHeader("Content-Length")), url: url, extension: extension})
|
||||
}
|
||||
};
|
||||
xhr.send();
|
||||
})
|
||||
}
|
||||
|
||||
function set_image(id, url, max_size = 20000) {
|
||||
Promise.all([
|
||||
get_filesize(id, url, "png"),
|
||||
get_filesize(id, url, "jpg"),
|
||||
//get_filesize(id, url, "jpeg"),
|
||||
//get_filesize(id, url, "gif"),
|
||||
]).then(data => {
|
||||
|
||||
let sortbySize = function(data) {
|
||||
return data.filter(data => data.size > 2000).sort((a, b) => a.size - b.size);
|
||||
}
|
||||
let result = sortbySize(data)
|
||||
|
||||
//console.log(result)
|
||||
|
||||
if (result[0].size <= max_size) {
|
||||
set_src(result[0].id, result[0].size, result[0].url);
|
||||
} else {
|
||||
replace_image(result[0].id, result[0].url, max_size);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function set_src(id, size, url) {
|
||||
screenshot = document.getElementById(id);
|
||||
screenshot.src = url;
|
||||
screenshot.classList.add("screenshot");
|
||||
}
|
||||
|
||||
function replace_image(id, url, max_size) {
|
||||
screenshot = document.getElementById(id);
|
||||
var div = document.createElement('div');
|
||||
|
||||
var a = document.createElement('a');
|
||||
a.appendChild(document.createTextNode(" here"));
|
||||
a.href = url;
|
||||
a.target = "_blank";
|
||||
|
||||
div.appendChild(document.createTextNode("The file size of the screenshot has exceeded " + max_size / 1000 + "kB. For a screenshot click "));
|
||||
div.appendChild(a);
|
||||
div.appendChild(document.createTextNode("."));
|
||||
|
||||
screenshot.parentNode.replaceChild(div, screenshot);
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
---
|
||||
layout: default
|
||||
title: Configuration
|
||||
nav_order: 5
|
||||
has_children: false
|
||||
permalink: /configuration
|
||||
---
|
||||
|
||||
# Required configuration
|
||||
|
||||
**Mainsail requires a minimum configuration to function properly and will display a warning at startup if the required parts are not found in your configuration file(s).**
|
||||
{: .warning}
|
||||
|
||||
The following configuration elements are mandatory and must be configured for Mainsail to operate:
|
||||
|
||||
* [Virtual SD Card](configuration#virtual_sdcard)
|
||||
* [Display Status](configuration#display_status)
|
||||
* [Pause / Resume](configuration#pause_resume)
|
||||
* [GCode Macros](configuration#pause--resume--cancel)
|
||||
|
||||
The following configuration elements are optional, including making tweaks and alterations to Klipper's default commands:
|
||||
* [Custom Commands](configuration#customisation)
|
||||
|
||||
## Virtual SD Card
|
||||
This allows gcode file uploads.
|
||||
```yaml
|
||||
[virtual_sdcard]
|
||||
path: ~/gcode_files
|
||||
```
|
||||
|
||||
## 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
|
||||
This enables pause / resume in mainsail.
|
||||
|
||||
```yaml
|
||||
[pause_resume]
|
||||
```
|
||||
|
||||
# Macros
|
||||
## for pause / resume / cancel functionality
|
||||
These should be modified to your own needs.
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro PAUSE]
|
||||
description: Pause the actual running print
|
||||
rename_existing: PAUSE_BASE
|
||||
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 #####
|
||||
PAUSE_BASE
|
||||
G91
|
||||
{% if printer.extruder.can_extrude|lower == 'true' %}
|
||||
G1 E-{e} F2100
|
||||
{% else %}
|
||||
{action_respond_info("Extruder not hot enough")}
|
||||
{% endif %}
|
||||
{% if "xyz" in printer.toolhead.homed_axes %}
|
||||
G1 Z{z_safe}
|
||||
G90
|
||||
G1 X{x} Y{y} F6000
|
||||
{% else %}
|
||||
{action_respond_info("Printer not homed")}
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
```yaml
|
||||
[gcode_macro RESUME]
|
||||
description: Resume the actual running print
|
||||
rename_existing: RESUME_BASE
|
||||
gcode:
|
||||
##### set defaults #####
|
||||
{% set e = params.E|default(1) %} #edit to your retract length
|
||||
#### get VELOCITY parameter if specified ####
|
||||
{% if 'VELOCITY' in params|upper %}
|
||||
{% set get_params = ('VELOCITY=' + params.VELOCITY) %}
|
||||
{%else %}
|
||||
{% set get_params = "" %}
|
||||
{% endif %}
|
||||
##### end of definitions #####
|
||||
G91
|
||||
{% if printer.extruder.can_extrude|lower == 'true' %}
|
||||
G1 E{e} F2100
|
||||
{% else %}
|
||||
{action_respond_info("Extruder not hot enough")}
|
||||
{% endif %}
|
||||
RESUME_BASE {get_params}
|
||||
```
|
||||
|
||||
|
||||
```yaml
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
description: Cancel the actual running print
|
||||
rename_existing: CANCEL_PRINT_BASE
|
||||
gcode:
|
||||
TURN_OFF_HEATERS
|
||||
CANCEL_PRINT_BASE
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
# Optional
|
||||
|
||||
## Customisation
|
||||
Klipper has many canned/preset commands that are themselves just macros.
|
||||
|
||||
The default configuration of these may not suit your needs or preferences, (though they are usually a good place to start). It's possible to adjust these by including them in your config, along with whatever code you would like to run.
|
||||
|
||||
## Example
|
||||
Adjusting the `BED_MESH_CALIBRATE` command (which can be run from the Sidebar > Heightmap > Calibrate.
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro BED_MESH_CALIBRATE]
|
||||
rename_existing: BASE_BED_MESH_CALIBRATE
|
||||
gcode:
|
||||
#before the original gcode
|
||||
BED_MESH_CLEAR
|
||||
QUAD_GANTRY_LEVEL
|
||||
G1 X125 Y125 Z5 F6000
|
||||
#the original gcode
|
||||
BASE_BED_MESH_CALIBRATE
|
||||
#after the original gcode
|
||||
```
|
||||
{% endraw %}
|
||||
@@ -13,15 +13,15 @@ description: >-
|
||||
<!-- {{ page.description }} -->
|
||||
|
||||
|
||||
We would like to say "thank you" to all the
|
||||
We would like acknowledge the valuable contributions that many people and projects have made to Mainsail, particularly 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"}.
|
||||
..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/mainsail-crew/MainsailOS/){:target="_blank"}.
|
||||
|
||||
**THANK YOU for YOUR support. ❤️**
|
||||
**THANK YOU for your continued support.**
|
||||
|
||||
- TOC
|
||||
{:toc}
|
||||
@@ -38,4 +38,4 @@ and of course the projects Mainsail is built on, especially [Klipper](https://gi
|
||||
| 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 %}
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
layout: default
|
||||
title: Data Privacy
|
||||
nav_order: 99
|
||||
has_children: false
|
||||
permalink: /data-privacy
|
||||
has_toc: false
|
||||
---
|
||||
|
||||
# Data Privacy
|
||||
|
||||
We understand the need for data privacy and have designed Mainsail to operate in your browser’s cache locally.
|
||||
|
||||
The following table applies to Mainsail when installed locallaly, or accessed via [my.mainsail.xyz](http://my.mainsail.xyz).
|
||||
|
||||
| YES | NO |
|
||||
| :--------------: | :---------------: |
|
||||
| Store static files in browser storage (.html, .js, .css) | ‘Phone home’ |
|
||||
| Communicate directly with your printer via the Moonraker API | Send/transfer any data externally |
|
||||
|
||||
## Will my data be safe if I use the hosted version?
|
||||
Accessing [my.mainsail.xyz](http://my.mainsail.xyz) stores the .html, .js and .css files for Mainsail locally in the brower's storage in exactly the same way that an instance running on your local hardware would do. In reality, there is no functional difference (or concern) between accessing Mainsail from a privately or publicly hosted instance.
|
||||
|
||||
|
||||
Parallel operation is also possible.
|
||||
|
||||
# Third party software
|
||||
|
||||
We do not modify third party packages or software, nor control their attitude to Data Privacy.
|
||||
|
||||
If you are concerned, please consider the privacy policies (or contacting the developer) of:
|
||||
|
||||
* [RaspberryOS](https://www.raspberrypi.org/privacy/)
|
||||
* Klipper
|
||||
* Moonraker
|
||||
|
||||
|
||||
It is worth noting that Klipper, Moonraker and RaspberryOS are open source software and ( whilst this brings no guarantee of privacy and security) the source is available and open to peer review.
|
||||
{: .info}
|
||||
The Raspberry Foundation is a registered charity in the United Kingdom, with extensive Privacy and Safeguarding policies.
|
||||
{: .info}
|
||||
@@ -19,8 +19,8 @@ You can contribute in a couple of different ways:
|
||||
(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.
|
||||
If you have a finished translation file, you can make a [PR (pull request)](https://github.com/mainsail-crew/mainsail/pulls)
|
||||
on github or create an [issue](https://github.com/mainsail-crew/mainsail/issues) on github and attach the translation.
|
||||
|
||||
## Testing
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ description: >-
|
||||
|
||||
## Setup
|
||||
Make a copy of the `.env.development.local.example` and omit the .example.
|
||||
In the new file edit it to refect your desired printer:
|
||||
In the new file edit it to reflect your desired printer:
|
||||
```dotenv
|
||||
#for your printer with moonraker running on 192.168.0.15
|
||||
VUE_APP_HOSTNAME=192.168.0.15
|
||||
@@ -26,17 +26,23 @@ cors_domains:
|
||||
access the local running dev environment with `http://<your local ip>:<local port>`.
|
||||
(for example: `http://localhost:8080`)
|
||||
|
||||
### Nodejs Environment >= v15.9.0
|
||||
Linux
|
||||
### Prepare nodejs using nvm
|
||||
POSIX-compliant shell (sh, dash, ksh, zsh, bash)
|
||||
unix, macOS, and windows WSL
|
||||
```shell
|
||||
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
|
||||
nvm install node
|
||||
```
|
||||
Debian/Ubuntu
|
||||
|
||||
make sure you run node >=15.9.0
|
||||
```shell
|
||||
sudo apt-get install -y nodejs
|
||||
node -v
|
||||
```
|
||||
For other package-managers look here:
|
||||
https://nodejs.org/en/download/package-manager/
|
||||
|
||||
#### Troubleshoot
|
||||
follow this guide if you encouter problems with nvm
|
||||
https://github.com/nvm-sh/nvm#troubleshooting-on-linux
|
||||
|
||||
|
||||
## Start
|
||||
```shell
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
layout: default
|
||||
title: FAQ
|
||||
nav_order: 110
|
||||
has_children: true
|
||||
permalink: /faq/
|
||||
has_toc: false
|
||||
---
|
||||
# Frequently Askes Questions
|
||||
|
||||
We are still gathering some "frequently asked questions" and will publish them here soon.
|
||||
|
||||
The primary reason why this section already exists, is because of the Klipper warnings in the subcategory, that needed to be fixed fast.
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
layout: default
|
||||
title: Command format mismatch
|
||||
parent: Klipper Errors
|
||||
grand_parent: FAQ
|
||||
nav_order: 10
|
||||
has_children: false
|
||||
permalink: /faq/klipper_errors/command_format_mismatch
|
||||
has_toc: false
|
||||
description: >-
|
||||
You have updated Klipper and now you get this cryptic error message? We would like to help...
|
||||
---
|
||||
|
||||
# Klipper Error - Command format mismatch
|
||||
|
||||
You have updated Klipper and now you get this cryptic error message?
|
||||
|
||||

|
||||
|
||||
This is an error and needs to be fixed to make Mainsail and Klipper work again.
|
||||
{: .info}
|
||||
|
||||
## TL;DR
|
||||
|
||||
Klipper on your host and on your MCU have different versions.
|
||||
Recompile and flash your MCUs and it will work again. Please also pay attention to the "Linux MCU", if you had e.g. an adxl345 in use.
|
||||
|
||||
The following links should help you to solve the problem:
|
||||
[Klipper SD-Card Updates](https://www.klipper3d.org/SDCard_Updates.html){:target="_blank"}
|
||||
[Klipper Building and flashing the micro-controller](https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller){:target="_blank"}
|
||||
|
||||
## More detailed
|
||||
|
||||
Klipper consists of two parts:
|
||||
The software on your host (e.g. Raspberry Pi) and the firmware on your microcontroller (MCU).
|
||||
|
||||
Under normal circumstances, Klipper (on your host) can simply be updated from Mainsail without any problems and everything will work as expected.
|
||||
|
||||
From time to time it happens that there are changes in Klipper that make it necessary to update all your MCUs. Assuming you have run a Klipper update and Klipper on your host now supports commands that your MCUs does not understand. Then you will get the above error message.
|
||||
|
||||
Fortunately, these kind of updates don't happen very often, but now it has happened to you. ;-)
|
||||
|
||||
In order to solve the problem, you need to update all your MCUs. We are talking about multiple MCUs here, as people tend to forget that they have multiple microcontrollers in use. One of these candidates is the "Linux MCU" that many people install on their Raspberry Pi to measure resonances with an adxl345.
|
||||
|
||||
Detailed information on how to update the firmware can be found in the Klipper Documentation linked above (under TL;DR).
|
||||
|
||||
As far as we know, work is in progress to let Klipper update the firmware on its own.
|
||||
{: .info}
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
layout: default
|
||||
title: Klipper Errors
|
||||
parent: FAQ
|
||||
nav_order: 50
|
||||
has_children: true
|
||||
permalink: /faq/klipper_errors
|
||||
has_toc: false
|
||||
---
|
||||
@@ -0,0 +1,95 @@
|
||||
---
|
||||
layout: default
|
||||
title: Deprecated Options
|
||||
parent: Klipper Warnings
|
||||
grand_parent: FAQ
|
||||
nav_order: 20
|
||||
has_children: false
|
||||
permalink: /faq/klipper_warnings/deprecated_option
|
||||
has_toc: false
|
||||
---
|
||||
|
||||
# Deprecated Options
|
||||
|
||||
###### default_parameter
|
||||
## Removal of `default_parameter_` for gcode macros.
|
||||
|
||||
In the past, default parameters for gcode macros were defined like so:
|
||||
|
||||
```yaml
|
||||
[gcode_macro PRINT_START]
|
||||
default_parameter_EXTRUDER: 230
|
||||
gcode:
|
||||
...
|
||||
```
|
||||
This would define a macro called `PRINT_START` that can be called with an `EXTRUDER` parameter like so: `PRINT_START EXTRUDER=200`. If no value is passed for `EXTRUDER` the default value of 230 is used. This style of default parameters has been deprecated. Instead, define your macro like so:
|
||||
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro PRINT_START]
|
||||
gcode:
|
||||
{% set EXTRUDER_TEMP = params.EXTRUDER|default(230)|int %}
|
||||
```
|
||||
{% endraw %}
|
||||
Take note of the following important aspects:
|
||||
- Parameters passed to gcode macros are stored in the `params` object. So if your macro is called with `VALUE=50`, `params.VALUE` will contain the value 50. After the deprecation, only the `params` object will contain these values.
|
||||
- Make sure to name your "set variable" something else as the name of the variable in the `params` object (see how I used `EXTRUDER_TEMP` for the "set variable" and `EXTRUDER` for the actual macro parameter above) to avoid confusion and possible parsing errors.
|
||||
- If you want to pass a default, add `|default(<default value>)` to the end of the params variable (see above, where my default value is 10).
|
||||
- To ensure that `EXTRUDER_TEMP` will have an integer value, add `|int` to the end of the command, to turn passed parameters (if they exist) and the default into an integer. Depending on what kind of parameter you're passing, there are `|int` `|float` `|bool` or `|string` converters available. Make sure that you convert to int if you want to compare the values in your gcode macro.
|
||||
|
||||
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
|
||||
[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}.
|
||||
{: .info}
|
||||
|
||||
###### step_distance
|
||||
## Removal of `step_distance`
|
||||
|
||||
`step_distance` describes the distance covered by a certain axis with 1 stepper (micro-)step. The downside of this parameter (and one of the reasons for its removal, is that if one were to change the microstepping of a stepper, the step_distance changes as well. Klipper therefore removed the `step_distance` parameter in favor of `rotation_distance` and `full_steps_per_rotation`. These two parameters are unaffected by microstepping, and can be easily determined by inspecting the used hardware.
|
||||
|
||||
Perform the following steps to convert your config:
|
||||
- comment out the old `step_distance` parameter
|
||||
- add three new parameters:
|
||||
- `full_steps_per_rotation` this is 400 for 0.9 degree stepper motors and 200 for 1.8 degree stepper motors.
|
||||
- `rotation_distance` this can be determined either according to hardware, or by converting the old `step_distance` using math.
|
||||
- `gear_ratio` can additionally be used to describe an axis that uses a reduction gear (like the Voron-2 Z axis)
|
||||
- The easiest way to obtain the correct values for `rotation_distance` and `gear_ratio` is to check the official Voron printer github repositories. All example configs have been updated to include the correct values for the new parameters. Keep in mind that you'll still have to calibrate your extruder steps/mm if you choose to copy the values for the extruder. Instructions on how to convert and recalibrate the extruder values can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#extruder).
|
||||
- The formulas to convert `step_distance` to `rotation distance` can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#obtaining-rotation_distance-from-steps_per_mm-or-step_distance)
|
||||
- Guidance on how to inspect your hardware to determine your conversion distance can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#obtaining-rotation_distance-by-inspecting-the-hardware). Make sure to also consider any reduction gearing, if applicable, by checking [this section](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#using-a-gear_ratio) as well.
|
||||
- For every stepper, except your extruder, you should end up with even numbers (e.g. 40 instead of 39.9683).
|
||||
|
||||
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
|
||||
[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}.
|
||||
{: .info}
|
||||
|
||||
###### pin_map
|
||||
## Removal of `pin_map`
|
||||
|
||||
For Voron printers, this is only relevant if you're running an arduino based controller board and use pins named similar to `ar19` etc. These pin declarations are no longer valid and need to be replaced with their hardware pin identifiers. To find the appropriate hardware pin identifier perform a google image search for your board plus `pinout`. E.g.:
|
||||
|
||||
`arduino mega 2560 pinout`
|
||||
|
||||
which will yield images such as this one:
|
||||
|
||||

|
||||
|
||||
There, find the pin you're trying to replace. The old pin maps use the digital number of the pin. For example, if your old pin was `ar10`, looking at the image you will find that the `D10` pin corresponds to `PB4`. Replace all pins in your config accordingly, and finally remove the `pin_map:` configuration parameter from your `mcu` section.
|
||||
|
||||
Alternatively, you can copy an appropriate `[board_pins]` block from [this location](https://github.com/Klipper3d/klipper/blob/master/config/sample-aliases.cfg) to your config. If you're using multiple arduinos, make sure to add the appropriate mcu to each block like so:
|
||||
|
||||
```yaml
|
||||
[board_pins arduino-mega]
|
||||
mcu: mcu
|
||||
```
|
||||
|
||||
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
|
||||
[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}.
|
||||
{: .info}
|
||||
|
||||
###### pid_integral_max
|
||||
## Removal of `pid_integral_max`
|
||||
|
||||
Remove any instances of `pid_integral_max` from your config.
|
||||
|
||||
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
|
||||
[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}.
|
||||
{: .info}
|
||||
@@ -0,0 +1,33 @@
|
||||
---
|
||||
layout: default
|
||||
title: Deprecated Values
|
||||
parent: Klipper Warnings
|
||||
grand_parent: FAQ
|
||||
nav_order: 10
|
||||
has_children: false
|
||||
permalink: /faq/klipper_warnings/deprecated_value
|
||||
has_toc: false
|
||||
---
|
||||
|
||||
# Deprecated Values
|
||||
|
||||
###### NTC 100K beta 3950
|
||||
## Removal of `NTC 100K beta 3950` sensor type.
|
||||
|
||||
The "NTC 100K beta 3950" temperature sensor is _deprecated_ and will be removed in the near future.
|
||||
|
||||
In order to solve the problem search in your config for `sensor_type: NTC 100K beta 3950` and replace it with `sensor_type: Generic 3950`.
|
||||
|
||||
Most users will find the "Generic 3950" temperature sensor more accurate. Anyway you can continue to use the older (typically less accurate) definition. Therefor define a custom thermistor with `temperature1: 25`, `resistance1: 100000`, and `beta: 3950`.
|
||||
|
||||
[Source](https://www.klipper3d.org/Config_Changes.html){:target="_blank"} Klipper Configuration Changes
|
||||
{: .info}
|
||||
|
||||
###### rpi_temperature
|
||||
## Removal of `rpi_temperature` sensor alias.
|
||||
|
||||
Replace `sensor_type: rpi_temperature` by `sensor_type: temperature_host` everywhere in your config.
|
||||
|
||||
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
|
||||
[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}.
|
||||
{: .info}
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
layout: default
|
||||
title: Klipper Warnings
|
||||
parent: FAQ
|
||||
nav_order: 10
|
||||
has_children: true
|
||||
permalink: /faq/klipper_warnings
|
||||
has_toc: false
|
||||
---
|
||||
@@ -6,12 +6,12 @@ has_children: false
|
||||
---
|
||||
|
||||
# Welcome to Mainsail!
|
||||
Mainsail is a lightweight & responsive web interface for Klipper, the 3D printer firmware. It focuses especially on an intuitive and consistent interface.
|
||||
Mainsail aims to make Klipper more accessible to end users through a lightweight, responsive web ui, centred around an intuitive and consistent design philsophy.
|
||||
{: .fs-5 }
|
||||
|
||||
[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"}
|
||||
[GitHub](https://github.com/mainsail-crew/mainsail){: .btn}{:target="_blank"}
|
||||
[Release Notes](https://github.com/mainsail-crew/mainsail/releases){: .btn}{:target="_blank"}
|
||||
|
||||
## Screenshots
|
||||

|
||||
@@ -34,7 +34,7 @@ Do you need help or just want to talk? Join us on discord. We have a very active
|
||||
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 Issues](https://github.com/meteyou/mainsail/issues){: .btn}{:target="_blank"}
|
||||
[GitHub Issues](https://github.com/mainsail-crew/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.
|
||||
@@ -43,4 +43,4 @@ The project is primarily developed and maintained by meteyou. To keep the projec
|
||||
- [Ko-Fi (one-time)](https://ko-fi.com/mainsail){:target="_blank"}
|
||||
|
||||
However, we would also like to ask you to support the regular contributors.
|
||||
{: .info}
|
||||
{: .info}
|
||||
@@ -30,51 +30,84 @@ This enables pause / resume in mainsail.
|
||||
```
|
||||
|
||||
# Macros
|
||||
## for pause /resume / cancel functionality
|
||||
## 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
|
||||
description: Pause the actual running print
|
||||
rename_existing: PAUSE_BASE
|
||||
gcode:
|
||||
SAVE_GCODE_STATE NAME=PAUSE_state
|
||||
BASE_PAUSE
|
||||
##### 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 #####
|
||||
PAUSE_BASE
|
||||
G91
|
||||
G1 E-{E} F2100
|
||||
G1 Z{Z}
|
||||
G90
|
||||
G1 X{X} Y{Y} F6000
|
||||
{% if printer.extruder.can_extrude|lower == 'true' %}
|
||||
G1 E-{e} F2100
|
||||
{% else %}
|
||||
{action_respond_info("Extruder not hot enough")}
|
||||
{% endif %}
|
||||
{% if "xyz" in printer.toolhead.homed_axes %}
|
||||
G1 Z{z_safe}
|
||||
G90
|
||||
G1 X{x} Y{y} F6000
|
||||
{% else %}
|
||||
{action_respond_info("Printer not homed")}
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
```yaml
|
||||
[gcode_macro RESUME]
|
||||
rename_existing: BASE_RESUME
|
||||
default_parameter_E: 1 #edit to your retract length
|
||||
description: Resume the actual running print
|
||||
rename_existing: RESUME_BASE
|
||||
gcode:
|
||||
##### set defaults #####
|
||||
{% set e = params.E|default(1) %} #edit to your retract length
|
||||
#### get VELOCITY parameter if specified ####
|
||||
{% if 'VELOCITY' in params|upper %}
|
||||
{% set get_params = ('VELOCITY=' + params.VELOCITY) %}
|
||||
{%else %}
|
||||
{% set get_params = "" %}
|
||||
{% endif %}
|
||||
##### end of definitions #####
|
||||
G91
|
||||
G1 E{E} F2100
|
||||
G90
|
||||
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
|
||||
BASE_RESUME
|
||||
{% if printer.extruder.can_extrude|lower == 'true' %}
|
||||
G1 E{e} F2100
|
||||
{% else %}
|
||||
{action_respond_info("Extruder not hot enough")}
|
||||
{% endif %}
|
||||
RESUME_BASE {get_params}
|
||||
```
|
||||
|
||||
|
||||
```yaml
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
rename_existing: BASE_CANCEL_PRINT
|
||||
description: Cancel the actual running print
|
||||
rename_existing: CANCEL_PRINT_BASE
|
||||
gcode:
|
||||
TURN_OFF_HEATERS
|
||||
CLEAR_PAUSE
|
||||
SDCARD_RESET_FILE
|
||||
BASE_CANCEL_PRINT
|
||||
CANCEL_PRINT_BASE
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
# Optional
|
||||
|
||||
## 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 +120,4 @@ gcode:
|
||||
BASE_BED_MESH_CALIBRATE
|
||||
#after the original gcode
|
||||
```
|
||||
{% endraw %}
|
||||
@@ -28,7 +28,7 @@ Due to the major changes we will probably jump directly to **Mainsail 2000** ins
|
||||

|
||||
|
||||
# Easy to customize
|
||||
Throw your own wallaper in the folder and you are ready to go.
|
||||
Throw your own wallpaper in the folder and you are ready to go.
|
||||
|
||||

|
||||
|
||||
@@ -39,4 +39,6 @@ Mainsails new smart assistant *Clippy* is always there to help and advise.
|
||||
|
||||
He may be receiving support from *Wizard* in the near future, who could help you with your printing problems.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
---
|
||||
layout: default
|
||||
title: Multicam
|
||||
parent: Quicktips
|
||||
has_children: false
|
||||
permalink: /quicktips/multicam
|
||||
description: >-
|
||||
How to setup multi Webcams with mainsailOS.
|
||||
---
|
||||
|
||||
# {{ page.title }}
|
||||
{{ page.description }}
|
||||
|
||||
__Disclaimer__
|
||||
Thank you [Charlie_Powell](https://community.octoprint.org/u/Charlie_Powell) for letting us adapt your guide for mainsailOS!
|
||||
The original guide can be found [here](https://community.octoprint.org/t/setting-up-multiple-webcams-in-octopi-the-right-way/32669).
|
||||
{: .info}
|
||||
|
||||
## Prerequisites
|
||||
You need:
|
||||
|
||||
- mainsailOS v0.5.0 or higher
|
||||
- ssh access
|
||||
- at least two cameras
|
||||
|
||||
__WARNING__
|
||||
**If you are working on a existing installation, make a backup!**
|
||||
{: .warning}
|
||||
|
||||
## Creating the configuration files
|
||||
mainsailOS supports an infinite number of webcam*.txt-style configuration files. They can be placed in
|
||||
`/home/pi/klipper_config`.
|
||||
|
||||
In the UI, got to 'Settings > Interface' click on (1) and save as `webcam2.txt`.
|
||||
|
||||
:image:
|
||||
|
||||
Now you should have two identical files:
|
||||
1. `/home/pi/klipper_config/webcam.txt`
|
||||
2. `/home/pi/klipper_config/webcam2.txt`
|
||||
|
||||
## Editing the original configuration file for a specific camera
|
||||
Find out the path to the camera by ID. This makes it much easier to stop /dev/video0 and /dev/video1 from switching on you.
|
||||
|
||||
Run `ls /dev/v4l/by-id`, copy your camera id and paste it into the editor in mainsail. For example:
|
||||
|
||||
```bash
|
||||
$ ls /dev/v4l/by-id/
|
||||
usb-046d_0825_88C56B60-video-index0 usb-046d_0825_88C56B60-video-index1
|
||||
```
|
||||
I'll use the first one `usb-046d_0825_88C56B60-video-index0`
|
||||
|
||||
|
||||
__Note__
|
||||
Not sure which device is which? You can run lsusb to match a name to an ID.
|
||||
{: .info}
|
||||
|
||||
Then edit `/home/pi/klipper_config/webcam.txt` in by clicking on it in mainsail.
|
||||
|
||||
Set `camera="usb"` at the top, and the `camera_usb_options` line to indicate the device:
|
||||
|
||||
`camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/<device long id>"`
|
||||
|
||||
__Note__
|
||||
Using a Raspberry Pi camera? Set camera="raspi" at the top of the file, and you can ignore referencing the cameras by device ID.
|
||||
{: .info}
|
||||
|
||||
## 3. Editing the second configuration file
|
||||
There's two things that need adjusting here: the port mjpg_streamer will be running under, and the device again.
|
||||
|
||||
__Note__
|
||||
Using 1 RPi camera and 1 USB camera? You don't need to reference them by ID, since camera="raspi" vs. camera="usb" is enough.
|
||||
{: .info}
|
||||
|
||||
Find the long ID of the second camera, as you did for the first one.
|
||||
|
||||
Editing `/home/pi/klipper_config/webcam2.txt` like described above.
|
||||
|
||||
As above again, set camera="usb" and set camera_usb_options but this time using the ID for the second camera:
|
||||
|
||||
`camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/<device long id>"`
|
||||
|
||||
Adjust the port, by editing camera_http_options:
|
||||
|
||||
`camera_http_options="-n -p 8081"`
|
||||
|
||||
The port should reflect the number in `webcam*.txt`:
|
||||
```
|
||||
webcam.txt => -p 8080
|
||||
webcam1.txt => -p 8081
|
||||
webcam2.txt => -p 8082
|
||||
webcam3.txt => -p 8083
|
||||
```
|
||||
|
||||
__INFO__
|
||||
mainsailOS comes already setup with four nginx reverse proxies for port 8080 to 8083, so you can configure 4 webcams easy with this guide,
|
||||
for more webcams you need to configure the nginx config, which we dont recommend!
|
||||
It includes editing nginx configuration, which is easy to mess up and having mainsail stop working as well.
|
||||
If you need more than four webcams, hop onto our [Discord](https://discord.gg/skWTwTD){:target="_blank"} and we will help you.
|
||||
{: .warning}
|
||||
|
||||
## 4. Test it works
|
||||
Restart webcamd click the button,
|
||||
and try and find your second camera under `http://<your-ip>/webcam2/`.
|
||||
If it doesn't work, check in the webcam log under the filemanager log section for details.
|
||||
|
||||
If it works, you can use the URLs in mainsail:
|
||||
|
||||
Stream: `http://<your-ip>/webcam2/`
|
||||
|
||||
__DONE__
|
||||
Congratulations, you set up multi webcam with mainsailOS!
|
||||
If you want to add more, just follow the guide again and increment the webcam*.txt number i.e. webcam**3**.txt and so on.
|
||||
The webcams are easy accessible through your `http://<your-ip>/webcam`, `http://<your-ip>/webcam2` and so on.
|
||||
{: .success}
|
||||
@@ -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 _// devices on your regular LAN_
|
||||
__192.168.50__.x _// devices connected through your VPN tunnel_
|
||||
{: .info}
|
||||
@@ -39,4 +39,12 @@ From now on the gcode files contain thumbnails displayed by mainsail.
|
||||
The Cura plugin "Cura2Moonraker" is required for this. You can find this plugin and a install guide
|
||||
here: [https://github.com/emtrax-ltd/Cura2MoonrakerPlugin](https://github.com/emtrax-ltd/Cura2MoonrakerPlugin)
|
||||
|
||||

|
||||

|
||||
|
||||
### ideaMaker (since v4.2.1)
|
||||
|
||||
To enable thumbnails, open the `Advanced` tab in the `printer settings`, enable the `GCode Thumbnails for Octoprint and Mainsail` option and
|
||||
enter your prefered *square format* image size in the `Resolution` fields (e.g. `400 X 400`).
|
||||
It's necessary that the thumbnail width and height resolution is equal.
|
||||
|
||||

|
||||
@@ -20,7 +20,7 @@ Add the following section to your printers moonraker.conf:
|
||||
|
||||
[update_manager client mainsail]
|
||||
type: web
|
||||
repo: meteyou/mainsail
|
||||
repo: mainsail-crew/mainsail
|
||||
path: ~/mainsail
|
||||
```
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@ has_toc: false
|
||||
---
|
||||
# Setup Guides
|
||||
|
||||
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.
|
||||
## Local installation
|
||||
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.
|
||||
@@ -17,17 +18,9 @@ To get started, you first have to decide which route you want to follow for the
|
||||
- [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.
|
||||
## Hosted
|
||||
|
||||
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.
|
||||
Setup [remote access](../quicktips/remote-access) without installing/configuring a web server!
|
||||
{: .info}
|
||||
|
||||
A hosted instance of Mainsail can be found and used at [my.mainsail.xyz](http://my.mainsail.xyz), check out the [documentation](mainsail-hosted) for usage and configuration.
|
||||
@@ -0,0 +1,51 @@
|
||||
---
|
||||
layout: default
|
||||
title: my.mainsail.xyz
|
||||
parent: Setup Guides
|
||||
nav_order: 4
|
||||
has_children: false
|
||||
has_toc: false
|
||||
permalink: /setup/mainsail-hosted
|
||||
---
|
||||
|
||||
# my.mainsail.xyz
|
||||
|
||||
Mainsail and MainsailOS respect [Data Privacy](../data-privacy).
|
||||
{: .info}
|
||||
|
||||
The hosted version of mainsail can be used:
|
||||
|
||||
* On the same (local) network as your printer.
|
||||
* On a remote (different) network to your printer (requires the configuration of [remote access](../quicktips/remote-access)).
|
||||
|
||||
## Requirements
|
||||
|
||||
- MainsailOS and KIAUH are preconfigured to meet the requirements for the hosted service to work.
|
||||
- If you have a manual installation, then 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.
|
||||
|
||||
## Editing moonraker.conf
|
||||
|
||||
Further information can be found in the Moonraker [documentation](https://moonraker.readthedocs.io/en/latest/configuration/#authorization)
|
||||
{: .info}
|
||||
|
||||
To allow [my.mainsail.xyz](http://my.mainsail.xyz) to access your local installation, navigate to moonraker.conf open it and add the following code:
|
||||
|
||||
```yml
|
||||
[authorization]
|
||||
cors_domains:
|
||||
https://my.mainsail.xyz
|
||||
http://my.mainsail.xyz
|
||||
http://*.local
|
||||
trusted_clients:
|
||||
10.0.0.0/8
|
||||
127.0.0.0/8
|
||||
169.254.0.0/16
|
||||
172.16.0.0/12
|
||||
192.168.0.0/16
|
||||
FE80::/10
|
||||
::1/128
|
||||
|
||||
```
|
||||
@@ -3,25 +3,20 @@ layout: default
|
||||
title: MainsailOS
|
||||
parent: Setup Guides
|
||||
nav_order: 1
|
||||
has_children: false
|
||||
has_children: true
|
||||
has_toc: false
|
||||
permalink: /setup/mainsail-os
|
||||
---
|
||||
# Installing Mainsail with MainsailOS
|
||||
|
||||
The recommended way to install Mainsail on a Raspberry Pi is to use [MainsailOS](https://github.com/raymondh2/MainsailOS),
|
||||
a pre-packaged disk image. If you are building a custom configuration, you may need to skip
|
||||
these instructions and install Mainsail [manually](manual-setup/index.md).
|
||||
# Installing MainsailOS
|
||||
|
||||
1. Download the latest mainsailOS [Release](https://github.com/raymondh2/MainsailOS/releases)
|
||||
2. Unzip the .img file from your download.
|
||||
3. Use [BalenaEtcher](https://www.balena.io/etcher/) to write the .img on to an 8GB, or larger SDcard. *THIS WILL DESTROY ALL DATA ON YOUR CARD*.
|
||||
MainsailOS builds upon RaspberryOS-Lite by incorporating Klipper, Moonraker and Mainsail into one disc image, making them more accessible and quicker to setup than before.
|
||||
|
||||
_note: It is a good idea to use a premium SDcard from a reputable manufacturer such as Sandisk, Kingston or Samsung. Low end cards will often fail quickly when used in this application_
|
||||
Complex/custom configurations may be better suited to a [manual](manual-setup/index.md) installation of Mainsail.
|
||||
|
||||
4. If you will be using wifi, edit the file `mainsailos-wpa-supplicant.txt` with your Wifi information. If you are having trouble seeing this file on the sdcard, try removing it and re-inserting it into your card reader.
|
||||
5. Make sure that your MCU(s) is connected to your pi, If you will be using wired networking, also make sure your ethernet cable is connected.
|
||||
5. Insert the SDcard into your Pi, and power on the Pi.
|
||||
6. Find your pi on the network, and ssh into it, (Using PuTTY on Windows or the terminal on MacOS)
|
||||
* If your network supports bonjour, the pi should show up as `mainsailos.local`
|
||||
* If your network automatically assigns DNS hostnames, it may simply show up as `mainsailos`
|
||||
* Failing these two options, you may need to check your router's DHCP server, and find out what IP address as been assigned to the device.
|
||||
If you are familiar with the flashing process, then please use your preferred method as you normally would.
|
||||
|
||||
If however you are unfamiliar with the flashing process then we have documented two methods to flash MainsailOS to your SD card:
|
||||
|
||||
* [Raspberry Pi Imager](mainsailos/pi-imager) (cross-platform, easiest) <span class="label label-red">recommended</span>
|
||||
* [Balena Etcher](mainsailos/balena-etcher) (requires manual setup)
|
||||
@@ -0,0 +1,125 @@
|
||||
---
|
||||
layout: default
|
||||
title: balenaEtcher
|
||||
parent: MainsailOS
|
||||
grand_parent: Setup Guides
|
||||
nav_order: 2
|
||||
has_children: false
|
||||
permalink: /setup/mainsailos/balena-etcher
|
||||
---
|
||||
|
||||
This method requires manual setup for SSH and Wi-Fi.
|
||||
{: .info}
|
||||
This method is cross-platform and works with Windows, Linux and MacOS.
|
||||
{: .info}
|
||||
|
||||
We **strongly** recommend you use a premium SD card from a reputable manufacturer such as Sandisk, Kingston or Samsung, using an "A1" (or better) grade SD card. \
|
||||
\
|
||||
Low end cards will often fail quickly when used in this application.
|
||||
{: .warning}
|
||||
|
||||
**FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED**
|
||||
{: .alert}
|
||||
|
||||
____
|
||||
|
||||
# Preparation
|
||||
|
||||
Whilst this guide makes specific use of balenaEtcher it is entirely possible to use any flashing software of your choice and then follow the manual steps to enable SSH / network after.
|
||||
|
||||
* [Download](https://github.com/mainsail-crew/MainsailOS/releases) the latest MainsailOS release (don't unpack the zip; you don't need to).
|
||||
* [Download](https://www.balena.io/etcher/) and install the latest balenaEtcher.
|
||||
|
||||
# Flashing MainsailOS
|
||||
|
||||
balenaEtcher appearance may vary depending on the host OS.
|
||||
{: .info}
|
||||
|
||||
|
||||
* When opening balenaEtcher you will be presented with the following:
|
||||

|
||||
|
||||
* Select the 'Flash from file' button ('Select image' on Windows) and navigate to the downloaded MainsailOS zip.
|
||||

|
||||
|
||||
* Select the 'Select target' button and choose the SD card you want to flash.
|
||||

|
||||

|
||||
|
||||
* Return the the main screen, and select 'Flash'. Accept any warnings to continue.
|
||||
**FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED**
|
||||
{: .alert}
|
||||
|
||||

|
||||
|
||||
* balenaEtcher will now decompress (unzip) the MainsailOS archive, write the disc image to the card and verify the flash.
|
||||

|
||||

|
||||

|
||||
|
||||
* balenaEtcher will confirm the flash is complete.
|
||||

|
||||
|
||||
# Enabling SSH
|
||||
You may need to safely remove (eject) the SD card and reinsert it for the /boot partition to show.
|
||||
{: .info}
|
||||
|
||||
Before you move on, it is important to check SSH is enabled.
|
||||
|
||||
This is done by creating an empty file with no extension named 'SSH', or 'SSH.txt' in the /boot partition of the SD card. MainsailOS includes this file.
|
||||
|
||||

|
||||
|
||||
If for some reason the file is not present, then on linux it can be created by navigating to the /boot partition and opening a terminal:
|
||||
|
||||
```bash
|
||||
sudo touch SSH
|
||||
sudo touch SSH.txt
|
||||
```
|
||||
|
||||
RaspberryOS will check if /boot/SSH(.txt) is present at first boot. If the file is present then SSH will be enabled.
|
||||
|
||||
|
||||
# Setting up Wi-Fi / Network
|
||||
|
||||
SSID's are case-sensitive!
|
||||
{: .info}
|
||||
Don't forget to set the country!
|
||||
{: .warning}
|
||||
|
||||
|
||||
To setup Wi-Fi for a headless Pi install the network SSID and password must be entered into mainsailos-wpa-supplicant.txt
|
||||
|
||||
With the SD card inserted into the computer, navigate to the SD card's /boot partition and open mainsail-wpa-supplicant.txt.
|
||||
|
||||
Locate the relevant section to your network, remove the comment marks (#) and enter the SSID and password. WPA/WPA2 is the most common.
|
||||
|
||||
```yml
|
||||
Original:
|
||||
## WPA/WPA2 secured
|
||||
#network={
|
||||
# ssid="put SSID here"
|
||||
# psk="put password here"
|
||||
#}
|
||||
|
||||
Filled out:
|
||||
## WPA/WPA2 secured
|
||||
network={
|
||||
ssid="CaseSensitive_WIFI"
|
||||
psk="SuperSecrets"
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
# Uncomment the country your Pi is in to activate Wifi in RaspberryPi 3 B+ and above
|
||||
# For full list see: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
||||
country=GB # United Kingdom
|
||||
|
||||
```
|
||||
Save and exit the mainsailos-wpa-supplicant.txt file.
|
||||
|
||||
You are now ready to move on to the [first boot](first-boot) of MainsailOS.
|
||||
|
||||
|
||||
---
|
||||
[< tool selection](../mainsail-os.md){: .btn } [next step >](first-boot){: .btn }
|
||||
@@ -0,0 +1,65 @@
|
||||
---
|
||||
layout: default
|
||||
title: First boot
|
||||
parent: MainsailOS
|
||||
grand_parent: Setup Guides
|
||||
nav_order: 3
|
||||
has_children: false
|
||||
permalink: /setup/mainsailos/first-boot
|
||||
---
|
||||
|
||||
|
||||
# First boot
|
||||
|
||||
Insert the flashed SD card into your Pi and connect other desired/necessary hardware (ethernet, USB to 3D printer, webcam).
|
||||
|
||||
Power on the Pi and leave it to boot.
|
||||
|
||||
**The initial boot of MainsailOS may take some time to expand your "root" filesystem. The larger the SD card, the longer the first boot will take.**
|
||||
{: .warning}
|
||||
|
||||
Initially the green LED on the Pi will be extremely active. After some time it will only intermittently flicker, indicating it has likely completed the boot sequence.
|
||||
|
||||
The web ui should now be ready to access on your local network:
|
||||
|
||||
```
|
||||
http://mainsailos.local
|
||||
http://<IP address of your pi>
|
||||
```
|
||||
|
||||
## Mainsail.cfg
|
||||
|
||||
**Important:** Include the mainsail.cfg into your printer.cfg
|
||||
{: .warning}
|
||||
|
||||
Mainsail will not work unless Klipper is told to include its configuration. This can be achieved either by placing the contents of mainsail.cfg into your printer.cfg.
|
||||
|
||||
To do this, open the default printer.cfg in the Mainsail web GUI:
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Add the following line:
|
||||
|
||||
```yml
|
||||
[include mainsail.cfg]
|
||||
```
|
||||
and click on the "Save & Restart" button.
|
||||
|
||||
## Updates
|
||||
|
||||
Once you've successfully navigated to the Mainsail web ui we _thoroughly_ recommend that you run updates.
|
||||
|
||||
Klipper, Moonraker and Mainsail have fast development cycles and whilst we do our best to ensure MainsailOS ships as close to the bleeding edge as we can, there will always be a short delay before releases make it into the image.
|
||||
|
||||
We recommend that you enable and use the [built in update-manager](../../update/update-manager) to perform a system update, then update the stack components (Klipper, Moonraker, Mainsail)
|
||||
|
||||

|
||||
|
||||
|
||||
MainsailOS is now configured, and we can get Klipper's [printer.cfg](klipper-setup) setup.
|
||||
|
||||
---
|
||||
[< tool selection](../mainsail-os.md){: .btn } [next step >](klipper-setup){: .btn }
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
---
|
||||
layout: default
|
||||
title: Klipper
|
||||
parent: MainsailOS
|
||||
grand_parent: Setup Guides
|
||||
nav_order: 4
|
||||
has_children: false
|
||||
permalink: /setup/mainsailos/klipper-setup
|
||||
---
|
||||
|
||||
# Klipper setup
|
||||
|
||||
Please read and follow the [Klipper documentation](https://klipper3d.org) in order to setup your machine.
|
||||
{: .info}
|
||||
You do not need to follow instructions pertaining to Octopi or Octoprint found in the Klipper documentation.
|
||||
{: .info}
|
||||
|
||||
Klipper is a highly versatile piece of software and can run with almost any machine. Due to the plethora of stock and custom hardware options available, it is impossible to ship MainsailOS / Klipper with a default configuration that would work for everyone.
|
||||
|
||||
## Modifying/constructing printer.cfg
|
||||
|
||||
**You must enter parts of this configuration manually, as it is specific to your printer and MCU hardware**
|
||||
{: .warning}
|
||||
|
||||
To customise your printer.cfg you will need to SSH to your Pi and:
|
||||
|
||||
```yml
|
||||
cd ~/klipper_config
|
||||
nano printer.cfg
|
||||
```
|
||||
Then follow the [Klipper documentation](https://klipper3d.org) to construct your printer.cfg file.
|
||||
|
||||
---
|
||||
|
||||
Before progressing to the next step, ensure that you have:
|
||||
|
||||
* Correctly built the firmware and [flashed the MCU](https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller)
|
||||
* Correctly written/customised your printer.cfg file using the [Klipper configuration reference](https://www.klipper3d.org/Config_Reference.html).
|
||||
* Checked and then [verified your printer.cfg](https://www.klipper3d.org/Config_checks.html).
|
||||
|
||||
|
||||
---
|
||||
[< first boot](first-boot){: .btn } [next step >](pre-flight){: .btn }
|
||||
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
---
|
||||
layout: default
|
||||
title: Raspberry Pi Imager
|
||||
parent: MainsailOS
|
||||
grand_parent: Setup Guides
|
||||
nav_order: 1
|
||||
has_children: false
|
||||
permalink: /setup/mainsailos/pi-imager
|
||||
---
|
||||
|
||||
This method is cross-platform and works with Windows, Linux and MacOS
|
||||
{: .info}
|
||||
|
||||
We **strongly** recommend you use a premium SD card from a reputable manufacturer such as Sandisk, Kingston or Samsung, using an "A1" (or better) grade SD card. \
|
||||
\
|
||||
Low end cards will often fail quickly when used in this application.
|
||||
{: .warning}
|
||||
|
||||
**FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED**
|
||||
{: .alert}
|
||||
|
||||
____
|
||||
|
||||
# Preparation
|
||||
|
||||
* [Download](https://github.com/mainsail-crew/MainsailOS/releases) the latest MainsailOS release (don't unpack the zip; you don't need to).
|
||||
* [Download](https://www.raspberrypi.org/software/) and install the latest Raspberry Pi Imager (aka. rpi-imager).
|
||||
|
||||
# Flashing MainsailOS
|
||||
|
||||
Raspberry Pi Imager appearance may vary depending on the host OS.
|
||||
{: .info}
|
||||
|
||||
|
||||
* When opening rpi-imager you will be presented with the following:
|
||||
|
||||

|
||||
|
||||
* Select "CHOOSE OS", and a popup will open as illustrated below. Select "Use custom" and navigate to the MainsailOS zip you downloaded.
|
||||
|
||||

|
||||

|
||||
|
||||
* Click on "STORAGE" and select your desired SD card.
|
||||
|
||||

|
||||
|
||||
* Hostname, wi-fi, language and numerous other settings can now be scrolled through and pre-configured in a hidden setup menu, opened by pressing:
|
||||
|
||||
```bash
|
||||
CTRL+SHIFT+X
|
||||
```
|
||||
As a bare minimumm setup SSH and a network connection (unless wired) at this point, especially if performing a 'headless' installation.
|
||||
{: .info}
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
* With all desired options preconfigured, click on "WRITE" and accept the warning.
|
||||
|
||||

|
||||
|
||||
* Imager will take some time to write the disc image to the SD card. When it's finished, click continue.
|
||||
|
||||

|
||||
|
||||
Select the "CONTINUE" button and unmount (safely remove) your newly flashed MainsailOS SD card.
|
||||
|
||||
You are now ready to move on to the [first boot](first-boot) of MainsailOS.
|
||||
|
||||
|
||||
---
|
||||
[< tool selection](../mainsail-os.md){: .btn } [next step >](first-boot){: .btn }
|
||||
|
||||
@@ -9,57 +9,78 @@ permalink: /setup/manual-setup/klipper
|
||||
|
||||
# Klipper
|
||||
## Installation
|
||||
The following commands will clone Klipper to an appropriate directory in HOME and run the setup script.
|
||||
At first we have to install some OS dependencies:
|
||||
```bash
|
||||
sudo apt install virtualenv python-dev libffi-dev build-essential libncurses-dev libusb-dev avrdude gcc-avr binutils-avr avr-libc stm32flash dfu-util libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0
|
||||
```
|
||||
|
||||
The following commands will clone Klipper to an appropriate directory in HOME.
|
||||
```bash
|
||||
cd ~
|
||||
git clone https://github.com/KevinOConnor/klipper
|
||||
cd ~/klipper
|
||||
./scripts/install-octopi.sh
|
||||
```
|
||||
|
||||
## 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`
|
||||
Then we can initialize the python virtual environment and install the python dependencies:
|
||||
```bash
|
||||
cd ~
|
||||
virtualenv -p python2 ./klippy-env
|
||||
./klippy-env/bin/pip install -r ./klipper/scripts/klippy-requirements.txt
|
||||
```
|
||||
|
||||
## Configuration & startup service
|
||||
After Klipper is installed, you will need to create a startup script to define log, config & UDS service location:
|
||||
|
||||
To edit this file type:
|
||||
```bash
|
||||
sudo nano /etc/default/klipper
|
||||
sudo nano /etc/systemd/system/klipper.service
|
||||
```
|
||||
|
||||
find the following line:
|
||||
```
|
||||
KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/printer.cfg -l /tmp/klippy.log"
|
||||
```
|
||||
and change the config location to `/home/pi/klipper_config/printer.cfg` and add `-a /tmp/klippy_uds` to define UDS.
|
||||
```
|
||||
KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/klipper_config/printer.cfg -l /tmp/klippy.log -a /tmp/klippy_uds"
|
||||
fill in these lines:
|
||||
```yaml
|
||||
#Systemd Klipper Service
|
||||
|
||||
[Unit]
|
||||
Description=Starts Klipper and provides klippy Unix Domain Socket API
|
||||
Documentation=https://www.klipper3d.org/
|
||||
After=network.target
|
||||
Before=moonraker.service
|
||||
Wants=udev.target
|
||||
|
||||
[Install]
|
||||
Alias=klippy
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment=KLIPPER_CONFIG=/home/pi/klipper_config/printer.cfg
|
||||
Environment=KLIPPER_LOG=/home/pi/klipper_logs/klippy.log
|
||||
Environment=KLIPPER_SOCKET=/tmp/klippy_uds
|
||||
Type=simple
|
||||
User=pi
|
||||
RemainAfterExit=yes
|
||||
ExecStart= /home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CONFIG} -l ${KLIPPER_LOG} -a ${KLIPPER_SOCKET}
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
```
|
||||
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
|
||||
|
||||
You have to create the directories for your klipper configuration and the virtual_sdcard directory:
|
||||
**Please check and modify the username!**
|
||||
If you do not use the user `pi`, you must replace it in each path and in the variable user in the service file.
|
||||
{: .warning }
|
||||
|
||||
To enable and start the Klipper service execute these commands:
|
||||
```bash
|
||||
sudo systemctl enable klipper.service
|
||||
```
|
||||
|
||||
You have to create the directories for your klipper configuration, logs and the virtual_sdcard directory:
|
||||
|
||||
```bash
|
||||
mkdir ~/klipper_config
|
||||
mkdir ~/klipper_logs
|
||||
mkdir ~/gcode_files
|
||||
touch ~/klipper_config/printer.cfg
|
||||
```
|
||||
|
||||
Move your printer.cfg to ~/klipper_config and check if the following entries are present in the config.
|
||||
```ini
|
||||
[virtual_sdcard]
|
||||
# for gcode upload
|
||||
path: ~/gcode_files
|
||||
|
||||
[display_status]
|
||||
# for display messages in status panel
|
||||
|
||||
[pause_resume]
|
||||
# for pause/resume functionality.
|
||||
# Mainsail needs gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT` to make the buttons work.
|
||||
```
|
||||
**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.
|
||||
After your config is in place, restart klipper with `sudo systemctl start klipper`.
|
||||
|
||||
---
|
||||
[< previous step](operating-system.md){: .btn } [next step >](moonraker.md){: .btn}
|
||||
@@ -31,16 +31,29 @@ Each file can be filled with the following content:
|
||||
# /etc/nginx/conf.d/upstreams.conf
|
||||
|
||||
upstream apiserver {
|
||||
#if you need to change your api port, edit it here
|
||||
ip_hash;
|
||||
server 127.0.0.1:7125;
|
||||
}
|
||||
|
||||
upstream mjpgstreamer {
|
||||
#if you need to change your webcam port, edit it here
|
||||
upstream mjpgstreamer1 {
|
||||
ip_hash;
|
||||
server 127.0.0.1:8080;
|
||||
}
|
||||
|
||||
upstream mjpgstreamer2 {
|
||||
ip_hash;
|
||||
server 127.0.0.1:8081;
|
||||
}
|
||||
|
||||
upstream mjpgstreamer3 {
|
||||
ip_hash;
|
||||
server 127.0.0.1:8082;
|
||||
}
|
||||
|
||||
upstream mjpgstreamer4 {
|
||||
ip_hash;
|
||||
server 127.0.0.1:8083;
|
||||
}
|
||||
```
|
||||
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
|
||||
|
||||
@@ -64,12 +77,11 @@ Save the file with `CTRL+O` and close the editor with `CTRL+X`.
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
access_log /var/log/nginx/mainsail-access.log;
|
||||
error_log /var/log/nginx/mainsail-error.log;
|
||||
|
||||
#disable this section on smaller hardware like a pi zero
|
||||
# disable this section on smaller hardware like a pi zero
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
@@ -77,21 +89,24 @@ server {
|
||||
gzip_comp_level 4;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/javascript application/x-javascript application/json application/xml;
|
||||
|
||||
#web_path from mainsail static files
|
||||
# web_path from mainsail static files
|
||||
root /home/pi/mainsail;
|
||||
|
||||
index index.html;
|
||||
server_name _;
|
||||
|
||||
#disable max upload size
|
||||
# disable max upload size checks
|
||||
client_max_body_size 0;
|
||||
|
||||
# disable proxy request buffering
|
||||
proxy_request_buffering off;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
|
||||
location = /index.html {
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
||||
}
|
||||
@@ -114,9 +129,21 @@ server {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
}
|
||||
|
||||
|
||||
location /webcam/ {
|
||||
proxy_pass http://mjpgstreamer/;
|
||||
proxy_pass http://mjpgstreamer1/;
|
||||
}
|
||||
|
||||
location /webcam2/ {
|
||||
proxy_pass http://mjpgstreamer2/;
|
||||
}
|
||||
|
||||
location /webcam3/ {
|
||||
proxy_pass http://mjpgstreamer3/;
|
||||
}
|
||||
|
||||
location /webcam4/ {
|
||||
proxy_pass http://mjpgstreamer4/;
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -128,13 +155,13 @@ Create directory for static files and active nginx config:
|
||||
mkdir ~/mainsail
|
||||
sudo rm /etc/nginx/sites-enabled/default
|
||||
sudo ln -s /etc/nginx/sites-available/mainsail /etc/nginx/sites-enabled/
|
||||
sudo service nginx restart
|
||||
sudo systemctl restart nginx
|
||||
```
|
||||
|
||||
Now you can check again the API if it works with the reverse proxy. Open the url http://\<printer-ip\>/printer/info in your browser. if you see a content like this:
|
||||
|
||||
```
|
||||
{"result": {"hostname": "voron250", "error_detected": false, "version": "v0.8.0-479-gd586fb06", "is_ready": true, "message": "Printer is ready", "cpu": "4 core ARMv7 Processor rev 4 (v7l)"}}
|
||||
{"result": {"state_message": "Printer is ready", "klipper_path": "/home/pi/klipper", "config_file": "/home/pi/klipper_config/printer.cfg", "software_version": "v0.9.1-785-g1be19177", "hostname": "raspberrypi", "cpu_info": "4 core ARMv7 Processor rev 4 (v7l)", "state": "ready", "python_path": "/home/pi/klippy-env/bin/python", "log_file": "/home/pi/klipper_log/klippy.log"}}
|
||||
```
|
||||
|
||||
Now we can install Mainsail (static httpdocs).
|
||||
@@ -145,7 +172,7 @@ Now you can download the current mainsail static data
|
||||
|
||||
```
|
||||
cd ~/mainsail
|
||||
wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/latest/download/mainsail.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
wget -q -O mainsail.zip https://github.com/mainsail-crew/mainsail/releases/latest/download/mainsail.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
```
|
||||
|
||||
Now it should be possible to open the interface: `http://<printer-ip>/`.
|
||||
|
||||
@@ -10,16 +10,22 @@ permalink: /setup/manual-setup/moonraker
|
||||
Moonraker is a web server that exposes APIs which lets Mainsail interact with Klipper.
|
||||
|
||||
## Installation
|
||||
At first we have to install some OS dependencies:
|
||||
```bash
|
||||
sudo apt install python3-virtualenv python3-dev libopenjp2-7 python3-libgpiod curl libcurl4-openssl-dev libssl-dev liblmdb-dev libsodium-dev zlib1g-dev libjpeg-dev
|
||||
```
|
||||
|
||||
Clone Moonraker into your HOME directory:
|
||||
```bash
|
||||
cd ~
|
||||
git clone https://github.com/Arksine/moonraker.git
|
||||
```
|
||||
|
||||
Run Moonrakers install script:
|
||||
Then we can initialize the python virtual environment and install the python dependencies:
|
||||
```bash
|
||||
cd ~/moonraker/scripts
|
||||
./install-moonraker.sh -c /home/pi/klipper_config/moonraker.conf
|
||||
cd ~
|
||||
virtualenv -p python3 ./moonraker-env
|
||||
./moonraker-env/bin/pip install -r ./moonraker/scripts/moonraker-requirements.txt
|
||||
```
|
||||
|
||||
## Configuration
|
||||
@@ -31,32 +37,49 @@ For Moonraker you'll need to create a separate config file.
|
||||
|
||||
`nano ~/klipper_config/moonraker.conf`
|
||||
|
||||
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.
|
||||
Insert the following part:
|
||||
```
|
||||
[server]
|
||||
host: 0.0.0.0
|
||||
port: 7125
|
||||
enable_debug_logging: False
|
||||
config_path: ~/klipper_config
|
||||
log_path: ~/klipper_logs
|
||||
|
||||
[authorization]
|
||||
cors_domains:
|
||||
https://my.mainsail.xyz
|
||||
http://my.mainsail.xyz
|
||||
http://*.local
|
||||
http://*.lan
|
||||
trusted_clients:
|
||||
10.0.0.0/8
|
||||
127.0.0.0/8
|
||||
169.254.0.0/16
|
||||
172.16.0.0/12
|
||||
192.168.0.0/16
|
||||
FE80::/10
|
||||
::1/128
|
||||
|
||||
# enables partial support of Octoprint API
|
||||
[octoprint_compat]
|
||||
|
||||
# enables moonraker to track and store print history.
|
||||
[history]
|
||||
|
||||
# this enables moonraker's update manager
|
||||
[update_manager]
|
||||
|
||||
[update_manager mainsail]
|
||||
type: web
|
||||
repo: mainsail-crew/mainsail
|
||||
path: ~/mainsail
|
||||
```
|
||||
|
||||
**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]
|
||||
host: 0.0.0.0
|
||||
config_path: ~/klipper_config
|
||||
|
||||
[authorization]
|
||||
enabled: true
|
||||
trusted_clients:
|
||||
192.168.1.0/24
|
||||
2a02:810d:9340:33f6::/64
|
||||
|
||||
[update_manager]
|
||||
|
||||
[update_manager client mainsail]
|
||||
type: web
|
||||
repo: meteyou/mainsail
|
||||
path: ~/mainsail
|
||||
```
|
||||
|
||||
🔥 **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
|
||||
@@ -70,11 +93,47 @@ trusted.
|
||||
|
||||
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
|
||||
|
||||
Restart Moonraker
|
||||
## Startup service
|
||||
To edit this file type:
|
||||
```bash
|
||||
sudo service moonraker restart
|
||||
sudo nano /etc/systemd/system/moonraker.service
|
||||
```
|
||||
|
||||
fill in these lines:
|
||||
```yaml
|
||||
#Systemd moonraker Service
|
||||
|
||||
[Unit]
|
||||
Description=Moonraker provides Web API for klipper
|
||||
Documentation=https://moonraker.readthedocs.io/en/latest/
|
||||
After=network.target klipper.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment=MOONRAKER_CONFIG=/home/pi/klipper_config/moonraker.conf
|
||||
Environment=MOONRAKER_LOG=/home/pi/klipper_logs/moonraker.log
|
||||
Type=simple
|
||||
User=pi
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/home/pi/moonraker-env/bin/python /home/pi/moonraker/moonraker/moonraker.py -c ${MOONRAKER_CONFIG} -l ${MOONRAKER_LOG}
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
```
|
||||
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
|
||||
|
||||
**Please check and modify the username!**
|
||||
If you do not use the user `pi`, you must replace it in each path and in the variable user in the service file.
|
||||
{: .warning }
|
||||
|
||||
To enable Moonraker service execute these commands:
|
||||
```bash
|
||||
sudo systemctl enable moonraker.service
|
||||
```
|
||||
|
||||
After your config is in place, start Moonraker with `sudo systemctl start moonraker`.
|
||||
|
||||
Open the following url with your printers IP in your browser
|
||||
```
|
||||
http://<printer-ip>:7125/printer/info
|
||||
@@ -82,7 +141,7 @@ http://<printer-ip>:7125/printer/info
|
||||
|
||||
If everything has been set up successfully, a message like this should appear:
|
||||
```
|
||||
{"result": {"hostname": "voron250", "error_detected": false, "version": "v0.8.0-643-g528f9f25", "is_ready": true, "message": "Printer is ready", "cpu": "4 core ARMv7 Processor rev 4 (v7l)"}}
|
||||
{"result": {"state_message": "Printer is ready", "klipper_path": "/home/pi/klipper", "config_file": "/home/pi/klipper_config/printer.cfg", "software_version": "v0.9.1-785-g1be19177", "hostname": "raspberrypi", "cpu_info": "4 core ARMv7 Processor rev 4 (v7l)", "state": "ready", "python_path": "/home/pi/klippy-env/bin/python", "log_file": "/home/pi/klipper_log/klippy.log"}}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -12,25 +12,32 @@ description: >-
|
||||
# {{ 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).
|
||||
Do **not** use an OctoPi image as it can cause unforeseen (avoidable) problems.
|
||||
{: .warning }
|
||||
Don't forget to enable SSH and configure a network if using Wi-Fi.
|
||||
{: .info}
|
||||
|
||||
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.
|
||||
It is recommended to use a clean [Raspberry Pi OS 32-bit Lite](https://downloads.raspberrypi.org/raspios_lite_armhf_latest){:target="_blank"} image (previously called Raspbian).
|
||||
|
||||
Once you have finished the installation and are connected via ssh, you can continue.
|
||||
We recommend you follow the RaspberryOS official [documentation](https://www.raspberrypi.org/documentation/installation/installing-images/){:target="_blank"} to flash and install the operating system to your SD card.
|
||||
|
||||
Once you have finished the installation and are connected via SSH, you can continue.
|
||||
|
||||
## Requirements
|
||||
|
||||
Install the required packages and update the system:
|
||||
|
||||
```bash
|
||||
sudo apt update && sudo apt upgrade
|
||||
sudo apt update --allow-releaseinfo-change && 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.
|
||||
**Verify that your distribution's Python 3 package(s) are version 3.7 or newer.**
|
||||
{: .alert }
|
||||
|
||||
Moonraker requires Python 3.7 and will not operate without it.
|
||||
|
||||
You can check the current Python version installed to your operating system with the following terminal command:
|
||||
```
|
||||
python3 --version
|
||||
```
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
layout: default
|
||||
title: Pre-flight
|
||||
parent: Setup Guides
|
||||
nav_order: 5
|
||||
has_children: false
|
||||
has_toc: false
|
||||
permalink: /setup/mainsailos/pre-flight
|
||||
---
|
||||
|
||||
# Preflight Checklist
|
||||
|
||||
A quick run-through to check no important steps have been missed during installation and configuration.
|
||||
|
||||
| Installed software components: | Configured: | Performed: |
|
||||
| :-- | :-- | :-- |
|
||||
| ✅ MainsailOS<br> **OR** <br> ✅ Klipper<br> ✅ Moonraker<br> ✅ Mainsail<br> | ✅ Network<br> ✅ [Configured printer.cfg](k>
|
||||
|
||||
# Time to print
|
||||
|
||||
If you've covered all the steps, you should now have a complete software stack ready to perform calibration prints!
|
||||
|
||||
**Thank you for choosing Mainsail**
|
||||
@@ -25,15 +25,15 @@ For uploads you can use the built-in file manager. `(Settings > Machine)`
|
||||
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 |
|
||||
| Valid file extensions | .jpg, .png, .gif and .svg |
|
||||
| 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 |
|
||||
| Valid file extensions | .jpg, .png, .gif and .svg |
|
||||
|
||||
**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}
|
||||
{: .info}
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: default
|
||||
layout: themes
|
||||
title: Community Themes
|
||||
parent: Theming
|
||||
nav_order: 100
|
||||
@@ -34,10 +34,15 @@ Go to `[Advanced] > [Theme installer]`, enter the desired theme <span class="key
|
||||
{% for theme in site.data.themes %}
|
||||
---
|
||||
## {{ theme.name }}
|
||||
{{ theme.short_note }}
|
||||
<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" />
|
||||
<img width="50%" id="img{{forloop.index}}" class="" loading="lazy" src="" alt="no screenshot found"/>
|
||||
|
||||
<script>set_image('img{{forloop.index}}', 'https://raw.githubusercontent.com/{{ theme.author }}/{{ theme.repo }}/master/screenshot', 200000);</script>
|
||||
<noscript><img width="50%" id="img{{forloop.index}}" class="screenshot" src="https://raw.githubusercontent.com/{{ theme.author }}/{{ theme.repo }}/master/screenshot.png" loading="lazy" alt="no screenshot found"/></noscript>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
---
|
||||
layout: default
|
||||
title: Update Guide
|
||||
title: Update Guides
|
||||
nav_order: 3
|
||||
has_children: true
|
||||
permalink: /update/
|
||||
has_toc: false
|
||||
---
|
||||
|
||||
This is a guide to update up Klipper, Moonraker & Mainsail on your Raspberry Pi.
|
||||
There are currently two methods to update either via the web interface, or manually.
|
||||
|
||||
- [Update Manager](update-manager) <span class="label label-red">recommended</span>
|
||||
A built in update utility found in the web ui, under the machine tab.
|
||||
- [Manual Update](manual-update)
|
||||
Guides on manual update methods for each component; Klipper, Moonraker and Mainsail.
|
||||
@@ -10,7 +10,7 @@ permalink: /update/mainsail
|
||||
```bash
|
||||
cd ~/mainsail
|
||||
rm -R ./*
|
||||
wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/latest/download/mainsail.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
wget -q -O mainsail.zip https://github.com/mainsail-crew/mainsail/releases/latest/download/mainsail.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
```
|
||||
|
||||
### Move gui.json from gcodes to klipper_config
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
layout: default
|
||||
title: Manual Update
|
||||
parent: Update Guides
|
||||
nav_order: 3
|
||||
has_children: true
|
||||
permalink: /update/manual-update
|
||||
has_toc: true
|
||||
---
|
||||
|
||||
# Updating Mainsail the manual way
|
||||
|
||||
This section covers the individual methods for updating each component of the stack manually.
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
layout: default
|
||||
title: Klipper
|
||||
parent: Manual Update
|
||||
grand_parent: Update Guides
|
||||
nav_order: 2
|
||||
permalink: /update/manual-update/klipper
|
||||
---
|
||||
|
||||
## Klipper
|
||||
### Update from Repository
|
||||
```bash
|
||||
cd ~/klipper
|
||||
git pull
|
||||
```
|
||||
|
||||
Restart Klipper (`sudo service klipper restart`) and check the `klippy.log`, if Klipper starts
|
||||
correctly and then continue the guide.
|
||||
|
||||
### Klipper config changes
|
||||
If you have issues after update your Klipper instance, you can check config changes [here](https://www.klipper3d.org/Config_Changes.html){:target="_blank"}.
|
||||
|
||||
---
|
||||
[< table of contents](index.md){: .btn } [next step >](moonraker.md){: .btn}
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
layout: default
|
||||
title: Mainsail
|
||||
parent: Manual Update
|
||||
grand_parent: Update Guides
|
||||
nav_order: 4
|
||||
permalink: /update/manual-update/mainsail
|
||||
---
|
||||
|
||||
## Mainsail
|
||||
```bash
|
||||
cd ~/mainsail
|
||||
rm -R ./*
|
||||
wget -q -O mainsail.zip https://github.com/mainsail-crew/mainsail/releases/latest/download/mainsail.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
```
|
||||
|
||||
Now it should be possible to open the interface: `http://<printer-ip>/`.
|
||||
|
||||
---
|
||||
[< previous step](moonraker.md){: .btn }
|
||||
@@ -0,0 +1,33 @@
|
||||
---
|
||||
layout: default
|
||||
title: Moonraker
|
||||
parent: Manual Update
|
||||
grand_parent: Update Guides
|
||||
nav_order: 3
|
||||
permalink: /update/manual-update/moonraker
|
||||
---
|
||||
|
||||
## Moonraker
|
||||
```bash
|
||||
cd ~/moonraker
|
||||
git pull
|
||||
```
|
||||
|
||||
Restart Moonraker (`sudo service moonraker restart`) and open the url `http://<printer-ip>:7125/printer/info` in your browser.
|
||||
|
||||
If you see a content like this
|
||||
```
|
||||
{"result": {"hostname": "voron250", "error_detected": false, "version": "v0.8.0-643-g528f9f25", "is_ready": true, "message": "Printer is ready", "cpu": "4 core ARMv7 Processor rev 4 (v7l)"}}
|
||||
```
|
||||
|
||||
### Update Moonraker dependence
|
||||
This is only nessasary, if you see missing modules in the moonraker log.
|
||||
```bash
|
||||
~/moonraker/scripts/install-moonraker.sh -r
|
||||
```
|
||||
|
||||
### Moonraker config changes
|
||||
If you have issues after update your Moonraker instance, you can check config changes [here](https://moonraker.readthedocs.io/en/latest/user_changes/){:target="_blank"}.
|
||||
|
||||
---
|
||||
[< previous step](klipper.md){: .btn } [next step >](mainsail.md){: .btn }
|
||||
@@ -26,7 +26,7 @@ To use the update manager in Mainsail you have to add this in your moonraker.con
|
||||
|
||||
[update_manager client mainsail]
|
||||
type: web
|
||||
repo: meteyou/mainsail
|
||||
repo: mainsail-crew/mainsail
|
||||
path: ~/mainsail
|
||||
```
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
---
|
||||
layout: default
|
||||
title: Update Manager
|
||||
parent: Update Guides
|
||||
nav_order: 1
|
||||
has_children: false
|
||||
permalink: /update/update-manager
|
||||
---
|
||||
|
||||
# Update Manager
|
||||
|
||||
You can find further information on this topic by checking out the [Moonraker documentation](https://github.com/Arksine/moonraker/blob/master/docs/configuration.md#update_manager){:target="_blank"}.
|
||||
{: .info}
|
||||
|
||||
## Enabling the feature
|
||||
|
||||
To use the built in Update Manager it must first be enabled by editing the moonraker.conf file:
|
||||
|
||||
```bash
|
||||
cd ~/klipper_config
|
||||
sudo nano moonraker.conf
|
||||
```
|
||||
Add the following section to your printers moonraker.conf:
|
||||
|
||||
```yaml
|
||||
[update_manager]
|
||||
|
||||
[update_manager client mainsail]
|
||||
type: web
|
||||
repo: mainsail-crew/mainsail
|
||||
path: ~/mainsail
|
||||
```
|
||||
|
||||
Restart Moonraker:
|
||||
```bash
|
||||
sudo systemctl restart moonraker
|
||||
```
|
||||
|
||||
## Using the Web UI
|
||||
|
||||
With the manager enabled reload the web ui and select the 'machine' tab from the sidebar. You should now see the Update Manager panel.
|
||||
|
||||
Holding shift whilst clicking the browser's refresh button (or pressing ctrl+f5) will force it to reload the page fully (without the cache).
|
||||
{: .info}
|
||||
|
||||
Typically the update order is top to bottom.
|
||||
|
||||

|
||||
|
||||
To update a component, click the  button.
|
||||
|
||||
A new window will launch and the component will be updated. When the update is finished, the window can be closed.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "1.5.0",
|
||||
"version": "2.1.0-beta2",
|
||||
"private": true,
|
||||
"decription": "a klipper web interface",
|
||||
"author": {
|
||||
@@ -14,69 +14,75 @@
|
||||
"i18n-extract": "vue-i18n-extract use-config"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.1",
|
||||
"core-js": "^3.10.0",
|
||||
"echarts": "^5.0.2",
|
||||
"echarts-gl": "^2.0.2",
|
||||
"monaco-editor": "^0.23.0",
|
||||
"monaco-editor-textmate": "^2.2.2",
|
||||
"monaco-textmate": "^3.0.1",
|
||||
"monaco-themes": "^0.3.3",
|
||||
"@codemirror/basic-setup": "^0.19.0",
|
||||
"@codemirror/highlight": "^0.19.2",
|
||||
"@codemirror/lang-javascript": "^0.19.1",
|
||||
"@codemirror/lang-json": "^0.19.1",
|
||||
"@codemirror/legacy-modes": "^0.19.0",
|
||||
"@codemirror/search": "^0.19.2",
|
||||
"@codemirror/state": "^0.19.1",
|
||||
"@codemirror/stream-parser": "^0.19.1",
|
||||
"@codemirror/view": "^0.19.1",
|
||||
"@sindarius/gcodeviewer": "^2.1.13",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"axios": "^0.21.2",
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.1.2",
|
||||
"echarts-for-vue": "^1.4.1",
|
||||
"echarts-gl": "^2.0.7",
|
||||
"joi": "^17.4.1",
|
||||
"js-sha256": "^0.9.0",
|
||||
"object-assign-deep": "^0.4.0",
|
||||
"onigasm": "^2.2.5",
|
||||
"plotly.js": "^1.58.4",
|
||||
"overlayscrollbars-vue": "^0.2.2",
|
||||
"sass-loader": "^10.2.0",
|
||||
"semver": "^7.3.5",
|
||||
"vue": "^2.6.12",
|
||||
"uuid": "^8.3.2",
|
||||
"vue": "^2.6.14",
|
||||
"vue-class-component": "^7.2.6",
|
||||
"vue-context": "^6.0.0",
|
||||
"vue-github-api": "^0.1.7",
|
||||
"vue-headful": "^2.1.0",
|
||||
"vue-i18n": "^8.22.4",
|
||||
"vue-load-image": "^0.1.12",
|
||||
"vue-i18n": "^8.25.0",
|
||||
"vue-load-image": "^0.2.0",
|
||||
"vue-observe-visibility": "^1.0.0",
|
||||
"vue-plotly": "^1.1.0",
|
||||
"vue-resource": "^1.5.2",
|
||||
"vue-property-decorator": "^9.1.2",
|
||||
"vue-resource": "^1.5.3",
|
||||
"vue-simple-upload": "^0.1.6",
|
||||
"vue-toast-notification": "^0.6.1",
|
||||
"vuetify": "^2.4.9",
|
||||
"vuedraggable": "^2.24.3",
|
||||
"vuetify": "^2.5.10",
|
||||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mdi/font": "^5.9.55",
|
||||
"@vue/cli-plugin-babel": "^4.5.12",
|
||||
"@vue/cli-plugin-eslint": "^4.5.3",
|
||||
"@vue/cli-plugin-pwa": "^4.5.12",
|
||||
"@vue/cli-service": "^4.5.12",
|
||||
"@mdi/font": "^6.2.95",
|
||||
"@types/semver": "^7.3.8",
|
||||
"@types/uuid": "^8.3.1",
|
||||
"@typescript-eslint/eslint-plugin": "^4.28.5",
|
||||
"@typescript-eslint/parser": "^4.29.3",
|
||||
"@vue/cli-plugin-babel": "^4.5.13",
|
||||
"@vue/cli-plugin-eslint": "^4.5.13",
|
||||
"@vue/cli-plugin-pwa": "^4.5.13",
|
||||
"@vue/cli-plugin-typescript": "^4.5.13",
|
||||
"@vue/cli-service": "^4.5.13",
|
||||
"@vue/composition-api": "^1.0.5",
|
||||
"@vue/eslint-config-typescript": "^7.0.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"css-loader": "^5.2.0",
|
||||
"eslint": "^7.23.0",
|
||||
"eslint-plugin-vue": "^7.8.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"generate-file-webpack-plugin": "^1.0.1",
|
||||
"monaco-editor-webpack-plugin": "^3.0.1",
|
||||
"monaco-vscode-textmate-theme-converter": "^0.1.1",
|
||||
"sass": "^1.32.8",
|
||||
"sass-loader": "^10.1.1",
|
||||
"node-sass": "^6.0.1",
|
||||
"sass": "~1.32",
|
||||
"sw-precache-webpack-plugin": "^1.0.0",
|
||||
"typescript": "^4.3.5",
|
||||
"vue-cli-plugin-route": "0.0.7",
|
||||
"vue-cli-plugin-vuetify": "^2.3.1",
|
||||
"vue-i18n-extract": "^1.2.0",
|
||||
"vue-router": "^3.5.1",
|
||||
"vue-template-compiler": "^2.6.12",
|
||||
"vue-cli-plugin-vuetify": "^2.4.0",
|
||||
"vue-debounce-decorator": "^1.0.1",
|
||||
"vue-i18n-extract": "^1.2.3",
|
||||
"vue-loader": "^16.2.0",
|
||||
"vue-router": "^3.5.2",
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"vuetify-loader": "^1.7.2"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"eslint:recommended"
|
||||
],
|
||||
"rules": {},
|
||||
"parserOptions": {
|
||||
"parser": "babel-eslint"
|
||||
}
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
"autoprefixer": {}
|
||||
|
||||
@@ -1,698 +0,0 @@
|
||||
{
|
||||
"inherit":true,
|
||||
"base":"vs-dark",
|
||||
"colors":{
|
||||
"activityBarBadge.background":"#007acc",
|
||||
"editor.background":"#1e1e1e",
|
||||
"editor.foreground":"#d4d4d4",
|
||||
"editor.inactiveSelectionBackground":"#3a3d41",
|
||||
"editor.selectionHighlightBackground":"#add6ff26",
|
||||
"editorIndentGuide.activeBackground":"#707070",
|
||||
"editorIndentGuide.background":"#404040",
|
||||
"input.placeholderForeground":"#a6a6a6",
|
||||
"list.dropBackground":"#383b3d",
|
||||
"menu.background":"#252526",
|
||||
"menu.foreground":"#cccccc",
|
||||
"sideBarSectionHeader.background":"#00000000",
|
||||
"sideBarSectionHeader.border":"#cccccc33",
|
||||
"sideBarTitle.foreground":"#bbbbbb",
|
||||
"statusBarItem.remoteBackground":"#16825d",
|
||||
"statusBarItem.remoteForeground":"#ffffff",
|
||||
"tab.lastPinnedBorder":"#cccccc33"
|
||||
},
|
||||
"rules":[
|
||||
{
|
||||
"foreground":"#D4D4D4",
|
||||
"token":"meta.embedded"
|
||||
},
|
||||
{
|
||||
"foreground":"#D4D4D4",
|
||||
"token":"source.groovy.embedded"
|
||||
},
|
||||
{
|
||||
"fontStyle":"italic",
|
||||
"token":"emphasis"
|
||||
},
|
||||
{
|
||||
"fontStyle":"bold",
|
||||
"token":"strong"
|
||||
},
|
||||
{
|
||||
"foreground":"#000080",
|
||||
"token":"header"
|
||||
},
|
||||
{
|
||||
"foreground":"#6A9955",
|
||||
"token":"comment"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"constant.language"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"constant.numeric"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"variable.other.enummember"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"keyword.operator.plus.exponent"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"keyword.operator.minus.exponent"
|
||||
},
|
||||
{
|
||||
"foreground":"#646695",
|
||||
"token":"constant.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"entity.name.tag"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.name.tag.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"entity.other.attribute-name"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.other.attribute-name.class.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.other.attribute-name.class.mixin.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.other.attribute-name.id.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.other.attribute-name.parent-selector.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.other.attribute-name.pseudo-class.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.other.attribute-name.pseudo-element.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"source.css.less entity.other.attribute-name.id"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"entity.other.attribute-name.scss"
|
||||
},
|
||||
{
|
||||
"foreground":"#F44747",
|
||||
"token":"invalid"
|
||||
},
|
||||
{
|
||||
"fontStyle":"underline",
|
||||
"token":"markup.underline"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"fontStyle":"bold",
|
||||
"token":"markup.bold"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"fontStyle":"bold",
|
||||
"token":"markup.heading"
|
||||
},
|
||||
{
|
||||
"fontStyle":"italic",
|
||||
"token":"markup.italic"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"markup.inserted"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"markup.deleted"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"markup.changed"
|
||||
},
|
||||
{
|
||||
"foreground":"#6A9955",
|
||||
"token":"punctuation.definition.quote.begin.markdown"
|
||||
},
|
||||
{
|
||||
"foreground":"#6796E6",
|
||||
"token":"punctuation.definition.list.begin.markdown"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"markup.inline.raw"
|
||||
},
|
||||
{
|
||||
"foreground":"#808080",
|
||||
"token":"punctuation.definition.tag"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"meta.preprocessor"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"entity.name.function.preprocessor"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"meta.preprocessor.string"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"meta.preprocessor.numeric"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"meta.structure.dictionary.key.python"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"meta.diff.header"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"storage"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"storage.type"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"storage.modifier"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.noexcept"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"string"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"meta.embedded.assembly"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"string.tag"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"string.value"
|
||||
},
|
||||
{
|
||||
"foreground":"#D16969",
|
||||
"token":"string.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"punctuation.definition.template-expression.begin"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"punctuation.definition.template-expression.end"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"punctuation.section.embedded"
|
||||
},
|
||||
{
|
||||
"foreground":"#D4D4D4",
|
||||
"token":"meta.template.expression"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"support.type.vendored.property-name"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"support.type.property-name"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"variable.css"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"variable.scss"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"variable.other.less"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"source.coffee.embedded"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.control"
|
||||
},
|
||||
{
|
||||
"foreground":"#D4D4D4",
|
||||
"token":"keyword.operator"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.new"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.expression"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.cast"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.sizeof"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.alignof"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.typeid"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.alignas"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.instanceof"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.logical.python"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"keyword.operator.wordlike"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"keyword.other.unit"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"punctuation.section.embedded.begin.php"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"punctuation.section.embedded.end.php"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"support.function.git-rebase"
|
||||
},
|
||||
{
|
||||
"foreground":"#B5CEA8",
|
||||
"token":"constant.sha.git-rebase"
|
||||
},
|
||||
{
|
||||
"foreground":"#D4D4D4",
|
||||
"token":"storage.modifier.import.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#D4D4D4",
|
||||
"token":"variable.language.wildcard.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#D4D4D4",
|
||||
"token":"storage.modifier.package.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"variable.language"
|
||||
},
|
||||
{
|
||||
"foreground":"#DCDCAA",
|
||||
"token":"entity.name.function"
|
||||
},
|
||||
{
|
||||
"foreground":"#DCDCAA",
|
||||
"token":"support.function"
|
||||
},
|
||||
{
|
||||
"foreground":"#DCDCAA",
|
||||
"token":"support.constant.handlebars"
|
||||
},
|
||||
{
|
||||
"foreground":"#DCDCAA",
|
||||
"token":"source.powershell variable.other.member"
|
||||
},
|
||||
{
|
||||
"foreground":"#DCDCAA",
|
||||
"token":"entity.name.operator.custom-literal"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"meta.return-type"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"support.class"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"support.type"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"entity.name.type"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"entity.name.namespace"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"entity.other.attribute"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"entity.name.scope-resolution"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"entity.name.class"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.numeric.go"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.byte.go"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.boolean.go"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.string.go"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.uintptr.go"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.error.go"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.rune.go"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.cs"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.generic.cs"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.modifier.cs"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.variable.cs"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.annotation.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.generic.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.object.array.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.primitive.array.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.primitive.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.token.java"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.groovy"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.annotation.groovy"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.parameters.groovy"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.generic.groovy"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.object.array.groovy"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.primitive.array.groovy"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"storage.type.primitive.groovy"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"meta.type.cast.expr"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"meta.type.new.expr"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"support.constant.math"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"support.constant.dom"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"support.constant.json"
|
||||
},
|
||||
{
|
||||
"foreground":"#4EC9B0",
|
||||
"token":"entity.other.inherited-class"
|
||||
},
|
||||
{
|
||||
"foreground":"#C586C0",
|
||||
"token":"keyword.control"
|
||||
},
|
||||
{
|
||||
"foreground":"#C586C0",
|
||||
"token":"source.cpp keyword.operator.new"
|
||||
},
|
||||
{
|
||||
"foreground":"#C586C0",
|
||||
"token":"keyword.operator.delete"
|
||||
},
|
||||
{
|
||||
"foreground":"#C586C0",
|
||||
"token":"keyword.other.using"
|
||||
},
|
||||
{
|
||||
"foreground":"#C586C0",
|
||||
"token":"keyword.other.operator"
|
||||
},
|
||||
{
|
||||
"foreground":"#C586C0",
|
||||
"token":"entity.name.operator"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"variable"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"meta.definition.variable.name"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"support.variable"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"entity.name.variable"
|
||||
},
|
||||
{
|
||||
"foreground":"#4FC1FF",
|
||||
"token":"variable.other.constant"
|
||||
},
|
||||
{
|
||||
"foreground":"#4FC1FF",
|
||||
"token":"variable.other.enummember"
|
||||
},
|
||||
{
|
||||
"foreground":"#9CDCFE",
|
||||
"token":"meta.object-literal.key"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"support.constant.property-value"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"support.constant.font-name"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"support.constant.media-type"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"support.constant.media"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"constant.other.color.rgb-value"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"constant.other.rgb-value"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"support.constant.color"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"punctuation.definition.group.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"punctuation.definition.group.assertion.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"punctuation.definition.character-class.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"punctuation.character.set.begin.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"punctuation.character.set.end.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"keyword.operator.negation.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#CE9178",
|
||||
"token":"support.other.parenthesis.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#D16969",
|
||||
"token":"constant.character.character-class.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#D16969",
|
||||
"token":"constant.other.character-class.set.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#D16969",
|
||||
"token":"constant.other.character-class.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#D16969",
|
||||
"token":"constant.character.set.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#DCDCAA",
|
||||
"token":"keyword.operator.or.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#DCDCAA",
|
||||
"token":"keyword.control.anchor.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"keyword.operator.quantifier.regexp"
|
||||
},
|
||||
{
|
||||
"foreground":"#569CD6",
|
||||
"token":"constant.character"
|
||||
},
|
||||
{
|
||||
"foreground":"#D7BA7D",
|
||||
"token":"constant.character.escape"
|
||||
},
|
||||
{
|
||||
"foreground":"#C8C8C8",
|
||||
"token":"entity.name.label"
|
||||
},
|
||||
{
|
||||
"foreground":"#6796E6",
|
||||
"token":"token.info-token"
|
||||
},
|
||||
{
|
||||
"foreground":"#CD9731",
|
||||
"token":"token.warn-token"
|
||||
},
|
||||
{
|
||||
"foreground":"#F44747",
|
||||
"token":"token.error-token"
|
||||
},
|
||||
{
|
||||
"foreground":"#B267E6",
|
||||
"token":"token.debug-token"
|
||||
}
|
||||
],
|
||||
"encodedTokensColors":[
|
||||
|
||||
]
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "NC-Gcode",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"single_line_comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.number-sign",
|
||||
"match": "#(.*)$"
|
||||
},
|
||||
{
|
||||
"name": "comment.line.gcode",
|
||||
"match": ";(.*)$"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#single_line_comment"
|
||||
},
|
||||
{
|
||||
"name": "constant.gcode",
|
||||
"match": "[nN][ \\t]*[0-9\\.]+"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.gcode.gcode",
|
||||
"match": "[gG][ \\t]*[0-9][0-9\\.]*"
|
||||
},
|
||||
{
|
||||
"name": "keyword.string.gcode",
|
||||
"match": "(?i)[rRzZ][ \\t]*[\\-\\+]?[0-9\\.]+"
|
||||
},
|
||||
{
|
||||
"name": "string.xcode.gcode",
|
||||
"match": "(?i)[XAUIYBVJ][ \\t]*[\\-\\+]?[0-9\\.]+"
|
||||
},
|
||||
{
|
||||
"name": "support.function.mcode.gcode",
|
||||
"match": "[mM][ \\t]*[0-9][0-9\\.]*"
|
||||
},
|
||||
{
|
||||
"name": "support.type.dDfFhHsStTcode.gcode",
|
||||
"match": "[dDfFhHsStT][ \\t]*[0-9][0-9\\.]*"
|
||||
},
|
||||
{
|
||||
"name": "variable.parameter.pqecode.gcode",
|
||||
"match": "[pPqQeE][ \\t]*\\-?\\.?[0-9][0-9\\.]*"
|
||||
},
|
||||
{
|
||||
"name": "string.control.mcode.gcode",
|
||||
"match": "[cCwWkKlL][ \\t]*[\\-\\+]?[0-9\\.]+"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"name": "keyword.operator.gcode",
|
||||
"comment": "This pattern is actually for comments",
|
||||
"begin": "(\\()|(\\;)",
|
||||
"end": "(\\))|(\n)",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.gcode",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.gcode"
|
||||
}
|
||||
@@ -1,550 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "Klipper Config",
|
||||
"foldingStartMarker": "({%\\s*(block|filter|for|if|macro|raw))",
|
||||
"foldingStopMarker": "({%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#single_line_comment"
|
||||
},
|
||||
{
|
||||
"include": "#config_block"
|
||||
},
|
||||
{
|
||||
"include": "#config_line"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#gcode_line"
|
||||
},
|
||||
{
|
||||
"begin": "({%)\\s*(raw)\\s*(%})",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.jinja.delimiter.tag"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.other.jinja.delimiter.tag"
|
||||
}
|
||||
},
|
||||
"end": "({%)\\s*(endraw)\\s*(%})",
|
||||
"name": "comment.block.jinja.raw"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"begin": "{{-?",
|
||||
"captures": [
|
||||
{
|
||||
"name": "entity.other.jinja.delimiter.variable"
|
||||
}
|
||||
],
|
||||
"end": "-?}}",
|
||||
"name": "meta.scope.jinja.variable",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "{%-?",
|
||||
"captures": [
|
||||
{
|
||||
"name": "entity.other.jinja.delimiter.tag"
|
||||
}
|
||||
],
|
||||
"end": "-?%}",
|
||||
"name": "meta.scope.jinja.tag",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"single_line_comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.number-sign",
|
||||
"match": "#(.+)$"
|
||||
},
|
||||
{
|
||||
"name": "comment.line.gcode",
|
||||
"match": ";(.+)$"
|
||||
}
|
||||
]
|
||||
},
|
||||
"number": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric",
|
||||
"match": "\\-?\\d+([\\.,]\\d+)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric",
|
||||
"match": "\\-?[\\.,]\\d+?\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"boolean": {
|
||||
"name": "constant.language",
|
||||
"match": "(?i)\\b(true|false)\\b"
|
||||
},
|
||||
"config_block": {
|
||||
"contentName": "keyword.control",
|
||||
"begin": "^\\[",
|
||||
"end": "\\]$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#known_config_block_name"
|
||||
},
|
||||
{
|
||||
"include": "#known_driver_type"
|
||||
}
|
||||
]
|
||||
},
|
||||
"known_config_block_name": {
|
||||
"name": "storage.type",
|
||||
"match": "(?i)\\b(ad5206|adc_temperature|bed_mesh|bed_screws|bed_tilt|bltouch|board_pins|controller_fan|delayed_gcode|delta_calibrate|display|display_data|display_template|dotstar|dual_carriage|endstop_phase|extruder_stepper|extruder[1-9]{0,1}|fan|filament_switch_sensor|firmware_retraction|force_move|gcode_arcs|gcode_button|gcode_macro|hall_filament_width_sensor|heater_bed|heater_fan|heater_generic|homing_heaters|homing_override|idle_timeout|include|manual_stepper|mcp4018|mcp4451|mcp4728|mcu|menu|multi_pin|neopixel|output_pin|pause_resume|printer|probe|quad_gantry_level|replicape|respond|safe_z_home|samd_sercom|screws_tilt_adjust|servo|skew_correction|static_digital_output|stepper_(bed|arm|[abcdxy]|z[1-9]{0,1})|sx1509|temperature_fan|temperature_sensor|thermistor|tsl1401cl_filament_width_sensor|verify_heater|virtual_sdcard|z_tilt)\\b"
|
||||
},
|
||||
"known_driver_type": {
|
||||
"name": "support.type",
|
||||
"match": "(?i)\\btmc(2130|2208|2209|2660|5160)\\b"
|
||||
},
|
||||
"known_thermistor_type": {
|
||||
"name": "support.type",
|
||||
"match": "(?i)\\b(EPCOS 100K B57560G104F|ATC Semitec 104GT-2|NTC 100K beta 3950|Honeywell 100K 135-104LAG-J01|NTC 100K MGB18-104F39050L32)\\b"
|
||||
},
|
||||
"known_extruder_sensor_type": {
|
||||
"name": "support.type",
|
||||
"match": "(?i)\\b(MAX6675|MAX31855|MAX31856|MAX31865|PT100 INA826|AD595|AD8494|AD8495|AD8496|AD8497|PT1000|BME280)\\b"
|
||||
},
|
||||
"known_control_type": {
|
||||
"name": "support.type",
|
||||
"match": "(?i)\\b(watermark|pid)\\b"
|
||||
},
|
||||
"known_display_type": {
|
||||
"name": "support.type",
|
||||
"match": "(?i)\\b(hd44780|st7920|uc1701|ssd1306|sh1106)\\b"
|
||||
},
|
||||
"serial": {
|
||||
"name": "support.type",
|
||||
"match": "\\/dev\\/serial\\/by-(id|path)\\/[\\d\\w\\/\\-:\\.]+"
|
||||
},
|
||||
"pin": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "support.type",
|
||||
"match": "(?i)[\\^~!]*(ar|analog)\\d{1,2}"
|
||||
},
|
||||
{
|
||||
"name": "support.type",
|
||||
"match": "(?i)[\\^~!]*(z:)?[a-z]{1,2}\\d{1,2}(\\.\\d{1,2})?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_line": {
|
||||
"begin": "^(\\w+)\\s*[:=]\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "variable.name"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#known_thermistor_type"
|
||||
},
|
||||
{
|
||||
"include": "#known_extruder_sensor_type"
|
||||
},
|
||||
{
|
||||
"include": "#known_control_type"
|
||||
},
|
||||
{
|
||||
"include": "#known_display_type"
|
||||
},
|
||||
{
|
||||
"include": "#pin"
|
||||
},
|
||||
{
|
||||
"include": "#serial"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#boolean"
|
||||
},
|
||||
{
|
||||
"include": "#single_line_comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"gcode_line": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#gcode_command"
|
||||
},
|
||||
{
|
||||
"include": "#gcode_extended_command"
|
||||
},
|
||||
{
|
||||
"include": "#gcode_parameter"
|
||||
},
|
||||
{
|
||||
"include": "#gcode_extended_parameter"
|
||||
}
|
||||
]
|
||||
},
|
||||
"gcode_command": {
|
||||
"begin": "(?ix)^\\s* ([GMTD]) (?![a-z])",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator"
|
||||
}
|
||||
},
|
||||
"end": "\\s",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#number"
|
||||
}
|
||||
]
|
||||
},
|
||||
"gcode_parameter": {
|
||||
"begin": "(?ix)\\b ([a-z]) (?![a-z])",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "variable.parameter"
|
||||
}
|
||||
},
|
||||
"end": "\\s",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#number"
|
||||
}
|
||||
]
|
||||
},
|
||||
"gcode_extended_command": {
|
||||
"name": "keyword.operator",
|
||||
"match": "(?i)^\\s*(ABORT|ACCEPT|ACTIVATE_EXTRUDER|BED_MESH_CALIBRATE|BED_MESH_CLEAR|BED_MESH_MAP|BED_MESH_OUTPUT|BED_MESH_PROFILE|BED_SCREWS_ADJUST|BED_TILT_CALIBRATE|BLTOUCH_DEBUG|BLTOUCH_STORE|CALC_MEASURED_SKEW|CLEAR_PAUSE|DELTA_ANALYZE|DELTA_CALIBRATE|DUMP_TMC|ENDSTOP_PHASE_CALIBRATE|FIRMWARE_RESTART|FORCE_MOVE|GET_CURRENT_SKEW|GET_POSITION|GET_RETRACTION|HELP|MANUAL_PROBE|MANUAL_STEPPER|PAUSE|PID_CALIBRATE|PROBE|PROBE_ACCURACY|PROBE_CALIBRATE|QUAD_GANTRY_LEVEL|QUERY_ADC|QUERY_ENDSTOPS|QUERY_FILAMENT_SENSOR|QUERY_PROBE|RESPOND|RESTART|RESTORE_GCODE_STATE|RESUME|SAVE_CONFIG|SAVE_GCODE_STATE|SCREWS_TILT_CALCULATE|SET_DUAL_CARRIAGE|SET_EXTRUDER_STEP_DISTANCE|SET_FILAMENT_SENSOR|SET_GCODE_OFFSET|SET_GCODE_VARIABLE|SET_HEATER_TEMPERATURE|SET_IDLE_TIMEOUT|SET_KINEMATIC_POSITION|SET_LED|SET_PIN|SET_PRESSURE_ADVANCE|SET_RETRACTION|SET_SERVO|SET_SKEW|SET_STEPPER_ENABLE|SET_TMC_CURRENT|SET_TMC_FIELD|SET_VELOCITY_LIMIT|SKEW_PROFILE|STATUS|STEPPER_BUZZ|TESTZ|TUNING_TOWER|TURN_OFF_HEATERS|UPDATE_DELAYED_GCODE|Z_ENDSTOP_CALIBRATE|Z_TILT_ADJUST)\\s"
|
||||
},
|
||||
"gcode_extended_parameter": {
|
||||
"begin": "(?i)\\b(AC|ACCEL|ACCEL_TO_DECEL|AD|ADVANCE|ANGLE|BAND|BD|BLUE|CARRIAGE|CLEAR|COMMAND|CURRENT|DISTANCE|DURATION|ENABLE|EXTRUDER|FACTOR|FIELD|GREEN|HEATER|HOLDCURRENT|ID|INDEX|LED|LIFT_SPEED|LOAD|MACRO|METHOD|MODE|MOVE_SPEED|MSG|NAME|PARAMETER|PGP|PIN|PREFIX|PROBE_SPEED|PULLUP|RED|REMOVE|RETRACT_LENGTH|RETRACT_SPEED|SAMPLE_RETRACT_DIST|SAMPLES|SAMPLES_RESULT|SAMPLES_TOLERANCE|SAMPLES_TOLERANCE_RETRIES|SAVE|SENSOR|SERVO|SET_POSITION|SMOOTH_TIME|SPEED|SQUARE_CORNER_VELOCITY|START|STEPPER|STOP_ON_ENDSTOP|SYNC|TARGET|TIMEOUT|TRANSMIT|TYPE|UNRETRACT_EXTRA_LENGTH|UNRETRACT_SPEED|VALUE|VARIABLE|VELOCITY|WIDTH|WRITE_FILE|X|X_ADJUST|XY|XZ|Y|Y_ADJUST|YZ|Z|Z_ADJUST)=",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "variable.parameter"
|
||||
}
|
||||
},
|
||||
"end": "\\s",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.language",
|
||||
"match": "(?i)(5V|average|command|echo|error|manual|median|OD|output_mode_store|pin_down|pin_up|reset|self_test|set_5V_output_mode|set_5V_output_mode|set_OD_output_mode|touch_mode)"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
}
|
||||
]
|
||||
},
|
||||
"gcode_macro_block": {
|
||||
"name": "string.unquoted",
|
||||
"begin": "{",
|
||||
"end": "}"
|
||||
},
|
||||
"comments": {
|
||||
"begin": "{#-?",
|
||||
"captures": [
|
||||
{
|
||||
"name": "entity.other.jinja.delimiter.comment"
|
||||
}
|
||||
],
|
||||
"end": "-?#}",
|
||||
"name": "comment.block.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"escaped_char": {
|
||||
"match": "\\\\x[0-9A-F]{2}",
|
||||
"name": "constant.character.escape.hex.jinja"
|
||||
},
|
||||
"escaped_unicode_char": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.character.escape.unicode.16-bit-hex.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.character.escape.unicode.32-bit-hex.jinja"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.character.escape.unicode.name.jinja"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\U[0-9A-Fa-f]{8})|(\\\\u[0-9A-Fa-f]{4})|(\\\\N\\{[a-zA-Z ]+\\})"
|
||||
},
|
||||
"expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.block"
|
||||
}
|
||||
},
|
||||
"match": "\\s*\\b(block)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.filter"
|
||||
}
|
||||
},
|
||||
"match": "\\s*\\b(filter)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.test"
|
||||
}
|
||||
},
|
||||
"match": "\\s*\\b(is)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
}
|
||||
},
|
||||
"match": "(?<=\\{\\%-|\\{\\%)\\s*\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*[,=])"
|
||||
},
|
||||
{
|
||||
"match": "\\b(and|else|if|in|import|not|or|recursive|with(out)?\\s+context)\\b",
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
{
|
||||
"match": "\\b(true|false|none)\\b",
|
||||
"name": "constant.language.jinja"
|
||||
},
|
||||
{
|
||||
"match": "\\b(loop|super|self|varargs|kwargs)\\b",
|
||||
"name": "variable.language.jinja"
|
||||
},
|
||||
{
|
||||
"match": "[a-zA-Z_][a-zA-Z0-9_]*",
|
||||
"name": "variable.other.jinja"
|
||||
},
|
||||
{
|
||||
"match": "(\\+|\\-|\\*\\*|\\*|\/\/|\/|%)",
|
||||
"name": "keyword.operator.arithmetic.jinja"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.other.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.filter"
|
||||
}
|
||||
},
|
||||
"match": "(\\|)([a-zA-Z_][a-zA-Z0-9_]*)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.other.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.attribute"
|
||||
}
|
||||
},
|
||||
"match": "(\\.)([a-zA-Z_][a-zA-Z0-9_]*)"
|
||||
},
|
||||
{
|
||||
"begin": "\\[",
|
||||
"captures": [
|
||||
{
|
||||
"name": "punctuation.other.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\\]",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\(",
|
||||
"captures": [
|
||||
{
|
||||
"name": "punctuation.other.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\\)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\{",
|
||||
"captures": [
|
||||
{
|
||||
"name": "punctuation.other.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\\}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(\\.|:|\\||,)",
|
||||
"name": "punctuation.other.jinja"
|
||||
},
|
||||
{
|
||||
"match": "(==|<=|=>|<|>|!=)",
|
||||
"name": "keyword.operator.comparison.jinja"
|
||||
},
|
||||
{
|
||||
"match": "=",
|
||||
"name": "keyword.operator.assignment.jinja"
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.begin.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\"",
|
||||
"endCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.end.jinja"
|
||||
}
|
||||
],
|
||||
"name": "string.quoted.double.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.begin.jinja"
|
||||
}
|
||||
],
|
||||
"end": "'",
|
||||
"endCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.end.jinja"
|
||||
}
|
||||
],
|
||||
"name": "string.quoted.single.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "@\/",
|
||||
"beginCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.regexp.begin.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\/",
|
||||
"endCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.regexp.end.jinja"
|
||||
}
|
||||
],
|
||||
"name": "string.regexp.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#simple_escapes"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"simple_escapes": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.character.escape.newline.jinja"
|
||||
},
|
||||
"10": {
|
||||
"name": "constant.character.escape.tab.jinja"
|
||||
},
|
||||
"11": {
|
||||
"name": "constant.character.escape.vertical-tab.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.character.escape.backlash.jinja"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.character.escape.double-quote.jinja"
|
||||
},
|
||||
"4": {
|
||||
"name": "constant.character.escape.single-quote.jinja"
|
||||
},
|
||||
"5": {
|
||||
"name": "constant.character.escape.bell.jinja"
|
||||
},
|
||||
"6": {
|
||||
"name": "constant.character.escape.backspace.jinja"
|
||||
},
|
||||
"7": {
|
||||
"name": "constant.character.escape.formfeed.jinja"
|
||||
},
|
||||
"8": {
|
||||
"name": "constant.character.escape.linefeed.jinja"
|
||||
},
|
||||
"9": {
|
||||
"name": "constant.character.escape.return.jinja"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)"
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#simple_escapes"
|
||||
},
|
||||
{
|
||||
"include": "#escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#escaped_unicode_char"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.klipper-config"
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox="0 0 768 624"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
|
||||
id="svg40"
|
||||
sodipodi:docname="klipper.svg"
|
||||
inkscape:version="0.92.4 (unknown)"
|
||||
inkscape:export-filename="/home/kevin/src/reprap/firmware/klipper/logs/logo-20190416/klipper6.svg.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"><metadata
|
||||
id="metadata46"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs44">
|
||||
</defs><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1030"
|
||||
id="namedview42"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.95"
|
||||
inkscape:cx="327.89418"
|
||||
inkscape:cy="289.76441"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg40"
|
||||
showguides="false"
|
||||
showborder="false"><inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid905" /></sodipodi:namedview>
|
||||
<path
|
||||
style="fill:#3c4b5a"
|
||||
d="m 30,34 v 140 l 260,255 115,-5 h 80 L 730,174 V 34 H 720 L 385,374 40,34 Z"
|
||||
id="path2"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccccc" /><path
|
||||
style="fill:#3c4b5a;stroke-width:1.03280997"
|
||||
d="m 140,418 -58,57 1,25 v 19 l 57,57 h 27 v -1 L 91,496.5 167,419 v -1 z"
|
||||
id="path8"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccccc" /><g
|
||||
transform="translate(-1.08348e-4,0.048)"
|
||||
id="g17">
|
||||
<path
|
||||
d="m 83.041215,464.92108 h 0.001 l -0.04211,27.03092 h 11 l 73.000005,-74 v 14.301 l -63,64.199 63,65.5 v 14 l -73.000002,-75 h -13 c -2,0 -4,-2 -4,-4 h -2 v -33 h 2 c 0,-1 1,-2 3.00004,-2 1.99996,0 2.99996,1 2.99996,2 z"
|
||||
style="fill:#b12f35"
|
||||
id="path15"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccccccccccccccc" />
|
||||
</g><g
|
||||
id="path839"
|
||||
transform="matrix(1.03281,0,0,1.0326797,24.31099,-21.921569)">
|
||||
<rect
|
||||
x="21"
|
||||
y="426"
|
||||
width="30.015202"
|
||||
height="153"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero"
|
||||
id="rect12" />
|
||||
</g><rect
|
||||
x="247"
|
||||
y="469"
|
||||
width="24"
|
||||
height="107"
|
||||
style="fill:#3c4b5a;stroke-width:1.19609642"
|
||||
id="rect23" /><path
|
||||
d="m 371.98888,521.45953 c 0,-10.8903 -2.45322,-19.36013 -7.36207,-25.4107 -4.90765,-6.05057 -12.80741,-9.07465 -23.69929,-9.07465 -2.28639,0 -4.6724,0.10081 -7.16044,0.30241 -2.48802,0.20161 -4.94125,0.63842 -7.36207,1.31044 v 60.29926 c 2.15197,1.47844 5.00967,2.85727 8.57188,4.13411 3.56342,1.27684 7.36208,1.91526 11.39597,1.91526 8.87554,0 15.36385,-3.02409 19.46496,-9.07465 4.10111,-6.05057 6.15106,-14.18439 6.15106,-24.40148 z M 397,521.05632 c 0,8.06663 -1.04178,15.46123 -3.12654,22.18261 -2.08476,6.72259 -5.07568,12.50434 -8.97515,17.34409 -3.89947,4.83973 -8.77472,8.60423 -14.62333,11.29351 -5.8498,2.68927 -12.47254,4.0333 -19.86702,4.0333 -4.97606,0 -9.54765,-0.60481 -13.71597,-1.81445 -4.16832,-1.21082 -7.59731,-2.55487 -10.28698,-4.03451 V 611 H 302 V 471.64736 c 4.97486,-1.34524 11.09352,-2.62207 18.35477,-3.83171 C 327.61602,466.60482 335.28055,466 343.34834,466 c 8.33664,0 15.79953,1.27684 22.38866,3.83171 6.58794,2.55487 12.20251,6.21857 16.84131,10.9911 4.6388,4.77253 8.20221,10.5543 10.69024,17.34408 2.48684,6.78859 3.73145,14.4184 3.73145,22.88943 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.20011997"
|
||||
id="path25"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
d="m 492.9892,521.45953 c 0,-10.8903 -2.4544,-19.36013 -7.36198,-25.4107 -4.90759,-6.05057 -12.80725,-9.07465 -23.699,-9.07465 -2.28636,0 -4.67354,0.10081 -7.16034,0.30241 -2.488,0.20161 -4.94119,0.63842 -7.36197,1.31044 v 60.29926 c 2.15074,1.47844 5.00839,2.85727 8.57176,4.13411 3.56337,1.27684 7.36198,1.91526 11.39582,1.91526 8.87423,0 15.36246,-3.02409 19.46352,-9.07465 4.10106,-6.05057 6.15219,-14.18439 6.15219,-24.40148 z M 518,521.05632 c 0,8.06663 -1.04297,15.46123 -3.1265,22.18261 -2.08474,6.72259 -5.07681,12.50434 -8.97624,17.34409 -3.89942,4.83973 -8.77341,8.60423 -14.62314,11.29351 -5.84854,2.68927 -12.47119,4.0333 -19.86677,4.0333 -4.9748,0 -9.54633,-0.60481 -13.7146,-1.81445 -4.16827,-1.21082 -7.59722,-2.55487 -10.28684,-4.03451 V 611 H 423 V 471.64736 c 4.97599,-1.34524 11.09337,-2.62207 18.35454,-3.83171 C 448.61569,466.60482 456.28012,466 464.34782,466 c 8.33773,0 15.80052,1.27684 22.38838,3.83171 6.58905,2.55487 12.20235,6.21857 16.84229,10.9911 4.63875,4.77253 8.20211,10.5543 10.69012,17.34408 2.48679,6.78859 3.73139,14.4184 3.73139,22.88943 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.20011246"
|
||||
id="path27"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
d="m 537,521.00591 c 0,-9.30123 1.37492,-17.45591 4.12595,-24.46521 2.74984,-7.00931 6.40632,-12.83838 10.96942,-17.48839 4.56191,-4.65121 9.79451,-8.15587 15.699,-10.51396 5.90328,-2.3593 11.94191,-3.53835 18.11469,-3.53835 14.49054,0 25.79531,4.51527 33.91308,13.5458 8.11897,9.03174 12.17786,22.51016 12.17786,40.43768 0,1.34749 -0.0335,2.8646 -0.1006,4.54896 -0.0671,1.68555 -0.16768,3.20147 -0.30182,4.55015 h -69.43942 c 0.67068,8.49155 3.65646,15.06171 8.95733,19.71294 5.29967,4.65001 12.98149,6.97562 23.04547,6.97562 5.9033,0 11.30477,-0.5402 16.20202,-1.61818 4.89726,-1.07799 8.75493,-2.22335 11.57304,-3.43729 l 3.22052,20.01612 c -1.34138,0.67495 -3.18699,1.38237 -5.53561,2.12349 -2.34742,0.74112 -5.03139,1.41485 -8.05071,2.02242 -3.01811,0.60637 -6.27217,1.11168 -9.76096,1.51592 -3.4888,0.40425 -7.04467,0.60637 -10.66761,0.60637 -9.25915,0 -17.30985,-1.38116 -24.15211,-4.14471 -6.84346,-2.76354 -12.47968,-6.60507 -16.90744,-11.52457 -4.42778,-4.91951 -7.71537,-10.7161 -9.86278,-17.38854 C 538.0731,536.27095 537,528.95845 537,521.00591 Z m 70.64548,-10.91821 c 0,-3.36991 -0.46948,-6.57138 -1.40846,-9.60442 -0.93897,-3.03303 -2.31508,-5.66063 -4.12595,-7.88517 -1.81207,-2.22335 -4.02535,-3.97627 -6.64226,-5.25638 -2.61689,-1.28131 -5.73561,-1.92137 -9.35855,-1.92137 -3.75708,0 -7.04466,0.70743 -9.86278,2.1235 -2.8181,1.41484 -5.19906,3.26883 -7.14527,5.55956 -1.94501,2.29192 -3.45526,4.92071 -4.52837,7.88516 -1.0731,2.96567 -1.81206,5.99871 -2.21447,9.09912 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.20038378"
|
||||
id="path29"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
d="m 717.7869,492.26931 c -2.00567,-0.67394 -4.78138,-1.38159 -8.32593,-2.12292 -3.54453,-0.74135 -7.65736,-1.11202 -12.33845,-1.11202 -2.67542,0 -5.51799,0.26957 -8.52649,0.80874 -3.0097,0.53915 -5.11684,1.01091 -6.32025,1.41528 V 576 H 658 V 475.28104 c 4.68109,-1.75347 10.53216,-3.40464 17.55439,-4.95472 C 682.57663,468.77504 690.36771,468 698.92762,468 c 1.60574,0 3.47769,0.10109 5.61827,0.30328 2.13938,0.20218 4.27996,0.47176 6.42053,0.80873 2.13939,0.33697 4.2131,0.74255 6.21878,1.21431 2.00687,0.47176 3.6114,0.90983 4.8148,1.3142 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.19865453"
|
||||
id="path31"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
sodipodi:nodetypes="cccccccccccccc"
|
||||
d="M 259,424 H 360 V 359 L 30,34 H 90 L 385,324 670,34 h 60 L 410,359 v 84.99783 C 410,449 405,454 400,454 H 259 c -12,0 -14,-10 -14,-15 0,-5 2,-15 14,-15 z"
|
||||
style="fill:#b12f35"
|
||||
id="path35"
|
||||
inkscape:connector-curvature="0" />
|
||||
<rect
|
||||
id="rect12-6"
|
||||
style="clip-rule:evenodd;fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.03280997;stroke-linejoin:round;stroke-miterlimit:1.41420996"
|
||||
height="158"
|
||||
width="24"
|
||||
y="418"
|
||||
x="191" /></svg>
|
||||
|
After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |