Added start and build scripts for windows (#81)

This commit is contained in:
czifumasa
2022-01-13 17:26:01 +01:00
committed by GitHub
parent 0b8084e3bc
commit ab66492a86
6 changed files with 43 additions and 18 deletions

View File

@@ -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)

View File

@@ -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,

View File

@@ -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() {