├── .gitignore ├── angular.json ├── browserslist ├── capacitor.config.json ├── e2e ├── protractor.conf.js ├── src │ ├── app.e2e-spec.ts │ └── app.po.ts └── tsconfig.json ├── ionic.config.json ├── karma.conf.js ├── package-lock.json ├── package.json ├── readme.md ├── src ├── app │ ├── album │ │ ├── album-routing.module.ts │ │ ├── album.module.ts │ │ ├── album.page.html │ │ ├── album.page.scss │ │ ├── album.page.spec.ts │ │ └── album.page.ts │ ├── app-routing.module.ts │ ├── app.component.html │ ├── app.component.scss │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── directives │ │ ├── image-fade.directive.spec.ts │ │ ├── image-fade.directive.ts │ │ └── shared-directives.module.ts │ ├── explore-container │ │ ├── explore-container.component.html │ │ ├── explore-container.component.scss │ │ ├── explore-container.component.spec.ts │ │ ├── explore-container.component.ts │ │ └── explore-container.module.ts │ ├── tab1 │ │ ├── tab1-routing.module.ts │ │ ├── tab1.module.ts │ │ ├── tab1.page.html │ │ ├── tab1.page.scss │ │ ├── tab1.page.spec.ts │ │ └── tab1.page.ts │ ├── tab2 │ │ ├── tab2-routing.module.ts │ │ ├── tab2.module.ts │ │ ├── tab2.page.html │ │ ├── tab2.page.scss │ │ ├── tab2.page.spec.ts │ │ └── tab2.page.ts │ ├── tab3 │ │ ├── tab3-routing.module.ts │ │ ├── tab3.module.ts │ │ ├── tab3.page.html │ │ ├── tab3.page.scss │ │ ├── tab3.page.spec.ts │ │ └── tab3.page.ts │ └── tabs │ │ ├── tabs-routing.module.ts │ │ ├── tabs.module.ts │ │ ├── tabs.page.html │ │ ├── tabs.page.scss │ │ ├── tabs.page.spec.ts │ │ └── tabs.page.ts ├── assets │ ├── fonts │ │ ├── spotify-bold.ttf │ │ ├── spotify-light.ttf │ │ └── spotify-regular.ttf │ ├── icon │ │ └── favicon.png │ ├── images │ │ ├── albums │ │ │ ├── blank-face-lp.jpg │ │ │ ├── born-to-die.jpg │ │ │ ├── come-around-sundown.jpg │ │ │ ├── dear-miss-lonelyhearts.jpg │ │ │ ├── ex-re.jpg │ │ │ ├── extra-machine.jpg │ │ │ ├── houses-of-the-holy.jpg │ │ │ ├── illuminate.jpg │ │ │ ├── sea-of-cowards.jpg │ │ │ ├── stadium-arcadium.jpg │ │ │ ├── swimming.jpg │ │ │ ├── the-creek-drank.jpg │ │ │ ├── the-legend-of-mr-rager.jpg │ │ │ ├── the-lonesome-crowded-west.jpg │ │ │ ├── when-we-all-fall-asleep.jpg │ │ │ └── wish-you-were-here.jpg │ │ └── user.png │ ├── mockdata │ │ ├── albums │ │ │ ├── bornToDie.json │ │ │ ├── comeAroundSundown.json │ │ │ ├── exRe.json │ │ │ ├── extraordinaryMachine.json │ │ │ ├── index.js │ │ │ ├── manOnTheMoon2.json │ │ │ ├── seaOfCowards.json │ │ │ ├── swimming.json │ │ │ ├── whenWeAllFallAsleep.json │ │ │ └── wishYouWereHere.json │ │ ├── heavyRotation.json │ │ ├── jumpBackIn.json │ │ ├── menuMoreOptions.json │ │ ├── menuYourLibrary.json │ │ ├── recentlyPlayed.json │ │ ├── searchBrowseAll.json │ │ └── searchTopGenres.json │ └── shapes.svg ├── 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 | /ios -------------------------------------------------------------------------------- /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 | }, 38 | { 39 | "input": "src/global.scss" 40 | } 41 | ], 42 | "scripts": [] 43 | }, 44 | "configurations": { 45 | "production": { 46 | "fileReplacements": [ 47 | { 48 | "replace": "src/environments/environment.ts", 49 | "with": "src/environments/environment.prod.ts" 50 | } 51 | ], 52 | "optimization": true, 53 | "outputHashing": "all", 54 | "sourceMap": false, 55 | "extractCss": true, 56 | "namedChunks": false, 57 | "aot": true, 58 | "extractLicenses": true, 59 | "vendorChunk": false, 60 | "buildOptimizer": true, 61 | "budgets": [ 62 | { 63 | "type": "initial", 64 | "maximumWarning": "2mb", 65 | "maximumError": "5mb" 66 | } 67 | ] 68 | }, 69 | "ci": { 70 | "progress": false 71 | } 72 | } 73 | }, 74 | "serve": { 75 | "builder": "@angular-devkit/build-angular:dev-server", 76 | "options": { 77 | "browserTarget": "app:build" 78 | }, 79 | "configurations": { 80 | "production": { 81 | "browserTarget": "app:build:production" 82 | }, 83 | "ci": { 84 | "progress": false 85 | } 86 | } 87 | }, 88 | "extract-i18n": { 89 | "builder": "@angular-devkit/build-angular:extract-i18n", 90 | "options": { 91 | "browserTarget": "app:build" 92 | } 93 | }, 94 | "test": { 95 | "builder": "@angular-devkit/build-angular:karma", 96 | "options": { 97 | "main": "src/test.ts", 98 | "polyfills": "src/polyfills.ts", 99 | "tsConfig": "tsconfig.spec.json", 100 | "karmaConfig": "karma.conf.js", 101 | "styles": [], 102 | "scripts": [], 103 | "assets": [ 104 | { 105 | "glob": "favicon.ico", 106 | "input": "src/", 107 | "output": "/" 108 | }, 109 | { 110 | "glob": "**/*", 111 | "input": "src/assets", 112 | "output": "/assets" 113 | } 114 | ] 115 | }, 116 | "configurations": { 117 | "ci": { 118 | "progress": false, 119 | "watch": false 120 | } 121 | } 122 | }, 123 | "lint": { 124 | "builder": "@angular-devkit/build-angular:tslint", 125 | "options": { 126 | "tsConfig": [ 127 | "tsconfig.app.json", 128 | "tsconfig.spec.json", 129 | "e2e/tsconfig.json" 130 | ], 131 | "exclude": ["**/node_modules/**"] 132 | } 133 | }, 134 | "e2e": { 135 | "builder": "@angular-devkit/build-angular:protractor", 136 | "options": { 137 | "protractorConfig": "e2e/protractor.conf.js", 138 | "devServerTarget": "app:serve" 139 | }, 140 | "configurations": { 141 | "production": { 142 | "devServerTarget": "app:serve:production" 143 | }, 144 | "ci": { 145 | "devServerTarget": "app:serve:ci" 146 | } 147 | } 148 | }, 149 | "ionic-cordova-build": { 150 | "builder": "@ionic/angular-toolkit:cordova-build", 151 | "options": { 152 | "browserTarget": "app:build" 153 | }, 154 | "configurations": { 155 | "production": { 156 | "browserTarget": "app:build:production" 157 | } 158 | } 159 | }, 160 | "ionic-cordova-serve": { 161 | "builder": "@ionic/angular-toolkit:cordova-serve", 162 | "options": { 163 | "cordovaBuildTarget": "app:ionic-cordova-build", 164 | "devServerTarget": "app:serve" 165 | }, 166 | "configurations": { 167 | "production": { 168 | "cordovaBuildTarget": "app:ionic-cordova-build:production", 169 | "devServerTarget": "app:serve:production" 170 | } 171 | } 172 | } 173 | } 174 | } 175 | }, 176 | "cli": { 177 | "defaultCollection": "@ionic/angular-toolkit" 178 | }, 179 | "schematics": { 180 | "@ionic/angular-toolkit:component": { 181 | "styleext": "scss" 182 | }, 183 | "@ionic/angular-toolkit:page": { 184 | "styleext": "scss" 185 | } 186 | } 187 | } 188 | -------------------------------------------------------------------------------- /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.json: -------------------------------------------------------------------------------- 1 | { 2 | "appId": "io.ionic.starter", 3 | "appName": "devdacticSpotify", 4 | "bundledWebRuntime": false, 5 | "npmClient": "npm", 6 | "webDir": "www", 7 | "plugins": { 8 | "SplashScreen": { 9 | "launchShowDuration": 0 10 | } 11 | }, 12 | "cordova": {} 13 | } 14 | -------------------------------------------------------------------------------- /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 | 10 | it('should display welcome message', () => { 11 | page.navigateTo(); 12 | expect(page.getPageTitle()).toContain('Tab 1'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getPageTitle() { 9 | return element(by.css('ion-title')).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 | -------------------------------------------------------------------------------- /ionic.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "devdacticSpotify", 3 | "integrations": { 4 | "capacitor": {} 5 | }, 6 | "type": "angular" 7 | } 8 | -------------------------------------------------------------------------------- /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": "devdacticSpotify", 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 | "build:prod": "ng build --prod" 14 | }, 15 | "private": true, 16 | "dependencies": { 17 | "@angular/common": "~10.0.0", 18 | "@angular/core": "~10.0.0", 19 | "@angular/forms": "~10.0.0", 20 | "@angular/platform-browser": "~10.0.0", 21 | "@angular/platform-browser-dynamic": "~10.0.0", 22 | "@angular/router": "~10.0.0", 23 | "@capacitor/core": "2.4.6", 24 | "@capacitor/ios": "^2.4.6", 25 | "@ionic-native/core": "^5.0.0", 26 | "@ionic-native/splash-screen": "^5.0.0", 27 | "@ionic-native/status-bar": "^5.0.0", 28 | "@ionic/angular": "^5.0.0", 29 | "rxjs": "~6.5.5", 30 | "tslib": "^2.0.0", 31 | "zone.js": "~0.10.3" 32 | }, 33 | "devDependencies": { 34 | "@angular-devkit/build-angular": "~0.1000.0", 35 | "@angular/cli": "~10.0.5", 36 | "@angular/compiler": "~10.0.0", 37 | "@angular/compiler-cli": "~10.0.0", 38 | "@angular/language-service": "~10.0.0", 39 | "@capacitor/cli": "2.4.6", 40 | "@ionic/angular-toolkit": "^2.3.0", 41 | "@types/jasmine": "~3.5.0", 42 | "@types/jasminewd2": "~2.0.3", 43 | "@types/node": "^12.11.1", 44 | "codelyzer": "^6.0.0", 45 | "jasmine-core": "~3.5.0", 46 | "jasmine-spec-reporter": "~5.0.0", 47 | "karma": "~5.0.0", 48 | "karma-chrome-launcher": "~3.1.0", 49 | "karma-coverage-istanbul-reporter": "~3.0.2", 50 | "karma-jasmine": "~3.3.0", 51 | "karma-jasmine-html-reporter": "^1.5.0", 52 | "protractor": "~7.0.0", 53 | "ts-node": "~8.3.0", 54 | "tslint": "~6.1.0", 55 | "typescript": "~3.9.5" 56 | }, 57 | "description": "An Ionic project" 58 | } 59 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Ionic Spotify Player UI - Built with Ionic 2 | 3 | Coming soon.. 4 | -------------------------------------------------------------------------------- /src/app/album/album-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { AlbumPage } from './album.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: AlbumPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class AlbumPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/album/album.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 { AlbumPageRoutingModule } from './album-routing.module'; 8 | 9 | import { AlbumPage } from './album.page'; 10 | import { SharedDirectivesModule } from '../directives/shared-directives.module'; 11 | 12 | @NgModule({ 13 | imports: [ 14 | CommonModule, 15 | FormsModule, 16 | IonicModule, 17 | AlbumPageRoutingModule, 18 | SharedDirectivesModule 19 | ], 20 | declarations: [AlbumPage] 21 | }) 22 | export class AlbumPageModule {} 23 | -------------------------------------------------------------------------------- /src/app/album/album.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ data?.title }} 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |
16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 |

{{ data.artist }}

24 | Album {{ data.title }} · {{ data.released }} 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |
43 | 44 | 45 | 46 | 47 | {{ t.title }} 48 |

{{ data.artist }}

49 |
50 | 51 |
52 |
53 |
54 | 55 |
56 | -------------------------------------------------------------------------------- /src/app/album/album.page.scss: -------------------------------------------------------------------------------- 1 | ion-item { 2 | --ion-item-background: transparent; 3 | color: #fff; 4 | 5 | p { 6 | color: #949494; 7 | } 8 | } 9 | 10 | ion-list { 11 | --ion-background-color: var(--ion-color-dark); 12 | } 13 | 14 | ion-title, ion-content { 15 | font-family: 'Spotify'; 16 | } 17 | 18 | .album-info { 19 | color: #fff; 20 | margin-left: 11px; 21 | p { 22 | font-weight: bold; 23 | } 24 | } 25 | 26 | .image-box { 27 | position: fixed; 28 | z-index: 0; 29 | padding-left: 15%; 30 | padding-right: 15%; 31 | padding-top: 5%; 32 | } 33 | 34 | ion-row { 35 | padding-top: 40vh; 36 | } 37 | 38 | ion-content { 39 | --background: linear-gradient(var(--custombg) 400px, var(--ion-color-dark) 400px); 40 | } 41 | 42 | .main { 43 | z-index: 10; 44 | background: linear-gradient(var(--custombg) 20%, var(--ion-color-dark) 30%); 45 | } 46 | -------------------------------------------------------------------------------- /src/app/album/album.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { AlbumPage } from './album.page'; 5 | 6 | describe('AlbumPage', () => { 7 | let component: AlbumPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ AlbumPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(AlbumPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/album/album.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | import albums from '../../assets/mockdata//albums'; 4 | 5 | @Component({ 6 | selector: 'app-album', 7 | templateUrl: './album.page.html', 8 | styleUrls: ['./album.page.scss'], 9 | }) 10 | export class AlbumPage implements OnInit { 11 | data = null; 12 | 13 | constructor(private activatedRoute: ActivatedRoute) { } 14 | 15 | ngOnInit() { 16 | const title = this.activatedRoute.snapshot.paramMap.get('title'); 17 | const decodedTitle = decodeURIComponent(title); 18 | this.data = albums[decodedTitle]; 19 | } 20 | 21 | // Helper function for image names 22 | dasherize(string) { 23 | return string.replace(/[A-Z]/g, function(char, index) { 24 | return (index !== 0 ? '-' : '') + char.toLowerCase(); 25 | }); 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /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 | loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule) 8 | } 9 | ]; 10 | @NgModule({ 11 | imports: [ 12 | RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) 13 | ], 14 | exports: [RouterModule] 15 | }) 16 | export class AppRoutingModule {} 17 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/app/app.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/app/app.component.scss -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { TestBed, async } 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 | 8 | import { AppComponent } from './app.component'; 9 | 10 | describe('AppComponent', () => { 11 | 12 | let statusBarSpy; 13 | let splashScreenSpy; 14 | let platformReadySpy; 15 | let platformSpy; 16 | 17 | beforeEach(async(() => { 18 | statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']); 19 | splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']); 20 | platformReadySpy = Promise.resolve(); 21 | platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy }); 22 | 23 | TestBed.configureTestingModule({ 24 | declarations: [AppComponent], 25 | schemas: [CUSTOM_ELEMENTS_SCHEMA], 26 | providers: [ 27 | { provide: StatusBar, useValue: statusBarSpy }, 28 | { provide: SplashScreen, useValue: splashScreenSpy }, 29 | { provide: Platform, useValue: platformSpy }, 30 | ], 31 | }).compileComponents(); 32 | })); 33 | 34 | it('should create the app', () => { 35 | const fixture = TestBed.createComponent(AppComponent); 36 | const app = fixture.debugElement.componentInstance; 37 | expect(app).toBeTruthy(); 38 | }); 39 | 40 | it('should initialize the app', async () => { 41 | TestBed.createComponent(AppComponent); 42 | expect(platformSpy.ready).toHaveBeenCalled(); 43 | await platformReadySpy; 44 | expect(statusBarSpy.styleDefault).toHaveBeenCalled(); 45 | expect(splashScreenSpy.hide).toHaveBeenCalled(); 46 | }); 47 | 48 | // TODO: add more tests! 49 | 50 | }); 51 | -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } 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 | 7 | @Component({ 8 | selector: 'app-root', 9 | templateUrl: 'app.component.html', 10 | styleUrls: ['app.component.scss'] 11 | }) 12 | export class AppComponent { 13 | constructor( 14 | private platform: Platform, 15 | private splashScreen: SplashScreen, 16 | private statusBar: StatusBar 17 | ) { 18 | this.initializeApp(); 19 | } 20 | 21 | initializeApp() { 22 | this.platform.ready().then(() => { 23 | this.statusBar.styleDefault(); 24 | this.splashScreen.hide(); 25 | }); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /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 | 9 | import { AppRoutingModule } from './app-routing.module'; 10 | import { AppComponent } from './app.component'; 11 | 12 | @NgModule({ 13 | declarations: [AppComponent], 14 | entryComponents: [], 15 | imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule], 16 | providers: [ 17 | StatusBar, 18 | SplashScreen, 19 | { provide: RouteReuseStrategy, useClass: IonicRouteStrategy } 20 | ], 21 | bootstrap: [AppComponent] 22 | }) 23 | export class AppModule {} 24 | -------------------------------------------------------------------------------- /src/app/directives/image-fade.directive.spec.ts: -------------------------------------------------------------------------------- 1 | import { ImageFadeDirective } from './image-fade.directive'; 2 | 3 | describe('ImageFadeDirective', () => { 4 | it('should create an instance', () => { 5 | const directive = new ImageFadeDirective(); 6 | expect(directive).toBeTruthy(); 7 | }); 8 | }); 9 | -------------------------------------------------------------------------------- /src/app/directives/image-fade.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, HostListener, Input, Renderer2 } from '@angular/core'; 2 | import { DomController } from '@ionic/angular'; 3 | 4 | @Directive({ 5 | selector: '[appImageFade]' 6 | }) 7 | export class ImageFadeDirective { 8 | @Input('appImageFade') cover: any; 9 | 10 | constructor( 11 | private renderer: Renderer2, 12 | private domCtrl: DomController 13 | ) { } 14 | 15 | @HostListener('ionScroll', ['$event']) onContentScroll($event: any) { 16 | const scrollTop: number = $event.detail.scrollTop; 17 | let newOpacity = Math.max(100 - (scrollTop/3), 0) 18 | 19 | let newPadding = 15 + (scrollTop/25); 20 | if (newPadding > 100) { 21 | newPadding = 100; 22 | } 23 | 24 | this.domCtrl.write(() => { 25 | this.renderer.setStyle(this.cover, 'opacity', `${newOpacity}%`); 26 | this.renderer.setStyle(this.cover, 'padding-left', `${newPadding}%`); 27 | this.renderer.setStyle(this.cover, 'padding-right', `${newPadding}%`); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/app/directives/shared-directives.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { ImageFadeDirective } from './image-fade.directive'; 4 | 5 | @NgModule({ 6 | declarations: [ImageFadeDirective], 7 | imports: [ 8 | CommonModule 9 | ], 10 | exports: [ImageFadeDirective] 11 | }) 12 | export class SharedDirectivesModule { } 13 | -------------------------------------------------------------------------------- /src/app/explore-container/explore-container.component.html: -------------------------------------------------------------------------------- 1 |
2 | {{ name }} 3 |

Explore UI Components

4 |
-------------------------------------------------------------------------------- /src/app/explore-container/explore-container.component.scss: -------------------------------------------------------------------------------- 1 | #container { 2 | text-align: center; 3 | 4 | position: absolute; 5 | left: 0; 6 | right: 0; 7 | top: 50%; 8 | transform: translateY(-50%); 9 | } 10 | 11 | #container strong { 12 | font-size: 20px; 13 | line-height: 26px; 14 | } 15 | 16 | #container p { 17 | font-size: 16px; 18 | line-height: 22px; 19 | 20 | color: #8c8c8c; 21 | 22 | margin: 0; 23 | } 24 | 25 | #container a { 26 | text-decoration: none; 27 | } -------------------------------------------------------------------------------- /src/app/explore-container/explore-container.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { ExploreContainerComponent } from './explore-container.component'; 5 | 6 | describe('ExploreContainerComponent', () => { 7 | let component: ExploreContainerComponent; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ ExploreContainerComponent ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(ExploreContainerComponent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/explore-container/explore-container.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, Input } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-explore-container', 5 | templateUrl: './explore-container.component.html', 6 | styleUrls: ['./explore-container.component.scss'], 7 | }) 8 | export class ExploreContainerComponent implements OnInit { 9 | @Input() name: string; 10 | 11 | constructor() { } 12 | 13 | ngOnInit() {} 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/app/explore-container/explore-container.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 { ExploreContainerComponent } from './explore-container.component'; 8 | 9 | @NgModule({ 10 | imports: [ CommonModule, FormsModule, IonicModule], 11 | declarations: [ExploreContainerComponent], 12 | exports: [ExploreContainerComponent] 13 | }) 14 | export class ExploreContainerComponentModule {} 15 | -------------------------------------------------------------------------------- /src/app/tab1/tab1-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule, Routes } from '@angular/router'; 3 | import { Tab1Page } from './tab1.page'; 4 | 5 | const routes: Routes = [ 6 | { 7 | path: '', 8 | component: Tab1Page, 9 | } 10 | ]; 11 | 12 | @NgModule({ 13 | imports: [RouterModule.forChild(routes)], 14 | exports: [RouterModule] 15 | }) 16 | export class Tab1PageRoutingModule {} 17 | -------------------------------------------------------------------------------- /src/app/tab1/tab1.module.ts: -------------------------------------------------------------------------------- 1 | import { IonicModule } from '@ionic/angular'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Tab1Page } from './tab1.page'; 6 | import { ExploreContainerComponentModule } from '../explore-container/explore-container.module'; 7 | 8 | import { Tab1PageRoutingModule } from './tab1-routing.module'; 9 | 10 | @NgModule({ 11 | imports: [ 12 | IonicModule, 13 | CommonModule, 14 | FormsModule, 15 | ExploreContainerComponentModule, 16 | Tab1PageRoutingModule 17 | ], 18 | declarations: [Tab1Page] 19 | }) 20 | export class Tab1PageModule {} 21 | -------------------------------------------------------------------------------- /src/app/tab1/tab1.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |

{{ entry.title }}

7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | {{ album.title }} 19 | 20 | 21 | 22 |
23 | 24 |
-------------------------------------------------------------------------------- /src/app/tab1/tab1.page.scss: -------------------------------------------------------------------------------- 1 | ion-content { 2 | --padding-top: 40px; 3 | } 4 | 5 | .section-header { 6 | color: #fff; 7 | font-family: 'Spotify'; 8 | font-weight: bold; 9 | margin-left: 20px; 10 | margin-bottom: 30px; 11 | } 12 | 13 | .title { 14 | color: #fff; 15 | font-family: 'Spotify'; 16 | font-size: small; 17 | } 18 | 19 | ion-slide { 20 | display: block; 21 | text-align: left; 22 | } 23 | 24 | ion-slides { 25 | margin-bottom: 20px; 26 | } -------------------------------------------------------------------------------- /src/app/tab1/tab1.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | import { ExploreContainerComponentModule } from '../explore-container/explore-container.module'; 4 | 5 | import { Tab1Page } from './tab1.page'; 6 | 7 | describe('Tab1Page', () => { 8 | let component: Tab1Page; 9 | let fixture: ComponentFixture; 10 | 11 | beforeEach(async(() => { 12 | TestBed.configureTestingModule({ 13 | declarations: [Tab1Page], 14 | imports: [IonicModule.forRoot(), ExploreContainerComponentModule] 15 | }).compileComponents(); 16 | 17 | fixture = TestBed.createComponent(Tab1Page); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | })); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/tab1/tab1.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | import recentlyPlayed from '../../assets/mockdata/recentlyPlayed.json'; 5 | import heavyRotation from '../../assets/mockdata/heavyRotation.json'; 6 | import jumpBackIn from '../../assets/mockdata/jumpBackIn.json'; 7 | 8 | @Component({ 9 | selector: 'app-tab1', 10 | templateUrl: 'tab1.page.html', 11 | styleUrls: ['tab1.page.scss'] 12 | }) 13 | export class Tab1Page { 14 | 15 | data = [ 16 | { 17 | title: 'Recently played', 18 | albums: recentlyPlayed 19 | }, 20 | { 21 | title: 'Heavy rotation', 22 | albums: heavyRotation 23 | }, 24 | { 25 | title: 'Jump back in', 26 | albums: jumpBackIn 27 | } 28 | ]; 29 | 30 | opts = { 31 | slidesPerView: 2.4, 32 | slidesOffsetBefore: 20, 33 | spaceBetween: 20, 34 | freeMode: true 35 | }; 36 | 37 | constructor(private router: Router) { 38 | 39 | } 40 | 41 | openAlbum(album) { 42 | const titleEscaped = encodeURIComponent(album.title); 43 | this.router.navigateByUrl(`/tabs/tab1/${titleEscaped}`); 44 | } 45 | 46 | // Helper function for image names 47 | dasherize(string) { 48 | return string.replace(/[A-Z]/g, function(char, index) { 49 | return (index !== 0 ? '-' : '') + char.toLowerCase(); 50 | }); 51 | }; 52 | } 53 | -------------------------------------------------------------------------------- /src/app/tab2/tab2-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule, Routes } from '@angular/router'; 3 | import { Tab2Page } from './tab2.page'; 4 | 5 | const routes: Routes = [ 6 | { 7 | path: '', 8 | component: Tab2Page, 9 | } 10 | ]; 11 | 12 | @NgModule({ 13 | imports: [RouterModule.forChild(routes)], 14 | exports: [RouterModule] 15 | }) 16 | export class Tab2PageRoutingModule {} 17 | -------------------------------------------------------------------------------- /src/app/tab2/tab2.module.ts: -------------------------------------------------------------------------------- 1 | import { IonicModule } from '@ionic/angular'; 2 | import { RouterModule } from '@angular/router'; 3 | import { NgModule } from '@angular/core'; 4 | import { CommonModule } from '@angular/common'; 5 | import { FormsModule } from '@angular/forms'; 6 | import { Tab2Page } from './tab2.page'; 7 | import { ExploreContainerComponentModule } from '../explore-container/explore-container.module'; 8 | 9 | import { Tab2PageRoutingModule } from './tab2-routing.module'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | IonicModule, 14 | CommonModule, 15 | FormsModule, 16 | ExploreContainerComponentModule, 17 | Tab2PageRoutingModule 18 | ], 19 | declarations: [Tab2Page] 20 | }) 21 | export class Tab2PageModule {} 22 | -------------------------------------------------------------------------------- /src/app/tab2/tab2.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tab 2 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Tab 2 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/app/tab2/tab2.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/app/tab2/tab2.page.scss -------------------------------------------------------------------------------- /src/app/tab2/tab2.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | import { ExploreContainerComponentModule } from '../explore-container/explore-container.module'; 4 | 5 | import { Tab2Page } from './tab2.page'; 6 | 7 | describe('Tab2Page', () => { 8 | let component: Tab2Page; 9 | let fixture: ComponentFixture; 10 | 11 | beforeEach(async(() => { 12 | TestBed.configureTestingModule({ 13 | declarations: [Tab2Page], 14 | imports: [IonicModule.forRoot(), ExploreContainerComponentModule] 15 | }).compileComponents(); 16 | 17 | fixture = TestBed.createComponent(Tab2Page); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | })); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/tab2/tab2.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-tab2', 5 | templateUrl: 'tab2.page.html', 6 | styleUrls: ['tab2.page.scss'] 7 | }) 8 | export class Tab2Page { 9 | 10 | constructor() {} 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/app/tab3/tab3-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule, Routes } from '@angular/router'; 3 | import { Tab3Page } from './tab3.page'; 4 | 5 | const routes: Routes = [ 6 | { 7 | path: '', 8 | component: Tab3Page, 9 | } 10 | ]; 11 | 12 | @NgModule({ 13 | imports: [RouterModule.forChild(routes)], 14 | exports: [RouterModule] 15 | }) 16 | export class Tab3PageRoutingModule {} 17 | -------------------------------------------------------------------------------- /src/app/tab3/tab3.module.ts: -------------------------------------------------------------------------------- 1 | import { IonicModule } from '@ionic/angular'; 2 | import { RouterModule } from '@angular/router'; 3 | import { NgModule } from '@angular/core'; 4 | import { CommonModule } from '@angular/common'; 5 | import { FormsModule } from '@angular/forms'; 6 | import { Tab3Page } from './tab3.page'; 7 | import { ExploreContainerComponentModule } from '../explore-container/explore-container.module'; 8 | 9 | import { Tab3PageRoutingModule } from './tab3-routing.module'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | IonicModule, 14 | CommonModule, 15 | FormsModule, 16 | ExploreContainerComponentModule, 17 | RouterModule.forChild([{ path: '', component: Tab3Page }]), 18 | Tab3PageRoutingModule, 19 | ], 20 | declarations: [Tab3Page] 21 | }) 22 | export class Tab3PageModule {} 23 | -------------------------------------------------------------------------------- /src/app/tab3/tab3.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tab 3 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Tab 3 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/app/tab3/tab3.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/app/tab3/tab3.page.scss -------------------------------------------------------------------------------- /src/app/tab3/tab3.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | import { ExploreContainerComponentModule } from '../explore-container/explore-container.module'; 4 | 5 | import { Tab3Page } from './tab3.page'; 6 | 7 | describe('Tab3Page', () => { 8 | let component: Tab3Page; 9 | let fixture: ComponentFixture; 10 | 11 | beforeEach(async(() => { 12 | TestBed.configureTestingModule({ 13 | declarations: [Tab3Page], 14 | imports: [IonicModule.forRoot(), ExploreContainerComponentModule] 15 | }).compileComponents(); 16 | 17 | fixture = TestBed.createComponent(Tab3Page); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | })); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/tab3/tab3.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-tab3', 5 | templateUrl: 'tab3.page.html', 6 | styleUrls: ['tab3.page.scss'] 7 | }) 8 | export class Tab3Page { 9 | 10 | constructor() {} 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/app/tabs/tabs-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule, Routes } from '@angular/router'; 3 | import { TabsPage } from './tabs.page'; 4 | 5 | const routes: Routes = [ 6 | { 7 | path: 'tabs', 8 | component: TabsPage, 9 | children: [ 10 | { 11 | path: 'tab1', 12 | loadChildren: () => import('../tab1/tab1.module').then(m => m.Tab1PageModule) 13 | }, 14 | { 15 | path: 'tab2', 16 | loadChildren: () => import('../tab2/tab2.module').then(m => m.Tab2PageModule) 17 | }, 18 | { 19 | path: 'tab3', 20 | loadChildren: () => import('../tab3/tab3.module').then(m => m.Tab3PageModule) 21 | }, 22 | { 23 | path: 'tab1/:title', 24 | loadChildren: () => import('../album/album.module').then( m => m.AlbumPageModule) 25 | }, 26 | { 27 | path: '', 28 | redirectTo: '/tabs/tab1', 29 | pathMatch: 'full' 30 | } 31 | ] 32 | }, 33 | { 34 | path: '', 35 | redirectTo: '/tabs/tab1', 36 | pathMatch: 'full' 37 | } 38 | ]; 39 | 40 | @NgModule({ 41 | imports: [RouterModule.forChild(routes)], 42 | exports: [RouterModule] 43 | }) 44 | export class TabsPageRoutingModule {} 45 | -------------------------------------------------------------------------------- /src/app/tabs/tabs.module.ts: -------------------------------------------------------------------------------- 1 | import { IonicModule } from '@ionic/angular'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | 6 | import { TabsPageRoutingModule } from './tabs-routing.module'; 7 | 8 | import { TabsPage } from './tabs.page'; 9 | 10 | @NgModule({ 11 | imports: [ 12 | IonicModule, 13 | CommonModule, 14 | FormsModule, 15 | TabsPageRoutingModule 16 | ], 17 | declarations: [TabsPage] 18 | }) 19 | export class TabsPageModule {} 20 | -------------------------------------------------------------------------------- /src/app/tabs/tabs.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | All the Good Girls Go to Hell
14 | Billie Eilish 15 |
16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 | 25 | 26 | Home 27 | 28 | 29 | 30 | 31 | Search 32 | 33 | 34 | 35 | 36 | Library 37 | 38 | 39 |
40 | -------------------------------------------------------------------------------- /src/app/tabs/tabs.page.scss: -------------------------------------------------------------------------------- 1 | ion-tab-bar { 2 | --background: var(--ion-color-medium); 3 | } 4 | 5 | ion-tab-button { 6 | --color-selected: #fff; 7 | } 8 | 9 | .player { 10 | height: 55px; 11 | background: var(--ion-color-medium); 12 | img { 13 | height: 55px; 14 | } 15 | font-family: 'Spotify'; 16 | color: #fff; 17 | font-size: small; 18 | 19 | .progress-bar { 20 | height: 2px; 21 | width: 100%; 22 | background: #707070; 23 | 24 | .progress { 25 | background: #fff; 26 | height: 100%; 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/app/tabs/tabs.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { TabsPage } from './tabs.page'; 5 | 6 | describe('TabsPage', () => { 7 | let component: TabsPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [TabsPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA], 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(TabsPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/tabs/tabs.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild } from '@angular/core'; 2 | import { IonTabs } from '@ionic/angular'; 3 | 4 | @Component({ 5 | selector: 'app-tabs', 6 | templateUrl: 'tabs.page.html', 7 | styleUrls: ['tabs.page.scss'] 8 | }) 9 | export class TabsPage { 10 | @ViewChild('tabs') tabs: IonTabs; 11 | selected = ''; 12 | progress = 42; 13 | 14 | constructor() {} 15 | 16 | setSelectedTab() { 17 | this.selected = this.tabs.getSelected(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/assets/fonts/spotify-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/fonts/spotify-bold.ttf -------------------------------------------------------------------------------- /src/assets/fonts/spotify-light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/fonts/spotify-light.ttf -------------------------------------------------------------------------------- /src/assets/fonts/spotify-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/fonts/spotify-regular.ttf -------------------------------------------------------------------------------- /src/assets/icon/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/icon/favicon.png -------------------------------------------------------------------------------- /src/assets/images/albums/blank-face-lp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/blank-face-lp.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/born-to-die.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/born-to-die.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/come-around-sundown.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/come-around-sundown.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/dear-miss-lonelyhearts.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/dear-miss-lonelyhearts.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/ex-re.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/ex-re.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/extra-machine.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/extra-machine.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/houses-of-the-holy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/houses-of-the-holy.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/illuminate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/illuminate.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/sea-of-cowards.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/sea-of-cowards.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/stadium-arcadium.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/stadium-arcadium.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/swimming.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/swimming.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/the-creek-drank.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/the-creek-drank.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/the-legend-of-mr-rager.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/the-legend-of-mr-rager.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/the-lonesome-crowded-west.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/the-lonesome-crowded-west.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/when-we-all-fall-asleep.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/when-we-all-fall-asleep.jpg -------------------------------------------------------------------------------- /src/assets/images/albums/wish-you-were-here.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/albums/wish-you-were-here.jpg -------------------------------------------------------------------------------- /src/assets/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saimon24/ionic-spotify-ui/dd1e9f384fad00029326e6ff2fa68dc448d53b6c/src/assets/images/user.png -------------------------------------------------------------------------------- /src/assets/mockdata/albums/bornToDie.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Lana Del Rey", 3 | "backgroundColor": "#3d4c6c", 4 | "image": "bornToDie", 5 | "released": 2012, 6 | "title": "Born to Die", 7 | "tracks": [ 8 | { "title": "Born to Die", "seconds": 161 }, 9 | { "title": "Off to the Races", "seconds": 245 }, 10 | { "title": "Blue Jeans", "seconds": 288 }, 11 | { "title": "Video Games", "seconds": 215 }, 12 | { "title": "Diet Mountain Dew", "seconds": 345 }, 13 | { "title": "National Anthem", "seconds": 250 }, 14 | { "title": "Dark Paradise", "seconds": 287 }, 15 | { "title": "Radio", "seconds": 271 }, 16 | { "title": "Carmen", "seconds": 210 }, 17 | { "title": "Million Dollar Man", "seconds": 237 }, 18 | { "title": "Summertime Sadness", "seconds": 345 }, 19 | { "title": "This Is What Makes Us Girls", "seconds": 347 } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/comeAroundSundown.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Kings of Leon", 3 | "backgroundColor": "#87744a", 4 | "image": "comeAroundSundown", 5 | "released": 2010, 6 | "title": "Come Around Sundown", 7 | "tracks": [ 8 | { "title": "The End", "seconds": 161 }, 9 | { "title": "Radioactive", "seconds": 245 }, 10 | { "title": "Pyro", "seconds": 288 }, 11 | { "title": "Mary", "seconds": 215 }, 12 | { "title": "The Face", "seconds": 345 }, 13 | { "title": "The Immortals", "seconds": 250 }, 14 | { "title": "Back Down South", "seconds": 287 }, 15 | { "title": "Beach Side", "seconds": 271 }, 16 | { "title": "No Money", "seconds": 210 }, 17 | { "title": "Pony Up", "seconds": 237 }, 18 | { "title": "Birthday", "seconds": 345 }, 19 | { "title": "Mi Amigo", "seconds": 347 }, 20 | { "title": "Pickup Truck", "seconds": 287 } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/exRe.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Ex:Re", 3 | "backgroundColor": "#0d2157", 4 | "image": "exRe", 5 | "released": 2018, 6 | "title": "Ex:Re", 7 | "tracks": [ 8 | { "title": "Where The Time Went", "seconds": 251 }, 9 | { "title": "Crushing", "seconds": 248 }, 10 | { "title": "New York", "seconds": 320 }, 11 | { "title": "Romance", "seconds": 403 }, 12 | { "title": "The Dazzler", "seconds": 282 }, 13 | { "title": "Too Sad", "seconds": 328 }, 14 | { "title": "Liar", "seconds": 294 }, 15 | { "title": "I Can't Keep You", "seconds": 257 }, 16 | { "title": "5AM", "seconds": 204 }, 17 | { "title": "My Heart", "seconds": 277 } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/extraordinaryMachine.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Fiona Apple", 3 | "backgroundColor": "#636e35", 4 | "image": "extraMachine", 5 | "released": 2005, 6 | "title": "Extraordinary Machine", 7 | "tracks": [ 8 | { "title": "Extraordinary Machine", "seconds": 224 }, 9 | { "title": "Get Him Back", "seconds": 326 }, 10 | { "title": "O' Sailor", "seconds": 337 }, 11 | { "title": "Better Version of Me", "seconds": 181 }, 12 | { "title": "Tymps (the Sick in the Head Song)", "seconds": 245 }, 13 | { "title": "Parting Gift", "seconds": 216 }, 14 | { "title": "Window", "seconds": 333 }, 15 | { "title": "Oh Well", "seconds": 222 }, 16 | { "title": "Please Please Please", "seconds": 215 }, 17 | { "title": "Red Red Red", "seconds": 248 }, 18 | { "title": "Not About Love", "seconds": 261 }, 19 | { "title": "Waltz (Better Than Fine)", "seconds": 226 } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/index.js: -------------------------------------------------------------------------------- 1 | import bornToDie from './bornToDie.json'; 2 | import comeAroundSundown from './comeAroundSundown.json'; 3 | import exRe from './exRe.json'; 4 | import extraordinaryMachine from './extraordinaryMachine.json'; 5 | import manOnTheMoon2 from './manOnTheMoon2.json'; 6 | import seaOfCowards from './seaOfCowards.json'; 7 | import swimming from './swimming.json'; 8 | import whenWeAllFallAsleep from './whenWeAllFallAsleep.json'; 9 | import wishYouWereHere from './wishYouWereHere.json'; 10 | 11 | export default { 12 | 'Born To Die': bornToDie, 13 | 'Come Around Sundown': comeAroundSundown, 14 | 'Ex:Re': exRe, 15 | 'Extraordinary Machine': extraordinaryMachine, 16 | 'Man On The Moon II: The Legend of Mr. Rager': manOnTheMoon2, 17 | 'Sea Of Cowards': seaOfCowards, 18 | Swimming: swimming, 19 | 'WHEN WE ALL FALL ASLEEP, WHERE DO WE GO?': whenWeAllFallAsleep, 20 | 'Wish You Were Here': wishYouWereHere 21 | }; 22 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/manOnTheMoon2.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Kid Cudi", 3 | "backgroundColor": "#70603b", 4 | "image": "theLegendOfMrRager", 5 | "released": 2010, 6 | "title": "Man On The Moon II: The Legend of Mr. Rager", 7 | "tracks": [ 8 | { 9 | "title": "Scott Mescudi vs. the World", 10 | "seconds": 235, 11 | "featuring": ["CeeLo Green"] 12 | }, 13 | { 14 | "title": "Revofev", 15 | "seconds": 183 16 | }, 17 | { 18 | "title": "Don't Play This Song", 19 | "seconds": 223, 20 | "featuring": ["Mary J. Blige"] 21 | }, 22 | { 23 | "title": "We Aite (Wake Your Mind Up)", 24 | "seconds": 87 25 | }, 26 | { 27 | "title": "Marijuana", 28 | "seconds": 260 29 | }, 30 | { 31 | "title": "Mojo So Dope", 32 | "seconds": 211 33 | }, 34 | { 35 | "title": "Ashin' Kusher", 36 | "seconds": 260 37 | }, 38 | { 39 | "title": "Erase Me", 40 | "seconds": 260, 41 | "featuring": ["Mary J. Blige"] 42 | }, 43 | { 44 | "title": "Wild'n Cuz I'm Young", 45 | "seconds": 260 46 | }, 47 | { 48 | "title": "The Mood", 49 | "seconds": 260 50 | }, 51 | { 52 | "title": "Maniac", 53 | "seconds": 260, 54 | "featuring": ["Cage", "St. Vincent"] 55 | }, 56 | { 57 | "title": "These Worries", 58 | "seconds": 260, 59 | "featuring": ["Mary J. Blige"] 60 | }, 61 | { 62 | "title": "The End", 63 | "seconds": 260, 64 | "featuring": ["GLC", "Chip tha Ripper", "Nicole Wray"] 65 | }, 66 | { 67 | "title": "All Along", 68 | "seconds": 260 69 | }, 70 | { 71 | "title": "Ghost!", 72 | "seconds": 260 73 | }, 74 | { 75 | "title": "Trapped in My Mind", 76 | "seconds": 260 77 | } 78 | ] 79 | } 80 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/seaOfCowards.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "The Dead Weather", 3 | "backgroundColor": "#736026", 4 | "image": "seaOfCowards", 5 | "released": 2010, 6 | "title": "Sea Of Cowards", 7 | "tracks": [ 8 | { "title": "Blue Blood Blues", "seconds": 161 }, 9 | { "title": "Hustle and Cuss", "seconds": 245 }, 10 | { "title": "The Difference Between Us", "seconds": 288 }, 11 | { "title": "I'm Mad", "seconds": 215 }, 12 | { "title": "Die by the Drop", "seconds": 345 }, 13 | { "title": "I Can't Hear You", "seconds": 250 }, 14 | { "title": "Gasoline", "seconds": 287 }, 15 | { "title": "No Horse", "seconds": 271 }, 16 | { "title": "Looking at the Invisible Man", "seconds": 210 }, 17 | { "title": "Jawbreaker", "seconds": 237 }, 18 | { "title": "Old Mary", "seconds": 345 } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/swimming.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Mac Miller", 3 | "backgroundColor": "#644548", 4 | "image": "swimming", 5 | "released": 2018, 6 | "title": "Swimming", 7 | "tracks": [ 8 | { "title": "Come Back to Earth", "seconds": 161 }, 9 | { "title": "Hurt Feelings", "seconds": 245 }, 10 | { "title": "What's the Use?", "seconds": 288 }, 11 | { "title": "Perfecto", "seconds": 215 }, 12 | { "title": "Self Care", "seconds": 345 }, 13 | { "title": "Wings", "seconds": 250 }, 14 | { "title": "Ladders", "seconds": 287 }, 15 | { "title": "Small Worlds", "seconds": 271 }, 16 | { "title": "Conversation Pt. 1", "seconds": 210 }, 17 | { "title": "Dunno", "seconds": 237 }, 18 | { "title": "Jet Fuel", "seconds": 345 }, 19 | { "title": "2009", "seconds": 347 }, 20 | { "title": "So It Goes", "seconds": 312 } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/whenWeAllFallAsleep.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Billie Eilish", 3 | "backgroundColor": "#363230", 4 | "image": "whenWeAllFallAsleep", 5 | "released": 2019, 6 | "title": "WHEN WE ALL FALL ASLEEP, WHERE DO WE GO?", 7 | "tracks": [ 8 | { "title": "!!!!!!!", "seconds": 161 }, 9 | { "title": "Bad Guy", "seconds": 245 }, 10 | { "title": "Xanny", "seconds": 288 }, 11 | { "title": "You Should See Me in a Crown", "seconds": 215 }, 12 | { "title": "All the Good Girls Go to Hell", "seconds": 345 }, 13 | { "title": "Wish You Were Gay", "seconds": 250 }, 14 | { "title": "When the Party's Over", "seconds": 287 }, 15 | { "title": "8", "seconds": 271 }, 16 | { "title": "My Strange Addiction", "seconds": 210 }, 17 | { "title": "Bury a Friend", "seconds": 237 }, 18 | { "title": "Ilomilo", "seconds": 345 }, 19 | { "title": "Listen Before I Go", "seconds": 347 }, 20 | { "title": "I Love You", "seconds": 312 }, 21 | { "title": "Goodbye", "seconds": 271 } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /src/assets/mockdata/albums/wishYouWereHere.json: -------------------------------------------------------------------------------- 1 | { 2 | "artist": "Pink Floyd", 3 | "backgroundColor": "#a7b9db", 4 | "image": "wishYouWereHere", 5 | "released": 1975, 6 | "title": "Wish You Were Here", 7 | "tracks": [ 8 | { "title": "Shine On You Crazy Diamond (Parts I–V)", "seconds": 161 }, 9 | { "title": "Welcome to the Machine", "seconds": 245 }, 10 | { "title": "Have a Cigar", "seconds": 288 }, 11 | { "title": "Wish You Were Here", "seconds": 215 }, 12 | { "title": "Shine On You Crazy Diamond (Parts VI–IX)", "seconds": 345 } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /src/assets/mockdata/heavyRotation.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "image": "whenWeAllFallAsleep", 5 | "title": "WHEN WE ALL FALL ASLEEP, WHERE DO WE GO?" 6 | }, 7 | { "id": 2, "image": "bornToDie", "title": "Born To Die" }, 8 | { "id": 3, "image": "comeAroundSundown", "title": "Come Around Sundown" }, 9 | { "id": 4, "image": "housesOfTheHoly", "title": "Houses Of The Holy" }, 10 | { "id": 5, "image": "illuminate", "title": "Illuminate" }, 11 | { 12 | "id": 6, 13 | "image": "theLonesomeCrowdedWest", 14 | "title": "The Lonesome Crowded West" 15 | }, 16 | { "id": 7, "image": "stadiumArcadium", "title": "Stadium Arcadium" }, 17 | { "id": 8, "image": "blankFaceLp", "title": "Blank Face LP" } 18 | ] 19 | -------------------------------------------------------------------------------- /src/assets/mockdata/jumpBackIn.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "id": 1, "image": "extraMachine", "title": "Extraordinary Machine" }, 3 | { 4 | "id": 2, 5 | "image": "theLonesomeCrowdedWest", 6 | "title": "The Lonesome Crowded West" 7 | }, 8 | { "id": 3, "image": "wishYouWereHere", "title": "Wish You Were Here" }, 9 | { 10 | "id": 4, 11 | "image": "dearMissLonelyhearts", 12 | "title": "Dear Miss Lonelyhearts" 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /src/assets/mockdata/menuMoreOptions.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "icon": "heart-o", 5 | "title": "Like", 6 | "lib": "FontAwesome" 7 | }, 8 | { 9 | "id": 2, 10 | "icon": "account-music", 11 | "title": "View artist", 12 | "lib": "MaterialCommunityIcons" 13 | }, 14 | { 15 | "id": 3, 16 | "icon": "share-alternative", 17 | "title": "Share", 18 | "lib": "Entypo" 19 | }, 20 | { 21 | "id": 4, 22 | "icon": "heart-o", 23 | "title": "Like all songs", 24 | "lib": "FontAwesome" 25 | }, 26 | { 27 | "id": 5, 28 | "icon": "queue-music", 29 | "title": "Add to playlist", 30 | "lib": "MaterialIcons" 31 | }, 32 | { 33 | "id": 6, 34 | "icon": "playlist-add", 35 | "title": "Add to queue", 36 | "lib": "MaterialIcons" 37 | }, 38 | { 39 | "id": 7, 40 | "icon": "radio", 41 | "title": "Go to radio", 42 | "lib": "Feather" 43 | } 44 | ] 45 | -------------------------------------------------------------------------------- /src/assets/mockdata/menuYourLibrary.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "id": 1, "icon": "sun", "title": "Made For You" }, 3 | { "id": 2, "icon": "music", "title": "Playlists" }, 4 | { "id": 3, "icon": "radio", "title": "Stations" }, 5 | { "id": 4, "icon": "speaker", "title": "Songs" }, 6 | { "id": 5, "icon": "disc", "title": "Albums" }, 7 | { "id": 6, "icon": "user", "title": "Artists" }, 8 | { "id": 7, "icon": "mic", "title": "Podcasts" }, 9 | { "id": 8, "icon": "youtube", "title": "Videos" } 10 | ] 11 | -------------------------------------------------------------------------------- /src/assets/mockdata/recentlyPlayed.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "id": 1, "image": "exRe", "title": "Ex:Re" }, 3 | { "id": 2, "image": "swimming", "title": "Swimming" }, 4 | { 5 | "id": 3, 6 | "image": "theLegendOfMrRager", 7 | "title": "Man On The Moon II: The Legend of Mr. Rager" 8 | }, 9 | { "id": 4, "image": "seaOfCowards", "title": "Sea Of Cowards" }, 10 | { "id": 5, "image": "wishYouWereHere", "title": "Wish You Were Here" }, 11 | { "id": 6, "image": "extraMachine", "title": "Extraordinary Machine" }, 12 | { "id": 7, "image": "theCreekDrank", "title": "The Creek Drank The Cradle" } 13 | ] 14 | -------------------------------------------------------------------------------- /src/assets/mockdata/searchBrowseAll.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "id": 1, "color": "#e69e41", "title": "Podcasts" }, 3 | { "id": 2, "color": "#5b8d7c", "title": "Charts" }, 4 | { "id": 3, "color": "#a3bdcb", "title": "New Releases" }, 5 | { "id": 4, "color": "#e1789d", "title": "Radio" }, 6 | { "id": 5, "color": "#6297eb", "title": "Videos" }, 7 | { "id": 6, "color": "#ac9ac1", "title": "Discover" }, 8 | { "id": 7, "color": "#ea6c45", "title": "Concerts" }, 9 | { "id": 8, "color": "#6297eb", "title": "Mood" }, 10 | { "id": 9, "color": "#e3b966", "title": "Workout" }, 11 | { "id": 10, "color": "#8ecfc1", "title": "Decades" }, 12 | { "id": 11, "color": "#5b8d7c", "title": "Country" }, 13 | { "id": 12, "color": "#ae9ac2", "title": "Focus" }, 14 | { "id": 13, "color": "#ea6c45", "title": "Latin" }, 15 | { "id": 14, "color": "#a3bdcb", "title": "Chill" }, 16 | { "id": 15, "color": "#8ecfc1", "title": "R&B" }, 17 | { "id": 16, "color": "#5b8d7c", "title": "Folk & Acoustic" }, 18 | { "id": 17, "color": "#da47a0", "title": "Party" }, 19 | { "id": 18, "color": "#a3becb", "title": "Sleep" } 20 | ] 21 | -------------------------------------------------------------------------------- /src/assets/mockdata/searchTopGenres.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "id": 1, "color": "#e69c40", "title": "Hip-Hop" }, 3 | { "id": 2, "color": "#3905E5", "title": "Indie" }, 4 | { "id": 3, "color": "#d23739", "title": "Rock" }, 5 | { "id": 4, "color": "#b5d4b5", "title": "Pop" } 6 | ] 7 | -------------------------------------------------------------------------------- /src/assets/shapes.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /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/dist/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 | 29 | ion-content { 30 | --background: var(--ion-color-dark); 31 | } 32 | 33 | @font-face { 34 | font-family: 'Spotify'; 35 | font-style: normal; 36 | font-weight: normal; 37 | src: url('/assets/fonts/spotify-regular.ttf'); 38 | } 39 | 40 | @font-face { 41 | font-family: 'Spotify'; 42 | font-weight: bold; 43 | src: url('/assets/fonts/spotify-bold.ttf'); 44 | } 45 | 46 | @font-face { 47 | font-family: 'Spotify'; 48 | font-weight: lighter; 49 | src: url('/assets/fonts/spotify-light.ttf'); 50 | } -------------------------------------------------------------------------------- /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/dist/zone'; // 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/dist/zone-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 | --ion-color-primary: #57b660; 7 | --ion-color-primary-rgb: 87,182,96; 8 | --ion-color-primary-contrast: #000000; 9 | --ion-color-primary-contrast-rgb: 0,0,0; 10 | --ion-color-primary-shade: #4da054; 11 | --ion-color-primary-tint: #68bd70; 12 | 13 | --ion-color-secondary: #3dc2ff; 14 | --ion-color-secondary-rgb: 61,194,255; 15 | --ion-color-secondary-contrast: #ffffff; 16 | --ion-color-secondary-contrast-rgb: 255,255,255; 17 | --ion-color-secondary-shade: #36abe0; 18 | --ion-color-secondary-tint: #50c8ff; 19 | 20 | --ion-color-tertiary: #5260ff; 21 | --ion-color-tertiary-rgb: 82,96,255; 22 | --ion-color-tertiary-contrast: #ffffff; 23 | --ion-color-tertiary-contrast-rgb: 255,255,255; 24 | --ion-color-tertiary-shade: #4854e0; 25 | --ion-color-tertiary-tint: #6370ff; 26 | 27 | --ion-color-success: #2dd36f; 28 | --ion-color-success-rgb: 45,211,111; 29 | --ion-color-success-contrast: #ffffff; 30 | --ion-color-success-contrast-rgb: 255,255,255; 31 | --ion-color-success-shade: #28ba62; 32 | --ion-color-success-tint: #42d77d; 33 | 34 | --ion-color-warning: #ffc409; 35 | --ion-color-warning-rgb: 255,196,9; 36 | --ion-color-warning-contrast: #000000; 37 | --ion-color-warning-contrast-rgb: 0,0,0; 38 | --ion-color-warning-shade: #e0ac08; 39 | --ion-color-warning-tint: #ffca22; 40 | 41 | --ion-color-danger: #eb445a; 42 | --ion-color-danger-rgb: 235,68,90; 43 | --ion-color-danger-contrast: #ffffff; 44 | --ion-color-danger-contrast-rgb: 255,255,255; 45 | --ion-color-danger-shade: #cf3c4f; 46 | --ion-color-danger-tint: #ed576b; 47 | 48 | --ion-color-dark: #121212; 49 | --ion-color-dark-rgb: 18,18,18; 50 | --ion-color-dark-contrast: #ffffff; 51 | --ion-color-dark-contrast-rgb: 255,255,255; 52 | --ion-color-dark-shade: #101010; 53 | --ion-color-dark-tint: #2a2a2a; 54 | 55 | --ion-color-medium: #282822; 56 | --ion-color-medium-rgb: 40,40,34; 57 | --ion-color-medium-contrast: #ffffff; 58 | --ion-color-medium-contrast-rgb: 255,255,255; 59 | --ion-color-medium-shade: #23231e; 60 | --ion-color-medium-tint: #3e3e38; 61 | 62 | --ion-color-light: #ffffff; 63 | --ion-color-light-rgb: 255,255,255; 64 | --ion-color-light-contrast: #000000; 65 | --ion-color-light-contrast-rgb: 0,0,0; 66 | --ion-color-light-shade: #e0e0e0; 67 | --ion-color-light-tint: #ffffff; 68 | } 69 | 70 | @media (prefers-color-scheme: dark) { 71 | /* 72 | * Dark Colors 73 | * ------------------------------------------- 74 | */ 75 | 76 | body { 77 | --ion-color-primary: #428cff; 78 | --ion-color-primary-rgb: 66,140,255; 79 | --ion-color-primary-contrast: #ffffff; 80 | --ion-color-primary-contrast-rgb: 255,255,255; 81 | --ion-color-primary-shade: #3a7be0; 82 | --ion-color-primary-tint: #5598ff; 83 | 84 | --ion-color-secondary: #50c8ff; 85 | --ion-color-secondary-rgb: 80,200,255; 86 | --ion-color-secondary-contrast: #ffffff; 87 | --ion-color-secondary-contrast-rgb: 255,255,255; 88 | --ion-color-secondary-shade: #46b0e0; 89 | --ion-color-secondary-tint: #62ceff; 90 | 91 | --ion-color-tertiary: #6a64ff; 92 | --ion-color-tertiary-rgb: 106,100,255; 93 | --ion-color-tertiary-contrast: #ffffff; 94 | --ion-color-tertiary-contrast-rgb: 255,255,255; 95 | --ion-color-tertiary-shade: #5d58e0; 96 | --ion-color-tertiary-tint: #7974ff; 97 | 98 | --ion-color-success: #2fdf75; 99 | --ion-color-success-rgb: 47,223,117; 100 | --ion-color-success-contrast: #000000; 101 | --ion-color-success-contrast-rgb: 0,0,0; 102 | --ion-color-success-shade: #29c467; 103 | --ion-color-success-tint: #44e283; 104 | 105 | --ion-color-warning: #ffd534; 106 | --ion-color-warning-rgb: 255,213,52; 107 | --ion-color-warning-contrast: #000000; 108 | --ion-color-warning-contrast-rgb: 0,0,0; 109 | --ion-color-warning-shade: #e0bb2e; 110 | --ion-color-warning-tint: #ffd948; 111 | 112 | --ion-color-danger: #ff4961; 113 | --ion-color-danger-rgb: 255,73,97; 114 | --ion-color-danger-contrast: #ffffff; 115 | --ion-color-danger-contrast-rgb: 255,255,255; 116 | --ion-color-danger-shade: #e04055; 117 | --ion-color-danger-tint: #ff5b71; 118 | 119 | --ion-color-dark: #f4f5f8; 120 | --ion-color-dark-rgb: 244,245,248; 121 | --ion-color-dark-contrast: #000000; 122 | --ion-color-dark-contrast-rgb: 0,0,0; 123 | --ion-color-dark-shade: #d7d8da; 124 | --ion-color-dark-tint: #f5f6f9; 125 | 126 | --ion-color-medium: #989aa2; 127 | --ion-color-medium-rgb: 152,154,162; 128 | --ion-color-medium-contrast: #000000; 129 | --ion-color-medium-contrast-rgb: 0,0,0; 130 | --ion-color-medium-shade: #86888f; 131 | --ion-color-medium-tint: #a2a4ab; 132 | 133 | --ion-color-light: #222428; 134 | --ion-color-light-rgb: 34,36,40; 135 | --ion-color-light-contrast: #ffffff; 136 | --ion-color-light-contrast-rgb: 255,255,255; 137 | --ion-color-light-shade: #1e2023; 138 | --ion-color-light-tint: #383a3e; 139 | } 140 | 141 | /* 142 | * iOS Dark Theme 143 | * ------------------------------------------- 144 | */ 145 | 146 | .ios body { 147 | --ion-background-color: #000000; 148 | --ion-background-color-rgb: 0,0,0; 149 | 150 | --ion-text-color: #ffffff; 151 | --ion-text-color-rgb: 255,255,255; 152 | 153 | --ion-color-step-50: #0d0d0d; 154 | --ion-color-step-100: #1a1a1a; 155 | --ion-color-step-150: #262626; 156 | --ion-color-step-200: #333333; 157 | --ion-color-step-250: #404040; 158 | --ion-color-step-300: #4d4d4d; 159 | --ion-color-step-350: #595959; 160 | --ion-color-step-400: #666666; 161 | --ion-color-step-450: #737373; 162 | --ion-color-step-500: #808080; 163 | --ion-color-step-550: #8c8c8c; 164 | --ion-color-step-600: #999999; 165 | --ion-color-step-650: #a6a6a6; 166 | --ion-color-step-700: #b3b3b3; 167 | --ion-color-step-750: #bfbfbf; 168 | --ion-color-step-800: #cccccc; 169 | --ion-color-step-850: #d9d9d9; 170 | --ion-color-step-900: #e6e6e6; 171 | --ion-color-step-950: #f2f2f2; 172 | 173 | --ion-toolbar-background: #0d0d0d; 174 | 175 | --ion-item-background: #000000; 176 | 177 | --ion-card-background: #1c1c1d; 178 | } 179 | 180 | 181 | /* 182 | * Material Design Dark Theme 183 | * ------------------------------------------- 184 | */ 185 | 186 | .md body { 187 | --ion-background-color: #121212; 188 | --ion-background-color-rgb: 18,18,18; 189 | 190 | --ion-text-color: #ffffff; 191 | --ion-text-color-rgb: 255,255,255; 192 | 193 | --ion-border-color: #222222; 194 | 195 | --ion-color-step-50: #1e1e1e; 196 | --ion-color-step-100: #2a2a2a; 197 | --ion-color-step-150: #363636; 198 | --ion-color-step-200: #414141; 199 | --ion-color-step-250: #4d4d4d; 200 | --ion-color-step-300: #595959; 201 | --ion-color-step-350: #656565; 202 | --ion-color-step-400: #717171; 203 | --ion-color-step-450: #7d7d7d; 204 | --ion-color-step-500: #898989; 205 | --ion-color-step-550: #949494; 206 | --ion-color-step-600: #a0a0a0; 207 | --ion-color-step-650: #acacac; 208 | --ion-color-step-700: #b8b8b8; 209 | --ion-color-step-750: #c4c4c4; 210 | --ion-color-step-800: #d0d0d0; 211 | --ion-color-step-850: #dbdbdb; 212 | --ion-color-step-900: #e7e7e7; 213 | --ion-color-step-950: #f3f3f3; 214 | 215 | --ion-item-background: #1e1e1e; 216 | 217 | --ion-toolbar-background: #1f1f1f; 218 | 219 | --ion-tab-bar-background: #1f1f1f; 220 | 221 | --ion-card-background: #1e1e1e; 222 | } 223 | } -------------------------------------------------------------------------------- /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 | "resolveJsonModule": true, 5 | "allowSyntheticDefaultImports": true, 6 | "baseUrl": "./", 7 | "outDir": "./dist/out-tsc", 8 | "sourceMap": true, 9 | "declaration": false, 10 | "downlevelIteration": true, 11 | "experimentalDecorators": true, 12 | "module": "esnext", 13 | "moduleResolution": "node", 14 | "importHelpers": true, 15 | "target": "es2015", 16 | "lib": [ 17 | "es2018", 18 | "dom" 19 | ] 20 | }, 21 | "angularCompilerOptions": { 22 | "fullTemplateTypeCheck": true, 23 | "strictInjectionParameters": true 24 | } 25 | } -------------------------------------------------------------------------------- /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 | } --------------------------------------------------------------------------------