diff --git a/.gitignore b/.gitignore index 0711527..feaf066 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,16 @@ testem.log # System files .DS_Store Thumbs.db + + +# Builds + +www + +.android +android + + +# Angular Cache + +.angular \ No newline at end of file diff --git a/README.md b/README.md index d015a8c..c9cda12 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,8 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To u ## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. + + +##build + +npx ionic serve --no-open --consolelogs --port 4200 \ No newline at end of file diff --git a/angular.json b/angular.json index 93a44ce..d152be2 100644 --- a/angular.json +++ b/angular.json @@ -3,7 +3,7 @@ "version": 1, "newProjectRoot": "projects", "projects": { - "MedTempo-Monolithic": { + "app": { "projectType": "application", "schematics": { "@schematics/angular:component": { @@ -17,7 +17,7 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "outputPath": "dist/med-tempo-monolithic", + "outputPath": "www/", "index": "src/index.html", "main": "src/main.ts", "polyfills": [ @@ -103,10 +103,10 @@ "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "MedTempo-Monolithic:build:production" + "browserTarget": "app:build:production" }, "development": { - "browserTarget": "MedTempo-Monolithic:build:development" + "browserTarget": "app:build:development" } }, "defaultConfiguration": "development" @@ -114,7 +114,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "MedTempo-Monolithic:build" + "browserTarget": "app:build" } }, "test": { @@ -144,24 +144,24 @@ "ionic-cordova-serve": { "builder": "@ionic/angular-toolkit:cordova-serve", "options": { - "cordovaBuildTarget": "MedTempo-Monolithic:ionic-cordova-build", - "devServerTarget": "MedTempo-Monolithic:serve" + "cordovaBuildTarget": "app:ionic-cordova-build", + "devServerTarget": "app:serve" }, "configurations": { "production": { - "cordovaBuildTarget": "MedTempo-Monolithic:ionic-cordova-build:production", - "devServerTarget": "MedTempo-Monolithic:serve:production" + "cordovaBuildTarget": "app:ionic-cordova-build:production", + "devServerTarget": "app:serve:production" } } }, "ionic-cordova-build": { "builder": "@ionic/angular-toolkit:cordova-build", "options": { - "browserTarget": "MedTempo-Monolithic:build" + "browserTarget": "app:build" }, "configurations": { "production": { - "browserTarget": "MedTempo-Monolithic:build:production" + "browserTarget": "app:build:production" } } } diff --git a/angular_beckup.json b/angular_beckup.json new file mode 100644 index 0000000..93a44ce --- /dev/null +++ b/angular_beckup.json @@ -0,0 +1,171 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "MedTempo-Monolithic": { + "projectType": "application", + "schematics": { + "@schematics/angular:component": { + "style": "scss" + } + }, + "root": "", + "sourceRoot": "src", + "prefix": "app", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/med-tempo-monolithic", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js" + ], + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", + "assets": [ + "src/favicon.ico", + "src/assets", + { + "glob": "**/*.svg", + "input": "node_modules/ionicons/dist/ionicons/svg", + "output": "./svg" + } + ], + "styles": [ + "src/styles.scss", + { + "input": "node_modules/@ionic/angular/css/core.css" + }, + { + "input": "node_modules/@ionic/angular/css/normalize.css" + }, + { + "input": "node_modules/@ionic/angular/css/structure.css" + }, + { + "input": "node_modules/@ionic/angular/css/typography.css" + }, + { + "input": "node_modules/@ionic/angular/css/display.css" + }, + { + "input": "node_modules/@ionic/angular/css/padding.css" + }, + { + "input": "node_modules/@ionic/angular/css/float-elements.css" + }, + { + "input": "node_modules/@ionic/angular/css/text-alignment.css" + }, + { + "input": "node_modules/@ionic/angular/css/text-transformation.css" + }, + { + "input": "node_modules/@ionic/angular/css/flex-utils.css" + }, + { + "input": "src/theme/variables.css" + } + ], + "scripts": [] + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "outputHashing": "all" + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "browserTarget": "MedTempo-Monolithic:build:production" + }, + "development": { + "browserTarget": "MedTempo-Monolithic:build:development" + } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "MedTempo-Monolithic:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "polyfills": [ + "zone.js", + "zone.js/testing" + ], + "tsConfig": "tsconfig.spec.json", + "inlineStyleLanguage": "scss", + "assets": [ + "src/favicon.ico", + "src/assets", + { + "glob": "**/*.svg", + "input": "node_modules/ionicons/dist/ionicons/svg", + "output": "./svg" + } + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + } + }, + "ionic-cordova-serve": { + "builder": "@ionic/angular-toolkit:cordova-serve", + "options": { + "cordovaBuildTarget": "MedTempo-Monolithic:ionic-cordova-build", + "devServerTarget": "MedTempo-Monolithic:serve" + }, + "configurations": { + "production": { + "cordovaBuildTarget": "MedTempo-Monolithic:ionic-cordova-build:production", + "devServerTarget": "MedTempo-Monolithic:serve:production" + } + } + }, + "ionic-cordova-build": { + "builder": "@ionic/angular-toolkit:cordova-build", + "options": { + "browserTarget": "MedTempo-Monolithic:build" + }, + "configurations": { + "production": { + "browserTarget": "MedTempo-Monolithic:build:production" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/capacitor.config.ts b/capacitor.config.ts new file mode 100644 index 0000000..567eb1f --- /dev/null +++ b/capacitor.config.ts @@ -0,0 +1,12 @@ +import { CapacitorConfig } from '@capacitor/cli'; + +const config: CapacitorConfig = { + appId: 'io.ionic.starter', + appName: 'med-tempo-monolithic', + webDir: 'www', + server: { + androidScheme: 'https' + } +}; + +export default config; diff --git a/ionic.config.json b/ionic.config.json new file mode 100644 index 0000000..91480de --- /dev/null +++ b/ionic.config.json @@ -0,0 +1,7 @@ +{ + "name": "med-tempo-monolithic", + "integrations": { + "capacitor": {} + }, + "type": "angular" +} diff --git a/package-lock.json b/package-lock.json index 618f564..56c9547 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,12 @@ "@angular/platform-browser": "^16.1.0", "@angular/platform-browser-dynamic": "^16.1.0", "@angular/router": "^16.1.0", + "@capacitor/android": "5.1.1", + "@capacitor/app": "5.0.5", + "@capacitor/core": "5.1.1", + "@capacitor/haptics": "5.0.5", + "@capacitor/keyboard": "5.0.5", + "@capacitor/status-bar": "5.0.5", "@ionic/angular": "^7.1.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", @@ -25,6 +31,7 @@ "@angular-devkit/build-angular": "^16.1.3", "@angular/cli": "~16.1.3", "@angular/compiler-cli": "^16.1.0", + "@capacitor/cli": "5.1.1", "@ionic/angular-toolkit": "latest", "@types/jasmine": "~4.3.0", "jasmine-core": "~4.6.0", @@ -2219,6 +2226,155 @@ "node": ">=6.9.0" } }, + "node_modules/@capacitor/android": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-5.1.1.tgz", + "integrity": "sha512-FaDg+Igjiz6ohH7yu5TpLHGCQbsjMMy+0a+idsyadTnz/IzRZwqlCyj4Jbqsb5J39j0hE8kqD3o1e5O5Ukbm2g==", + "peerDependencies": { + "@capacitor/core": "^5.1.0" + } + }, + "node_modules/@capacitor/app": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@capacitor/app/-/app-5.0.5.tgz", + "integrity": "sha512-CedAa0aSQu8yNWqgZXWQfcjIg6uzPNdJQPW5CTyT6dA/U7KuJ10YVA6MhoryCUVthnMJqVj9lYqqxyFsSXjzqw==", + "peerDependencies": { + "@capacitor/core": "^5.0.0" + } + }, + "node_modules/@capacitor/cli": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-5.1.1.tgz", + "integrity": "sha512-q9yg4P+UsmEpNNTza040gxHtN7MvbHCaow2hi/podQ37sPxzpycg179tyYDjss07N02Qe3M/ReO42TgjAy27DQ==", + "dev": true, + "dependencies": { + "@ionic/cli-framework-output": "^2.2.5", + "@ionic/utils-fs": "^3.1.6", + "@ionic/utils-subprocess": "^2.1.11", + "@ionic/utils-terminal": "^2.3.3", + "commander": "^9.3.0", + "debug": "^4.3.4", + "env-paths": "^2.2.0", + "kleur": "^4.1.4", + "native-run": "^1.7.2", + "open": "^8.4.0", + "plist": "^3.0.5", + "prompts": "^2.4.2", + "rimraf": "^4.4.1", + "semver": "^7.3.7", + "tar": "^6.1.11", + "tslib": "^2.4.0", + "xml2js": "^0.5.0" + }, + "bin": { + "cap": "bin/capacitor", + "capacitor": "bin/capacitor" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@capacitor/cli/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/@capacitor/cli/node_modules/glob": { + "version": "9.3.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz", + "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "minimatch": "^8.0.2", + "minipass": "^4.2.4", + "path-scurry": "^1.6.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@capacitor/cli/node_modules/minimatch": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz", + "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@capacitor/cli/node_modules/minipass": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", + "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@capacitor/cli/node_modules/rimraf": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz", + "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==", + "dev": true, + "dependencies": { + "glob": "^9.2.0" + }, + "bin": { + "rimraf": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@capacitor/core": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-5.1.1.tgz", + "integrity": "sha512-17rZMGpZYQgBAmUS1uAS1GrRkPAQiUfpTfvd2wWS9z87GoTL/5vtpPAtI0/XLtr4eve2TsATY2r8BaW2NfEO6Q==", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@capacitor/haptics": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@capacitor/haptics/-/haptics-5.0.5.tgz", + "integrity": "sha512-iDgmCehrdc0Sdob/y3KjAX0sll/y9PTP6hJubwTpIpRt3kOKGDhMMNkUGRKm6myTIRPpa2Mm8jWCSYaA4pPq4g==", + "peerDependencies": { + "@capacitor/core": "^5.0.0" + } + }, + "node_modules/@capacitor/keyboard": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@capacitor/keyboard/-/keyboard-5.0.5.tgz", + "integrity": "sha512-pB2o15C8Cz3QqDcToU4H0B/i+LLXYPQVtShukywMlVEJZ6UUy+KSK8XCg/YPDZBY9E0lSprHw4+NBqH0HTYRKQ==", + "peerDependencies": { + "@capacitor/core": "^5.0.0" + } + }, + "node_modules/@capacitor/status-bar": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@capacitor/status-bar/-/status-bar-5.0.5.tgz", + "integrity": "sha512-8ykkIbndeAaATrAYcr4CLSplTeR6CU15h8trXV3DgLXlFQAC6E/WJnoMy1QL61n5rHh725nixqwCTepcgGx/rw==", + "peerDependencies": { + "@capacitor/core": "^5.0.0" + } + }, "node_modules/@colors/colors": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", @@ -2618,6 +2774,20 @@ "@schematics/angular": "^16.0.0" } }, + "node_modules/@ionic/cli-framework-output": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.6.tgz", + "integrity": "sha512-YLPRwnk5Lw0XQ9pKWG+p2KoR5HjMBigZ6yv+/XtL3TGOnCS1+oAz56ABbAORCjTWhSJQisr8APNFiELAecY6QA==", + "dev": true, + "dependencies": { + "@ionic/utils-terminal": "2.3.4", + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@ionic/core": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/@ionic/core/-/core-7.1.2.tgz", @@ -2648,6 +2818,164 @@ "npm": ">=6.0.0" } }, + "node_modules/@ionic/utils-array": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-array/-/utils-array-2.1.6.tgz", + "integrity": "sha512-0JZ1Zkp3wURnv8oq6Qt7fMPo5MpjbLoUoa9Bu2Q4PJuSDWM8H8gwF3dQO7VTeUj3/0o1IB1wGkFWZZYgUXZMUg==", + "dev": true, + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-fs": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.7.tgz", + "integrity": "sha512-2EknRvMVfhnyhL1VhFkSLa5gOcycK91VnjfrTB0kbqkTFCOXyXgVLI5whzq7SLrgD9t1aqos3lMMQyVzaQ5gVA==", + "dev": true, + "dependencies": { + "@types/fs-extra": "^8.0.0", + "debug": "^4.0.0", + "fs-extra": "^9.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-fs/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@ionic/utils-fs/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@ionic/utils-fs/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@ionic/utils-object": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-object/-/utils-object-2.1.6.tgz", + "integrity": "sha512-vCl7sl6JjBHFw99CuAqHljYJpcE88YaH2ZW4ELiC/Zwxl5tiwn4kbdP/gxi2OT3MQb1vOtgAmSNRtusvgxI8ww==", + "dev": true, + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-process": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/@ionic/utils-process/-/utils-process-2.1.11.tgz", + "integrity": "sha512-Uavxn+x8j3rDlZEk1X7YnaN6wCgbCwYQOeIjv/m94i1dzslqWhqIHEqxEyeE8HsT5Negboagg7GtQiABy+BLbA==", + "dev": true, + "dependencies": { + "@ionic/utils-object": "2.1.6", + "@ionic/utils-terminal": "2.3.4", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "tree-kill": "^1.2.2", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-process/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/@ionic/utils-stream": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-stream/-/utils-stream-3.1.6.tgz", + "integrity": "sha512-4+Kitey1lTA1yGtnigeYNhV/0tggI3lWBMjC7tBs1K9GXa/q7q4CtOISppdh8QgtOhrhAXS2Igp8rbko/Cj+lA==", + "dev": true, + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-subprocess": { + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@ionic/utils-subprocess/-/utils-subprocess-2.1.12.tgz", + "integrity": "sha512-N05Y+dIXBHofKWJTheCMzVqmgY9wFmZcRv/LdNnfXaaA/mxLTyGxQYeig8fvQXTtDafb/siZXcrTkmQ+y6n3Yg==", + "dev": true, + "dependencies": { + "@ionic/utils-array": "2.1.6", + "@ionic/utils-fs": "3.1.7", + "@ionic/utils-process": "2.1.11", + "@ionic/utils-stream": "3.1.6", + "@ionic/utils-terminal": "2.3.4", + "cross-spawn": "^7.0.3", + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-terminal": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.4.tgz", + "integrity": "sha512-cEiMFl3jklE0sW60r8JHH3ijFTwh/jkdEKWbylSyExQwZ8pPuwoXz7gpkWoJRLuoRHHSvg+wzNYyPJazIHfoJA==", + "dev": true, + "dependencies": { + "@types/slice-ansi": "^4.0.0", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "slice-ansi": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "tslib": "^2.0.1", + "untildify": "^4.0.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-terminal/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -3237,6 +3565,15 @@ "@types/send": "*" } }, + "node_modules/@types/fs-extra": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.2.tgz", + "integrity": "sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/http-errors": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.1.tgz", @@ -3324,6 +3661,12 @@ "@types/node": "*" } }, + "node_modules/@types/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==", + "dev": true + }, "node_modules/@types/sockjs": { "version": "0.3.33", "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", @@ -3500,6 +3843,15 @@ "@xtuc/long": "4.2.2" } }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.8.tgz", + "integrity": "sha512-0LNz4EY8B/8xXY86wMrQ4tz6zEHZv9ehFMJPm8u2gq5lQ71cfRKdaKyxfJAx5aUoyzx0qzgURblTisPGgz3d+Q==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", @@ -3779,6 +4131,24 @@ "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", "dev": true }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/autoprefixer": { "version": "10.4.14", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", @@ -3925,6 +4295,15 @@ "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", "dev": true }, + "node_modules/big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, "node_modules/big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", @@ -4011,6 +4390,18 @@ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", "dev": true }, + "node_modules/bplist-parser": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz", + "integrity": "sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==", + "dev": true, + "dependencies": { + "big-integer": "1.6.x" + }, + "engines": { + "node": ">= 5.10.0" + } + }, "node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -4088,6 +4479,15 @@ "ieee754": "^1.1.13" } }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -5032,6 +5432,24 @@ "integrity": "sha512-pmf1rbAStw8UEQ0sr2cdJtWl48ZMuPD9Sto8HVQOq9vx9j2WgDEN6lYoaqFvqEHYOmGA9oRGn7LqWI9ta0YugQ==", "dev": true }, + "node_modules/elementtree": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/elementtree/-/elementtree-0.1.7.tgz", + "integrity": "sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==", + "dev": true, + "dependencies": { + "sax": "1.1.4" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/elementtree/node_modules/sax": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz", + "integrity": "sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==", + "dev": true + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -5593,6 +6011,15 @@ "node": ">=0.8.0" } }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "dependencies": { + "pend": "~1.2.0" + } + }, "node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", @@ -7277,6 +7704,15 @@ "node": ">=0.10.0" } }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/klona": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", @@ -8060,6 +8496,40 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/native-run": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/native-run/-/native-run-1.7.2.tgz", + "integrity": "sha512-2aahC8iXIO8BcvEukVMrYwL5sXurkuIGyQgfSGBto832W6ejV+cB5Ww+2/CRxmyozhbxARJ2OMpEGPV8sTqsrQ==", + "dev": true, + "dependencies": { + "@ionic/utils-fs": "^3.1.6", + "@ionic/utils-terminal": "^2.3.3", + "bplist-parser": "^0.3.2", + "debug": "^4.3.4", + "elementtree": "^0.1.7", + "ini": "^3.0.1", + "plist": "^3.0.6", + "split2": "^4.1.0", + "through2": "^4.0.2", + "tslib": "^2.4.0", + "yauzl": "^2.10.0" + }, + "bin": { + "native-run": "bin/native-run" + }, + "engines": { + "node": ">=12.13.0" + } + }, + "node_modules/native-run/node_modules/ini": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", + "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", + "dev": true, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/needle": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/needle/-/needle-3.2.0.tgz", @@ -8870,6 +9340,12 @@ "node": ">=8" } }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -8924,6 +9400,20 @@ "node": ">=8" } }, + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", + "dev": true, + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, "node_modules/postcss": { "version": "8.4.24", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", @@ -9099,6 +9589,28 @@ "node": ">=10" } }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prompts/node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -9700,8 +10212,7 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, - "optional": true + "dev": true }, "node_modules/schema-utils": { "version": "4.2.0", @@ -10029,6 +10540,12 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, "node_modules/slash": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", @@ -10041,6 +10558,56 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", @@ -10262,6 +10829,15 @@ "wbuf": "^1.7.3" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "dev": true, + "engines": { + "node": ">= 10.x" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -10645,6 +11221,15 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, + "node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", + "dev": true, + "dependencies": { + "readable-stream": "3" + } + }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -10866,6 +11451,15 @@ "node": ">= 0.8" } }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", @@ -11499,6 +12093,37 @@ } } }, + "node_modules/xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "dev": true, + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xml2js/node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true, + "engines": { + "node": ">=8.0" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -11541,6 +12166,16 @@ "node": ">=12" } }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "node_modules/zone.js": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.13.1.tgz", diff --git a/package.json b/package.json index 9208359..f01de92 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,12 @@ "@angular/platform-browser": "^16.1.0", "@angular/platform-browser-dynamic": "^16.1.0", "@angular/router": "^16.1.0", + "@capacitor/android": "5.1.1", + "@capacitor/app": "5.0.5", + "@capacitor/core": "5.1.1", + "@capacitor/haptics": "5.0.5", + "@capacitor/keyboard": "5.0.5", + "@capacitor/status-bar": "5.0.5", "@ionic/angular": "^7.1.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", @@ -28,6 +34,8 @@ "@angular-devkit/build-angular": "^16.1.3", "@angular/cli": "~16.1.3", "@angular/compiler-cli": "^16.1.0", + "@capacitor/cli": "5.1.1", + "@ionic/angular-toolkit": "latest", "@types/jasmine": "~4.3.0", "jasmine-core": "~4.6.0", "karma": "~6.4.0", @@ -35,7 +43,6 @@ "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", - "typescript": "~5.1.3", - "@ionic/angular-toolkit": "latest" + "typescript": "~5.1.3" } -} \ No newline at end of file +} diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index bf91f98..aec1b13 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,7 +1,9 @@ -import { NgModule } from '@angular/core'; +import { isDevMode, NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; +import { isPlatform } from '@ionic/angular'; import { AppModule } from './app.module'; + /* const routes: Routes = [ { @@ -44,6 +46,50 @@ const routes: Routes = [ ]; */ + +const routes: Routes = [ + { + path: ``, + loadChildren: async function () { + + let plataform: boolean = isPlatform(`mobile`) + + console.log(`is mobile ${plataform}`) + + if (plataform === true || isDevMode()){ + let { TabsModule } = await import('./pages/hybrid/tabs/tabs.module'); + + console.log(TabsModule); + + return TabsModule; + } + else{ + let { IndexModule } = await import('./pages/web/index/index.module'); + + console.log(IndexModule); + + return IndexModule; + } + + + }, + }, + { + path: `**`, + loadChildren: + async function () { + let { NotFoundModule } = await import('./pages/web/not-found/not-found.module'); + + console.log(NotFoundModule); + + return NotFoundModule; + }, + pathMatch: `prefix` + }, + { path: 'web', loadChildren: () => import('./pages/web/index/index.module').then(m => m.IndexModule) }, + +]; + @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule], diff --git a/src/app/app.component.html b/src/app/app.component.html index 0680b43..38a88ca 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1 +1,3 @@ - + + + \ No newline at end of file diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 9afc07f..88a5eb9 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -7,4 +7,8 @@ import { Component } from '@angular/core'; }) export class AppComponent { title = 'MedTempo-Monolithic'; + + constructor(){ + + } } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index af27346..3907a8f 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -11,8 +11,8 @@ import { IonicModule } from '@ionic/angular'; ], imports: [ BrowserModule, - AppRoutingModule, - IonicModule.forRoot() + AppRoutingModule, + IonicModule.forRoot(), ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/pages/hybrid/calendar/calendar-routing.module.ts b/src/app/components/calendar/calendar-routing.module.ts similarity index 100% rename from src/app/pages/hybrid/calendar/calendar-routing.module.ts rename to src/app/components/calendar/calendar-routing.module.ts diff --git a/src/app/components/calendar/calendar.component.html b/src/app/components/calendar/calendar.component.html new file mode 100644 index 0000000..4f5f74c --- /dev/null +++ b/src/app/components/calendar/calendar.component.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/app/pages/hybrid/calendar/calendar.component.scss b/src/app/components/calendar/calendar.component.scss similarity index 100% rename from src/app/pages/hybrid/calendar/calendar.component.scss rename to src/app/components/calendar/calendar.component.scss diff --git a/src/app/pages/hybrid/calendar/calendar.component.spec.ts b/src/app/components/calendar/calendar.component.spec.ts similarity index 100% rename from src/app/pages/hybrid/calendar/calendar.component.spec.ts rename to src/app/components/calendar/calendar.component.spec.ts diff --git a/src/app/pages/hybrid/calendar/calendar.component.ts b/src/app/components/calendar/calendar.component.ts similarity index 100% rename from src/app/pages/hybrid/calendar/calendar.component.ts rename to src/app/components/calendar/calendar.component.ts diff --git a/src/app/pages/hybrid/calendar/calendar.module.ts b/src/app/components/calendar/calendar.module.ts similarity index 62% rename from src/app/pages/hybrid/calendar/calendar.module.ts rename to src/app/components/calendar/calendar.module.ts index cb624b0..b0898e4 100644 --- a/src/app/pages/hybrid/calendar/calendar.module.ts +++ b/src/app/components/calendar/calendar.module.ts @@ -4,7 +4,9 @@ import { CommonModule } from '@angular/common'; import { CalendarRoutingModule } from './calendar-routing.module'; import { CalendarComponent } from './calendar.component'; -import { TabsModule } from 'src/app/components/tabs/tabs.module'; +import { TabsModule } from 'src/app/pages/hybrid/tabs/tabs.module'; +import { IonicModule } from '@ionic/angular'; +import { NavbarModule } from '../navbar/navbar.module'; @NgModule({ declarations: [ @@ -13,7 +15,9 @@ import { TabsModule } from 'src/app/components/tabs/tabs.module'; imports: [ CommonModule, CalendarRoutingModule, - TabsModule + TabsModule, + IonicModule, + NavbarModule ] }) export class CalendarModule { } diff --git a/src/app/components/chat/chat-routing.module.ts b/src/app/components/chat/chat-routing.module.ts new file mode 100644 index 0000000..c53701b --- /dev/null +++ b/src/app/components/chat/chat-routing.module.ts @@ -0,0 +1,11 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { ChatComponent } from './chat.component'; + +const routes: Routes = [{ path: '', component: ChatComponent }]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class ChatRoutingModule { } diff --git a/src/app/components/chat/chat.component.html b/src/app/components/chat/chat.component.html new file mode 100644 index 0000000..62e612a --- /dev/null +++ b/src/app/components/chat/chat.component.html @@ -0,0 +1,20 @@ + + + + +

Dúvidas?

+

Entre em contato com o seu médico

+ +
+ Médica + +
+

Catarina Peixoto

+

Hospital Paulista

+

Especialista em otorrinolaringologia

+
+
+ + Entre em contato +
+
\ No newline at end of file diff --git a/src/app/components/tabs/tabs.component.scss b/src/app/components/chat/chat.component.scss similarity index 100% rename from src/app/components/tabs/tabs.component.scss rename to src/app/components/chat/chat.component.scss diff --git a/src/app/components/chat/chat.component.spec.ts b/src/app/components/chat/chat.component.spec.ts new file mode 100644 index 0000000..f540bbe --- /dev/null +++ b/src/app/components/chat/chat.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ChatComponent } from './chat.component'; + +describe('ChatComponent', () => { + let component: ChatComponent; + let fixture: ComponentFixture; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [ChatComponent] + }); + fixture = TestBed.createComponent(ChatComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/chat/chat.component.ts b/src/app/components/chat/chat.component.ts new file mode 100644 index 0000000..7bb56af --- /dev/null +++ b/src/app/components/chat/chat.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-chat', + templateUrl: './chat.component.html', + styleUrls: ['./chat.component.scss'] +}) +export class ChatComponent { + +} diff --git a/src/app/components/chat/chat.module.ts b/src/app/components/chat/chat.module.ts new file mode 100644 index 0000000..815039b --- /dev/null +++ b/src/app/components/chat/chat.module.ts @@ -0,0 +1,24 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { ChatRoutingModule } from './chat-routing.module'; +import { ChatComponent } from './chat.component'; + +import { NavbarModule } from '../navbar/navbar.module'; +import { IonicModule } from '@ionic/angular'; + +@NgModule({ + declarations: [ + ChatComponent + ], + imports: [ + CommonModule, + ChatRoutingModule, + NavbarModule, + IonicModule + ], + exports:[ + ChatComponent + ] +}) +export class ChatModule { } diff --git a/src/app/pages/hybrid/home/home-routing.module.ts b/src/app/components/home/home-routing.module.ts similarity index 100% rename from src/app/pages/hybrid/home/home-routing.module.ts rename to src/app/components/home/home-routing.module.ts diff --git a/src/app/components/home/home.component.html b/src/app/components/home/home.component.html new file mode 100644 index 0000000..7609e78 --- /dev/null +++ b/src/app/components/home/home.component.html @@ -0,0 +1,31 @@ + + + +

BEM VINDO(A)!

+

José Filho da Silva

+

Fique sempre atento(a) aos seus medicamentos

+

AQUI VEM O RELOGIO

+

O REMEDIO deve ser tomado às:

+

21:00hs

+ + + +

Medicamentos do dia

+

(Quarta-feira - 20/06)

+ +
+ + + {{ i }} + {{ med.nome }} + {{ med.horario }} + {{ med.dosagem }} + + + Saiba mais + + +
+ +
+
\ No newline at end of file diff --git a/src/app/pages/hybrid/home/home.component.scss b/src/app/components/home/home.component.scss similarity index 100% rename from src/app/pages/hybrid/home/home.component.scss rename to src/app/components/home/home.component.scss diff --git a/src/app/pages/hybrid/home/home.component.spec.ts b/src/app/components/home/home.component.spec.ts similarity index 100% rename from src/app/pages/hybrid/home/home.component.spec.ts rename to src/app/components/home/home.component.spec.ts diff --git a/src/app/components/home/home.component.ts b/src/app/components/home/home.component.ts new file mode 100644 index 0000000..6234838 --- /dev/null +++ b/src/app/components/home/home.component.ts @@ -0,0 +1,24 @@ +import { Component } from '@angular/core'; + +import type medicamentos from 'src/interfaces/medicamentos'; + +@Component({ + selector: 'app-home', + templateUrl: './home.component.html', + styleUrls: ['./home.component.scss'] +}) +export class HomeComponent { + arr_medicamentos: Array = [ + { + nome: `LOSARTRANA`, + horario: Date(), + dosagem: `1 Comprimido` + }, + { + nome: `ASPIRINA`, + horario: Date(), + dosagem: `1 Comprimido` + } + + ] +} diff --git a/src/app/components/home/home.module.ts b/src/app/components/home/home.module.ts new file mode 100644 index 0000000..de32eba --- /dev/null +++ b/src/app/components/home/home.module.ts @@ -0,0 +1,29 @@ +import { NgModule } from '@angular/core'; +import { CommonModule, NgFor, NgIf } from '@angular/common'; + +import { HomeRoutingModule } from './home-routing.module'; +import { HomeComponent } from './home.component'; + +import { TabsModule } from 'src/app/pages/hybrid/tabs/tabs.module'; +import { NavbarModule } from '../navbar/navbar.module'; +import { IonicModule } from '@ionic/angular'; +import { RouterLink, RouterLinkActive } from '@angular/router'; + + +@NgModule({ + declarations: [ + HomeComponent + ], + imports: [ + CommonModule, + HomeRoutingModule, + TabsModule, + NavbarModule, + IonicModule, + RouterLink, + RouterLinkActive, + NgFor, + NgIf + ] +}) +export class HomeModule { } diff --git a/src/app/components/navbar/navbar-routing.module.ts b/src/app/components/navbar/navbar-routing.module.ts new file mode 100644 index 0000000..98754ed --- /dev/null +++ b/src/app/components/navbar/navbar-routing.module.ts @@ -0,0 +1,11 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { NavbarComponent } from './navbar.component'; + +const routes: Routes = [{ path: '', component: NavbarComponent }]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class NavbarRoutingModule { } diff --git a/src/app/components/navbar/navbar.component.html b/src/app/components/navbar/navbar.component.html new file mode 100644 index 0000000..c5c5128 --- /dev/null +++ b/src/app/components/navbar/navbar.component.html @@ -0,0 +1,35 @@ + + +
+ + + +
+ Menu Lateral + + +
+
+
+ This is the menu content. +
+
+ + + + + +
+ + MedTempo +
+
+
+ +
+ +
\ No newline at end of file diff --git a/src/app/components/navbar/navbar.component.scss b/src/app/components/navbar/navbar.component.scss new file mode 100644 index 0000000..c5306d2 --- /dev/null +++ b/src/app/components/navbar/navbar.component.scss @@ -0,0 +1,56 @@ + + //@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,800;1,700&display=swap'); + .scroll-y{ + background-color: #2D516C; + } + + .cabecalho-menu{ + flex-direction: row; + display:flex; + } + + .menu{ + color: rgb(0, 0, 0); + } + + .titulo-principal{ + color: #2D516C; + font-weight: bold; + font-size: 25px; + margin-top: 5px; + padding: 7px; + + } + + .flex{ + display: flex; + flex-direction: row; + } + + + .img-logo{ + height: 40px; + width: 40px; + margin-top: 10px; + margin-left: 20px; + flex-direction: row; + } + + ion-title{ + display: flex; + flex-direction: row; + } + + ion-menu::part(backdrop) { + background-color: #2D516C; + } + + ion-menu::part(container) { + border-radius: 0 20px 20px 0; + + box-shadow: 4px 0px 16px #2D516C; + } + + button-native{ + background-color: #2D516C; + } \ No newline at end of file diff --git a/src/app/components/navbar/navbar.component.spec.ts b/src/app/components/navbar/navbar.component.spec.ts new file mode 100644 index 0000000..2ad5059 --- /dev/null +++ b/src/app/components/navbar/navbar.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NavbarComponent } from './navbar.component'; + +describe('NavbarComponent', () => { + let component: NavbarComponent; + let fixture: ComponentFixture; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [NavbarComponent] + }); + fixture = TestBed.createComponent(NavbarComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/navbar/navbar.component.ts b/src/app/components/navbar/navbar.component.ts new file mode 100644 index 0000000..ca224b3 --- /dev/null +++ b/src/app/components/navbar/navbar.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'mdt-navbar', + templateUrl: './navbar.component.html', + styleUrls: ['./navbar.component.scss'] +}) +export class NavbarComponent { + +} diff --git a/src/app/components/navbar/navbar.module.ts b/src/app/components/navbar/navbar.module.ts new file mode 100644 index 0000000..35a7af4 --- /dev/null +++ b/src/app/components/navbar/navbar.module.ts @@ -0,0 +1,22 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { NavbarRoutingModule } from './navbar-routing.module'; +import { NavbarComponent } from './navbar.component'; +import { IonicModule } from '@ionic/angular'; + + +@NgModule({ + declarations: [ + NavbarComponent + ], + imports: [ + CommonModule, + NavbarRoutingModule, + IonicModule + ], + exports:[ + NavbarComponent + ] +}) +export class NavbarModule { } diff --git a/src/app/components/perfil/perfil-routing.module.ts b/src/app/components/perfil/perfil-routing.module.ts new file mode 100644 index 0000000..2ffd977 --- /dev/null +++ b/src/app/components/perfil/perfil-routing.module.ts @@ -0,0 +1,11 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { PerfilComponent } from './perfil.component'; + +const routes: Routes = [{ path: '', component: PerfilComponent }]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class PerfilRoutingModule { } diff --git a/src/app/components/perfil/perfil.component.html b/src/app/components/perfil/perfil.component.html new file mode 100644 index 0000000..3210dc6 --- /dev/null +++ b/src/app/components/perfil/perfil.component.html @@ -0,0 +1,35 @@ + + + +
+ José Filho + +
+

José Filho da Silva

+

Sexo: Masculino

+

Idade: 65 anos

+
+
+ + + +

Ficha Médica

+ +

Queixa Principal:

+

O paciente relata uma série de problemas de saúde que o têm afetado significativamente.

+ +

Doenças Crônicas:

+
    +
  • Diabetes mellitus tipo 2: diagnosticado há 10 anos, tratado com medicação oral.
  • +
  • Hipertensão arterial: diagnosticada há 5 anos, em uso de anti-hipertensivos.
  • +
  • Obesidade: IMC de 35, histórico de dificuldades para perda de peso.
  • +
+ +

Medicamentos Principais:

+
    +
  • Metformina: medicamento oral frequentemente prescrito para controle da glicemia.
  • +
  • Inibidores da enzima conversora de angiotensina (IECA): como o enalapril ou o lisinopril.
  • +
  • Orlistat: medicamento que auxilia na perda de peso ao diminuir a absorção de gorduras no intestino.
  • +
+
+
\ No newline at end of file diff --git a/src/app/components/perfil/perfil.component.scss b/src/app/components/perfil/perfil.component.scss new file mode 100644 index 0000000..0d3b30e --- /dev/null +++ b/src/app/components/perfil/perfil.component.scss @@ -0,0 +1,43 @@ +@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@900&display=swap'); + +@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap'); + +h1 { + font-family: 'Roboto', sans-serif; + font-weight: 900; +} + +h2, h3, p { + font-family: 'Roboto', sans-serif; + font-weight: 500; +} + +img { + border-radius: 100%; + max-width: 80px; + max-height: 80px; +} + +ion-content { + padding: 5px; +} + +.inicio { + display: flex; + align-items: center; +} + +.nomeuser { + font-size: 18px; + margin-left: 5px; +} + +.caracteristicas { + font-size: 15px; + margin-left: 5px; +} + +h1 { + color: #2D516C; + font-weight: 600; +} \ No newline at end of file diff --git a/src/app/components/perfil/perfil.component.spec.ts b/src/app/components/perfil/perfil.component.spec.ts new file mode 100644 index 0000000..044a6dc --- /dev/null +++ b/src/app/components/perfil/perfil.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PerfilComponent } from './perfil.component'; + +describe('PerfilComponent', () => { + let component: PerfilComponent; + let fixture: ComponentFixture; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [PerfilComponent] + }); + fixture = TestBed.createComponent(PerfilComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/perfil/perfil.component.ts b/src/app/components/perfil/perfil.component.ts new file mode 100644 index 0000000..213dcba --- /dev/null +++ b/src/app/components/perfil/perfil.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-perfil', + templateUrl: './perfil.component.html', + styleUrls: ['./perfil.component.scss'] +}) +export class PerfilComponent { + +} diff --git a/src/app/components/perfil/perfil.module.ts b/src/app/components/perfil/perfil.module.ts new file mode 100644 index 0000000..ac77d16 --- /dev/null +++ b/src/app/components/perfil/perfil.module.ts @@ -0,0 +1,24 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { PerfilRoutingModule } from './perfil-routing.module'; +import { PerfilComponent } from './perfil.component'; +import { NavbarModule } from '../navbar/navbar.module'; +import { IonicModule } from '@ionic/angular'; + + +@NgModule({ + declarations: [ + PerfilComponent + ], + imports: [ + CommonModule, + PerfilRoutingModule, + NavbarModule, + IonicModule, + ], + exports: [ + PerfilComponent + ] +}) +export class PerfilModule { } diff --git a/src/app/components/single-tab/single-tab.component.html b/src/app/components/single-tab/single-tab.component.html index 272d52e..0a6c486 100644 --- a/src/app/components/single-tab/single-tab.component.html +++ b/src/app/components/single-tab/single-tab.component.html @@ -1,4 +1,4 @@ - {{ title }} + {{ title }} diff --git a/src/app/components/single-tab/single-tab.component.ts b/src/app/components/single-tab/single-tab.component.ts index 57bf9f6..1d14f82 100644 --- a/src/app/components/single-tab/single-tab.component.ts +++ b/src/app/components/single-tab/single-tab.component.ts @@ -9,7 +9,7 @@ export class SingleTabComponent { @Input() title: string = `` @Input() nome: string = `` @Input() icon: string = `` - @Input() color: string = `dark` + @Input() color: string = `light` constructor(){ console.log(this.nome) diff --git a/src/app/components/tabs/tabs-routing.module.ts b/src/app/components/tabs/tabs-routing.module.ts deleted file mode 100644 index 16f5c12..0000000 --- a/src/app/components/tabs/tabs-routing.module.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { TabsComponent } from './tabs.component'; - -const routes: Routes = [ - { - path: '', - component: TabsComponent, - }, - { - path: `calendar`, - redirectTo: `/calendar`, - }, - { - path: `home`, - redirectTo: `/home`, - }, - { - path: `chat`, - redirectTo: `any`, - }, -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule], -}) -export class TabsRoutingModule {} diff --git a/src/app/pages/hybrid/calendar/calendar.component.html b/src/app/pages/hybrid/calendar/calendar.component.html deleted file mode 100644 index 3956951..0000000 --- a/src/app/pages/hybrid/calendar/calendar.component.html +++ /dev/null @@ -1,2 +0,0 @@ -

calendar works!

- \ No newline at end of file diff --git a/src/app/pages/hybrid/home/home.component.html b/src/app/pages/hybrid/home/home.component.html deleted file mode 100644 index 88c1e60..0000000 --- a/src/app/pages/hybrid/home/home.component.html +++ /dev/null @@ -1,2 +0,0 @@ -

home works!

- \ No newline at end of file diff --git a/src/app/pages/hybrid/home/home.component.ts b/src/app/pages/hybrid/home/home.component.ts deleted file mode 100644 index 820d900..0000000 --- a/src/app/pages/hybrid/home/home.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-home', - templateUrl: './home.component.html', - styleUrls: ['./home.component.scss'] -}) -export class HomeComponent { - -} diff --git a/src/app/pages/hybrid/home/home.module.ts b/src/app/pages/hybrid/home/home.module.ts deleted file mode 100644 index bb66c03..0000000 --- a/src/app/pages/hybrid/home/home.module.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; - -import { HomeRoutingModule } from './home-routing.module'; -import { HomeComponent } from './home.component'; - -import { TabsModule } from 'src/app/components/tabs/tabs.module'; - -@NgModule({ - declarations: [ - HomeComponent - ], - imports: [ - CommonModule, - HomeRoutingModule, - TabsModule - ] -}) -export class HomeModule { } diff --git a/src/app/pages/hybrid/tabs/tabs-routing.module.ts b/src/app/pages/hybrid/tabs/tabs-routing.module.ts new file mode 100644 index 0000000..f976612 --- /dev/null +++ b/src/app/pages/hybrid/tabs/tabs-routing.module.ts @@ -0,0 +1,73 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { TabsComponent } from './tabs.component'; + +const routes: Routes = [ + { + path: '', + component: TabsComponent, + children: [ + { + path: ``, + redirectTo: `home`, + pathMatch: 'full', + }, + { + path: `home`, + loadChildren: async function () { + let { HomeModule } = await import( + '../../../components/home/home.module' + ); + + console.log(HomeModule); + + return HomeModule; + }, + }, + { + path: `calendar`, + loadChildren: async function () { + let { CalendarModule } = await import( + '../../../components/calendar/calendar.module' + ); + + console.log(CalendarModule); + + return CalendarModule; + }, + }, + { + path: `chat`, + loadChildren: async function () { + let { ChatModule } = await import( + '../../../components/chat/chat.module' + ); + + console.log(ChatModule); + + return ChatModule; + }, + + }, + { + path: `perfil`, + loadChildren: async function () { + let { PerfilModule } = await import( + '../../../components/perfil/perfil.module' + ); + + console.log(PerfilModule); + + return PerfilModule; + }, + }, + + ], + }, +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class TabsRoutingModule {} diff --git a/src/app/components/tabs/tabs.component.html b/src/app/pages/hybrid/tabs/tabs.component.html similarity index 93% rename from src/app/components/tabs/tabs.component.html rename to src/app/pages/hybrid/tabs/tabs.component.html index 6e7c0f7..efaff54 100644 --- a/src/app/components/tabs/tabs.component.html +++ b/src/app/pages/hybrid/tabs/tabs.component.html @@ -1,3 +1,5 @@ +
+






tabs works!

diff --git a/src/app/pages/hybrid/tabs/tabs.component.scss b/src/app/pages/hybrid/tabs/tabs.component.scss new file mode 100644 index 0000000..b1eb266 --- /dev/null +++ b/src/app/pages/hybrid/tabs/tabs.component.scss @@ -0,0 +1,8 @@ +ion-tab-bar , ion-tab-button{ + background-color: #2D516C; + } + + .tab{ + background-color: #2D516C; + color: #ffffff; + } \ No newline at end of file diff --git a/src/app/components/tabs/tabs.component.spec.ts b/src/app/pages/hybrid/tabs/tabs.component.spec.ts similarity index 100% rename from src/app/components/tabs/tabs.component.spec.ts rename to src/app/pages/hybrid/tabs/tabs.component.spec.ts diff --git a/src/app/components/tabs/tabs.component.ts b/src/app/pages/hybrid/tabs/tabs.component.ts similarity index 100% rename from src/app/components/tabs/tabs.component.ts rename to src/app/pages/hybrid/tabs/tabs.component.ts diff --git a/src/app/components/tabs/tabs.module.ts b/src/app/pages/hybrid/tabs/tabs.module.ts similarity index 84% rename from src/app/components/tabs/tabs.module.ts rename to src/app/pages/hybrid/tabs/tabs.module.ts index f6a8f9c..0b69e33 100644 --- a/src/app/components/tabs/tabs.module.ts +++ b/src/app/pages/hybrid/tabs/tabs.module.ts @@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common'; import { TabsRoutingModule } from './tabs-routing.module'; import { TabsComponent } from './tabs.component'; import { IonicModule } from '@ionic/angular'; -import { SingleTabModule } from '../single-tab/single-tab.module'; +import { SingleTabModule } from '../../../components/single-tab/single-tab.module'; @NgModule({ declarations: [ diff --git a/src/app/pages/web/index/index-routing.module.ts b/src/app/pages/web/index/index-routing.module.ts new file mode 100644 index 0000000..894bd97 --- /dev/null +++ b/src/app/pages/web/index/index-routing.module.ts @@ -0,0 +1,11 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { IndexComponent } from './index.component'; + +const routes: Routes = [{ path: '', component: IndexComponent }]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class IndexRoutingModule { } diff --git a/src/app/pages/web/index/index.component.html b/src/app/pages/web/index/index.component.html new file mode 100644 index 0000000..f1b8608 --- /dev/null +++ b/src/app/pages/web/index/index.component.html @@ -0,0 +1 @@ +

index works!

diff --git a/src/app/pages/web/index/index.component.scss b/src/app/pages/web/index/index.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/web/index/index.component.spec.ts b/src/app/pages/web/index/index.component.spec.ts new file mode 100644 index 0000000..4f1460d --- /dev/null +++ b/src/app/pages/web/index/index.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { IndexComponent } from './index.component'; + +describe('IndexComponent', () => { + let component: IndexComponent; + let fixture: ComponentFixture; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [IndexComponent] + }); + fixture = TestBed.createComponent(IndexComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/web/index/index.component.ts b/src/app/pages/web/index/index.component.ts new file mode 100644 index 0000000..81dfe60 --- /dev/null +++ b/src/app/pages/web/index/index.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-index', + templateUrl: './index.component.html', + styleUrls: ['./index.component.scss'] +}) +export class IndexComponent { + +} diff --git a/src/app/pages/web/index/index.module.ts b/src/app/pages/web/index/index.module.ts new file mode 100644 index 0000000..bb18d31 --- /dev/null +++ b/src/app/pages/web/index/index.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { IndexRoutingModule } from './index-routing.module'; +import { IndexComponent } from './index.component'; + + +@NgModule({ + declarations: [ + IndexComponent + ], + imports: [ + CommonModule, + IndexRoutingModule + ], + exports: [ + IndexComponent + ] +}) +export class IndexModule { } diff --git a/src/app/pages/web/not-found/not-found.component.html b/src/app/pages/web/not-found/not-found.component.html index 5de7b45..7246d09 100644 --- a/src/app/pages/web/not-found/not-found.component.html +++ b/src/app/pages/web/not-found/not-found.component.html @@ -1 +1,3 @@ + +

Sorry Page Not Found

diff --git a/src/app/pages/web/not-found/not-found.module.ts b/src/app/pages/web/not-found/not-found.module.ts index 3153e28..11d5a39 100644 --- a/src/app/pages/web/not-found/not-found.module.ts +++ b/src/app/pages/web/not-found/not-found.module.ts @@ -4,6 +4,7 @@ import { CommonModule } from '@angular/common'; import { NotFoundRoutingModule } from './not-found-routing.module'; import { NotFoundComponent } from './not-found.component'; +import { NavbarModule } from 'src/app/components/navbar/navbar.module'; @NgModule({ declarations: [ @@ -11,7 +12,8 @@ import { NotFoundComponent } from './not-found.component'; ], imports: [ CommonModule, - NotFoundRoutingModule + NotFoundRoutingModule, + NavbarModule ] }) export class NotFoundModule { } diff --git a/src/assets/icon/MedTempo.svg b/src/assets/icon/MedTempo.svg new file mode 100755 index 0000000..f4258c5 --- /dev/null +++ b/src/assets/icon/MedTempo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/icon/favicon.png b/src/assets/icon/favicon.png new file mode 100755 index 0000000..51888a7 Binary files /dev/null and b/src/assets/icon/favicon.png differ diff --git a/src/assets/image/josefilho.png b/src/assets/image/josefilho.png new file mode 100755 index 0000000..8ff0847 Binary files /dev/null and b/src/assets/image/josefilho.png differ diff --git a/src/assets/image/logo.png b/src/assets/image/logo.png new file mode 100755 index 0000000..b394bd4 Binary files /dev/null and b/src/assets/image/logo.png differ diff --git a/src/assets/image/medica.png b/src/assets/image/medica.png new file mode 100755 index 0000000..8635b34 Binary files /dev/null and b/src/assets/image/medica.png differ diff --git a/src/assets/shapes.svg b/src/assets/shapes.svg new file mode 100755 index 0000000..d370b4d --- /dev/null +++ b/src/assets/shapes.svg @@ -0,0 +1 @@ + diff --git a/src/favicon.ico b/src/favicon.ico deleted file mode 100644 index 997406a..0000000 Binary files a/src/favicon.ico and /dev/null differ diff --git a/src/index.html b/src/index.html index 84d0a8b..8348c24 100644 --- a/src/index.html +++ b/src/index.html @@ -2,10 +2,10 @@ - MedTempoMonolithic + MedTempo - + diff --git a/src/interfaces/medicamentos.ts b/src/interfaces/medicamentos.ts new file mode 100644 index 0000000..e59b31c --- /dev/null +++ b/src/interfaces/medicamentos.ts @@ -0,0 +1,5 @@ +export default interface medicamentos{ + nome: string, + horario: string, + dosagem: string +} \ No newline at end of file