-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
demo: refactored demo to use custom tabs component
demo: switched to stackblitz refactor: upgrade to Angular v6
- Loading branch information
1 parent
5b1709e
commit 760d88b
Showing
74 changed files
with
13,004 additions
and
1,073 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
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
52 changes: 22 additions & 30 deletions
52
demo/src/app/components/shared/example-box/example-box.component.html
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,37 +1,29 @@ | ||
<div class="component-demo"> | ||
<a [id]="id"></a> | ||
<h2> | ||
{{ demoTitle }} | ||
<a | ||
class="plunker" | ||
target="_blank" href="app/components/{{component}}/demos/{{demo}}/plnkr.html" | ||
title="Edit in Plunker" | ||
> | ||
<img src="img/plunker-icon.png" height="24" width="24" alt="Plunker icon"/> | ||
<span>{{ title }}</span> | ||
<a role="button" (click)="trackStackBlitzClick()" class="stackblitz btn btn-light" target="_blank" | ||
href="app/components/{{component}}/demos/{{id}}/stackblitz.html" title="Edit in StackBlitz"> | ||
<img class="stackblitz-icon" src="img/stackblitz-icon.svg" alt="StackBlitz icon"/> | ||
StackBlitz | ||
</a> | ||
</h2> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<ng-content></ng-content> | ||
<hr class="mt-1 mb-4"/> | ||
<div class="row"> | ||
<div class="col-12 col-lg-6"><ng-content></ng-content></div> | ||
<div class="col-12 col-lg-6"> | ||
<nthd-tabset class="tabset-code"> | ||
<nthd-tab id="{{component}}-{{demo}}-markup" title="Markup"> | ||
<ng-template nthd-tab-content> | ||
<nthd-code [code]="snippets[demo]['markup']" lang="html"></nthd-code> | ||
</ng-template> | ||
</nthd-tab> | ||
<nthd-tab id="{{component}}-{{demo}}-typescript" title="Typescript"> | ||
<ng-template nthd-tab-content> | ||
<nthd-code [code]="snippets[demo]['code']" lang="typescript"></nthd-code> | ||
</ng-template> | ||
</nthd-tab> | ||
</nthd-tabset> | ||
</div> | ||
<ngb-tabset class="tabset-code"> | ||
<ngb-tab id="{{component}}-{{demo}}-html"> | ||
<ng-template ngbTabTitle> | ||
<small class="badge badge-secondary" title="HTML template">T</small> | ||
<span class="ml-2">{{component}}-{{demo}}.html</span> | ||
</ng-template> | ||
<ng-template ngbTabContent> | ||
<nthd-code [code]="snippets[demo]['markup']" lang="html"></nthd-code> | ||
</ng-template> | ||
</ngb-tab> | ||
<ngb-tab id="{{component}}-{{demo}}-typescript"> | ||
<ng-template ngbTabTitle> | ||
<small class="badge badge-info" title="Component class">C</small> | ||
<span class="ml-2">{{component}}-{{demo}}.ts</span> | ||
</ng-template> | ||
<ng-template ngbTabContent> | ||
<nthd-code [code]="snippets[demo]['code']" lang="typescript"></nthd-code> | ||
</ng-template> | ||
</ngb-tab> | ||
</ngb-tabset> | ||
</div> | ||
</div> |
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,14 +1,17 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap'; | ||
|
||
import {NthdSharedModule} from '../../shared'; | ||
import {ExampleBoxComponent} from './example-box'; | ||
import {NthdApiDocs, NthdApiDocsBadge, NthdApiDocsClass, NthdApiDocsConfig} from './api-docs'; | ||
import {NthdFragment} from './fragment'; | ||
|
||
const declarations = [ | ||
ExampleBoxComponent, NthdApiDocsBadge, NthdApiDocs, NthdApiDocsClass, NthdApiDocsConfig, NthdFragment | ||
]; | ||
|
||
@NgModule({ | ||
imports: [NthdSharedModule, NgbModule], | ||
declarations: [ExampleBoxComponent, NthdApiDocsBadge, NthdApiDocs, NthdApiDocsClass, NthdApiDocsConfig, NthdFragment], | ||
exports: [ExampleBoxComponent, NthdApiDocsBadge, NthdApiDocs, NthdApiDocsClass, NthdApiDocsConfig, NthdFragment] | ||
imports: [NthdSharedModule], | ||
declarations: declarations, | ||
exports: declarations | ||
}) | ||
export class NgxdComponentsSharedModule {} | ||
export class NthdComponentsSharedModule {} |
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 @@ | ||
import {MentionsModule} from '@nth-cloud/ng-mentions'; | ||
import {NgMentionsModule} from '@nth-cloud/ng-mentions'; |
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
Oops, something went wrong.