-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,099 additions
and
1,041 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,62 +1,29 @@ | ||
import {Component} from '@angular/core'; | ||
import {CORE_DIRECTIVES} from '@angular/common'; | ||
|
||
import {TAB_DIRECTIVES} from '../../ng2-bootstrap'; | ||
import {AccordionDemoComponent} from './accordion/accordion-demo'; | ||
import {DemoSection} from './demo-section'; | ||
|
||
let name = 'Accordion'; | ||
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/accordion/'; | ||
// webpack html imports | ||
let doc = require('../../components/accordion/readme.md'); | ||
let titleDoc = require('../../components/accordion/title.md'); | ||
|
||
let ts = require('!!prismjs?lang=typescript!./accordion/accordion-demo.ts'); | ||
let html = require('!!prismjs?lang=markup!./accordion/accordion-demo.html'); | ||
|
||
@Component({ | ||
selector: 'accordion-section', | ||
directives: [DemoSection, AccordionDemo, CORE_DIRECTIVES], | ||
template: ` | ||
<section id="${name.toLowerCase()}"> | ||
<h1>${name}<small>(<a href="${src}">src</a>)</small></h1> | ||
<hr> | ||
<div class="description">${titleDoc}</div> | ||
<br/> | ||
<div class="example"> | ||
<h2>Example</h2> | ||
<div class="card card-block panel panel-default panel-body"> | ||
<accordion-demo></accordion-demo> | ||
</div> | ||
</div> | ||
<br/> | ||
<div class="markup"> | ||
<tabset> | ||
<tab heading="Markup"> | ||
<div class="card card-block panel panel-default panel-body"> | ||
<pre class="language-html"><code class="language-html" ngNonBindable>${html}</code></pre> | ||
</div> | ||
</tab> | ||
<tab heading="TypeScript"> | ||
<div class="card card-block panel panel-default panel-body"> | ||
<pre class="language-typescript"><code class="language-typescript" ngNonBindable>${ts}</code></pre> | ||
</div> | ||
</tab> | ||
</tabset> | ||
</div> | ||
<br/> | ||
<div class="api"> | ||
<h2>API</h2> | ||
<div class="card card-block panel panel-default panel-body">${doc}</div> | ||
</div> | ||
</section> | ||
`, | ||
directives: [AccordionDemoComponent, TAB_DIRECTIVES, CORE_DIRECTIVES] | ||
<demo-section [name]="name" [src]="src" [titleDoc]="titleDoc" [html]="html" [ts]="ts" [doc]="doc"> | ||
<accordion-demo></accordion-demo> | ||
</demo-section>` | ||
}) | ||
export class AccordionSectionComponent { | ||
private name:string = 'Accordion'; | ||
private src:string = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/accordion'; | ||
private html:string = html; | ||
private ts:string = ts; | ||
private titleDoc:string = titleDoc; | ||
private doc:string = doc; | ||
} |
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,64 +1,28 @@ | ||
import {Component} from '@angular/core'; | ||
import {CORE_DIRECTIVES} from '@angular/common'; | ||
|
||
import {TAB_DIRECTIVES} from '../../ng2-bootstrap'; | ||
import {AlertDemoComponent} from './alert/alert-demo'; | ||
|
||
let name = 'Alerts'; | ||
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/alert/'; | ||
import {DemoSection} from './demo-section'; | ||
|
||
// webpack html imports | ||
let doc = require('../../components/alert/readme.md'); | ||
let titleDoc = require('../../components/alert/title.md'); | ||
|
||
let ts = require('!!prismjs?lang=typescript!./alert/alert-demo.ts'); | ||
let html = require('!!prismjs?lang=markup!./alert/alert-demo.html'); | ||
|
||
@Component({ | ||
selector: 'alert-section', | ||
directives: [DemoSection, AlertDemo, CORE_DIRECTIVES], | ||
template: ` | ||
<section id="${name.toLowerCase()}"> | ||
<h1>${name}<small>(<a href="${src}">src</a>)</small></h1> | ||
<hr> | ||
<div class="description">${titleDoc}</div> | ||
<br/> | ||
<div class="example"> | ||
<h2>Example</h2> | ||
<div class="card card-block panel panel-default panel-body"> | ||
<alert-demo></alert-demo> | ||
</div> | ||
</div> | ||
<br/> | ||
<div class="markup"> | ||
<tabset> | ||
<tab heading="Markup"> | ||
<div class="card card-block panel panel-default panel-body"> | ||
<pre class="language-html"><code class="language-html" ngNonBindable>${html}</code></pre> | ||
</div> | ||
</tab> | ||
<tab heading="TypeScript"> | ||
<div class="card card-block panel panel-default panel-body"> | ||
<pre class="language-typescript"><code class="language-typescript" ngNonBindable>${ts}</code></pre> | ||
</div> | ||
</tab> | ||
</tabset> | ||
</div> | ||
<br/> | ||
<div class="api"> | ||
<h2>API</h2> | ||
<div class="card card-block panel panel-default panel-body">${doc}</div> | ||
</div> | ||
</section> | ||
`, | ||
directives: [AlertDemoComponent, TAB_DIRECTIVES, CORE_DIRECTIVES] | ||
<demo-section [name]="name" [src]="src" [titleDoc]="titleDoc" [html]="html" [ts]="ts" [doc]="doc"> | ||
<alert-demo></alert-demo> | ||
</demo-section>` | ||
}) | ||
export class AlertSectionComponent { | ||
private name:string = 'Alerts'; | ||
private src:string = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/alert'; | ||
private html:string = html; | ||
private ts:string = ts; | ||
private titleDoc:string = titleDoc; | ||
private doc:string = doc; | ||
} |
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.