-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: got demo app to test breadcrumbs
- Loading branch information
1 parent
d284135
commit 5d491d7
Showing
57 changed files
with
227 additions
and
218 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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...star-wars-e2e/src/integration/app.spec.ts → .../got-demo-e2e/src/integration/app.spec.ts
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,13 +1,13 @@ | ||
import { getGreeting } from '../support/app.po'; | ||
|
||
describe('star-wars', () => { | ||
describe('got-demo', () => { | ||
beforeEach(() => cy.visit('/')); | ||
|
||
it('should display welcome message', () => { | ||
// Custom command example, see `../support/commands.ts` file | ||
cy.login('my-email@something.com', 'myPassword'); | ||
|
||
// Function helper example, see `../support/app.po.ts` file | ||
getGreeting().contains('Welcome to star-wars!'); | ||
getGreeting().contains('Welcome to got-demo!'); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -9,6 +9,10 @@ | |
margin: 50px auto; | ||
} | ||
|
||
.gutter-left { | ||
margin-left: 9px; | ||
} | ||
|
||
.col-span-2 { | ||
grid-column: span 2; | ||
} | ||
|
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,71 @@ | ||
<header class="flex"> | ||
<h1>Welcome to {{ title }}!</h1> | ||
</header> | ||
<main> | ||
<ul class="resources"> | ||
<li class="col-span-2"> | ||
<a | ||
class="resource flex" | ||
[routerLink]="['books']" | ||
> | ||
Books | ||
</a> | ||
</li> | ||
<li class="col-span-2"> | ||
<a | ||
class="resource flex" | ||
[routerLink]="['characters']" | ||
> | ||
Characters | ||
</a> | ||
</li> | ||
<li class="col-span-2"> | ||
<a | ||
class="resource flex" | ||
[routerLink]="['houses']" | ||
> | ||
Houses | ||
</a> | ||
</li> | ||
</ul> | ||
</main> | ||
|
||
<h2>Description</h2> | ||
|
||
<router-outlet></router-outlet> | ||
|
||
|
||
|
||
|
||
<main> | ||
<h2>Next Steps</h2> | ||
<p>Here are some things you can do with Nx.</p> | ||
<details open> | ||
<summary>Add UI library</summary> | ||
<pre> | ||
# Generate UI lib | ||
ng g @nrwl/angular:lib ui | ||
|
||
# Add a component | ||
ng g @nrwl/angular:component xyz --project ui</pre | ||
> | ||
</details> | ||
<details> | ||
<summary>View dependency graph</summary> | ||
<pre>nx dep-graph</pre> | ||
</details> | ||
<details> | ||
<summary>Run affected commands</summary> | ||
<pre> | ||
# see what's been affected by changes | ||
ng affected:dep-graph | ||
|
||
# run tests for current changes | ||
ng affected:test | ||
|
||
# run e2e tests for current changes | ||
ng affected:e2e | ||
</pre | ||
> | ||
</details> | ||
</main> |
6 changes: 3 additions & 3 deletions
6
apps/star-wars/src/app/app.component.ts → apps/got-demo/src/app/app.component.ts
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sw-root', | ||
selector: 'got-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.scss'], | ||
styleUrls: ['./app.component.css'], | ||
}) | ||
export class AppComponent { | ||
title = 'Star Wars'; | ||
title = 'Game Of Thrones'; | ||
} |
File renamed without changes.
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,26 @@ | ||
import { RouterModule, Routes } from "@angular/router"; | ||
import { NgModule } from "@angular/core"; | ||
import { HousesComponent } from './houses/houses.component'; | ||
import { CharactersComponent } from './characters/characters.component'; | ||
import { BooksComponent } from './books/books.component'; | ||
|
||
export const appRoutes: Routes = [ | ||
{ | ||
path: "books", | ||
component: BooksComponent, | ||
}, { | ||
path: "characters", | ||
component: CharactersComponent, | ||
}, { | ||
path: "houses", | ||
component: HousesComponent, | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(appRoutes, { initialNavigation: 'enabled' })], | ||
exports: [RouterModule] | ||
}) | ||
export class AppRoutingModule { } | ||
|
||
export const ROUTER_COMPONENTS = [BooksComponent, CharactersComponent, HousesComponent]; |
File renamed without changes.
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>books 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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'got-books', | ||
templateUrl: './books.component.html', | ||
styleUrls: ['./books.component.css'] | ||
}) | ||
export class BooksComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
File renamed without changes.
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>characters 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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'got-characters', | ||
templateUrl: './characters.component.html', | ||
styleUrls: ['./characters.component.css'] | ||
}) | ||
export class CharactersComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
File renamed without changes.
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>houses 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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'got-houses', | ||
templateUrl: './houses.component.html', | ||
styleUrls: ['./houses.component.css'] | ||
}) | ||
export class HousesComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,10 @@ | ||
{ | ||
"extends": "../../tslint.json", | ||
"rules": { | ||
"directive-selector": [true, "attribute", "got", "camelCase"], | ||
"component-selector": [true, "element", "got", "kebab-case"] | ||
}, | ||
"linterOptions": { | ||
"exclude": ["!**/*"] | ||
} | ||
} |
Oops, something went wrong.