-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schematics): add template option in
ng-add
(#3674)
- Loading branch information
Showing
35 changed files
with
596 additions
and
140 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
schematics/ng-generate/side-menu/files/src/app/app-routing.module.ts.template
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,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
const routes: Routes = [ | ||
{ path: '', pathMatch: 'full', redirectTo: '/welcome' }, | ||
{ path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.module').then(m => m.WelcomeModule) } | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class AppRoutingModule { } |
80 changes: 80 additions & 0 deletions
80
schematics/ng-generate/side-menu/files/src/app/app.component.__style__.template
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,80 @@ | ||
:host { | ||
display: flex; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
.app-layout { | ||
height: 100vh; | ||
} | ||
|
||
.menu-sidebar { | ||
position: relative; | ||
z-index: 10; | ||
min-height: 100vh; | ||
box-shadow: 2px 0 6px rgba(0,21,41,.35); | ||
} | ||
|
||
.header-trigger { | ||
height: 64px; | ||
padding: 20px 24px; | ||
font-size: 20px; | ||
cursor: pointer; | ||
transition: all .3s,padding 0s; | ||
} | ||
|
||
.trigger:hover { | ||
color: #1890ff; | ||
} | ||
|
||
.sidebar-logo { | ||
position: relative; | ||
height: 64px; | ||
padding-left: 24px; | ||
overflow: hidden; | ||
line-height: 64px; | ||
background: #001529; | ||
transition: all .3s; | ||
} | ||
|
||
.sidebar-logo img { | ||
display: inline-block; | ||
height: 32px; | ||
width: 32px; | ||
vertical-align: middle; | ||
} | ||
|
||
.sidebar-logo h1 { | ||
display: inline-block; | ||
margin: 0 0 0 20px; | ||
color: #fff; | ||
font-weight: 600; | ||
font-size: 14px; | ||
font-family: Avenir,Helvetica Neue,Arial,Helvetica,sans-serif; | ||
vertical-align: middle; | ||
} | ||
|
||
nz-header { | ||
padding: 0; | ||
width: 100%; | ||
z-index: 2; | ||
} | ||
|
||
.app-header { | ||
position: relative; | ||
height: 64px; | ||
padding: 0; | ||
background: #fff; | ||
box-shadow: 0 1px 4px rgba(0,21,41,.08); | ||
} | ||
|
||
nz-content { | ||
margin: 24px; | ||
} | ||
|
||
.inner-content { | ||
padding: 24px; | ||
background: #fff; | ||
height: 100%; | ||
} |
Oops, something went wrong.