planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.history = void 0;
exports.navigateToCollection = navigateToCollection;
exports.navigateToEntry = navigateToEntry;
exports.navigateToNewEntry = navigateToNewEntry;
var _history = require("history");
const history = exports.history = (0, _history.createHashHistory)();
function navigateToCollection(collectionName) {
return history.push(`/collections/${collectionName}`);
}
function navigateToNewEntry(collectionName) {
return history.replace(`/collections/${collectionName}/new`);
}
function navigateToEntry(collectionName, slug) {
return history.replace(`/collections/${collectionName}/entries/${slug}`);
}