Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
workbox-routing /
[ HOME SHELL ]
Name
Size
Permission
Action
build
[ DIR ]
dr-xr-xr-x
src
[ DIR ]
dr-xr-xr-x
utils
[ DIR ]
dr-xr-xr-x
LICENSE
1.03
KB
-rw-rw-rw-
NavigationRoute.d.ts
2.59
KB
-rw-rw-rw-
NavigationRoute.js
4.47
KB
-rw-rw-rw-
NavigationRoute.mjs
37
B
-rw-rw-rw-
README.md
116
B
-rw-rw-rw-
RegExpRoute.d.ts
1.27
KB
-rw-rw-rw-
RegExpRoute.js
2.99
KB
-rw-rw-rw-
RegExpRoute.mjs
33
B
-rw-rw-rw-
Route.d.ts
1.42
KB
-rw-rw-rw-
Route.js
2.13
KB
-rw-rw-rw-
Route.mjs
27
B
-rw-rw-rw-
Router.d.ts
5.02
KB
-rw-rw-rw-
Router.js
16.35
KB
-rw-rw-rw-
Router.mjs
28
B
-rw-rw-rw-
_types.d.ts
2.14
KB
-rw-rw-rw-
_types.js
2.68
KB
-rw-rw-rw-
_types.mjs
28
B
-rw-rw-rw-
_version.d.ts
0
B
-rw-rw-rw-
_version.js
92
B
-rw-rw-rw-
_version.mjs
71
B
-rw-rw-rw-
index.d.ts
571
B
-rw-rw-rw-
index.js
696
B
-rw-rw-rw-
index.mjs
27
B
-rw-rw-rw-
package.json
740
B
-rw-rw-rw-
registerRoute.d.ts
1.09
KB
-rw-rw-rw-
registerRoute.js
3.93
KB
-rw-rw-rw-
registerRoute.mjs
35
B
-rw-rw-rw-
setCatchHandler.d.ts
466
B
-rw-rw-rw-
setCatchHandler.js
747
B
-rw-rw-rw-
setCatchHandler.mjs
37
B
-rw-rw-rw-
setDefaultHandler.d.ts
567
B
-rw-rw-rw-
setDefaultHandler.js
850
B
-rw-rw-rw-
setDefaultHandler.mjs
39
B
-rw-rw-rw-
tsconfig.json
232
B
-rw-rw-rw-
tsconfig.tsbuildinfo
32.06
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : NavigationRoute.js
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ import { assert } from 'workbox-core/_private/assert.js'; import { logger } from 'workbox-core/_private/logger.js'; import { Route } from './Route.js'; import './_version.js'; /** * NavigationRoute makes it easy to create a * {@link workbox-routing.Route} that matches for browser * [navigation requests]{@link https://developers.google.com/web/fundamentals/primers/service-workers/high-performance-loading#first_what_are_navigation_requests}. * * It will only match incoming Requests whose * {@link https://fetch.spec.whatwg.org/#concept-request-mode|mode} * is set to `navigate`. * * You can optionally only apply this route to a subset of navigation requests * by using one or both of the `denylist` and `allowlist` parameters. * * @memberof workbox-routing * @extends workbox-routing.Route */ class NavigationRoute extends Route { /** * If both `denylist` and `allowlist` are provided, the `denylist` will * take precedence and the request will not match this route. * * The regular expressions in `allowlist` and `denylist` * are matched against the concatenated * [`pathname`]{@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/pathname} * and [`search`]{@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/search} * portions of the requested URL. * * *Note*: These RegExps may be evaluated against every destination URL during * a navigation. Avoid using * [complex RegExps](https://github.com/GoogleChrome/workbox/issues/3077), * or else your users may see delays when navigating your site. * * @param {workbox-routing~handlerCallback} handler A callback * function that returns a Promise resulting in a Response. * @param {Object} options * @param {Array<RegExp>} [options.denylist] If any of these patterns match, * the route will not handle the request (even if a allowlist RegExp matches). * @param {Array<RegExp>} [options.allowlist=[/./]] If any of these patterns * match the URL's pathname and search parameter, the route will handle the * request (assuming the denylist doesn't match). */ constructor(handler, { allowlist = [/./], denylist = [] } = {}) { if (process.env.NODE_ENV !== 'production') { assert.isArrayOfClass(allowlist, RegExp, { moduleName: 'workbox-routing', className: 'NavigationRoute', funcName: 'constructor', paramName: 'options.allowlist', }); assert.isArrayOfClass(denylist, RegExp, { moduleName: 'workbox-routing', className: 'NavigationRoute', funcName: 'constructor', paramName: 'options.denylist', }); } super((options) => this._match(options), handler); this._allowlist = allowlist; this._denylist = denylist; } /** * Routes match handler. * * @param {Object} options * @param {URL} options.url * @param {Request} options.request * @return {boolean} * * @private */ _match({ url, request }) { if (request && request.mode !== 'navigate') { return false; } const pathnameAndSearch = url.pathname + url.search; for (const regExp of this._denylist) { if (regExp.test(pathnameAndSearch)) { if (process.env.NODE_ENV !== 'production') { logger.log(`The navigation route ${pathnameAndSearch} is not ` + `being used, since the URL matches this denylist pattern: ` + `${regExp.toString()}`); } return false; } } if (this._allowlist.some((regExp) => regExp.test(pathnameAndSearch))) { if (process.env.NODE_ENV !== 'production') { logger.debug(`The navigation route ${pathnameAndSearch} ` + `is being used.`); } return true; } if (process.env.NODE_ENV !== 'production') { logger.log(`The navigation route ${pathnameAndSearch} is not ` + `being used, since the URL being navigated to doesn't ` + `match the allowlist.`); } return false; } } export { NavigationRoute };
Close