diff --git a/packages/bookshop/app/_i18n/i18n.properties b/packages/bookshop/app/_i18n/i18n.properties deleted file mode 100644 index 5d6f03d6..00000000 --- a/packages/bookshop/app/_i18n/i18n.properties +++ /dev/null @@ -1,13 +0,0 @@ -Books = Books -Book = Book -ID = ID -Title = Title -Author = Author -AuthorID = Author ID -Stock = Stock -Name = Name -AuthorName = Author's Name -Authors = Authors -Order = Order -Orders = Orders -Price = Price diff --git a/packages/bookshop/app/_i18n/i18n_de.properties b/packages/bookshop/app/_i18n/i18n_de.properties deleted file mode 100644 index 365b45df..00000000 --- a/packages/bookshop/app/_i18n/i18n_de.properties +++ /dev/null @@ -1,13 +0,0 @@ -Books = Bücher -Book = Buch -ID = ID -Title = Titel -Authors = Autoren -Author = Autor -AuthorID = ID des Autors -AuthorName = Name des Autors -Name = Name -Stock = Bestand -Order = Bestellung -Orders = Bestellungen -Price = Preis diff --git a/packages/bookshop/app/admin/fiori-service.cds b/packages/bookshop/app/admin/fiori-service.cds deleted file mode 100644 index 5fd19df0..00000000 --- a/packages/bookshop/app/admin/fiori-service.cds +++ /dev/null @@ -1,37 +0,0 @@ -using AdminService from '../../srv/admin-service'; - -//////////////////////////////////////////////////////////////////////////// -// -// Books Object Page -// -annotate AdminService.Books with @( - UI: { - Facets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>General}', Target: '@UI.FieldGroup#General'}, - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Details}', Target: '@UI.FieldGroup#Details'}, - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Admin}', Target: '@UI.FieldGroup#Admin'}, - ], - FieldGroup#General: { - Data: [ - {Value: title}, - {Value: author_ID}, - {Value: descr}, - ] - }, - FieldGroup#Details: { - Data: [ - {Value: stock}, - {Value: price}, - {Value: currency_code, Label: '{i18n>Currency}'}, - ] - }, - FieldGroup#Admin: { - Data: [ - {Value: createdBy}, - {Value: createdAt}, - {Value: modifiedBy}, - {Value: modifiedAt} - ] - } - } -); diff --git a/packages/bookshop/app/admin/webapp/Component.js b/packages/bookshop/app/admin/webapp/Component.js deleted file mode 100644 index 9fdf2d05..00000000 --- a/packages/bookshop/app/admin/webapp/Component.js +++ /dev/null @@ -1,22 +0,0 @@ -sap.ui.define(["sap/fe/AppComponent"], ac => ac.extend("admin.Component", { - metadata:{ manifest:'json' } -})) - -// sap.ui.define (["sap/ui/core/UIComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) -// sap.ui.define (["sap/ui/generic/app/AppComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) - -// jQuery.sap.declare("bookshop.Component"); -// sap.ui.getCore().loadLibrary("sap.ui.generic.app"); -// jQuery.sap.require("sap.ui.generic.app.AppComponent"); - -// sap.ui.generic.app.AppComponent.extend("bookshop.Component", { -// metadata: { -// manifest: "json" -// } -// }); - -/* eslint no-undef:0 */ \ No newline at end of file diff --git a/packages/bookshop/app/admin/webapp/i18n/i18n.properties b/packages/bookshop/app/admin/webapp/i18n/i18n.properties deleted file mode 100644 index 28b03dff..00000000 --- a/packages/bookshop/app/admin/webapp/i18n/i18n.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This is the resource bundle of itelo -# __ldi.translation.uuid=c3431418-9caf-11e8-98d0-529269fb1459 - -# JCI app descriptor contains lower case TITLE -appTitle=Bookshop Sample - -# JCI app descriptor contains lower case DESCRIPTION -appSubTitle=CAP Sample Application - -# JCI app descriptor contains lower case DESCRIPTION -appDescription=CDS Sample Service diff --git a/packages/bookshop/app/admin/webapp/manifest.json b/packages/bookshop/app/admin/webapp/manifest.json deleted file mode 100644 index 574480f1..00000000 --- a/packages/bookshop/app/admin/webapp/manifest.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "_version": "1.8.0", - "sap.app": { - "id": "admin", - "type": "application", - "title": "Manage Books", - "description": "Sample Application", - "i18n": "i18n/i18n.properties", - "dataSources": { - "AdminService": { - "uri": "/admin/", - "type": "OData", - "settings": { - "odataVersion": "4.0" - } - } - }, - "-sourceTemplate": { - "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", - "-version": "1.40.12" - } - }, - "sap.ui5": { - "dependencies": { - "libs": { - "sap.fe": {} - } - }, - "models": { - "i18n": { - "type": "sap.ui.model.resource.ResourceModel", - "uri": "i18n/i18n.properties" - }, - "": { - "dataSource": "AdminService", - "settings": { - "synchronizationMode": "None", - "operationMode": "Server", - "autoExpandSelect" : true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } - } - } - }, - "routing": { - "routes": [ - { - "pattern": ":?query:", - "name": "BooksList", - "target": "BooksList" - }, - { - "pattern": "Books({key}):?query:", - "name": "BooksDetails", - "target": "BooksDetails" - }, - { - "pattern": "Books({key}/author({key2}):?query:", - "name": "AuthorsDetails", - "target": "AuthorsDetails" - } - ], - "targets": { - "BooksList": { - "type": "Component", - "id": "BooksList", - "name": "sap.fe.templates.ListReport", - "options": { - "settings" : { - "entitySet" : "Books", - "navigation" : { - "Books" : { - "detail" : { - "route" : "BooksDetails" - } - } - } - } - } - }, - "BooksDetails": { - "type": "Component", - "id": "BooksDetailsList", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet" : "Books", - "navigation" : { - "Authors" : { - "detail" : { - "route" : "AuthorsDetails" - } - } - } - } - } - }, - "AuthorsDetails": { - "type": "Component", - "id": "AuthorsDetailsList", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet" : "Authors" - } - } - } - } - }, - "contentDensities": { - "compact": true, - "cozy": true - } - }, - "sap.ui": { - "technology": "UI5", - "fullWidth": false - }, - "sap.fiori": { - "registrationIds": [], - "archeType": "transactional" - } -} \ No newline at end of file diff --git a/packages/bookshop/app/browse/fiori-service.cds b/packages/bookshop/app/browse/fiori-service.cds deleted file mode 100644 index d0d12da3..00000000 --- a/packages/bookshop/app/browse/fiori-service.cds +++ /dev/null @@ -1,47 +0,0 @@ -using CatalogService from '../../srv/cat-service'; - -//////////////////////////////////////////////////////////////////////////// -// -// Books Object Page -// -annotate CatalogService.Books with @( - UI: { - HeaderInfo: { - Description: {Value: author} - }, - HeaderFacets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Description}', Target: '@UI.FieldGroup#Descr'}, - ], - Facets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Details}', Target: '@UI.FieldGroup#Price'}, - ], - FieldGroup#Descr: { - Data: [ - {Value: descr}, - ] - }, - FieldGroup#Price: { - Data: [ - {Value: price}, - {Value: currency.symbol, Label: '{i18n>Currency}'}, - ] - }, - } -); - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Object Page -// -annotate CatalogService.Books with @( - UI: { - SelectionFields: [ ID, price, currency_code ], - LineItem: [ - {Value: title}, - {Value: author, Label:'{i18n>Author}'}, - {Value: price}, - {Value: currency.symbol, Label:' '}, - ] - }, -); diff --git a/packages/bookshop/app/browse/webapp/Component.js b/packages/bookshop/app/browse/webapp/Component.js deleted file mode 100644 index e46ce759..00000000 --- a/packages/bookshop/app/browse/webapp/Component.js +++ /dev/null @@ -1,22 +0,0 @@ -sap.ui.define(["sap/fe/AppComponent"], ac => ac.extend("bookshop.Component", { - metadata:{ manifest:'json' } -})) - -// sap.ui.define (["sap/ui/core/UIComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) -// sap.ui.define (["sap/ui/generic/app/AppComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) - -// jQuery.sap.declare("bookshop.Component"); -// sap.ui.getCore().loadLibrary("sap.ui.generic.app"); -// jQuery.sap.require("sap.ui.generic.app.AppComponent"); - -// sap.ui.generic.app.AppComponent.extend("bookshop.Component", { -// metadata: { -// manifest: "json" -// } -// }); - -/* eslint no-undef:0 */ \ No newline at end of file diff --git a/packages/bookshop/app/browse/webapp/i18n/i18n.properties b/packages/bookshop/app/browse/webapp/i18n/i18n.properties deleted file mode 100644 index 28b03dff..00000000 --- a/packages/bookshop/app/browse/webapp/i18n/i18n.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This is the resource bundle of itelo -# __ldi.translation.uuid=c3431418-9caf-11e8-98d0-529269fb1459 - -# JCI app descriptor contains lower case TITLE -appTitle=Bookshop Sample - -# JCI app descriptor contains lower case DESCRIPTION -appSubTitle=CAP Sample Application - -# JCI app descriptor contains lower case DESCRIPTION -appDescription=CDS Sample Service diff --git a/packages/bookshop/app/browse/webapp/manifest.json b/packages/bookshop/app/browse/webapp/manifest.json deleted file mode 100644 index 4212312e..00000000 --- a/packages/bookshop/app/browse/webapp/manifest.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_version": "1.8.0", - "sap.app": { - "id": "bookshop", - "type": "application", - "title": "Browse Books", - "description": "Sample Application", - "i18n": "i18n/i18n.properties", - "dataSources": { - "CatalogService": { - "uri": "/browse/", - "type": "OData", - "settings": { - "odataVersion": "4.0" - } - } - }, - "-sourceTemplate": { - "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", - "-version": "1.40.12" - } - }, - "sap.ui5": { - "dependencies": { - "libs": { - "sap.fe": {} - } - }, - "models": { - "i18n": { - "type": "sap.ui.model.resource.ResourceModel", - "uri": "i18n/i18n.properties" - }, - "": { - "dataSource": "CatalogService", - "settings": { - "synchronizationMode": "None", - "operationMode": "Server", - "autoExpandSelect": true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } - } - } - }, - "routing": { - "routes": [ - { - "pattern": ":?query:", - "name": "BooksList", - "target": "BooksList" - }, - { - "pattern": "Books({key}):?query:", - "name": "BooksDetails", - "target": "BooksDetails" - } - ], - "targets": { - "BooksList": { - "type": "Component", - "id": "BooksList", - "name": "sap.fe.templates.ListReport", - "options": { - "settings": { - "entitySet": "Books", - "navigation": { - "Books": { - "detail": { - "route": "BooksDetails" - } - } - } - } - } - }, - "BooksDetails": { - "type": "Component", - "id": "BooksDetailsList", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings": { - "entitySet": "Books" - } - } - } - } - }, - "contentDensities": { - "compact": true, - "cozy": true - } - }, - "sap.ui": { - "technology": "UI5", - "fullWidth": false - }, - "sap.fiori": { - "registrationIds": [], - "archeType": "transactional" - } -} diff --git a/packages/bookshop/app/common.cds b/packages/bookshop/app/common.cds deleted file mode 100644 index 309daaf5..00000000 --- a/packages/bookshop/app/common.cds +++ /dev/null @@ -1,74 +0,0 @@ -/* - Common Annotations shared by all apps -*/ - -using { sap.capire.bookshop as my } from '../db/schema'; - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Lists -// -annotate my.Books with @( - UI: { - Identification: [{Value:title}], - SelectionFields: [ ID, author_ID, price, currency_code ], - LineItem: [ - {Value: ID}, - {Value: title}, - {Value: author.name, Label:'{i18n>Author}'}, - {Value: stock}, - {Value: price}, - {Value: currency.symbol, Label:' '}, - ] - } -) { - author @ValueList.entity:'Authors'; -}; - -annotate my.Authors with @( - UI: { - Identification: [{Value:name}], - } -); - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Details -// -annotate my.Books with @( - UI: { - HeaderInfo: { - TypeName: '{i18n>Book}', - TypeNamePlural: '{i18n>Books}', - Title: {Value: title}, - Description: {Value: author.name} - }, - } -); - - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Elements -// -annotate my.Books with { - ID @title:'{i18n>ID}' @UI.HiddenFilter; - title @title:'{i18n>Title}'; - author @title:'{i18n>AuthorID}'; - price @title:'{i18n>Price}'; - stock @title:'{i18n>Stock}'; - descr @UI.MultiLineText; -} - - -//////////////////////////////////////////////////////////////////////////// -// -// Authors Elements -// -annotate my.Authors with { - ID @title:'{i18n>ID}' @UI.HiddenFilter; - name @title:'{i18n>AuthorName}'; -} diff --git a/packages/bookshop/app/fiori.html b/packages/bookshop/app/fiori.html deleted file mode 100644 index 2fc2a0d4..00000000 --- a/packages/bookshop/app/fiori.html +++ /dev/null @@ -1,55 +0,0 @@ - - -
- - - - -