Skip to content

Commit 3609090

Browse files
committed
chore: readme and doc
1 parent 1311260 commit 3609090

20 files changed

+1506
-691
lines changed

README.md

Lines changed: 128 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--><!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
1+
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->This monorepo contains multiple packages:<br><br><details>
2+
<summary><b>ui-pager</b></summary>
3+
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
24
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
35
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
46
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -54,17 +56,7 @@
5456
* [Usage in Svelte](#usage-in-svelte)
5557
* [Examples](#examples-2)
5658
* [Usage in Vue](#usage-in-vue)
57-
* [Examples](#examples-3)
58-
* [Demos and Development](#demos-and-development)
59-
* [Repo Setup](#repo-setup)
60-
* [Build](#build)
61-
* [Demos](#demos)
62-
* [Contributing](#contributing)
63-
* [Update repo ](#update-repo-)
64-
* [Update readme ](#update-readme-)
65-
* [Update doc ](#update-doc-)
66-
* [Publish](#publish)
67-
* [Questions](#questions)
59+
* [Examples](#examples-3)
6860

6961

7062
[](#installation)
@@ -104,8 +96,6 @@ Run the following command from the root of your project:
10496
| autoPlay | `boolean` |
10597
| disableSwipe | `boolean` |
10698
| showIndicator | `boolean` |
107-
| indicatorColor | `Color` or `string` |
108-
| indicatorSelectedColor | `Color` or `string` |
10999

110100

111101
```
@@ -208,11 +198,121 @@ Vue.use(Pager);
208198
- A simple pager example using static content.
209199
- [Basic Pager](demo-snippets/vue/BasicPager.vue)
210200
- A simple pager example using dynamic content.
201+
</details><details>
202+
<summary><b>ui-pager-indicator</b></summary>
203+
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
204+
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
205+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
206+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
207+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
208+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
209+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
210+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
211+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
212+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
213+
DO NOT EDIT THIS READEME DIRECTLY! Edit "bluesprint.md" instead.
214+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
215+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
216+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
217+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
218+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
219+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
220+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
221+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
222+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
223+
<h1 align="center">@nativescript-community/ui-pager-indicator</h1>
224+
<p align="center">
225+
<a href="https://npmcharts.com/compare/@nativescript-community/ui-pager-indicator?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/ui-pager-indicator.svg" height="20"/></a>
226+
<a href="https://www.npmjs.com/package/@nativescript-community/ui-pager-indicator"><img alt="NPM Version" src="https://img.shields.io/npm/v/@nativescript-community/ui-pager-indicator.svg" height="20"/></a>
227+
</p>
228+
229+
<p align="center">
230+
<b>A NativeScript Indicator for Pager / Carousel /CollectionView</b></br>
231+
<sub><sub>
232+
</p>
233+
234+
<br />
211235

212236

237+
| <img src="https://github.com/nativescript-community/ui-pager/raw/master/images/demo-ios.gif" height="500" /> | <img src="https://github.com/nativescript-community/ui-pager/raw/master/images/demo-android.gif" height="500" /> |
238+
| --- | ----------- |
239+
| iOS Demo | Android Demo |
240+
241+
242+
[](#table-of-contents)
243+
244+
245+
[](#table-of-contents)
246+
247+
## Table of Contents
248+
249+
* [Installation](#installation)
250+
* [API](#api)
251+
* [Properties](#properties)
252+
* [Usage in Vue](#usage-in-vue)
253+
* [Examples](#examples)
254+
255+
256+
[](#installation)
257+
258+
259+
[](#installation)
260+
261+
## Installation
262+
Run the following command from the root of your project:
263+
264+
`ns plugin add @nativescript-community/ui-pager-indicator`
265+
266+
267+
[](#api)
268+
269+
270+
[](#api)
271+
272+
## API
273+
274+
### Properties
275+
276+
| Property | Type |
277+
| - | - |
278+
| color | `Color` or `string` |
279+
| selectedColor | `Color` or `string` |
280+
281+
282+
```
283+
PagerIndicator add page control for Pager or other Paging Views.
284+
```
285+
286+
287+
288+
[](#usage-in-vue)
213289

214-
[](#demos-and-development)
215290

291+
[](#usage-in-vue)
292+
293+
## Usage in Vue
294+
295+
Import the module into your project.
296+
297+
298+
```typescript
299+
import Vue from 'nativescript-vue';
300+
Vue.registerElement('PagerIndicator', () => require('@nativescript-community/ui-pager-indicator').PagerIndicator);
301+
```
302+
303+
then in your template:
304+
```html
305+
<Pager id="pager" :items="items"
306+
...
307+
</Pager>
308+
<PagerIndicator pagerViewId="pager"/>
309+
```
310+
311+
### Examples
312+
313+
- [Indicator Pager](demo-snippets/vue/Indicator.vue)
314+
- A simple pager example using dynamic content and indicator.
315+
</details>
216316

217317
[](#demos-and-development)
218318

@@ -241,6 +341,7 @@ To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`)
241341
```bash
242342
npm run build.all
243343
```
344+
WARNING: it seems `yarn build.all` wont always work (not finding binaries in `node_modules/.bin`) which is why the doc explicitly uses `npm run`
244345

245346
### Demos
246347

@@ -250,9 +351,10 @@ npm run demo.[ng|react|svelte|vue].[ios|android]
250351
npm run demo.svelte.ios # Example
251352
```
252353

253-
254-
[](#contributing)
255-
354+
Demo setup is a bit special in the sense that if you want to modify/add demos you dont work directly in `demo-[ng|react|svelte|vue]`
355+
Instead you work in `demo-snippets/[ng|react|svelte|vue]`
356+
You can start from the `install.ts` of each flavor to see how to register new demos
357+
256358

257359
[](#contributing)
258360

@@ -294,9 +396,14 @@ Simply run
294396
npm run publish
295397
```
296398

297-
298-
[](#questions)
299-
399+
### modifying submodules
400+
401+
The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
402+
One easy solution is t modify `~/.gitconfig` and add
403+
```
404+
[url "ssh://[email protected]/"]
405+
pushInsteadOf = https://github.com/
406+
```
300407

301408
[](#questions)
302409

docs/assets/highlight.css

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,18 @@
1313
--dark-hl-5: #CE9178;
1414
--light-hl-6: #795E26;
1515
--dark-hl-6: #DCDCAA;
16-
--light-hl-7: #008000;
17-
--dark-hl-7: #6A9955;
16+
--light-hl-7: #800000;
17+
--dark-hl-7: #808080;
18+
--light-hl-8: #CD3131;
19+
--dark-hl-8: #F44747;
20+
--light-hl-9: #FF0000;
21+
--dark-hl-9: #9CDCFE;
22+
--light-hl-10: #0000FF;
23+
--dark-hl-10: #CE9178;
24+
--light-hl-11: #008000;
25+
--dark-hl-11: #6A9955;
26+
--light-hl-12: #000000;
27+
--dark-hl-12: #C8C8C8;
1828
--light-code-background: #FFFFFF;
1929
--dark-code-background: #1E1E1E;
2030
}
@@ -28,6 +38,11 @@
2838
--hl-5: var(--light-hl-5);
2939
--hl-6: var(--light-hl-6);
3040
--hl-7: var(--light-hl-7);
41+
--hl-8: var(--light-hl-8);
42+
--hl-9: var(--light-hl-9);
43+
--hl-10: var(--light-hl-10);
44+
--hl-11: var(--light-hl-11);
45+
--hl-12: var(--light-hl-12);
3146
--code-background: var(--light-code-background);
3247
} }
3348

@@ -40,6 +55,11 @@
4055
--hl-5: var(--dark-hl-5);
4156
--hl-6: var(--dark-hl-6);
4257
--hl-7: var(--dark-hl-7);
58+
--hl-8: var(--dark-hl-8);
59+
--hl-9: var(--dark-hl-9);
60+
--hl-10: var(--dark-hl-10);
61+
--hl-11: var(--dark-hl-11);
62+
--hl-12: var(--dark-hl-12);
4363
--code-background: var(--dark-code-background);
4464
} }
4565

@@ -52,6 +72,11 @@
5272
--hl-5: var(--light-hl-5);
5373
--hl-6: var(--light-hl-6);
5474
--hl-7: var(--light-hl-7);
75+
--hl-8: var(--light-hl-8);
76+
--hl-9: var(--light-hl-9);
77+
--hl-10: var(--light-hl-10);
78+
--hl-11: var(--light-hl-11);
79+
--hl-12: var(--light-hl-12);
5580
--code-background: var(--light-code-background);
5681
}
5782

@@ -64,6 +89,11 @@
6489
--hl-5: var(--dark-hl-5);
6590
--hl-6: var(--dark-hl-6);
6691
--hl-7: var(--dark-hl-7);
92+
--hl-8: var(--dark-hl-8);
93+
--hl-9: var(--dark-hl-9);
94+
--hl-10: var(--dark-hl-10);
95+
--hl-11: var(--dark-hl-11);
96+
--hl-12: var(--dark-hl-12);
6797
--code-background: var(--dark-code-background);
6898
}
6999

@@ -75,4 +105,9 @@
75105
.hl-5 { color: var(--hl-5); }
76106
.hl-6 { color: var(--hl-6); }
77107
.hl-7 { color: var(--hl-7); }
108+
.hl-8 { color: var(--hl-8); }
109+
.hl-9 { color: var(--hl-9); }
110+
.hl-10 { color: var(--hl-10); }
111+
.hl-11 { color: var(--hl-11); }
112+
.hl-12 { color: var(--hl-12); }
78113
pre, code { background: var(--code-background); }

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)