[R] rename channel-list to sidebar

This commit is contained in:
Jan 2020-10-30 14:56:58 +01:00
parent 0d01e55b6e
commit 7f10bf776e
7 changed files with 12 additions and 33 deletions

View file

@ -5,7 +5,7 @@
<div class="container-fluid p-0"> <div class="container-fluid p-0">
<div class="myContainer d-flex"> <div class="myContainer d-flex">
<div *ngIf="supa.user | async" class="menu"> <div *ngIf="supa.user | async" class="menu">
<app-channel-list></app-channel-list> <app-sidebar></app-sidebar>
</div> </div>
<div class="container content"> <div class="container content">
<router-outlet></router-outlet> <router-outlet></router-outlet>

View file

@ -18,7 +18,7 @@ import { SignupComponent } from './signup/signup.component';
import { HuddleComponent } from './huddle/huddle.component'; import { HuddleComponent } from './huddle/huddle.component';
import { ProfileComponent } from './profile/profile.component'; import { ProfileComponent } from './profile/profile.component';
import { ChannelComponent } from './channel/channel.component'; import { ChannelComponent } from './channel/channel.component';
import { ChannelListComponent } from './channel-list/channel-list.component'; import { SidebarComponent } from './sidebar/sidebar.component';
import { DashboardComponent } from './dashboard/dashboard.component'; import { DashboardComponent } from './dashboard/dashboard.component';
@NgModule({ @NgModule({
@ -30,7 +30,7 @@ import { DashboardComponent } from './dashboard/dashboard.component';
SignupComponent, SignupComponent,
ProfileComponent, ProfileComponent,
ChannelComponent, ChannelComponent,
ChannelListComponent, SidebarComponent,
DashboardComponent DashboardComponent
], ],
imports: [ imports: [

View file

@ -1,25 +0,0 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ChannelListComponent } from './channel-list.component';
describe('ChannelListComponent', () => {
let component: ChannelListComponent;
let fixture: ComponentFixture<ChannelListComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ChannelListComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ChannelListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -14,4 +14,5 @@
<ul class="list-unstyled"> <ul class="list-unstyled">
<li [routerLink]="'/profile'">Profile</li> <li [routerLink]="'/profile'">Profile</li>
</ul> </ul>
<p style="position: absolute; bottom: 5px; text-align: center;" class="text-muted"><small>v{{environment.version}}</small></p>
</div> </div>

View file

@ -2,14 +2,16 @@ import { Component, OnInit } from '@angular/core';
import { Observable, throwError } from 'rxjs'; import { Observable, throwError } from 'rxjs';
import { StandUp } from '../api/supabase/standup'; import { StandUp } from '../api/supabase/standup';
import { StandupService } from '../api/supabase/standup.service'; import { StandupService } from '../api/supabase/standup.service';
import { environment } from '../../environments/environment';
@Component({ @Component({
selector: 'app-channel-list', selector: 'app-sidebar',
templateUrl: './channel-list.component.html', templateUrl: './sidebar.component.html',
styleUrls: ['./channel-list.component.scss'] styleUrls: ['./sidebar.component.scss']
}) })
export class ChannelListComponent implements OnInit { export class SidebarComponent implements OnInit {
standups: StandUp[] = []; standups: StandUp[] = [];
environment = environment;
constructor( constructor(
private standupSevice: StandupService, private standupSevice: StandupService,

View file

@ -6,5 +6,6 @@
export const environment = { export const environment = {
production: false, production: false,
supa_url: 'https://wdklwjgycvhxpbbnrpto.supabase.co', supa_url: 'https://wdklwjgycvhxpbbnrpto.supabase.co',
supa_key: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYwMzQ2OTMyOCwiZXhwIjoxOTE5MDQ1MzI4fQ.KunzEloX8UoOAK8fGbiZtAi9bMxB_Ap8GVcJFWyPx0Q' supa_key: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYwMzQ2OTMyOCwiZXhwIjoxOTE5MDQ1MzI4fQ.KunzEloX8UoOAK8fGbiZtAi9bMxB_Ap8GVcJFWyPx0Q',
version: '0.0.1'
}; };