使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
kj
/
cac-desktop
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
Added basic sub pages
master
kj1352
3 年前
父节点
ef9d1ffde0
当前提交
a276a80c1f
共有
5 个文件被更改
,包括
21 次插入
和
3 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-1
src/app/app-routing.module.ts
+1
-1
src/app/dashboard/dashboard.component.html
+4
-0
src/app/dashboard/dashboard.component.scss
+11
-1
src/app/dashboard/graph/graph.component.html
+4
-0
src/styles.scss
+ 1
- 1
src/app/app-routing.module.ts
查看文件
@@ -14,7 +14,7 @@ const routes: Routes = [
{
path: '', pathMatch: 'full', redirectTo: 'graph'
}, {
path: '
graph
', component: GraphComponent
path: '
analytics
', component: GraphComponent
}, {
path: 'partners', component: TableComponent
}, {
+ 1
- 1
src/app/dashboard/dashboard.component.html
查看文件
@@ -5,7 +5,7 @@
</figure>
<nav>
<a [ngClass]="{'active' : currentURL.includes('
graph')}" [routerLink]="'graph
'"> <span> Dashboard </span> </a>
<a [ngClass]="{'active' : currentURL.includes('
analytics')}" [routerLink]="'analytics
'"> <span> Dashboard </span> </a>
<a [ngClass]="{'active' : currentURL.includes('partners')}" [routerLink]="'partners'"> <span> All Partners </span> </a>
<a [ngClass]="{'active' : currentURL.includes('report')}" [routerLink]="'report'"> <span> Report </span> </a>
<a [ngClass]="{'active' : currentURL.includes('settings')}" [routerLink]="'settings'"> <span> Settings </span> </a>
+ 4
- 0
src/app/dashboard/dashboard.component.scss
查看文件
@@ -51,6 +51,10 @@ $sidebar-width: 240px;
position: relative;
overflow: hidden;
&:last-child {
justify-self: flex-end;
}
&:hover {
color: white;
}
+ 11
- 1
src/app/dashboard/graph/graph.component.html
查看文件
@@ -1 +1,11 @@
<p>graph works!</p>
<div class="subpage">
<header>
<h2> Dashboard </h2>
</header>
<section class="analytics">
<div class="card">
<div class="line-chart"></div>
</div>
</section>
</div>
+ 4
- 0
src/styles.scss
查看文件
@@ -98,4 +98,8 @@
}
}
}
}
.subpage {
padding: 20px;
}
撰写
预览
正在加载...
取消
保存