├── .gitignore ├── LICENSE ├── README.md ├── angular.json ├── browserslist ├── capacitor.config.ts ├── config.xml ├── e2e ├── protractor.conf.js ├── src │ ├── app.e2e-spec.ts │ └── app.po.ts └── tsconfig.json ├── ep1.png ├── ep2.png ├── ep3.png ├── ep4.png ├── ionic.config.json ├── karma.conf.js ├── package-lock.json ├── package.json ├── preview.gif ├── resources ├── README.md ├── android │ ├── icon │ │ ├── drawable-hdpi-icon.png │ │ ├── drawable-ldpi-icon.png │ │ ├── drawable-mdpi-icon.png │ │ ├── drawable-xhdpi-icon.png │ │ ├── drawable-xxhdpi-icon.png │ │ └── drawable-xxxhdpi-icon.png │ ├── splash │ │ ├── drawable-land-hdpi-screen.png │ │ ├── drawable-land-ldpi-screen.png │ │ ├── drawable-land-mdpi-screen.png │ │ ├── drawable-land-xhdpi-screen.png │ │ ├── drawable-land-xxhdpi-screen.png │ │ ├── drawable-land-xxxhdpi-screen.png │ │ ├── drawable-port-hdpi-screen.png │ │ ├── drawable-port-ldpi-screen.png │ │ ├── drawable-port-mdpi-screen.png │ │ ├── drawable-port-xhdpi-screen.png │ │ ├── drawable-port-xxhdpi-screen.png │ │ └── drawable-port-xxxhdpi-screen.png │ └── xml │ │ └── network_security_config.xml ├── icon.png ├── ios │ ├── icon │ │ ├── icon-1024.png │ │ ├── icon-20.png │ │ ├── icon-20@2x.png │ │ ├── icon-20@3x.png │ │ ├── icon-24@2x.png │ │ ├── icon-27.5@2x.png │ │ ├── icon-29.png │ │ ├── icon-29@2x.png │ │ ├── icon-29@3x.png │ │ ├── icon-40.png │ │ ├── icon-40@2x.png │ │ ├── icon-40@3x.png │ │ ├── icon-44@2x.png │ │ ├── icon-50.png │ │ ├── icon-50@2x.png │ │ ├── icon-60.png │ │ ├── icon-60@2x.png │ │ ├── icon-60@3x.png │ │ ├── icon-72.png │ │ ├── icon-72@2x.png │ │ ├── icon-76.png │ │ ├── icon-76@2x.png │ │ ├── icon-83.5@2x.png │ │ ├── icon-86@2x.png │ │ ├── icon-98@2x.png │ │ ├── icon-small.png │ │ ├── icon-small@2x.png │ │ ├── icon-small@3x.png │ │ ├── icon.png │ │ └── icon@2x.png │ └── splash │ │ ├── Default-2436h.png │ │ ├── Default-568h@2x~iphone.png │ │ ├── Default-667h.png │ │ ├── Default-736h.png │ │ ├── Default-Landscape-2436h.png │ │ ├── Default-Landscape-736h.png │ │ ├── Default-Landscape@2x~ipad.png │ │ ├── Default-Landscape@~ipadpro.png │ │ ├── Default-Landscape~ipad.png │ │ ├── Default-Portrait@2x~ipad.png │ │ ├── Default-Portrait@~ipadpro.png │ │ ├── Default-Portrait~ipad.png │ │ ├── Default@2x~iphone.png │ │ ├── Default@2x~universal~anyany.png │ │ └── Default~iphone.png └── splash.png ├── src ├── app │ ├── app-routing.module.ts │ ├── app.component.html │ ├── app.component.scss │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── models │ │ └── index.ts │ ├── modules │ │ ├── categories-list │ │ │ ├── categories-list-routing.module.ts │ │ │ ├── categories-list.module.ts │ │ │ ├── categories-list.page.html │ │ │ ├── categories-list.page.scss │ │ │ ├── categories-list.page.spec.ts │ │ │ └── categories-list.page.ts │ │ ├── checkout │ │ │ ├── checkout-routing.module.ts │ │ │ ├── checkout.module.ts │ │ │ ├── checkout.page.html │ │ │ ├── checkout.page.scss │ │ │ ├── checkout.page.spec.ts │ │ │ └── checkout.page.ts │ │ ├── common │ │ │ ├── common-features.module.ts │ │ │ ├── header │ │ │ │ ├── header.component.html │ │ │ │ ├── header.component.scss │ │ │ │ ├── header.component.spec.ts │ │ │ │ └── header.component.ts │ │ │ └── notification │ │ │ │ ├── notification.component.html │ │ │ │ ├── notification.component.scss │ │ │ │ ├── notification.component.spec.ts │ │ │ │ └── notification.component.ts │ │ ├── confirm │ │ │ ├── confirm-routing.module.ts │ │ │ ├── confirm.module.ts │ │ │ ├── confirm.page.html │ │ │ ├── confirm.page.scss │ │ │ ├── confirm.page.spec.ts │ │ │ └── confirm.page.ts │ │ ├── favorite │ │ │ ├── favorite-routing.module.ts │ │ │ ├── favorite.module.ts │ │ │ ├── favorite.page.html │ │ │ ├── favorite.page.scss │ │ │ ├── favorite.page.spec.ts │ │ │ └── favorite.page.ts │ │ ├── folder │ │ │ ├── folder-routing.module.ts │ │ │ ├── folder.module.ts │ │ │ ├── folder.page.html │ │ │ ├── folder.page.scss │ │ │ ├── folder.page.spec.ts │ │ │ └── folder.page.ts │ │ ├── home │ │ │ ├── home-routing.module.ts │ │ │ ├── home.module.ts │ │ │ ├── home.page.html │ │ │ ├── home.page.scss │ │ │ ├── home.page.spec.ts │ │ │ └── home.page.ts │ │ ├── item-details │ │ │ ├── item-details-routing.module.ts │ │ │ ├── item-details.module.ts │ │ │ ├── item-details.page.html │ │ │ ├── item-details.page.scss │ │ │ ├── item-details.page.spec.ts │ │ │ └── item-details.page.ts │ │ ├── login │ │ │ ├── login-routing.module.ts │ │ │ ├── login.module.ts │ │ │ ├── login.page.html │ │ │ ├── login.page.scss │ │ │ ├── login.page.spec.ts │ │ │ ├── login.page.ts │ │ │ └── model.ts │ │ ├── my-cart │ │ │ ├── my-cart-routing.module.ts │ │ │ ├── my-cart.module.ts │ │ │ ├── my-cart.page.html │ │ │ ├── my-cart.page.scss │ │ │ ├── my-cart.page.spec.ts │ │ │ └── my-cart.page.ts │ │ ├── my-orders │ │ │ ├── my-orders-routing.module.ts │ │ │ ├── my-orders.module.ts │ │ │ ├── my-orders.page.html │ │ │ ├── my-orders.page.scss │ │ │ ├── my-orders.page.spec.ts │ │ │ └── my-orders.page.ts │ │ ├── profile │ │ │ ├── profile-routing.module.ts │ │ │ ├── profile.module.ts │ │ │ ├── profile.page.html │ │ │ ├── profile.page.scss │ │ │ ├── profile.page.spec.ts │ │ │ └── profile.page.ts │ │ ├── shared │ │ │ └── shared.module.ts │ │ ├── signup │ │ │ ├── signup-routing.module.ts │ │ │ ├── signup.module.ts │ │ │ ├── signup.page.html │ │ │ ├── signup.page.scss │ │ │ ├── signup.page.spec.ts │ │ │ └── signup.page.ts │ │ └── welcome │ │ │ ├── welcome-routing.module.ts │ │ │ ├── welcome.module.ts │ │ │ ├── welcome.page.html │ │ │ ├── welcome.page.scss │ │ │ ├── welcome.page.spec.ts │ │ │ └── welcome.page.ts │ └── services │ │ ├── auth │ │ ├── auth.service.spec.ts │ │ └── auth.service.ts │ │ ├── data │ │ ├── data.service.spec.ts │ │ └── data.service.ts │ │ ├── index.ts │ │ ├── storage │ │ ├── storage.service.spec.ts │ │ └── storage.service.ts │ │ └── util │ │ ├── util.service.spec.ts │ │ └── util.service.ts ├── assets │ ├── back-dark.svg │ ├── back.svg │ ├── cart │ │ ├── cart1.png │ │ ├── cart2.png │ │ ├── cart3.png │ │ ├── cart4.png │ │ └── cart5.png │ ├── categories │ │ ├── category-1.png │ │ ├── category-2.png │ │ └── category-3.png │ ├── fonts │ │ ├── Segoe UI Bold Italic.ttf │ │ ├── Segoe UI Bold.ttf │ │ ├── Segoe UI Italic.ttf │ │ └── Segoe UI.ttf │ ├── icon │ │ └── favicon.png │ ├── like.png │ ├── menu_bar.svg │ ├── product-slider │ │ ├── prod-slide1.png │ │ ├── prod-slide2.png │ │ └── prod-slide3.png │ ├── products │ │ ├── prod-1.png │ │ ├── prod-2.png │ │ ├── prod-3.png │ │ ├── prod-4.png │ │ ├── prod-5.png │ │ └── prod-6.png │ ├── shapes.svg │ └── welcome.png ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── global.scss ├── index.html ├── main.ts ├── polyfills.ts ├── test.ts ├── theme │ └── variables.scss └── zone-flags.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.spec.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | *~ 5 | *.sw[mnpcod] 6 | .tmp 7 | *.tmp 8 | *.tmp.* 9 | *.sublime-project 10 | *.sublime-workspace 11 | .DS_Store 12 | Thumbs.db 13 | UserInterfaceState.xcuserstate 14 | $RECYCLE.BIN/ 15 | 16 | *.log 17 | log.txt 18 | npm-debug.log* 19 | 20 | /.idea 21 | /.ionic 22 | /.sass-cache 23 | /.sourcemaps 24 | /.versions 25 | /.vscode 26 | /coverage 27 | /dist 28 | /node_modules 29 | /platforms 30 | /plugins 31 | /www 32 | /android 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Gihan Lakshan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ionic ecommerce app UI 2 | 3 | ## Pages Included 4 | 5 | 1. Welcome Screen 6 | 2. Login/Register Screens 7 | 3. Home Page 8 | 4. Profile Page 9 | 5. Favorites Page 10 | 6. My Orders Page 11 | 7. My Cart Page 12 | 8. Item Details Page 13 | 9. Checkout Page 14 | 10. Order Confirm Page 15 | 11. Custom Side Menu 16 | 17 | Complete ecommerce app UI using Ionic 5 18 | 19 | ### Preview 20 | 21 | ![Preview](/preview.gif) 22 | 23 | ![App UI](/ep1.png) 24 | ![App UI](/ep2.png) 25 | ![App UI](/ep3.png) 26 | ![App UI](/ep4.png) 27 | 28 | 29 | Buy Me A Coffee 30 | -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "defaultProject": "app", 5 | "newProjectRoot": "projects", 6 | "projects": { 7 | "app": { 8 | "root": "", 9 | "sourceRoot": "src", 10 | "projectType": "application", 11 | "prefix": "app", 12 | "schematics": {}, 13 | "architect": { 14 | "build": { 15 | "builder": "@angular-devkit/build-angular:browser", 16 | "options": { 17 | "outputPath": "www", 18 | "index": "src/index.html", 19 | "main": "src/main.ts", 20 | "polyfills": "src/polyfills.ts", 21 | "tsConfig": "tsconfig.app.json", 22 | "assets": [ 23 | { 24 | "glob": "**/*", 25 | "input": "src/assets", 26 | "output": "assets" 27 | }, 28 | { 29 | "glob": "**/*.svg", 30 | "input": "node_modules/ionicons/dist/ionicons/svg", 31 | "output": "./svg" 32 | } 33 | ], 34 | "styles": [ 35 | { 36 | "input": "src/theme/variables.scss", 37 | "inject": true 38 | }, 39 | { 40 | "input": "src/global.scss", 41 | "inject": true 42 | } 43 | ], 44 | "scripts": [], 45 | "aot": false, 46 | "vendorChunk": true, 47 | "extractLicenses": false, 48 | "buildOptimizer": false, 49 | "sourceMap": true, 50 | "optimization": false, 51 | "namedChunks": true 52 | }, 53 | "configurations": { 54 | "production": { 55 | "fileReplacements": [ 56 | { 57 | "replace": "src/environments/environment.ts", 58 | "with": "src/environments/environment.prod.ts" 59 | } 60 | ], 61 | "optimization": true, 62 | "outputHashing": "all", 63 | "sourceMap": false, 64 | "namedChunks": false, 65 | "aot": true, 66 | "extractLicenses": true, 67 | "vendorChunk": false, 68 | "buildOptimizer": true, 69 | "budgets": [ 70 | { 71 | "type": "initial", 72 | "maximumWarning": "2mb", 73 | "maximumError": "5mb" 74 | } 75 | ] 76 | }, 77 | "ci": { 78 | "progress": false 79 | } 80 | }, 81 | "defaultConfiguration": "" 82 | }, 83 | "serve": { 84 | "builder": "@angular-devkit/build-angular:dev-server", 85 | "options": { 86 | "browserTarget": "app:build" 87 | }, 88 | "configurations": { 89 | "production": { 90 | "browserTarget": "app:build:production" 91 | }, 92 | "ci": { 93 | "progress": false 94 | } 95 | } 96 | }, 97 | "extract-i18n": { 98 | "builder": "@angular-devkit/build-angular:extract-i18n", 99 | "options": { 100 | "browserTarget": "app:build" 101 | } 102 | }, 103 | "test": { 104 | "builder": "@angular-devkit/build-angular:karma", 105 | "options": { 106 | "main": "src/test.ts", 107 | "polyfills": "src/polyfills.ts", 108 | "tsConfig": "tsconfig.spec.json", 109 | "karmaConfig": "karma.conf.js", 110 | "styles": [], 111 | "scripts": [], 112 | "assets": [ 113 | { 114 | "glob": "favicon.ico", 115 | "input": "src/", 116 | "output": "/" 117 | }, 118 | { 119 | "glob": "**/*", 120 | "input": "src/assets", 121 | "output": "/assets" 122 | } 123 | ] 124 | }, 125 | "configurations": { 126 | "ci": { 127 | "progress": false, 128 | "watch": false 129 | } 130 | } 131 | }, 132 | "lint": { 133 | "builder": "@angular-devkit/build-angular:tslint", 134 | "options": { 135 | "tsConfig": [ 136 | "tsconfig.app.json", 137 | "tsconfig.spec.json", 138 | "e2e/tsconfig.json" 139 | ], 140 | "exclude": ["**/node_modules/**"] 141 | } 142 | }, 143 | "e2e": { 144 | "builder": "@angular-devkit/build-angular:protractor", 145 | "options": { 146 | "protractorConfig": "e2e/protractor.conf.js", 147 | "devServerTarget": "app:serve" 148 | }, 149 | "configurations": { 150 | "production": { 151 | "devServerTarget": "app:serve:production" 152 | }, 153 | "ci": { 154 | "devServerTarget": "app:serve:ci" 155 | } 156 | } 157 | }, 158 | "ionic-cordova-build": { 159 | "builder": "@ionic/angular-toolkit:cordova-build", 160 | "options": { 161 | "browserTarget": "app:build" 162 | }, 163 | "configurations": { 164 | "production": { 165 | "browserTarget": "app:build:production" 166 | } 167 | } 168 | }, 169 | "ionic-cordova-serve": { 170 | "builder": "@ionic/angular-toolkit:cordova-serve", 171 | "options": { 172 | "cordovaBuildTarget": "app:ionic-cordova-build", 173 | "devServerTarget": "app:serve" 174 | }, 175 | "configurations": { 176 | "production": { 177 | "cordovaBuildTarget": "app:ionic-cordova-build:production", 178 | "devServerTarget": "app:serve:production" 179 | } 180 | } 181 | } 182 | } 183 | } 184 | }, 185 | "cli": { 186 | "defaultCollection": "@ionic/angular-toolkit" 187 | }, 188 | "schematics": { 189 | "@ionic/angular-toolkit:component": { 190 | "styleext": "scss" 191 | }, 192 | "@ionic/angular-toolkit:page": { 193 | "styleext": "scss" 194 | } 195 | } 196 | } 197 | -------------------------------------------------------------------------------- /browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. 13 | -------------------------------------------------------------------------------- /capacitor.config.ts: -------------------------------------------------------------------------------- 1 | import { CapacitorConfig } from '@capacitor/cli'; 2 | 3 | const config: CapacitorConfig = { 4 | appId: 'io.ionic.starter', 5 | appName: 'ecomm-app', 6 | webDir: 'www', 7 | bundledWebRuntime: false, 8 | cordova: { 9 | preferences: { 10 | ScrollEnabled: 'false', 11 | BackupWebStorage: 'none', 12 | SplashMaintainAspectRatio: 'true', 13 | FadeSplashScreenDuration: '300', 14 | SplashShowOnlyFirstTime: 'false', 15 | SplashScreen: 'screen', 16 | SplashScreenDelay: '3000' 17 | } 18 | } 19 | }; 20 | 21 | export default config; 22 | -------------------------------------------------------------------------------- /config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | MyApp 4 | An awesome Ionic/Cordova app. 5 | Ionic Framework Team 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /e2e/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // @ts-check 2 | // Protractor configuration file, see link for more information 3 | // https://github.com/angular/protractor/blob/master/lib/config.ts 4 | 5 | const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); 6 | 7 | /** 8 | * @type { import("protractor").Config } 9 | */ 10 | exports.config = { 11 | allScriptsTimeout: 11000, 12 | specs: [ 13 | './src/**/*.e2e-spec.ts' 14 | ], 15 | capabilities: { 16 | browserName: 'chrome' 17 | }, 18 | directConnect: true, 19 | baseUrl: 'http://localhost:4200/', 20 | framework: 'jasmine', 21 | jasmineNodeOpts: { 22 | showColors: true, 23 | defaultTimeoutInterval: 30000, 24 | print: function() {} 25 | }, 26 | onPrepare() { 27 | require('ts-node').register({ 28 | project: require('path').join(__dirname, './tsconfig.json') 29 | }); 30 | jasmine.getEnv().addReporter(new SpecReporter({ 31 | spec: { 32 | displayStacktrace: StacktraceOption.PRETTY 33 | } 34 | })); 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('new App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | describe('default screen', () => { 10 | beforeEach(() => { 11 | page.navigateTo('/Inbox'); 12 | }); 13 | it('should say Inbox', () => { 14 | expect(page.getParagraphText()).toContain('Inbox'); 15 | }); 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo(destination) { 5 | return browser.get(destination); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.deepCss('app-root ion-content')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ep1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/ep1.png -------------------------------------------------------------------------------- /ep2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/ep2.png -------------------------------------------------------------------------------- /ep3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/ep3.png -------------------------------------------------------------------------------- /ep4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/ep4.png -------------------------------------------------------------------------------- /ionic.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ecomm-app", 3 | "integrations": { 4 | "cordova": {}, 5 | "capacitor": {} 6 | }, 7 | "type": "angular" 8 | } 9 | -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular-devkit/build-angular/plugins/karma') 14 | ], 15 | client: { 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | dir: require('path').join(__dirname, '../coverage'), 20 | reports: ['html', 'lcovonly', 'text-summary'], 21 | fixWebpackSourcePaths: true 22 | }, 23 | reporters: ['progress', 'kjhtml'], 24 | port: 9876, 25 | colors: true, 26 | logLevel: config.LOG_INFO, 27 | autoWatch: true, 28 | browsers: ['Chrome'], 29 | singleRun: false 30 | }); 31 | }; 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ecomm-app", 3 | "version": "0.0.1", 4 | "author": "Ionic Framework", 5 | "homepage": "https://ionicframework.com/", 6 | "scripts": { 7 | "ng": "ng", 8 | "start": "ng serve", 9 | "build": "ng build", 10 | "test": "ng test", 11 | "lint": "ng lint", 12 | "e2e": "ng e2e", 13 | "dev": "ionic capacitor run android -l --external" 14 | }, 15 | "private": true, 16 | "dependencies": { 17 | "@angular/common": "~12.1.1", 18 | "@angular/core": "~12.1.1", 19 | "@angular/forms": "~12.1.1", 20 | "@angular/platform-browser": "~12.1.1", 21 | "@angular/platform-browser-dynamic": "~12.1.1", 22 | "@angular/router": "~12.1.1", 23 | "@capacitor/android": "3.0.1", 24 | "@capacitor/app": "1.0.1", 25 | "@capacitor/core": "3.0.1", 26 | "@capacitor/haptics": "1.0.1", 27 | "@capacitor/keyboard": "1.0.1", 28 | "@capacitor/status-bar": "1.0.1", 29 | "@ionic-native/core": "^5.0.0", 30 | "@ionic-native/splash-screen": "^5.0.0", 31 | "@ionic-native/status-bar": "^5.0.0", 32 | "@ionic/angular": "^5.6.11", 33 | "@ionic/storage-angular": "^3.0.6", 34 | "cordova-ios": "5.1.1", 35 | "rxjs": "~6.5.5", 36 | "tslib": "^2.0.0", 37 | "zone.js": "~0.11.4" 38 | }, 39 | "devDependencies": { 40 | "@angular-devkit/build-angular": "~12.1.1", 41 | "@angular/cli": "~12.1.1", 42 | "@angular/compiler": "~12.1.1", 43 | "@angular/compiler-cli": "~12.1.1", 44 | "@angular/language-service": "~12.1.1", 45 | "@capacitor/cli": "3.0.1", 46 | "@ionic/angular-toolkit": "^4.0.0", 47 | "@types/jasmine": "~3.6.0", 48 | "@types/jasminewd2": "~2.0.3", 49 | "@types/node": "^12.11.1", 50 | "codelyzer": "^6.0.0", 51 | "cordova-plugin-device": "^2.0.2", 52 | "cordova-plugin-ionic-keyboard": "^2.2.0", 53 | "cordova-plugin-ionic-webview": "^4.2.1", 54 | "cordova-plugin-splashscreen": "^5.0.2", 55 | "cordova-plugin-statusbar": "^2.4.2", 56 | "cordova-plugin-whitelist": "^1.3.3", 57 | "jasmine-core": "~3.6.0", 58 | "jasmine-spec-reporter": "~5.0.0", 59 | "karma": "~6.3.4", 60 | "karma-chrome-launcher": "~3.1.0", 61 | "karma-coverage-istanbul-reporter": "~3.0.2", 62 | "karma-jasmine": "~4.0.0", 63 | "karma-jasmine-html-reporter": "^1.5.0", 64 | "protractor": "~7.0.0", 65 | "ts-node": "~8.3.0", 66 | "tslint": "~6.1.0", 67 | "typescript": "~4.3.5" 68 | }, 69 | "description": "An Ionic project", 70 | "cordova": { 71 | "plugins": { 72 | "cordova-plugin-whitelist": {}, 73 | "cordova-plugin-statusbar": {}, 74 | "cordova-plugin-device": {}, 75 | "cordova-plugin-splashscreen": {}, 76 | "cordova-plugin-ionic-webview": {}, 77 | "cordova-plugin-ionic-keyboard": {} 78 | }, 79 | "platforms": [ 80 | "ios" 81 | ] 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /preview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/preview.gif -------------------------------------------------------------------------------- /resources/README.md: -------------------------------------------------------------------------------- 1 | These are Cordova resources. You can replace icon.png and splash.png and run 2 | `ionic cordova resources` to generate custom icons and splash screens for your 3 | app. See `ionic cordova resources --help` for details. 4 | 5 | Cordova reference documentation: 6 | 7 | - Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html 8 | - Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/ 9 | -------------------------------------------------------------------------------- /resources/android/icon/drawable-hdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/icon/drawable-hdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-ldpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/icon/drawable-ldpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-mdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/icon/drawable-mdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/icon/drawable-xhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/icon/drawable-xxhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xxxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/icon/drawable-xxxhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-land-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-land-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-land-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-land-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-land-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-land-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-port-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-port-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-port-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-port-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-port-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/android/splash/drawable-port-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | localhost 5 | 6 | 7 | -------------------------------------------------------------------------------- /resources/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/icon.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-1024.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-20.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-20@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-20@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-24@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-24@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-27.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-27.5@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-29.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-29@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-29@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-40.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-40@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-40@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-44@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-44@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-50.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-50@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-60.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-60@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-60@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-72.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-72@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-76.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-76@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-83.5@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-86@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-86@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-98@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-98@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-small.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-small@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon-small@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon.png -------------------------------------------------------------------------------- /resources/ios/icon/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/icon/icon@2x.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-2436h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-2436h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-667h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape-2436h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Landscape-2436h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Landscape-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Landscape@~ipadpro.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Portrait@~ipadpro.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default@2x~universal~anyany.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default@2x~universal~anyany.png -------------------------------------------------------------------------------- /resources/ios/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/ios/splash/Default~iphone.png -------------------------------------------------------------------------------- /resources/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/resources/splash.png -------------------------------------------------------------------------------- /src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; 3 | 4 | const routes: Routes = [ 5 | { 6 | path: '', 7 | redirectTo: 'welcome', 8 | pathMatch: 'full' 9 | }, 10 | { 11 | path: 'folder/:id', 12 | loadChildren: () => import('./modules/folder/folder.module').then( m => m.FolderPageModule) 13 | }, 14 | { 15 | path: 'welcome', 16 | loadChildren: () => import('./modules/welcome/welcome.module').then( m => m.WelcomePageModule) 17 | }, 18 | { 19 | path: 'login', 20 | loadChildren: () => import('./modules/login/login.module').then( m => m.LoginPageModule) 21 | }, 22 | { 23 | path: 'signup', 24 | loadChildren: () => import('./modules/signup/signup.module').then( m => m.SignupPageModule) 25 | }, 26 | { 27 | path: 'home', 28 | loadChildren: () => import('./modules/home/home.module').then( m => m.HomePageModule) 29 | }, 30 | { 31 | path: 'item-details', 32 | loadChildren: () => import('./modules/item-details/item-details.module').then( m => m.ItemDetailsPageModule) 33 | }, 34 | { 35 | path: 'my-cart', 36 | loadChildren: () => import('./modules/my-cart/my-cart.module').then( m => m.MyCartPageModule) 37 | }, 38 | { 39 | path: 'profile', 40 | loadChildren: () => import('./modules/profile/profile.module').then( m => m.ProfilePageModule) 41 | }, 42 | { 43 | path: 'my-orders', 44 | loadChildren: () => import('./modules/my-orders/my-orders.module').then( m => m.MyOrdersPageModule) 45 | }, 46 | { 47 | path: 'favorite', 48 | loadChildren: () => import('./modules/favorite/favorite.module').then( m => m.FavoritePageModule) 49 | }, 50 | { 51 | path: 'checkout', 52 | loadChildren: () => import('./modules/checkout/checkout.module').then( m => m.CheckoutPageModule) 53 | }, 54 | { 55 | path: 'confirm', 56 | loadChildren: () => import('./modules/confirm/confirm.module').then( m => m.ConfirmPageModule) 57 | }, 58 | { 59 | path: 'categories-list', 60 | loadChildren: () => import('./modules/categories-list/categories-list.module').then( m => m.CategoriesListPageModule) 61 | } 62 | ]; 63 | 64 | @NgModule({ 65 | imports: [ 66 | RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules, relativeLinkResolution: 'legacy' }) 67 | ], 68 | exports: [RouterModule] 69 | }) 70 | export class AppRoutingModule {} 71 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | Home 15 | 16 | 17 | 18 | 20 | Profile 21 | 22 | 23 | 24 | 26 | My Cart 27 | 28 | 29 | 30 | 32 | Favorite 33 | 34 | 35 | 36 | 38 | My Orders 39 | 40 | 41 | 42 | 44 | Log Out 45 | 46 | 47 | 48 | 49 | 50 | 53 |
54 |
55 |
56 | 57 |
58 |
59 | -------------------------------------------------------------------------------- /src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | ion-menu { 2 | --width: 100%; 3 | } 4 | 5 | .main-list { 6 | height: 100%; 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | 11 | ion-list { 12 | width: 100%; 13 | 14 | ion-item { 15 | font-size: 18px; 16 | font-weight: 100; 17 | } 18 | 19 | .selected { 20 | border-left: 5px solid var(--ion-color-primary); 21 | color: var(--ion-color-primary); 22 | } 23 | } 24 | 25 | ion-button { 26 | position: absolute; 27 | // bottom: 10%; 28 | // right: 10%; 29 | // font-size: 24px; 30 | // --ripple-color: transparent; 31 | // position: absolute; 32 | top: 2%; 33 | right: 0; 34 | } 35 | } -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { TestBed, waitForAsync } from '@angular/core/testing'; 3 | 4 | import { Platform } from '@ionic/angular'; 5 | import { SplashScreen } from '@ionic-native/splash-screen/ngx'; 6 | import { StatusBar } from '@ionic-native/status-bar/ngx'; 7 | import { RouterTestingModule } from '@angular/router/testing'; 8 | 9 | import { AppComponent } from './app.component'; 10 | 11 | describe('AppComponent', () => { 12 | 13 | let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy; 14 | 15 | beforeEach(waitForAsync(() => { 16 | statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']); 17 | splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']); 18 | platformReadySpy = Promise.resolve(); 19 | platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy }); 20 | 21 | TestBed.configureTestingModule({ 22 | declarations: [AppComponent], 23 | schemas: [CUSTOM_ELEMENTS_SCHEMA], 24 | providers: [ 25 | { provide: StatusBar, useValue: statusBarSpy }, 26 | { provide: SplashScreen, useValue: splashScreenSpy }, 27 | { provide: Platform, useValue: platformSpy }, 28 | ], 29 | imports: [ RouterTestingModule.withRoutes([])], 30 | }).compileComponents(); 31 | })); 32 | 33 | it('should create the app', async () => { 34 | const fixture = TestBed.createComponent(AppComponent); 35 | const app = fixture.debugElement.componentInstance; 36 | expect(app).toBeTruthy(); 37 | }); 38 | 39 | it('should initialize the app', async () => { 40 | TestBed.createComponent(AppComponent); 41 | expect(platformSpy.ready).toHaveBeenCalled(); 42 | await platformReadySpy; 43 | expect(statusBarSpy.styleDefault).toHaveBeenCalled(); 44 | expect(splashScreenSpy.hide).toHaveBeenCalled(); 45 | }); 46 | 47 | it('should have menu labels', async () => { 48 | const fixture = await TestBed.createComponent(AppComponent); 49 | await fixture.detectChanges(); 50 | const app = fixture.nativeElement; 51 | const menuItems = app.querySelectorAll('ion-label'); 52 | expect(menuItems.length).toEqual(12); 53 | expect(menuItems[0].textContent).toContain('Inbox'); 54 | expect(menuItems[1].textContent).toContain('Outbox'); 55 | }); 56 | 57 | it('should have urls', async () => { 58 | const fixture = await TestBed.createComponent(AppComponent); 59 | await fixture.detectChanges(); 60 | const app = fixture.nativeElement; 61 | const menuItems = app.querySelectorAll('ion-item'); 62 | expect(menuItems.length).toEqual(12); 63 | expect(menuItems[0].getAttribute('ng-reflect-router-link')).toEqual('/folder/Inbox'); 64 | expect(menuItems[1].getAttribute('ng-reflect-router-link')).toEqual('/folder/Outbox'); 65 | }); 66 | 67 | }); 68 | -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | import { Platform } from '@ionic/angular'; 4 | import { SplashScreen } from '@ionic-native/splash-screen/ngx'; 5 | import { StatusBar } from '@ionic-native/status-bar/ngx'; 6 | import { menuController } from '@ionic/core'; 7 | import { Router } from '@angular/router'; 8 | import { UtilService } from './services/util/util.service'; 9 | import { StorageService } from './services/storage/storage.service'; 10 | 11 | @Component({ 12 | selector: 'app-root', 13 | templateUrl: 'app.component.html', 14 | styleUrls: ['app.component.scss'] 15 | }) 16 | export class AppComponent implements OnInit { 17 | public isMenuEnabled:boolean = true; 18 | public selectedIndex = 0; 19 | 20 | constructor( 21 | private platform: Platform, 22 | private splashScreen: SplashScreen, 23 | private statusBar: StatusBar, 24 | private util: UtilService, 25 | private router: Router, 26 | private storageService: StorageService 27 | ) { 28 | this.initializeApp(); 29 | } 30 | 31 | initializeApp() { 32 | this.platform.ready().then(() => { 33 | this.statusBar.styleDefault(); 34 | this.splashScreen.hide(); 35 | }); 36 | } 37 | 38 | ngOnInit() { 39 | this.selectedIndex = 1; 40 | 41 | this.util.getMenuState().subscribe(menuState => { 42 | this.isMenuEnabled = menuState; 43 | }); 44 | } 45 | 46 | navigate(path, selectedId) { 47 | this.selectedIndex = selectedId; 48 | this.router.navigate([path]); 49 | } 50 | 51 | logout(): void{ 52 | this.storageService.clear(); 53 | } 54 | 55 | close() { 56 | menuController.toggle(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { BrowserModule } from '@angular/platform-browser'; 3 | import { RouteReuseStrategy } from '@angular/router'; 4 | 5 | import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; 6 | import { SplashScreen } from '@ionic-native/splash-screen/ngx'; 7 | import { StatusBar } from '@ionic-native/status-bar/ngx'; 8 | import { IonicStorageModule } from '@ionic/storage-angular'; 9 | 10 | import { AppComponent } from './app.component'; 11 | import { AppRoutingModule } from './app-routing.module'; 12 | import { SharedModule } from './modules/shared/shared.module'; 13 | 14 | @NgModule({ 15 | declarations: [AppComponent], 16 | entryComponents: [], 17 | imports: [ 18 | BrowserModule, 19 | IonicModule.forRoot(), 20 | AppRoutingModule, 21 | IonicStorageModule.forRoot(), 22 | SharedModule.forRoot() 23 | ], 24 | providers: [ 25 | StatusBar, 26 | SplashScreen, 27 | { provide: RouteReuseStrategy, useClass: IonicRouteStrategy } 28 | ], 29 | bootstrap: [AppComponent] 30 | }) 31 | export class AppModule {} 32 | -------------------------------------------------------------------------------- /src/app/models/index.ts: -------------------------------------------------------------------------------- 1 | export * from '../modules/login/model'; 2 | -------------------------------------------------------------------------------- /src/app/modules/categories-list/categories-list-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { CategoriesListPage } from './categories-list.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: CategoriesListPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class CategoriesListPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/categories-list/categories-list.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | import { CommonFeaturesModule } from '../common/common-features.module'; 8 | 9 | import { CategoriesListPageRoutingModule } from './categories-list-routing.module'; 10 | 11 | import { CategoriesListPage } from './categories-list.page'; 12 | 13 | @NgModule({ 14 | imports: [ 15 | CommonModule, 16 | FormsModule, 17 | IonicModule, 18 | CommonFeaturesModule, 19 | CategoriesListPageRoutingModule 20 | ], 21 | declarations: [CategoriesListPage] 22 | }) 23 | export class CategoriesListPageModule {} 24 | -------------------------------------------------------------------------------- /src/app/modules/categories-list/categories-list.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Categories

5 | 6 | 7 | 8 | 9 |

$34.00

10 |
Women t-shirt
11 |
12 | 13 | 14 |

$24.00

15 |
Mens t-shirt
16 |
17 | 18 | 19 |

$54.00

20 |
Women t-shirt
21 |
22 | 23 | 24 |

$44.00

25 |
Blezer
26 |
27 | 28 | 29 |

$14.00

30 |
T-shirt
31 |
32 | 33 | 34 |

$30.00

35 |
Shirt
36 |
37 |
38 |
39 | -------------------------------------------------------------------------------- /src/app/modules/categories-list/categories-list.page.scss: -------------------------------------------------------------------------------- 1 | .backbtn { 2 | margin-left: 15px; 3 | } 4 | 5 | .notification { 6 | margin-right: 15px; 7 | } 8 | 9 | ion-content { 10 | --padding-top: 16px; 11 | --padding-bottom: 16px; 12 | --padding-start: 26px; 13 | --padding-end: 26px; 14 | } 15 | 16 | .title { 17 | margin-top: 0; 18 | color: #434343; 19 | } 20 | 21 | .favorite-items { 22 | margin-top: 20px; 23 | 24 | ion-col { 25 | padding: 10px; 26 | 27 | img { 28 | width: 100%; 29 | height: 180px; 30 | object-fit: cover; 31 | border-radius: 8px; 32 | } 33 | 34 | p { 35 | margin-top: 5px; 36 | margin-bottom: 0; 37 | } 38 | 39 | h6 { 40 | margin-top: 5px; 41 | margin-bottom: 0; 42 | } 43 | } 44 | } 45 | 46 | .padding-left0 { 47 | padding-left: 0 !important; 48 | } 49 | 50 | .padding-right0 { 51 | padding-right: 0 !important; 52 | } -------------------------------------------------------------------------------- /src/app/modules/categories-list/categories-list.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { CategoriesListPage } from './categories-list.page'; 5 | 6 | describe('CategoriesListPage', () => { 7 | let component: CategoriesListPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ CategoriesListPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(CategoriesListPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/categories-list/categories-list.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-categories-list', 5 | templateUrl: './categories-list.page.html', 6 | styleUrls: ['./categories-list.page.scss'], 7 | }) 8 | export class CategoriesListPage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/modules/checkout/checkout-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { CheckoutPage } from './checkout.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: CheckoutPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class CheckoutPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/checkout/checkout.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | import { CheckoutPageRoutingModule } from './checkout-routing.module'; 8 | 9 | import { CheckoutPage } from './checkout.page'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | CommonModule, 14 | FormsModule, 15 | IonicModule, 16 | CheckoutPageRoutingModule 17 | ], 18 | declarations: [CheckoutPage] 19 | }) 20 | export class CheckoutPageModule {} 21 | -------------------------------------------------------------------------------- /src/app/modules/checkout/checkout.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |

Checkout

19 | 20 |
21 | 22 | 23 |
24 | 25 |
26 | 27 |
28 |

Women t-shirt

29 |

Lotto.LTD

30 |

$34.00

31 | 32 |
33 | - 34 | 1 35 | + 36 |
37 |
38 |
39 |
40 | 41 | 42 | 43 |
44 | 45 |
46 | 47 |
48 |

Female t-shirt

49 |

Bata

50 |

$44.00

51 | 52 |
53 | - 54 | 1 55 | + 56 |
57 |
58 |
59 |
60 |
61 | 62 |
63 | 64 | 37/6 A, Moratuwa, Sri Lanka 65 |   66 | 67 |
68 | 69 |
70 | 71 |
72 | 73 | Sub Total 74 | $160.00 75 | 76 | 77 | Discount 78 | 5% 79 | 80 | 81 | Shipping 82 | $10.00 83 | 84 | 85 | Total 86 | $162.00 87 | 88 |
89 |
90 | 91 | 92 | Buy 93 | 94 | -------------------------------------------------------------------------------- /src/app/modules/checkout/checkout.page.scss: -------------------------------------------------------------------------------- 1 | .backbtn { 2 | margin-left: 15px; 3 | } 4 | 5 | .notification { 6 | margin-right: 15px; 7 | } 8 | 9 | ion-content { 10 | --padding-top: 16px; 11 | --padding-bottom: 16px; 12 | --padding-start: 26px; 13 | --padding-end: 26px; 14 | } 15 | 16 | .title { 17 | margin-top: 0; 18 | color: #434343; 19 | } 20 | 21 | .cart-items { 22 | ion-card { 23 | margin-left: 0; 24 | margin-right: 0; 25 | border-radius: 0; 26 | 27 | ion-card-content { 28 | display: flex; 29 | position: relative; 30 | 31 | .item-img { 32 | display: flex; 33 | align-items: center; 34 | margin-right: 16px; 35 | 36 | img { 37 | object-fit: cover; 38 | width: 110px; 39 | height: 110px; 40 | box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.16); 41 | } 42 | } 43 | 44 | .item-info { 45 | p { 46 | font-size: 16px; 47 | } 48 | 49 | p:nth-child(1) { 50 | color: #434343; 51 | } 52 | p:nth-child(2) { 53 | color: #919191; 54 | } 55 | p:nth-child(3) { 56 | color: var(--ion-color-primary); 57 | } 58 | 59 | .qty-selector { 60 | display: flex; 61 | justify-content: center; 62 | align-items: center; 63 | background: #f6f6f6; 64 | border-radius: 5px; 65 | margin-top: 10px; 66 | 67 | ion-button { 68 | --color: #565656; 69 | font-size: 16px; 70 | margin-left: 8px; 71 | margin-right: 8px; 72 | } 73 | 74 | ion-label { 75 | color: #565656 !important; 76 | font-size: 16px; 77 | } 78 | } 79 | } 80 | } 81 | } 82 | } 83 | 84 | .address { 85 | ion-item { 86 | --padding-start: 0; 87 | font-size: 18px; 88 | color: #434343; 89 | 90 | ion-badge { 91 | width: 12px; 92 | height: 12px; 93 | padding: 0; 94 | border-radius: 50%; 95 | } 96 | } 97 | } 98 | 99 | hr { 100 | background: #97979713; 101 | } 102 | 103 | .cart-total { 104 | ion-item { 105 | --padding-start: 0; 106 | --inner-padding-end: 0; 107 | 108 | ion-label { 109 | margin-right: 0; 110 | } 111 | 112 | ion-label:nth-child(1) { 113 | color: #919191; 114 | } 115 | 116 | ion-label:nth-child(2) { 117 | color: #434343; 118 | } 119 | } 120 | } 121 | 122 | ion-footer { 123 | padding-left: 20px; 124 | padding-right: 20px; 125 | 126 | .main-button::after { 127 | box-shadow: none !important; 128 | } 129 | } -------------------------------------------------------------------------------- /src/app/modules/checkout/checkout.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { CheckoutPage } from './checkout.page'; 5 | 6 | describe('CheckoutPage', () => { 7 | let component: CheckoutPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ CheckoutPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(CheckoutPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/checkout/checkout.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-checkout', 5 | templateUrl: './checkout.page.html', 6 | styleUrls: ['./checkout.page.scss'], 7 | }) 8 | export class CheckoutPage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/modules/common/common-features.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { IonicModule } from '@ionic/angular'; 4 | import { HeaderComponent } from './header/header.component'; 5 | import { NotificationComponent } from './notification/notification.component'; 6 | 7 | @NgModule({ 8 | declarations: [ 9 | HeaderComponent, 10 | NotificationComponent 11 | ], 12 | imports: [ 13 | CommonModule, 14 | IonicModule 15 | ], 16 | exports: [ 17 | HeaderComponent, 18 | NotificationComponent 19 | ] 20 | }) 21 | export class CommonFeaturesModule { } 22 | -------------------------------------------------------------------------------- /src/app/modules/common/header/header.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/app/modules/common/header/header.component.scss: -------------------------------------------------------------------------------- 1 | ion-menu-button { 2 | margin-left: 10px; 3 | } 4 | 5 | .filter { 6 | margin-right: 10px; 7 | } 8 | .backbtn { 9 | margin-left: 15px; 10 | } 11 | 12 | .notification { 13 | margin-right: 15px; 14 | } -------------------------------------------------------------------------------- /src/app/modules/common/header/header.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { HeaderComponent } from './header.component'; 5 | 6 | describe('HeaderComponent', () => { 7 | let component: HeaderComponent; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ HeaderComponent ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(HeaderComponent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/common/header/header.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Input, OnInit } from '@angular/core'; 2 | import { NavController } from '@ionic/angular'; 3 | 4 | @Component({ 5 | selector: 'app-header', 6 | templateUrl: './header.component.html', 7 | styleUrls: ['./header.component.scss'], 8 | }) 9 | export class HeaderComponent implements OnInit { 10 | 11 | @Input() 12 | buttons = ['MENU', 'NOTIFICATION', 'FILTER']; 13 | 14 | @Input() 15 | route = ''; 16 | 17 | constructor( 18 | private navCtrl: NavController, 19 | ) { } 20 | 21 | ngOnInit() {} 22 | 23 | navigateToPage(){ 24 | this.navCtrl.navigateRoot(this.route, { animationDirection: 'back' }); 25 | } 26 | 27 | get isShowMenu(): boolean{ 28 | return !!this.buttons.find(item=> item === 'MENU'); 29 | } 30 | 31 | get isShowNotification(): boolean{ 32 | return !!this.buttons.find(item=> item === 'NOTIFICATION'); 33 | } 34 | 35 | get isShowBack(): boolean{ 36 | return !!this.buttons.find(item=> item === 'BACK'); 37 | } 38 | 39 | get isShowFilter(): boolean{ 40 | return !!this.buttons.find(item=> item === 'FILTER'); 41 | } 42 | 43 | get isShowSearch(): boolean{ 44 | return !!this.buttons.find(item=> item === 'SEARCH'); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/app/modules/common/notification/notification.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |   4 | 5 | -------------------------------------------------------------------------------- /src/app/modules/common/notification/notification.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/app/modules/common/notification/notification.component.scss -------------------------------------------------------------------------------- /src/app/modules/common/notification/notification.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { NotificationComponent } from './notification.component'; 5 | 6 | describe('NotificationComponent', () => { 7 | let component: NotificationComponent; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ NotificationComponent ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(NotificationComponent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/common/notification/notification.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-notification', 5 | templateUrl: './notification.component.html', 6 | styleUrls: ['./notification.component.scss'], 7 | }) 8 | export class NotificationComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() {} 13 | 14 | showNotifications(){ 15 | console.log('Will show Notifications'); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/app/modules/confirm/confirm-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { ConfirmPage } from './confirm.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: ConfirmPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class ConfirmPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/confirm/confirm.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | import { ConfirmPageRoutingModule } from './confirm-routing.module'; 8 | 9 | import { ConfirmPage } from './confirm.page'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | CommonModule, 14 | FormsModule, 15 | IonicModule, 16 | ConfirmPageRoutingModule 17 | ], 18 | declarations: [ConfirmPage] 19 | }) 20 | export class ConfirmPageModule {} 21 | -------------------------------------------------------------------------------- /src/app/modules/confirm/confirm.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
10 | 11 |
12 |
13 | 14 |
15 |
16 | 17 |

Confirmation

18 |

19 | You have successfully
20 | completed your payment procedure 21 |

22 |
23 |
24 |
25 | 26 | 27 | Back to Home 28 | 29 | -------------------------------------------------------------------------------- /src/app/modules/confirm/confirm.page.scss: -------------------------------------------------------------------------------- 1 | .confirmation { 2 | height: 100%; 3 | display: flex; 4 | justify-content: center; 5 | align-items: center; 6 | 7 | .outer-circle { 8 | width: 200px; 9 | height: 200px; 10 | background: #f8f8f8; 11 | margin-left: auto; 12 | margin-right: auto; 13 | border-radius: 50%; 14 | display: flex; 15 | justify-content: center; 16 | align-items: center; 17 | 18 | .inner-circle { 19 | width: 150px; 20 | height: 150px; 21 | border-radius: 50%; 22 | background: #eeeeee; 23 | display: flex; 24 | justify-content: center; 25 | align-items: center; 26 | 27 | img { 28 | max-width: 30%; 29 | } 30 | } 31 | } 32 | } 33 | ion-footer { 34 | padding-left: 20px; 35 | padding-right: 20px; 36 | 37 | .main-button::after { 38 | box-shadow: none !important; 39 | } 40 | } -------------------------------------------------------------------------------- /src/app/modules/confirm/confirm.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { ConfirmPage } from './confirm.page'; 5 | 6 | describe('ConfirmPage', () => { 7 | let component: ConfirmPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ ConfirmPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(ConfirmPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/confirm/confirm.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-confirm', 5 | templateUrl: './confirm.page.html', 6 | styleUrls: ['./confirm.page.scss'], 7 | }) 8 | export class ConfirmPage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/modules/favorite/favorite-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { FavoritePage } from './favorite.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: FavoritePage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class FavoritePageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/favorite/favorite.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | import { CommonFeaturesModule } from '../common/common-features.module'; 7 | 8 | import { FavoritePageRoutingModule } from './favorite-routing.module'; 9 | 10 | import { FavoritePage } from './favorite.page'; 11 | 12 | @NgModule({ 13 | imports: [ 14 | CommonModule, 15 | FormsModule, 16 | IonicModule, 17 | CommonFeaturesModule, 18 | FavoritePageRoutingModule 19 | ], 20 | declarations: [FavoritePage] 21 | }) 22 | export class FavoritePageModule {} 23 | -------------------------------------------------------------------------------- /src/app/modules/favorite/favorite.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Favorite

5 | 6 | 7 | 8 | 9 |

$34.00

10 |
Women t-shirt
11 |
12 | 13 | 14 |

$24.00

15 |
Mens t-shirt
16 |
17 | 18 | 19 |

$54.00

20 |
Women t-shirt
21 |
22 | 23 | 24 |

$44.00

25 |
Blezer
26 |
27 | 28 | 29 |

$14.00

30 |
T-shirt
31 |
32 | 33 | 34 |

$30.00

35 |
Shirt
36 |
37 |
38 |
39 | -------------------------------------------------------------------------------- /src/app/modules/favorite/favorite.page.scss: -------------------------------------------------------------------------------- 1 | .backbtn { 2 | margin-left: 15px; 3 | } 4 | 5 | .notification { 6 | margin-right: 15px; 7 | } 8 | 9 | ion-content { 10 | --padding-top: 16px; 11 | --padding-bottom: 16px; 12 | --padding-start: 26px; 13 | --padding-end: 26px; 14 | } 15 | 16 | .title { 17 | margin-top: 0; 18 | color: #434343; 19 | } 20 | 21 | .favorite-items { 22 | margin-top: 20px; 23 | 24 | ion-col { 25 | padding: 10px; 26 | 27 | img { 28 | width: 100%; 29 | height: 180px; 30 | object-fit: cover; 31 | border-radius: 8px; 32 | } 33 | 34 | p { 35 | margin-top: 5px; 36 | margin-bottom: 0; 37 | } 38 | 39 | h6 { 40 | margin-top: 5px; 41 | margin-bottom: 0; 42 | } 43 | } 44 | } 45 | 46 | .padding-left0 { 47 | padding-left: 0 !important; 48 | } 49 | 50 | .padding-right0 { 51 | padding-right: 0 !important; 52 | } -------------------------------------------------------------------------------- /src/app/modules/favorite/favorite.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { FavoritePage } from './favorite.page'; 5 | 6 | describe('FavoritePage', () => { 7 | let component: FavoritePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ FavoritePage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(FavoritePage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/favorite/favorite.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-favorite', 5 | templateUrl: './favorite.page.html', 6 | styleUrls: ['./favorite.page.scss'], 7 | }) 8 | export class FavoritePage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/modules/folder/folder-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { FolderPage } from './folder.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: FolderPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class FolderPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/folder/folder.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | import { FolderPageRoutingModule } from './folder-routing.module'; 8 | 9 | import { FolderPage } from './folder.page'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | CommonModule, 14 | FormsModule, 15 | IonicModule, 16 | FolderPageRoutingModule 17 | ], 18 | declarations: [FolderPage] 19 | }) 20 | export class FolderPageModule {} 21 | -------------------------------------------------------------------------------- /src/app/modules/folder/folder.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ folder }} 7 | 8 | 9 | 10 | 11 | 12 | 13 | {{ folder }} 14 | 15 | 16 | 17 |
18 | {{ folder }} 19 |

Explore UI Components

20 |
21 |
22 | -------------------------------------------------------------------------------- /src/app/modules/folder/folder.page.scss: -------------------------------------------------------------------------------- 1 | ion-menu-button { 2 | color: var(--ion-color-primary); 3 | } 4 | 5 | #container { 6 | text-align: center; 7 | position: absolute; 8 | left: 0; 9 | right: 0; 10 | top: 50%; 11 | transform: translateY(-50%); 12 | } 13 | 14 | #container strong { 15 | font-size: 20px; 16 | line-height: 26px; 17 | } 18 | 19 | #container p { 20 | font-size: 16px; 21 | line-height: 22px; 22 | color: #8c8c8c; 23 | margin: 0; 24 | } 25 | 26 | #container a { 27 | text-decoration: none; 28 | } -------------------------------------------------------------------------------- /src/app/modules/folder/folder.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | import { RouterModule } from '@angular/router'; 4 | import { FolderPage } from './folder.page'; 5 | 6 | describe('FolderPage', () => { 7 | let component: FolderPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ FolderPage ], 13 | imports: [IonicModule.forRoot(), RouterModule.forRoot([], { relativeLinkResolution: 'legacy' })] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(FolderPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/folder/folder.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-folder', 6 | templateUrl: './folder.page.html', 7 | styleUrls: ['./folder.page.scss'], 8 | }) 9 | export class FolderPage implements OnInit { 10 | public folder: string; 11 | 12 | constructor(private activatedRoute: ActivatedRoute) { } 13 | 14 | ngOnInit() { 15 | this.folder = this.activatedRoute.snapshot.paramMap.get('id'); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/app/modules/home/home-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { HomePage } from './home.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: HomePage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class HomePageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/home/home.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | import { SharedModule } from '../shared/shared.module'; 7 | import { CommonFeaturesModule } from '../common/common-features.module'; 8 | 9 | import { HomePageRoutingModule } from './home-routing.module'; 10 | 11 | import { HomePage } from './home.page'; 12 | 13 | @NgModule({ 14 | imports: [ 15 | CommonModule, 16 | FormsModule, 17 | IonicModule, 18 | HomePageRoutingModule, 19 | SharedModule, 20 | CommonFeaturesModule 21 | ], 22 | declarations: [HomePage] 23 | }) 24 | export class HomePageModule {} 25 | -------------------------------------------------------------------------------- /src/app/modules/home/home.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 |
12 |

Categories

13 |

See all

14 |
15 | 16 |
17 | 18 | 19 | 20 |

{{ category.name }}

21 | 22 |
23 |
24 |
25 |
26 | 27 |
28 |

Featured

29 |

See all

30 |
31 | 32 |
33 | 34 | 35 | 36 | 37 |

${{ product.price }}

38 |
{{ product.name }}
39 |
40 |
41 |
42 |
43 | 44 |
45 |

Best Sell

46 |

See all

47 |
48 | 49 |
50 | 51 | 52 | 53 | 54 |

${{ product.price }}

55 |
{{ product.name }}
56 |
57 |
58 |
59 |
60 |
61 | -------------------------------------------------------------------------------- /src/app/modules/home/home.page.scss: -------------------------------------------------------------------------------- 1 | .search { 2 | margin-bottom: 20px; 3 | 4 | ion-item { 5 | border-radius: 10px; 6 | box-shadow: 0px 13px 30px 0px rgba(0, 0, 0, 0.09); 7 | padding: 8px; 8 | 9 | ion-icon { 10 | margin-right: 16px; 11 | } 12 | 13 | ion-input { 14 | padding-left: 10px !important; 15 | border-left: 1px solid #F4F4F4; 16 | } 17 | } 18 | } 19 | 20 | .title { 21 | display: flex; 22 | justify-content: space-between; 23 | align-items: center; 24 | padding-bottom: 32px; 25 | 26 | h2 { 27 | margin: 0 0 0 16px; 28 | color: #434343; 29 | } 30 | 31 | p { 32 | margin: 0 16px 0 0; 33 | color: #656565; 34 | } 35 | } 36 | 37 | .category-slider { 38 | ion-slide { 39 | width: 150px; 40 | height: 100px; 41 | margin-right: 10px; 42 | margin-left: 20px; 43 | margin-bottom: 30px; 44 | 45 | ion-col { 46 | height: 100%; 47 | display: flex; 48 | justify-content: center; 49 | align-items: center; 50 | 51 | h4 { 52 | color: #ffffff; 53 | margin: 0; 54 | } 55 | 56 | img { 57 | position: absolute; 58 | width: 100%; 59 | height: 100%; 60 | object-fit: cover; 61 | border-radius: 8px; 62 | top: 0; 63 | left: 0; 64 | z-index: -1; 65 | box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.16); 66 | } 67 | } 68 | } 69 | } 70 | 71 | .font-bold { 72 | font-weight: bold; 73 | } 74 | 75 | .product-slider { 76 | margin-bottom: 30px; 77 | 78 | ion-slide { 79 | width: 150px; 80 | height: auto; 81 | margin-left: 20px; 82 | margin-right: 10px; 83 | 84 | ion-col { 85 | img { 86 | width: 100%; 87 | height: 180px; 88 | object-fit: cover; 89 | border-radius: 8px; 90 | } 91 | 92 | p { 93 | margin-top: 5px; 94 | margin-bottom: 0; 95 | } 96 | 97 | h6 { 98 | margin-top: 5px; 99 | margin-bottom: 0; 100 | } 101 | } 102 | } 103 | } 104 | 105 | // Removing highlight when focused/clicked on product 106 | ion-slide:focus { 107 | outline: none !important; 108 | } 109 | 110 | ion-col:focus { 111 | outline: none !important; 112 | } 113 | -------------------------------------------------------------------------------- /src/app/modules/home/home.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { HomePage } from './home.page'; 5 | 6 | describe('HomePage', () => { 7 | let component: HomePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ HomePage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(HomePage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/home/home.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { DataService, StorageService } from '../../services'; 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.page.html', 6 | styleUrls: ['./home.page.scss'], 7 | }) 8 | export class HomePage implements OnInit { 9 | public categories = []; 10 | public featuredProducts = []; 11 | public bestSellProducts = []; 12 | 13 | constructor( 14 | private data: DataService, 15 | private storageService: StorageService 16 | ) { } 17 | 18 | async ngOnInit() { 19 | this.categories = this.data.getCategories(); 20 | this.featuredProducts = this.data.getFeaturedProducts(); 21 | this.bestSellProducts = this.data.getBestSellProducts(); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/app/modules/item-details/item-details-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { ItemDetailsPage } from './item-details.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: ItemDetailsPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class ItemDetailsPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/item-details/item-details.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | import { CommonFeaturesModule } from '../common/common-features.module'; 7 | 8 | import { ItemDetailsPageRoutingModule } from './item-details-routing.module'; 9 | 10 | import { ItemDetailsPage } from './item-details.page'; 11 | 12 | @NgModule({ 13 | imports: [ 14 | CommonModule, 15 | FormsModule, 16 | IonicModule, 17 | CommonFeaturesModule, 18 | ItemDetailsPageRoutingModule 19 | ], 20 | declarations: [ItemDetailsPage] 21 | }) 22 | export class ItemDetailsPageModule {} 23 | -------------------------------------------------------------------------------- /src/app/modules/item-details/item-details.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |

Black turtleneck top

18 | 19 |

20 | $42 21 | $62 22 |

23 |
24 | 25 |
26 |
27 |
28 | 29 |
30 | 31 | 32 |
33 | 4.5 34 |
35 | 36 | Very Good 37 |
38 | 39 |
49 Reviews
40 |
41 |
42 |
43 | 44 |
45 |
46 |
47 | 48 |
49 |
Description
50 | 51 |

52 | A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. 53 |

54 | 55 |
56 | 57 |
58 |
59 |
60 | 61 |
62 | 63 | 64 | Select Size 65 | 66 | 67 | Select Color 68 | 69 | 70 |
71 | 72 |
73 |
74 |
75 | 76 |
77 |
78 |
79 | S 80 |
81 |
82 | M 83 |
84 |
85 | L 86 |
87 |
88 | XL 89 |
90 |
91 | 92 |
93 |
94 | BLACK 95 |
96 |
97 | GREEN 98 |
99 |
100 | BLUE 101 |
102 |
103 |
104 |
105 | 106 | 107 | 108 | Add to cart 109 | 110 | 111 | Buy now 112 | 113 | 114 | -------------------------------------------------------------------------------- /src/app/modules/item-details/item-details.page.scss: -------------------------------------------------------------------------------- 1 | .backbtn { 2 | margin-left: 15px; 3 | } 4 | 5 | .notification { 6 | margin-right: 15px; 7 | } 8 | 9 | ion-content { 10 | --padding-top: 16px; 11 | --padding-bottom: 16px; 12 | --padding-start: 26px; 13 | --padding-end: 26px; 14 | } 15 | 16 | .item-name { 17 | color: #2a2a2a; 18 | } 19 | 20 | .price { 21 | color: var(--ion-color-primary); 22 | 23 | span { 24 | color: #2a2a2a; 25 | text-decoration: line-through; 26 | margin-left: 20px; 27 | font-size: medium; 28 | vertical-align: top; 29 | } 30 | } 31 | 32 | .seperator { 33 | hr { 34 | position: absolute; 35 | left: 0; 36 | width: 100%; 37 | background: #e2e2e2; 38 | } 39 | } 40 | 41 | .review { 42 | margin-top: 16px; 43 | color: #2a2a2a; 44 | 45 | .rating { 46 | display: inline-block; 47 | color: #ffffff; 48 | background: var(--ion-color-primary); 49 | padding: 10px 20px 10px 20px; 50 | border-radius: 5px; 51 | margin-right: 10px; 52 | } 53 | 54 | .count { 55 | height: 100%; 56 | display: flex; 57 | justify-content: flex-end; 58 | align-items: center; 59 | color: var(--ion-color-primary); 60 | } 61 | } 62 | 63 | .description { 64 | h5 { 65 | color: #2a2a2a; 66 | padding-top: 10px; 67 | } 68 | 69 | p { 70 | color: #656565; 71 | } 72 | } 73 | 74 | .variation { 75 | padding-top: 16px; 76 | 77 | ion-segment-button { 78 | color: #2a2a2a; 79 | } 80 | } 81 | 82 | .variation-selector { 83 | margin-top: 30px; 84 | display: flex; 85 | position: relative; 86 | 87 | .active-variation { 88 | opacity: 1 !important; 89 | z-index: 1 !important; 90 | } 91 | 92 | .sizes { 93 | display: flex; 94 | justify-content: center; 95 | align-items: center; 96 | position: absolute; 97 | width: 100%; 98 | opacity: 0; 99 | z-index: 0; 100 | padding-bottom: 30px; 101 | 102 | div { 103 | display: flex; 104 | justify-content: center; 105 | align-items: center; 106 | background-color: #f3f3f3; 107 | width: 50px; 108 | height: 50px; 109 | margin-right: 8px; 110 | transition: 0.5s ease-in-out; 111 | } 112 | 113 | .active { 114 | color: #ffffff; 115 | background-color: var(--ion-color-primary); 116 | } 117 | } 118 | 119 | .colors { 120 | display: flex; 121 | justify-content: center; 122 | align-items: center; 123 | position: absolute; 124 | width: 100%; 125 | opacity: 0; 126 | z-index: 0; 127 | padding-bottom: 30px; 128 | 129 | div { 130 | display: flex; 131 | justify-content: center; 132 | align-items: center; 133 | background-color: #f3f3f3; 134 | width: 70px; 135 | height: 50px; 136 | margin-right: 8px; 137 | transition: 0.5s ease-in-out; 138 | } 139 | 140 | .active { 141 | color: #ffffff; 142 | background-color: var(--ion-color-primary); 143 | } 144 | } 145 | } 146 | 147 | ion-footer { 148 | ion-row { 149 | padding: 0; 150 | 151 | ion-col { 152 | padding: 0; 153 | 154 | ion-button { 155 | margin: 0; 156 | height: 50px; 157 | font-size: 18px; 158 | box-shadow: none; 159 | } 160 | } 161 | } 162 | } 163 | 164 | // This will remove footer shadow on android 165 | .footer-md::before { 166 | background-image: none !important; 167 | } -------------------------------------------------------------------------------- /src/app/modules/item-details/item-details.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { ItemDetailsPage } from './item-details.page'; 5 | 6 | describe('ItemDetailsPage', () => { 7 | let component: ItemDetailsPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ ItemDetailsPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(ItemDetailsPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/item-details/item-details.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Animation, AnimationController } from '@ionic/angular'; 3 | 4 | @Component({ 5 | selector: 'app-item-details', 6 | templateUrl: './item-details.page.html', 7 | styleUrls: ['./item-details.page.scss'], 8 | }) 9 | export class ItemDetailsPage implements OnInit { 10 | selectedSize: number; 11 | selectedColor: number; 12 | activeVariation: string; 13 | 14 | constructor( 15 | private animatioCntrl: AnimationController, 16 | ) { } 17 | 18 | ngOnInit() { 19 | this.activeVariation = 'size'; 20 | } 21 | 22 | segmentChanged(e: any) { 23 | this.activeVariation = e.detail.value; 24 | 25 | if (this.activeVariation == 'color') { 26 | this.animatioCntrl.create() 27 | .addElement(document.querySelector('.sizes')) 28 | .duration(500) 29 | .iterations(1) 30 | .fromTo('transform', 'translateX(0px)', 'translateX(100%)') 31 | .fromTo('opacity', '1', '0.2') 32 | .play(); 33 | 34 | this.animatioCntrl.create() 35 | .addElement(document.querySelector('.colors')) 36 | .duration(500) 37 | .iterations(1) 38 | .fromTo('transform', 'translateX(-100%)', 'translateX(0)') 39 | .fromTo('opacity', '0.2', '1') 40 | .play(); 41 | } else { 42 | this.animatioCntrl.create() 43 | .addElement(document.querySelector('.sizes')) 44 | .duration(500) 45 | .iterations(1) 46 | .fromTo('transform', 'translateX(100%)', 'translateX(0)') 47 | .fromTo('opacity', '0.2', '1') 48 | .play(); 49 | 50 | this.animatioCntrl.create() 51 | .addElement(document.querySelector('.colors')) 52 | .duration(500) 53 | .iterations(1) 54 | .fromTo('transform', 'translateX(0px)', 'translateX(-100%)') 55 | .fromTo('opacity', '1', '0.2') 56 | .play(); 57 | } 58 | } 59 | 60 | changeSize(size: number) { 61 | this.selectedSize = size; 62 | } 63 | 64 | changeColor(color: number) { 65 | this.selectedColor = color; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/app/modules/login/login-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { LoginPage } from './login.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: LoginPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class LoginPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/login/login.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | import { ReactiveFormsModule } from '@angular/forms'; 8 | 9 | import { SharedModule } from '../../modules/shared/shared.module'; 10 | 11 | import { LoginPageRoutingModule } from './login-routing.module'; 12 | 13 | import { LoginPage } from './login.page'; 14 | 15 | @NgModule({ 16 | imports: [ 17 | CommonModule, 18 | FormsModule, 19 | IonicModule, 20 | LoginPageRoutingModule, 21 | SharedModule, 22 | ReactiveFormsModule 23 | ], 24 | declarations: [LoginPage] 25 | }) 26 | export class LoginPageModule {} 27 | -------------------------------------------------------------------------------- /src/app/modules/login/login.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |

Login

14 | 15 |
16 |
17 | 18 | Email 19 | 20 | 21 | 22 | Password 23 | 24 | 25 | 26 | 27 | Log in 28 |
29 | 35 |
36 |
37 |
-------------------------------------------------------------------------------- /src/app/modules/login/login.page.scss: -------------------------------------------------------------------------------- 1 | // This will remove iOS Header Line 2 | ion-toolbar { 3 | --border-width: 0 !important; 4 | } 5 | 6 | // Removing Android Header Line 7 | .header-md::after { 8 | background: none !important; 9 | } 10 | 11 | .container h1 { 12 | margin-top: 0; 13 | } 14 | 15 | .backbtn { 16 | margin-left: 20px; 17 | } 18 | 19 | .form-container { 20 | margin-top: 48px; 21 | } 22 | 23 | .form-container ion-item { 24 | --padding-start: 0; 25 | --border-color: #DADADA; 26 | } 27 | 28 | .form-container ion-item ion-label { 29 | color: #A6A6A6; 30 | } 31 | 32 | .form-container ion-item ion-icon { 33 | margin-top: auto; 34 | color: #c6cbd4; 35 | } 36 | 37 | .form-container ion-button { 38 | margin-top: 48px; 39 | } 40 | 41 | .sign-up { 42 | display: flex; 43 | justify-content: center; 44 | align-items: center; 45 | } 46 | 47 | .sign-up ion-button { 48 | margin: 0; 49 | } -------------------------------------------------------------------------------- /src/app/modules/login/login.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { LoginPage } from './login.page'; 5 | 6 | describe('LoginPage', () => { 7 | let component: LoginPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ LoginPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(LoginPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/login/login.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { FormBuilder, FormGroup, Validators } from '@angular/forms'; 3 | import { NavController } from '@ionic/angular'; 4 | import { UtilService, StorageService, AuthService } from '../../services'; 5 | @Component({ 6 | selector: 'app-login', 7 | templateUrl: './login.page.html', 8 | styleUrls: ['./login.page.scss'], 9 | }) 10 | export class LoginPage implements OnInit { 11 | 12 | formGrp: FormGroup; 13 | 14 | constructor( 15 | private storageService: StorageService, 16 | private util: UtilService, 17 | private authService: AuthService, 18 | private navCtrl: NavController, 19 | private fb: FormBuilder 20 | ) { } 21 | 22 | ngOnInit() { 23 | this.createForm(); 24 | } 25 | 26 | createForm(): void { 27 | this.formGrp = this.fb.group({ 28 | email: ['techyaura@gmail.com', [Validators.required]], 29 | password: ['techyaura', [Validators.required]] 30 | }); 31 | } 32 | 33 | login() { 34 | if(this.formGrp.valid){ 35 | this.authService.login(this.formGrp.value) 36 | .subscribe( 37 | response=>{ 38 | // Enabling Side Menu 39 | this.storageService.set('__token', response.token); 40 | this.storageService.set('__session', response.user); 41 | this.util.setMenuState(true); 42 | this.navCtrl.navigateRoot('/home', { animationDirection: 'forward' }); 43 | }, 44 | (err=>{ 45 | console.log(err); 46 | }) 47 | ) 48 | } 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/app/modules/login/model.ts: -------------------------------------------------------------------------------- 1 | export type IGender = 'Male' | 'Female'; 2 | 3 | export interface IUser { 4 | email: string; 5 | password: string; 6 | } 7 | 8 | export interface ISessionUser { 9 | email: string; 10 | name?: string; 11 | gender?: IGender; 12 | phone?: string; 13 | city?: string; 14 | address?: string; 15 | } 16 | 17 | export interface ISession { 18 | token: string; 19 | user: ISessionUser; 20 | } 21 | -------------------------------------------------------------------------------- /src/app/modules/my-cart/my-cart-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { MyCartPage } from './my-cart.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: MyCartPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class MyCartPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/my-cart/my-cart.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | import { CommonFeaturesModule } from '../common/common-features.module'; 7 | 8 | import { MyCartPageRoutingModule } from './my-cart-routing.module'; 9 | 10 | import { MyCartPage } from './my-cart.page'; 11 | 12 | @NgModule({ 13 | imports: [ 14 | CommonModule, 15 | FormsModule, 16 | IonicModule, 17 | CommonFeaturesModule, 18 | MyCartPageRoutingModule 19 | ], 20 | declarations: [MyCartPage] 21 | }) 22 | export class MyCartPageModule {} 23 | -------------------------------------------------------------------------------- /src/app/modules/my-cart/my-cart.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Cart

5 | 6 |
7 | 8 | 9 |
10 | 11 |
12 | 13 |
14 |

Women t-shirt

15 |

Lotto.LTD

16 |

$34.00

17 | 18 |
19 | - 20 | 1 21 | + 22 |
23 |
24 |
25 |
26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 |
34 |

Female t-shirt

35 |

Bata

36 |

$44.00

37 | 38 |
39 | - 40 | 1 41 | + 42 |
43 |
44 |
45 |
46 | 47 | 48 | 49 |
50 | 51 |
52 | 53 |
54 |

Shirt

55 |

Next

56 |

$54.00

57 | 58 |
59 | - 60 | 1 61 | + 62 |
63 |
64 |
65 |
66 | 67 | 68 | 69 |
70 | 71 |
72 | 73 |
74 |

Women shirt

75 |

Plus Point

76 |

$34.00

77 | 78 |
79 | - 80 | 1 81 | + 82 |
83 |
84 |
85 |
86 | 87 | 88 | 89 |
90 | 91 |
92 | 93 |
94 |

Shirt

95 |

Cat's Eye

96 |

$44.00

97 | 98 |
99 | - 100 | 1 101 | + 102 |
103 |
104 |
105 |
106 |
107 |
108 | 109 | 110 | Continue 111 | 112 | 113 | -------------------------------------------------------------------------------- /src/app/modules/my-cart/my-cart.page.scss: -------------------------------------------------------------------------------- 1 | .backbtn { 2 | margin-left: 15px; 3 | } 4 | 5 | .notification { 6 | margin-right: 15px; 7 | } 8 | 9 | ion-content { 10 | --padding-top: 16px; 11 | --padding-bottom: 16px; 12 | --padding-start: 26px; 13 | --padding-end: 26px; 14 | } 15 | 16 | .title { 17 | margin-top: 0; 18 | color: #434343; 19 | } 20 | 21 | .cart-items { 22 | ion-card { 23 | margin-left: 0; 24 | margin-right: 0; 25 | border-radius: 0; 26 | 27 | ion-card-content { 28 | display: flex; 29 | position: relative; 30 | 31 | .item-img { 32 | display: flex; 33 | align-items: center; 34 | margin-right: 16px; 35 | 36 | img { 37 | object-fit: cover; 38 | width: 110px; 39 | height: 110px; 40 | box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.16); 41 | } 42 | } 43 | 44 | .item-info { 45 | p { 46 | font-size: 16px; 47 | } 48 | 49 | p:nth-child(1) { 50 | color: #434343; 51 | } 52 | p:nth-child(2) { 53 | color: #919191; 54 | } 55 | p:nth-child(3) { 56 | color: var(--ion-color-primary); 57 | } 58 | 59 | .qty-selector { 60 | display: flex; 61 | justify-content: center; 62 | align-items: center; 63 | background: #f6f6f6; 64 | border-radius: 5px; 65 | margin-top: 10px; 66 | 67 | ion-button { 68 | --color: #565656; 69 | font-size: 16px; 70 | margin-left: 8px; 71 | margin-right: 8px; 72 | } 73 | 74 | ion-label { 75 | color: #565656 !important; 76 | font-size: 16px; 77 | } 78 | } 79 | } 80 | } 81 | } 82 | } 83 | 84 | ion-footer { 85 | padding-left: 20px; 86 | padding-right: 20px; 87 | 88 | .main-button::after { 89 | box-shadow: none !important; 90 | } 91 | } -------------------------------------------------------------------------------- /src/app/modules/my-cart/my-cart.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { MyCartPage } from './my-cart.page'; 5 | 6 | describe('MyCartPage', () => { 7 | let component: MyCartPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ MyCartPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(MyCartPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/my-cart/my-cart.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-my-cart', 5 | templateUrl: './my-cart.page.html', 6 | styleUrls: ['./my-cart.page.scss'], 7 | }) 8 | export class MyCartPage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/modules/my-orders/my-orders-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { MyOrdersPage } from './my-orders.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: MyOrdersPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class MyOrdersPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/my-orders/my-orders.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | import { CommonFeaturesModule } from '../common/common-features.module'; 7 | 8 | import { MyOrdersPageRoutingModule } from './my-orders-routing.module'; 9 | 10 | import { MyOrdersPage } from './my-orders.page'; 11 | 12 | @NgModule({ 13 | imports: [ 14 | CommonModule, 15 | FormsModule, 16 | IonicModule, 17 | CommonFeaturesModule, 18 | MyOrdersPageRoutingModule 19 | ], 20 | declarations: [MyOrdersPage] 21 | }) 22 | export class MyOrdersPageModule {} 23 | -------------------------------------------------------------------------------- /src/app/modules/my-orders/my-orders.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

My Orders

5 | 6 |
7 | 8 | 9 |
10 | 11 |
12 | 13 |
14 |

Women t-shirt

15 |

Lotto.LTD

16 |

$34.00

17 | 18 | Order Again 19 |
20 |
21 |
22 | 23 | 24 |
25 | 26 |
27 | 28 |
29 |

Female t-shirt

30 |

Bata

31 |

$44.00

32 | 33 | Order Again 34 |
35 |
36 |
37 | 38 | 39 |
40 | 41 |
42 | 43 |
44 |

Shirt

45 |

Next

46 |

$30.00

47 | 48 | Order Again 49 |
50 |
51 |
52 | 53 | 54 |
55 | 56 |
57 | 58 |
59 |

Women shirt

60 |

Plus Point

61 |

$54.00

62 | 63 | Order Again 64 |
65 |
66 |
67 | 68 | 69 |
70 | 71 |
72 | 73 |
74 |

Shirt

75 |

Cat's Eye

76 |

$50.00

77 | 78 | Order Again 79 |
80 |
81 |
82 |
83 |
84 | -------------------------------------------------------------------------------- /src/app/modules/my-orders/my-orders.page.scss: -------------------------------------------------------------------------------- 1 | .backbtn { 2 | margin-left: 15px; 3 | } 4 | 5 | .notification { 6 | margin-right: 15px; 7 | } 8 | 9 | ion-content { 10 | --padding-top: 16px; 11 | --padding-bottom: 16px; 12 | --padding-start: 26px; 13 | --padding-end: 26px; 14 | } 15 | 16 | .title { 17 | margin-top: 0; 18 | color: #434343; 19 | } 20 | 21 | .order-items { 22 | ion-card { 23 | margin-left: 0; 24 | margin-right: 0; 25 | border-radius: 0; 26 | 27 | ion-card-content { 28 | display: flex; 29 | position: relative; 30 | 31 | .item-img { 32 | display: flex; 33 | align-items: center; 34 | margin-right: 16px; 35 | 36 | img { 37 | object-fit: cover; 38 | width: 110px; 39 | height: 110px; 40 | box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.16); 41 | } 42 | } 43 | 44 | .item-info { 45 | p { 46 | font-size: 16px; 47 | } 48 | 49 | p:nth-child(1) { 50 | color: #434343; 51 | } 52 | p:nth-child(2) { 53 | color: #919191; 54 | } 55 | p:nth-child(3) { 56 | color: var(--ion-color-primary); 57 | } 58 | 59 | .main-button { 60 | --border-radius: 5px; 61 | margin: 10px 0 0 0; 62 | } 63 | 64 | .main-button::after { 65 | box-shadow: none !important; 66 | } 67 | } 68 | } 69 | } 70 | } -------------------------------------------------------------------------------- /src/app/modules/my-orders/my-orders.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { MyOrdersPage } from './my-orders.page'; 5 | 6 | describe('MyOrdersPage', () => { 7 | let component: MyOrdersPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ MyOrdersPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(MyOrdersPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/my-orders/my-orders.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-my-orders', 5 | templateUrl: './my-orders.page.html', 6 | styleUrls: ['./my-orders.page.scss'], 7 | }) 8 | export class MyOrdersPage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/modules/profile/profile-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { ProfilePage } from './profile.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: ProfilePage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class ProfilePageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/profile/profile.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | import { ReactiveFormsModule } from '@angular/forms'; 7 | import { CommonFeaturesModule } from '../common/common-features.module'; 8 | 9 | import { ProfilePageRoutingModule } from './profile-routing.module'; 10 | 11 | import { ProfilePage } from './profile.page'; 12 | 13 | @NgModule({ 14 | imports: [ 15 | CommonModule, 16 | FormsModule, 17 | IonicModule, 18 | CommonFeaturesModule, 19 | ProfilePageRoutingModule, 20 | ReactiveFormsModule 21 | ], 22 | declarations: [ProfilePage] 23 | }) 24 | export class ProfilePageModule {} 25 | -------------------------------------------------------------------------------- /src/app/modules/profile/profile.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Profile

5 | 6 |
7 |
8 | 9 | Name 10 | 11 | 12 | 13 | Address Lane 14 | 15 | 16 | 17 | City 18 | 19 | 20 | 21 | Gender 22 | 23 | 24 | 25 | Email 26 | 27 | 28 | 29 | Phone Number 30 | 31 | 32 |
33 |
34 |
35 | -------------------------------------------------------------------------------- /src/app/modules/profile/profile.page.scss: -------------------------------------------------------------------------------- 1 | .backbtn { 2 | margin-left: 15px; 3 | } 4 | 5 | .notification { 6 | margin-right: 15px; 7 | } 8 | 9 | ion-content { 10 | --padding-top: 16px; 11 | --padding-bottom: 16px; 12 | --padding-start: 26px; 13 | --padding-end: 26px; 14 | } 15 | 16 | .title { 17 | margin-top: 0; 18 | color: #434343; 19 | } 20 | 21 | .profile-info { 22 | padding-top: 20px; 23 | 24 | ion-item { 25 | --padding-start: 0; 26 | --border-color: #97979713; 27 | 28 | ion-label { 29 | color: #919191; 30 | font-size: larger; 31 | } 32 | 33 | ion-input { 34 | --color: #434343; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /src/app/modules/profile/profile.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { ProfilePage } from './profile.page'; 5 | 6 | describe('ProfilePage', () => { 7 | let component: ProfilePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ ProfilePage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(ProfilePage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/profile/profile.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { FormBuilder, FormGroup } from '@angular/forms'; 3 | import { debounceTime, distinctUntilChanged, switchMap, take } from 'rxjs/operators'; 4 | import { ISessionUser } from '../../models'; 5 | import { AuthService } from '../../services'; 6 | @Component({ 7 | selector: 'app-profile', 8 | templateUrl: './profile.page.html', 9 | styleUrls: ['./profile.page.scss'], 10 | }) 11 | export class ProfilePage implements OnInit { 12 | 13 | formGrp: FormGroup; 14 | user: ISessionUser; 15 | 16 | constructor( 17 | private authService: AuthService, 18 | private fb: FormBuilder 19 | ) { } 20 | 21 | ngOnInit() { 22 | this.createForm(); 23 | this.fetchProfile(); 24 | this.onFormChange(); 25 | } 26 | 27 | private createForm(): void{ 28 | this.formGrp = this.fb.group({ 29 | email: [''], 30 | name: [''], 31 | gender: [null], 32 | phone: [null], 33 | city: [''], 34 | address: [''] 35 | }); 36 | } 37 | 38 | private fetchProfile(){ 39 | this.authService.profile() 40 | .subscribe(response=>{ 41 | this.populate(response); 42 | }) 43 | } 44 | 45 | private populate(response: ISessionUser){ 46 | this.formGrp.patchValue({ 47 | email: response.email || '', 48 | name: response.name || '', 49 | phone: response.phone || '', 50 | address: response.address || '', 51 | city: response.city || '', 52 | gender: response.gender || '' 53 | }); 54 | } 55 | 56 | private onFormChange(): void { 57 | this.formGrp.valueChanges 58 | .pipe( 59 | debounceTime(500), 60 | distinctUntilChanged(), 61 | switchMap(()=>{ 62 | return this.authService.saveProfile(this.formGrp.value); 63 | }) 64 | ) 65 | .subscribe(()=>{}); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/app/modules/shared/shared.module.ts: -------------------------------------------------------------------------------- 1 | import { ModuleWithProviders, NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { StorageService } from '../../services/storage/storage.service'; 4 | 5 | @NgModule({ 6 | declarations: [], 7 | imports: [ 8 | CommonModule, 9 | ] 10 | }) 11 | export class SharedModule { 12 | static forRoot(): ModuleWithProviders { 13 | return { 14 | ngModule: SharedModule, 15 | providers: [ StorageService ] 16 | }; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/app/modules/signup/signup-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { SignupPage } from './signup.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: SignupPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class SignupPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/signup/signup.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | import { SignupPageRoutingModule } from './signup-routing.module'; 8 | 9 | import { SignupPage } from './signup.page'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | CommonModule, 14 | FormsModule, 15 | IonicModule, 16 | SignupPageRoutingModule 17 | ], 18 | declarations: [SignupPage] 19 | }) 20 | export class SignupPageModule {} 21 | -------------------------------------------------------------------------------- /src/app/modules/signup/signup.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |

Signup

14 | 15 |
16 | 17 | Name 18 | 19 | 20 | 21 | Email 22 | 23 | 24 | 25 | Password 26 | 27 | 28 | 29 | 30 | Sign Up 31 | 32 | 35 |
36 |
37 |
38 | -------------------------------------------------------------------------------- /src/app/modules/signup/signup.page.scss: -------------------------------------------------------------------------------- 1 | // This will remove iOS Header Line 2 | ion-toolbar { 3 | --border-width: 0 !important; 4 | } 5 | 6 | // Removing Android Header Line 7 | .header-md::after { 8 | background: none !important; 9 | } 10 | 11 | .container h1 { 12 | margin-top: 0; 13 | } 14 | 15 | .backbtn { 16 | margin-left: 20px; 17 | } 18 | 19 | .form-container { 20 | margin-top: 48px; 21 | } 22 | 23 | .form-container ion-item { 24 | --padding-start: 0; 25 | --border-color: #DADADA; 26 | } 27 | 28 | .form-container ion-item ion-label { 29 | color: #A6A6A6; 30 | } 31 | 32 | .form-container ion-item ion-icon { 33 | margin-top: auto; 34 | color: #c6cbd4; 35 | } 36 | 37 | .form-container ion-button { 38 | margin-top: 48px; 39 | } 40 | 41 | .sign-up { 42 | display: flex; 43 | justify-content: center; 44 | align-items: center; 45 | } 46 | 47 | .sign-up ion-button { 48 | margin: 0; 49 | } -------------------------------------------------------------------------------- /src/app/modules/signup/signup.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { SignupPage } from './signup.page'; 5 | 6 | describe('SignupPage', () => { 7 | let component: SignupPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ SignupPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(SignupPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/signup/signup.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-signup', 5 | templateUrl: './signup.page.html', 6 | styleUrls: ['./signup.page.scss'], 7 | }) 8 | export class SignupPage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/modules/welcome/welcome-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { WelcomePage } from './welcome.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: WelcomePage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class WelcomePageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/modules/welcome/welcome.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | import { WelcomePageRoutingModule } from './welcome-routing.module'; 8 | 9 | import { WelcomePage } from './welcome.page'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | CommonModule, 14 | FormsModule, 15 | IonicModule, 16 | WelcomePageRoutingModule 17 | ], 18 | declarations: [WelcomePage] 19 | }) 20 | export class WelcomePageModule {} 21 | -------------------------------------------------------------------------------- /src/app/modules/welcome/welcome.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 11 | 12 | 13 | 14 |
15 | Log in 16 | Signup 17 |
18 |
19 |
20 | -------------------------------------------------------------------------------- /src/app/modules/welcome/welcome.page.scss: -------------------------------------------------------------------------------- 1 | .container { 2 | height: 100%; 3 | display: grid; 4 | justify-content: center; 5 | align-items: center; 6 | } 7 | 8 | .page-header h1 { 9 | margin-top: 0; 10 | } 11 | 12 | .button-container { 13 | width: 80%; 14 | margin-left: auto; 15 | margin-right: auto; 16 | } -------------------------------------------------------------------------------- /src/app/modules/welcome/welcome.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { WelcomePage } from './welcome.page'; 5 | 6 | describe('WelcomePage', () => { 7 | let component: WelcomePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(waitForAsync(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ WelcomePage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(WelcomePage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/modules/welcome/welcome.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-welcome', 5 | templateUrl: './welcome.page.html', 6 | styleUrls: ['./welcome.page.scss'], 7 | }) 8 | export class WelcomePage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/services/auth/auth.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | 3 | import { AuthService } from './auth.service'; 4 | 5 | describe('AuthService', () => { 6 | let service: AuthService; 7 | 8 | beforeEach(() => { 9 | TestBed.configureTestingModule({}); 10 | service = TestBed.inject(AuthService); 11 | }); 12 | 13 | it('should be created', () => { 14 | expect(service).toBeTruthy(); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /src/app/services/auth/auth.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { Observable, of, throwError } from 'rxjs'; 3 | import { IUser, ISession, ISessionUser } from '../../models'; 4 | import { StorageService } from '../storage/storage.service'; 5 | 6 | @Injectable({ 7 | providedIn: 'any' 8 | }) 9 | export class AuthService { 10 | 11 | private session: ISession = { 12 | token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXX', 13 | user: { 14 | email: 'techyaura@gmail.com', 15 | } 16 | }; 17 | 18 | constructor( 19 | private storageService: StorageService 20 | ) { } 21 | 22 | login(body: IUser): Observable{ 23 | if(body.email === this.session.user.email && body.password === 'techyaura'){ 24 | return of(this.session); 25 | } 26 | throw throwError('Invalid Credentials'); 27 | } 28 | 29 | profile(): Observable { 30 | return of(this.session.user); 31 | } 32 | 33 | saveProfile(body: ISessionUser): Observable{ 34 | this.session = { 35 | ...this.session, 36 | user: { 37 | ...this.session.user, 38 | ...body 39 | } 40 | } 41 | this.storageService.set('__session', this.session.user); // [TODO]- will be removed 42 | return of(this.session.user); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/app/services/data/data.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | 3 | import { DataService } from './data.service'; 4 | 5 | describe('DataService', () => { 6 | let service: DataService; 7 | 8 | beforeEach(() => { 9 | TestBed.configureTestingModule({}); 10 | service = TestBed.inject(DataService); 11 | }); 12 | 13 | it('should be created', () => { 14 | expect(service).toBeTruthy(); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /src/app/services/data/data.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | 3 | // Category Interface 4 | export interface ICategory { 5 | id: number, 6 | name: string, 7 | image: string, 8 | } 9 | 10 | // Product Interface 11 | export interface IProduct { 12 | id: number, 13 | name: string, 14 | price: number, 15 | image: string, 16 | } 17 | 18 | @Injectable({ 19 | providedIn: 'root' 20 | }) 21 | export class DataService { 22 | 23 | constructor() { } 24 | 25 | getCategories() { 26 | let categories = []; 27 | 28 | let cat1: ICategory = { 29 | id: 1, 30 | name: 'Womens', 31 | image: '../../assets/categories/category-1.png' 32 | } 33 | let cat2: ICategory = { 34 | id: 2, 35 | name: 'Mens', 36 | image: '../../assets/categories/category-2.png' 37 | } 38 | let cat3: ICategory = { 39 | id: 3, 40 | name: 'Kids', 41 | image: '../../assets/categories/category-3.png' 42 | } 43 | 44 | categories.push(cat1, cat2, cat3); 45 | 46 | return categories; 47 | } 48 | 49 | getFeaturedProducts() { 50 | let products = []; 51 | 52 | let prod1: IProduct = { 53 | id: 1, 54 | name: 'Womens T-Shirt', 55 | price: 55, 56 | image: '../../assets/products/prod-1.png' 57 | } 58 | let prod2: IProduct = { 59 | id: 2, 60 | name: 'Mens T-Shirt', 61 | price: 34, 62 | image: '../../assets/products/prod-2.png' 63 | } 64 | let prod3: IProduct = { 65 | id: 1, 66 | name: 'Womens T-Shirt', 67 | price: 40, 68 | image: '../../assets/products/prod-3.png' 69 | } 70 | 71 | products.push(prod1, prod2, prod3); 72 | 73 | return products; 74 | } 75 | 76 | getBestSellProducts() { 77 | let products = []; 78 | 79 | let prod1: IProduct = { 80 | id: 1, 81 | name: 'Womens T-Shirt', 82 | price: 55, 83 | image: '../../assets/products/prod-4.png' 84 | } 85 | let prod2: IProduct = { 86 | id: 2, 87 | name: 'Mens T-Shirt', 88 | price: 34, 89 | image: '../../assets/products/prod-5.png' 90 | } 91 | let prod3: IProduct = { 92 | id: 1, 93 | name: 'Womens T-Shirt', 94 | price: 40, 95 | image: '../../assets/products/prod-6.png' 96 | } 97 | 98 | products.push(prod1, prod2, prod3); 99 | 100 | return products; 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /src/app/services/index.ts: -------------------------------------------------------------------------------- 1 | export * from './storage/storage.service'; 2 | export * from './data/data.service'; 3 | export * from './util/util.service'; 4 | export * from './auth/auth.service'; 5 | -------------------------------------------------------------------------------- /src/app/services/storage/storage.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | 3 | import { StorageService } from './storage.service'; 4 | 5 | describe('StorageService', () => { 6 | let service: StorageService; 7 | 8 | beforeEach(() => { 9 | TestBed.configureTestingModule({}); 10 | service = TestBed.inject(StorageService); 11 | }); 12 | 13 | it('should be created', () => { 14 | expect(service).toBeTruthy(); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /src/app/services/storage/storage.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { Storage } from '@ionic/storage-angular'; 3 | 4 | @Injectable({ 5 | providedIn: 'root' 6 | }) 7 | export class StorageService { 8 | 9 | private _storage: Storage | null = null; 10 | 11 | constructor(private storage: Storage) { 12 | this.init(); 13 | } 14 | 15 | async init() { 16 | // If using, define drivers here: await this.storage.defineDriver(/*...*/); 17 | const storage = await this.storage.create(); 18 | this._storage = storage; 19 | } 20 | 21 | // Create and expose methods that users of this service can 22 | // call, for example: 23 | public set(key: string, value: any) { 24 | this._storage?.set(key, value); 25 | } 26 | 27 | public async clear(): Promise { 28 | await this._storage.clear(); 29 | } 30 | 31 | public async get(key: string) { 32 | const val = await this.storage.get(key); 33 | return val; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/app/services/util/util.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | 3 | import { UtilService } from './util.service'; 4 | 5 | describe('UtilService', () => { 6 | let service: UtilService; 7 | 8 | beforeEach(() => { 9 | TestBed.configureTestingModule({}); 10 | service = TestBed.inject(UtilService); 11 | }); 12 | 13 | it('should be created', () => { 14 | expect(service).toBeTruthy(); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /src/app/services/util/util.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { Subject } from 'rxjs'; 3 | 4 | @Injectable({ 5 | providedIn: 'root' 6 | }) 7 | export class UtilService { 8 | 9 | private isMenuEnabled = new Subject(); 10 | 11 | constructor() { } 12 | 13 | // Creating method to handle Side Menu State (Enabled or Disabeld) 14 | setMenuState(enabled) { 15 | this.isMenuEnabled.next(enabled); 16 | } 17 | 18 | // Method for get the Menu State 19 | getMenuState(): Subject { 20 | return this.isMenuEnabled; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/assets/back-dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/assets/back.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/assets/cart/cart1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/cart/cart1.png -------------------------------------------------------------------------------- /src/assets/cart/cart2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/cart/cart2.png -------------------------------------------------------------------------------- /src/assets/cart/cart3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/cart/cart3.png -------------------------------------------------------------------------------- /src/assets/cart/cart4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/cart/cart4.png -------------------------------------------------------------------------------- /src/assets/cart/cart5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/cart/cart5.png -------------------------------------------------------------------------------- /src/assets/categories/category-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/categories/category-1.png -------------------------------------------------------------------------------- /src/assets/categories/category-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/categories/category-2.png -------------------------------------------------------------------------------- /src/assets/categories/category-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/categories/category-3.png -------------------------------------------------------------------------------- /src/assets/fonts/Segoe UI Bold Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/fonts/Segoe UI Bold Italic.ttf -------------------------------------------------------------------------------- /src/assets/fonts/Segoe UI Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/fonts/Segoe UI Bold.ttf -------------------------------------------------------------------------------- /src/assets/fonts/Segoe UI Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/fonts/Segoe UI Italic.ttf -------------------------------------------------------------------------------- /src/assets/fonts/Segoe UI.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/fonts/Segoe UI.ttf -------------------------------------------------------------------------------- /src/assets/icon/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/icon/favicon.png -------------------------------------------------------------------------------- /src/assets/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/like.png -------------------------------------------------------------------------------- /src/assets/menu_bar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/assets/product-slider/prod-slide1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/product-slider/prod-slide1.png -------------------------------------------------------------------------------- /src/assets/product-slider/prod-slide2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/product-slider/prod-slide2.png -------------------------------------------------------------------------------- /src/assets/product-slider/prod-slide3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/product-slider/prod-slide3.png -------------------------------------------------------------------------------- /src/assets/products/prod-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/products/prod-1.png -------------------------------------------------------------------------------- /src/assets/products/prod-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/products/prod-2.png -------------------------------------------------------------------------------- /src/assets/products/prod-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/products/prod-3.png -------------------------------------------------------------------------------- /src/assets/products/prod-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/products/prod-4.png -------------------------------------------------------------------------------- /src/assets/products/prod-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/products/prod-5.png -------------------------------------------------------------------------------- /src/assets/products/prod-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/products/prod-6.png -------------------------------------------------------------------------------- /src/assets/shapes.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/assets/welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techyaura/ionic5-ecommerce/ede50d02a93143540e86fe808a6a15b77151774b/src/assets/welcome.png -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // This file can be replaced during build by using the `fileReplacements` array. 2 | // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. 3 | // The list of file replacements can be found in `angular.json`. 4 | 5 | export const environment = { 6 | production: false 7 | }; 8 | 9 | /* 10 | * For easier debugging in development mode, you can import the following file 11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. 12 | * 13 | * This import should be commented out in production mode because it will have a negative impact 14 | * on performance if an error is thrown. 15 | */ 16 | // import 'zone.js/plugins/zone-error'; // Included with Angular CLI. 17 | -------------------------------------------------------------------------------- /src/global.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * App Global CSS 3 | * ---------------------------------------------------------------------------- 4 | * Put style rules here that you want to apply globally. These styles are for 5 | * the entire app and not just one component. Additionally, this file can be 6 | * used as an entry point to import other CSS/Sass files to be included in the 7 | * output CSS. 8 | * For more information on global stylesheets, visit the documentation: 9 | * https://ionicframework.com/docs/layout/global-stylesheets 10 | */ 11 | 12 | /* Core CSS required for Ionic components to work properly */ 13 | @import "~@ionic/angular/css/core.css"; 14 | 15 | /* Basic CSS for apps built with Ionic */ 16 | @import "~@ionic/angular/css/normalize.css"; 17 | @import "~@ionic/angular/css/structure.css"; 18 | @import "~@ionic/angular/css/typography.css"; 19 | @import '~@ionic/angular/css/display.css'; 20 | 21 | /* Optional CSS utils that can be commented out */ 22 | @import "~@ionic/angular/css/padding.css"; 23 | @import "~@ionic/angular/css/float-elements.css"; 24 | @import "~@ionic/angular/css/text-alignment.css"; 25 | @import "~@ionic/angular/css/text-transformation.css"; 26 | @import "~@ionic/angular/css/flex-utils.css"; 27 | 28 | @font-face { 29 | font-family: 'SegoeUI'; 30 | font-style: normal; 31 | font-weight: normal; 32 | src: url('./assets/fonts/Segoe\ UI.ttf'); 33 | } 34 | 35 | @font-face { 36 | font-family: 'SegoeUI-Bold'; 37 | font-style: normal; 38 | font-weight: bold; 39 | src: url('./assets/fonts/Segoe\ UI\ Bold.ttf'); 40 | } 41 | 42 | @font-face { 43 | font-family: 'SegoeUI-BoldItalic'; 44 | font-style: italic; 45 | font-weight: bold; 46 | src: url('./assets/fonts/Segoe\ UI\ Bold\ Italic.ttf'); 47 | } 48 | 49 | @font-face { 50 | font-family: 'SegoeUI-Italic'; 51 | font-style: italic; 52 | font-weight: normal; 53 | src: url('./assets/fonts/Segoe\ UI\ Italic.ttf'); 54 | } 55 | 56 | * { 57 | font-family: 'SegoeUI'; 58 | } 59 | 60 | .main-button { 61 | --background: linear-gradient(90deg, rgba(102,126, 234, 1) 0%, rgba(100, 182, 255, 1) 100%); 62 | --box-shadow: none; 63 | position: relative; 64 | height: 50px; 65 | margin-bottom: 15px; 66 | } 67 | 68 | .main-button::after { 69 | content: " "; 70 | position: absolute; 71 | width: 80%; 72 | right: 10%; 73 | bottom: 0; 74 | top: 10px; 75 | height: 40px; 76 | z-index: -1; 77 | box-shadow: 0px 20px 20px -17px rgba(0, 111, 255, 1); 78 | } 79 | 80 | // Removing ion-button focus outline 81 | ion-button:focus { 82 | outline: none !important; 83 | } 84 | 85 | ion-buttons:focus { 86 | outline: none !important; 87 | } 88 | 89 | // Removing iOS and Android Header line for entire app 90 | ion-toolbar { 91 | --border-width: 0 !important; 92 | } 93 | 94 | .header-md::after { 95 | background: none; 96 | } 97 | 98 | .notification { 99 | span { 100 | background-color: #F5576C; 101 | border-radius: 50%; 102 | width: 10px; 103 | height: 10px; 104 | position: absolute; 105 | top: 10%; 106 | right: 10%; 107 | } 108 | } 109 | 110 | // Customizing Product Slider Bullets 111 | 112 | .product-slider { 113 | .swiper-pagination { 114 | text-align: left; 115 | padding-left: 20px; 116 | 117 | .swiper-pagination-bullet { 118 | background: #ffffff; 119 | opacity: 1; 120 | } 121 | 122 | .swiper-pagination-bullet-active { 123 | background: var(--ion-color-primary); 124 | } 125 | } 126 | } -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ionic App 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/guide/browser-support 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 22 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 23 | 24 | /** 25 | * Web Animations `@angular/platform-browser/animations` 26 | * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. 27 | * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). 28 | */ 29 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 30 | 31 | /** 32 | * By default, zone.js will patch all possible macroTask and DomEvents 33 | * user can disable parts of macroTask/DomEvents patch by setting following flags 34 | * because those flags need to be set before `zone.js` being loaded, and webpack 35 | * will put import in the top of bundle, so user need to create a separate file 36 | * in this directory (for example: zone-flags.ts), and put the following flags 37 | * into that file, and then add the following code before importing zone.js. 38 | * import './zone-flags.ts'; 39 | * 40 | * The flags allowed in zone-flags.ts are listed here. 41 | * 42 | * The following flags will work for all browsers. 43 | * 44 | * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame 45 | * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick 46 | * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames 47 | * 48 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js 49 | * with the following flag, it will bypass `zone.js` patch for IE/Edge 50 | * 51 | * (window as any).__Zone_enable_cross_context_check = true; 52 | * 53 | */ 54 | 55 | import './zone-flags'; 56 | 57 | /*************************************************************************************************** 58 | * Zone JS is required by default for Angular itself. 59 | */ 60 | 61 | import 'zone.js'; // Included with Angular CLI. 62 | 63 | 64 | /*************************************************************************************************** 65 | * APPLICATION IMPORTS 66 | */ 67 | -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/testing'; 4 | import { getTestBed } from '@angular/core/testing'; 5 | import { 6 | BrowserDynamicTestingModule, 7 | platformBrowserDynamicTesting 8 | } from '@angular/platform-browser-dynamic/testing'; 9 | 10 | declare const require: any; 11 | 12 | // First, initialize the Angular testing environment. 13 | getTestBed().initTestEnvironment( 14 | BrowserDynamicTestingModule, 15 | platformBrowserDynamicTesting() 16 | ); 17 | // Then we find all the tests. 18 | const context = require.context('./', true, /\.spec\.ts$/); 19 | // And load the modules. 20 | context.keys().map(context); 21 | -------------------------------------------------------------------------------- /src/theme/variables.scss: -------------------------------------------------------------------------------- 1 | // Ionic Variables and Theming. For more info, please see: 2 | // http://ionicframework.com/docs/theming/ 3 | 4 | /** Ionic CSS Variables **/ 5 | :root { 6 | /** primary **/ 7 | --ion-color-primary: #667EEA; 8 | --ion-color-primary-rgb: 102,126,234; 9 | --ion-color-primary-contrast: #ffffff; 10 | --ion-color-primary-contrast-rgb: 255,255,255; 11 | --ion-color-primary-shade: #5a6fce; 12 | --ion-color-primary-tint: #758bec; 13 | 14 | /** secondary **/ 15 | --ion-color-secondary: #3dc2ff; 16 | --ion-color-secondary-rgb: 61, 194, 255; 17 | --ion-color-secondary-contrast: #ffffff; 18 | --ion-color-secondary-contrast-rgb: 255, 255, 255; 19 | --ion-color-secondary-shade: #36abe0; 20 | --ion-color-secondary-tint: #50c8ff; 21 | 22 | /** tertiary **/ 23 | --ion-color-tertiary: #5260ff; 24 | --ion-color-tertiary-rgb: 82, 96, 255; 25 | --ion-color-tertiary-contrast: #ffffff; 26 | --ion-color-tertiary-contrast-rgb: 255, 255, 255; 27 | --ion-color-tertiary-shade: #4854e0; 28 | --ion-color-tertiary-tint: #6370ff; 29 | 30 | /** success **/ 31 | --ion-color-success: #2dd36f; 32 | --ion-color-success-rgb: 45, 211, 111; 33 | --ion-color-success-contrast: #ffffff; 34 | --ion-color-success-contrast-rgb: 255, 255, 255; 35 | --ion-color-success-shade: #28ba62; 36 | --ion-color-success-tint: #42d77d; 37 | 38 | /** warning **/ 39 | --ion-color-warning: #ffc409; 40 | --ion-color-warning-rgb: 255, 196, 9; 41 | --ion-color-warning-contrast: #000000; 42 | --ion-color-warning-contrast-rgb: 0, 0, 0; 43 | --ion-color-warning-shade: #e0ac08; 44 | --ion-color-warning-tint: #ffca22; 45 | 46 | /** danger **/ 47 | --ion-color-danger: #eb445a; 48 | --ion-color-danger-rgb: 235, 68, 90; 49 | --ion-color-danger-contrast: #ffffff; 50 | --ion-color-danger-contrast-rgb: 255, 255, 255; 51 | --ion-color-danger-shade: #cf3c4f; 52 | --ion-color-danger-tint: #ed576b; 53 | 54 | /** dark **/ 55 | --ion-color-dark: #222428; 56 | --ion-color-dark-rgb: 34, 36, 40; 57 | --ion-color-dark-contrast: #ffffff; 58 | --ion-color-dark-contrast-rgb: 255, 255, 255; 59 | --ion-color-dark-shade: #1e2023; 60 | --ion-color-dark-tint: #383a3e; 61 | 62 | /** medium **/ 63 | --ion-color-medium: #92949c; 64 | --ion-color-medium-rgb: 146, 148, 156; 65 | --ion-color-medium-contrast: #ffffff; 66 | --ion-color-medium-contrast-rgb: 255, 255, 255; 67 | --ion-color-medium-shade: #808289; 68 | --ion-color-medium-tint: #9d9fa6; 69 | 70 | /** light **/ 71 | --ion-color-light: #f4f5f8; 72 | --ion-color-light-rgb: 244, 245, 248; 73 | --ion-color-light-contrast: #000000; 74 | --ion-color-light-contrast-rgb: 0, 0, 0; 75 | --ion-color-light-shade: #d7d8da; 76 | --ion-color-light-tint: #f5f6f9; 77 | } 78 | 79 | @media (prefers-color-scheme: dark) { 80 | /* 81 | * Dark Colors 82 | * ------------------------------------------- 83 | */ 84 | 85 | body { 86 | --ion-color-primary: #667EEA; 87 | --ion-color-primary-rgb: 102,126,234; 88 | --ion-color-primary-contrast: #ffffff; 89 | --ion-color-primary-contrast-rgb: 255,255,255; 90 | --ion-color-primary-shade: #5a6fce; 91 | --ion-color-primary-tint: #758bec; 92 | 93 | --ion-color-secondary: #50c8ff; 94 | --ion-color-secondary-rgb: 80,200,255; 95 | --ion-color-secondary-contrast: #ffffff; 96 | --ion-color-secondary-contrast-rgb: 255,255,255; 97 | --ion-color-secondary-shade: #46b0e0; 98 | --ion-color-secondary-tint: #62ceff; 99 | 100 | --ion-color-tertiary: #6a64ff; 101 | --ion-color-tertiary-rgb: 106,100,255; 102 | --ion-color-tertiary-contrast: #ffffff; 103 | --ion-color-tertiary-contrast-rgb: 255,255,255; 104 | --ion-color-tertiary-shade: #5d58e0; 105 | --ion-color-tertiary-tint: #7974ff; 106 | 107 | --ion-color-success: #2fdf75; 108 | --ion-color-success-rgb: 47,223,117; 109 | --ion-color-success-contrast: #000000; 110 | --ion-color-success-contrast-rgb: 0,0,0; 111 | --ion-color-success-shade: #29c467; 112 | --ion-color-success-tint: #44e283; 113 | 114 | --ion-color-warning: #ffd534; 115 | --ion-color-warning-rgb: 255,213,52; 116 | --ion-color-warning-contrast: #000000; 117 | --ion-color-warning-contrast-rgb: 0,0,0; 118 | --ion-color-warning-shade: #e0bb2e; 119 | --ion-color-warning-tint: #ffd948; 120 | 121 | --ion-color-danger: #ff4961; 122 | --ion-color-danger-rgb: 255,73,97; 123 | --ion-color-danger-contrast: #ffffff; 124 | --ion-color-danger-contrast-rgb: 255,255,255; 125 | --ion-color-danger-shade: #e04055; 126 | --ion-color-danger-tint: #ff5b71; 127 | 128 | --ion-color-dark: #f4f5f8; 129 | --ion-color-dark-rgb: 244,245,248; 130 | --ion-color-dark-contrast: #000000; 131 | --ion-color-dark-contrast-rgb: 0,0,0; 132 | --ion-color-dark-shade: #d7d8da; 133 | --ion-color-dark-tint: #f5f6f9; 134 | 135 | --ion-color-medium: #989aa2; 136 | --ion-color-medium-rgb: 152,154,162; 137 | --ion-color-medium-contrast: #000000; 138 | --ion-color-medium-contrast-rgb: 0,0,0; 139 | --ion-color-medium-shade: #86888f; 140 | --ion-color-medium-tint: #a2a4ab; 141 | 142 | --ion-color-light: #222428; 143 | --ion-color-light-rgb: 34,36,40; 144 | --ion-color-light-contrast: #ffffff; 145 | --ion-color-light-contrast-rgb: 255,255,255; 146 | --ion-color-light-shade: #1e2023; 147 | --ion-color-light-tint: #383a3e; 148 | } 149 | 150 | /* 151 | * iOS Dark Theme 152 | * ------------------------------------------- 153 | */ 154 | 155 | .ios body { 156 | --ion-background-color: #000000; 157 | --ion-background-color-rgb: 0,0,0; 158 | 159 | --ion-text-color: #ffffff; 160 | --ion-text-color-rgb: 255,255,255; 161 | 162 | --ion-color-step-50: #0d0d0d; 163 | --ion-color-step-100: #1a1a1a; 164 | --ion-color-step-150: #262626; 165 | --ion-color-step-200: #333333; 166 | --ion-color-step-250: #404040; 167 | --ion-color-step-300: #4d4d4d; 168 | --ion-color-step-350: #595959; 169 | --ion-color-step-400: #666666; 170 | --ion-color-step-450: #737373; 171 | --ion-color-step-500: #808080; 172 | --ion-color-step-550: #8c8c8c; 173 | --ion-color-step-600: #999999; 174 | --ion-color-step-650: #a6a6a6; 175 | --ion-color-step-700: #b3b3b3; 176 | --ion-color-step-750: #bfbfbf; 177 | --ion-color-step-800: #cccccc; 178 | --ion-color-step-850: #d9d9d9; 179 | --ion-color-step-900: #e6e6e6; 180 | --ion-color-step-950: #f2f2f2; 181 | 182 | --ion-toolbar-background: #0d0d0d; 183 | 184 | --ion-item-background: #000000; 185 | 186 | --ion-card-background: #1c1c1d; 187 | } 188 | 189 | 190 | /* 191 | * Material Design Dark Theme 192 | * ------------------------------------------- 193 | */ 194 | 195 | .md body { 196 | --ion-background-color: #121212; 197 | --ion-background-color-rgb: 18,18,18; 198 | 199 | --ion-text-color: #ffffff; 200 | --ion-text-color-rgb: 255,255,255; 201 | 202 | --ion-border-color: #222222; 203 | 204 | --ion-color-step-50: #1e1e1e; 205 | --ion-color-step-100: #2a2a2a; 206 | --ion-color-step-150: #363636; 207 | --ion-color-step-200: #414141; 208 | --ion-color-step-250: #4d4d4d; 209 | --ion-color-step-300: #595959; 210 | --ion-color-step-350: #656565; 211 | --ion-color-step-400: #717171; 212 | --ion-color-step-450: #7d7d7d; 213 | --ion-color-step-500: #898989; 214 | --ion-color-step-550: #949494; 215 | --ion-color-step-600: #a0a0a0; 216 | --ion-color-step-650: #acacac; 217 | --ion-color-step-700: #b8b8b8; 218 | --ion-color-step-750: #c4c4c4; 219 | --ion-color-step-800: #d0d0d0; 220 | --ion-color-step-850: #dbdbdb; 221 | --ion-color-step-900: #e7e7e7; 222 | --ion-color-step-950: #f3f3f3; 223 | 224 | --ion-item-background: #1e1e1e; 225 | 226 | --ion-toolbar-background: #1f1f1f; 227 | 228 | --ion-tab-bar-background: #1f1f1f; 229 | 230 | --ion-card-background: #1e1e1e; 231 | } 232 | } -------------------------------------------------------------------------------- /src/zone-flags.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Prevents Angular change detection from 3 | * running with certain Web Component callbacks 4 | */ 5 | (window as any).__Zone_disable_customElements = true; 6 | -------------------------------------------------------------------------------- /tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts", 13 | "src/**/*.d.ts" 14 | ], 15 | "exclude": [ 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "outDir": "./dist/out-tsc", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "downlevelIteration": true, 9 | "experimentalDecorators": true, 10 | "module": "esnext", 11 | "moduleResolution": "node", 12 | "importHelpers": true, 13 | "target": "es2015", 14 | "lib": [ 15 | "es2018", 16 | "dom" 17 | ] 18 | }, 19 | "angularCompilerOptions": { 20 | "fullTemplateTypeCheck": true, 21 | "strictInjectionParameters": true 22 | } 23 | } -------------------------------------------------------------------------------- /tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tslint:recommended", 3 | "rules": { 4 | "align": { 5 | "options": [ 6 | "parameters", 7 | "statements" 8 | ] 9 | }, 10 | "array-type": false, 11 | "arrow-return-shorthand": true, 12 | "curly": true, 13 | "deprecation": { 14 | "severity": "warning" 15 | }, 16 | "component-class-suffix": [true, "Page", "Component"], 17 | "contextual-lifecycle": true, 18 | "directive-class-suffix": true, 19 | "directive-selector": [ 20 | true, 21 | "attribute", 22 | "app", 23 | "camelCase" 24 | ], 25 | "component-selector": [ 26 | true, 27 | "element", 28 | "app", 29 | "kebab-case" 30 | ], 31 | "eofline": true, 32 | "import-blacklist": [ 33 | true, 34 | "rxjs/Rx" 35 | ], 36 | "import-spacing": true, 37 | "indent": { 38 | "options": [ 39 | "spaces" 40 | ] 41 | }, 42 | "max-classes-per-file": false, 43 | "max-line-length": [ 44 | true, 45 | 140 46 | ], 47 | "member-ordering": [ 48 | true, 49 | { 50 | "order": [ 51 | "static-field", 52 | "instance-field", 53 | "static-method", 54 | "instance-method" 55 | ] 56 | } 57 | ], 58 | "no-console": [ 59 | true, 60 | "debug", 61 | "info", 62 | "time", 63 | "timeEnd", 64 | "trace" 65 | ], 66 | "no-empty": false, 67 | "no-inferrable-types": [ 68 | true, 69 | "ignore-params" 70 | ], 71 | "no-non-null-assertion": true, 72 | "no-redundant-jsdoc": true, 73 | "no-switch-case-fall-through": true, 74 | "no-var-requires": false, 75 | "object-literal-key-quotes": [ 76 | true, 77 | "as-needed" 78 | ], 79 | "quotemark": [ 80 | true, 81 | "single" 82 | ], 83 | "semicolon": { 84 | "options": [ 85 | "always" 86 | ] 87 | }, 88 | "space-before-function-paren": { 89 | "options": { 90 | "anonymous": "never", 91 | "asyncArrow": "always", 92 | "constructor": "never", 93 | "method": "never", 94 | "named": "never" 95 | } 96 | }, 97 | "typedef-whitespace": { 98 | "options": [ 99 | { 100 | "call-signature": "nospace", 101 | "index-signature": "nospace", 102 | "parameter": "nospace", 103 | "property-declaration": "nospace", 104 | "variable-declaration": "nospace" 105 | }, 106 | { 107 | "call-signature": "onespace", 108 | "index-signature": "onespace", 109 | "parameter": "onespace", 110 | "property-declaration": "onespace", 111 | "variable-declaration": "onespace" 112 | } 113 | ] 114 | }, 115 | "variable-name": { 116 | "options": [ 117 | "ban-keywords", 118 | "check-format", 119 | "allow-pascal-case" 120 | ] 121 | }, 122 | "whitespace": { 123 | "options": [ 124 | "check-branch", 125 | "check-decl", 126 | "check-operator", 127 | "check-separator", 128 | "check-type", 129 | "check-typecast" 130 | ] 131 | }, 132 | "no-conflicting-lifecycle": true, 133 | "no-host-metadata-property": true, 134 | "no-input-rename": true, 135 | "no-inputs-metadata-property": true, 136 | "no-output-native": true, 137 | "no-output-on-prefix": true, 138 | "no-output-rename": true, 139 | "no-outputs-metadata-property": true, 140 | "template-banana-in-box": true, 141 | "template-no-negated-async": true, 142 | "use-lifecycle-interface": true, 143 | "use-pipe-transform-interface": true, 144 | "object-literal-sort-keys": false 145 | }, 146 | "rulesDirectory": [ 147 | "codelyzer" 148 | ] 149 | } --------------------------------------------------------------------------------