Add edit for nano (#276)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
f88d056f9d
commit
0b9cc15364
44 files changed
+423
-112
No files matched your search
@@ -1,17 +1,20 @@
|
||||
<template>
|
||||
<div class="image w-[50px] h-[50px] relative rounded-[var(--el-border-radius-base)] overflow-hidden">
|
||||
<div
|
||||
class="image w-[50px] h-[50px] relative rounded-[var(--el-border-radius-base)] overflow-hidden border border-[var(--el-border-color)] bg-[var(--el-fill-color-lighter)]"
|
||||
>
|
||||
<img class="w-full h-full object-cover" :src="url" :alt="name" />
|
||||
<div v-show="percentage && percentage < 100" class="overlay absolute inset-0 bg-white/50 backdrop-blur-[1px]"></div>
|
||||
<el-progress
|
||||
v-show="percentage && percentage < 100"
|
||||
type="circle"
|
||||
:stroke-width="3"
|
||||
:stroke-width="4"
|
||||
:percentage="percentage"
|
||||
:width="30"
|
||||
class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[30px] h-[30px] z-[10] m-auto"
|
||||
:width="34"
|
||||
class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[34px] h-[34px] z-[10] m-auto text-[12px]"
|
||||
/>
|
||||
<div
|
||||
v-if="closable"
|
||||
class="close absolute cursor-pointer top-[5px] right-[5px] bg-[rgba(0,0,0,0.7)] text-white w-[15px] h-[15px] rounded-full flex text-[10px] text-center items-center justify-center"
|
||||
class="close absolute cursor-pointer top-[4px] right-[4px] bg-[rgba(0,0,0,0.65)] text-white w-[16px] h-[16px] rounded-full flex text-[10px] text-center items-center justify-center hover:bg-[rgba(0,0,0,0.8)]"
|
||||
>
|
||||
<font-awesome-icon icon="fa-solid fa-xmark" class="icon icon-close" @click.stop="$emit('remove')" />
|
||||
</div>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<div class="flex-1 overflow-y-auto p-[15px]">
|
||||
<action-selector class="mb-4" />
|
||||
<prompt-input class="mb-4" />
|
||||
<aspect-ratio-selector v-if="config?.action === 'generate'" class="mb-4" />
|
||||
<image-urls-input v-if="config?.action === 'edit'" class="mb-4" />
|
||||
</div>
|
||||
<div class="flex flex-col items-center justify-center px-[15px] pb-[15px]">
|
||||
@@ -22,6 +23,7 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import ActionSelector from './config/ActionSelector.vue';
|
||||
import PromptInput from './config/PromptInput.vue';
|
||||
import ImageUrlsInput from './config/ImageUrlsInput.vue';
|
||||
import AspectRatioSelector from './config/AspectRatioSelector.vue';
|
||||
import Consumption from '../common/Consumption.vue';
|
||||
import { getConsumption } from '@/utils';
|
||||
|
||||
@@ -33,7 +35,8 @@ export default defineComponent({
|
||||
PromptInput,
|
||||
Consumption,
|
||||
ActionSelector,
|
||||
ImageUrlsInput
|
||||
ImageUrlsInput,
|
||||
AspectRatioSelector
|
||||
},
|
||||
emits: ['generate'],
|
||||
computed: {
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
<template>
|
||||
<div class="field">
|
||||
<h2 class="title font-bold">{{ $t('nanobanana.name.aspectRatio') }}</h2>
|
||||
<el-select v-model="value" class="value" :placeholder="$t('nanobanana.placeholder.select')">
|
||||
<el-option v-for="opt in options" :key="opt" :label="opt" :value="opt" />
|
||||
</el-select>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
import { NANOBANANA_DEFAULT_ASPECT_RATIO } from '@/constants';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'AspectRatioSelector',
|
||||
components: { ElSelect, ElOption },
|
||||
data() {
|
||||
return {
|
||||
options: ['1:1', '3:2', '2:3', '16:9', '9:16', '4:3', '3:4']
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
value: {
|
||||
get() {
|
||||
return this.$store.state.nanobanana?.config?.aspect_ratio;
|
||||
},
|
||||
set(val: string) {
|
||||
console.debug('set aspect_ratio', val);
|
||||
this.$store.commit('nanobanana/setConfig', {
|
||||
...this.$store.state.nanobanana?.config,
|
||||
aspect_ratio: val
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.value) {
|
||||
this.value = NANOBANANA_DEFAULT_ASPECT_RATIO;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.field {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.title {
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.value {
|
||||
width: 160px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -15,6 +15,8 @@
|
||||
:on-exceed="onExceed"
|
||||
:on-error="onError"
|
||||
:on-success="onSuccess"
|
||||
:on-change="onChange"
|
||||
:on-remove="onRemove"
|
||||
:headers="headers"
|
||||
>
|
||||
<el-button size="small" type="primary" round>
|
||||
@@ -73,11 +75,14 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
urls(): string[] {
|
||||
// only persist uploaded remote URLs for request payload
|
||||
// @ts-ignore
|
||||
return this.fileList.map((file: UploadFile) => {
|
||||
// @ts-ignore
|
||||
return file?.response?.file_url;
|
||||
});
|
||||
return (
|
||||
this.fileList
|
||||
// @ts-ignore
|
||||
.map((file: UploadFile) => file?.response?.file_url)
|
||||
.filter((u: string | undefined) => !!u) as string[]
|
||||
);
|
||||
},
|
||||
value: {
|
||||
get() {
|
||||
@@ -92,6 +97,26 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value: {
|
||||
handler(val: string[] | undefined) {
|
||||
// sync UI previews when config.image_urls changes (e.g., from Edit button)
|
||||
if (!val || !Array.isArray(val)) {
|
||||
this.fileList = [] as any;
|
||||
return;
|
||||
}
|
||||
const next = val.map((url: string, idx: number) => ({
|
||||
name: url?.split('/')?.pop() || `image_${idx + 1}`,
|
||||
url,
|
||||
status: 'success',
|
||||
percentage: 100
|
||||
})) as any;
|
||||
this.fileList = next;
|
||||
},
|
||||
immediate: true,
|
||||
deep: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.value) {
|
||||
this.value = undefined;
|
||||
@@ -99,6 +124,27 @@ export default defineComponent({
|
||||
this.onSetImageUrls();
|
||||
},
|
||||
methods: {
|
||||
onChange(file: any) {
|
||||
// ensure preview shows while uploading
|
||||
if (!file?.url && file?.raw) {
|
||||
try {
|
||||
// attach object url for preview
|
||||
file.url = URL.createObjectURL(file.raw);
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
},
|
||||
onRemove(file: any) {
|
||||
// revoke object URL to avoid leaks
|
||||
if (file?.url && typeof file.url === 'string' && file.url.startsWith('blob:')) {
|
||||
try {
|
||||
URL.revokeObjectURL(file.url);
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
},
|
||||
onExceed() {
|
||||
ElMessage.warning(this.$t('nanobanana.message.uploadImageExceed'));
|
||||
},
|
||||
@@ -112,7 +158,11 @@ export default defineComponent({
|
||||
image_urls: urls
|
||||
});
|
||||
},
|
||||
async onSuccess() {
|
||||
async onSuccess(response: any, file: any) {
|
||||
// update preview to remote URL when finished
|
||||
if (response?.file_url) {
|
||||
file.url = response.file_url;
|
||||
}
|
||||
this.onSetImageUrls();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,13 @@
|
||||
:raw-src="image?.image_url!"
|
||||
/>
|
||||
</div>
|
||||
<div :class="{ operations: true, 'mt-2': true, 'mb-2': true }">
|
||||
<el-tooltip class="box-item" effect="dark" :content="$t('common.button.edit')" placement="top-start">
|
||||
<el-button type="info" size="small" class="btn-action" @click.stop="onEdit(images?.[0]?.image_url)">
|
||||
{{ $t('common.button.edit') }}
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<el-alert :closable="false" class="mt-2 success">
|
||||
<p class="text-[var(--el-text-color-regular)] text-xs mb-0">
|
||||
<font-awesome-icon icon="fa-solid fa-magic" class="mr-1" />
|
||||
@@ -80,7 +87,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElImage, ElAlert } from 'element-plus';
|
||||
import { ElImage, ElAlert, ElButton, ElTooltip } from 'element-plus';
|
||||
import { INanobananaTask, INanobananaImage } from '@/models';
|
||||
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
@@ -93,7 +100,9 @@ export default defineComponent({
|
||||
CopyToClipboard,
|
||||
FontAwesomeIcon,
|
||||
ElAlert,
|
||||
ImageWrapper
|
||||
ImageWrapper,
|
||||
ElButton,
|
||||
ElTooltip
|
||||
},
|
||||
props: {
|
||||
modelValue: {
|
||||
@@ -112,6 +121,17 @@ export default defineComponent({
|
||||
}
|
||||
return result;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onEdit(imageUrl?: string) {
|
||||
if (!imageUrl) return;
|
||||
// Switch to edit mode and preload image into uploader list
|
||||
this.$store.commit('nanobanana/setConfig', {
|
||||
...this.$store.state.nanobanana?.config,
|
||||
action: 'edit',
|
||||
image_urls: [imageUrl]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -178,6 +198,22 @@ $left-width: 70px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.operations {
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
color: var(--el-text-color-regular);
|
||||
font-size: 14px;
|
||||
.btn-action {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,3 +1,5 @@
|
||||
export const NANOBANANA_SERVICE_ID = '';
|
||||
|
||||
export const NANOBANANA_DEFAULT_ACTION: 'generate' | 'edit' = 'generate';
|
||||
|
||||
export const NANOBANANA_DEFAULT_ASPECT_RATIO = '1:1';
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+18
-10
@@ -37,19 +37,27 @@
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "نص الصورة",
|
||||
"description": "الكلمات الدالة لإنشاء/تحرير الصورة"
|
||||
"description": "نص التوليد/التحرير"
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "روبوت Nano Banana",
|
||||
"description": "اسم مولد صور Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "نسبة العرض إلى الارتفاع",
|
||||
"description": "نسبة العرض إلى الارتفاع للصورة المولدة"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "الكلمات الدالة لإنشاء أو تحرير الصورة",
|
||||
"description": "وصف الكلمات الدالة"
|
||||
"message": "نص التوليد أو التحرير للصورة",
|
||||
"description": "وصف نص التلميح"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "يجب تحميل 1-5 صور في مهمة تحرير الصورة.",
|
||||
"description": "شرح معلمة image_urls"
|
||||
"description": "وصف معلمة image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "نسبة العرض إلى الارتفاع للصورة المولدة. القيم المدعومة هي `1:1`، `3:2`، `2:3`، `16:9`، `9:16`، `4:3`، `3:4`. القيمة الافتراضية هي `1:1`. تعمل فقط عندما تكون `action` هي `generate`؛ إذا كانت `action` هي `edit`، فسيتم اعتبار نسبة الصورة الأولى في `image_urls` كمعيار.",
|
||||
"description": "وصف معلمة aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "في الانتظار",
|
||||
@@ -57,15 +65,15 @@
|
||||
},
|
||||
"placeholder.select": {
|
||||
"message": "اختر",
|
||||
"description": "نص مكان للاختيار"
|
||||
"description": "نص اختيار"
|
||||
},
|
||||
"placeholder.prompt": {
|
||||
"message": "أدخل الكلمات الدالة، مثل: قطة سيامية بيضاء",
|
||||
"description": "نص مكان للكلمات الدالة"
|
||||
"message": "أدخل نص التلميح، مثل: قطة سيامية بيضاء",
|
||||
"description": "نص تلميح"
|
||||
},
|
||||
"button.generate": {
|
||||
"message": "إنشاء",
|
||||
"description": "زر الإنشاء"
|
||||
"message": "توليد",
|
||||
"description": "زر التوليد"
|
||||
},
|
||||
"button.uploadImageUrls": {
|
||||
"message": "تحميل الصور",
|
||||
@@ -76,7 +84,7 @@
|
||||
"description": "رسالة بدء المهمة"
|
||||
},
|
||||
"message.startTaskSuccess": {
|
||||
"message": "تم بدء مهمة الإنشاء بنجاح",
|
||||
"message": "تم بدء مهمة التوليد بنجاح",
|
||||
"description": "تم إنشاء المهمة بنجاح"
|
||||
},
|
||||
"message.startTaskFailed": {
|
||||
|
||||
@@ -37,20 +37,28 @@
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "Bildaufforderung",
|
||||
"description": "Aufforderungswörter für die Erstellung/Bearbeitung"
|
||||
"description": "Aufforderungswörter zum Erstellen/Bearbeiten"
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Name des Nano Banana Bildgenerators"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Seitenverhältnis",
|
||||
"description": "Seitenverhältnis des generierten Bildes"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Aufforderungswörter zur Erstellung oder Bearbeitung von Bildern",
|
||||
"message": "Aufforderungswörter zum Erstellen oder Bearbeiten von Bildern",
|
||||
"description": "Beschreibung der Aufforderungswörter"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "Es müssen 1-5 Bilder für die Bildbearbeitungsaufgabe hochgeladen werden.",
|
||||
"description": "Erläuterung des Parameters image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Seitenverhältnis des generierten Bildes. Unterstützte Werte sind `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Der Standardwert ist `1:1`. Gilt nur, wenn `action` `generate` ist; wenn `action` `edit` ist, gilt das Verhältnis des ersten Bildes in `image_urls`.",
|
||||
"description": "Erläuterung des Parameters aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Warten",
|
||||
"description": "Wartezustand der Aufgabe"
|
||||
@@ -80,8 +88,8 @@
|
||||
"description": "Aufgabe erfolgreich erstellt"
|
||||
},
|
||||
"message.startTaskFailed": {
|
||||
"message": "Start der Aufgabe fehlgeschlagen, bitte kontaktieren Sie den Administrator:",
|
||||
"description": "Fehler beim Erstellen der Aufgabe"
|
||||
"message": "Aufgabenstart fehlgeschlagen, bitte kontaktieren Sie den Administrator:",
|
||||
"description": "Aufgabenerstellung fehlgeschlagen"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "Ihr Guthaben ist aufgebraucht, bitte kaufen Sie mehr Guthaben, um fortzufahren",
|
||||
@@ -93,6 +101,6 @@
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "Hochladen des Bildes fehlgeschlagen, bitte versuchen Sie es später erneut",
|
||||
"description": "Fehler beim Hochladen"
|
||||
"description": "Hochladen fehlgeschlagen"
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,10 @@
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Όνομα του δημιουργού εικόνας Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Αναλογία διαστάσεων",
|
||||
"description": "Αναλογία διαστάσεων της παραγόμενης εικόνας"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Λέξεις-κλειδιά για δημιουργία ή επεξεργασία εικόνας",
|
||||
"description": "Περιγραφή λέξεων-κλειδιών"
|
||||
@@ -51,6 +55,10 @@
|
||||
"message": "Πρέπει να ανεβάσετε 1-5 εικόνες για την εργασία επεξεργασίας εικόνας.",
|
||||
"description": "Περιγραφή παραμέτρου image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Αναλογία διαστάσεων της παραγόμενης εικόνας. Υποστηριζόμενες τιμές: `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Η προεπιλεγμένη τιμή είναι `1:1`. Ισχύει μόνο όταν η `action` είναι `generate`; αν η `action` είναι `edit`, τότε ισχύει η αναλογία της πρώτης εικόνας στο `image_urls`.",
|
||||
"description": "Περιγραφή παραμέτρου aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Σε αναμονή",
|
||||
"description": "Κατάσταση αναμονής της εργασίας"
|
||||
@@ -69,14 +77,14 @@
|
||||
},
|
||||
"button.uploadImageUrls": {
|
||||
"message": "Ανέβασμα εικόνας",
|
||||
"description": "Κουμπί ανέβασμα αναφορών εικόνας"
|
||||
"description": "Κουμπί για ανέβασμα αναφορών εικόνας"
|
||||
},
|
||||
"message.startingTask": {
|
||||
"message": "Εκκίνηση εργασίας...",
|
||||
"description": "Μήνυμα εκκίνησης εργασίας"
|
||||
},
|
||||
"message.startTaskSuccess": {
|
||||
"message": "Η εργασία δημιουργίας ξεκίνησε με επιτυχία",
|
||||
"message": "Η εργασία δημιουργήθηκε επιτυχώς",
|
||||
"description": "Η εργασία δημιουργήθηκε με επιτυχία"
|
||||
},
|
||||
"message.startTaskFailed": {
|
||||
@@ -92,7 +100,7 @@
|
||||
"description": "Περιορισμός αριθμού εικόνων"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "Αποτυχία ανέβασμα εικόνας, παρακαλώ δοκιμάστε ξανά αργότερα",
|
||||
"description": "Αποτυχία ανέβασμα"
|
||||
"message": "Αποτυχία ανάρτησης εικόνας, παρακαλώ δοκιμάστε ξανά αργότερα",
|
||||
"description": "Αποτυχία ανάρτησης"
|
||||
}
|
||||
}
|
||||
@@ -37,20 +37,28 @@
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "Image Prompt",
|
||||
"description": "Prompt for generating/editing"
|
||||
"description": "Prompt words for generation/editing"
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Name of the Nano Banana image generator"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Aspect Ratio",
|
||||
"description": "Aspect ratio of the generated image"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Prompt for generating or editing an image",
|
||||
"description": "Description of the prompt"
|
||||
"message": "Prompt words for generating or editing images",
|
||||
"description": "Description of the prompt words"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "You must upload 1-5 images for the editing task.",
|
||||
"message": "You must upload 1-5 images for the edit image task.",
|
||||
"description": "Description of the image_urls parameter"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Aspect ratio of the generated image. Supported values are `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. The default value is `1:1`. This only takes effect when `action` is `generate`; if `action` is `edit`, the ratio of the first image in `image_urls` will be used.",
|
||||
"description": "Description of the aspect_ratio parameter"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Pending",
|
||||
"description": "Task waiting status"
|
||||
@@ -84,12 +92,12 @@
|
||||
"description": "Task creation failed"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "Your credits have been exhausted, please purchase more credits to continue using",
|
||||
"description": "Message indicating credits are used up"
|
||||
"message": "Your credits have been used up, please purchase more credits to continue using",
|
||||
"description": "Message indicating credits are exhausted"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "You can upload a maximum of 5 images",
|
||||
"description": "Message indicating the image count exceeds the limit"
|
||||
"description": "Message indicating the number of images exceeds the limit"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "Failed to upload image, please try again later",
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
},
|
||||
"name.failure": {
|
||||
"message": "Fallo",
|
||||
"description": "Fallo de la tarea"
|
||||
"description": "La tarea ha fallado"
|
||||
},
|
||||
"name.failureReason": {
|
||||
"message": "Razón del fallo",
|
||||
"description": "Razón del fallo de la tarea"
|
||||
"description": "Razón por la que la tarea ha fallado"
|
||||
},
|
||||
"name.status": {
|
||||
"message": "Estado",
|
||||
@@ -43,6 +43,10 @@
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Nombre del generador de imágenes Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Relación de aspecto",
|
||||
"description": "Relación de aspecto de la imagen generada"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Palabras clave para generar o editar imágenes",
|
||||
"description": "Descripción de las palabras clave"
|
||||
@@ -51,17 +55,21 @@
|
||||
"message": "Se deben subir de 1 a 5 imágenes en la tarea de edición de imágenes.",
|
||||
"description": "Descripción del parámetro image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Relación de aspecto de la imagen generada. Los valores admitidos son `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. El valor predeterminado es `1:1`. Solo es efectivo cuando `action` es `generate`; si `action` es `edit`, se tomará la proporción de la primera imagen en `image_urls`.",
|
||||
"description": "Descripción del parámetro aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "En espera",
|
||||
"description": "Estado de espera de la tarea"
|
||||
},
|
||||
"placeholder.select": {
|
||||
"message": "Seleccionar",
|
||||
"description": "Marcador de posición de selección"
|
||||
"description": "Marcador de posición para selección"
|
||||
},
|
||||
"placeholder.prompt": {
|
||||
"message": "Ingrese las palabras clave, por ejemplo: un gato siamés blanco",
|
||||
"description": "Marcador de posición de sugerencia"
|
||||
"description": "Marcador de posición para palabras clave"
|
||||
},
|
||||
"button.generate": {
|
||||
"message": "Generar",
|
||||
@@ -84,12 +92,12 @@
|
||||
"description": "Fallo en la creación de la tarea"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "Se han agotado sus puntos, por favor compre más puntos para continuar usando",
|
||||
"message": "Sus puntos se han agotado, por favor compre más puntos para continuar usando",
|
||||
"description": "Mensaje de agotamiento"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "Se pueden subir un máximo de 5 imágenes",
|
||||
"description": "Número de imágenes excede el límite"
|
||||
"description": "Cantidad de imágenes excede el límite"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "Fallo al subir la imagen, por favor intente de nuevo más tarde",
|
||||
|
||||
+19
-11
@@ -5,7 +5,7 @@
|
||||
},
|
||||
"name.task": {
|
||||
"message": "Tehtävätyyppi",
|
||||
"description": "Nano Banana -kuvaoperaation tyyppi"
|
||||
"description": "Nano Banana -kuvatoimintatyyppi"
|
||||
},
|
||||
"name.generate": {
|
||||
"message": "Luo kuva",
|
||||
@@ -36,21 +36,29 @@
|
||||
"description": "Seuranta ID"
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "Kuvan vihje",
|
||||
"description": "Luonnin/muokkauksen vihjesanat"
|
||||
"message": "Kuvan ohjeet",
|
||||
"description": "Luonti/muokkausohjeet"
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Nano Banana -kuvageneraattorin nimi"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Kuvan kuvasuhde",
|
||||
"description": "Luotavan kuvan kuvasuhde"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Vihjesanat kuvan luomiseen tai muokkaamiseen",
|
||||
"description": "Vihjesanojen kuvaus"
|
||||
"message": "Luodun tai muokatun kuvan ohjeet",
|
||||
"description": "Ohjeiden kuvaus"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "Muokkaustehtävässä on ladattava 1-5 kuvaa.",
|
||||
"description": "image_urls-parametrin selitys"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Luotavan kuvan kuvasuhde. Tuetut arvot ovat `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Oletusarvo on `1:1`. Vain kun `action` on `generate`, se on voimassa; jos `action` on `edit`, käytetään `image_urls`-parametrin ensimmäisen kuvan suhdetta.",
|
||||
"description": "aspect_ratio-parametrin selitys"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Odottaa",
|
||||
"description": "Tehtävän odotustila"
|
||||
@@ -60,8 +68,8 @@
|
||||
"description": "Valintapaikka"
|
||||
},
|
||||
"placeholder.prompt": {
|
||||
"message": "Syötä vihjesanat, esim: valkoinen siamilainen kissa",
|
||||
"description": "Vihjeen paikka"
|
||||
"message": "Syötä ohjeet, esimerkiksi: valkoinen siamilainen kissa",
|
||||
"description": "Ohjeiden paikka"
|
||||
},
|
||||
"button.generate": {
|
||||
"message": "Generoi",
|
||||
@@ -84,15 +92,15 @@
|
||||
"description": "Tehtävän luonti epäonnistui"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "Oikeutesi on käytetty loppuun, osta lisää oikeuksia jatkaaksesi käyttöä",
|
||||
"description": "Loppunut ilmoitus"
|
||||
"message": "Pisteesi on käytetty loppuun, osta lisää pisteitä jatkaaksesi käyttöä",
|
||||
"description": "Loppu viesti"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "Voit ladata enintään 5 kuvaa",
|
||||
"description": "Kuvien määrä ylittää rajan"
|
||||
"description": "Kuvamäärä ylittää rajan"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "Kuvien lataaminen epäonnistui, yritä myöhemmin uudelleen",
|
||||
"message": "Kuvan lataaminen epäonnistui, yritä myöhemmin uudelleen",
|
||||
"description": "Lataus epäonnistui"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name.taskId": {
|
||||
"message": "ID de la tâche",
|
||||
"message": "ID de tâche",
|
||||
"description": "ID de la tâche"
|
||||
},
|
||||
"name.task": {
|
||||
@@ -43,6 +43,10 @@
|
||||
"message": "Bot Nano Banana",
|
||||
"description": "Nom du générateur d'images Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Ratio d'aspect",
|
||||
"description": "Ratio d'aspect de l'image générée"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Mots d'invite pour générer ou éditer une image",
|
||||
"description": "Description des mots d'invite"
|
||||
@@ -51,6 +55,10 @@
|
||||
"message": "Vous devez télécharger de 1 à 5 images pour la tâche d'édition d'image.",
|
||||
"description": "Description du paramètre image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Ratio d'aspect de l'image générée. Les valeurs prises en charge sont `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. La valeur par défaut est `1:1`. Ne prend effet que lorsque `action` est `generate`; si `action` est `edit`, le ratio sera basé sur la première image dans `image_urls`.",
|
||||
"description": "Description du paramètre aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "En attente",
|
||||
"description": "État d'attente de la tâche"
|
||||
@@ -84,7 +92,7 @@
|
||||
"description": "Échec de la création de la tâche"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "Vos crédits sont épuisés, veuillez acheter plus de crédits pour continuer",
|
||||
"message": "Vos crédits sont épuisés, veuillez acheter plus de crédits pour continuer à utiliser",
|
||||
"description": "Message d'épuisement"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
},
|
||||
"name.imageUrls": {
|
||||
"message": "Immagini di riferimento",
|
||||
"description": "Immagini di riferimento utilizzate per la modifica"
|
||||
"description": "Immagini di riferimento per la modifica"
|
||||
},
|
||||
"name.failure": {
|
||||
"message": "Fallito",
|
||||
@@ -43,14 +43,22 @@
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Nome del generatore di immagini Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Rapporto d'aspetto",
|
||||
"description": "Rapporto d'aspetto dell'immagine generata"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Parole chiave per generare o modificare un'immagine",
|
||||
"message": "Parole chiave per generare o modificare l'immagine",
|
||||
"description": "Descrizione delle parole chiave"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "È necessario caricare da 1 a 5 immagini per il compito di modifica dell'immagine.",
|
||||
"description": "Descrizione del parametro image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Rapporto d'aspetto dell'immagine generata. I valori supportati sono `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Il valore predefinito è `1:1`. Si applica solo quando `action` è `generate`; se `action` è `edit`, si utilizza il rapporto della prima immagine in `image_urls`.",
|
||||
"description": "Descrizione del parametro aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "In attesa",
|
||||
"description": "Stato di attesa dell'attività"
|
||||
@@ -73,7 +81,7 @@
|
||||
},
|
||||
"message.startingTask": {
|
||||
"message": "Avvio dell'attività in corso...",
|
||||
"description": "Messaggio di avvio dell'attività"
|
||||
"description": "Messaggio di inizio attività"
|
||||
},
|
||||
"message.startTaskSuccess": {
|
||||
"message": "Attività di generazione avviata con successo",
|
||||
@@ -84,11 +92,11 @@
|
||||
"description": "Creazione dell'attività fallita"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "I tuoi crediti sono esauriti, acquista più crediti per continuare a utilizzare",
|
||||
"message": "I tuoi punti sono esauriti, acquista più punti per continuare a utilizzare",
|
||||
"description": "Messaggio di esaurimento"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "È possibile caricare un massimo di 5 immagini",
|
||||
"message": "È possibile caricare al massimo 5 immagini",
|
||||
"description": "Numero di immagini superiore al limite"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"name.failureReason": {
|
||||
"message": "失敗理由",
|
||||
"description": "タスク失敗の理由"
|
||||
"description": "タスクの失敗理由"
|
||||
},
|
||||
"name.status": {
|
||||
"message": "ステータス",
|
||||
@@ -41,7 +41,11 @@
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Nano Banana 画像生成器の名称"
|
||||
"description": "Nano Banana 画像生成器の名前"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "アスペクト比",
|
||||
"description": "生成画像のアスペクト比"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "画像を生成または編集するためのプロンプト",
|
||||
@@ -51,9 +55,13 @@
|
||||
"message": "画像編集タスクでは、1〜5枚の画像をアップロードする必要があります。",
|
||||
"description": "image_urls パラメータの説明"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "生成画像のアスペクト比。サポートされている値は `1:1`、`3:2`、`2:3`、`16:9`、`9:16`、`4:3`、`3:4` です。デフォルト値は `1:1` です。`action` が `generate` の場合にのみ有効です;`action` が `edit` の場合は、`image_urls` の最初の画像の比率が適用されます。",
|
||||
"description": "aspect_ratio パラメータの説明"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "保留中",
|
||||
"description": "タスクの保留状態"
|
||||
"message": "待機中",
|
||||
"description": "タスクの待機状態"
|
||||
},
|
||||
"placeholder.select": {
|
||||
"message": "選択",
|
||||
@@ -84,15 +92,15 @@
|
||||
"description": "タスク作成に失敗しました"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "ポイントが使い切れました。追加のポイントを購入して続行してください",
|
||||
"description": "使い切れたことを示すメッセージ"
|
||||
"message": "ポイントが使い切りました。追加のポイントを購入して続行してください",
|
||||
"description": "使い切ったことを示すメッセージ"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "最大で5枚の画像をアップロードできます",
|
||||
"description": "画像の数が制限を超えています"
|
||||
"description": "画像の数が制限を超えました"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "画像のアップロードに失敗しました。後でもう一度お試しください",
|
||||
"description": "アップロード失敗"
|
||||
"message": "画像のアップロードに失敗しました。後で再試行してください",
|
||||
"description": "アップロードに失敗しました"
|
||||
}
|
||||
}
|
||||
@@ -43,14 +43,22 @@
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Nano Banana 이미지 생성기 이름"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "가로 세로 비율",
|
||||
"description": "생성된 이미지의 가로 세로 비율"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "이미지를 생성하거나 편집하기 위한 프롬프트",
|
||||
"description": "프롬프트 설명"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "편집 이미지 작업에서 1-5장의 이미지를 업로드해야 합니다.",
|
||||
"message": "이미지 편집 작업에서는 1-5장의 이미지를 업로드해야 합니다.",
|
||||
"description": "image_urls 매개변수 설명"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "생성된 이미지의 가로 세로 비율입니다. 지원되는 값은 `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`입니다. 기본값은 `1:1`입니다. `action`이 `generate`일 때만 적용되며, `action`이 `edit`일 경우 `image_urls`의 첫 번째 이미지 비율을 따릅니다.",
|
||||
"description": "aspect_ratio 매개변수 설명"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "대기 중",
|
||||
"description": "작업 대기 상태"
|
||||
@@ -60,7 +68,7 @@
|
||||
"description": "선택 자리 표시자"
|
||||
},
|
||||
"placeholder.prompt": {
|
||||
"message": "프롬프트 입력, 예: 흰색 샴 고양이",
|
||||
"message": "프롬프트 입력, 예: 하얀 색 샴 고양이",
|
||||
"description": "프롬프트 자리 표시자"
|
||||
},
|
||||
"button.generate": {
|
||||
@@ -80,11 +88,11 @@
|
||||
"description": "작업 성공적으로 생성됨"
|
||||
},
|
||||
"message.startTaskFailed": {
|
||||
"message": "작업 시작 실패, 관리자에게 문의하십시오:",
|
||||
"message": "작업 시작 실패, 관리자에게 문의하세요:",
|
||||
"description": "작업 생성 실패"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "포인트가 소진되었습니다. 더 많은 포인트를 구매한 후 계속 사용하십시오.",
|
||||
"message": "포인트가 소진되었습니다. 더 많은 포인트를 구매한 후 계속 사용하세요.",
|
||||
"description": "소진 알림"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
@@ -92,7 +100,7 @@
|
||||
"description": "이미지 수 초과 제한"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "이미지 업로드 실패, 나중에 다시 시도하십시오.",
|
||||
"message": "이미지 업로드 실패, 나중에 다시 시도하세요.",
|
||||
"description": "업로드 실패"
|
||||
}
|
||||
}
|
||||
@@ -37,38 +37,46 @@
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "Podpowiedź obrazu",
|
||||
"description": "Podpowiedzi do generowania/edycji"
|
||||
"description": "Słowa kluczowe do generowania/edycji"
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "Bot Nano Banana",
|
||||
"description": "Nazwa generatora obrazów Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Proporcje",
|
||||
"description": "Proporcje generowanego obrazu"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Podpowiedzi do generowania lub edytowania obrazów",
|
||||
"description": "Opis podpowiedzi"
|
||||
"message": "Słowa kluczowe do generowania lub edytowania obrazu",
|
||||
"description": "Opis słów kluczowych"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "W zadaniu edycji obrazu należy przesłać od 1 do 5 obrazów.",
|
||||
"description": "Opis parametru image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Proporcje generowanego obrazu. Obsługiwane wartości to `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Wartość domyślna to `1:1`. Działa tylko, gdy `action` to `generate`; jeśli `action` to `edit`, to obowiązuje proporcja pierwszego obrazu w `image_urls`.",
|
||||
"description": "Opis parametru aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Oczekiwanie",
|
||||
"description": "Status oczekiwania zadania"
|
||||
},
|
||||
"placeholder.select": {
|
||||
"message": "Wybierz",
|
||||
"description": "Zajmij miejsce na wybór"
|
||||
"description": "Zajmij miejsce wyboru"
|
||||
},
|
||||
"placeholder.prompt": {
|
||||
"message": "Wprowadź podpowiedź, na przykład: biały kot syjamski",
|
||||
"description": "Zajmij miejsce na podpowiedź"
|
||||
"message": "Wprowadź słowa kluczowe, na przykład: biały kot syjamski",
|
||||
"description": "Zajmij miejsce podpowiedzi"
|
||||
},
|
||||
"button.generate": {
|
||||
"message": "Generuj",
|
||||
"description": "Przycisk generowania"
|
||||
},
|
||||
"button.uploadImageUrls": {
|
||||
"message": "Prześlij obraz",
|
||||
"message": "Prześlij obrazy",
|
||||
"description": "Przycisk przesyłania obrazów referencyjnych"
|
||||
},
|
||||
"message.startingTask": {
|
||||
@@ -80,7 +88,7 @@
|
||||
"description": "Zadanie zostało pomyślnie utworzone"
|
||||
},
|
||||
"message.startTaskFailed": {
|
||||
"message": "Uruchomienie zadania nie powiodło się, skontaktuj się z administratorem:",
|
||||
"message": "Nie udało się uruchomić zadania, skontaktuj się z administratorem:",
|
||||
"description": "Niepowodzenie w tworzeniu zadania"
|
||||
},
|
||||
"message.usedUp": {
|
||||
|
||||
@@ -43,16 +43,24 @@
|
||||
"message": "Bot Nano Banana",
|
||||
"description": "Nome do gerador de imagens Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Proporção",
|
||||
"description": "Proporção da imagem gerada"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Palavras-chave para gerar ou editar imagens",
|
||||
"message": "Palavras-chave para gerar ou editar a imagem",
|
||||
"description": "Descrição das palavras-chave"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "É necessário enviar de 1 a 5 imagens na tarefa de edição de imagem.",
|
||||
"description": "Descrição do parâmetro image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Proporção da imagem gerada. Os valores suportados são `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. O valor padrão é `1:1`. Somente é aplicado quando `action` é `generate`; se `action` for `edit`, a proporção da primeira imagem em `image_urls` será utilizada.",
|
||||
"description": "Descrição do parâmetro aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Pendente",
|
||||
"message": "Aguardando",
|
||||
"description": "Status de espera da tarefa"
|
||||
},
|
||||
"placeholder.select": {
|
||||
@@ -68,7 +76,7 @@
|
||||
"description": "Botão de gerar"
|
||||
},
|
||||
"button.uploadImageUrls": {
|
||||
"message": "Enviar imagens",
|
||||
"message": "Enviar imagem",
|
||||
"description": "Botão para enviar imagens de referência"
|
||||
},
|
||||
"message.startingTask": {
|
||||
@@ -84,8 +92,8 @@
|
||||
"description": "Falha na criação da tarefa"
|
||||
},
|
||||
"message.usedUp": {
|
||||
"message": "Seus créditos acabaram, por favor, compre mais créditos para continuar usando",
|
||||
"description": "Mensagem de créditos esgotados"
|
||||
"message": "Seus pontos acabaram, por favor, compre mais pontos para continuar usando",
|
||||
"description": "Mensagem de esgotamento"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "É possível enviar no máximo 5 imagens",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name.taskId": {
|
||||
"message": "ID задачи",
|
||||
"description": "ID задачи"
|
||||
"message": "Идентификатор задачи",
|
||||
"description": "Идентификатор задачи"
|
||||
},
|
||||
"name.task": {
|
||||
"message": "Тип задачи",
|
||||
@@ -32,8 +32,8 @@
|
||||
"description": "Статус задачи"
|
||||
},
|
||||
"name.traceId": {
|
||||
"message": "ID отслеживания",
|
||||
"description": "ID отслеживания"
|
||||
"message": "Идентификатор трассировки",
|
||||
"description": "Идентификатор трассировки"
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "Подсказка для изображения",
|
||||
@@ -43,14 +43,22 @@
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Название генератора изображений Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Соотношение сторон",
|
||||
"description": "Соотношение сторон генерируемого изображения"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Подсказка для генерации или редактирования изображения",
|
||||
"description": "Описание подсказки"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "Необходимо загрузить от 1 до 5 изображений для задачи редактирования.",
|
||||
"message": "В задаче редактирования изображения необходимо загрузить от 1 до 5 изображений.",
|
||||
"description": "Описание параметра image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Соотношение сторон генерируемого изображения. Поддерживаемые значения: `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Значение по умолчанию: `1:1`. Действует только если `action` равно `generate`; если `action` равно `edit`, используется соотношение сторон первого изображения из `image_urls`.",
|
||||
"description": "Описание параметра aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "В ожидании",
|
||||
"description": "Статус ожидания задачи"
|
||||
|
||||
@@ -37,20 +37,28 @@
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "Uputstvo za sliku",
|
||||
"description": "Uputstvo za generisanje/uređivanje"
|
||||
"description": "Reči za generisanje/uređivanje"
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Ime generatore slika Nano Banana"
|
||||
"description": "Ime generatora slika Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Odnos širine i visine",
|
||||
"description": "Odnos širine i visine generisane slike"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Uputstvo za generisanje ili uređivanje slike",
|
||||
"description": "Opis uputstva"
|
||||
"message": "Reči za generisanje ili uređivanje slike",
|
||||
"description": "Opis reči za uputstvo"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "U zadatku za uređivanje slika potrebno je otpremiti 1-5 slika.",
|
||||
"description": "Objašnjenje parametra image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Odnos širine i visine generisane slike. Podržane vrednosti su `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Podrazumevana vrednost je `1:1`. Važi samo kada je `action` `generate`; ako je `action` `edit`, koristi se odnos prve slike iz `image_urls`.",
|
||||
"description": "Objašnjenje parametra aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Na čekanju",
|
||||
"description": "Status čekanja zadatka"
|
||||
@@ -60,7 +68,7 @@
|
||||
"description": "Placeholder za izbor"
|
||||
},
|
||||
"placeholder.prompt": {
|
||||
"message": "Unesite uputstvo, na primer: bela sijamska mačka",
|
||||
"message": "Unesite reči za uputstvo, na primer: bela sijamska mačka",
|
||||
"description": "Placeholder za uputstvo"
|
||||
},
|
||||
"button.generate": {
|
||||
@@ -88,7 +96,7 @@
|
||||
"description": "Poruka o potrošenim bodovima"
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "Možete otpremiti najviše 5 slika",
|
||||
"message": "Maksimalno možete otpremiti 5 slika",
|
||||
"description": "Broj slika premašuje ograničenje"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
|
||||
@@ -43,13 +43,21 @@
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Namn på Nano Banana bildgenerator"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Bildförhållande",
|
||||
"description": "Bildförhållandet för den genererade bilden"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Promptord för att generera eller redigera bilder",
|
||||
"message": "Promptord för att generera eller redigera bilden",
|
||||
"description": "Beskrivning av promptord"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "I redigeringsbilduppgiften måste 1-5 bilder laddas upp.",
|
||||
"description": "Förklaring av image_urls parametern"
|
||||
"message": "Du måste ladda upp 1-5 bilder i redigeringsuppgiften.",
|
||||
"description": "Beskrivning av image_urls parametern"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Bildförhållandet för den genererade bilden. Stödda värden är `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Standardvärdet är `1:1`. Gäller endast när `action` är `generate`; om `action` är `edit`, används förhållandet för den första bilden i `image_urls`.",
|
||||
"description": "Beskrivning av aspect_ratio parametern"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "Väntar",
|
||||
@@ -60,7 +68,7 @@
|
||||
"description": "Välj platshållare"
|
||||
},
|
||||
"placeholder.prompt": {
|
||||
"message": "Ange promptord, till exempel: en vit siamesisk katt",
|
||||
"message": "Skriv in promptord, till exempel: en vit siamesisk katt",
|
||||
"description": "Promptplatshållare"
|
||||
},
|
||||
"button.generate": {
|
||||
@@ -69,14 +77,14 @@
|
||||
},
|
||||
"button.uploadImageUrls": {
|
||||
"message": "Ladda upp bilder",
|
||||
"description": "Knapp för att ladda upp referensbilder"
|
||||
"description": "Ladda upp referensbilder knapp"
|
||||
},
|
||||
"message.startingTask": {
|
||||
"message": "Startar uppgiften...",
|
||||
"description": "Meddelande om att starta uppgiften"
|
||||
},
|
||||
"message.startTaskSuccess": {
|
||||
"message": "Uppgiften för att generera har startat framgångsrikt",
|
||||
"message": "Uppgiften har framgångsrikt startats",
|
||||
"description": "Uppgiften skapades framgångsrikt"
|
||||
},
|
||||
"message.startTaskFailed": {
|
||||
|
||||
@@ -37,22 +37,30 @@
|
||||
},
|
||||
"name.prompt": {
|
||||
"message": "Підказка для зображення",
|
||||
"description": "Підказка для генерації/редагування"
|
||||
"description": "Слова підказки для створення/редагування"
|
||||
},
|
||||
"name.nanobananaBot": {
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Назва генератора зображень Nano Banana"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "Співвідношення сторін",
|
||||
"description": "Співвідношення сторін для створюваного зображення"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "Підказка для генерації або редагування зображення",
|
||||
"message": "Слова підказки для створення або редагування зображення",
|
||||
"description": "Опис підказки"
|
||||
},
|
||||
"description.imageUrls": {
|
||||
"message": "У завданні редагування зображення потрібно завантажити 1-5 зображень.",
|
||||
"description": "Опис параметра image_urls"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "Співвідношення сторін для створюваного зображення. Підтримувані значення: `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. Значення за замовчуванням: `1:1`. Діє лише якщо `action` дорівнює `generate`; якщо `action` дорівнює `edit`, то береться співвідношення першого зображення з `image_urls`.",
|
||||
"description": "Опис параметра aspect_ratio"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "В очікуванні",
|
||||
"message": "Очікування",
|
||||
"description": "Статус очікування завдання"
|
||||
},
|
||||
"placeholder.select": {
|
||||
@@ -89,7 +97,7 @@
|
||||
},
|
||||
"message.uploadImageExceed": {
|
||||
"message": "Максимум можна завантажити 5 зображень",
|
||||
"description": "Кількість зображень перевищує ліміт"
|
||||
"description": "Кількість зображень перевищує обмеження"
|
||||
},
|
||||
"message.uploadImageError": {
|
||||
"message": "Не вдалося завантажити зображення, будь ласка, спробуйте ще раз пізніше",
|
||||
|
||||
@@ -10,8 +10,13 @@
|
||||
"name.traceId": { "message": "追踪 ID", "description": "追踪 ID" },
|
||||
"name.prompt": { "message": "图像提示", "description": "生成/编辑的提示词" },
|
||||
"name.nanobananaBot": { "message": "Nano Banana Bot", "description": "Nano Banana 图片生成器名称" },
|
||||
"name.aspectRatio": { "message": "宽高比", "description": "生成图像的宽高比" },
|
||||
"description.prompt": { "message": "生成或编辑图像的提示词", "description": "提示词描述" },
|
||||
"description.imageUrls": { "message": "在编辑图片任务中必须上传 1-5 张图片。", "description": "image_urls 参数说明" },
|
||||
"description.aspectRatio": {
|
||||
"message": "生成图像的宽高比。支持的取值有 `1:1`、`3:2`、`2:3`、`16:9`、`9:16`、`4:3`、`3:4`。默认值为 `1:1`。仅当 `action` 为 `generate` 时生效;若 `action` 为 `edit`,则以 `image_urls` 中第一张图片的比例为准。",
|
||||
"description": "aspect_ratio 参数说明"
|
||||
},
|
||||
|
||||
"status.pending": { "message": "等待中", "description": "任务等待状态" },
|
||||
|
||||
|
||||
@@ -43,6 +43,10 @@
|
||||
"message": "Nano Banana Bot",
|
||||
"description": "Nano Banana 圖片生成器名稱"
|
||||
},
|
||||
"name.aspectRatio": {
|
||||
"message": "寬高比",
|
||||
"description": "生成圖像的寬高比"
|
||||
},
|
||||
"description.prompt": {
|
||||
"message": "生成或編輯圖像的提示詞",
|
||||
"description": "提示詞描述"
|
||||
@@ -51,6 +55,10 @@
|
||||
"message": "在編輯圖片任務中必須上傳 1-5 張圖片。",
|
||||
"description": "image_urls 參數說明"
|
||||
},
|
||||
"description.aspectRatio": {
|
||||
"message": "生成圖像的寬高比。支持的取值有 `1:1`、`3:2`、`2:3`、`16:9`、`9:16`、`4:3`、`3:4`。默認值為 `1:1`。僅當 `action` 為 `generate` 時生效;若 `action` 為 `edit`,則以 `image_urls` 中第一張圖片的比例為準。",
|
||||
"description": "aspect_ratio 參數說明"
|
||||
},
|
||||
"status.pending": {
|
||||
"message": "等待中",
|
||||
"description": "任務等待狀態"
|
||||
|
||||
@@ -2,6 +2,7 @@ export interface INanobananaConfig {
|
||||
action?: 'generate' | 'edit';
|
||||
prompt?: string;
|
||||
image_urls?: string[];
|
||||
aspect_ratio?: string;
|
||||
callback_url?: string;
|
||||
}
|
||||
|
||||
@@ -9,6 +10,7 @@ export interface INanobananaGenerateRequest {
|
||||
action?: 'generate' | 'edit';
|
||||
prompt?: string;
|
||||
image_urls?: string[];
|
||||
aspect_ratio?: string;
|
||||
callback_url?: string;
|
||||
mirror?: boolean;
|
||||
}
|
||||
|
||||
@@ -128,8 +128,13 @@ export default defineComponent({
|
||||
});
|
||||
},
|
||||
async onGenerate() {
|
||||
const cfg: any = { ...(this.config || {}) };
|
||||
// When action is 'edit', do not send image_urls
|
||||
if (cfg?.action === 'generate' && 'image_urls' in cfg) {
|
||||
delete cfg.image_urls;
|
||||
}
|
||||
const request = {
|
||||
...this.config,
|
||||
...cfg,
|
||||
callback_url: CALLBACK_URL
|
||||
} as INanobananaGenerateRequest;
|
||||
const token = this.credential?.token;
|
||||
|
||||
Reference in new issue
Block a user