cleanup
This commit is contained in:
parent
d900dbe87d
commit
83ad4588db
3 changed files with 17 additions and 10 deletions
|
@ -5,7 +5,6 @@ export default [
|
|||
pluginJs.configs.recommended,
|
||||
{ languageOptions: { globals: globals.node } },
|
||||
{
|
||||
// FIXME: Figure this out...
|
||||
ignores: [".pnp.cjs", ".pnp.loader.mjs"],
|
||||
},
|
||||
];
|
||||
|
|
|
@ -121,9 +121,13 @@
|
|||
>
|
||||
<div slot="contracted">
|
||||
{#if entry.base.kind === 'song' || entry.base.kind === 'album'}
|
||||
<ExternalLink href={entry.base.link[0]}>
|
||||
{entry.base.artist} ‐ {entry.base.title}
|
||||
</ExternalLink>
|
||||
{#if entry.base.link[0] != null}
|
||||
<ExternalLink href={entry.base.link[0]}>
|
||||
{entry.base.artist} ‐ {entry.base.title}
|
||||
</ExternalLink>
|
||||
{:else}
|
||||
<span class="font-bold">{entry.base.artist} ‐ {entry.base.title}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{#if entry.base.kind === 'feeling'}
|
||||
|
@ -159,9 +163,13 @@
|
|||
</div>
|
||||
|
||||
{#if entry.base.kind === 'song' || entry.base.kind === 'album'}
|
||||
<ExternalLink href={entry.base.link[0]}>
|
||||
{entry.base.artist} ‐ {entry.base.title}
|
||||
</ExternalLink>
|
||||
{#if entry.base.link[0] != null}
|
||||
<ExternalLink href={entry.base.link[0]}>
|
||||
{entry.base.artist} ‐ {entry.base.title}
|
||||
</ExternalLink>
|
||||
{:else}
|
||||
<span class="font-bold">{entry.base.artist} ‐ {entry.base.title}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{#if entry.base.kind === "environment" && typeof entry.base.location === "string"}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
link: [values.spotify, values.yt, values.otherProvider].filter(
|
||||
(v) => v != null && v.length > 0
|
||||
),
|
||||
// FIXME: infer univeersal ids
|
||||
// FIXME: Infer Universal IDs (Spotify URL, etc)
|
||||
id: []
|
||||
};
|
||||
} else if (values.kind === 'environment') {
|
||||
|
@ -95,11 +95,11 @@
|
|||
errors['musicTitle'] = 'Must not be empty';
|
||||
}
|
||||
|
||||
// FIXME: When asset support is added, another precondition is that no asset is uploaded
|
||||
if (
|
||||
values.spotify.length === 0 &&
|
||||
values.yt.length === 0 &&
|
||||
values.otherProvider.length === 0
|
||||
values.otherProvider.length === 0 &&
|
||||
(values.asset == null || typeof values.asset !== "object")
|
||||
) {
|
||||
errors['links'] = 'You must add at least one link or upload an audio asset';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue