Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { MusicsComponent } from './musics/musics.component';
import { PlaylistsComponent } from './playlists/playlists.component';
import { authGuard } from './guards/auth.guard';
import { HomeComponent } from './home/home.component';
import { PlaylistsPersonalizedComponent } from './playlists-personalized/playlists-personalized.component';

const routes: Routes = [
{
Expand All @@ -23,10 +24,15 @@ const routes: Routes = [
canActivate: [authGuard]
},
{
path: 'playlists',
path: 'playlists/top-musics',
component: PlaylistsComponent,
canActivate: [authGuard]
},
{
path: 'playlists/personalized',
component: PlaylistsPersonalizedComponent,
canActivate: [authGuard]
},
{
path: '', component: HomeComponent
}
Expand Down
11 changes: 9 additions & 2 deletions src/app/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@
>Artistas</button>

<button
[routerLink]="['/playlists']"
[routerLink]="['/playlists/top-musics']"
routerLinkActive="router-active"
class="spacer-nav"
mat-button
>Playlists</button>
>Playlists Top Músicas</button>

<button
[routerLink]="['/playlists/personalized']"
routerLinkActive="router-active"
class="spacer-nav"
mat-button
>Playlists Personalizadas</button>

<span class="example-spacer"></span>

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>playlists-personalized works!</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { PlaylistsPersonalizedComponent } from './playlists-personalized.component';

describe('PlaylistsPersonalizedComponent', () => {
let component: PlaylistsPersonalizedComponent;
let fixture: ComponentFixture<PlaylistsPersonalizedComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [PlaylistsPersonalizedComponent]
})
.compileComponents();

fixture = TestBed.createComponent(PlaylistsPersonalizedComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions src/app/playlists-personalized/playlists-personalized.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-playlists-personalized',
templateUrl: './playlists-personalized.component.html',
styleUrl: './playlists-personalized.component.css'
})
export class PlaylistsPersonalizedComponent {

}
15 changes: 15 additions & 0 deletions src/app/playlists-personalized/playlists-personalized.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PlaylistsPersonalizedComponent } from './playlists-personalized.component';



@NgModule({
declarations: [
PlaylistsPersonalizedComponent
],
imports: [
CommonModule
]
})
export class PlaylistsPersonalizedModule { }
2 changes: 1 addition & 1 deletion variables.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
CLIENT_ID: 'ad5577aaca644405975f331123d60a58',
REDIRECT_URL: 'https://angular-stats-spotify.vercel.app/login',
REDIRECT_URL: 'http://localhost:4200/login',
CLIENT_SECRET: 'd3041563f8674d8bba717d1dd94faf1b'

}