Bio allows for date of birth without (zero) year. Added entity ID to logo title.
This commit is contained in:
parent
293072c659
commit
30408673f5
|
@ -27,11 +27,11 @@
|
|||
<dfn class="bio-label"><Icon icon="cake" />Date of birth</dfn>
|
||||
|
||||
<span class="birthdate">
|
||||
<span class="birthdate-long">{{ formatDate(actor.dateOfBirth, 'MMMM d, yyyy') }}</span>
|
||||
<span class="birthdate-short">{{ formatDate(actor.dateOfBirth, 'MMM d, yyyy') }}</span>
|
||||
<span class="birthdate-long">{{ formatDate(actor.dateOfBirth, actor.dateOfBirth.getFullYear() === 0 ? 'MMMM d' : 'MMMM d, yyyy') }}</span>
|
||||
<span class="birthdate-short">{{ formatDate(actor.dateOfBirth, actor.dateOfBirth.getFullYear() === 0 ? 'MMM d' : 'MMM d, yyyy') }}</span>
|
||||
|
||||
<span
|
||||
v-if="!actor.dateOfDeath"
|
||||
v-if="!actor.dateOfDeath && actor.dateOfBirth.getFullYear() !== 0"
|
||||
class="age"
|
||||
>{{ actor.ageFromBirth }}</span>
|
||||
</span>
|
||||
|
|
|
@ -14,18 +14,24 @@
|
|||
<img
|
||||
v-if="entity.type === 'network'"
|
||||
class="logo logo-child"
|
||||
:alt="entity.name"
|
||||
:title="`${entity.name} (#${entity.id})`"
|
||||
:src="`/logos/${entity.slug}/thumbs/network.png`"
|
||||
>
|
||||
|
||||
<img
|
||||
v-else-if="entity.parent && !entity.isIndependent"
|
||||
class="logo logo-child"
|
||||
:alt="entity.name"
|
||||
:title="`${entity.name} (#${entity.id})`"
|
||||
:src="`/logos/${entity.parent.slug}/thumbs/${entity.slug}.png`"
|
||||
>
|
||||
|
||||
<img
|
||||
v-else
|
||||
class="logo logo-child"
|
||||
:alt="entity.name"
|
||||
:title="`${entity.name} (#${entity.id})`"
|
||||
:src="`/logos/${entity.slug}/thumbs/${entity.slug}.png`"
|
||||
>
|
||||
</template>
|
||||
|
|
|
@ -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,
|
||||
|
|
2
static
2
static
|
@ -1 +1 @@
|
|||
Subproject commit d107cd9f452ff96bf6e479235ab9ac5832c7bb00
|
||||
Subproject commit 5ec7bf2f4582972ebd72435236221fa3249735d4
|
|
@ -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,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvaG9tZS9uaWVscy9Qcm9qZWN0cy90cmF4eHgtd2ViXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvaG9tZS9uaWVscy9Qcm9qZWN0cy90cmF4eHgtd2ViL3ZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9ob21lL25pZWxzL1Byb2plY3RzL3RyYXh4eC13ZWIvdml0ZS5jb25maWcuanNcIjtpbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSc7XG5pbXBvcnQgdmlrZSBmcm9tICd2aWtlL3BsdWdpbic7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgaW1wb3J0L2V4dGVuc2lvbnNcblxuaW1wb3J0IHBvc3RDc3NHbG9iYWxEYXRhIGZyb20gJ0Bjc3N0b29scy9wb3N0Y3NzLWdsb2JhbC1kYXRhJztcbmltcG9ydCBwb3N0Q3NzTmVzdGluZyBmcm9tICdwb3N0Y3NzLW5lc3RpbmcnO1xuaW1wb3J0IHBvc3RDc3NDdXN0b21NZWRpYSBmcm9tICdwb3N0Y3NzLWN1c3RvbS1tZWRpYSc7XG5pbXBvcnQgVml0ZVlhbWwgZnJvbSAnQG1vZHlmaS92aXRlLXBsdWdpbi15YW1sJztcblxuZXhwb3J0IGRlZmF1bHQge1xuXHRwbHVnaW5zOiBbXG5cdFx0dnVlKHtcblx0XHRcdHRlbX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