typingbeaver / snake-label Goto Github PK
View Code? Open in Web Editor NEWOffline conversion of German DHL/Hermes shipping labels for use with 62mm label printers
Home Page: https://snake-label.de
License: GNU General Public License v3.0
Offline conversion of German DHL/Hermes shipping labels for use with 62mm label printers
Home Page: https://snake-label.de
License: GNU General Public License v3.0
Allow optional parameters for label objects (e.g. for GoGreen/Zusatzleistungen, NL variations)
currently the 62mm is hardcoded, i have a 88mm printer, i would like to scale up the labels to 88mm
e.g. DHL would be 62mm -> 88mm (x1,41)
Wrap application in a Tauri app for easy offline usage.
First of all: GREAT WORK!!!
Having the opportunity to use my 62mm Printers for big shipping labels ist awesome!
But me and a whole lot of other people, I guess, need to print out labels for shipping company other then those implemented in Your Tool already.
Like most people I'm a total noob in programming.
As far as I understand, Your tool does the following steps:
The cut sizes and positions are set in the "labels.js".
For additional labels the labels.js has to be modified.
Could You please make a short tutorial on how to modify the "labels.js" for new label.
This would make this little tool universal an applicable world wide!
Some proper CSS and structure would be nice I think.
Add command line interface for scripting.
Planned after #2.
Hi and thank you very much for this great project!
I tried using the "offline" version just like you describe it in the readme.md -> just open the index.html in the browser.
This does not work like this anymore in actual browsers, the following error message is thrown for example in Chrome for all js files:
Access to script at 'file:///C:/assets/index.bf17cde9.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.
In former times, it was no problem to simply load local files in the web browsers, but this had some security issues as noted here:
https://www.mozilla.org/en-US/security/advisories/mfsa2019-21/#CVE-2019-11730
Therefore the handling in all relevant browsers was changed so trying to load local files now produces CORS errors.
For more info, please refer to this message: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp
A very simple possibility to use as a workaround is to open a simple python HTTP server in the directory where the index.html is located.
This is an easy thing described here: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Tools_and_setup/set_up_a_local_testing_server
Long story short: Install python3, then navigate to the directory where index.html is using cd and then call
python3 -m http.server
or python -m http.server
. A local http server is now opened at port 8000 (standard port, can be customized).
Then the website can then be opened via webbrowser.
I think, it could help users (especially them with a more or less "basic" IT knowledge) if you would refer to this circumstances in the readme and maybe extend the description with the python http server example, if you like it.
Best regards,
Chris
Hi,
Would you be interested to add a Dutch DHL label?
I added an example PDF.
[removed document]
Kind regards,
Site is getting too messy, components would be nice
When you try to load the project from a link like: domain.tld/folder, some links won't work.
It is because some links look like this:<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
The "/" at the beginning refers to the root of the server, where it isn't at the moment. Removing it will use the current folder as the root.
GIF for Amazon Returns
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.