From f2eaad81402509d1e9afbb56294ab7ef596cad26 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Sat, 15 Jun 2024 13:27:43 +0200 Subject: [PATCH] build: remove service worker for now --- angular.json | 23 +++++++---------------- src/app/features/tasks/short-syntax.ts | 4 ++-- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/angular.json b/angular.json index 66f6b9845..4b7f9c762 100644 --- a/angular.json +++ b/angular.json @@ -27,9 +27,7 @@ "base": "dist" }, "index": "src/index.html", - "polyfills": [ - "src/polyfills.ts" - ], + "polyfills": ["src/polyfills.ts"], "tsConfig": "src/tsconfig.app.json", "preserveSymlinks": true, "assets": [ @@ -43,9 +41,7 @@ "webWorkerTsConfig": "src/tsconfig.worker.json", "browser": "src/main.ts", "stylePreprocessorOptions": { - "includePaths": [ - "." - ] + "includePaths": ["."] } }, "configurations": { @@ -60,8 +56,7 @@ "extractLicenses": false, "sourceMap": true, "namedChunks": false, - "aot": false, - "serviceWorker": true + "aot": false }, "production": { "baseHref": "", @@ -89,8 +84,7 @@ "sourceMap": true, "namedChunks": false, "aot": true, - "extractLicenses": true, - "serviceWorker": false + "extractLicenses": true }, "productionWeb": { "budgets": [ @@ -117,8 +111,7 @@ "sourceMap": true, "namedChunks": false, "aot": true, - "extractLicenses": true, - "serviceWorker": true + "extractLicenses": true }, "stage": { "baseHref": "", @@ -146,8 +139,7 @@ "sourceMap": true, "namedChunks": false, "aot": true, - "extractLicenses": true, - "serviceWorker": false + "extractLicenses": true }, "stageWeb": { "budgets": [ @@ -174,8 +166,7 @@ "sourceMap": true, "namedChunks": false, "aot": true, - "extractLicenses": true, - "serviceWorker": true + "extractLicenses": true } } }, diff --git a/src/app/features/tasks/short-syntax.ts b/src/app/features/tasks/short-syntax.ts index dc4f611a3..23bc30640 100644 --- a/src/app/features/tasks/short-syntax.ts +++ b/src/app/features/tasks/short-syntax.ts @@ -1,4 +1,4 @@ -import chrono from 'chrono-node'; +import { casual } from 'chrono-node'; import { Task, TaskCopy } from './task.model'; import { getWorklogStr } from '../../util/get-work-log-str'; import { stringToMs } from '../../ui/duration/string-to-ms.pipe'; @@ -13,7 +13,7 @@ const CH_TAG = '#'; const CH_DUE = '@'; const ALL_SPECIAL = `(\\${CH_PRO}|\\${CH_TAG}|\\${CH_DUE})`; -const customDateParser = chrono.casual.clone(); +const customDateParser = casual.clone(); const SHORT_SYNTAX_PROJECT_REG_EX = new RegExp(`\\${CH_PRO}[^${ALL_SPECIAL}]+`, 'gi'); const SHORT_SYNTAX_TAGS_REG_EX = new RegExp(`\\${CH_TAG}[^${ALL_SPECIAL}|\\s]+`, 'gi');