diff --git a/README.md b/README.md index 0385530de..2d938e2e4 100644 --- a/README.md +++ b/README.md @@ -13,19 +13,19 @@ ## Table of Contents -- [Table of Contents](#table-of-contents) -- [Installation](#installation) -- [Update](#update) -- [Tips and Tricks](#tips-and-tricks) -- [Screenshots](#screenshots) -- [Troubleshooting](#troubleshooting) -- [Bugs and more](#bugs-and-more) -- [Contributing](#contributing) -- [License](#license) +- [Table of Contents](#table-of-contents) +- [Installation](#installation) +- [Update](#update) +- [Tips and Tricks](#tips-and-tricks) +- [Screenshots](#screenshots) +- [Troubleshooting](#troubleshooting) +- [Bugs and more](#bugs-and-more) +- [Contributing](#contributing) +- [License](#license) ## Installation -***Note: This script will install additional OctoPrint Plugins by default. If you want to know which visit the Wiki!*** +**_Note: This script will install additional OctoPrint Plugins by default. If you want to know which visit the Wiki!_** ``` wget -qO- https://github.com/UnchartedBull/OctoDash/raw/master/scripts/install.sh | bash -s -- --ptg @@ -33,11 +33,12 @@ wget -qO- https://github.com/UnchartedBull/OctoDash/raw/master/scripts/install.s For more options and information have a look at the [wiki](https://github.com/UnchartedBull/OctoDash/wiki/Installation). -No Keyboard? [No Problem](https://github.com/UnchartedBull/OctoDash/wiki/Installation#setup-without-keyboard). +No Keyboard? [No Problem](https://github.com/UnchartedBull/OctoDash/wiki/Installation#setup-without-keyboard). Having issues during the installation? Please have a look at the [Troubleshooting Guide](https://github.com/UnchartedBull/OctoDash/wiki/Troubleshooting) first. ## Update + ``` wget -qO- https://github.com/UnchartedBull/OctoDash/raw/master/scripts/update.sh | bash ``` @@ -46,13 +47,13 @@ For more info have a look at the [wiki](https://github.com/UnchartedBull/OctoDas ## Tips and Tricks -- OctoDash supports .ufp package preview images (v1.4.1 and up) -- If you loaded a file and want to unload it, just swipe left at the top portion of the screen -- You can press multiple arrows directly after another in the control view. All actions will be executed one after another, even if the prior didn't finish before pressing the button -- The six actions on the right in the control view can be customized. They can either send GCode commands to your printer, restart OctoPrint or your Pi and even open iFrames so you can view your camera - +- OctoDash supports .ufp package preview images (v1.4.1 and up) +- You can press multiple arrows directly after another in the control view. All actions will be executed one after another, even if the prior didn't finish before pressing the button +- The six actions on the right in the control view can be customized. They can either send GCode commands to your printer, restart OctoPrint or your Pi and even open iFrames so you can view your camera +- You can adjust the temperatures in the home screen, by pressing on their icons ## Screenshots +
@@ -60,6 +61,8 @@ For more info have a look at the [wiki](https://github.com/UnchartedBull/OctoDas + +
More Screenshots can be found [here](https://github.com/UnchartedBull/OctoDash/tree/master/screenshots). diff --git a/package-lock.json b/package-lock.json index 2e9dd9466..731241405 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6674,11 +6674,6 @@ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", "dev": true }, - "hammerjs": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz", - "integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE=" - }, "handle-thing": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", diff --git a/package.json b/package.json index 06cfabe23..058ea8a90 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,6 @@ "ajv": "^6.12.0", "angular-svg-round-progressbar": "^3.0.1", "electron-store": "^5.1.1", - "hammerjs": "^2.0.8", "lodash": "^4.17.15", "ngx-spinner": "^9.0.1", "rxjs": "~6.5.4", diff --git a/screenshots/adjust-temperatures-main-screen.png b/screenshots/adjust-temperatures-main-screen.png new file mode 100644 index 000000000..1d47aa086 Binary files /dev/null and b/screenshots/adjust-temperatures-main-screen.png differ diff --git a/screenshots/control-confirmation.png b/screenshots/control-confirmation.png new file mode 100644 index 000000000..bca95e0ea Binary files /dev/null and b/screenshots/control-confirmation.png differ diff --git a/screenshots/file_details.png b/screenshots/file_details.png index 6aefb8ba4..88577ed0c 100644 Binary files a/screenshots/file_details.png and b/screenshots/file_details.png differ diff --git a/screenshots/file_loaded.png b/screenshots/file_loaded.png index 20e4a04fe..062e6981d 100644 Binary files a/screenshots/file_loaded.png and b/screenshots/file_loaded.png differ diff --git a/screenshots/settings.png b/screenshots/settings.png new file mode 100644 index 000000000..534bfe245 Binary files /dev/null and b/screenshots/settings.png differ diff --git a/screenshots/sleeping.png b/screenshots/sleeping.png index ee08a3f60..dbf804f4a 100644 Binary files a/screenshots/sleeping.png and b/screenshots/sleeping.png differ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 8b1882432..79d2c0999 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,13 +1,12 @@ import { HttpClientModule } from '@angular/common/http'; -import { Injectable, NgModule } from '@angular/core'; +import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { MatRippleModule } from '@angular/material/core'; -import { BrowserModule, HAMMER_GESTURE_CONFIG, HammerGestureConfig } from '@angular/platform-browser'; +import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { fas } from '@fortawesome/free-solid-svg-icons'; import { RoundProgressModule } from 'angular-svg-round-progressbar'; -import * as Hammer from 'hammerjs'; import { NgxSpinnerModule } from 'ngx-spinner'; import { AppComponent } from './app.component'; @@ -35,32 +34,6 @@ import { SettingsComponent } from './settings/settings.component'; import { StandbyComponent } from './standby/standby.component'; import { URLSafePipe } from './url.pipe'; -@Injectable() -export class HammerConfig extends HammerGestureConfig { - public overrides = { - pan: { - direction: 6, - }, - pinch: { - enable: false, - }, - rotate: { - enable: false, - }, - press: { - pointers: 1, - time: 501, - threshold: 15, - }, - swipe: { - pointers: 1, - direction: Hammer.DIRECTION_LEFT, - threshold: 20, - velocity: 0.4, - }, - }; -} - @NgModule({ declarations: [ AppComponent, @@ -93,17 +66,7 @@ export class HammerConfig extends HammerGestureConfig { BrowserAnimationsModule, MatRippleModule, ], - providers: [ - AppService, - ConfigService, - NotificationService, - PrinterService, - JobService, - { - provide: HAMMER_GESTURE_CONFIG, - useClass: HammerConfig, - }, - ], + providers: [AppService, ConfigService, NotificationService, PrinterService, JobService], bootstrap: [AppComponent], }) export class AppModule { diff --git a/src/app/config/config.service.ts b/src/app/config/config.service.ts index 8fa665b36..f3bf158af 100644 --- a/src/app/config/config.service.ts +++ b/src/app/config/config.service.ts @@ -232,6 +232,10 @@ export class ConfigService { public getDefaultFanSpeed(): number { return this.config.printer.defaultTemperatureFanSpeed.fan; } + + public isPreheatPluginEnabled(): boolean { + return this.config.plugins.preheatButton.enabled; + } } export interface Config { diff --git a/src/app/files.service.ts b/src/app/files.service.ts index 1dc253f45..b0105b041 100644 --- a/src/app/files.service.ts +++ b/src/app/files.service.ts @@ -136,6 +136,30 @@ export class FilesService { }); } + public getThumbnail(filePath: string): Promise