diff --git a/eslint.config.mjs b/eslint.config.mjs index 9814b15..fd90fa4 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,5 +1,3 @@ -import fioriTools from '@sap-ux/eslint-plugin-fiori-tools'; +import fioriTools from "@sap-ux/eslint-plugin-fiori-tools"; -export default [ - ...fioriTools.configs.recommended -]; +export default [...fioriTools.configs.recommended]; diff --git a/tsconfig.json b/tsconfig.json index c4a0d47..6372284 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,22 +10,11 @@ "rootDir": "./webapp", "outDir": "./dist", "paths": { - "de/paulvincenthorn/weekorganizer/weekorganizerapp/*": [ - "./webapp/*" - ], - "unit/*": [ - "./webapp/test/unit/*" - ], - "integration/*": [ - "./webapp/test/integration/*" - ] + "de/paulvincenthorn/weekorganizer/weekorganizerapp/*": ["./webapp/*"], + "unit/*": ["./webapp/test/unit/*"], + "integration/*": ["./webapp/test/integration/*"] }, - "typeRoots": [ - "./node_modules/@types", - "./node_modules/@sapui5/types" - ] + "typeRoots": ["./node_modules/@types", "./node_modules/@sapui5/types"] }, - "include": [ - "./webapp/**/*" - ] + "include": ["./webapp/**/*"] } diff --git a/webapp/Component.ts b/webapp/Component.ts index 23133bf..2240203 100644 --- a/webapp/Component.ts +++ b/webapp/Component.ts @@ -5,22 +5,19 @@ import { createDeviceModel } from "./model/models"; * @namespace de.paulvincenthorn.weekorganizer.weekorganizerapp */ export default class Component extends BaseComponent { + public static metadata = { + manifest: "json", + interfaces: ["sap.ui.core.IAsyncContentCreation"], + }; - public static metadata = { - manifest: "json", - interfaces: [ - "sap.ui.core.IAsyncContentCreation" - ] - }; + public init(): void { + // call the base component's init function + super.init(); - public init() : void { - // call the base component's init function - super.init(); + // set the device model + this.setModel(createDeviceModel(), "device"); - // set the device model - this.setModel(createDeviceModel(), "device"); - - // enable routing - this.getRouter().initialize(); - } -} \ No newline at end of file + // enable routing + this.getRouter().initialize(); + } +} diff --git a/webapp/controller/App.controller.ts b/webapp/controller/App.controller.ts index 7a05322..6e7019b 100644 --- a/webapp/controller/App.controller.ts +++ b/webapp/controller/App.controller.ts @@ -4,8 +4,5 @@ import Controller from "sap/ui/core/mvc/Controller"; * @namespace de.paulvincenthorn.weekorganizer.weekorganizerapp.controller */ export default class App extends Controller { - - public onInit(): void { - - } -} \ No newline at end of file + public onInit(): void {} +} diff --git a/webapp/controller/Main.controller.ts b/webapp/controller/Main.controller.ts index fcba588..952dc42 100644 --- a/webapp/controller/Main.controller.ts +++ b/webapp/controller/Main.controller.ts @@ -4,8 +4,5 @@ import Controller from "sap/ui/core/mvc/Controller"; * @namespace de.paulvincenthorn.weekorganizer.weekorganizerapp.controller */ export default class Main extends Controller { - - public onInit(): void { - - } -} \ No newline at end of file + public onInit(): void {} +} diff --git a/webapp/index.html b/webapp/index.html index 26e1246..f2a5c9f 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -1,35 +1,39 @@ - + -
- - - + + + +