Make max text length configurable
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
signature = ""
|
signature = ""
|
||||||
|
|
||||||
|
|
||||||
# Printer settings
|
# Printer settings
|
||||||
[printer]
|
[printer]
|
||||||
upload_folder = "src/static/uploads"
|
upload_folder = "src/static/uploads"
|
||||||
@@ -14,11 +15,14 @@ waiting_time = 5
|
|||||||
profile = "TM-T20III"
|
profile = "TM-T20III"
|
||||||
label_type = 80 # 80 or 58 ( label width in mm )
|
label_type = 80 # 80 or 58 ( label width in mm )
|
||||||
align_text = "center"
|
align_text = "center"
|
||||||
|
text_max_length = 4096
|
||||||
|
signature_max_length = 256
|
||||||
|
|
||||||
[printer.brother]
|
[printer.brother]
|
||||||
# Configurations for Brother printers
|
# Configurations for Brother printers
|
||||||
label_type = "62" # See https://github.com/pklaus/brother_ql#usage for label types
|
label_type = "62" # See https://github.com/pklaus/brother_ql#usage for label types
|
||||||
|
text_max_length = 4096
|
||||||
|
signature_max_length = 256
|
||||||
|
|
||||||
# Raspberry Pi Configuration
|
# Raspberry Pi Configuration
|
||||||
[rpi]
|
[rpi]
|
||||||
|
|||||||
@@ -16,10 +16,14 @@ waiting_time = 5
|
|||||||
profile = "TM-T20III"
|
profile = "TM-T20III"
|
||||||
label_type = 80 # 80 or 58 ( label width in mm )
|
label_type = 80 # 80 or 58 ( label width in mm )
|
||||||
align_text = "center"
|
align_text = "center"
|
||||||
|
text_max_length = 4096
|
||||||
|
signature_max_length = 256
|
||||||
|
|
||||||
[printer.brother]
|
[printer.brother]
|
||||||
# Configurations for Brother printers
|
# Configurations for Brother printers
|
||||||
label_type = 62 # See https://github.com/pklaus/brother_ql#usage for label types
|
label_type = 62 # See https://github.com/pklaus/brother_ql#usage for label types
|
||||||
|
text_max_length = 4096
|
||||||
|
signature_max_length = 256
|
||||||
|
|
||||||
# Raspberry Pi Configuration
|
# Raspberry Pi Configuration
|
||||||
[rpi]
|
[rpi]
|
||||||
|
|||||||
@@ -5,6 +5,6 @@
|
|||||||
<title>LittlePrynter API</title>
|
<title>LittlePrynter API</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
"Welcome to the printing software's API. Please see the index page to get started.
|
Welcome to the printing software's API. Please see the index page to get started.
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<footer class="row">
|
<footer class="row">
|
||||||
<p class=" text-center">Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="https://git.n07070.xyz/n07070/littleprynter">Source code - AGPLv3</a></p>
|
<p class=" text-center">Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="/api">API interface</a> | <a href="https://git.n07070.xyz/n07070/littleprynter">Source code - AGPLv3</a></p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
<script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>
|
<script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<hr>
|
|
||||||
<footer>Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="https://git.n07070.xyz/n07070/littleprynter/src/branch/epson-tm-t20iii">Source code - AGPLv3</a></footer>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user