@jant/core 0.3.33 → 0.3.34

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/dist/index.js CHANGED
@@ -2586,7 +2586,7 @@ const SYSTEM_NAV_KEYS = {
2586
2586
  },
2587
2587
  collections: {
2588
2588
  defaultLabel: "Collections",
2589
- url: "/collections"
2589
+ url: "/c"
2590
2590
  },
2591
2591
  archive: {
2592
2592
  defaultLabel: "Archive",
@@ -5152,7 +5152,7 @@ const I18nProvider = ({ c, children })=>{
5152
5152
  }
5153
5153
 
5154
5154
  const IS_VITE_DEV = typeof __JANT_DEV__ !== "undefined" && __JANT_DEV__ === true;
5155
- const CORE_VERSION = "0.3.33";
5155
+ const CORE_VERSION = "0.3.34";
5156
5156
 
5157
5157
  const BaseLayout = ({ title, description, lang, c, toast, faviconUrl, faviconVersion, noindex, isAuthenticated = false, children })=>{
5158
5158
  // Read lang from Hono context if available, otherwise use prop or default
@@ -6223,7 +6223,7 @@ setupRoutes.post("/setup", async (c)=>{
6223
6223
  await c.var.services.navItems.create({
6224
6224
  type: "link",
6225
6225
  label: "Collections",
6226
- url: "/collections"
6226
+ url: "/c"
6227
6227
  });
6228
6228
  // Seed default navigation items
6229
6229
  await c.var.services.navItems.create({
@@ -15575,7 +15575,7 @@ const errorHandler = (err, c)=>{
15575
15575
  app.route("/archive", archiveRoutes);
15576
15576
  app.route("/featured", featuredRoutes);
15577
15577
  app.route("/latest", latestRoutes);
15578
- app.route("/collections", collectionsPageRoutes);
15578
+ app.route("/c", collectionsPageRoutes);
15579
15579
  app.route("/c", collectionRoutes);
15580
15580
  app.route("/p", postRoutes);
15581
15581
  app.route("/", homeRoutes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jant/core",
3
- "version": "0.3.33",
3
+ "version": "0.3.34",
4
4
  "description": "A modern, open-source microblogging platform built on Cloudflare Workers",
5
5
  "type": "module",
6
6
  "exports": {
package/src/app.tsx CHANGED
@@ -266,7 +266,7 @@ export function createApp(): App {
266
266
  app.route("/archive", archiveRoutes);
267
267
  app.route("/featured", featuredRoutes);
268
268
  app.route("/latest", latestRoutes);
269
- app.route("/collections", collectionsPageRoutes);
269
+ app.route("/c", collectionsPageRoutes);
270
270
  app.route("/c", collectionRoutes);
271
271
  app.route("/p", postRoutes);
272
272
  app.route("/", homeRoutes);
@@ -23,7 +23,7 @@ async function runSetupSeed(services: {
23
23
  await services.navItems.create({
24
24
  type: "link",
25
25
  label: "Collections",
26
- url: "/collections",
26
+ url: "/c",
27
27
  });
28
28
  await services.navItems.create({
29
29
  type: "link",
@@ -198,7 +198,7 @@ setupRoutes.post("/setup", async (c) => {
198
198
  await c.var.services.navItems.create({
199
199
  type: "link",
200
200
  label: "Collections",
201
- url: "/collections",
201
+ url: "/c",
202
202
  });
203
203
  // Seed default navigation items
204
204
  await c.var.services.navItems.create({
@@ -22,7 +22,7 @@ export type NavItemType = (typeof NAV_ITEM_TYPES)[number];
22
22
  export const SYSTEM_NAV_KEYS = {
23
23
  rss: { defaultLabel: "RSS", url: "/feed" },
24
24
  dashboard: { defaultLabel: "Dashboard", url: "/dash" },
25
- collections: { defaultLabel: "Collections", url: "/collections" },
25
+ collections: { defaultLabel: "Collections", url: "/c" },
26
26
  archive: { defaultLabel: "Archive", url: "/archive" },
27
27
  } as const;
28
28
  export type SystemNavKey = keyof typeof SYSTEM_NAV_KEYS;