chore: reformatted with Prettier
This commit is contained in:
+2
-4
@@ -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
@@ -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/**/*"]
|
||||
}
|
||||
|
||||
+2
-5
@@ -5,15 +5,12 @@ 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 {
|
||||
public init(): void {
|
||||
// call the base component's init function
|
||||
super.init();
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
}
|
||||
@@ -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 {}
|
||||
}
|
||||
+13
-9
@@ -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">
|
||||
<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" />
|
||||
<title>Week Organizer</title>
|
||||
<style>
|
||||
html, body, body > div, #container, #container-uiarea {
|
||||
html,
|
||||
body,
|
||||
body > div,
|
||||
#container,
|
||||
#container-uiarea {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -22,8 +26,8 @@
|
||||
data-sap-ui-async="true"
|
||||
data-sap-ui-frame-options="trusted"
|
||||
></script>
|
||||
</head>
|
||||
<body class="sapUiBody sapUiSizeCompact" id="content">
|
||||
</head>
|
||||
<body class="sapUiBody sapUiSizeCompact" id="content">
|
||||
<div
|
||||
data-sap-ui-component
|
||||
data-name="de.paulvincenthorn.weekorganizer.weekorganizerapp"
|
||||
@@ -31,5 +35,5 @@
|
||||
data-settings='{"id" : "de.paulvincenthorn.weekorganizer.weekorganizerapp"}'
|
||||
data-handle-validation="true"
|
||||
></div>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
@@ -76,9 +76,7 @@
|
||||
{
|
||||
"name": "RouteMain",
|
||||
"pattern": ":?query:",
|
||||
"target": [
|
||||
"TargetMain"
|
||||
]
|
||||
"target": ["TargetMain"]
|
||||
}
|
||||
],
|
||||
"targets": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import JSONModel from "sap/ui/model/json/JSONModel";
|
||||
import Device from "sap/ui/Device";
|
||||
|
||||
export function createDeviceModel () {
|
||||
export function createDeviceModel() {
|
||||
const model = new JSONModel(Device);
|
||||
model.setDefaultBindingMode("OneWay");
|
||||
return model;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
xmlns:mvc="sap.ui.core.mvc"
|
||||
xmlns="sap.m">
|
||||
<Page id="page" title="{i18n>title}">
|
||||
|
||||
</Page>
|
||||
</mvc:View>
|
||||
Reference in New Issue
Block a user