-
Notifications
You must be signed in to change notification settings - Fork 188
Typescript configuration for Fiori elements apps #1286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
143fbec
ts config added on app level
c-kobo 134a2e0
ts config continued
c-kobo 6420345
custom section added
c-kobo aa4b00c
add sustainability fields and custom calculation handler
c-kobo 028609b
controller extension added
c-kobo 4814bf7
controller extension fixed
c-kobo e2de80e
fix green flight fee calculation
c-kobo d28171c
package.json and app specific tsconfig.json updated
c-kobo 798fd76
package.json updated
c-kobo 43292ee
small fixes
c-kobo d4cffa3
package-lock.json updated
c-kobo 597d169
improve green fee calculation
c-kobo 2b4bdbb
Merge remote-tracking branch 'origin/main' into typescript
c-kobo 8f23fa9
package-lock.json updated
c-kobo 9996b1d
changes from code review pt.1
c-kobo 0597096
package.json updated
c-kobo 994248a
Merge branch 'main' into typescript
chgeo acb639e
Merge branch 'main' into typescript
chgeo 90af41e
Merge remote-tracking branch 'origin/main' into typescript
c-kobo 4aa950b
package-lock.json updated
c-kobo 7f5daeb
eslint.config.js: ignore app/**/* as it has its own eslintrc rules
c-kobo 521d6f5
Update app/travel_analytics/package.json
c-kobo a74a984
Update app/travel_processor/package.json
c-kobo 4305a29
fix opa tests pt.1
c-kobo 4324bf9
fix opa tests pt.2
c-kobo c091a69
fix jest test
c-kobo e689aa1
Update UI5 core library version to 1.130.2
c-kobo 815edfd
package.json updated
c-kobo 56e6e44
force mocha test exit after successful completion
c-kobo 71c4157
Ignore all .sql files
chgeo bebc336
Fix csv file
chgeo 5be0146
Fix Java build
chgeo 5dea41c
Use Java 21
chgeo 02d7a98
Fix tsx install, Node 20 instead of 18
chgeo 4f53835
npm up
chgeo 78804ea
Fix java startup in Karama, add logging
chgeo 765dd00
Use ephemeral port for Java
chgeo 818abd1
Use `karma-ui5-transpile` to get TS transpiled
chgeo d3ab3f2
Remove superfluous test/odata.test.js
chgeo c0be332
Remove superfluous installs
chgeo 431bba6
Simplify Java build
chgeo afe7c45
Move Karma stuff
chgeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "es2022", | ||
| "module": "es2022", | ||
| "skipLibCheck": true, | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "strictPropertyInitialization": false, | ||
| "moduleResolution": "node", | ||
| "rootDir": "./webapp", | ||
| "outDir": "./dist", | ||
| "baseUrl": "./", | ||
| "paths": { | ||
| "sap/fe/cap/travel_analytics/*": [ | ||
| "./webapp/*" | ||
| ] | ||
| }, | ||
| "typeRoots": [ | ||
| "./node_modules/@types", | ||
| "./node_modules/@sapui5/types", | ||
| "../../node_modules/@types", | ||
| "../../node_modules/@sapui5/types" | ||
| ] | ||
| }, | ||
| "include": [ | ||
| "./webapp/**/*" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import BaseComponent from "sap/fe/core/AppComponent"; | ||
|
|
||
| /** | ||
| * @namespace sap.fe.cap.managetravels | ||
| */ | ||
| export default class Component extends BaseComponent { | ||
|
|
||
| public static metadata = { | ||
| manifest: "json" | ||
| }; | ||
|
|
||
| /** | ||
| * The component is initialized by UI5 automatically during the startup of the app and calls the init method once. | ||
| * @public | ||
| * @override | ||
| */ | ||
| //public init() : void { | ||
| // super.init(); | ||
| //} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "extends": "plugin:@sap-ux/eslint-plugin-fiori-tools/defaultTS", | ||
| "root": true | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "es2022", | ||
| "module": "es2022", | ||
| "skipLibCheck": true, | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "strictPropertyInitialization": false, | ||
| "moduleResolution": "node", | ||
| "rootDir": "./webapp", | ||
| "outDir": "./dist", | ||
| "baseUrl": "./", | ||
| "paths": { | ||
| "sap/fe/cap/travel_processor/*": [ | ||
| "./webapp/*" | ||
| ] | ||
| }, | ||
| "typeRoots": [ | ||
| "./node_modules/@types", | ||
| "./node_modules/@sapui5/types", | ||
| "../../node_modules/@types", | ||
| "../../node_modules/@sapui5/types" | ||
| ] | ||
| }, | ||
| "include": [ | ||
| "./webapp/**/*" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import BaseComponent from "sap/fe/core/AppComponent"; | ||
|
|
||
| /** | ||
| * @namespace sap.fe.cap.managetravels | ||
| */ | ||
| export default class Component extends BaseComponent { | ||
|
|
||
| public static metadata = { | ||
| manifest: "json" | ||
| }; | ||
|
|
||
| /** | ||
| * The component is initialized by UI5 automatically during the startup of the app and calls the init method once. | ||
| * @public | ||
| * @override | ||
| */ | ||
| //public init() : void { | ||
| // super.init(); | ||
| //} | ||
| } |
11 changes: 11 additions & 0 deletions
11
app/travel_processor/webapp/ext/controller/ControllerExtension.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /** | ||
| * Helper to be able to define how to get the page specific extension API when writing a controller extension. | ||
| */ | ||
| declare module 'sap/ui/core/mvc/ControllerExtension' { | ||
| export default class ControllerExtension<API> { | ||
| static overrides: unknown; | ||
| base: { | ||
| getExtensionAPI(): API; | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.