sort projects by date

This commit is contained in:
Dmitriy Pleshevskiy 2024-07-25 17:48:30 +03:00
parent 589210b1c4
commit 1e6303b215
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
14 changed files with 72 additions and 58 deletions

6
dist/404.html vendored
View file

@ -33,11 +33,11 @@
</script> </script>
<meta property="og:url" content="https://pleshevski.ru/404.html"><meta property="og:site_name" content="Дмитрий Плешевский"><meta property="og:type" content="website"><meta property="og:locale" content="ru-RU"><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":""}</script><title>Дмитрий Плешевский</title><meta name="description" content=" "> <meta property="og:url" content="https://pleshevski.ru/404.html"><meta property="og:site_name" content="Дмитрий Плешевский"><meta property="og:type" content="website"><meta property="og:locale" content="ru-RU"><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":""}</script><title>Дмитрий Плешевский</title><meta name="description" content=" ">
<link rel="preload" href="/assets/style-LjaJbYtv.css" as="style"><link rel="stylesheet" href="/assets/style-LjaJbYtv.css"> <link rel="preload" href="/assets/style-LjaJbYtv.css" as="style"><link rel="stylesheet" href="/assets/style-LjaJbYtv.css">
<link rel="modulepreload" href="/assets/app-DVhfb_AK.js"><link rel="modulepreload" href="/assets/404.html-BY7PcDFN.js"> <link rel="modulepreload" href="/assets/app-BkWeNt32.js"><link rel="modulepreload" href="/assets/404.html-BBIICBHL.js">
<link rel="prefetch" href="/assets/index.html-Dey18qa3.js" as="script"><link rel="prefetch" href="/assets/works.html-D_1XWu_F.js" as="script"><link rel="prefetch" href="/assets/index.html-CFkWDF7K.js" as="script"><link rel="prefetch" href="/assets/works.html-D_SQDS1j.js" as="script"> <link rel="prefetch" href="/assets/index.html-CXTX8AI0.js" as="script"><link rel="prefetch" href="/assets/works.html-aZ7q92-5.js" as="script"><link rel="prefetch" href="/assets/index.html-Bt5-NjbQ.js" as="script"><link rel="prefetch" href="/assets/works.html-kia6uxqT.js" as="script">
</head> </head>
<body> <body>
<div id="app"><!--[--><div class="vp-theme-container" data-v-99131a8e><main class="page" data-v-99131a8e><div class="theme-default-content" data-v-99131a8e><h1 data-v-99131a8e>404</h1><blockquote data-v-99131a8e>Верните страницу!</blockquote><a class="route-link" href="/" data-v-99131a8e>Вернуться на главную</a></div></main></div><!--[--><!----><!--]--><!--]--></div> <div id="app"><!--[--><div class="vp-theme-container" data-v-99131a8e><main class="page" data-v-99131a8e><div class="theme-default-content" data-v-99131a8e><h1 data-v-99131a8e>404</h1><blockquote data-v-99131a8e>Верните страницу!</blockquote><a class="route-link" href="/" data-v-99131a8e>Вернуться на главную</a></div></main></div><!--[--><!----><!--]--><!--]--></div>
<script type="module" src="/assets/app-DVhfb_AK.js" defer></script> <script type="module" src="/assets/app-BkWeNt32.js" defer></script>
</body> </body>
</html> </html>

View file

@ -1 +1 @@
import{_ as t,c as e,o,a}from"./app-DVhfb_AK.js";const n={},r=a("p",null,"404 Not Found",-1),c=[r];function s(l,p){return o(),e("div",null,c)}const i=t(n,[["render",s],["__file","404.html.vue"]]),m=JSON.parse('{"path":"/404.html","title":"","lang":"ru-RU","frontmatter":{"layout":"NotFound","head":[["meta",{"property":"og:url","content":"https://pleshevski.ru/404.html"}],["meta",{"property":"og:site_name","content":"Дмитрий Плешевский"}],["meta",{"property":"og:type","content":"website"}],["meta",{"property":"og:locale","content":"ru-RU"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"WebPage\\",\\"name\\":\\"\\"}"]]},"headers":[],"git":{},"filePathRelative":null}');export{i as comp,m as data}; import{_ as t,c as e,o,a}from"./app-BkWeNt32.js";const n={},r=a("p",null,"404 Not Found",-1),c=[r];function s(l,p){return o(),e("div",null,c)}const i=t(n,[["render",s],["__file","404.html.vue"]]),m=JSON.parse('{"path":"/404.html","title":"","lang":"ru-RU","frontmatter":{"layout":"NotFound","head":[["meta",{"property":"og:url","content":"https://pleshevski.ru/404.html"}],["meta",{"property":"og:site_name","content":"Дмитрий Плешевский"}],["meta",{"property":"og:type","content":"website"}],["meta",{"property":"og:locale","content":"ru-RU"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"WebPage\\",\\"name\\":\\"\\"}"]]},"headers":[],"git":{},"filePathRelative":null}');export{i as comp,m as data};

30
dist/assets/app-BkWeNt32.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

6
dist/eng/index.html vendored

File diff suppressed because one or more lines are too long

8
dist/eng/works.html vendored

File diff suppressed because one or more lines are too long

6
dist/index.html vendored

File diff suppressed because one or more lines are too long

2
dist/sitemap.xml vendored
View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?> <?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://pleshevski.ru/</loc><lastmod>2024-07-25T12:12:09.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/"/></url><url><loc>https://pleshevski.ru/works.html</loc><lastmod>2024-07-25T12:12:09.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/works.html"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/works.html"/></url><url><loc>https://pleshevski.ru/eng/</loc><lastmod>2024-07-25T12:12:09.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/"/></url><url><loc>https://pleshevski.ru/eng/works.html</loc><lastmod>2024-07-25T12:12:09.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/works.html"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/works.html"/></url></urlset> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://pleshevski.ru/</loc><lastmod>2024-07-25T12:12:09.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/"/></url><url><loc>https://pleshevski.ru/works.html</loc><lastmod>2024-07-25T13:59:34.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/works.html"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/works.html"/></url><url><loc>https://pleshevski.ru/eng/</loc><lastmod>2024-07-25T12:12:09.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/"/></url><url><loc>https://pleshevski.ru/eng/works.html</loc><lastmod>2024-07-25T12:12:09.000Z</lastmod><changefreq>monthly</changefreq><xhtml:link rel="alternate" hreflang="ru-RU" href="https://pleshevski.ru/works.html"/><xhtml:link rel="alternate" hreflang="en-US" href="https://pleshevski.ru/eng/works.html"/></url></urlset>

10
dist/works.html vendored

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,8 @@
<script lang="ts"> <script lang="ts">
function date2num(date: Date | undefined): number {
return date?.valueOf() ?? Infinity;
}
export default { export default {
name: "WorksPage", name: "WorksPage",
computed: { computed: {
@ -13,6 +17,15 @@ export default {
import { CHRONOLOGICAL_WORKS } from "../data.ts"; import { CHRONOLOGICAL_WORKS } from "../data.ts";
import { renderDate } from "../../../global.ts"; import { renderDate } from "../../../global.ts";
import { work as w } from "../domain"; import { work as w } from "../domain";
import { computed } from "vue";
const works = computed(() =>
CHRONOLOGICAL_WORKS.concat().sort(
(a, b) =>
date2num(b.endDate) - date2num(a.endDate) ||
date2num(b.startDate) - date2num(a.startDate),
),
);
</script> </script>
<template> <template>
@ -28,7 +41,7 @@ import { work as w } from "../domain";
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="work in CHRONOLOGICAL_WORKS"> <tr v-for="work in works">
<td> <td>
<a rel="nofollow noopener" :href="w.getExternalLink(work)">{{ <a rel="nofollow noopener" :href="w.getExternalLink(work)">{{
work.name work.name
@ -40,7 +53,9 @@ import { work as w } from "../domain";
<td>{{ work.status }}</td> <td>{{ work.status }}</td>
<td> <td>
<div> <div>
<small :class="{ grey: work.endDate }">{{ renderDate(work.startDate) }}</small> <small :class="{ grey: work.endDate }">
{{ renderDate(work.startDate) }}
</small>
</div> </div>
<div v-if="work.endDate"> <div v-if="work.endDate">
<small>{{ renderDate(work.endDate) }}</small> <small>{{ renderDate(work.endDate) }}</small>
@ -53,7 +68,6 @@ import { work as w } from "../domain";
<style lang="css"> <style lang="css">
.grey { .grey {
color: rgba(0,0,0,0.4); color: rgba(0, 0, 0, 0.4);
} }
</style> </style>