Skip to content

Commit

Permalink
Add settings, controls, uploads and logs features with configuration …
Browse files Browse the repository at this point in the history
…based building system
  • Loading branch information
voxelias authored and filipkotoucek committed Oct 4, 2021
1 parent ff13211 commit d006e34
Show file tree
Hide file tree
Showing 195 changed files with 11,136 additions and 17,147 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist/
src/views/
.husky/
src/locales/locales.json
config.custom.js
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
draft/*
src/views/*
src/locales/locales.json
src/locales/locales.json
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Changelog

## 2021-09-23 (3.0.0)

* Add configuration based build system
* Update fonts includes

## 2021-09-09 (0.5.0)

* Add printer control page

## 2021-08-11 (0.4.0)

* Add advanced upload widget


## 2021-07-26 (0.3.5)

* Add debug outputs to investigate project picture collision


## 2021-07-20 (0.3.4)

* Removed unnecessary colon after hostname in Dashboard
* Switched from data.link to data.printer for settings end point


## 2021-07-14 (0.3.3)

* All not available project properties are hidden
* Toaster messages are now sticky to window bottom
* Increased padding between the preview widget and bottom content
* Fixed printing time estimations missmatching
* No log file will be selected by default anymore
* Files with size above 100MB won't be loaded into textarea
* Added missing Czech translations


## 2021-07-12 (0.3.2)

* Fixed log viewer
* Added possibility to change user login and password
* Added possibility to change printer name and location


## 2021-07-01 (0.3.1)

* Fixed padding for preview widget on Dashboard and Projects page


## 2021-06-30 (0.3.0)

* Fixed progress bar behavior when printing is finished
* Fixed error handling for periodic requests
* Page heading is sticky now
* Telemetry sidebar is sticky now
* Added frontend version to the Settings page
* Fixed 'undefined' error pop up heading in some cases


## 2021-06-25

* Added persistent `/api/job` polling without a rely on the `state.flags.printing`

43 changes: 27 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Prusa-Connect-Local
# Prusa-Link-Web

This is a printer connect webservice. It is compatible with other 3D printer services, so many applications can use this service.

Expand All @@ -8,32 +8,43 @@ This is a printer connect webservice. It is compatible with other 3D printer ser
npm install
```

## UI
## Commands

`npm run {build_type}:{printer_type}`
```
npm run {command}[:{config}] [option]
```
Where `{command}` is one of the following:

build type:
* `build` -> build static files with production
* `start` -> run a dev server, including virtual printer mockup
* start [http-*] -> run a dev server with authentication

- dev -> build mode developer
- build -> build mode production
- start -> run a dev server (Should run dev/build first for generate preprocessing code)
- start [http-*] -> run a dev server with authentication
`{config}` is one of the following:

printer types:
* `sl1` -> Prusa SL1 printer configuration (see `config.sl1.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)
* if not set, default configuration from `webpack.config.js` is being used

- sl1
- mini
`option` is one of the following:

Example:
* ` http-basic` -> enables Basic authentication on virtual printer
* ` http-apikey` -> enables API-KEY authentication on virtual printer

Examples:

```bash
npm run dev:mini
npm run build
npm run build:mini
npm run start:mini
npm run start:mini http-basic
npm run start:mini http-apikey
npm run start
npm run start http-basic
npm run start http-apikey
npm run start:sl1

```


## Translations

1. Append all new keys in `src/locales/source/en.json` and add default english translation.
Expand Down
15 changes: 15 additions & 0 deletions config.mini.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const webpackConfig = require("./webpack.config");

module.exports = (env, args) => {
const config = {
PRINTER_NAME: "Original Prusa Mini",
PRINTER_TYPE: "fdm",

WITH_SETTINGS: false,
WITH_CONTROLS: false,
WITH_LOGS: false,
WITH_FONT: false,
...env,
};
return webpackConfig(config, args);
}
15 changes: 15 additions & 0 deletions config.sl1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const webpackConfig = require("./webpack.config");

module.exports = (env, args) => {
const config = {
PRINTER_NAME: "Original Prusa SL1",
PRINTER_TYPE: "sla",

WITH_SETTINGS: false,
WITH_CONTROLS: false,
WITH_LOGS: false,
WITH_FONT: true,
...env,
};
return webpackConfig(config, args);
}
Loading

0 comments on commit d006e34

Please sign in to comment.