diff --git a/components/actors/bio.vue b/components/actors/bio.vue index d92f05e..8f14737 100644 --- a/components/actors/bio.vue +++ b/components/actors/bio.vue @@ -27,11 +27,11 @@ Date of birth - {{ formatDate(actor.dateOfBirth, 'MMMM d, yyyy') }} - {{ formatDate(actor.dateOfBirth, 'MMM d, yyyy') }} + {{ formatDate(actor.dateOfBirth, actor.dateOfBirth.getFullYear() === 0 ? 'MMMM d' : 'MMMM d, yyyy') }} + {{ formatDate(actor.dateOfBirth, actor.dateOfBirth.getFullYear() === 0 ? 'MMM d' : 'MMM d, yyyy') }} {{ actor.ageFromBirth }} diff --git a/pages/entities/@entitySlug/+Page.vue b/pages/entities/@entitySlug/+Page.vue index 6ddc6cc..7c65737 100644 --- a/pages/entities/@entitySlug/+Page.vue +++ b/pages/entities/@entitySlug/+Page.vue @@ -14,18 +14,24 @@ diff --git a/src/web/server.js b/src/web/server.js index fc21cc4..48e0977 100644 --- a/src/web/server.js +++ b/src/web/server.js @@ -105,6 +105,7 @@ export default async function initServer() { // ⚠️ We instantiate it only in development. (It isn't needed in production and it // would unnecessarily bloat our production server.) const vite = await import('vite'); + const viteDevMiddleware = ( await vite.createServer({ // root, diff --git a/static b/static index d107cd9..5ec7bf2 160000 --- a/static +++ b/static @@ -1 +1 @@ -Subproject commit d107cd9f452ff96bf6e479235ab9ac5832c7bb00 +Subproject commit 5ec7bf2f4582972ebd72435236221fa3249735d4 diff --git a/vite.config.js.timestamp-1726092225447-9df18bc0290a7.mjs b/vite.config.js.timestamp-1726092225447-9df18bc0290a7.mjs deleted file mode 100644 index a4c259b..0000000 --- a/vite.config.js.timestamp-1726092225447-9df18bc0290a7.mjs +++ /dev/null @@ -1,49 +0,0 @@ -// vite.config.js -import vue from "file:///home/niels/Projects/traxxx-web/node_modules/@vitejs/plugin-vue/dist/index.mjs"; -import vike from "file:///home/niels/Projects/traxxx-web/node_modules/vike/dist/esm/node/plugin/index.js"; -import postCssGlobalData from "file:///home/niels/Projects/traxxx-web/node_modules/@csstools/postcss-global-data/dist/index.mjs"; -import postCssNesting from "file:///home/niels/Projects/traxxx-web/node_modules/postcss-nesting/dist/index.mjs"; -import postCssCustomMedia from "file:///home/niels/Projects/traxxx-web/node_modules/postcss-custom-media/dist/index.mjs"; -import ViteYaml from "file:///home/niels/Projects/traxxx-web/node_modules/@modyfi/vite-plugin-yaml/dist/index.js"; -var __vite_injected_original_dirname = "/home/niels/Projects/traxxx-web"; -var vite_config_default = { - plugins: [ - vue({ - template: { - transformAssetUrls: { - base: null, - includeAbsolute: false - } - } - }), - vike({ - redirects: { - "/": "/updates" - }, - trailingSlash: true - // for some reason /tags breaks without this, ERR_TOO_MANY_REDIRECTS - }), - ViteYaml() - ], - css: { - postcss: { - plugins: [ - postCssGlobalData({ - files: ["./assets/css/breakpoints.css"] - }), - postCssNesting(), - postCssCustomMedia() - ] - } - }, - resolve: { - alias: { - "#": __vite_injected_original_dirname, - "#root": __vite_injected_original_dirname - } - } -}; -export { - vite_config_default as default -}; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvaG9tZS9uaWVscy9Qcm9qZWN0cy90cmF4eHgtd2ViXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvaG9tZS9uaWVscy9Qcm9qZWN0cy90cmF4eHgtd2ViL3ZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9ob21lL25pZWxzL1Byb2plY3RzL3RyYXh4eC13ZWIvdml0ZS5jb25maWcuanNcIjtpbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSc7XG5pbXBvcnQgdmlrZ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