Optimize application flow (#196)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
a37f796c81
commit
8ad9637b86
59 files changed
+1573
-1380
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "minor",
|
||||
"comment": "optimize application flow",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "office@acedata.cloud",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
<el-dropdown @command="onSelectApplication">
|
||||
<span class="el-dropdown-link">
|
||||
<application-info :application="application" />
|
||||
<el-icon v-if="applications && applications.length > 0" class="el-icon--right">
|
||||
<el-icon v-if="applications && applications.length > 0" class="el-icon--right ml-0">
|
||||
<arrow-down />
|
||||
</el-icon>
|
||||
</span>
|
||||
@@ -141,16 +141,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// check if the credential is created
|
||||
if (
|
||||
this.application &&
|
||||
!this.application?.credentials?.find((credential) => credential.host === window.location.origin)
|
||||
) {
|
||||
console.debug('create extra credential');
|
||||
this.onCreateCredential(this.application);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onBuyMore(application: IApplication) {
|
||||
this.$router.push({
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
+18
-18
@@ -48,8 +48,8 @@
|
||||
"description": "نص في قائمة الموقع، إدارة التوزيع تشير إلى إدارة حالة توزيع المستخدم، متعلقة بأرباح التوصية"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "دعم استفسارات العملاء الحصري",
|
||||
"description": "نص في الصفحة الرئيسية للموقع، دعم استفسارات العملاء الحصري يشير إلى أن المستخدم يمكنه الحصول على دعم استفسارات العملاء الحصري"
|
||||
"message": "دعم استفسارات العملاء المخصص",
|
||||
"description": "نص في الصفحة الرئيسية للموقع، دعم استفسارات العملاء المخصص يشير إلى أن المستخدم يمكنه الحصول على دعم استفسارات العملاء المخصص"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "تجربة الميزات الجديدة أولاً",
|
||||
@@ -57,19 +57,19 @@
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "شراء",
|
||||
"description": "نص في الصفحة الرئيسية للموقع، شراء يشير إلى أن المستخدم يمكنه شراء الاعتمادات"
|
||||
"description": "نص في الصفحة الرئيسية للموقع، شراء الرصيد يشير إلى أن المستخدم يمكنه شراء الرصيد"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "اشتراك",
|
||||
"description": "نص في الصفحة الرئيسية للموقع، اشتراك يشير إلى أن المستخدم يمكنه الاشتراك في العضوية"
|
||||
"description": "نص في الصفحة الرئيسية للموقع، اشتراك العضوية يشير إلى أن المستخدم يمكنه الاشتراك في العضوية"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "لا تريد الاشتراك في العضوية الكاملة؟ يمكنك أيضًا تجربة شراء الاعتمادات بشكل منفصل.",
|
||||
"message": "لا تريد الاشتراك في العضوية الدورية؟ يمكنك أيضًا تجربة شراء الرصيد بشكل منفصل.",
|
||||
"description": "نص في الصفحة الرئيسية للموقع، لا تريد الاشتراك يشير إلى أن المستخدم لا يريد الاشتراك في العضوية"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "لا تريد شراء الاعتمادات؟ يمكنك أيضًا تجربة الاشتراك في حزمة الوقت.",
|
||||
"description": "نص في الصفحة الرئيسية للموقع، لا تريد شراء الاعتمادات يشير إلى أن المستخدم لا يريد شراء الاعتمادات"
|
||||
"message": "لا تريد شراء الرصيد؟ يمكنك أيضًا تجربة الاشتراك في العضوية الدورية.",
|
||||
"description": "نص في الصفحة الرئيسية للموقع، لا تريد شراء الرصيد يشير إلى أن المستخدم لا يريد شراء الرصيد"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "الطلب غير موجود",
|
||||
@@ -84,32 +84,32 @@
|
||||
"description": "نوع العضوية، عضوية تجربة 3 أيام"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "عضوية تجربة، مناسبة للاستخدام القصير.",
|
||||
"description": "وصف نوع العضوية، مناسبة للاستخدام القصير"
|
||||
"message": "عضوية تجربة، مناسبة للاستخدام القصير الأمد.",
|
||||
"description": "نوع العضوية، مناسبة للاستخدام القصير الأمد"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "عضوية أسبوعية",
|
||||
"description": "نوع العضوية، عضوية أسبوعية تشير إلى أن نوع العضوية الذي اشتراه المستخدم هو عضوية أسبوعية"
|
||||
"description": "نوع العضوية، العضوية الأسبوعية تشير إلى نوع العضوية التي يشتريها المستخدم كعضوية أسبوعية"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "عضوية شهرية",
|
||||
"description": "نوع العضوية، عضوية شهرية تشير إلى أن نوع العضوية الذي اشتراه المستخدم هو عضوية شهرية"
|
||||
"description": "نوع العضوية، العضوية الشهرية تشير إلى نوع العضوية التي يشتريها المستخدم كعضوية شهرية"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "عضوية سنوية",
|
||||
"description": "نوع العضوية، عضوية سنوية تشير إلى أن نوع العضوية الذي اشتراه المستخدم هو عضوية سنوية"
|
||||
"description": "نوع العضوية، العضوية السنوية تشير إلى نوع العضوية التي يشتريها المستخدم كعضوية سنوية"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "عضوية أسبوعية للتجربة، مناسبة للاستخدام القصير.",
|
||||
"description": "وصف نوع العضوية، عضوية أسبوعية تشير إلى أن نوع العضوية الذي اشتراه المستخدم هو عضوية أسبوعية"
|
||||
"message": "عضوية أسبوعية للتجربة، مناسبة للاستخدام القصير الأمد.",
|
||||
"description": "وصف نوع العضوية، العضوية الأسبوعية تشير إلى نوع العضوية التي يشتريها المستخدم كعضوية أسبوعية"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "عضوية شهرية مرنة، مناسبة للاستخدام الطويل.",
|
||||
"description": "وصف نوع العضوية، عضوية شهرية تشير إلى أن نوع العضوية الذي اشتراه المستخدم هو عضوية شهرية"
|
||||
"message": "عضوية شهرية مرنة، مناسبة للاستخدام الطويل الأمد.",
|
||||
"description": "وصف نوع العضوية، العضوية الشهرية تشير إلى نوع العضوية التي يشتريها المستخدم كعضوية شهرية"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "عضوية سنوية ذات قيمة عالية، الخيار الأكثر اقتصادية.",
|
||||
"description": "وصف نوع العضوية، عضوية سنوية تشير إلى أن نوع العضوية الذي اشتراه المستخدم هو عضوية سنوية"
|
||||
"message": "عضوية سنوية ذات قيمة، الخيار الأكثر اقتصادية.",
|
||||
"description": "وصف نوع العضوية، العضوية السنوية تشير إلى نوع العضوية التي يشتريها المستخدم كعضوية سنوية"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "اشترك في العضوية، وافتح جميع خدمات AI في الموقع.",
|
||||
|
||||
+24
-24
@@ -1,74 +1,74 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Empfohlen",
|
||||
"description": "Button-Text, der einen empfohlenen Button anzeigt"
|
||||
"description": "Button-Text, empfohlen bedeutet empfohlener Button"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Bestellliste",
|
||||
"description": "Text im Website-Menü, Bestellungen beziehen sich auf die Bestellungen von Dienstleistungen durch den Benutzer"
|
||||
"description": "Text im Website-Menü, Bestellung bedeutet die Bestellungen der Benutzer für Dienstleistungen"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Antragsliste",
|
||||
"description": "Text im Website-Menü, Anträge beziehen sich auf die Anträge des Benutzers zur Nutzung von Dienstleistungen"
|
||||
"description": "Text im Website-Menü, Antrag bedeutet die Anträge der Benutzer auf Dienstleistungen"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Benutzerprofil",
|
||||
"description": "Text im Website-Menü, Benutzerprofil bezieht sich auf das persönliche Profil des Benutzers"
|
||||
"description": "Text im Website-Menü, Benutzerprofil bedeutet das persönliche Profil des Benutzers"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Identitätsprüfung",
|
||||
"description": "Text im Website-Menü, Identitätsprüfung bezieht sich auf die Verifizierung der Identität des Benutzers"
|
||||
"description": "Text im Website-Menü, Identitätsprüfung bedeutet die Überprüfung der Benutzeridentität"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Antragsverwaltung",
|
||||
"description": "Text im Website-Menü, Antragsverwaltung bezieht sich auf die Verwaltung der Anträge des Benutzers"
|
||||
"description": "Text im Website-Menü, Antragsverwaltung bedeutet die Verwaltung der Benutzeranträge"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Empfohlene Einnahmen",
|
||||
"description": "Text im Website-Menü, empfohlene Einnahmen beziehen sich auf die Einnahmen, die der Benutzer durch Empfehlungen erzielt"
|
||||
"description": "Text im Website-Menü, empfohlene Einnahmen bedeutet die Einnahmen aus Benutzerempfehlungen"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Entwicklerplattform",
|
||||
"description": "Text im Website-Menü, Entwicklerplattform bezieht sich auf die Plattform für Entwickler"
|
||||
"description": "Text im Website-Menü, Entwicklerplattform bedeutet die Plattform für Entwickler"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Nutzungsprotokoll",
|
||||
"description": "Text im Website-Menü, Nutzungsprotokoll bezieht sich auf die Historie der Nutzung von API-Diensten durch den Benutzer"
|
||||
"description": "Text im Website-Menü, Nutzungsprotokoll bedeutet die Historie der Nutzung von API-Diensten durch den Benutzer"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Zugangsdaten",
|
||||
"description": "Text im Website-Menü, Zugangsdaten beziehen sich auf die Zugangsdaten für den Zugriff auf die API"
|
||||
"description": "Text im Website-Menü, Zugangsdaten bedeutet die Zugangsdaten für den Zugriff auf die API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Bestellverwaltung",
|
||||
"description": "Text im Website-Menü, Bestellverwaltung bezieht sich auf die Verwaltung der Bestellungen des Benutzers, Bestellungen beziehen sich auf die Bestellungen von Dienstleistungen durch den Benutzer"
|
||||
"description": "Text im Website-Menü, Bestellverwaltung bedeutet die Verwaltung der Benutzerbestellungen, Bestellung bedeutet die Bestellungen der Benutzer für Dienstleistungen"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Vertriebsverwaltung",
|
||||
"description": "Text im Website-Menü, Vertriebsverwaltung bezieht sich auf die Verwaltung des Vertriebsstatus des Benutzers, im Zusammenhang mit den empfohlenen Einnahmen des Benutzers"
|
||||
"description": "Text im Website-Menü, Vertriebsverwaltung bedeutet die Verwaltung des Vertriebsstatus der Benutzer, im Zusammenhang mit den empfohlenen Einnahmen der Benutzer"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Exklusiver Kundenservice-Support",
|
||||
"description": "Text auf der Startseite der Website, exklusiver Kundenservice-Support bedeutet, dass der Benutzer exklusiven Support durch den Kundenservice erhält"
|
||||
"description": "Text auf der Startseite der Website, exklusiver Kundenservice-Support bedeutet, dass Benutzer exklusiven Support vom Kundenservice erhalten können"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Vorrangiger Zugang zu neuen Funktionen",
|
||||
"description": "Text auf der Startseite der Website, vorrangiger Zugang zu neuen Funktionen bedeutet, dass der Benutzer neue Funktionen vorrangig nutzen kann"
|
||||
"description": "Text auf der Startseite der Website, vorrangiger Zugang zu neuen Funktionen bedeutet, dass Benutzer neue Funktionen vorrangig nutzen können"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Jetzt kaufen",
|
||||
"description": "Text auf der Startseite der Website, Kauf von Guthaben bedeutet, dass der Benutzer Guthaben kaufen kann"
|
||||
"message": "Kaufen",
|
||||
"description": "Text auf der Startseite der Website, Kauf von Guthaben bedeutet, dass Benutzer Guthaben kaufen können"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Jetzt abonnieren",
|
||||
"description": "Text auf der Startseite der Website, Abonnement bedeutet, dass der Benutzer ein Mitgliedschafts-Abonnement abschließen kann"
|
||||
"message": "Abonnieren",
|
||||
"description": "Text auf der Startseite der Website, Abonnement bedeutet, dass Benutzer ein Abonnement abschließen können"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Möchten Sie kein Mitgliedschafts-Abonnement? Sie können auch versuchen, Guthaben einzeln zu kaufen.",
|
||||
"description": "Text auf der Startseite der Website, kein Abonnement bedeutet, dass der Benutzer kein Mitgliedschafts-Abonnement möchte"
|
||||
"message": "Möchten Sie kein Abonnement? Sie können auch Guthaben einzeln kaufen.",
|
||||
"description": "Text auf der Startseite der Website, kein Abonnement bedeutet, dass der Benutzer kein Abonnement möchte"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Möchten Sie kein Guthaben kaufen? Sie können auch versuchen, ein Zeitpaket zu abonnieren.",
|
||||
"message": "Möchten Sie kein Guthaben kaufen? Sie können auch ein Abonnement abschließen.",
|
||||
"description": "Text auf der Startseite der Website, kein Guthaben kaufen bedeutet, dass der Benutzer kein Guthaben kaufen möchte"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
@@ -76,7 +76,7 @@
|
||||
"description": "Nachricht, die dem Benutzer angezeigt wird, wenn der Antrag nicht existiert."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Mitgliedschaft abonnieren, um mehr Vorteile zu genießen",
|
||||
"message": "Abonnieren Sie, um mehr Vorteile zu genießen",
|
||||
"description": "Nachricht, die dem Benutzer angezeigt wird, wenn er den Dienst abonniert."
|
||||
},
|
||||
"subscription.3days": {
|
||||
@@ -85,7 +85,7 @@
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Probemitgliedschaft, geeignet für kurzfristige Nutzung.",
|
||||
"description": "Beschreibung des Mitgliedschaftstyps, geeignet für kurzfristige Nutzung"
|
||||
"description": "Mitgliedschaftstyp, geeignet für kurzfristige Nutzung"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Wochenmitgliedschaft",
|
||||
@@ -112,7 +112,7 @@
|
||||
"description": "Beschreibung des Mitgliedschaftstyps, Jahresmitgliedschaft bedeutet, dass der Benutzer eine Jahresmitgliedschaft erworben hat"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Mitgliedschaft abonnieren, um alle AI-Dienste der Website freizuschalten.",
|
||||
"message": "Abonnieren Sie, um alle AI-Dienste der Website freizuschalten.",
|
||||
"description": "Mitgliedschaftseinführung bedeutet die Einführung der Mitgliedschaft"
|
||||
}
|
||||
}
|
||||
+44
-44
@@ -1,118 +1,118 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Προτεινόμενο",
|
||||
"description": "Κείμενο κουμπιού, Προτεινόμενο σημαίνει προτεινόμενο κουμπί"
|
||||
"description": "Κείμενο κουμπιού, προτεινόμενο σημαίνει το προτεινόμενο κουμπί"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Λίστα Παραγγελιών",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Παραγγελίες σημαίνει τις υπηρεσίες που αγόρασε ο χρήστης"
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, παραγγελίες σημαίνει τις παραγγελίες των χρηστών για υπηρεσίες"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Λίστα Αιτήσεων",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Αιτήσεις σημαίνει αιτήσεις χρήσης υπηρεσιών του χρήστη"
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, αιτήσεις σημαίνει τις αιτήσεις των χρηστών για υπηρεσίες"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Προφίλ Χρήστη",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Προφίλ Χρήστη σημαίνει προσωπικές πληροφορίες του χρήστη"
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, προφίλ χρήστη σημαίνει το προσωπικό προφίλ του χρήστη"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Επαλήθευση Ταυτότητας",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Επαλήθευση Ταυτότητας σημαίνει έλεγχος ταυτότητας χρήστη"
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, επαλήθευση ταυτότητας σημαίνει την επαλήθευση της ταυτότητας του χρήστη"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Διαχείριση Αιτήσεων",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Διαχείριση Αιτήσεων σημαίνει διαχείριση αιτήσεων του χρήστη"
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, διαχείριση αιτήσεων σημαίνει τη διαχείριση των αιτήσεων των χρηστών"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Κέρδη από Προτάσεις",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Κέρδη από Προτάσεις σημαίνει κέρδη από προτάσεις για άλλους χρήστες"
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, κέρδη από προτάσεις σημαίνει τα κέρδη από τις προτάσεις των χρηστών"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Πλατφόρμα Προγραμματιστή",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Πλατφόρμα Προγραμματιστή σημαίνει πλατφόρμα για προγραμματιστές"
|
||||
"message": "Πλατφόρμα Προγραμματιστών",
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, πλατφόρμα προγραμματιστών σημαίνει την πλατφόρμα για προγραμματιστές"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Αρχείο Χρήσης",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Αρχείο Χρήσης σημαίνει ιστορικό χρήσης υπηρεσιών API"
|
||||
"message": "Ιστορικό Χρήσης",
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, ιστορικό χρήσης σημαίνει το ιστορικό χρήσης των υπηρεσιών API από τον χρήστη"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Πιστοποιήσεις",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Πιστοποιήσεις σημαίνει διαπιστευτήρια για πρόσβαση API"
|
||||
"message": "Διαπιστευτήρια",
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, διαπιστευτήρια σημαίνει τα διαπιστευτήρια πρόσβασης στο API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Διαχείριση Παραγγελιών",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Διαχείριση Παραγγελιών σημαίνει διαχείριση παραγγελιών υπηρεσιών"
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, διαχείριση παραγγελιών σημαίνει τη διαχείριση των παραγγελιών των χρηστών, παραγγελίες σημαίνει τις παραγγελίες των χρηστών για υπηρεσίες"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Διαχείριση Διανομών",
|
||||
"description": "Κείμενο στο μενού της ιστοσελίδας, Διαχείριση Διανομών σημαίνει διαχείριση των καταστάσεων διανομής"
|
||||
"message": "Διαχείριση Διανομής",
|
||||
"description": "Κείμενο στο μενού του ιστότοπου, διαχείριση διανομής σημαίνει τη διαχείριση της κατάστασης διανομής των χρηστών, σχετίζεται με τα κέρδη από τις προτάσεις των χρηστών"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Αποκλειστική Υποστήριξη Πελατών",
|
||||
"description": "Κείμενο στην αρχική σελίδα, Αποκλειστική Υποστήριξη Πελατών σημαίνει ότι ο χρήστης έχει πρόσβαση σε αποκλειστική υποστήριξη"
|
||||
"description": "Κείμενο στην αρχική σελίδα του ιστότοπου, αποκλειστική υποστήριξη πελατών σημαίνει ότι ο χρήστης μπορεί να λάβει αποκλειστική υποστήριξη πελατών"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Προτεραιότητα Δοκιμής Νέων Λειτουργιών",
|
||||
"description": "Κείμενο στην αρχική σελίδα, Προτεραιότητα Δοκιμής Νέων Λειτουργιών σημαίνει ότι ο χρήστης έχει πρόσβαση πρώτα σε νέες λειτουργίες"
|
||||
"message": "Προτεραιότητα στη Δοκιμή Νέων Λειτουργιών",
|
||||
"description": "Κείμενο στην αρχική σελίδα του ιστότοπου, προτεραιότητα στη δοκιμή νέων λειτουργιών σημαίνει ότι ο χρήστης μπορεί να δοκιμάσει νέες λειτουργίες με προτεραιότητα"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Αγοράστε Επιπλέον",
|
||||
"description": "Κείμενο στην αρχική σελίδα, Αγοράστε επιπλέον κλείνει την αναφορά στην αγορά περισσοτέρων δυνατοτήτων"
|
||||
"message": "Αγοράστε Περισσότερα",
|
||||
"description": "Κείμενο στην αρχική σελίδα του ιστότοπου, αγοράστε περισσότερα σημαίνει ότι ο χρήστης μπορεί να αγοράσει επιπλέον ποσότητα"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Εγγραφείτε",
|
||||
"description": "Κείμενο στην αρχική σελίδα, Εγγραφή σημαίνει ότι ο χρήστης μπορεί να εγγραφεί"
|
||||
"description": "Κείμενο στην αρχική σελίδα του ιστότοπου, εγγραφείτε σημαίνει ότι ο χρήστης μπορεί να εγγραφεί ως μέλος"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Δεν θέλετε εγγραφή σε πλήρες πακέτο; Δοκιμάστε να αγοράσετε ξεχωριστά.",
|
||||
"description": "Κείμενο στην αρχική σελίδα, Δεν θέλετε εγγραφή εκφράζει τη δυνατότητα για ξεχωριστές αγορές"
|
||||
"message": "Δεν θέλετε να εγγραφείτε ως μέλος; Μπορείτε επίσης να δοκιμάσετε να αγοράσετε επιπλέον ποσότητα.",
|
||||
"description": "Κείμενο στην αρχική σελίδα του ιστότοπου, δεν θέλετε να εγγραφείτε σημαίνει ότι ο χρήστης δεν θέλει να εγγραφεί ως μέλος"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Δεν θέλετε να αγοράσετε επιπλέον; Δοκιμάστε πακέτα χρόνου εγγραφής.",
|
||||
"description": "Κείμενο στην αρχική σελίδα, Δεν θέλετε να αγοράσετε επιπλέον εκφράζει άλλη επιλογή για τους χρήστες"
|
||||
"message": "Δεν θέλετε να αγοράσετε επιπλέον ποσότητα; Μπορείτε επίσης να δοκιμάσετε να εγγραφείτε ως μέλος.",
|
||||
"description": "Κείμενο στην αρχική σελίδα του ιστότοπου, δεν θέλετε να αγοράσετε επιπλέον ποσότητα σημαίνει ότι ο χρήστης δεν θέλει να αγοράσει επιπλέον ποσότητα"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "Η αίτηση δεν βρέθηκε",
|
||||
"description": "Όταν μια αίτηση δεν υπάρχει, εμφανίζεται αυτό το μήνυμα στους χρήστες."
|
||||
"description": "Μήνυμα που εμφανίζεται στον χρήστη όταν η αίτηση δεν υπάρχει."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Εγγραφείτε για περισσότερα προνόμια",
|
||||
"description": "Μήνυμα που εμφανίζεται όταν ο χρήστης εγγράφεται για υπηρεσίες"
|
||||
"message": "Εγγραφείτε ως μέλος για περισσότερα προνόμια",
|
||||
"description": "Μήνυμα που εμφανίζεται στον χρήστη όταν εγγράφεται στην υπηρεσία."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "3 Ημέρες Δοκιμαστική Εγγραφή",
|
||||
"description": "Τύπος συνδρομής, 3 Ημέρες Δοκιμαστική Εγγραφή"
|
||||
"message": "3 Ημέρες Δοκιμαστική Συνδρομή",
|
||||
"description": "Τύπος συνδρομής, 3 ημέρες δοκιμαστική συνδρομή"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Δοκιμαστική συνδρομή, κατάλληλη για χρήση μικρής διάρκειας.",
|
||||
"description": "Περιγραφή συνδρομής, κατάλληλη για μικρή διάρκεια"
|
||||
"message": "Δοκιμαστική συνδρομή, κατάλληλη για βραχυπρόθεσμη χρήση.",
|
||||
"description": "Περιγραφή τύπου συνδρομής, κατάλληλη για βραχυπρόθεσμη χρήση"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Εβδομαδιαία Συνδρομή",
|
||||
"description": "Τύπος συνδρομής, Εβδομαδιαία Συνδρομή σημαίνει συνδρομή για μία εβδομάδα"
|
||||
"description": "Τύπος συνδρομής, εβδομαδιαία συνδρομή σημαίνει ότι ο χρήστης αγοράζει εβδομαδιαία συνδρομή"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Μηνιαία Συνδρομή",
|
||||
"description": "Τύπος συνδρομής, Μηνιαία Συνδρομή σημαίνει συνδρομή για έναν μήνα"
|
||||
"description": "Τύπος συνδρομής, μηνιαία συνδρομή σημαίνει ότι ο χρήστης αγοράζει μηνιαία συνδρομή"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Ετήσια Συνδρομή",
|
||||
"description": "Τύπος συνδρομής, Ετήσια Συνδρομή σημαίνει συνδρομή για έναν χρόνο"
|
||||
"description": "Τύπος συνδρομής, ετήσια συνδρομή σημαίνει ότι ο χρήστης αγοράζει ετήσια συνδρομή"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Δοκιμαστική Εβδομαδιαία Συνδρομή, κατάλληλη για χρήση μικρής διάρκειας.",
|
||||
"description": "Περιγραφή συνδρομής εβδομάδας"
|
||||
"message": "Δοκιμαστική εβδομαδιαία συνδρομή, κατάλληλη για βραχυπρόθεσμη χρήση.",
|
||||
"description": "Περιγραφή τύπου συνδρομής, εβδομαδιαία συνδρομή σημαίνει ότι ο χρήστης αγοράζει εβδομαδιαία συνδρομή"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Ευέλικτη Μηνιαία Συνδρομή, κατάλληλη για μεγαλύτερη χρήση.",
|
||||
"description": "Περιγραφή συνδρομής μήνα"
|
||||
"message": "Ευέλικτη μηνιαία συνδρομή, κατάλληλη για μακροπρόθεσμη χρήση.",
|
||||
"description": "Περιγραφή τύπου συνδρομής, μηνιαία συνδρομή σημαίνει ότι ο χρήστης αγοράζει μηνιαία συνδρομή"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Πολύτιμη Ετήσια Συνδρομή, η πιο συμφέρουσα επιλογή.",
|
||||
"description": "Περιγραφή συνδρομής έτους"
|
||||
"message": "Πολύτιμη ετήσια συνδρομή, η πιο οικονομική επιλογή.",
|
||||
"description": "Περιγραφή τύπου συνδρομής, ετήσια συνδρομή σημαίνει ότι ο χρήστης αγοράζει ετήσια συνδρομή"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Εγγραφείτε για να ξεκλειδώσετε όλες τις υπηρεσίες AI του ιστότοπου.",
|
||||
"description": "Εισαγωγή για τη συνδρομή"
|
||||
"message": "Εγγραφείτε ως μέλος για να ξεκλειδώσετε όλες τις υπηρεσίες AI του ιστότοπου.",
|
||||
"description": "Εισαγωγή συνδρομής σημαίνει την εισαγωγή της συνδρομής"
|
||||
}
|
||||
}
|
||||
+12
-12
@@ -64,11 +64,11 @@
|
||||
"description": "Text on the website homepage, subscribe to membership indicates that the user can subscribe to membership"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Don't want to subscribe to site-wide membership? You can also try purchasing quota separately.",
|
||||
"message": "Don't want to subscribe to a periodic membership? You can also try purchasing quota separately.",
|
||||
"description": "Text on the website homepage, don't want to subscribe indicates that the user does not want to subscribe to membership"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Don't want to purchase quota? You can also try subscribing to a time package.",
|
||||
"message": "Don't want to purchase quota? You can also try subscribing to a periodic membership.",
|
||||
"description": "Text on the website homepage, don't want to purchase quota indicates that the user does not want to purchase quota"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
@@ -76,8 +76,8 @@
|
||||
"description": "Message displayed to the user when the application does not exist."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Subscribe to Membership, Enjoy More Benefits",
|
||||
"description": "Message displayed to the user when subscribing to the service."
|
||||
"message": "Subscribe to Membership for More Benefits",
|
||||
"description": "Message displayed to the user when subscribing to services."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "3-Day Trial Membership",
|
||||
@@ -89,30 +89,30 @@
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Weekly Membership",
|
||||
"description": "Membership type, weekly membership indicates the user's purchased membership type is weekly"
|
||||
"description": "Membership type, weekly membership indicates the user's purchase of a weekly membership"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Monthly Membership",
|
||||
"description": "Membership type, monthly membership indicates the user's purchased membership type is monthly"
|
||||
"description": "Membership type, monthly membership indicates the user's purchase of a monthly membership"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Yearly Membership",
|
||||
"description": "Membership type, yearly membership indicates the user's purchased membership type is yearly"
|
||||
"description": "Membership type, yearly membership indicates the user's purchase of a yearly membership"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Trial weekly membership, suitable for short-term use.",
|
||||
"description": "Description of membership type, weekly membership indicates the user's purchased membership type is weekly"
|
||||
"description": "Description of membership type, weekly membership indicates the user's purchase of a weekly membership"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Flexible monthly membership, suitable for long-term use.",
|
||||
"description": "Description of membership type, monthly membership indicates the user's purchased membership type is monthly"
|
||||
"description": "Description of membership type, monthly membership indicates the user's purchase of a monthly membership"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Value yearly membership, the most cost-effective choice.",
|
||||
"description": "Description of membership type, yearly membership indicates the user's purchased membership type is yearly"
|
||||
"description": "Description of membership type, yearly membership indicates the user's purchase of a yearly membership"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Subscribe to membership, unlock all AI services on the site.",
|
||||
"description": "Membership introduction indicates the introduction of the membership"
|
||||
"message": "Subscribe to membership to unlock all AI services on the site.",
|
||||
"description": "Membership introduction indicates the introduction of membership"
|
||||
}
|
||||
}
|
||||
+43
-43
@@ -1,118 +1,118 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Recomendado",
|
||||
"description": "Texto del botón, recomendado significa un botón sugerido."
|
||||
"description": "Texto del botón, recomendado indica el botón sugerido"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Lista de pedidos",
|
||||
"description": "Texto en el menú del sitio web, pedido se refiere a las órdenes de compra de servicios del usuario."
|
||||
"description": "Texto en el menú del sitio web, pedidos se refiere a las órdenes de compra de servicios por parte del usuario"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Lista de solicitudes",
|
||||
"description": "Texto en el menú del sitio web, solicitud se refiere a las aplicaciones para servicios del usuario."
|
||||
"description": "Texto en el menú del sitio web, solicitudes se refiere a las aplicaciones de uso de servicios por parte del usuario"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Perfil de usuario",
|
||||
"description": "Texto en el menú del sitio web, perfil de usuario se refiere al perfil personal del usuario."
|
||||
"description": "Texto en el menú del sitio web, perfil de usuario se refiere al perfil personal del usuario"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Verificación de identidad",
|
||||
"description": "Texto en el menú del sitio web, verificación de identidad se refiere a la validación de la identidad del usuario."
|
||||
"description": "Texto en el menú del sitio web, verificación de identidad se refiere a la verificación de la identidad del usuario"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Gestión de solicitudes",
|
||||
"description": "Texto en el menú del sitio web, gestión de solicitudes se refiere al manejo de las aplicaciones del usuario."
|
||||
"description": "Texto en el menú del sitio web, gestión de solicitudes se refiere a la gestión de las aplicaciones del usuario"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Ingresos por recomendaciones",
|
||||
"description": "Texto en el menú del sitio web, ingresos por recomendaciones se refiere a las ganancias obtenidas por las recomendaciones del usuario."
|
||||
"message": "Ingresos por recomendación",
|
||||
"description": "Texto en el menú del sitio web, ingresos por recomendación se refiere a los ingresos generados por las recomendaciones del usuario"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Plataforma de desarrolladores",
|
||||
"description": "Texto en el menú del sitio web, plataforma de desarrolladores se refiere al espacio dedicado a los desarrolladores."
|
||||
"description": "Texto en el menú del sitio web, plataforma de desarrolladores se refiere a la plataforma para desarrolladores"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Historial de uso",
|
||||
"description": "Texto en el menú del sitio web, historial de uso se refiere al registro del uso de servicios API por parte del usuario."
|
||||
"message": "Registro de uso",
|
||||
"description": "Texto en el menú del sitio web, registro de uso se refiere al historial de uso de servicios API por parte del usuario"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Credenciales",
|
||||
"description": "Texto en el menú del sitio web, credenciales se refiere a las credenciales para acceder a las APIs."
|
||||
"description": "Texto en el menú del sitio web, credenciales se refiere a las credenciales de acceso a la API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Gestión de pedidos",
|
||||
"description": "Texto en el menú del sitio web, gestión de pedidos se refiere al manejo de las órdenes de compra de servicios por parte del usuario."
|
||||
"description": "Texto en el menú del sitio web, gestión de pedidos se refiere a la gestión de las órdenes del usuario, pedidos se refiere a las órdenes de compra de servicios por parte del usuario"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Gestión de distribución",
|
||||
"description": "Texto en el menú del sitio web, gestión de distribución se refiere al manejo del estado de distribución del usuario relacionado con las ganancias por recomendaciones."
|
||||
"description": "Texto en el menú del sitio web, gestión de distribución se refiere a la gestión del estado de distribución del usuario, relacionado con los ingresos por recomendación del usuario"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Soporte exclusivo de atención al cliente",
|
||||
"description": "Texto en la página principal del sitio web, soporte exclusivo de atención al cliente significa que el usuario puede obtener ayuda personalizada."
|
||||
"message": "Soporte de atención al cliente exclusivo",
|
||||
"description": "Texto en la página de inicio del sitio web, soporte de atención al cliente exclusivo indica que el usuario puede obtener soporte de atención al cliente exclusivo"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Acceso prioritario a nuevas funciones",
|
||||
"description": "Texto en la página principal del sitio web, acceso prioritario a nuevas funciones significa que el usuario puede probar funcionalidades nuevas primero."
|
||||
"description": "Texto en la página de inicio del sitio web, acceso prioritario a nuevas funciones indica que el usuario puede experimentar nuevas funciones de manera prioritaria"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Comprar ahora",
|
||||
"description": "Texto en la página principal del sitio web, comprar extra significa que el usuario puede adquirir más cuotas."
|
||||
"message": "Comprar",
|
||||
"description": "Texto en la página de inicio del sitio web, comprar crédito indica que el usuario puede comprar crédito"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Suscribirse ahora",
|
||||
"description": "Texto en la página principal del sitio web, suscribirse significa que el usuario puede adquirir una membresía."
|
||||
"message": "Suscribirse",
|
||||
"description": "Texto en la página de inicio del sitio web, suscribirse a la membresía indica que el usuario puede suscribirse a la membresía"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "¿No quieres suscribirte a la membresía completa? También puedes adquirir cuotas individuales.",
|
||||
"description": "Texto en la página principal del sitio web, no querer suscribirse significa que el usuario no desea adquirir la membresía completa."
|
||||
"message": "¿No quieres suscribirte a la membresía periódica? También puedes intentar comprar crédito por separado.",
|
||||
"description": "Texto en la página de inicio del sitio web, no querer suscribirse indica que el usuario no quiere suscribirse a la membresía"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "¿No quieres comprar cuotas? También puedes probar los paquetes de suscripción por tiempo.",
|
||||
"description": "Texto en la página principal del sitio web, no querer comprar cuotas significa que el usuario no desea adquirir cuotas adicionales."
|
||||
"message": "¿No quieres comprar crédito? También puedes intentar suscribirte a la membresía periódica.",
|
||||
"description": "Texto en la página de inicio del sitio web, no querer comprar crédito indica que el usuario no quiere comprar crédito"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "La solicitud no se encuentra",
|
||||
"description": "Mensaje mostrado al usuario si no se encuentra la solicitud."
|
||||
"message": "Solicitud no encontrada",
|
||||
"description": "Mensaje mostrado al usuario cuando la solicitud no existe."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Suscríbete para disfrutar de más beneficios",
|
||||
"description": "Mensaje mostrado al usuario al suscribirse a un servicio."
|
||||
"message": "Suscríbete a la membresía y disfruta de más beneficios",
|
||||
"description": "Mensaje mostrado al usuario cuando se suscribe al servicio."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "Membresía de 3 días",
|
||||
"description": "Tipo de membresía, membresía de 3 días."
|
||||
"description": "Tipo de membresía, membresía de 3 días"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Membresía de prueba, ideal para uso a corto plazo.",
|
||||
"description": "Tipo de membresía diseñada para un uso a corto plazo."
|
||||
"message": "Membresía de prueba, adecuada para uso a corto plazo.",
|
||||
"description": "Descripción del tipo de membresía, adecuada para uso a corto plazo"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Membresía semanal",
|
||||
"description": "Tipo de membresía, membresía semanal se refiere a la suscripción semanal adquirida por el usuario."
|
||||
"description": "Tipo de membresía, membresía semanal indica que el tipo de membresía comprada por el usuario es semanal"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Membresía mensual",
|
||||
"description": "Tipo de membresía, membresía mensual se refiere a la suscripción mensual adquirida por el usuario."
|
||||
"description": "Tipo de membresía, membresía mensual indica que el tipo de membresía comprada por el usuario es mensual"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Membresía anual",
|
||||
"description": "Tipo de membresía, membresía anual se refiere a la suscripción anual adquirida por el usuario."
|
||||
"description": "Tipo de membresía, membresía anual indica que el tipo de membresía comprada por el usuario es anual"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Membresía semanal de prueba, ideal para uso a corto plazo.",
|
||||
"description": "Descripción del tipo de membresía, membresía semanal se refiere a una suscripción semanal."
|
||||
"message": "Membresía semanal de prueba, adecuada para uso a corto plazo.",
|
||||
"description": "Descripción del tipo de membresía, membresía semanal indica que el tipo de membresía comprada por el usuario es semanal"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Membresía mensual flexible, ideal para uso a largo plazo.",
|
||||
"description": "Descripción del tipo de membresía, membresía mensual diseñada para uso a largo plazo."
|
||||
"message": "Membresía mensual flexible, adecuada para uso a largo plazo.",
|
||||
"description": "Descripción del tipo de membresía, membresía mensual indica que el tipo de membresía comprada por el usuario es mensual"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Membresía anual económica, la mejor opción.",
|
||||
"description": "Descripción del tipo de membresía, membresía anual como la opción más rentable."
|
||||
"message": "Membresía anual de gran valor, la opción más económica.",
|
||||
"description": "Descripción del tipo de membresía, membresía anual indica que el tipo de membresía comprada por el usuario es anual"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Suscríbete para desbloquear todos los servicios de IA del sitio.",
|
||||
"description": "Introducción a la membresía que explica su propósito."
|
||||
"message": "Suscríbete a la membresía y desbloquea todos los servicios de IA del sitio.",
|
||||
"description": "Introducción a la membresía indica la introducción de la membresía"
|
||||
}
|
||||
}
|
||||
+39
-39
@@ -1,82 +1,82 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Suositeltu",
|
||||
"description": "Painikkeen teksti, joka tarkoittaa suositeltua painiketta"
|
||||
"description": "Nappiteksti, joka tarkoittaa suositeltua nappia"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Tilauslista",
|
||||
"description": "Verkkosivuston valikon teksti, tilaus tarkoittaa käyttäjän ostamien palveluiden tilausta"
|
||||
"description": "Teksti verkkosivuston valikossa, tilaus tarkoittaa käyttäjän ostopalveluiden tilausta"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Hakemuslista",
|
||||
"description": "Verkkosivuston valikon teksti, hakemus tarkoittaa käyttäjän palveluiden käyttöä"
|
||||
"description": "Teksti verkkosivuston valikossa, hakemus tarkoittaa käyttäjän palveluiden käyttöön liittyviä hakemuksia"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Käyttäjäprofiili",
|
||||
"description": "Verkkosivuston valikon teksti, käyttäjäprofiili tarkoittaa käyttäjän henkilökohtaista profiilia"
|
||||
"description": "Teksti verkkosivuston valikossa, käyttäjäprofiili tarkoittaa käyttäjän henkilöprofiilia"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Henkilöllisyyden vahvistus",
|
||||
"description": "Verkkosivuston valikon teksti, henkilöllisyyden vahvistus tarkoittaa käyttäjän henkilöllisyyden vahvistamista"
|
||||
"description": "Teksti verkkosivuston valikossa, henkilöllisyyden vahvistus tarkoittaa käyttäjän henkilöllisyyden tarkistusta"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Hakemusten hallinta",
|
||||
"description": "Verkkosivuston valikon teksti, hakemusten hallinta tarkoittaa käyttäjän hakemusten hallintaa"
|
||||
"description": "Teksti verkkosivuston valikossa, hakemusten hallinta tarkoittaa käyttäjän hakemusten hallintaa"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Suositustulot",
|
||||
"description": "Verkkosivuston valikon teksti, suositustulot tarkoittaa käyttäjän suosituksista saatuja tuloja"
|
||||
"message": "Suositustuotot",
|
||||
"description": "Teksti verkkosivuston valikossa, suositustuotot tarkoittaa käyttäjän suosittelujen tuottoja"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Kehittäjäalusta",
|
||||
"description": "Verkkosivuston valikon teksti, kehittäjäalusta tarkoittaa kehittäjien alustaa"
|
||||
"description": "Teksti verkkosivuston valikossa, kehittäjäalusta tarkoittaa kehittäjien alustaa"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Käyttöhistoria",
|
||||
"description": "Verkkosivuston valikon teksti, käyttöhistoria tarkoittaa käyttäjän API-palveluiden käyttöä"
|
||||
"description": "Teksti verkkosivuston valikossa, käyttöhistoria tarkoittaa käyttäjän API-palveluiden käyttöä"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Tunnukset",
|
||||
"description": "Verkkosivuston valikon teksti, tunnukset tarkoittaa API:n käyttöön tarvittavia tunnuksia"
|
||||
"message": "Tunnistetiedot",
|
||||
"description": "Teksti verkkosivuston valikossa, tunnistetiedot tarkoittaa API:n käyttöön liittyviä tunnuksia"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Tilausten hallinta",
|
||||
"description": "Verkkosivuston valikon teksti, tilausten hallinta tarkoittaa käyttäjän tilausten hallintaa, tilaus tarkoittaa käyttäjän ostamien palveluiden tilausta"
|
||||
"description": "Teksti verkkosivuston valikossa, tilausten hallinta tarkoittaa käyttäjän tilausten hallintaa, tilaus tarkoittaa käyttäjän ostopalveluiden tilausta"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Jakelun hallinta",
|
||||
"description": "Verkkosivuston valikon teksti, jakelun hallinta tarkoittaa käyttäjän jakelutilan hallintaa, liittyy käyttäjän suositustuloihin"
|
||||
"description": "Teksti verkkosivuston valikossa, jakelun hallinta tarkoittaa käyttäjän jakelutilanteen hallintaa, liittyy käyttäjän suositustuottoihin"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Oma asiakaspalvelu tuki",
|
||||
"description": "Verkkosivuston etusivun teksti, oma asiakaspalvelu tuki tarkoittaa, että käyttäjä voi saada omaa asiakaspalvelutukea"
|
||||
"message": "Erityinen asiakaspalvelutuki vastausten saamiseksi",
|
||||
"description": "Verkkosivuston etusivun teksti, erityinen asiakaspalvelutuki vastausten saamiseksi tarkoittaa käyttäjän mahdollisuutta saada erityistä asiakaspalvelutukea"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Etusijalla uudet ominaisuudet",
|
||||
"description": "Verkkosivuston etusivun teksti, etusijalla uudet ominaisuudet tarkoittaa, että käyttäjä voi kokeilla uusia ominaisuuksia etusijalla"
|
||||
"message": "Etusijalla uusien ominaisuuksien kokeilu",
|
||||
"description": "Verkkosivuston etusivun teksti, etusijalla uusien ominaisuuksien kokeilu tarkoittaa käyttäjän mahdollisuutta kokeilla uusia ominaisuuksia ensimmäisenä"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Osta lisää",
|
||||
"description": "Verkkosivuston etusivun teksti, osto tarkoittaa, että käyttäjä voi ostaa lisää"
|
||||
"description": "Verkkosivuston etusivun teksti, osta lisää tarkoittaa, että käyttäjä voi ostaa lisää käyttöoikeuksia"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Tilaa",
|
||||
"description": "Verkkosivuston etusivun teksti, tilaus tarkoittaa, että käyttäjä voi tilata jäsenyyden"
|
||||
"description": "Verkkosivuston etusivun teksti, tilaa jäsenyys tarkoittaa, että käyttäjä voi tilata jäsenyyden"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Etkö halua tilata koko sivuston jäsenyyttä? Voit myös kokeilla ostaa erikseen.",
|
||||
"description": "Verkkosivuston etusivun teksti, ei halua tilata tarkoittaa, että käyttäjä ei halua tilata jäsenyyttä"
|
||||
"message": "Etkö halua tilata jäsenyyttä? Voit myös kokeilla ostaa käyttöoikeuksia erikseen.",
|
||||
"description": "Verkkosivuston etusivun teksti, etkö halua tilata tarkoittaa, että käyttäjä ei halua tilata jäsenyyttä"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Etkö halua ostaa lisää? Voit myös kokeilla tilata aikapaketteja.",
|
||||
"description": "Verkkosivuston etusivun teksti, ei halua ostaa lisää tarkoittaa, että käyttäjä ei halua ostaa lisää"
|
||||
"message": "Etkö halua ostaa käyttöoikeuksia? Voit myös kokeilla tilata jäsenyyden.",
|
||||
"description": "Verkkosivuston etusivun teksti, etkö halua ostaa käyttöoikeuksia tarkoittaa käyttäjän ei halua ostaa lisää käyttöoikeuksia"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "Hakemusta ei löydy",
|
||||
"description": "Viesti, joka näytetään käyttäjälle, kun hakemusta ei löydy."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Tilaa jäsenyys, nauti enemmän eduista",
|
||||
"message": "Tilaa jäsenyys, nauti lisää eduista",
|
||||
"description": "Viesti, joka näytetään käyttäjälle, kun hän tilaa palvelun."
|
||||
},
|
||||
"subscription.3days": {
|
||||
@@ -88,31 +88,31 @@
|
||||
"description": "Jäsenyyden tyyppi, sopii lyhytaikaiseen käyttöön"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Viikkokäyttäjä",
|
||||
"description": "Jäsenyyden tyyppi, viikkokäyttäjä tarkoittaa, että käyttäjä on ostanut viikkokäyttäjäjäsenyyden"
|
||||
"message": "Viikkotilaus",
|
||||
"description": "Jäsenyyden tyyppi, viikkotilaus tarkoittaa, että käyttäjä ostaa viikkoluontoisen jäsenyyden"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Kuukausijäsenyys",
|
||||
"description": "Jäsenyyden tyyppi, kuukausijäsenyys tarkoittaa, että käyttäjä on ostanut kuukausijäsenyyden"
|
||||
"message": "Kuukausitilaus",
|
||||
"description": "Jäsenyyden tyyppi, kuukausitilaus tarkoittaa, että käyttäjä ostaa kuukausiluontoisen jäsenyyden"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Vuosijäsenyys",
|
||||
"description": "Jäsenyyden tyyppi, vuosijäsenyys tarkoittaa, että käyttäjä on ostanut vuosijäsenyyden"
|
||||
"message": "Vuositilaus",
|
||||
"description": "Jäsenyyden tyyppi, vuositilaus tarkoittaa, että käyttäjä ostaa vuosiluontoisen jäsenyyden"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Kokeilujäsenyys viikoksi, sopii lyhytaikaiseen käyttöön.",
|
||||
"description": "Jäsenyyden tyypin kuvaus, viikkokäyttäjä tarkoittaa, että käyttäjä on ostanut viikkokäyttäjäjäsenyyden"
|
||||
"message": "Kokeile viikkotilausta, sopii lyhytaikaiseen käyttöön.",
|
||||
"description": "Jäsenyyden tyypin kuvaus, viikkotilaus tarkoittaa, että käyttäjä ostaa viikkoluontoisen jäsenyyden"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Joustava kuukausijäsenyys, sopii pitkäaikaiseen käyttöön.",
|
||||
"description": "Jäsenyyden tyypin kuvaus, kuukausijäsenyys tarkoittaa, että käyttäjä on ostanut kuukausijäsenyyden"
|
||||
"message": "Joustava kuukausitilaus, sopii pitkäaikaiseen käyttöön.",
|
||||
"description": "Jäsenyyden tyypin kuvaus, kuukausitilaus tarkoittaa, että käyttäjä ostaa kuukausiluontoisen jäsenyyden"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Edullinen vuosijäsenyys, kannattavin valinta.",
|
||||
"description": "Jäsenyyden tyypin kuvaus, vuosijäsenyys tarkoittaa, että käyttäjä on ostanut vuosijäsenyyden"
|
||||
"message": "Edullinen vuositilaus, paras valinta.",
|
||||
"description": "Jäsenyyden tyypin kuvaus, vuositilaus tarkoittaa, että käyttäjä ostaa vuosiluontoisen jäsenyyden"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Tilaa jäsenyys, avaa kaikki AI-palvelut koko sivustolla.",
|
||||
"description": "Jäsenyyden esittely tarkoittaa jäsenyyden esittelyä"
|
||||
"message": "Tilaa jäsenyys ja avaa kaikki AI-palvelut sivustolla.",
|
||||
"description": "Jäsenyysesittely tarkoittaa jäsenyyden esittelyä"
|
||||
}
|
||||
}
|
||||
+44
-44
@@ -1,118 +1,118 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Recommandé",
|
||||
"description": "Bouton texte, recommandé indique un bouton de recommandation"
|
||||
"description": "Texte du bouton, recommandé signifie le bouton recommandé"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Liste des commandes",
|
||||
"description": "Texte dans le menu du site, liste des commandes représente les commandes des utilisateurs pour les services achetés"
|
||||
"description": "Texte dans le menu du site, commande signifie les commandes d'achat de services par l'utilisateur"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Liste des candidatures",
|
||||
"description": "Texte dans le menu du site, liste des candidatures représente les demandes d'utilisation des services par les utilisateurs"
|
||||
"message": "Liste des demandes",
|
||||
"description": "Texte dans le menu du site, demande signifie les demandes d'utilisation de services par l'utilisateur"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Profil utilisateur",
|
||||
"description": "Texte dans le menu du site, profil utilisateur représente les informations personnelles de l'utilisateur"
|
||||
"description": "Texte dans le menu du site, profil utilisateur signifie le profil personnel de l'utilisateur"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Vérification d'identité",
|
||||
"description": "Texte dans le menu du site, vérification d'identité représente la vérification de l'identité de l'utilisateur"
|
||||
"description": "Texte dans le menu du site, vérification d'identité signifie la vérification de l'identité de l'utilisateur"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Gestion des candidatures",
|
||||
"description": "Texte dans le menu du site, gestion des candidatures représente la gestion des demandes des utilisateurs"
|
||||
"message": "Gestion des demandes",
|
||||
"description": "Texte dans le menu du site, gestion des demandes signifie la gestion des demandes de l'utilisateur"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Revenus de recommandation",
|
||||
"description": "Texte dans le menu du site, revenus de recommandation représente les gains de l'utilisateur via les recommandations"
|
||||
"description": "Texte dans le menu du site, revenus de recommandation signifie les revenus de recommandation de l'utilisateur"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Plateforme développeur",
|
||||
"description": "Texte dans le menu du site, plateforme développeur représente la plateforme pour les développeurs"
|
||||
"description": "Texte dans le menu du site, plateforme développeur signifie la plateforme pour les développeurs"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Historique d'utilisation",
|
||||
"description": "Texte dans le menu du site, historique d'utilisation représente l'historique des services API utilisés par l'utilisateur"
|
||||
"description": "Texte dans le menu du site, historique d'utilisation signifie l'historique d'utilisation des services API par l'utilisateur"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Identifiants",
|
||||
"description": "Texte dans le menu du site, identifiants représente les informations d'authentification pour accéder à l'API"
|
||||
"description": "Texte dans le menu du site, identifiants signifie les identifiants pour accéder à l'API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Gestion des commandes",
|
||||
"description": "Texte dans le menu du site, gestion des commandes représente la gestion des commandes des utilisateurs, une commande représente un achat de service"
|
||||
"description": "Texte dans le menu du site, gestion des commandes signifie la gestion des commandes de l'utilisateur, commande signifie les commandes d'achat de services par l'utilisateur"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Gestion de la distribution",
|
||||
"description": "Texte dans le menu du site, gestion de la distribution représente la gestion du statut de distribution de l'utilisateur, lié aux gains des recommandations"
|
||||
"description": "Texte dans le menu du site, gestion de la distribution signifie la gestion de l'état de distribution de l'utilisateur, lié aux revenus de recommandation de l'utilisateur"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Support dédié avec service client",
|
||||
"description": "Texte sur la page d'accueil du site, support dédié indique que l'utilisateur peut obtenir un support personnalisé"
|
||||
"message": "Support client exclusif",
|
||||
"description": "Texte sur la page d'accueil du site, support client exclusif signifie que l'utilisateur peut obtenir un support client exclusif"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Expérience prioritaire des nouvelles fonctionnalités",
|
||||
"description": "Texte sur la page d'accueil du site, expérience prioritaire signifie que l'utilisateur peut tester de nouvelles fonctionnalités en priorité"
|
||||
"message": "Accès prioritaire aux nouvelles fonctionnalités",
|
||||
"description": "Texte sur la page d'accueil du site, accès prioritaire aux nouvelles fonctionnalités signifie que l'utilisateur peut accéder en priorité aux nouvelles fonctionnalités"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Acheter maintenant",
|
||||
"description": "Texte sur la page d'accueil du site, acheter maintenant permet à l'utilisateur d'acheter des crédits supplémentaires"
|
||||
"message": "Acheter",
|
||||
"description": "Texte sur la page d'accueil du site, acheter signifie que l'utilisateur peut acheter des crédits"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Abonnez-vous",
|
||||
"description": "Texte sur la page d'accueil du site, abonnez-vous permet à l'utilisateur de souscrire à un abonnement"
|
||||
"message": "S'abonner",
|
||||
"description": "Texte sur la page d'accueil du site, s'abonner signifie que l'utilisateur peut s'abonner à un abonnement"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Vous ne souhaitez pas vous abonner à un abonnement complet ? Vous pouvez aussi acheter des crédits séparément.",
|
||||
"description": "Texte sur la page d'accueil du site, ne pas s'abonner signifie que l'utilisateur ne veut pas souscrire à l'abonnement complet"
|
||||
"message": "Vous ne souhaitez pas vous abonner à un abonnement périodique ? Vous pouvez également essayer d'acheter des crédits séparément.",
|
||||
"description": "Texte sur la page d'accueil du site, ne pas vouloir s'abonner signifie que l'utilisateur ne souhaite pas s'abonner à un abonnement"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Vous ne souhaitez pas acheter de crédits supplémentaires ? Vous pouvez aussi essayer un abonnement de durée.",
|
||||
"description": "Texte sur la page d'accueil du site, ne pas acheter de crédits signifie que l'utilisateur ne souhaite pas acheter des crédits supplémentaires"
|
||||
"message": "Vous ne souhaitez pas acheter de crédits ? Vous pouvez également essayer de vous abonner à un abonnement périodique.",
|
||||
"description": "Texte sur la page d'accueil du site, ne pas vouloir acheter de crédits signifie que l'utilisateur ne souhaite pas acheter de crédits"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "Demande inexistante",
|
||||
"description": "Message affiché lorsque la demande n'existe pas."
|
||||
"message": "Demande introuvable",
|
||||
"description": "Message affiché à l'utilisateur lorsque la demande n'existe pas."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Abonnez-vous et bénéficiez de plus d'avantages",
|
||||
"description": "Message affiché lorsque l'utilisateur souscrit au service."
|
||||
"message": "Abonnez-vous pour profiter de plus d'avantages",
|
||||
"description": "Message affiché à l'utilisateur lors de l'abonnement au service."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "Abonnement de 3 jours",
|
||||
"description": "Type d'abonnement, abonnement de 3 jours"
|
||||
"message": "Abonnement d'essai de 3 jours",
|
||||
"description": "Type d'abonnement, abonnement d'essai de 3 jours"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Abonnement découverte, adapté pour un usage à court terme.",
|
||||
"description": "Description de l'abonnement, adapté pour un usage à court terme"
|
||||
"message": "Abonnement d'essai, idéal pour une utilisation à court terme.",
|
||||
"description": "Description du type d'abonnement, idéal pour une utilisation à court terme"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Abonnement hebdomadaire",
|
||||
"description": "Type d'abonnement, abonnement hebdomadaire signifie que l'utilisateur a choisi un abonnement hebdomadaire"
|
||||
"description": "Type d'abonnement, abonnement hebdomadaire signifie que l'utilisateur a acheté un abonnement hebdomadaire"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Abonnement mensuel",
|
||||
"description": "Type d'abonnement, abonnement mensuel signifie que l'utilisateur a choisi un abonnement mensuel"
|
||||
"description": "Type d'abonnement, abonnement mensuel signifie que l'utilisateur a acheté un abonnement mensuel"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Abonnement annuel",
|
||||
"description": "Type d'abonnement, abonnement annuel signifie que l'utilisateur a choisi un abonnement annuel"
|
||||
"description": "Type d'abonnement, abonnement annuel signifie que l'utilisateur a acheté un abonnement annuel"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Abonnement découverte hebdomadaire, adapté pour un usage à court terme.",
|
||||
"description": "Description de l'abonnement hebdomadaire, adapté pour un usage à court terme"
|
||||
"message": "Abonnement hebdomadaire d'essai, idéal pour une utilisation à court terme.",
|
||||
"description": "Description du type d'abonnement, abonnement hebdomadaire signifie que l'utilisateur a acheté un abonnement hebdomadaire"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Abonnement mensuel flexible, adapté pour un usage à long terme.",
|
||||
"description": "Description de l'abonnement mensuel, adapté pour un usage à long terme"
|
||||
"message": "Abonnement mensuel flexible, idéal pour une utilisation à long terme.",
|
||||
"description": "Description du type d'abonnement, abonnement mensuel signifie que l'utilisateur a acheté un abonnement mensuel"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Abonnement annuel avantageux, le meilleur choix.",
|
||||
"description": "Description de l'abonnement annuel, le plus avantageux"
|
||||
"message": "Abonnement annuel avantageux, le choix le plus économique.",
|
||||
"description": "Description du type d'abonnement, abonnement annuel signifie que l'utilisateur a acheté un abonnement annuel"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Abonnez-vous pour débloquer tous les services AI du site.",
|
||||
"description": "Introduction à l'abonnement, qui présente les avantages d'un abonnement"
|
||||
"description": "Introduction à l'abonnement signifie l'introduction de l'abonnement"
|
||||
}
|
||||
}
|
||||
+54
-54
@@ -1,118 +1,118 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Consigliato",
|
||||
"description": "Testo del pulsante, consigliato indica il pulsante consigliato."
|
||||
"description": "Testo del pulsante, consigliato indica il pulsante consigliato"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Lista Ordini",
|
||||
"description": "Testo nel menu del sito web, ordini indica gli ordini di acquisto servizi da parte dell'utente."
|
||||
"message": "Elenco ordini",
|
||||
"description": "Testo nel menu del sito, ordini indica gli ordini di acquisto dei servizi da parte dell'utente"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Lista Richieste",
|
||||
"description": "Testo nel menu del sito web, richieste indica le applicazioni dei servizi da parte dell'utente."
|
||||
"message": "Elenco delle domande",
|
||||
"description": "Testo nel menu del sito, domande indica le richieste di utilizzo dei servizi da parte dell'utente"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Profilo Utente",
|
||||
"description": "Testo nel menu del sito web, profilo utente indica il profilo personale dell'utente."
|
||||
"message": "Profilo utente",
|
||||
"description": "Testo nel menu del sito, profilo utente indica il profilo personale dell'utente"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Verifica Identità",
|
||||
"description": "Testo nel menu del sito web, verifica d'identità indica la verifica dell'identità dell'utente."
|
||||
"message": "Verifica dell'identità",
|
||||
"description": "Testo nel menu del sito, verifica dell'identità indica la verifica dell'identità dell'utente"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Gestione Richieste",
|
||||
"description": "Testo nel menu del sito web, gestione delle richieste dell'utente."
|
||||
"message": "Gestione delle domande",
|
||||
"description": "Testo nel menu del sito, gestione delle domande indica la gestione delle richieste dell'utente"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Entrate Consigliate",
|
||||
"description": "Testo nel menu del sito web, entrate consigliate indica le entrate derivanti dai referral dell'utente."
|
||||
"message": "Guadagni da raccomandazione",
|
||||
"description": "Testo nel menu del sito, guadagni da raccomandazione indica i guadagni derivanti dalle raccomandazioni dell'utente"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Piattaforma Sviluppatori",
|
||||
"description": "Testo nel menu del sito web, piattaforma per sviluppatori."
|
||||
"message": "Piattaforma per sviluppatori",
|
||||
"description": "Testo nel menu del sito, piattaforma per sviluppatori indica la piattaforma per gli sviluppatori"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Registro d'Utilizzo",
|
||||
"description": "Testo nel menu del sito web, storico utilizzo dei servizi API da parte dell'utente."
|
||||
"message": "Registro di utilizzo",
|
||||
"description": "Testo nel menu del sito, registro di utilizzo indica la cronologia dell'uso dei servizi API da parte dell'utente"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Credenziali",
|
||||
"description": "Testo nel menu del sito web, credenziali per accedere alle API."
|
||||
"description": "Testo nel menu del sito, credenziali indica le credenziali per accedere all'API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Gestione Ordini",
|
||||
"description": "Testo nel menu del sito web, gestione degli ordini effettuati dall'utente."
|
||||
"message": "Gestione degli ordini",
|
||||
"description": "Testo nel menu del sito, gestione degli ordini indica la gestione degli ordini dell'utente, ordini indica gli ordini di acquisto dei servizi da parte dell'utente"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Gestione Distribuzione",
|
||||
"description": "Testo nel menu del sito web, gestione dello stato di distribuzione associato ai referral dell'utente."
|
||||
"message": "Gestione della distribuzione",
|
||||
"description": "Testo nel menu del sito, gestione della distribuzione indica la gestione dello stato di distribuzione dell'utente, correlato ai guadagni da raccomandazione dell'utente"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Supporto Cliente Esclusivo",
|
||||
"description": "Testo nella home page del sito, assistenza esclusiva da parte del servizio clienti."
|
||||
"message": "Supporto clienti esclusivo",
|
||||
"description": "Testo nella homepage del sito, supporto clienti esclusivo indica che l'utente può ricevere supporto da un servizio clienti esclusivo"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Accesso Anticipato a Nuove Funzioni",
|
||||
"description": "Testo nella home page del sito, accesso prioritario alle nuove funzionalità."
|
||||
"message": "Accesso prioritario alle nuove funzionalità",
|
||||
"description": "Testo nella homepage del sito, accesso prioritario alle nuove funzionalità indica che l'utente può accedere in anteprima alle nuove funzionalità"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Acquista",
|
||||
"description": "Testo nella home page del sito, acquisto di crediti."
|
||||
"description": "Testo nella homepage del sito, acquisto di crediti indica che l'utente può acquistare crediti"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Abbonati",
|
||||
"description": "Testo nella home page del sito, abbonamento ai servizi."
|
||||
"description": "Testo nella homepage del sito, abbonamento indica che l'utente può abbonarsi"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Non vuoi abbonarti? Puoi anche provare ad acquistare crediti separatamente.",
|
||||
"description": "Testo nella home page del sito, rifiuto dell'abbonamento da parte dell'utente."
|
||||
"message": "Non vuoi abbonarti? Puoi anche acquistare crediti singolarmente.",
|
||||
"description": "Testo nella homepage del sito, non voler abbonarsi indica che l'utente non vuole abbonarsi"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Non vuoi acquistare crediti? Puoi anche provare ad abbonarti a pacchetti mensili.",
|
||||
"description": "Testo nella home page del sito, rifiuto dell'acquisto di crediti da parte dell'utente."
|
||||
"message": "Non vuoi acquistare crediti? Puoi anche abbonarti.",
|
||||
"description": "Testo nella homepage del sito, non voler acquistare crediti indica che l'utente non vuole acquistare crediti"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "Richiesta Non Trovata",
|
||||
"description": "Messaggio visualizzato quando una richiesta non esiste."
|
||||
"message": "Domanda non trovata",
|
||||
"description": "Messaggio mostrato all'utente quando la domanda non esiste."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Abbonati per Più Vantaggi",
|
||||
"description": "Messaggio visualizzato quando un utente si abbona al servizio."
|
||||
"message": "Abbonati per godere di più vantaggi",
|
||||
"description": "Messaggio mostrato all'utente quando si abbonano al servizio."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "Prova 3 Giorni",
|
||||
"description": "Tipo di abbonamento, prova di 3 giorni."
|
||||
"message": "Abbonamento di prova di 3 giorni",
|
||||
"description": "Tipo di abbonamento, abbonamento di prova di 3 giorni"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Prova a breve termine.",
|
||||
"description": "Descrizione del tipo di abbonamento, adatto per un uso breve."
|
||||
"message": "Abbonamento di prova, adatto per un uso a breve termine.",
|
||||
"description": "Descrizione del tipo di abbonamento, adatto per un uso a breve termine"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Abbonamento Settimanale",
|
||||
"description": "Tipo di abbonamento, abbonamento settimanale."
|
||||
"message": "Abbonamento settimanale",
|
||||
"description": "Tipo di abbonamento, abbonamento settimanale indica che l'utente ha acquistato un abbonamento settimanale"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Abbonamento Mensile",
|
||||
"description": "Tipo di abbonamento, abbonamento mensile."
|
||||
"message": "Abbonamento mensile",
|
||||
"description": "Tipo di abbonamento, abbonamento mensile indica che l'utente ha acquistato un abbonamento mensile"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Abbonamento Annuale",
|
||||
"description": "Tipo di abbonamento, abbonamento annuale."
|
||||
"message": "Abbonamento annuale",
|
||||
"description": "Tipo di abbonamento, abbonamento annuale indica che l'utente ha acquistato un abbonamento annuale"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Prova settimanale a breve termine.",
|
||||
"description": "Descrizione del tipo di abbonamento, settimanale."
|
||||
"message": "Abbonamento settimanale di prova, adatto per un uso a breve termine.",
|
||||
"description": "Descrizione del tipo di abbonamento, abbonamento settimanale indica che l'utente ha acquistato un abbonamento settimanale"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Mensile flessibile per uso a lungo termine.",
|
||||
"description": "Descrizione del tipo di abbonamento, mensile."
|
||||
"message": "Abbonamento mensile flessibile, adatto per un uso a lungo termine.",
|
||||
"description": "Descrizione del tipo di abbonamento, abbonamento mensile indica che l'utente ha acquistato un abbonamento mensile"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Annuale conveniente, scelta migliore.",
|
||||
"description": "Descrizione del tipo di abbonamento, annuale."
|
||||
"message": "Abbonamento annuale conveniente, la scelta più economica.",
|
||||
"description": "Descrizione del tipo di abbonamento, abbonamento annuale indica che l'utente ha acquistato un abbonamento annuale"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Abbonati per sbloccare tutti i servizi AI.",
|
||||
"description": "Introduzione al concetto di abbonamento."
|
||||
"message": "Abbonati per sbloccare tutti i servizi AI del sito.",
|
||||
"description": "Introduzione all'abbonamento indica l'introduzione all'abbonamento"
|
||||
}
|
||||
}
|
||||
+45
-45
@@ -1,75 +1,75 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "おすすめ",
|
||||
"description": "ボタンテキスト、おすすめは推奨されるボタンを示します"
|
||||
"message": "推奨",
|
||||
"description": "ボタンのテキスト, 推奨は推奨されたボタンを意味します"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "注文リスト",
|
||||
"description": "ウェブサイトメニューのテキスト、注文はユーザーが購入したサービスの注文を示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 注文はユーザーがサービスを購入する注文を意味します"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "申請リスト",
|
||||
"description": "ウェブサイトメニューのテキスト、申請はユーザーがサービスを利用するための申請を示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 申請はユーザーがサービスを使用する申請を意味します"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "ユーザープロフィール",
|
||||
"description": "ウェブサイトメニューのテキスト、ユーザープロフィールはユーザーの個人情報を示します"
|
||||
"message": "ユーザープロファイル",
|
||||
"description": "ウェブサイトメニュー内のテキスト, ユーザープロファイルはユーザーの個人情報を意味します"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "身分証明",
|
||||
"description": "ウェブサイトメニューのテキスト、身分証明はユーザーの身分確認を示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 身分証明はユーザーの身分の認証を意味します"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "申請管理",
|
||||
"description": "ウェブサイトメニューのテキスト、申請管理はユーザーの申請を管理することを示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 申請管理はユーザーの申請の管理を意味します"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "推薦収益",
|
||||
"description": "ウェブサイトメニューのテキスト、推薦収益はユーザーの推薦による収益を示します"
|
||||
"message": "推奨収益",
|
||||
"description": "ウェブサイトメニュー内のテキスト, 推奨収益はユーザーの推奨による収益を意味します"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "開発者プラットフォーム",
|
||||
"description": "ウェブサイトメニューのテキスト、開発者プラットフォームは開発者のためのプラットフォームを示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 開発者プラットフォームは開発者のプラットフォームを意味します"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "使用履歴",
|
||||
"description": "ウェブサイトメニューのテキスト、使用履歴はユーザーがAPIサービスを利用した履歴を示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 使用履歴はユーザーがAPIサービスを使用した履歴を意味します"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "認証情報",
|
||||
"description": "ウェブサイトメニューのテキスト、認証情報はAPIアクセスのための認証情報を示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 認証情報はAPIアクセスの認証情報を意味します"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "注文管理",
|
||||
"description": "ウェブサイトメニューのテキスト、注文管理はユーザーの注文を管理することを示します"
|
||||
"description": "ウェブサイトメニュー内のテキスト, 注文管理はユーザーの注文の管理を意味します"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "流通管理",
|
||||
"description": "ウェブサイトメニューのテキスト、流通管理はユーザーの流通状況を管理することを示します"
|
||||
"message": "配信管理",
|
||||
"description": "ウェブサイトメニュー内のテキスト, 配信管理はユーザーの配信状態の管理を意味します"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "専属カスタマーサポート",
|
||||
"description": "ウェブサイトホームページのテキスト、専属カスタマーサポートはユーザーが専属のカスタマーサポートを受けられることを示します"
|
||||
"message": "専用カスタマーサポート",
|
||||
"description": "サイトのホームページのテキスト, 専用カスタマーサポートはユーザーが専用カスタマーサポートを受けられることを意味します"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "新機能を優先的に体験",
|
||||
"description": "ウェブサイトホームページのテキスト、新機能を優先的に体験はユーザーが新機能を優先的に体験できることを示します"
|
||||
"message": "新機能の先行体験",
|
||||
"description": "サイトのホームページのテキスト, 新機能の先行体験はユーザーが新機能を先行して体験できることを意味します"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "購入する",
|
||||
"description": "ウェブサイトホームページのテキスト、購入するはユーザーがクレジットを購入できることを示します"
|
||||
"description": "サイトのホームページのテキスト, 購入するはユーザーが購買できることを意味します"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "購読する",
|
||||
"description": "ウェブサイトホームページのテキスト、購読するはユーザーがメンバーシップを購読できることを示します"
|
||||
"description": "サイトのホームページのテキスト, 購読するはユーザーがメンバーシップを購読できることを意味します"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "全サイトメンバーシップを購読したくないですか?個別にクレジットを購入することもできます。",
|
||||
"description": "ウェブサイトホームページのテキスト、購読したくないはユーザーがメンバーシップを購読したくないことを示します"
|
||||
"message": "定期メンバーシップを購読したくないですか?単独での購入もできます。",
|
||||
"description": "サイトのホームページのテキスト, 定期メンバーシップを購読したくないことを意味します"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "クレジットを購入したくないですか?期間限定パッケージを試すこともできます。",
|
||||
"description": "ウェブサイトホームページのテキスト、購入したくないはユーザーがクレジットを購入したくないことを示します"
|
||||
"message": "購入を希望しないですか?定期メンバーシップの購読も試すことができます。",
|
||||
"description": "サイトのホームページのテキスト, 購入を希望しないことを意味します"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "申請が見つかりません",
|
||||
@@ -77,42 +77,42 @@
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "メンバーシップを購読して、より多くの特典を享受しましょう",
|
||||
"description": "ユーザーがサービスを購読する際に表示されるメッセージ。"
|
||||
"description": "ユーザーがサービスを購読するときに表示されるメッセージ。"
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "3日間体験メンバー",
|
||||
"description": "メンバーシップの種類、3日間体験メンバー"
|
||||
"message": "3日間の体験メンバーシップ",
|
||||
"description": "メンバーシップのタイプ, 3日間の体験メンバーシップ"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "お試しメンバー、短期間の利用に適しています。",
|
||||
"description": "メンバーシップの種類、短期間の利用に適しています"
|
||||
"message": "試用メンバーシップ, 短期使用に適しています。",
|
||||
"description": "メンバーシップのタイプ, 短期使用に適していることを意味します"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "週メンバー",
|
||||
"description": "メンバーシップの種類、週メンバーはユーザーが購入したメンバーシップの種類を示します"
|
||||
"message": "週メンバーシップ",
|
||||
"description": "メンバーシップのタイプ, 週メンバーシップはユーザーが購入したメンバーシップのタイプを意味します"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "月メンバー",
|
||||
"description": "メンバーシップの種類、月メンバーはユーザーが購入したメンバーシップの種類を示します"
|
||||
"message": "月メンバーシップ",
|
||||
"description": "メンバーシップのタイプ, 月メンバーシップはユーザーが購入したメンバーシップのタイプを意味します"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "年メンバー",
|
||||
"description": "メンバーシップの種類、年メンバーはユーザーが購入したメンバーシップの種類を示します"
|
||||
"message": "年メンバーシップ",
|
||||
"description": "メンバーシップのタイプ, 年メンバーシップはユーザーが購入したメンバーシップのタイプを意味します"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "お試し週メンバー、短期間の利用に適しています。",
|
||||
"description": "メンバーシップの種類の説明、週メンバーはユーザーが購入したメンバーシップの種類を示します"
|
||||
"message": "試用週メンバーシップ, 短期使用に適しています。",
|
||||
"description": "メンバーシップタイプの説明, 週メンバーシップはユーザーが購入したメンバーシップのタイプを意味します"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "柔軟な月メンバー、長期間の利用に適しています。",
|
||||
"description": "メンバーシップの種類の説明、月メンバーはユーザーが購入したメンバーシップの種類を示します"
|
||||
"message": "柔軟な月メンバーシップ, 長期使用に適しています。",
|
||||
"description": "メンバーシップタイプの説明, 月メンバーシップはユーザーが購入したメンバーシップのタイプを意味します"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "お得な年メンバー、最もお得な選択です。",
|
||||
"description": "メンバーシップの種類の説明、年メンバーはユーザーが購入したメンバーシップの種類を示します"
|
||||
"message": "お得な年メンバーシップ, 最高の選択。",
|
||||
"description": "メンバーシップタイプの説明, 年メンバーシップはユーザーが購入したメンバーシップのタイプを意味します"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "メンバーシップを購読して、全サイトのAIサービスをアンロックしましょう。",
|
||||
"description": "メンバーシップの紹介を示します"
|
||||
"message": "メンバーシップを購読して、すべてのAIサービスを利用できます。",
|
||||
"description": "メンバーシップの紹介文を意味します"
|
||||
}
|
||||
}
|
||||
+40
-40
@@ -1,118 +1,118 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "추천",
|
||||
"description": "버튼 텍스트, 추천은 추천된 버튼을 의미합니다."
|
||||
"description": "버튼 텍스트, 추천은 추천된 버튼을 의미함"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "주문 목록",
|
||||
"description": "웹사이트 메뉴의 텍스트, 주문은 사용자가 구매한 서비스의 주문을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 주문은 사용자가 구매한 서비스의 주문을 의미함"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "신청 목록",
|
||||
"description": "웹사이트 메뉴의 텍스트, 신청은 사용자가 서비스 사용을 위해 제출한 신청을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 신청은 사용자가 서비스 이용을 신청한 것을 의미함"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "사용자 프로필",
|
||||
"description": "웹사이트 메뉴의 텍스트, 사용자 프로필은 사용자의 개인 정보를 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 사용자 프로필은 사용자의 개인정보를 의미함"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "신원 확인",
|
||||
"description": "웹사이트 메뉴의 텍스트, 신원 확인은 사용자의 신원을 확인하는 것을 의미합니다."
|
||||
"message": "신분 확인",
|
||||
"description": "웹사이트 메뉴의 텍스트, 신분 확인은 사용자의 신분을 확인하는 것을 의미함"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "신청 관리",
|
||||
"description": "웹사이트 메뉴의 텍스트, 신청 관리는 사용자의 신청을 관리하는 것을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 신청 관리는 사용자의 신청을 관리하는 것을 의미함"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "추천 수익",
|
||||
"description": "웹사이트 메뉴의 텍스트, 추천 수익은 사용자가 추천한 수익을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 추천 수익은 사용자가 추천받은 수익을 의미함"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "개발자 플랫폼",
|
||||
"description": "웹사이트 메뉴의 텍스트, 개발자 플랫폼은 개발자를 위한 플랫폼을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 개발자 플랫폼은 개발자를 위한 플랫폼을 의미함"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "사용 기록",
|
||||
"description": "웹사이트 메뉴의 텍스트, 사용 기록은 사용자가 API 서비스를 사용한 기록을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 사용 기록은 사용자가 API 서비스를 사용한 이력을 의미함"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "자격 증명",
|
||||
"description": "웹사이트 메뉴의 텍스트, 자격 증명은 API에 접근하기 위한 자격 증명을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 자격 증명은 API 접근에 필요한 증명을 의미함"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "주문 관리",
|
||||
"description": "웹사이트 메뉴의 텍스트, 주문 관리는 사용자의 주문을 관리하는 것을 의미합니다. 주문은 사용자가 구매한 서비스의 주문을 의미합니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 주문 관리는 사용자의 주문을 관리하는 것을 의미함, 주문은 사용자가 구매한 서비스의 주문을 의미함"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "유통 관리",
|
||||
"description": "웹사이트 메뉴의 텍스트, 유통 관리는 사용자의 유통 상태를 관리하는 것을 의미하며, 사용자가 추천한 수익과 관련이 있습니다."
|
||||
"description": "웹사이트 메뉴의 텍스트, 유통 관리는 사용자의 유통 상태 관리를 의미하며, 사용자가 추천받은 수익과 관련 있음"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "전담 고객 지원",
|
||||
"description": "웹사이트 홈의 텍스트, 전담 고객 지원은 사용자가 전담 고객 지원을 받을 수 있음을 의미합니다."
|
||||
"message": "전담 고객 서비스 지원",
|
||||
"description": "웹사이트 첫 페이지의 텍스트, 전담 고객 서비스 지원은 사용자가 전담 고객 서비스의 지원을 받을 수 있음을 의미함"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "새로운 기능 우선 체험",
|
||||
"description": "웹사이트 홈의 텍스트, 새로운 기능 우선 체험은 사용자가 새로운 기능을 우선적으로 체험할 수 있음을 의미합니다."
|
||||
"message": "신기능 우선 체험",
|
||||
"description": "웹사이트 첫 페이지의 텍스트, 신기능 우선 체험은 사용자가 신기능을 우선 체험할 수 있음을 의미함"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "구매하기",
|
||||
"description": "웹사이트 홈의 텍스트, 구매 한도는 사용자가 한도를 구매할 수 있음을 의미합니다."
|
||||
"description": "웹사이트 첫 페이지의 텍스트, 구매 한도를 의미하며 사용자가 한도를 구매할 수 있음을 나타내는 내용"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "구독하기",
|
||||
"description": "웹사이트 홈의 텍스트, 회원 구독은 사용자가 회원을 구독할 수 있음을 의미합니다."
|
||||
"description": "웹사이트 첫 페이지의 텍스트, 회원 서비스를 구독할 수 있음을 의미함"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "전체 사이트 회원을 구독하고 싶지 않으신가요? 별도로 한도를 구매할 수도 있습니다.",
|
||||
"description": "웹사이트 홈의 텍스트, 구독을 원하지 않는다는 것은 사용자가 회원을 구독하고 싶지 않음을 의미합니다."
|
||||
"message": "정기 회원 구독을 원하지 않으십니까? 한도를 개별 구매할 수 있습니다.",
|
||||
"description": "웹사이트 첫 페이지의 텍스트, 사용자가 회원 구독을 원하지 않음을 의미함"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "한도를 구매하고 싶지 않으신가요? 구독 기간 패키지를 시도해 볼 수도 있습니다.",
|
||||
"description": "웹사이트 홈의 텍스트, 한도를 구매하고 싶지 않다는 것은 사용자가 한도를 구매하고 싶지 않음을 의미합니다."
|
||||
"message": "한도 구매를 원하지 않으십니까? 정기 회원 구독을 시도할 수 있습니다.",
|
||||
"description": "웹사이트 첫 페이지의 텍스트, 사용자가 한도 구매를 원하지 않음을 의미함"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "신청이 존재하지 않습니다",
|
||||
"description": "신청이 존재하지 않을 때 사용자에게 표시되는 메시지입니다."
|
||||
"description": "신청이 존재하지 않을 때 사용자에게 표시되는 메시지"
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "회원 구독, 더 많은 혜택을 누리세요",
|
||||
"description": "사용자가 서비스를 구독할 때 사용자에게 표시되는 메시지입니다."
|
||||
"message": "회원 구독, 더 많은 권익을 누리세요",
|
||||
"description": "사용자가 서비스를 구독할 때 사용자에게 표시되는 메시지"
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "3일 체험 회원",
|
||||
"description": "회원 유형, 3일 체험 회원"
|
||||
"description": "회원 유형, 3일 체험 회원을 의미함"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "체험 회원, 단기 사용에 적합합니다.",
|
||||
"description": "회원 유형, 단기 사용에 적합"
|
||||
"message": "신규 체험 회원, 단기간 사용에 적합.",
|
||||
"description": "회원 유형, 단기간 사용에 적합함"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "주간 회원",
|
||||
"description": "회원 유형, 주간 회원은 사용자가 구매한 회원 유형이 주간 회원임을 의미합니다."
|
||||
"description": "회원 유형, 주간 회원은 사용자가 구매한 회원 유형임"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "월간 회원",
|
||||
"description": "회원 유형, 월간 회원은 사용자가 구매한 회원 유형이 월간 회원임을 의미합니다."
|
||||
"description": "회원 유형, 월간 회원은 사용자가 구매한 회원 유형임"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "연간 회원",
|
||||
"description": "회원 유형, 연간 회원은 사용자가 구매한 회원 유형이 연간 회원임을 의미합니다."
|
||||
"description": "회원 유형, 연간 회원은 사용자가 구매한 회원 유형임"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "체험 주간 회원, 단기 사용에 적합합니다.",
|
||||
"description": "회원 유형의 설명, 주간 회원은 사용자가 구매한 회원 유형이 주간 회원임을 의미합니다."
|
||||
"message": "신규 체험 주간 회원, 단기간 사용에 적합.",
|
||||
"description": "회원 유형의 설명, 주간 회원은 사용자가 구매한 회원 유형임"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "유연한 월간 회원, 장기 사용에 적합합니다.",
|
||||
"description": "회원 유형의 설명, 월간 회원은 사용자가 구매한 회원 유형이 월간 회원임을 의미합니다."
|
||||
"message": "유연한 월간 회원, 장기간 사용에 적합.",
|
||||
"description": "회원 유형의 설명, 월간 회원은 사용자가 구매한 회원 유형임"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "가성비 좋은 연간 회원, 가장 경제적인 선택입니다.",
|
||||
"description": "회원 유형의 설명, 연간 회원은 사용자가 구매한 회원 유형이 연간 회원임을 의미합니다."
|
||||
"message": "가성비 높은 연간 회원, 가장 합리적인 선택.",
|
||||
"description": "회원 유형의 설명, 연간 회원은 사용자가 구매한 회원 유형임"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "회원 구독, 모든 AI 서비스를 잠금 해제하세요.",
|
||||
"description": "회원 소개는 회원의 소개를 의미합니다."
|
||||
"message": "회원 구독, 사이트 내 모든 AI 서비스 잠금 해제.",
|
||||
"description": "회원 소개는 회원의 소개를 의미함"
|
||||
}
|
||||
}
|
||||
+45
-45
@@ -1,118 +1,118 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Polecane",
|
||||
"description": "Tekst na przycisku, polecane oznacza polecany przycisk"
|
||||
"description": "Tekst na przycisku, polecane wskazuje na rekomendowany przycisk"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Lista zamówień",
|
||||
"description": "Tekst w menu strony, zamówienia oznaczają zamówienia użytkownika na usługi"
|
||||
"description": "Tekst w menu strony, zamówienia odnoszą się do usług zakupionych przez użytkownika"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Lista aplikacji",
|
||||
"description": "Tekst w menu strony, aplikacje oznaczają aplikacje użytkownika do korzystania z usług"
|
||||
"message": "Lista zgłoszeń",
|
||||
"description": "Tekst w menu strony, zgłoszenia odnoszą się do wniosków użytkownika o korzystanie z usługi"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Profil użytkownika",
|
||||
"description": "Tekst w menu strony, profil użytkownika oznacza osobisty profil użytkownika"
|
||||
"description": "Tekst w menu strony, profil użytkownika odnosi się do danych osobistych użytkownika"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Weryfikacja tożsamości",
|
||||
"description": "Tekst w menu strony, weryfikacja tożsamości oznacza weryfikację tożsamości użytkownika"
|
||||
"description": "Tekst w menu strony, weryfikacja tożsamości odnosi się do potwierdzenia tożsamości użytkownika"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Zarządzanie aplikacjami",
|
||||
"description": "Tekst w menu strony, zarządzanie aplikacjami oznacza zarządzanie aplikacjami użytkownika"
|
||||
"message": "Zarządzanie zgłoszeniami",
|
||||
"description": "Tekst w menu strony, zarządzanie zgłoszeniami odnosi się do zarządzania wnioskami użytkownika"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Zyski z poleceń",
|
||||
"description": "Tekst w menu strony, zyski z poleceń oznaczają zyski użytkownika z poleceń"
|
||||
"message": "Zyski polecające",
|
||||
"description": "Tekst w menu strony, zyski polecające odnoszą się do dochodu z rekomendacji użytkownika"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Platforma deweloperska",
|
||||
"description": "Tekst w menu strony, platforma deweloperska oznacza platformę dla deweloperów"
|
||||
"description": "Tekst w menu strony, platforma deweloperska odnosi się do platformy dla programistów"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Historia użycia",
|
||||
"description": "Tekst w menu strony, historia użycia oznacza historię korzystania z usług API przez użytkownika"
|
||||
"message": "Historia użytkowania",
|
||||
"description": "Tekst w menu strony, historia użytkowania odnosi się do historii korzystania z usług API przez użytkownika"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Poświadczenia",
|
||||
"description": "Tekst w menu strony, poświadczenia oznaczają poświadczenia dostępu do API"
|
||||
"description": "Tekst w menu strony, poświadczenia odnosi się do danych dostępowych do API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Zarządzanie zamówieniami",
|
||||
"description": "Tekst w menu strony, zarządzanie zamówieniami oznacza zarządzanie zamówieniami użytkownika, zamówienia oznaczają zamówienia użytkownika na usługi"
|
||||
"description": "Tekst w menu strony, zarządzanie zamówieniami odnosi się do zarządzania zamówieniami użytkownika, zamówienia odnoszą się do usług zakupionych przez użytkownika"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Zarządzanie dystrybucją",
|
||||
"description": "Tekst w menu strony, zarządzanie dystrybucją oznacza zarządzanie stanem dystrybucji użytkownika, związane z zyskami z poleceń"
|
||||
"description": "Tekst w menu strony, zarządzanie dystrybucją odnosi się do zarządzania statusem dystrybucji użytkownika, związane z dochodem z rekomendacji użytkownika"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Wsparcie dedykowanego konsultanta",
|
||||
"description": "Tekst na stronie głównej, wsparcie dedykowanego konsultanta oznacza, że użytkownik może uzyskać wsparcie od dedykowanego konsultanta"
|
||||
"message": "Wsparcie od dedykowanego konsultanta",
|
||||
"description": "Tekst na stronie głównej, wsparcie od dedykowanego konsultanta odnosi się do możliwości uzyskania pomocy od konsultanta"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Priorytetowy dostęp do nowych funkcji",
|
||||
"description": "Tekst na stronie głównej, priorytetowy dostęp do nowych funkcji oznacza, że użytkownik może mieć priorytetowy dostęp do nowych funkcji"
|
||||
"message": "Pierwszeństwo w testowaniu nowych funkcji",
|
||||
"description": "Tekst na stronie głównej, pierwszeństwo w testowaniu nowych funkcji oznacza możliwość wczesnego dostępu do nowych funkcji"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Kup teraz",
|
||||
"description": "Tekst na stronie głównej, kup teraz oznacza, że użytkownik może kupić dodatkowe środki"
|
||||
"message": "Kup",
|
||||
"description": "Tekst na stronie głównej, kupowanie limitu odnosi się do możliwości zakupu dodatkowego limitu"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Subskrybuj",
|
||||
"description": "Tekst na stronie głównej, subskrybuj oznacza, że użytkownik może subskrybować członkostwo"
|
||||
"description": "Tekst na stronie głównej, subskrypcja członkostwa oznacza możliwość subskrybowania członkostwa"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Nie chcesz subskrybować członkostwa? Możesz również spróbować kupić dodatkowe środki.",
|
||||
"description": "Tekst na stronie głównej, nie chcesz subskrybować oznacza, że użytkownik nie chce subskrybować członkostwa"
|
||||
"message": "Nie chcesz subskrybować członkostwa okresowego? Możesz również spróbować kupić dodatkowy limit.",
|
||||
"description": "Tekst na stronie głównej, brak chęci subskrypcji odnosi się do braku chęci subskrybowania członkostwa"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Nie chcesz kupować dodatkowych środków? Możesz również spróbować subskrybować pakiet czasowy.",
|
||||
"description": "Tekst na stronie głównej, nie chcesz kupować dodatkowych środków oznacza, że użytkownik nie chce kupować dodatkowych środków"
|
||||
"message": "Nie chcesz kupić dodatkowego limitu? Możesz również spróbować subskrybować członkostwo okresowe.",
|
||||
"description": "Tekst na stronie głównej, brak chęci zakupu limitu odnosi się do braku chęci zakupu dodatkowego limitu"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "Aplikacja nie istnieje",
|
||||
"description": "Wiadomość wyświetlana użytkownikowi, gdy aplikacja nie istnieje."
|
||||
"message": "Zgłoszenie nie istnieje",
|
||||
"description": "Komunikat wyświetlany użytkownikowi, gdy zgłoszenie nie istnieje."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Subskrybuj członkostwo, aby cieszyć się większymi korzyściami",
|
||||
"description": "Wiadomość wyświetlana użytkownikowi, gdy subskrybuje usługę."
|
||||
"message": "Subskrybuj członkostwo, ciesz się dodatkowymi korzyściami",
|
||||
"description": "Komunikat wyświetlany użytkownikowi podczas subskrypcji usługi."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "3-dniowe członkostwo próbne",
|
||||
"description": "Typ członkostwa, 3-dniowe członkostwo próbne"
|
||||
"message": "Członkostwo na 3 dni",
|
||||
"description": "Typ członkostwa, członkostwo na 3 dni"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Członkostwo próbne, odpowiednie do krótkoterminowego użytkowania.",
|
||||
"description": "Opis typu członkostwa, odpowiednie do krótkoterminowego użytkowania"
|
||||
"message": "Okres próbny, idealny dla krótkoterminowego użytkowania.",
|
||||
"description": "Opis członkostwa, odpowiedniego dla krótkoterminowego użytkowania"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Członkostwo tygodniowe",
|
||||
"description": "Typ członkostwa, członkostwo tygodniowe oznacza, że użytkownik kupił członkostwo tygodniowe"
|
||||
"description": "Typ członkostwa, członkostwo tygodniowe oznacza członkostwo zakupione na tydzień"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Członkostwo miesięczne",
|
||||
"description": "Typ członkostwa, członkostwo miesięczne oznacza, że użytkownik kupił członkostwo miesięczne"
|
||||
"description": "Typ członkostwa, członkostwo miesięczne oznacza członkostwo zakupione na miesiąc"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Członkostwo roczne",
|
||||
"description": "Typ członkostwa, członkostwo roczne oznacza, że użytkownik kupił członkostwo roczne"
|
||||
"description": "Typ członkostwa, członkostwo roczne oznacza członkostwo zakupione na rok"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Członkostwo tygodniowe próbne, odpowiednie do krótkoterminowego użytkowania.",
|
||||
"description": "Opis typu członkostwa, członkostwo tygodniowe oznacza, że użytkownik kupił członkostwo tygodniowe"
|
||||
"message": "Członkostwo tygodniowe, idealne do krótkoterminowego użytkowania.",
|
||||
"description": "Opis członkostwa tygodniowego, członkostwo zakupione na tydzień"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Elastyczne członkostwo miesięczne, odpowiednie do długoterminowego użytkowania.",
|
||||
"description": "Opis typu członkostwa, członkostwo miesięczne oznacza, że użytkownik kupił członkostwo miesięczne"
|
||||
"description": "Opis członkostwa miesięcznego, członkostwo zakupione na miesiąc"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Wartościowe członkostwo roczne, najbardziej opłacalny wybór.",
|
||||
"description": "Opis typu członkostwa, członkostwo roczne oznacza, że użytkownik kupił członkostwo roczne"
|
||||
"message": "Członkostwo roczne w najlepszej cenie.",
|
||||
"description": "Opis członkostwa rocznego, członkostwo zakupione na rok"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Subskrybuj członkostwo, aby odblokować wszystkie usługi AI na stronie.",
|
||||
"description": "Opis członkostwa oznacza wprowadzenie do członkostwa"
|
||||
"message": "Subskrybuj członkostwo, odblokuj wszystkie usługi AI na stronie.",
|
||||
"description": "Wprowadzenie do członkostwa, informacja o członkostwie"
|
||||
}
|
||||
}
|
||||
+26
-26
@@ -5,11 +5,11 @@
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Lista de Pedidos",
|
||||
"description": "Texto no menu do site, pedidos refere-se aos pedidos de compra de serviços do usuário"
|
||||
"description": "Texto no menu do site, pedidos referem-se aos pedidos de compra de serviços do usuário"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Lista de Aplicações",
|
||||
"description": "Texto no menu do site, aplicações refere-se às solicitações de uso de serviços do usuário"
|
||||
"description": "Texto no menu do site, aplicações referem-se às solicitações de uso de serviços pelo usuário"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Perfil do Usuário",
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Rendimentos de Indicação",
|
||||
"description": "Texto no menu do site, rendimentos de indicação refere-se aos ganhos de indicação do usuário"
|
||||
"description": "Texto no menu do site, rendimentos de indicação refere-se aos ganhos do usuário por indicações"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Plataforma do Desenvolvedor",
|
||||
@@ -37,15 +37,15 @@
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Credenciais",
|
||||
"description": "Texto no menu do site, credenciais refere-se às credenciais de acesso à API"
|
||||
"description": "Texto no menu do site, credenciais referem-se às credenciais de acesso à API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Gerenciar Pedidos",
|
||||
"description": "Texto no menu do site, gerenciar pedidos refere-se à gestão dos pedidos do usuário, pedidos refere-se aos pedidos de compra de serviços do usuário"
|
||||
"description": "Texto no menu do site, gerenciar pedidos refere-se à gestão dos pedidos do usuário, pedidos referem-se aos pedidos de compra de serviços do usuário"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Gerenciar Distribuição",
|
||||
"description": "Texto no menu do site, gerenciar distribuição refere-se à gestão do status de distribuição do usuário, relacionado aos ganhos de indicação do usuário"
|
||||
"description": "Texto no menu do site, gerenciar distribuição refere-se à gestão do status de distribuição do usuário, relacionado aos ganhos por indicações"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Suporte Exclusivo ao Cliente",
|
||||
@@ -53,22 +53,22 @@
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Experiência Prioritária de Novas Funcionalidades",
|
||||
"description": "Texto na página inicial do site, experiência prioritária de novas funcionalidades refere-se à capacidade do usuário de experimentar novas funcionalidades com prioridade"
|
||||
"description": "Texto na página inicial do site, experiência prioritária de novas funcionalidades refere-se à possibilidade do usuário experimentar novas funcionalidades com prioridade"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Comprar",
|
||||
"description": "Texto na página inicial do site, comprar créditos refere-se à capacidade do usuário de comprar créditos"
|
||||
"description": "Texto na página inicial do site, comprar créditos refere-se à possibilidade do usuário comprar créditos"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Assinar",
|
||||
"description": "Texto na página inicial do site, assinar membro refere-se à capacidade do usuário de assinar como membro"
|
||||
"description": "Texto na página inicial do site, assinar membro refere-se à possibilidade do usuário assinar um plano de membro"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Não quer assinar a assinatura completa? Você também pode tentar comprar créditos separadamente.",
|
||||
"description": "Texto na página inicial do site, não quer assinar refere-se ao usuário que não deseja assinar como membro"
|
||||
"message": "Não quer assinar um plano de membro? Você também pode tentar comprar créditos separadamente.",
|
||||
"description": "Texto na página inicial do site, não quer assinar refere-se ao usuário que não deseja assinar um plano de membro"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Não quer comprar créditos? Você também pode tentar assinar um pacote de tempo.",
|
||||
"message": "Não quer comprar créditos? Você também pode tentar assinar um plano de membro.",
|
||||
"description": "Texto na página inicial do site, não quer comprar créditos refere-se ao usuário que não deseja comprar créditos"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
@@ -76,43 +76,43 @@
|
||||
"description": "Mensagem exibida ao usuário quando a aplicação não é encontrada."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Assine para Membro, Aproveite Mais Benefícios",
|
||||
"description": "Mensagem exibida ao usuário ao assinar o serviço."
|
||||
"message": "Assine o Membro, Aproveite Mais Benefícios",
|
||||
"description": "Mensagem exibida ao usuário quando ele assina o serviço."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "Membro de Experiência de 3 Dias",
|
||||
"description": "Tipo de membro, membro de experiência de 3 dias"
|
||||
"message": "Membro de 3 Dias",
|
||||
"description": "Tipo de membro, membro de 3 dias"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Membro de Experiência, adequado para uso de curto prazo.",
|
||||
"description": "Descrição do tipo de membro, adequado para uso de curto prazo"
|
||||
"description": "Tipo de membro, adequado para uso de curto prazo"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Membro Semanal",
|
||||
"description": "Tipo de membro, membro semanal refere-se ao tipo de membro comprado pelo usuário como membro semanal"
|
||||
"description": "Tipo de membro, membro semanal refere-se ao tipo de membro que o usuário compra como membro semanal"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Membro Mensal",
|
||||
"description": "Tipo de membro, membro mensal refere-se ao tipo de membro comprado pelo usuário como membro mensal"
|
||||
"description": "Tipo de membro, membro mensal refere-se ao tipo de membro que o usuário compra como membro mensal"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Membro Anual",
|
||||
"description": "Tipo de membro, membro anual refere-se ao tipo de membro comprado pelo usuário como membro anual"
|
||||
"description": "Tipo de membro, membro anual refere-se ao tipo de membro que o usuário compra como membro anual"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Membro Semanal de Experiência, adequado para uso de curto prazo.",
|
||||
"description": "Descrição do tipo de membro, membro semanal refere-se ao tipo de membro comprado pelo usuário como membro semanal"
|
||||
"description": "Descrição do tipo de membro, membro semanal refere-se ao tipo de membro que o usuário compra como membro semanal"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Membro Mensal Flexível, adequado para uso a longo prazo.",
|
||||
"description": "Descrição do tipo de membro, membro mensal refere-se ao tipo de membro comprado pelo usuário como membro mensal"
|
||||
"message": "Membro Mensal Flexível, adequado para uso de longo prazo.",
|
||||
"description": "Descrição do tipo de membro, membro mensal refere-se ao tipo de membro que o usuário compra como membro mensal"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Membro Anual de Grande Valor, a escolha mais econômica.",
|
||||
"description": "Descrição do tipo de membro, membro anual refere-se ao tipo de membro comprado pelo usuário como membro anual"
|
||||
"message": "Membro Anual Econômico, a escolha mais vantajosa.",
|
||||
"description": "Descrição do tipo de membro, membro anual refere-se ao tipo de membro que o usuário compra como membro anual"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Assine para Membro, Desbloqueie Todos os Serviços de IA do Site.",
|
||||
"message": "Assine o Membro, Desbloqueie Todos os Serviços de IA do Site.",
|
||||
"description": "Introdução ao membro refere-se à introdução do membro"
|
||||
}
|
||||
}
|
||||
+19
-19
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Рекомендуется",
|
||||
"description": "Текст кнопки, обозначающий рекомендуемую кнопку"
|
||||
"description": "Текст кнопки, указывающий на рекомендуемую кнопку"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Список заказов",
|
||||
"description": "Текст в меню сайта, заказы означают заказы на услуги, сделанные пользователем"
|
||||
"description": "Текст в меню сайта, заказы означают заказы пользователя на покупку услуг"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Список заявок",
|
||||
"description": "Текст в меню сайта, заявки означают заявки на использование услуг, сделанные пользователем"
|
||||
"description": "Текст в меню сайта, заявки означают заявки пользователя на использование услуг"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Профиль пользователя",
|
||||
@@ -17,15 +17,15 @@
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Проверка личности",
|
||||
"description": "Текст в меню сайта, проверка личности означает проверку личности пользователя"
|
||||
"description": "Текст в меню сайта, проверка личности означает верификацию личности пользователя"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Управление заявками",
|
||||
"description": "Текст в меню сайта, управление заявками означает управление заявками пользователя"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Рекомендованный доход",
|
||||
"description": "Текст в меню сайта, рекомендованный доход означает доход от рекомендаций пользователя"
|
||||
"message": "Реферальный доход",
|
||||
"description": "Текст в меню сайта, реферальный доход означает доход от рекомендаций пользователя"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Платформа разработчика",
|
||||
@@ -41,15 +41,15 @@
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Управление заказами",
|
||||
"description": "Текст в меню сайта, управление заказами означает управление заказами пользователя, заказы означают заказы на услуги, сделанные пользователем"
|
||||
"description": "Текст в меню сайта, управление заказами означает управление заказами пользователя, заказы означают заказы пользователя на покупку услуг"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Управление дистрибуцией",
|
||||
"description": "Текст в меню сайта, управление дистрибуцией означает управление статусом дистрибуции пользователя, связано с доходом от рекомендаций пользователя"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Поддержка эксклюзивного обслуживания клиентов",
|
||||
"description": "Текст на главной странице сайта, поддержка эксклюзивного обслуживания клиентов означает, что пользователь может получить поддержку от эксклюзивного обслуживания клиентов"
|
||||
"message": "Поддержка от персонального консультанта",
|
||||
"description": "Текст на главной странице сайта, поддержка от персонального консультанта означает, что пользователь может получить поддержку от персонального консультанта"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Приоритетный доступ к новым функциям",
|
||||
@@ -64,11 +64,11 @@
|
||||
"description": "Текст на главной странице сайта, подписка на членство означает, что пользователь может подписаться на членство"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Не хотите подписываться на членство на всем сайте? Вы также можете попробовать купить квоту отдельно.",
|
||||
"message": "Не хотите подписываться на периодическое членство? Вы также можете попробовать купить квоту отдельно.",
|
||||
"description": "Текст на главной странице сайта, не хотите подписываться означает, что пользователь не хочет подписываться на членство"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Не хотите покупать квоту? Вы также можете попробовать подписаться на пакет времени.",
|
||||
"message": "Не хотите покупать квоту? Вы также можете попробовать подписаться на периодическое членство.",
|
||||
"description": "Текст на главной странице сайта, не хотите покупать квоту означает, что пользователь не хочет покупать квоту"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
@@ -76,7 +76,7 @@
|
||||
"description": "Сообщение, отображаемое пользователю, когда заявка не найдена."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Подписка на членство, наслаждайтесь большими преимуществами",
|
||||
"message": "Подписка на членство, наслаждайтесь дополнительными преимуществами",
|
||||
"description": "Сообщение, отображаемое пользователю при подписке на услугу."
|
||||
},
|
||||
"subscription.3days": {
|
||||
@@ -85,31 +85,31 @@
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Пробное членство, подходит для краткосрочного использования.",
|
||||
"description": "Описание типа членства, подходит для краткосрочного использования"
|
||||
"description": "Тип членства, подходит для краткосрочного использования"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Еженедельное членство",
|
||||
"description": "Тип членства, еженедельное членство означает, что пользователь покупает еженедельное членство"
|
||||
"description": "Тип членства, еженедельное членство означает, что пользователь покупает членство на неделю"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Ежемесячное членство",
|
||||
"description": "Тип членства, ежемесячное членство означает, что пользователь покупает ежемесячное членство"
|
||||
"description": "Тип членства, ежемесячное членство означает, что пользователь покупает членство на месяц"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Годовое членство",
|
||||
"description": "Тип членства, годовое членство означает, что пользователь покупает годовое членство"
|
||||
"description": "Тип членства, годовое членство означает, что пользователь покупает членство на год"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Пробное еженедельное членство, подходит для краткосрочного использования.",
|
||||
"description": "Описание типа членства, еженедельное членство означает, что пользователь покупает еженедельное членство"
|
||||
"description": "Описание типа членства, еженедельное членство означает, что пользователь покупает членство на неделю"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Гибкое ежемесячное членство, подходит для долгосрочного использования.",
|
||||
"description": "Описание типа членства, ежемесячное членство означает, что пользователь покупает ежемесячное членство"
|
||||
"description": "Описание типа членства, ежемесячное членство означает, что пользователь покупает членство на месяц"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Выгодное годовое членство, самый экономичный выбор.",
|
||||
"description": "Описание типа членства, годовое членство означает, что пользователь покупает годовое членство"
|
||||
"description": "Описание типа членства, годовое членство означает, что пользователь покупает членство на год"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Подписка на членство, разблокируйте все AI-сервисы на сайте.",
|
||||
|
||||
+37
-37
@@ -1,87 +1,87 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "Preporučeno",
|
||||
"description": "Tekst na dugmetu, preporučeno označava preporučeno dugme"
|
||||
"description": "Tekst na dugmetu, koji označava preporučeno dugme"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "Lista narudžbina",
|
||||
"description": "Tekst u meniju sajta, narudžbina označava narudžbine korisnika za usluge"
|
||||
"description": "Tekst u meniju sajta, narudžbina označava narudžbine korisnika za kupovinu usluga"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Lista prijava",
|
||||
"description": "Tekst u meniju sajta, prijava označava prijave korisnika za korišćenje usluga"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Korisnički profil",
|
||||
"description": "Tekst u meniju sajta, korisnički profil označava lični profil korisnika"
|
||||
"message": "Profil korisnika",
|
||||
"description": "Tekst u meniju sajta, profil korisnika označava lični profil korisnika"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "Verifikacija identiteta",
|
||||
"description": "Tekst u meniju sajta, verifikacija identiteta označava proveru identiteta korisnika"
|
||||
"description": "Tekst u meniju sajta, verifikacija identiteta označava potvrdu identiteta korisnika"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "Upravljanje prijavama",
|
||||
"description": "Tekst u meniju sajta, upravljanje prijavama označava upravljanje prijavama korisnika"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "Preporučeni prihodi",
|
||||
"description": "Tekst u meniju sajta, preporučeni prihodi označava prihode od preporuka korisnika"
|
||||
"message": "Preporučena zarada",
|
||||
"description": "Tekst u meniju sajta, preporučena zarada označava zaradu koju korisnik ostvaruje preporukama"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "Platforma za developere",
|
||||
"description": "Tekst u meniju sajta, platforma za developere označava platformu za developere"
|
||||
"message": "Platforma za razvoj",
|
||||
"description": "Tekst u meniju sajta, platforma za razvoj označava platformu za programere"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "Istorija korišćenja",
|
||||
"description": "Tekst u meniju sajta, istorija korišćenja označava istoriju korišćenja API usluga korisnika"
|
||||
"message": "Istorijat upotrebe",
|
||||
"description": "Tekst u meniju sajta, istorijat upotrebe označava istoriju korišćenja API usluga korisnika"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "Akreditivi",
|
||||
"description": "Tekst u meniju sajta, akreditivi označava akreditive za pristup API-ju"
|
||||
"description": "Tekst u meniju sajta, akreditivi označavaju pristupne podatke za API"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "Upravljanje narudžbinama",
|
||||
"description": "Tekst u meniju sajta, upravljanje narudžbinama označava upravljanje narudžbinama korisnika, narudžbina označava narudžbine korisnika za usluge"
|
||||
"description": "Tekst u meniju sajta, upravljanje narudžbinama označava upravljanje narudžbinama korisnika, narudžbina označava korisnikovu kupovinu usluga"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "Upravljanje distribucijom",
|
||||
"description": "Tekst u meniju sajta, upravljanje distribucijom označava upravljanje statusom distribucije korisnika, povezano sa prihodima od preporuka korisnika"
|
||||
"description": "Tekst u meniju sajta, upravljanje distribucijom označava upravljanje statusom distribucije korisnika, povezano sa korisnikovom preporučenom zaradom"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "Ekskluzivna podrška korisničkog servisa",
|
||||
"description": "Tekst na početnoj stranici sajta, ekskluzivna podrška korisničkog servisa označava da korisnik može dobiti podršku korisničkog servisa"
|
||||
"message": "Podrška ekskluzivnog korisničkog servisa",
|
||||
"description": "Tekst na početnoj stranici, označava da korisnik može dobiti podršku ekskluzivnog korisničkog servisa"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "Prioritetno isprobavanje novih funkcija",
|
||||
"description": "Tekst na početnoj stranici sajta, prioritetno isprobavanje novih funkcija označava da korisnik može prioritetno isprobati nove funkcije"
|
||||
"message": "Prioritetni pristup novim funkcijama",
|
||||
"description": "Tekst na početnoj stranici, označava da korisnik može imati prioritetni pristup novim funkcijama"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "Kupi dodatno",
|
||||
"description": "Tekst na početnoj stranici sajta, kupovina dodatnog kredita označava da korisnik može kupiti dodatni kredit"
|
||||
"description": "Tekst na početnoj stranici, kupovina kredita označava da korisnik može kupiti dodatne kredite"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "Pretplati se",
|
||||
"description": "Tekst na početnoj stranici sajta, pretplata na članstvo označava da korisnik može pretplatiti članstvo"
|
||||
"description": "Tekst na početnoj stranici, pretplata člana označava da korisnik može postati član pretplatom"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Ne želite da se pretplatite na članstvo? Možete pokušati da kupite dodatni kredit.",
|
||||
"description": "Tekst na početnoj stranici sajta, ne želi pretplatu označava da korisnik ne želi da se pretplati na članstvo"
|
||||
"message": "Ne želite pretplatu? Možete i pojedinačno kupiti kredite.",
|
||||
"description": "Tekst na početnoj stranici, ne želite pretplatu označava da korisnik ne želi da se pretplati"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Ne želite da kupite dodatni kredit? Možete pokušati da se pretplatite na vremenski paket.",
|
||||
"description": "Tekst na početnoj stranici sajta, ne želi kupovinu dodatnog kredita označava da korisnik ne želi da kupi dodatni kredit"
|
||||
"message": "Ne želite da kupite kredite? Možete isprobati pretplatu na periodični članstvo.",
|
||||
"description": "Tekst na početnoj stranici, ne želite kupovinu kredit označava da korisnik ne želi kupiti kredite"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "Prijava ne postoji",
|
||||
"description": "Poruka prikazana korisniku kada prijava ne postoji."
|
||||
"message": "Prijava nije pronađena",
|
||||
"description": "Poruka prikazana korisniku kada prijava nije pronađena."
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "Pretplatite se na članstvo i uživajte u više pogodnosti",
|
||||
"message": "Pretplata na članstvo, uživajte u dodatnim pogodnostima",
|
||||
"description": "Poruka prikazana korisniku kada se pretplati na uslugu."
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "3-dnevno probno članstvo",
|
||||
"description": "Tip članstva, 3-dnevno probno članstvo"
|
||||
"message": "3 dana probnog članstva",
|
||||
"description": "Tip članstva, 3 dana probnog članstva"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Probno članstvo, pogodno za kratkotrajnu upotrebu.",
|
||||
@@ -89,30 +89,30 @@
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Nedeljno članstvo",
|
||||
"description": "Tip članstva, nedeljno članstvo označava da korisnik kupuje članstvo na nedeljnom nivou"
|
||||
"description": "Tip članstva, nedeljno članstvo označava vrstu članstva koju korisnik kupuje"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Mesečno članstvo",
|
||||
"description": "Tip članstva, mesečno članstvo označava da korisnik kupuje članstvo na mesečnom nivou"
|
||||
"description": "Tip članstva, mesečno članstvo označava vrstu članstva koju korisnik kupuje"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Godišnje članstvo",
|
||||
"description": "Tip članstva, godišnje članstvo označava da korisnik kupuje članstvo na godišnjem nivou"
|
||||
"description": "Tip članstva, godišnje članstvo označava vrstu članstva koju korisnik kupuje"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Probno nedeljno članstvo, pogodno za kratkotrajnu upotrebu.",
|
||||
"description": "Opis tipa članstva, nedeljno članstvo označava da korisnik kupuje članstvo na nedeljnom nivou"
|
||||
"description": "Opis tipa članstva, nedeljno članstvo označava vrstu članstva koju korisnik kupuje"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Fleksibilno mesečno članstvo, pogodno za dugotrajnu upotrebu.",
|
||||
"description": "Opis tipa članstva, mesečno članstvo označava da korisnik kupuje članstvo na mesečnom nivou"
|
||||
"description": "Opis tipa članstva, mesečno članstvo označava vrstu članstva koju korisnik kupuje"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Izuzetno povoljno godišnje članstvo, najisplativiji izbor.",
|
||||
"description": "Opis tipa članstva, godišnje članstvo označava da korisnik kupuje članstvo na godišnjem nivou"
|
||||
"message": "Izuzetno povoljno godišnje članstvo, najisplativija opcija.",
|
||||
"description": "Opis tipa članstva, godišnje članstvo označava vrstu članstva koju korisnik kupuje"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Pretplatite se na članstvo i otključajte sve AI usluge na sajtu.",
|
||||
"description": "Uvod u članstvo označava uvod u članstvo"
|
||||
"description": "Uvod u članstvo označava predstavljanje članstva"
|
||||
}
|
||||
}
|
||||
+13
-13
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "Ansökningslista",
|
||||
"description": "Text i webbplatsmenyn, ansökan betyder användarens ansökan om att använda tjänster"
|
||||
"description": "Text i webbplatsmenyn, ansökan betyder användarens ansökan om tjänster"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "Användarprofil",
|
||||
@@ -64,15 +64,15 @@
|
||||
"description": "Text på webbplatsens startsida, prenumerera betyder att användaren kan prenumerera på medlemskap"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Vill du inte prenumerera på hela webbplatsens medlemskap? Du kan också prova att köpa extra kvoter separat.",
|
||||
"message": "Vill du inte prenumerera på medlemskap? Du kan också prova att köpa extra kvoter.",
|
||||
"description": "Text på webbplatsens startsida, vill inte prenumerera betyder att användaren inte vill prenumerera på medlemskap"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Vill du inte köpa extra kvoter? Du kan också prova att prenumerera på tidsbaserade paket.",
|
||||
"message": "Vill du inte köpa extra kvoter? Du kan också prova att prenumerera på medlemskap.",
|
||||
"description": "Text på webbplatsens startsida, vill inte köpa extra kvoter betyder att användaren inte vill köpa extra kvoter"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "Ansökan finns inte",
|
||||
"message": "Ansökan hittades inte",
|
||||
"description": "Meddelande som visas för användaren när ansökan inte finns."
|
||||
},
|
||||
"subscription.title": {
|
||||
@@ -85,34 +85,34 @@
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "Prova på medlemskap, lämpligt för kortvarig användning.",
|
||||
"description": "Beskrivning av medlemstyp, lämpligt för kortvarig användning"
|
||||
"description": "Medlemstyp, lämpligt för kortvarig användning"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "Veckomedlemskap",
|
||||
"description": "Medlemstyp, veckomedlemskap betyder att användaren har köpt ett veckomedlemskap"
|
||||
"description": "Medlemstyp, veckomedlemskap betyder att användaren köper ett veckomedlemskap"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "Månadsmedlemskap",
|
||||
"description": "Medlemstyp, månadsmedlemskap betyder att användaren har köpt ett månadsmedlemskap"
|
||||
"description": "Medlemstyp, månadsmedlemskap betyder att användaren köper ett månadsmedlemskap"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "Årsmedlemskap",
|
||||
"description": "Medlemstyp, årsmedlemskap betyder att användaren har köpt ett årsmedlemskap"
|
||||
"description": "Medlemstyp, årsmedlemskap betyder att användaren köper ett årsmedlemskap"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "Prova på veckomedlemskap, lämpligt för kortvarig användning.",
|
||||
"description": "Beskrivning av medlemstyp, veckomedlemskap betyder att användaren har köpt ett veckomedlemskap"
|
||||
"description": "Beskrivning av medlemstyp, veckomedlemskap betyder att användaren köper ett veckomedlemskap"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "Flexibelt månadsmedlemskap, lämpligt för långvarig användning.",
|
||||
"description": "Beskrivning av medlemstyp, månadsmedlemskap betyder att användaren har köpt ett månadsmedlemskap"
|
||||
"description": "Beskrivning av medlemstyp, månadsmedlemskap betyder att användaren köper ett månadsmedlemskap"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "Prisvärt årsmedlemskap, det mest ekonomiska valet.",
|
||||
"description": "Beskrivning av medlemstyp, årsmedlemskap betyder att användaren har köpt ett årsmedlemskap"
|
||||
"description": "Beskrivning av medlemstyp, årsmedlemskap betyder att användaren köper ett årsmedlemskap"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Prenumerera på medlemskap och lås upp alla AI-tjänster på webbplatsen.",
|
||||
"description": "Medlemskapsintroduktion betyder introduktion av medlemskap"
|
||||
"message": "Prenumerera på medlemskap och lås upp alla AI-tjänster på hela webbplatsen.",
|
||||
"description": "Medlemsintroduktion betyder introduktion av medlemskap"
|
||||
}
|
||||
}
|
||||
@@ -64,11 +64,11 @@
|
||||
"description": "Текст на головній сторінці сайту, підписка на членство означає, що користувач може підписатися на членство"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "Не хочете підписуватися на членство? Ви також можете спробувати придбати квоту окремо.",
|
||||
"message": "Не хочете підписуватися на періодичне членство? Ви також можете спробувати придбати квоту окремо.",
|
||||
"description": "Текст на головній сторінці сайту, не хочете підписуватися означає, що користувач не хоче підписуватися на членство"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "Не хочете купувати квоту? Ви також можете спробувати підписатися на пакет тривалості.",
|
||||
"message": "Не хочете купувати квоту? Ви також можете спробувати підписатися на періодичне членство.",
|
||||
"description": "Текст на головній сторінці сайту, не хочете купувати квоту означає, що користувач не хоче купувати квоту"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
@@ -113,6 +113,6 @@
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "Підписка на членство, розблокуйте всі AI послуги на сайті.",
|
||||
"description": "Опис членства, що представляє членство"
|
||||
"description": "Опис членства"
|
||||
}
|
||||
}
|
||||
@@ -64,11 +64,11 @@
|
||||
"description": "网站首页的文本,订阅会员表示用户可以订阅会员"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "不想订阅全站会员?您也可以尝试单独购买额度。",
|
||||
"message": "不想订阅周期会员?您也可以尝试单独购买额度。",
|
||||
"description": "网站首页的文本,不想订阅表示用户不想订阅会员"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "不想购买额度?您也可以尝试订阅时长套餐。",
|
||||
"message": "不想购买额度?您也可以尝试订阅周期会员。",
|
||||
"description": "网站首页的文本,不想购买额度表示用户不想购买额度"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
|
||||
+33
-33
@@ -1,118 +1,118 @@
|
||||
{
|
||||
"button.suggested": {
|
||||
"message": "推薦",
|
||||
"description": "按钮文本,推荐表示推荐的按钮"
|
||||
"description": "按鈕文本,推薦表示推薦的按鈕"
|
||||
},
|
||||
"menu.orderList": {
|
||||
"message": "訂單列表",
|
||||
"description": "网站菜单中的文本,订单表示用户购买服务的订单"
|
||||
"description": "網站菜單中的文本,訂單表示用戶購買服務的訂單"
|
||||
},
|
||||
"menu.applicationList": {
|
||||
"message": "申請列表",
|
||||
"description": "网站菜单中的文本,申请表示用户使用服务的申请"
|
||||
"description": "網站菜單中的文本,申請表示用戶使用服務的申請"
|
||||
},
|
||||
"menu.userProfile": {
|
||||
"message": "用戶資料",
|
||||
"description": "网站菜单中的文本,用户资料表示用户的个人资料"
|
||||
"description": "網站菜單中的文本,用戶資料表示用戶的個人資料"
|
||||
},
|
||||
"menu.idVerify": {
|
||||
"message": "身份驗證",
|
||||
"description": "网站菜单中的文本,身份验证表示用户身份的验证"
|
||||
"description": "網站菜單中的文本,身份驗證表示用戶身份的驗證"
|
||||
},
|
||||
"menu.manageApplication": {
|
||||
"message": "申請管理",
|
||||
"description": "网站菜单中的文本,申请管理表示用户申请的管理"
|
||||
"description": "網站菜單中的文本,申請管理表示用戶申請的管理"
|
||||
},
|
||||
"menu.distributionIndex": {
|
||||
"message": "推薦收益",
|
||||
"description": "网站菜单中的文本,推荐收益表示用户推荐的收益"
|
||||
"description": "網站菜單中的文本,推薦收益表示用戶推薦的收益"
|
||||
},
|
||||
"menu.developerPlatform": {
|
||||
"message": "開發者平台",
|
||||
"description": "网站菜单中的文本,开发者平台表示开发者的平台"
|
||||
"description": "網站菜單中的文本,開發者平台表示開發者的平台"
|
||||
},
|
||||
"menu.usageList": {
|
||||
"message": "使用記錄",
|
||||
"description": "网站菜单中的文本,使用记录表示用户使用 API 服务的历史记录"
|
||||
"description": "網站菜單中的文本,使用記錄表示用戶使用 API 服務的歷史記錄"
|
||||
},
|
||||
"menu.credentialIndex": {
|
||||
"message": "憑證",
|
||||
"description": "网站菜单中的文本,凭证表示访问 API 的凭证"
|
||||
"description": "網站菜單中的文本,憑證表示訪問 API 的憑證"
|
||||
},
|
||||
"menu.manageOrder": {
|
||||
"message": "訂單管理",
|
||||
"description": "网站菜单中的文本,订单管理表示用户订单的管理,订单表示用户购买服务的订单"
|
||||
"description": "網站菜單中的文本,訂單管理表示用戶訂單的管理,訂單表示用戶購買服務的訂單"
|
||||
},
|
||||
"menu.manageDistributionStatus": {
|
||||
"message": "分銷管理",
|
||||
"description": "网站菜单中的文本,分销管理表示用户分销状态的管理,与用户推荐的收益相关"
|
||||
"description": "網站菜單中的文本,分銷管理表示用戶分銷狀態的管理,與用戶推薦的收益相關"
|
||||
},
|
||||
"message.benefit1": {
|
||||
"message": "專屬客服答疑支持",
|
||||
"description": "网站首页的文本,专属客服答疑支持表示用户可以获得专属客服的答疑支持"
|
||||
"description": "網站首頁的文本,專屬客服答疑支持表示用戶可以獲得專屬客服的答疑支持"
|
||||
},
|
||||
"message.benefit2": {
|
||||
"message": "優先體驗新功能",
|
||||
"description": "网站首页的文本,优先体验新功能表示用户可以优先体验新功能"
|
||||
"description": "網站首頁的文本,優先體驗新功能表示用戶可以優先體驗新功能"
|
||||
},
|
||||
"message.buyExtra": {
|
||||
"message": "去購買",
|
||||
"description": "网站首页的文本,购买额度表示用户可以购买额度"
|
||||
"description": "網站首頁的文本,購買額度表示用戶可以購買額度"
|
||||
},
|
||||
"message.subscribe": {
|
||||
"message": "去訂閱",
|
||||
"description": "网站首页的文本,订阅会员表示用户可以订阅会员"
|
||||
"description": "網站首頁的文本,訂閱會員表示用戶可以訂閱會員"
|
||||
},
|
||||
"message.doNotWantSubscribe": {
|
||||
"message": "不想訂閱全站會員?您也可以嘗試單獨購買額度。",
|
||||
"description": "网站首页的文本,不想订阅表示用户不想订阅会员"
|
||||
"message": "不想訂閱周期會員?您也可以嘗試單獨購買額度。",
|
||||
"description": "網站首頁的文本,不想訂閱表示用戶不想訂閱會員"
|
||||
},
|
||||
"message.doNotWantExtra": {
|
||||
"message": "不想購買額度?您也可以嘗試訂閱時長套餐。",
|
||||
"description": "网站首页的文本,不想购买额度表示用户不想购买额度"
|
||||
"message": "不想購買額度?您也可以嘗試訂閱周期會員。",
|
||||
"description": "網站首頁的文本,不想購買額度表示用戶不想購買額度"
|
||||
},
|
||||
"message.applicationNotFound": {
|
||||
"message": "申請不存在",
|
||||
"description": "当申请不存在时向用户显示的消息。"
|
||||
"description": "當申請不存在時向用戶顯示的消息。"
|
||||
},
|
||||
"subscription.title": {
|
||||
"message": "訂閱會員,享受更多權益",
|
||||
"description": "当用户订阅服务时向用户显示的消息。"
|
||||
"description": "當用戶訂閱服務時向用戶顯示的消息。"
|
||||
},
|
||||
"subscription.3days": {
|
||||
"message": "3天體驗會員",
|
||||
"description": "会员类型,3天体验会员"
|
||||
"description": "會員類型,3天體驗會員"
|
||||
},
|
||||
"subscription.3days.description": {
|
||||
"message": "嘗鮮會員,適合短期使用。",
|
||||
"description": "会员类型,适合短期使用"
|
||||
"description": "會員類型,適合短期使用"
|
||||
},
|
||||
"subscription.weekly": {
|
||||
"message": "週會員",
|
||||
"description": "会员类型,周会员表示用户购买的会员类型为周会员"
|
||||
"message": "周會員",
|
||||
"description": "會員類型,周會員表示用戶購買的會員類型為周會員"
|
||||
},
|
||||
"subscription.monthly": {
|
||||
"message": "月會員",
|
||||
"description": "会员类型,月会员表示用户购买的会员类型为月会员"
|
||||
"description": "會員類型,月會員表示用戶購買的會員類型為月會員"
|
||||
},
|
||||
"subscription.yearly": {
|
||||
"message": "年會員",
|
||||
"description": "会员类型,年会员表示用户购买的会员类型为年会员"
|
||||
"description": "會員類型,年會員表示用戶購買的會員類型為年會員"
|
||||
},
|
||||
"subscription.weekly.description": {
|
||||
"message": "嘗鮮週會員,適合短期使用。",
|
||||
"description": "会员类型的描述,周会员表示用户购买的会员类型为周会员"
|
||||
"message": "嘗鮮周會員,適合短期使用。",
|
||||
"description": "會員類型的描述,周會員表示用戶購買的會員類型為周會員"
|
||||
},
|
||||
"subscription.monthly.description": {
|
||||
"message": "靈活月會員,適合長期使用。",
|
||||
"description": "会员类型的描述,月会员表示用户购买的会员类型为月会员"
|
||||
"description": "會員類型的描述,月會員表示用戶購買的會員類型為月會員"
|
||||
},
|
||||
"subscription.yearly.description": {
|
||||
"message": "超值年會員,最划算的選擇。",
|
||||
"description": "会员类型的描述,年会员表示用户购买的会员类型为年会员"
|
||||
"description": "會員類型的描述,年會員表示用戶購買的會員類型為年會員"
|
||||
},
|
||||
"subscription.introduction": {
|
||||
"message": "訂閱會員,解鎖全站所有 AI 服務。",
|
||||
"description": "会员介绍表示会员的介绍"
|
||||
"description": "會員介紹表示會員的介紹"
|
||||
}
|
||||
}
|
||||
@@ -78,6 +78,9 @@ export default defineComponent({
|
||||
application() {
|
||||
return this.$store.state.luma.application;
|
||||
},
|
||||
applications() {
|
||||
return this.$store.state.luma.applications;
|
||||
},
|
||||
tasks() {
|
||||
return this.$store.state.luma.tasks;
|
||||
}
|
||||
|
||||
+119
-122
@@ -1,36 +1,30 @@
|
||||
import { applicationOperator, chatOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, chatOperator, credentialOperator, serviceOperator } from '@/operators';
|
||||
import { IRootState } from '../common/models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IChatState } from './models';
|
||||
import {
|
||||
IApplication,
|
||||
IApplicationType,
|
||||
IChatConversation,
|
||||
IChatModel,
|
||||
IChatModelGroup,
|
||||
ICredential,
|
||||
IService,
|
||||
Status
|
||||
} from '@/models';
|
||||
import { IApplication, IChatConversation, IChatModel, IChatModelGroup, ICredential, IService, Status } from '@/models';
|
||||
import { CHAT_SERVICE_ID } from '@/constants';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IChatState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setModel = async ({ commit }: any, payload: IChatModel): Promise<void> => {
|
||||
commit('setModel', payload);
|
||||
};
|
||||
|
||||
export const setModelGroup = async ({ commit }: any, payload: IChatModelGroup): Promise<void> => {
|
||||
commit('setModelGroup', payload);
|
||||
};
|
||||
|
||||
export const setApplication = async ({ commit }: any, payload: IApplication): Promise<void> => {
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
@@ -43,16 +37,86 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setConversations = async ({ commit }: any, payload: IChatConversation[]): Promise<void> => {
|
||||
console.debug('set conversations', payload);
|
||||
commit('setConversations', payload);
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IChatState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(CHAT_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IChatState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: CHAT_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setModel = async ({ commit }: any, payload: IChatModel): Promise<void> => {
|
||||
commit('setModel', payload);
|
||||
};
|
||||
|
||||
export const setModelGroup = async ({ commit }: any, payload: IChatModelGroup): Promise<void> => {
|
||||
commit('setModelGroup', payload);
|
||||
};
|
||||
|
||||
export const setConversation = async ({ commit, state }: any, payload: IChatConversation): Promise<void> => {
|
||||
console.debug('set conversation', payload);
|
||||
const conversations = state.conversations || [];
|
||||
@@ -66,72 +130,9 @@ export const setConversation = async ({ commit, state }: any, payload: IChatConv
|
||||
console.debug('set conversation success', conversations);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IChatState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for chat');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(CHAT_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IChatState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for chat');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: CHAT_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
export const setConversations = async ({ commit }: any, payload: IChatConversation[]): Promise<void> => {
|
||||
console.debug('set conversations', payload);
|
||||
commit('setConversations', payload);
|
||||
};
|
||||
|
||||
export const getConversations = async ({
|
||||
@@ -139,40 +140,36 @@ export const getConversations = async ({
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IChatState, IRootState>): Promise<IChatConversation[]> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getConversations = Status.Request;
|
||||
const credential = state.credential;
|
||||
console.debug('credential', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
state.status.getConversations = Status.Error;
|
||||
return reject(new Error('Token not found'));
|
||||
}
|
||||
chatOperator
|
||||
.getConversations(
|
||||
{
|
||||
userId: rootState.user?.id
|
||||
},
|
||||
{
|
||||
token
|
||||
}
|
||||
)
|
||||
.then((response) => {
|
||||
console.debug('get conversations success', response.data?.items?.length);
|
||||
commit('setConversations', response.data.items);
|
||||
const conversations = response.data.items;
|
||||
resolve(conversations);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getConversations = Status.Error;
|
||||
commit('setConversations', []);
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
state.status.getConversations = Status.Request;
|
||||
const credential = state.credential;
|
||||
console.debug('credential', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
state.status.getConversations = Status.Error;
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
const { data } = await chatOperator.getConversations(
|
||||
{
|
||||
userId: rootState.user?.id
|
||||
},
|
||||
{
|
||||
token
|
||||
}
|
||||
);
|
||||
console.debug('get conversations success', data?.items?.length);
|
||||
commit('setConversations', data.items);
|
||||
return data.items;
|
||||
} catch (error) {
|
||||
state.status.getConversations = Status.Error;
|
||||
commit('setConversations', []);
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
resetAll,
|
||||
createCredential,
|
||||
setModel,
|
||||
setModelGroup,
|
||||
getService,
|
||||
|
||||
@@ -9,19 +9,36 @@ import {
|
||||
IChatdocRepository,
|
||||
ICredential,
|
||||
IService,
|
||||
Status,
|
||||
IApplicationType
|
||||
Status
|
||||
} from '@/models';
|
||||
import { chatdocOperator, applicationOperator, serviceOperator } from '@/operators';
|
||||
import { chatdocOperator, applicationOperator, serviceOperator, credentialOperator } from '@/operators';
|
||||
import { CHATDOC_SERVICE_ID } from '@/constants';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const setApplication = async ({ commit }: any, payload: IApplication): Promise<void> => {
|
||||
commit('setApplication', payload);
|
||||
export const resetAll = ({ commit }: ActionContext<IChatdocState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -29,61 +46,76 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setRepository = async ({ commit }: any, payload: { repository: IChatdocRepository }): Promise<void> => {
|
||||
commit('setRepository', payload);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IChatdocState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(CHATDOC_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IChatdocState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for chatdoc');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: CHATDOC_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IChatdocState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
}: ActionContext<IChatdocState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: CHATDOC_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getRepositories = async ({
|
||||
@@ -152,24 +184,6 @@ export const deleteDocument = async (
|
||||
return document;
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IChatdocState, IRootState>): Promise<IService> => {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
console.debug('start to get service for chatdoc');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(CHATDOC_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const createRepository = async (
|
||||
{ state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: {
|
||||
@@ -317,7 +331,12 @@ export const getRepository = async (
|
||||
return repository;
|
||||
};
|
||||
|
||||
export const setRepository = async ({ commit }: any, payload: { repository: IChatdocRepository }): Promise<void> => {
|
||||
commit('setRepository', payload);
|
||||
};
|
||||
|
||||
export default {
|
||||
createCredential,
|
||||
setService,
|
||||
setConversation,
|
||||
getService,
|
||||
|
||||
@@ -44,7 +44,7 @@ export const setFingerprint = ({ commit }: ActionContext<IRootState, IRootState>
|
||||
commit('setFingerprint', payload);
|
||||
};
|
||||
|
||||
export const getUser = async ({ commit }: ActionContext<IRootState, IRootState>): Promise<IUser> => {
|
||||
export const getUser = async ({ commit }: ActionContext<IRootState, IRootState>): Promise<IUser | undefined> => {
|
||||
console.debug('start to get user');
|
||||
try {
|
||||
commit('resetUser');
|
||||
@@ -54,6 +54,7 @@ export const getUser = async ({ commit }: ActionContext<IRootState, IRootState>)
|
||||
return user;
|
||||
} catch (error) {
|
||||
console.error('get user failed', error);
|
||||
return undefined;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+88
-75
@@ -1,23 +1,37 @@
|
||||
import { applicationOperator, fluxOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, credentialOperator, fluxOperator, serviceOperator } from '@/operators';
|
||||
import { IFluxState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, ICredential, IFluxConfig, IFluxTask, IService, IApplicationType } from '@/models';
|
||||
import { IApplication, ICredential, IFluxConfig, IFluxTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { FLUX_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IFluxState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IFluxConfig) => {
|
||||
commit('setConfig', payload);
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -25,64 +39,80 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IFluxState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(FLUX_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IFluxState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for flux');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: FLUX_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}: ActionContext<IFluxState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: FLUX_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IFluxConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: any) => {
|
||||
@@ -101,24 +131,6 @@ export const setTasksActive = ({ commit }: any, payload: IFluxTask) => {
|
||||
commit('setTasksActive', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IFluxState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for flux');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(FLUX_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<IFluxState, IRootState>,
|
||||
{
|
||||
@@ -167,6 +179,7 @@ export const getTasks = async (
|
||||
};
|
||||
|
||||
export default {
|
||||
createCredential,
|
||||
setService,
|
||||
getService,
|
||||
resetAll,
|
||||
|
||||
@@ -1 +1 @@
|
||||
export default ['flux.credential', 'flux.application'];
|
||||
export default ['flux.credential', 'flux.application', 'flux.applications'];
|
||||
+89
-76
@@ -1,23 +1,37 @@
|
||||
import { applicationOperator, hailuoOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, credentialOperator, hailuoOperator, serviceOperator } from '@/operators';
|
||||
import { IHailuoState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, ICredential, IHailuoConfig, IHailuoTask, IService, IApplicationType } from '@/models';
|
||||
import { IApplication, ICredential, IHailuoConfig, IHailuoTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { HAILUO_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IHailuoState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IHailuoConfig) => {
|
||||
commit('setConfig', payload);
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -25,64 +39,80 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IHailuoState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(HAILUO_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IHailuoState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for hailuo');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: HAILUO_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}: ActionContext<IHailuoState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: HAILUO_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IHailuoConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: any) => {
|
||||
@@ -101,24 +131,6 @@ export const setTasksActive = ({ commit }: any, payload: IHailuoTask) => {
|
||||
commit('setTasksActive', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IHailuoState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for hailuo');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(HAILUO_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<IHailuoState, IRootState>,
|
||||
{
|
||||
@@ -179,5 +191,6 @@ export default {
|
||||
setTasksItems,
|
||||
setTasksTotal,
|
||||
setTasksActive,
|
||||
getTasks
|
||||
getTasks,
|
||||
createCredential
|
||||
};
|
||||
@@ -1 +1 @@
|
||||
export default ['hailuo.credential', 'hailuo.application'];
|
||||
export default ['hailuo.credential', 'hailuo.application', 'hailuo.applications'];
|
||||
@@ -1,23 +1,37 @@
|
||||
import { applicationOperator, headshotsOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, credentialOperator, headshotsOperator, serviceOperator } from '@/operators';
|
||||
import { IHeadshotsState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, ICredential, IHeadshotsConfig, IHeadshotsTask, IService, IApplicationType } from '@/models';
|
||||
import { IApplication, ICredential, IHeadshotsConfig, IHeadshotsTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { HEADSHOTS_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IHeadshotsState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IHeadshotsConfig) => {
|
||||
commit('setConfig', payload);
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -25,64 +39,80 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IHeadshotsState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(HEADSHOTS_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IHeadshotsState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for headshots');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: HEADSHOTS_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}: ActionContext<IHeadshotsState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: HEADSHOTS_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IHeadshotsConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: any) => {
|
||||
@@ -101,24 +131,6 @@ export const setTasksActive = ({ commit }: any, payload: IHeadshotsTask) => {
|
||||
commit('setTasksActive', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IHeadshotsState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for headshots');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(HEADSHOTS_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<IHeadshotsState, IRootState>,
|
||||
{
|
||||
@@ -178,5 +190,6 @@ export default {
|
||||
setTasksItems,
|
||||
setTasksTotal,
|
||||
setTasksActive,
|
||||
getTasks
|
||||
getTasks,
|
||||
createCredential
|
||||
};
|
||||
@@ -1 +1 @@
|
||||
export default ['headshots.credential', 'headshots.application'];
|
||||
export default ['headshots.credential', 'headshots.application', 'headshots.applications'];
|
||||
+90
-76
@@ -1,23 +1,37 @@
|
||||
import { applicationOperator, lumaOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, credentialOperator, lumaOperator, serviceOperator } from '@/operators';
|
||||
import { ILumaState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, ICredential, ILumaConfig, ILumaTask, IService, IApplicationType } from '@/models';
|
||||
import { IApplication, ICredential, ILumaConfig, ILumaTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { LUMA_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<ILumaState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: ILumaConfig) => {
|
||||
commit('setConfig', payload);
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -25,64 +39,81 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<ILumaState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(LUMA_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<ILumaState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for luma');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: LUMA_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}: ActionContext<ILumaState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: LUMA_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
console.debug('get applications success', applications.items);
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: ILumaConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: any) => {
|
||||
@@ -101,24 +132,6 @@ export const setTasksActive = ({ commit }: any, payload: ILumaTask) => {
|
||||
commit('setTasksActive', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<ILumaState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for luma');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(LUMA_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<ILumaState, IRootState>,
|
||||
{
|
||||
@@ -178,5 +191,6 @@ export default {
|
||||
setTasksItems,
|
||||
setTasksTotal,
|
||||
setTasksActive,
|
||||
getTasks
|
||||
getTasks,
|
||||
createCredential
|
||||
};
|
||||
@@ -1 +1 @@
|
||||
export default ['luma.credential', 'luma.application'];
|
||||
export default ['luma.credential', 'luma.application', 'luma.applications'];
|
||||
+104
-91
@@ -1,16 +1,116 @@
|
||||
import { applicationOperator, midjourneyOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, credentialOperator, midjourneyOperator, serviceOperator } from '@/operators';
|
||||
import { IMidjourneyState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, IApplicationType, ICredential, IMidjourneyConfig, IMidjourneyTask, IService } from '@/models';
|
||||
import { IApplication, ICredential, IMidjourneyConfig, IMidjourneyTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { MIDJOURNEY_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IMidjourneyState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
console.debug('set service', payload);
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IMidjourneyState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(MIDJOURNEY_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IMidjourneyState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: MIDJOURNEY_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setTasksItems = ({ commit }: any, payload: IMidjourneyTask[]) => {
|
||||
commit('setTasksItems', payload);
|
||||
};
|
||||
@@ -19,11 +119,6 @@ export const setTasksTotal = ({ commit }: any, payload: number) => {
|
||||
commit('setTasksTotal', payload);
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug(setCredential, 'set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IMidjourneyConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
@@ -32,93 +127,10 @@ export const setMode = ({ commit }: any, payload: string) => {
|
||||
commit('setMode', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
console.debug('set service', payload);
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IMidjourneyState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for midjourney');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: MIDJOURNEY_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: IMidjourneyTask[]) => {
|
||||
commit('setTasks', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IMidjourneyState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for midjourney');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(MIDJOURNEY_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<IMidjourneyState, IRootState>,
|
||||
{
|
||||
@@ -177,5 +189,6 @@ export default {
|
||||
setApplications,
|
||||
getApplications,
|
||||
setTasks,
|
||||
getTasks
|
||||
getTasks,
|
||||
createCredential
|
||||
};
|
||||
@@ -1 +1,7 @@
|
||||
export default ['midjourney.config', 'midjourney.credential', 'midjourney.mode', 'midjourney.application'];
|
||||
export default [
|
||||
'midjourney.config',
|
||||
'midjourney.credential',
|
||||
'midjourney.mode',
|
||||
'midjourney.application',
|
||||
'midjourney.applications'
|
||||
];
|
||||
+89
-76
@@ -1,23 +1,37 @@
|
||||
import { applicationOperator, pikaOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, credentialOperator, pikaOperator, serviceOperator } from '@/operators';
|
||||
import { IPikaState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, ICredential, IPikaConfig, IPikaTask, IService, IApplicationType } from '@/models';
|
||||
import { IApplication, ICredential, IPikaConfig, IPikaTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { PIKA_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IPikaState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IPikaConfig) => {
|
||||
commit('setConfig', payload);
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -25,64 +39,80 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IPikaState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(PIKA_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IPikaState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for pika');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: PIKA_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}: ActionContext<IPikaState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: PIKA_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IPikaConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: any) => {
|
||||
@@ -101,24 +131,6 @@ export const setTasksActive = ({ commit }: any, payload: IPikaTask) => {
|
||||
commit('setTasksActive', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IPikaState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for pika');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(PIKA_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<IPikaState, IRootState>,
|
||||
{
|
||||
@@ -179,5 +191,6 @@ export default {
|
||||
setTasksItems,
|
||||
setTasksTotal,
|
||||
setTasksActive,
|
||||
getTasks
|
||||
getTasks,
|
||||
createCredential
|
||||
};
|
||||
@@ -1 +1 @@
|
||||
export default ['pika.credential', 'pika.application'];
|
||||
export default ['pika.credential', 'pika.application', 'pika.applications'];
|
||||
+89
-76
@@ -1,23 +1,37 @@
|
||||
import { applicationOperator, qrartOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, credentialOperator, qrartOperator, serviceOperator } from '@/operators';
|
||||
import { IQrartState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, IApplicationType, ICredential, IQrartConfig, IQrartTask, IService } from '@/models';
|
||||
import { IApplication, ICredential, IQrartConfig, IQrartTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { QRART_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IQrartState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IQrartConfig) => {
|
||||
commit('setConfig', payload);
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -25,64 +39,80 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IQrartState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(QRART_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IQrartState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for qrart');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: QRART_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}: ActionContext<IQrartState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: QRART_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: IQrartConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: any) => {
|
||||
@@ -101,24 +131,6 @@ export const setTasksActive = ({ commit }: any, payload: IQrartTask) => {
|
||||
commit('setTasksActive', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<IQrartState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for qrart');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(QRART_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<IQrartState, IRootState>,
|
||||
{
|
||||
@@ -178,5 +190,6 @@ export default {
|
||||
setTasksItems,
|
||||
setTasksTotal,
|
||||
setTasksActive,
|
||||
getTasks
|
||||
getTasks,
|
||||
createCredential
|
||||
};
|
||||
@@ -1 +1 @@
|
||||
export default ['qrart.config', 'qrart.credential', 'qrart.application'];
|
||||
export default ['qrart.config', 'qrart.credential', 'qrart.application', 'qrart.applications'];
|
||||
+89
-76
@@ -1,23 +1,37 @@
|
||||
import { applicationOperator, sunoOperator, serviceOperator } from '@/operators';
|
||||
import { applicationOperator, sunoOperator, serviceOperator, credentialOperator } from '@/operators';
|
||||
import { ISunoState } from './models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IRootState } from '../common/models';
|
||||
import { IApplication, ICredential, ISunoConfig, ISunoTask, IService, Song, IApplicationType } from '@/models';
|
||||
import { IApplication, ICredential, ISunoConfig, ISunoTask, IService } from '@/models';
|
||||
import { Status } from '@/models/common';
|
||||
import { SUNO_SERVICE_ID } from '@/constants';
|
||||
import { mergeAndSortLists } from '@/utils/merge';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<ISunoState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: ISunoConfig) => {
|
||||
commit('setConfig', payload);
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
@@ -25,64 +39,80 @@ export const setService = async ({ commit }: any, payload: IService): Promise<vo
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setApplication = ({ commit }: any, payload: IApplication) => {
|
||||
commit('setApplication', payload);
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
commit('setCredential', credential);
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setApplications = ({ commit }: any, payload: IApplication[]) => {
|
||||
commit('setApplications', payload);
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<ISunoState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(SUNO_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<ISunoState, IRootState>): Promise<IApplication[]> => {
|
||||
console.debug('start to get applications for suno');
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getApplications = Status.Request;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: SUNO_SERVICE_ID
|
||||
})
|
||||
.then((response) => {
|
||||
console.debug('get applications success', response?.data);
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', response.data.items);
|
||||
// check if there is any application with 'Period' type
|
||||
const application = response.data.items?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
const application2 = response.data.items?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('set application with null', response.data.items?.[0]);
|
||||
commit('setApplication', response.data.items?.[0]);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save application success', response.data.items[0]);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getApplications = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}: ActionContext<ISunoState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: SUNO_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
commit('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const setConfig = ({ commit }: any, payload: ISunoConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setTasks = ({ commit }: any, payload: any) => {
|
||||
@@ -105,24 +135,6 @@ export const setAudio = ({ commit }: any, payload: any) => {
|
||||
commit('setAudio', payload);
|
||||
};
|
||||
|
||||
export const getService = async ({ commit, state }: ActionContext<ISunoState, IRootState>): Promise<IService> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.debug('start to get service for suno');
|
||||
state.status.getService = Status.Request;
|
||||
serviceOperator
|
||||
.get(SUNO_SERVICE_ID)
|
||||
.then((response) => {
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', response.data);
|
||||
resolve(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
state.status.getService = Status.Error;
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state, rootState }: ActionContext<ISunoState, IRootState>,
|
||||
{
|
||||
@@ -184,5 +196,6 @@ export default {
|
||||
setTasksTotal,
|
||||
setTasksActive,
|
||||
getTasks,
|
||||
setAudio
|
||||
setAudio,
|
||||
createCredential
|
||||
};
|
||||
@@ -1 +1 @@
|
||||
export default ['suno.credential', 'suno.application'];
|
||||
export default ['suno.credential', 'suno.application', 'suno.applications'];
|
||||
@@ -0,0 +1,64 @@
|
||||
import { IApplication, IApplicationType } from '@/models';
|
||||
|
||||
/**
|
||||
* Get is application expired
|
||||
* @param application
|
||||
* @returns boolean
|
||||
*/
|
||||
export function isApplicationExpired(application: IApplication) {
|
||||
if (!application?.expired_at) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
const expiredAt = new Date(application?.expired_at);
|
||||
return expiredAt < new Date();
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get is application has balance
|
||||
* @param application
|
||||
* @returns boolean
|
||||
*/
|
||||
export function isApplicationExhausted(application: IApplication) {
|
||||
console.debug('application remaining amount', application, application?.remaining_amount);
|
||||
return application?.remaining_amount && application?.remaining_amount < 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get is application is valid, has balance and not expired
|
||||
* @param application
|
||||
* @returns boolean
|
||||
*/
|
||||
export function isApplicationUsable(application: IApplication) {
|
||||
const isExhausted = isApplicationExhausted(application);
|
||||
const isExpired = isApplicationExpired(application);
|
||||
console.debug('is application exhausted', isExhausted);
|
||||
console.debug('is application expired', isExpired);
|
||||
return !isExhausted && !isExpired;
|
||||
}
|
||||
|
||||
/**
|
||||
* get final application from applications
|
||||
* @param applications
|
||||
* @returns application
|
||||
*/
|
||||
export function getFinalApplication(
|
||||
applications: IApplication[],
|
||||
currentApplication?: IApplication
|
||||
): IApplication | undefined {
|
||||
if (currentApplication && isApplicationUsable(currentApplication)) {
|
||||
console.debug('current application is usable', currentApplication);
|
||||
return currentApplication;
|
||||
}
|
||||
console.debug('get final application from applications', applications);
|
||||
// check if there is any application with 'Period' type firstly, if yes, use it
|
||||
const application = applications?.find((application) => application?.type === IApplicationType.PERIOD);
|
||||
// else use the application with 'Usage' type
|
||||
const application2 = applications?.find((application) => application?.type === IApplicationType.USAGE);
|
||||
const finalApplication = application && isApplicationUsable(application) ? application : application2;
|
||||
console.debug('final application', finalApplication);
|
||||
return finalApplication;
|
||||
}
|
||||
@@ -6,3 +6,4 @@ export * from './is';
|
||||
export * from './login';
|
||||
export * from './site';
|
||||
export * from './price';
|
||||
export * from './application';
|
||||
Reference in new issue
Block a user