Fixed frontend build
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Administrator 2022-09-18 15:24:22 +02:00
parent 8c45ff5ac4
commit e435628690
6 changed files with 14551 additions and 3973 deletions

View File

@ -6,6 +6,7 @@ __version__ = "1.0.0"
from app import create_app from app import create_app
# Create an application instance that web servers can use. # Create an application instance that web servers can use.
application = create_app('config/flask.cfg') application = create_app('config/flask.cfg')
application.run() application.run()

View File

@ -4,7 +4,7 @@ FROM node:latest as build
WORKDIR /usr/local/app WORKDIR /usr/local/app
# Copy the project files to the container # Copy the project files to the container
COPY frontend /usr/local/app/ COPY . /usr/local/app/
# Install dependencies # Install dependencies
RUN npm install RUN npm install

18509
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,8 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build --prod --build-optimizer", "build": "ng build --configuration production --build-optimizer",
"watch": "ng build --watch --configuration development", "watch": "ng build --configuration development --watch",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"compodoc": "npx compodoc -p tsconfig.doc.json" "compodoc": "npx compodoc -p tsconfig.doc.json"

View File

@ -106,8 +106,13 @@ export class BotSettingsComponent implements OnInit {
} }
setCronString() { setCronString() {
let val = this.cronForm.value
if(val === null) {
val = "";
}
this.profileService this.profileService
.addCronString(this.cronForm.value) .addCronString(val)
.subscribe((result) => { .subscribe((result) => {
console.log(result); console.log(result);
}); });

View File

@ -27,6 +27,7 @@ import news.news_fetcher as news
import shares.share_fetcher as share_fetcher import shares.share_fetcher as share_fetcher
from api_handling.api_handler import API_Handler from api_handling.api_handler import API_Handler
load_dotenv(dotenv_path='.env') # load environment variables load_dotenv(dotenv_path='.env') # load environment variables
bot_version = "3.0.1" # version of bot bot_version = "3.0.1" # version of bot