[R] rename channel-list to sidebar
This commit is contained in:
parent
0d01e55b6e
commit
7f10bf776e
7 changed files with 12 additions and 33 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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: [
|
||||||
|
|
|
||||||
|
|
@ -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();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -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,
|
||||||
|
|
@ -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'
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue