Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-005
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IT18019896 A.R.M.R.M.Mudalinayake
2021-005
Commits
567b7b20
Commit
567b7b20
authored
Jul 04, 2021
by
Dinushe Jayasekera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added audio navLink
parent
db51edf7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
3 deletions
+57
-3
test-Angular - Copy/src/app/app-routing.module.ts
test-Angular - Copy/src/app/app-routing.module.ts
+3
-1
test-Angular - Copy/src/app/app.module.ts
test-Angular - Copy/src/app/app.module.ts
+3
-1
test-Angular - Copy/src/app/audio/audio.component.css
test-Angular - Copy/src/app/audio/audio.component.css
+1
-0
test-Angular - Copy/src/app/audio/audio.component.html
test-Angular - Copy/src/app/audio/audio.component.html
+8
-0
test-Angular - Copy/src/app/audio/audio.component.spec.ts
test-Angular - Copy/src/app/audio/audio.component.spec.ts
+25
-0
test-Angular - Copy/src/app/audio/audio.component.ts
test-Angular - Copy/src/app/audio/audio.component.ts
+15
-0
test-Angular - Copy/src/app/sidenav/sidenav.component.html
test-Angular - Copy/src/app/sidenav/sidenav.component.html
+2
-1
No files found.
test-Angular - Copy/src/app/app-routing.module.ts
View file @
567b7b20
import
{
NgModule
}
from
'
@angular/core
'
;
import
{
RouterModule
,
Routes
}
from
'
@angular/router
'
;
import
{
AudioComponent
}
from
'
./audio/audio.component
'
;
import
{
DashboardComponent
}
from
'
./dashboard/dashboard.component
'
;
import
{
HomeComponent
}
from
'
./home/home.component
'
;
const
routes
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'
home
'
,
pathMatch
:
'
full
'
},
{
path
:
'
home
'
,
component
:
HomeComponent
},
{
path
:
'
dashboard
'
,
component
:
DashboardComponent
}
{
path
:
'
dashboard
'
,
component
:
DashboardComponent
},
{
path
:
'
audio
'
,
component
:
AudioComponent
}
];
@
NgModule
({
...
...
test-Angular - Copy/src/app/app.module.ts
View file @
567b7b20
...
...
@@ -14,6 +14,7 @@ import { MatMenuModule } from '@angular/material/menu';
import
{
MatIconModule
}
from
'
@angular/material/icon
'
;
import
{
MatDividerModule
}
from
'
@angular/material/divider
'
;
import
{
MatListModule
}
from
'
@angular/material/list
'
;
import
{
AudioComponent
}
from
'
./audio/audio.component
'
;
@
NgModule
({
declarations
:
[
...
...
@@ -21,7 +22,8 @@ import { MatListModule } from '@angular/material/list';
HeaderComponent
,
SidenavComponent
,
HomeComponent
,
DashboardComponent
DashboardComponent
,
AudioComponent
],
imports
:
[
BrowserModule
,
...
...
test-Angular - Copy/src/app/audio/audio.component.css
0 → 100644
View file @
567b7b20
@import
url(../home/home.component.css)
;
\ No newline at end of file
test-Angular - Copy/src/app/audio/audio.component.html
0 → 100644
View file @
567b7b20
<div
class=
"container-fluid page"
>
<div
class=
"d-flex page__box p-3 mt-2"
>
Home
</div>
<div
class=
"page__content shadow p-3 position-relative"
>
<div
class=
"page__content-data position-absolute"
>
Audio Content Goes Here
</div>
</div>
</div>
test-Angular - Copy/src/app/audio/audio.component.spec.ts
0 → 100644
View file @
567b7b20
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
AudioComponent
}
from
'
./audio.component
'
;
describe
(
'
AudioComponent
'
,
()
=>
{
let
component
:
AudioComponent
;
let
fixture
:
ComponentFixture
<
AudioComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
declarations
:
[
AudioComponent
]
})
.
compileComponents
();
});
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
AudioComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
test-Angular - Copy/src/app/audio/audio.component.ts
0 → 100644
View file @
567b7b20
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-audio
'
,
templateUrl
:
'
./audio.component.html
'
,
styleUrls
:
[
'
./audio.component.css
'
]
})
export
class
AudioComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
}
test-Angular - Copy/src/app/sidenav/sidenav.component.html
View file @
567b7b20
...
...
@@ -10,7 +10,8 @@
<a
mat-list-item
routerLinkActive=
"list-item-active"
routerLink=
"/dashboard"
>
<mat-icon>
dashboard
</mat-icon>
Dashboard
</a>
<a
mat-list-item
>
<mat-icon>
edit
</mat-icon>
Link 3
</a>
<a
mat-list-item
routerLinkActive=
"list-item-active"
routerLink=
"/audio"
>
<mat-icon>
mic
</mat-icon>
Audio Recognition
</a>
<a
mat-list-item
>
<mat-icon>
edit
</mat-icon>
Link 4
</a>
<a
mat-list-item
>
<mat-icon>
edit
</mat-icon>
Link 5
</a>
<a
mat-list-item
>
<mat-icon>
edit
</mat-icon>
Link 6
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment