@minute-spa/vanilla-ui-router 0.0.1 → 0.0.3
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/README.md +6 -22
- package/index.js +7 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# Vanilla UI Router
|
|
2
2
|
|
|
3
|
+
> **⚠️ DEPRECATED**: This package is deprecated. Please use the public MinSPA repository for the newest code: [https://github.com/devosm1030/minspa](https://github.com/devosm1030/minspa)
|
|
4
|
+
|
|
3
5
|
A lightweight, client-side router for single-page applications (SPAs) that handles navigation, route registration, authentication, and lifecycle management. This is a standalone component of the minute-spa browser SPA application framework (work in progress).
|
|
4
6
|
|
|
7
|
+
This module is a component of the Minute SPA framework (https://github.com/devosm1030/minute-spa), but is an standalone component that can be used independently of the framework.
|
|
8
|
+
|
|
5
9
|
Zero dependencies - use in your project via NPM, or simply clone the code right into your project for a truly vanilla experience that requires no packagers or bundlers!
|
|
6
10
|
|
|
7
11
|
## Table of Contents
|
|
@@ -49,7 +53,7 @@ import { VanillaUiRouter } from '@minute-spa/vanilla-ui-router'
|
|
|
49
53
|
|
|
50
54
|
#### Installation
|
|
51
55
|
|
|
52
|
-
Clone
|
|
56
|
+
Clone https://github.com/devosm1030/minute-spa/blob/main/packages/VanillaUiRouter/index.js into your project and rename as appropriate.
|
|
53
57
|
|
|
54
58
|
#### Usage
|
|
55
59
|
|
|
@@ -622,24 +626,4 @@ router.initialNav()
|
|
|
622
626
|
|
|
623
627
|
## License
|
|
624
628
|
|
|
625
|
-
MIT License
|
|
626
|
-
|
|
627
|
-
Copyright (c) 2025 Mike DeVos
|
|
628
|
-
|
|
629
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
630
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
631
|
-
in the Software without restriction, including without limitation the rights
|
|
632
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
633
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
634
|
-
furnished to do so, subject to the following conditions:
|
|
635
|
-
|
|
636
|
-
The above copyright notice and this permission notice shall be included in all
|
|
637
|
-
copies or substantial portions of the Software.
|
|
638
|
-
|
|
639
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
640
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
641
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
642
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
643
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
644
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
645
|
-
SOFTWARE.
|
|
629
|
+
MIT License - See notice in index.js comments.
|
package/index.js
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
23
|
-
*/
|
|
2
|
+
* Minute Spa - Vanilla UI Router v0.0.2 (https://github.com/devosm1030/minute-spa/)
|
|
3
|
+
* Copyright 2025 Mike DeVos
|
|
4
|
+
* Licensed under MIT (https://github.com/devosm1030/minute-spa/blob/main/LICENSE)
|
|
5
|
+
*/
|
|
24
6
|
|
|
25
7
|
/*
|
|
26
|
-
VanillaUiRouter
|
|
8
|
+
VanillaUiRouter:
|
|
9
|
+
|
|
10
|
+
A simple client-side router for vanilla JavaScript SPA applications.
|
|
27
11
|
*/
|
|
28
12
|
|
|
29
13
|
class VanillaUiRouter {
|