-
-
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.
Showing
48 changed files
with
19,127 additions
and
13,643 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {NgDocCategory} from '@ng-doc/core'; | ||
|
||
const ExamplesCategory: NgDocCategory = { | ||
title: 'Examples', | ||
order: 3 | ||
}; | ||
|
||
export default ExamplesCategory; |
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,42 @@ | ||
|
||
|
||
You can import the component for specific category - `star`,`ellipse`... etc. | ||
|
||
> **Note** | ||
> Setting the `random` input to `true` or leaving the `index` input empty would replace the shape with a random shape every time it renders. | ||
## Number | ||
|
||
{{ NgDocActions.playground("NumberShapePlayground") }} | ||
|
||
## Flower | ||
|
||
{{ NgDocActions.playground("FlowerShapePlayground") }} | ||
|
||
## Ellipse | ||
|
||
{{ NgDocActions.playground("EllipseShapePlayground") }} | ||
|
||
## Wheel | ||
|
||
{{ NgDocActions.playground("WheelShapePlayground") }} | ||
|
||
## Moon | ||
|
||
{{ NgDocActions.playground("MoonShapePlayground") }} | ||
|
||
## Misc | ||
|
||
{{ NgDocActions.playground("MiscShapePlayground") }} | ||
|
||
## Triangle | ||
|
||
{{ NgDocActions.playground("TriangleShapePlayground") }} | ||
|
||
## Polygon | ||
|
||
{{ NgDocActions.playground("PolygonShapePlayground") }} | ||
|
||
## Rectangle | ||
|
||
{{ NgDocActions.playground("RectangleShapePlayground") }} |
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,60 @@ | ||
import { NgDocPage } from '@ng-doc/core'; | ||
import ExamplesCategory from '../../ng-doc.category'; | ||
import { | ||
EllipseShapeComponent, | ||
FlowerShapeComponent, | ||
MiscShapeComponent, | ||
MoonShapeComponent, | ||
NumberShapeComponent, | ||
PolygonShapeComponent, | ||
RectangleShapeComponent, | ||
TriangleShapeComponent, | ||
WheelShapeComponent, | ||
} from '@ngxpert/coolshapes'; | ||
|
||
const CategoryPage: NgDocPage = { | ||
title: `Category`, | ||
mdFile: './index.md', | ||
category: ExamplesCategory, | ||
order: 2, | ||
playgrounds: { | ||
NumberShapePlayground: { | ||
target: NumberShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
FlowerShapePlayground: { | ||
target: FlowerShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
EllipseShapePlayground: { | ||
target: EllipseShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
WheelShapePlayground: { | ||
target: WheelShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
MoonShapePlayground: { | ||
target: MoonShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
MiscShapePlayground: { | ||
target: MiscShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
TriangleShapePlayground: { | ||
target: TriangleShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
PolygonShapePlayground: { | ||
target: PolygonShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
RectangleShapePlayground: { | ||
target: RectangleShapeComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
}, | ||
}; | ||
|
||
export default CategoryPage; |
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,8 @@ | ||
|
||
|
||
Just import the Global component `coolshape` and it will work. | ||
|
||
> **Note** | ||
> Setting the `random` input to `true` or leaving the `index` or `type` inputs empty would replace the shape with a random shape every time it renders. | ||
{{ NgDocActions.playground("CoolshapePlayground") }} |
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,18 @@ | ||
import { NgDocPage } from '@ng-doc/core'; | ||
import ExamplesCategory from '../../ng-doc.category'; | ||
import { CoolshapesComponent } from '@ngxpert/coolshapes'; | ||
|
||
const GlobalPage: NgDocPage = { | ||
title: `Global`, | ||
mdFile: './index.md', | ||
category: ExamplesCategory, | ||
order: 1, | ||
playgrounds: { | ||
CoolshapePlayground: { | ||
target: CoolshapesComponent, | ||
template: `<ng-doc-selector></ng-doc-selector>`, | ||
}, | ||
}, | ||
}; | ||
|
||
export default GlobalPage; |
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,8 @@ | ||
import {NgDocCategory} from '@ng-doc/core'; | ||
|
||
const GettingStartedCategory: NgDocCategory = { | ||
title: 'Getting Started', | ||
order: 1 | ||
}; | ||
|
||
export default GettingStartedCategory; |
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,19 @@ | ||
|
||
|
||
Install in your project using `npm` | ||
|
||
```bash | ||
npm install @ngxpert/coolshapes | ||
``` | ||
|
||
or `yarn` | ||
|
||
```bash | ||
yarn add @ngxpert/coolshapes | ||
``` | ||
|
||
## Usage | ||
|
||
Then simply start using `coolshape` component in your code: | ||
|
||
{{ NgDocActions.demo("UsageComponent", { expanded: true }) }} |
13 changes: 13 additions & 0 deletions
13
_temp/old-getting-started/pages/installation/ng-doc.page.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {NgDocPage} from '@ng-doc/core'; | ||
import GettingStartedCategory from '../../ng-doc.category'; | ||
import { UsageComponent } from '../../../../components/usage/usage.component'; | ||
|
||
const InstallationPage: NgDocPage = { | ||
title: `Installation`, | ||
mdFile: './index.md', | ||
category: GettingStartedCategory, | ||
order: 2, | ||
demos: {UsageComponent}, | ||
}; | ||
|
||
export default InstallationPage; |
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,5 @@ | ||
# What is Coolshapes? | ||
|
||
{{ NgDocActions.demo("BannerComponent", {container: false}) }} | ||
|
||
@ngxpert/coolshapes is an Angular library aiming at allowing developers to use cool-looking abstract shapes with little grainy gradients from [coolshapes](https://coolshap.es/) |
13 changes: 13 additions & 0 deletions
13
_temp/old-getting-started/pages/what-is-coolshapes/ng-doc.page.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {NgDocPage} from '@ng-doc/core'; | ||
import GettingStartedCategory from '../../ng-doc.category'; | ||
import { BannerComponent } from '../../../../components/banner/banner.component'; | ||
|
||
const WhatIsCoolshapesPage: NgDocPage = { | ||
title: `What is Coolshapes`, | ||
mdFile: './index.md', | ||
category: GettingStartedCategory, | ||
order: 1, | ||
demos: { BannerComponent } | ||
}; | ||
|
||
export default WhatIsCoolshapesPage; |
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.