fixed version control heatmap and activity
This commit is contained in:
26
.next/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js
generated
vendored
Normal file
26
.next/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "absolutePathToPage", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return absolutePathToPage;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _ensureleadingslash = require("./ensure-leading-slash");
|
||||
const _normalizepathsep = require("./normalize-path-sep");
|
||||
const _path = /*#__PURE__*/ _interop_require_default._(require("../isomorphic/path"));
|
||||
const _removepagepathtail = require("./remove-page-path-tail");
|
||||
const _getmetadataroute = require("../../../lib/metadata/get-metadata-route");
|
||||
function absolutePathToPage(pagePath, options) {
|
||||
const isAppDir = options.pagesType === "app";
|
||||
const page = (0, _removepagepathtail.removePagePathTail)((0, _normalizepathsep.normalizePathSep)((0, _ensureleadingslash.ensureLeadingSlash)(_path.default.relative(options.dir, pagePath))), {
|
||||
extensions: options.extensions,
|
||||
keepIndex: options.keepIndex
|
||||
});
|
||||
return isAppDir ? (0, _getmetadataroute.normalizeMetadataRoute)(page) : page;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=absolute-path-to-page.js.map
|
||||
19
.next/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-app-path.js
generated
vendored
Normal file
19
.next/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-app-path.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "denormalizeAppPagePath", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return denormalizeAppPagePath;
|
||||
}
|
||||
});
|
||||
function denormalizeAppPagePath(page) {
|
||||
// `/` is normalized to `/index`
|
||||
if (page === "/index") {
|
||||
return "/";
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=denormalize-app-path.js.map
|
||||
18
.next/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js
generated
vendored
Normal file
18
.next/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "denormalizePagePath", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return denormalizePagePath;
|
||||
}
|
||||
});
|
||||
const _utils = require("../router/utils");
|
||||
const _normalizepathsep = require("./normalize-path-sep");
|
||||
function denormalizePagePath(page) {
|
||||
let _page = (0, _normalizepathsep.normalizePathSep)(page);
|
||||
return _page.startsWith("/index/") && !(0, _utils.isDynamicRoute)(_page) ? _page.slice(6) : _page !== "/index" ? _page : "/";
|
||||
}
|
||||
|
||||
//# sourceMappingURL=denormalize-page-path.js.map
|
||||
18
.next/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
generated
vendored
Normal file
18
.next/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* For a given page path, this function ensures that there is a leading slash.
|
||||
* If there is not a leading slash, one is added, otherwise it is noop.
|
||||
*/ "use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "ensureLeadingSlash", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return ensureLeadingSlash;
|
||||
}
|
||||
});
|
||||
function ensureLeadingSlash(path) {
|
||||
return path.startsWith("/") ? path : "/" + path;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=ensure-leading-slash.js.map
|
||||
40
.next/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js
generated
vendored
Normal file
40
.next/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "getPagePaths", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return getPagePaths;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _denormalizepagepath = require("./denormalize-page-path");
|
||||
const _path = /*#__PURE__*/ _interop_require_default._(require("../isomorphic/path"));
|
||||
function getPagePaths(normalizedPagePath, extensions, isAppDir) {
|
||||
const page = (0, _denormalizepagepath.denormalizePagePath)(normalizedPagePath);
|
||||
let prefixes;
|
||||
if (isAppDir) {
|
||||
prefixes = [
|
||||
page
|
||||
];
|
||||
} else if (normalizedPagePath.endsWith("/index")) {
|
||||
prefixes = [
|
||||
_path.default.join(page, "index")
|
||||
];
|
||||
} else {
|
||||
prefixes = [
|
||||
page,
|
||||
_path.default.join(page, "index")
|
||||
];
|
||||
}
|
||||
const paths = [];
|
||||
for (const extension of extensions){
|
||||
for (const prefix of prefixes){
|
||||
paths.push(prefix + "." + extension);
|
||||
}
|
||||
}
|
||||
return paths;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=get-page-paths.js.map
|
||||
26
.next/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js
generated
vendored
Normal file
26
.next/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "normalizePagePath", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return normalizePagePath;
|
||||
}
|
||||
});
|
||||
const _ensureleadingslash = require("./ensure-leading-slash");
|
||||
const _utils = require("../router/utils");
|
||||
const _utils1 = require("../utils");
|
||||
function normalizePagePath(page) {
|
||||
const normalized = /^\/index(\/|$)/.test(page) && !(0, _utils.isDynamicRoute)(page) ? "/index" + page : page === "/" ? "/index" : (0, _ensureleadingslash.ensureLeadingSlash)(page);
|
||||
if (process.env.NEXT_RUNTIME !== "edge") {
|
||||
const { posix } = require("path");
|
||||
const resolvedPage = posix.normalize(normalized);
|
||||
if (resolvedPage !== normalized) {
|
||||
throw new _utils1.NormalizeError("Requested and resolved page mismatch: " + normalized + " " + resolvedPage);
|
||||
}
|
||||
}
|
||||
return normalized;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=normalize-page-path.js.map
|
||||
19
.next/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js
generated
vendored
Normal file
19
.next/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* For a given page path, this function ensures that there is no backslash
|
||||
* escaping slashes in the path. Example:
|
||||
* - `foo\/bar\/baz` -> `foo/bar/baz`
|
||||
*/ "use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "normalizePathSep", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return normalizePathSep;
|
||||
}
|
||||
});
|
||||
function normalizePathSep(path) {
|
||||
return path.replace(/\\/g, "/");
|
||||
}
|
||||
|
||||
//# sourceMappingURL=normalize-path-sep.js.map
|
||||
20
.next/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js
generated
vendored
Normal file
20
.next/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "removePagePathTail", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return removePagePathTail;
|
||||
}
|
||||
});
|
||||
const _normalizepathsep = require("./normalize-path-sep");
|
||||
function removePagePathTail(pagePath, options) {
|
||||
pagePath = (0, _normalizepathsep.normalizePathSep)(pagePath).replace(new RegExp("\\.+(?:" + options.extensions.join("|") + ")$"), "");
|
||||
if (options.keepIndex !== true) {
|
||||
pagePath = pagePath.replace(/\/index$/, "") || "/";
|
||||
}
|
||||
return pagePath;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=remove-page-path-tail.js.map
|
||||
Reference in New Issue
Block a user