fix text in license and links stages (#4010)
* fix text in license and links stages, change a license option to conditional * remove unused project definition * Switch markdown to use <br /> --------- Co-authored-by: Prospector <prospectordev@gmail.com>
This commit is contained in:
parent
56c556821b
commit
c20b869e62
@ -15,6 +15,7 @@
|
|||||||
"app:intl:extract": "pnpm run --filter=@modrinth/app-frontend intl:extract",
|
"app:intl:extract": "pnpm run --filter=@modrinth/app-frontend intl:extract",
|
||||||
"blog:fix": "turbo run fix --filter=@modrinth/blog",
|
"blog:fix": "turbo run fix --filter=@modrinth/blog",
|
||||||
"pages:build": "NITRO_PRESET=cloudflare-pages pnpm --filter frontend run build",
|
"pages:build": "NITRO_PRESET=cloudflare-pages pnpm --filter frontend run build",
|
||||||
|
"moderation:fix": "turbo run fix --filter=@modrinth/moderation",
|
||||||
"build": "turbo run build --continue",
|
"build": "turbo run build --continue",
|
||||||
"lint": "turbo run lint --continue",
|
"lint": "turbo run lint --continue",
|
||||||
"test": "turbo run test --continue",
|
"test": "turbo run test --continue",
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
**License id:** %PROJECT_LICENSE_ID% \
|
|
||||||
@ -1 +1,2 @@
|
|||||||
|
**License id:** %PROJECT_LICENSE_ID% \
|
||||||
**License Link:** %PROJECT_LICENSE_URL%
|
**License Link:** %PROJECT_LICENSE_URL%
|
||||||
@ -1 +1 @@
|
|||||||
> **{PLATFORM}:** {URL}
|
> **{PLATFORM}:** {URL}<br />
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
<u>**Donation Links:**</u>
|
<br />
|
||||||
|
<u>**Donation Links:**</u><br />
|
||||||
|
|||||||
@ -20,14 +20,7 @@ const licensesNotRequiringSource: string[] = [
|
|||||||
|
|
||||||
const licenseStage: Stage = {
|
const licenseStage: Stage = {
|
||||||
title: 'Is this license and link valid?',
|
title: 'Is this license and link valid?',
|
||||||
text: async (project) => {
|
text: async () => (await import('../messages/checklist-text/licensing.md?raw')).default,
|
||||||
let text = ''
|
|
||||||
text += (await import('../messages/checklist-text/license/id.md?raw')).default
|
|
||||||
if (project.license.url)
|
|
||||||
text += (await import('../messages/checklist-text/license/link.md?raw')).default
|
|
||||||
|
|
||||||
return text
|
|
||||||
},
|
|
||||||
id: 'license',
|
id: 'license',
|
||||||
icon: BookTextIcon,
|
icon: BookTextIcon,
|
||||||
guidance_url: 'https://modrinth.com/legal/rules#miscellaneous',
|
guidance_url: 'https://modrinth.com/legal/rules#miscellaneous',
|
||||||
@ -55,33 +48,24 @@ const licenseStage: Stage = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// id: 'license_no_source',
|
|
||||||
// type: 'conditional-button',
|
|
||||||
// label: 'No Source',
|
|
||||||
// fallbackWeight: 602,
|
|
||||||
// suggestedStatus: 'rejected',
|
|
||||||
// severity: 'medium',
|
|
||||||
// fallbackMessage: async () => (await import('../messages/license/no_source.md?raw')).default,
|
|
||||||
// messageVariants: [
|
|
||||||
// {
|
|
||||||
// conditions: {
|
|
||||||
// requiredActions: ['reupload_unclear_fork'],
|
|
||||||
// },
|
|
||||||
// weight: 602,
|
|
||||||
// message: async () => (await import('../messages/license/no_source-fork.md?raw')).default,
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
id: 'license_no_source',
|
id: 'license_no_source',
|
||||||
type: 'button',
|
type: 'conditional-button',
|
||||||
label: 'No Source',
|
label: 'No Source',
|
||||||
weight: 602,
|
|
||||||
suggestedStatus: 'rejected',
|
suggestedStatus: 'rejected',
|
||||||
severity: 'medium',
|
severity: 'medium',
|
||||||
shouldShow: (project) => !licensesNotRequiringSource.includes(project.license.id),
|
shouldShow: (project) => !licensesNotRequiringSource.includes(project.license.id),
|
||||||
|
messageVariants: [
|
||||||
|
{
|
||||||
|
conditions: {
|
||||||
|
excludedActions: ['license_no_source-fork'],
|
||||||
|
},
|
||||||
|
weight: 602,
|
||||||
message: async () => (await import('../messages/license/no_source.md?raw')).default,
|
message: async () => (await import('../messages/license/no_source.md?raw')).default,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
fallbackWeight: 602,
|
||||||
|
fallbackMessage: async () => '',
|
||||||
enablesActions: [
|
enablesActions: [
|
||||||
{
|
{
|
||||||
id: 'license_no_source-fork',
|
id: 'license_no_source-fork',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user