Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
console
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
console
Commits
6ce1d41a
Commit
6ce1d41a
authored
Aug 15, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4268cf19
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
+17
-12
console-web/package-lock.json
console-web/package-lock.json
+0
-1
console-web/src/app/mycard.component.css
console-web/src/app/mycard.component.css
+4
-0
console-web/src/app/mycard.component.html
console-web/src/app/mycard.component.html
+5
-5
console-web/src/app/mycard.component.ts
console-web/src/app/mycard.component.ts
+8
-6
No files found.
console-web/package-lock.json
View file @
6ce1d41a
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
"requires": true,
"requires": true,
"packages": {
"packages": {
"": {
"": {
"name": "console-web",
"version": "0.0.0",
"version": "0.0.0",
"dependencies": {
"dependencies": {
"@angular/animations": "~12.2.0",
"@angular/animations": "~12.2.0",
console-web/src/app/mycard.component.css
View file @
6ce1d41a
...
@@ -115,3 +115,7 @@
...
@@ -115,3 +115,7 @@
#sidebarMenu
{
#sidebarMenu
{
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
/*.nav-link {*/
/* padding-bottom: 0;*/
/*}*/
console-web/src/app/mycard.component.html
View file @
6ce1d41a
...
@@ -17,17 +17,17 @@
...
@@ -17,17 +17,17 @@
<div
class=
'row'
>
<div
class=
'row'
>
<nav
id=
'sidebarMenu'
class=
'col-md-3 col-lg-2 d-md-block bg-light sidebar collapse'
>
<nav
id=
'sidebarMenu'
class=
'col-md-3 col-lg-2 d-md-block bg-light sidebar collapse'
>
<div
class=
'position-sticky pt-3'
>
<div
class=
'position-sticky pt-3'
>
<h6
class=
'sidebar-heading d-flex justify-content-between align-items-center px-3 m
t-4 m
b-1 text-muted'
>
<h6
class=
'sidebar-heading d-flex justify-content-between align-items-center px-3 mb-1 text-muted'
>
<span>
Apps
</span>
<span>
应用
</span>
<a
class=
'link-secondary'
href=
'#'
aria-label=
'Add a new report'
>
<a
class=
'link-secondary'
href=
'#'
aria-label=
'Add a new report'
>
<span
data-feather=
'plus-circle'
></span>
<span
data-feather=
'plus-circle'
></span>
</a>
</a>
</h6>
</h6>
<ul
class=
'nav flex-column'
>
<ul
class=
'nav flex-column'
>
<li
class=
'nav-item'
*ngFor=
'let app of apps | async'
>
<li
class=
'nav-item'
*ngFor=
'let app of apps | async'
>
<a
class=
'nav-link'
[routerLink]=
"['apps', app.id]"
>
<a
class=
'nav-link'
[routerLink]=
"['apps', app.id]"
routerLinkActive=
"active"
>
<img
class=
'feather'
[src]=
'app.icon'
>
<img
class=
'feather'
[src]=
'app.icon'
*ngIf=
"app.icon"
>
{{
app.id
}}
{{
showName(app)
}}
</a>
</a>
</li>
</li>
</ul>
</ul>
...
...
console-web/src/app/mycard.component.ts
View file @
6ce1d41a
import
{
AfterViewInit
,
Component
}
from
'
@angular/core
'
;
import
{
AfterViewInit
,
Component
}
from
'
@angular/core
'
;
import
feather
from
'
feather-icons
'
;
import
feather
from
'
feather-icons
'
;
import
{
AppService
}
from
"
./app/app.service
"
;
import
{
AppService
,
AppsJson
}
from
'
./app/app.service
'
;
@
Component
({
@
Component
({
selector
:
'
app-root
'
,
selector
:
'
app-root
'
,
templateUrl
:
'
./mycard.component.html
'
,
templateUrl
:
'
./mycard.component.html
'
,
styleUrls
:
[
'
./mycard.component.css
'
]
styleUrls
:
[
'
./mycard.component.css
'
]
,
})
})
export
class
MyCardComponent
implements
AfterViewInit
{
export
class
MyCardComponent
implements
AfterViewInit
{
title
=
'
console-web
'
;
title
=
'
console-web
'
;
apps
=
this
.
appService
.
apps
;
apps
=
this
.
appService
.
apps
;
constructor
(
private
appService
:
AppService
)
{
constructor
(
private
appService
:
AppService
)
{}
}
ngAfterViewInit
():
void
{
ngAfterViewInit
():
void
{
feather
.
replace
();
feather
.
replace
();
}
}
// getI18nName(app: AppsJson.App){
// getI18nName(app: AppsJson.App){
// return app.name['']
// return app.name['']
// }
// }
showName
(
app
:
AppsJson
.
App
)
{
if
(
!
app
.
name
)
return
app
.
id
;
return
app
.
name
[
'
zh-CN
'
];
}
}
}
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