add AI metadata checking to block image uploads with notice

This commit is contained in:
Prospector
2026-08-07 17:30:58 -07:00
parent 8ab484a298
commit d8e53cf7dc
12 changed files with 226 additions and 31 deletions
@@ -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() {
+3 -3
View File
@@ -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"
},
+4
View File
@@ -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',