PrusaLink Web is a web interface for Prusa printers. Web interface is specified using the OpenAPI format in this file: spec/openapi.yaml.
npm install
npm run {command}[:{config}] [option]
Where {command}
is one of the following:
build
-> build static files with productionstart
-> run a dev server, including virtual printer mockup{config}
is one of the following:
sl1
-> Prusa SL1 printer configuration (see config.sl1.js
)m1
-> Prusa SL1 printer configuration (see config.m1.js
)mini
-> Prusa Mini printer configuration (see config.mini.js
)custom
-> Tries to use custom configuration file config.custom.js
(not a part of the git repository)webpack.config.js
is being usedoption
is one of the following:
http-basic
-> enables Basic authentication on virtual printerhttp-apikey
-> enables API-KEY authentication on virtual printerExamples:
npm run build
npm run build:mini
npm run start
npm run start http-basic
npm run start http-apikey
npm run start:sl1
BACKEND_URL="http://192.168.1.100/" npm run start:mini
src/locales/source/en.json
and add default english translation.src/locales/source/en.json
file to the contentsrc/locales/source
folder. Name of the files should be cs_CZ.json
, en_US.json
, ...src/locales/update_translations.py
script to extract only used strings.cs_CZ.json
, en_US.json
, ... files.src/assets/
directory.npm run recolor
script, it will do the following:
The script may not recognize the primary (orange) color. If that happens, you have two choices:
tools\recolor_icons\config\fix_primary_color.js
.