chore: reformatted with Prettier

This commit is contained in:
2026-08-10 18:41:27 +02:00
parent 1d7ddf2b9b
commit 85eaad3bf4
13 changed files with 104 additions and 131 deletions
+2 -4
View File
@@ -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];
+5 -16
View File
@@ -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/**/*"]
}
+1 -4
View File
@@ -5,12 +5,9 @@ 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"
]
interfaces: ["sap.ui.core.IAsyncContentCreation"],
};
public init(): void {
+1 -4
View File
@@ -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 {
}
public onInit(): void {}
}
+1 -4
View File
@@ -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 {
}
public onInit(): void {}
}
+9 -5
View File
@@ -1,12 +1,16 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Week Organizer</title>
<style>
html, body, body > div, #container, #container-uiarea {
html,
body,
body > div,
#container,
#container-uiarea {
height: 100%;
}
</style>
+1 -3
View File
@@ -76,9 +76,7 @@
{
"name": "RouteMain",
"pattern": ":?query:",
"target": [
"TargetMain"
]
"target": ["TargetMain"]
}
],
"targets": {
+3 -4
View File
@@ -11,7 +11,7 @@ const onTheAppPage = new AppPage();
const onTheViewPage = new ViewPage();
Opa5.extendConfig({
viewNamespace: "de.paulvincenthorn.weekorganizer.weekorganizerapp.view.",
autoWait: true
autoWait: true,
});
opaTest("Should see the initial page of the app", function () {
@@ -19,15 +19,14 @@ opaTest("Should see the initial page of the app", function () {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
onTheAppPage.iStartMyUIComponent({
componentConfig: {
name: "de.paulvincenthorn.weekorganizer.weekorganizerapp"
}
name: "de.paulvincenthorn.weekorganizer.weekorganizerapp",
},
});
// Assertions
onTheAppPage.iShouldSeeTheApp();
onTheViewPage.iShouldSeeThePageView();
// Cleanup
// eslint-disable-next-line @typescript-eslint/no-floating-promises
onTheAppPage.iTeardownMyApp();
+1 -4
View File
@@ -5,7 +5,6 @@ const sViewName = "App";
export default class AppPage extends Opa5 {
// Actions
// Assertions
iShouldSeeTheApp() {
return this.waitFor({
@@ -14,9 +13,7 @@ export default class AppPage extends Opa5 {
success: function () {
Opa5.assert.ok(true, "The " + sViewName + " view is displayed");
},
errorMessage: "Did not find the " + sViewName + " view"
errorMessage: "Did not find the " + sViewName + " view",
});
}
}
+1 -5
View File
@@ -5,7 +5,6 @@ const sViewName = "Main";
export default class MainPage extends Opa5 {
// Actions
// Assertions
iShouldSeeThePageView() {
return this.waitFor({
@@ -14,10 +13,7 @@ export default class MainPage extends Opa5 {
success: function () {
Opa5.assert.ok(true, "The " + sViewName + " view is displayed");
},
errorMessage: "Did not find the " + sViewName + " view"
errorMessage: "Did not find the " + sViewName + " view",
});
}
}
+1
View File
@@ -2,5 +2,6 @@
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<Page id="page" title="{i18n>title}">
</Page>
</mvc:View>