diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..d1e3cda --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "semi": true, + "singleQuote": true, + "arrowParens": "always", + "tabWidth": 4, + "trailingComma": "none", + "printWidth": 120, + "useTabs": false +} diff --git a/_i18n/messages.properties b/_i18n/messages.properties index 37ffeec..d8ec0f7 100644 --- a/_i18n/messages.properties +++ b/_i18n/messages.properties @@ -1,13 +1,9 @@ -errPort=is not a valid HTTP port value -lagError=Event Loop Lag Exceeded: {0} milliseconds -errFileType=Invalid file type. Only jpg, png and gif image files are allowed. -errFileTooLarge=Uploaded file is too large. Please choose a file less than 20MB in size -appTitle=SAP Community Profile Picture Editor -appDescription=SAP Community Profile Picture Editor / Enhancer -Toolbar1=Choose Selfie Template -Toolbar2=Choose Your Picture and Upload -Toolbar3=Edit and Download Final Image -Upload=Enhance Your Picture -placeholder=Choose File for Upload... -gui.loading=Processing Picture -gui.loadingLong=Please wait ...Processing Picture \ No newline at end of file +# Express API +lag.Error = Event Loop Lag Exceeded: {0} milliseconds +error.Port = is not a valid HTTP port value +error.FileType = Invalid file type. Only jpg, png and gif image files are allowed. +error.FileTooLarge = Uploaded file is too large. Please choose a file less than 20MB in size + +# UI5 App and Fiori Launchpad Sandbox +app.Title = SAP Community Profile Picture Editor +app.Description = SAP Community Profile Picture Editor / Enhancer \ No newline at end of file diff --git a/_i18n/messages_de.properties b/_i18n/messages_de.properties new file mode 100644 index 0000000..4e0fda0 --- /dev/null +++ b/_i18n/messages_de.properties @@ -0,0 +1,9 @@ +# Express API +lag.Error = Verzögerung der Ereignisschleife überschritten: {0} Millisekunden +error.Port = ist kein gültiger HTTP-Port-Wert +error.FileType = Ungültiger Dateityp. Es sind nur jpg-, png- und gif-Bilddateien zulässig. +error.FileTooLarge = Die hochgeladene Datei ist zu groß. Bitte wählen Sie eine Datei mit einer Größe von weniger als 20 MB + +# UI5 App and Fiori Launchpad Sandbox +app.Title = SAP Community Profilbild Editor +app.Description = SAP Community Profilbild Editor / Enhancer \ No newline at end of file diff --git a/app/appconfig/fioriSandboxConfig.json b/app/appconfig/fioriSandboxConfig.json index 9b10bc6..a9e2c53 100644 --- a/app/appconfig/fioriSandboxConfig.json +++ b/app/appconfig/fioriSandboxConfig.json @@ -27,10 +27,10 @@ "profilepic-ui": { "title": "", "description": "", - "additionalInformation": "SAPUI5.Component=sap.profilePic", + "additionalInformation": "SAPUI5.Component=ui5.ts.profile.picture.editor", "applicationType": "URL", - "url": "./profilePic", + "url": "./webapp", "navigationMode": "embedded" } } -} \ No newline at end of file +} diff --git a/app/profilePic/.babelrc.json b/app/profilePic/.babelrc.json new file mode 100644 index 0000000..d63f8a4 --- /dev/null +++ b/app/profilePic/.babelrc.json @@ -0,0 +1,10 @@ + +{ + "ignore": [ + "**/*.d.ts" + ], + "presets": [ + "transform-ui5", + "@babel/preset-typescript" + ] +} \ No newline at end of file diff --git a/app/profilePic/.eslintrc.json b/app/profilePic/.eslintrc.json new file mode 100644 index 0000000..f358ffe --- /dev/null +++ b/app/profilePic/.eslintrc.json @@ -0,0 +1,19 @@ +{ + "env": { + "browser": true, + "es6": true, + "node": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", + "prettier" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": ["./app/profilePic/tsconfig.json"], + "sourceType": "module" + }, + "plugins": ["@typescript-eslint"] +} diff --git a/app/profilePic/.gitignore b/app/profilePic/.gitignore new file mode 100644 index 0000000..50f7228 --- /dev/null +++ b/app/profilePic/.gitignore @@ -0,0 +1,19 @@ +# build results +webapp +dist + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Dependency directories +node_modules/ + +.DS_Store + +# do not add dependency lock files to this repo because it should remain independent from specific dependency managers +package-lock.json +yarn.lock \ No newline at end of file diff --git a/app/profilePic/.prettierrc b/app/profilePic/.prettierrc new file mode 100644 index 0000000..d1e3cda --- /dev/null +++ b/app/profilePic/.prettierrc @@ -0,0 +1,9 @@ +{ + "semi": true, + "singleQuote": true, + "arrowParens": "always", + "tabWidth": 4, + "trailingComma": "none", + "printWidth": 120, + "useTabs": false +} diff --git a/app/profilePic/index.html b/app/profilePic/index.html index 9209dc3..213bddb 100644 --- a/app/profilePic/index.html +++ b/app/profilePic/index.html @@ -1,38 +1,56 @@ +
+ + + - + + + - - - - + + +