From 42e8f9c87c7e3b2d19d1492e8be204a98e786cfd Mon Sep 17 00:00:00 2001 From: Angel Grablev Date: Fri, 5 Nov 2021 19:52:49 -0700 Subject: [PATCH 1/5] Update hashRouter.js --- src/hashRouter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hashRouter.js b/src/hashRouter.js index 20cce32..6d698f9 100644 --- a/src/hashRouter.js +++ b/src/hashRouter.js @@ -18,7 +18,7 @@ class HashRouterService { /** * Emits an event * @param url - the hash url you want to navigate like - * @example HashRouter.navigate(`/products/12/22/bobby/123/random`); + * @example HashRouter.navigate(`/products/12/2882/bobby/123/random`); */ navigate = (url) => { Router.navigate(url); @@ -67,7 +67,7 @@ class HashRouterService { } }); routeRegex = routeRegex.slice(0, -1); - +//k const regRoute = new RegExp(`${routeRegex}`); self.routes[url].routeRegex = regRoute; From 44a254f5bf0912041f19431d6cd5b95e0a49c366 Mon Sep 17 00:00:00 2001 From: Angel Grablev Date: Fri, 5 Nov 2021 19:53:54 -0700 Subject: [PATCH 2/5] Update routie.js --- src/routie.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/routie.js b/src/routie.js index 6da08a3..2b88367 100644 --- a/src/routie.js +++ b/src/routie.js @@ -36,7 +36,7 @@ const Routie = function (w, isModule) { const c = this.fns.length; for (; i < c; i++) { this.fns[i].apply(this, params); - } + }//lll }; Route.prototype.match = function (path, params) { @@ -137,8 +137,7 @@ const Routie = function (w, isModule) { routie.removeAll = function () { map = {}; - routes = []; - }; + routes = [];//lll//lll }; routie.navigate = function (path, options) { options = options || {}; @@ -218,4 +217,4 @@ if (typeof module == 'undefined') { Routie(window); } else { module.exports = Routie(window, true); -} \ No newline at end of file +} From 1403d31fcbfc406d29dfb1e502d61bb3ac675a2b Mon Sep 17 00:00:00 2001 From: Angel Grablev Date: Fri, 5 Nov 2021 19:54:13 -0700 Subject: [PATCH 3/5] Update .babelrc.js --- .babelrc.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.babelrc.js b/.babelrc.js index 16a2e3b..976dcf8 100755 --- a/.babelrc.js +++ b/.babelrc.js @@ -19,5 +19,4 @@ module.exports = { ], ["@babel/plugin-syntax-class-properties"], "@babel/plugin-transform-runtime", - ] -}; + ]//lll}; From 577a864dd25707315e1752b0efb65046bb5e5184 Mon Sep 17 00:00:00 2001 From: Angel Grablev Date: Fri, 5 Nov 2021 19:54:47 -0700 Subject: [PATCH 4/5] Update styles.css --- src/styles.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/styles.css b/src/styles.css index ae02084..7935370 100644 --- a/src/styles.css +++ b/src/styles.css @@ -8,8 +8,7 @@ body { width: 800px; margin: 0 auto; display: flex; -} -#routeJson { +}//lll#routeJson { padding: 15px; top: 15px; position: sticky; @@ -53,8 +52,7 @@ body { } code { - background: #f4f5f6; - border-radius: 0.4rem; + background: #f4f5f6;//lll border-radius: 0.4rem; font-size: 86%; padding: 0.2rem 0.5rem; white-space: nowrap; From bf6074757d36f6c6c624e1ffec8cfece34e647cc Mon Sep 17 00:00:00 2001 From: Angel Grablev Date: Fri, 5 Nov 2021 19:56:31 -0700 Subject: [PATCH 5/5] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 73420e4..03619ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fc-hash-router", - "version": "1.0.5", + "version": "1.07.5", "description": "The godliest of routers!", "main": "build/index.js", "scripts": {