mirror of
https://github.com/modrinth/code.git
synced 2026-07-31 21:26:40 +00:00
feat: update private use moderation msgs and stage
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
## Private Use
|
||||
|
||||
Under normal circumstances, your project would be rejected due to the issues listed below.
|
||||
However, since your project is not intended for public use, these requirements will be waived and your project will be unlisted. This means it will remain accessible through a direct link without appearing in public search results, allowing you to share it privately.
|
||||
If you're okay with this, or submitted your project to be unlisted already, than no further action is necessary.
|
||||
If you would like to publish your project publicly, please address all moderation concerns before resubmitting this project.
|
||||
+1
@@ -0,0 +1 @@
|
||||
We've recently launched %SHARED_INSTANCES_FLINK% which allow you to share your modpacks directly to other users. This feature may be better suited for your use case than creating a project page!
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
## Private Use
|
||||
|
||||
Under normal circumstances, your project would be rejected due to the issues listed below. \
|
||||
However, since it looks like this project is primarily intended to be shared privately or amongst a specific community, these requirements will be waived so your project can remain Unlisted.
|
||||
|
||||
If you're okay with this, or submitted your project to be unlisted, then no further action is necessary. \
|
||||
If you would like to publish your project publicly, please address all moderation concerns before resubmitting this project.
|
||||
+4
-3
@@ -1,6 +1,7 @@
|
||||
## Private Community
|
||||
|
||||
Under normal circumstances, your server would be rejected due to the issues listed below.
|
||||
However, since your server is intended for a private community, these requirements will be waived and your server project will be unlisted. This means it will remain accessible through a direct link without appearing in public search results, allowing you to share it privately.
|
||||
If you're okay with this, or submitted your server to be unlisted already, than no further action is necessary.
|
||||
Under normal circumstances, your server would be rejected due to the issues listed below. \
|
||||
However, since your server is intended for a private community, these requirements will be waived so your project can remain Unlisted.
|
||||
|
||||
If you're okay with this, or submitted your server to be unlisted, then no further action is necessary. \
|
||||
If you would like public modrinth users to see and connect to your server, please address all moderation concerns before resubmitting.
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
getBooleanChildState,
|
||||
group,
|
||||
isNodeActive,
|
||||
md,
|
||||
resolveChildren,
|
||||
stage,
|
||||
toggle,
|
||||
@@ -66,18 +67,35 @@ export default function (
|
||||
}),
|
||||
),
|
||||
|
||||
//TODO: chyz combine these
|
||||
toggle('private-use', 'Private use')
|
||||
.shown(computed(() => !project.value.minecraft_server))
|
||||
.suggestedStatus('flagged')
|
||||
.message()
|
||||
.priority(Priorities.alerts),
|
||||
.priority(Priorities.alerts)
|
||||
.rawMessage(async (state) => {
|
||||
let msg
|
||||
|
||||
toggle('private-use-server', 'Private community')
|
||||
.shown(computed(() => !!project.value.minecraft_server))
|
||||
.suggestedStatus('flagged')
|
||||
.message()
|
||||
.priority(Priorities.alerts),
|
||||
if (
|
||||
project.value.minecraft_java_server &&
|
||||
project.value.minecraft_java_server.content?.kind === 'modpack'
|
||||
) {
|
||||
msg =
|
||||
(await md('checklist/messages/status-alerts/private-use/server')(state)) +
|
||||
'\n' +
|
||||
(await md('checklist/messages/status-alerts/private-use/note/shared-instance')(
|
||||
state,
|
||||
))
|
||||
} else {
|
||||
msg = await md('checklist/messages/status-alerts/private-use/project')(state)
|
||||
if (project.value.project_types.includes('modpack')) {
|
||||
msg +=
|
||||
'\n' +
|
||||
(await md('checklist/messages/status-alerts/private-use/note/shared-instance')(
|
||||
state,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
return msg
|
||||
}),
|
||||
|
||||
toggle('server-use', 'Server use')
|
||||
.shown(
|
||||
|
||||
@@ -335,6 +335,8 @@ export function flattenStaticVariables(): Record<string, string> {
|
||||
vars[`NEW_ENVIRONMENTS_LINK`] = `https://modrinth.com/news/article/new-environments`
|
||||
vars[`LEARN_MORE_ABOUT_SERVERS_FLINK`] =
|
||||
`[learn more about server projects from our news feed](https://modrinth.com/news/article/introducing-server-projects/)`
|
||||
vars[`SHARED_INSTANCES_FLINK`] =
|
||||
`[Shared Instances](https://modrinth.com/news/article/shared-instances/)`
|
||||
|
||||
return vars
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
CLAUDE.md
|
||||
CLAUDE.md
|
||||
|
||||
Reference in New Issue
Block a user