mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
add AI metadata checking to block image uploads with notice
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<Checkbox v-model="dontShowAgain" :label="formatMessage(messages.dontShowAgain)" />
|
||||
<Button type="colored" color="brand" native-type="button" @click="acknowledge">
|
||||
<CheckCircleIcon class="size-4" />
|
||||
{{ formatMessage(messages.iUnderstand) }}
|
||||
{{ formatMessage(commonMessages.iUnderstandButton) }}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -37,6 +37,7 @@ import { ref, useTemplateRef } from 'vue'
|
||||
import { Button } from '#ui/components/base/buttons'
|
||||
|
||||
import { defineMessages, useVIntl } from '../../composables/i18n'
|
||||
import { commonMessages } from '../../utils/common-messages'
|
||||
import Checkbox from '../base/Checkbox.vue'
|
||||
import NewModal from './NewModal.vue'
|
||||
|
||||
@@ -72,10 +73,6 @@ const messages = defineMessages({
|
||||
id: 'search.photosensitivity-warning-modal.dont-show-again',
|
||||
defaultMessage: "Don't show this again",
|
||||
},
|
||||
iUnderstand: {
|
||||
id: 'search.photosensitivity-warning-modal.i-understand',
|
||||
defaultMessage: 'I understand',
|
||||
},
|
||||
})
|
||||
|
||||
function show() {
|
||||
|
||||
@@ -206,6 +206,9 @@
|
||||
"button.hide-snapshots": {
|
||||
"defaultMessage": "Hide snapshots"
|
||||
},
|
||||
"button.i-understand": {
|
||||
"defaultMessage": "I understand"
|
||||
},
|
||||
"button.install": {
|
||||
"defaultMessage": "Install"
|
||||
},
|
||||
@@ -3989,9 +3992,6 @@
|
||||
"search.photosensitivity-warning-modal.dont-show-again": {
|
||||
"defaultMessage": "Don't show this again"
|
||||
},
|
||||
"search.photosensitivity-warning-modal.i-understand": {
|
||||
"defaultMessage": "I understand"
|
||||
},
|
||||
"search.photosensitivity-warning-modal.title": {
|
||||
"defaultMessage": "Results are not guaranteed to be safe"
|
||||
},
|
||||
|
||||
@@ -176,6 +176,10 @@ export const commonMessages = defineMessages({
|
||||
id: 'input.view.grid',
|
||||
defaultMessage: 'Grid view',
|
||||
},
|
||||
iUnderstandButton: {
|
||||
id: 'button.i-understand',
|
||||
defaultMessage: 'I understand',
|
||||
},
|
||||
listInputView: {
|
||||
id: 'input.view.list',
|
||||
defaultMessage: 'Rows view',
|
||||
|
||||
Reference in New Issue
Block a user