kdu-router 2.7.0 → 4.0.16-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- MIT License
1
+ The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 NKDuy
3
+ Copyright (c) 2021 NKDuy
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,45 +1,11 @@
1
1
  # kdu-router
2
2
 
3
- > This is kdu-router 2.0 which works only with Kdu 2.0..
4
-
5
- ### Introduction
6
-
7
- `kdu-router` is the official router for Kdu.js. It deeply integrates with Kdu.js core to make building Single Page Applications with Kdu.js a breeze. Features include:
8
-
9
- - Nested route/view mapping
10
- - Modular, component-based router configuration
11
- - Route params, query, wildcards
12
- - View transition effects powered by Kdu.js' transition system
13
- - Fine-grained navigation control
14
- - Links with automatic active CSS classes
15
- - HTML5 history mode or hash mode, with auto-fallback in IE9
16
- - Customizable Scroll Behavior
17
-
18
- Get started with the [documentation](http://khanhduy1407.github.io/kdu-router), or play with the [examples](https://github.com/khanhduy1407/kdu-router/tree/dev/examples) (see how to run them below).
19
-
20
- ### Development Setup
21
-
22
- ``` bash
23
- # install deps
24
- npm install
25
-
26
- # build dist files
27
- npm run build
28
-
29
- # serve examples at localhost:8080
30
- npm run dev
31
-
32
- # lint & run all tests
33
- npm test
34
-
35
- # serve docs at localhost:4000 (requires global gitbook-cli)
36
- npm run docs
37
- ```
38
-
39
- ## License
40
-
41
- [MIT](http://opensource.org/licenses/MIT)
42
-
43
- Copyright (c) 2022 NKDuy
3
+ > This is the repository for Kdu Router 4 (for Kdu 3)
44
4
 
5
+ ## Quickstart
45
6
 
7
+ - Via CDN: `<script src="https://unpkg.com/kdu-router@4"></script>`
8
+ - Add it to an existing Kdu Project:
9
+ ```bash
10
+ npm install kdu-router@4
11
+ ```