Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
Mean
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jakkree kongpha
Mean
Commits
fb320067
Commit
fb320067
authored
Sep 30, 2020
by
jakkree kongpha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add detail anime
parent
164e2e94
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
1 deletion
+49
-1
app-routing.module.ts
mean/src/app/app-routing.module.ts
+5
-0
app.module.ts
mean/src/app/app.module.ts
+2
-1
detail-anime.component.css
mean/src/app/detail-anime/detail-anime.component.css
+0
-0
detail-anime.component.html
mean/src/app/detail-anime/detail-anime.component.html
+1
-0
detail-anime.component.spec.ts
mean/src/app/detail-anime/detail-anime.component.spec.ts
+25
-0
detail-anime.component.ts
mean/src/app/detail-anime/detail-anime.component.ts
+15
-0
header.component.html
mean/src/app/header/header.component.html
+1
-0
No files found.
mean/src/app/app-routing.module.ts
View file @
fb320067
...
...
@@ -5,6 +5,7 @@ import { AuthGuard } from './shared/guards';
import
{
HomeComponent
}
from
'./home/home.component'
;
import
{
ManageanimeComponent
}
from
'./manageanime/manageanime.component'
;
import
{
CreatAnimeComponent
}
from
'./creat-anime/creat-anime.component'
;
import
{
DetailAnimeComponent
}
from
'./detail-anime/detail-anime.component'
;
const
routes
:
Routes
=
[
{
...
...
@@ -22,6 +23,10 @@ const routes: Routes = [
component
:
CreatAnimeComponent
,
canActivate
:
[
AuthGuard
],
},
{
path
:
"detail"
,
component
:
DetailAnimeComponent
},
{
path
:
'auth'
,
...
...
mean/src/app/app.module.ts
View file @
fb320067
...
...
@@ -14,6 +14,7 @@ import { HomeComponent } from './home/home.component';
import
{
AuthService
}
from
'./shared/services'
;
import
{
ManageanimeComponent
}
from
'./manageanime/manageanime.component'
;
import
{
CreatAnimeComponent
}
from
'./creat-anime/creat-anime.component'
;
import
{
DetailAnimeComponent
}
from
'./detail-anime/detail-anime.component'
;
export
function
appInitializerFactory
(
authService
:
AuthService
)
{
return
()
=>
authService
.
checkTheUserOnTheFirstLoad
();
...
...
@@ -21,7 +22,7 @@ export function appInitializerFactory(authService: AuthService) {
@
NgModule
({
imports
:
[
BrowserAnimationsModule
,
HttpClientModule
,
SharedModule
,
AppRoutingModule
],
declarations
:
[
AppComponent
,
HeaderComponent
,
HomeComponent
,
ManageanimeComponent
,
CreatAnimeComponent
],
declarations
:
[
AppComponent
,
HeaderComponent
,
HomeComponent
,
ManageanimeComponent
,
CreatAnimeComponent
,
DetailAnimeComponent
],
providers
:
[
{
provide
:
HTTP_INTERCEPTORS
,
...
...
mean/src/app/detail-anime/detail-anime.component.css
0 → 100644
View file @
fb320067
mean/src/app/detail-anime/detail-anime.component.html
0 → 100644
View file @
fb320067
<p>
detail-anime works!
</p>
mean/src/app/detail-anime/detail-anime.component.spec.ts
0 → 100644
View file @
fb320067
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
DetailAnimeComponent
}
from
'./detail-anime.component'
;
describe
(
'DetailAnimeComponent'
,
()
=>
{
let
component
:
DetailAnimeComponent
;
let
fixture
:
ComponentFixture
<
DetailAnimeComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
DetailAnimeComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
DetailAnimeComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
mean/src/app/detail-anime/detail-anime.component.ts
0 → 100644
View file @
fb320067
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-detail-anime'
,
templateUrl
:
'./detail-anime.component.html'
,
styleUrls
:
[
'./detail-anime.component.css'
]
})
export
class
DetailAnimeComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
}
mean/src/app/header/header.component.html
View file @
fb320067
...
...
@@ -6,6 +6,7 @@
<div>
<a
class=
"links side"
*
ngIf=
"user"
routerLink=
"/anime"
>
Manage anime
</a>
<a
class=
"links side"
*
ngIf=
"user"
routerLink=
"/create"
>
Create anime
</a>
<a
class=
"links side"
*
ngIf=
"user"
routerLink=
"/detail"
>
Detail anime
</a>
<a
class=
"links side"
*
ngIf=
"user"
[
matMenuTriggerFor
]="
menu
"
>
<mat-icon>
account_circle
</mat-icon>
{{ user.fullname }}
</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