-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
本次提交包括以下内容: - 创建ng-ui项目目录和初始文件结构。 - 配置.vscode目录下的settings.json、extensions.json、launch.json和tasks.json文件,以优化开发环境和体验。 - 添加docker相关配置,包括Dockerfile和web.json文件,用于构建和配置nginx服务。 - 在projects/commons目录下初始化一个Angular库,并配置相应的tsconfig文件、ng-package.json和package.json文件。- 添加BrowserStorage.service.ts和BrowserStorageServer.service.ts文件,提供浏览器存储服务的实现。 - 创建commons.component.ts、commons.component.spec.ts和commons.service.ts文件,作为库的
- Loading branch information
Showing
27 changed files
with
687 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,9 @@ | |
min-height: 100%; | ||
min-width: 100%; | ||
} | ||
|
||
.layout { | ||
min-height: 100%; | ||
min-width: 100%; | ||
display: block; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host { | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>groups works!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-groups', | ||
templateUrl: './groups.component.html', | ||
styleUrl: './groups.component.css', | ||
}) | ||
export class GroupsComponent { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { IndexComponent } from './index/index.component'; | ||
|
||
const routes: Routes = []; | ||
const routes: Routes = [ | ||
{ path: 'index', component: IndexComponent, title: '首页' }, | ||
{ path: '', pathMatch: 'full', redirectTo: 'index' }, | ||
{ path: '**', component: IndexComponent }, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
exports: [RouterModule], | ||
}) | ||
export class HomeRoutingModule { } | ||
export class HomeRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,48 @@ | ||
<p>index works!</p> | ||
<nz-layout class="layout"> | ||
<nz-header class="nz-header d-flex justify-content-between align-content-between"> | ||
<div class="logo mx-2"><i class="bi bi-p-circle-fill mx-2"></i>PLATE</div> | ||
<ul class="header-menu ms-auto" nz-menu nzMode="horizontal" nzTheme="dark"> | ||
<li nz-menu-item><a routerLink="/home">我的</a></li> | ||
</ul> | ||
</nz-header> | ||
<nz-layout> | ||
<nz-sider [nzCollapsedWidth]="0" nzBreakpoint="md" nzCollapsible nzWidth="14.6rem"> | ||
<ul class="sider-menu" nz-menu nzMode="inline" nzTheme="dark"> | ||
<li nz-menu-item><i class="bi bi-p-circle-fill mx-2"></i><a routerLink="/home">首页</a></li> | ||
@for (menu of menus(); track menu) { | ||
<li nz-submenu nzIcon="user" nzOpen nzTitle="{{ menu.name }}"> | ||
<ul> | ||
@for (child of menu.children; track child) { | ||
<li nz-menu-item> | ||
<a [state]="child" routerLink=".{{ child.path }}" routerLinkActive="active">{{ child.name }}</a> | ||
</li> | ||
} | ||
</ul> | ||
</li> | ||
} | ||
<li *ngFor="let menu of menus(); index as i" nz-submenu nzIcon="user" nzOpen nzTitle="{{ menu.name }}"> | ||
<ul> | ||
<li *ngFor="let child of menu.children; index as i" nz-menu-item> | ||
<a [state]="child" routerLink=".{{ child.path }}" routerLinkActive="active">{{ child.name }}</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</nz-sider> | ||
<nz-layout class="inner-layout"> | ||
<nz-breadcrumb> | ||
@for (breadcrumb of breadcrumbs; track breadcrumb) { | ||
<nz-breadcrumb-item | ||
><a routerLink=".{{ breadcrumb.url }}">{{ breadcrumb.label }}</a></nz-breadcrumb-item | ||
> | ||
} | ||
</nz-breadcrumb> | ||
<nz-content> | ||
<div class="inner-content"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</nz-content> | ||
<nz-footer>Ant Design ©2024 Implement By Angular</nz-footer> | ||
</nz-layout> | ||
</nz-layout> | ||
</nz-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
:host { | ||
min-width: 100%; | ||
min-height: 100%; | ||
} | ||
|
||
.layout { | ||
min-height: 100vh; | ||
} | ||
|
||
.nz-header { | ||
padding: 0 !important; | ||
} | ||
|
||
.logo { | ||
width: 14rem; | ||
color: white; | ||
float: left; | ||
font-size: 2rem; | ||
justify-content: center; | ||
align-items: center; | ||
padding-left: 2rem; | ||
} | ||
|
||
.header-menu { | ||
line-height: 4rem; | ||
margin-right: 1rem; | ||
} | ||
|
||
.sider-menu { | ||
min-height: 100%; | ||
border-right: 0; | ||
} | ||
|
||
.inner-layout { | ||
padding: 0 1.2rem 1.2rem; | ||
} | ||
|
||
nz-breadcrumb { | ||
margin: 1rem 0; | ||
} | ||
|
||
nz-content { | ||
background: #fff; | ||
padding: 1rem; | ||
} |
23 changes: 0 additions & 23 deletions
23
ng-ui/projects/web/src/app/home/index/index.component.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.