mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-11 10:03:47 +00:00
Added start and build scripts for windows (#81)
This commit is contained in:
@@ -19,16 +19,16 @@ export async function getChangelog(maxVersions: number, seenVersion?: string) {
|
||||
? Date.parse(seenVersion.slice(0, 10))
|
||||
: 0;
|
||||
|
||||
const changes = process.env
|
||||
.REACT_APP_CHANGELOG!.split('##')
|
||||
.slice(1, maxVersions + 1)
|
||||
.map((notes) => {
|
||||
const date = Date.parse(notes.split('\n')[0].trim());
|
||||
return {date, notes: '####' + notes};
|
||||
})
|
||||
.filter((release) => release.date > seenVersionDate)
|
||||
.map((release) => release.notes)
|
||||
.join('\n');
|
||||
const changes =
|
||||
process.env.REACT_APP_CHANGELOG?.split('##')
|
||||
.slice(1, maxVersions + 1)
|
||||
.map((notes) => {
|
||||
const date = Date.parse(notes.split('\n')[0].trim());
|
||||
return {date, notes: '####' + notes};
|
||||
})
|
||||
.filter((release) => release.date > seenVersionDate)
|
||||
.map((release) => release.notes)
|
||||
.join('\n') || '';
|
||||
|
||||
const parsedChanges = await unified()
|
||||
.use(remarkParse)
|
||||
|
||||
@@ -680,14 +680,15 @@ function famToGedcom(fam: JsonFam): GedcomEntry {
|
||||
tree: [],
|
||||
});
|
||||
}
|
||||
(fam.children || []).forEach(child =>
|
||||
(fam.children || []).forEach((child) =>
|
||||
record.tree.push({
|
||||
level: 1,
|
||||
pointer: child,
|
||||
tag: 'CHILD',
|
||||
data: '',
|
||||
tree: [],
|
||||
}));
|
||||
}),
|
||||
);
|
||||
if (fam.marriage) {
|
||||
record.tree.push({
|
||||
level: 1,
|
||||
|
||||
@@ -19,7 +19,7 @@ function GedcomLink(props: {url: string; text: string}) {
|
||||
}
|
||||
|
||||
function formatBuildDate(dateString: string) {
|
||||
return dateString.slice(0, 16);
|
||||
return dateString?.slice(0, 16) || '';
|
||||
}
|
||||
|
||||
function Contents() {
|
||||
|
||||
Reference in New Issue
Block a user