Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fbdf8d5

Browse files
author
FalkWolsky
committedSep 14, 2024
Full Support and introducing a translation management script.
1 parent b20ed56 commit fbdf8d5

File tree

1,453 files changed

+1146794
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,453 files changed

+1146794
-67
lines changed
 

‎client/packages/lowcoder/src/api/supportApi.ts

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import Api from "api/api";
22
import axios, { AxiosInstance, AxiosRequestConfig } from "axios";
3-
import { useSelector } from "react-redux";
4-
import { getUser, getCurrentUser } from "redux/selectors/usersSelectors";
5-
import { useEffect, useState } from "react";
63
import { calculateFlowCode } from "./apiUtils";
74

85
export type ResponseType = {
@@ -87,7 +84,7 @@ export const searchCustomerTickets = async (orgID : string, currentUserId : stri
8784

8885
const apiBody = {
8986
path: "webhook/support/get-issues",
90-
data: {"host" : domain, "orgId" : orgID, "userId" : currentUserId, "supportsubscriptionId" : "1PostVDDlQgecLSfhG52o5rB"},
87+
data: {"host" : domain, "orgId" : orgID, "userId" : currentUserId},
9188
method: "post",
9289
headers: lcHeaders
9390
};
@@ -117,11 +114,28 @@ export const getTicket = async (ticketKey : string) => {
117114
}
118115
};
119116

117+
export const createTicket = async (orgID : string, currentUserId : string, subscriptionId : string, domain : string, summary: string, description : string, errors : string) => {
118+
119+
const apiBody = {
120+
path: "webhook/support/create-ticket",
121+
data: {"host" : domain, "orgId" : orgID, "userId" : currentUserId, "subscriptionId": subscriptionId, "summary" : summary, "description" : description, "errors" : errors},
122+
method: "post",
123+
headers: lcHeaders
124+
};
125+
try {
126+
const result = await SupportApi.secureRequest(apiBody);
127+
return result?.data?.length === 1 ? result.data as any : null;
128+
} catch (error) {
129+
console.error("Error getting individual Support Ticket: ", error);
130+
throw error;
131+
}
132+
};
133+
120134
export const updateTicketDescription = async (ticketKey : string, newDescription : string) => {
121135

122136
const apiBody = {
123-
path: "webhook/support/get-issue",
124-
data: {"ticketKey" : ticketKey},
137+
path: "webhook/support/update-ticket-description",
138+
data: {"ticketKey" : ticketKey, "description" : newDescription},
125139
method: "post",
126140
headers: lcHeaders
127141
};
@@ -137,8 +151,8 @@ export const updateTicketDescription = async (ticketKey : string, newDescription
137151
export const addComment = async (ticketKey : string, newComment : string) => {
138152

139153
const apiBody = {
140-
path: "webhook/support/get-issue",
141-
data: {"ticketKey" : ticketKey},
154+
path: "webhook/support/add-ticket-comment",
155+
data: {"ticketKey" : ticketKey, "comment" : newComment},
142156
method: "post",
143157
headers: lcHeaders
144158
};
@@ -151,11 +165,11 @@ export const addComment = async (ticketKey : string, newComment : string) => {
151165
}
152166
};
153167

154-
export const uploadAttachment = async (ticketKey : string, attachmentFile : string) => {
168+
export const uploadAttachment = async (ticketKey : string, attachmentFile : string, fileName : string, mimeType : string) => {
155169

156170
const apiBody = {
157-
path: "webhook/support/get-issue",
158-
data: {"ticketKey" : ticketKey},
171+
path: "webhook/support/add-ticket-attachment",
172+
data: {"ticketKey" : ticketKey, "attachment" : attachmentFile.split(',')[1], "fileName" : fileName, "mimeType" : mimeType},
159173
method: "post",
160174
headers: lcHeaders
161175
};

‎client/packages/lowcoder/src/i18n/locales/de.ts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,6 +2537,59 @@ export const de: typeof en = {
25372537
"chooseNavType": "Bitte wähle die Art der Navigation",
25382538
"createNavigation": "Navigation erstellen"
25392539
},
2540+
2541+
"support" : {
2542+
...en.support,
2543+
"supportTitle": "Lowcoder-Support",
2544+
"supportContent": "Wenn Sie Fragen haben oder Hilfe benötigen, nutzen Sie bitte das Ticketsystem, um Ihr Problem schnell zu lösen.",
2545+
"newSupportTicket": "Neues Support-Ticket",
2546+
"ticketTitle": "Titel",
2547+
"priority": "Priorität",
2548+
"assignee": "Zuständiger",
2549+
"status": "Ticketstatus",
2550+
"updatedTime": "Aktualisierte Zeit",
2551+
"active": "Aktiv",
2552+
"inactive": "Inaktiv",
2553+
"noEmail": "Keine E-Mail",
2554+
"details": "Details",
2555+
"reloadTickets": "Tickets neu laden",
2556+
"createdDate": "Erstellungsdatum",
2557+
"updatedDate": "Aktualisierungsdatum",
2558+
"description": "Problembeschreibung",
2559+
"subtasks": "Unteraufgaben",
2560+
"subtasksProgress": "Fortschritt aller Unteraufgaben",
2561+
"attachments": "Anhänge",
2562+
"comments": "Kommentare",
2563+
"addComment": "Kommentar hinzufügen",
2564+
"addAttachment": "Anhang hinzufügen",
2565+
"edit": "Ticketbeschreibung bearbeiten",
2566+
"save": "Ticketbeschreibung speichern",
2567+
"cancel": "Abbrechen",
2568+
"submitComment": "Kommentar absenden",
2569+
"upload": "Anhang hochladen",
2570+
"selectFile": "Datei auswählen",
2571+
"ticketDescriptionUpdated": "Ticketbeschreibung erfolgreich aktualisiert!",
2572+
"ticketDescriptionUpdateFailed": "Ticketbeschreibung konnte nicht aktualisiert werden.",
2573+
"writeComment": "Einen Kommentar schreiben...",
2574+
"ticketCommentAdded": "Kommentar erfolgreich hinzugefügt!",
2575+
"ticketCommentFailed": "Kommentar konnte nicht hinzugefügt werden.",
2576+
"ticketCommentEmpty": "Bitte schreiben Sie einen Kommentar, bevor Sie ihn absenden.",
2577+
"ticketAttachmentUploaded": "Anhang erfolgreich hochgeladen!",
2578+
"ticketAttachmentFailed": "Anhang konnte nicht hochgeladen werden.",
2579+
"ticketAttachmentEmpty": "Bitte wählen Sie eine Datei zum Hochladen aus.",
2580+
"ticketFetchError": "Ticket konnte nicht geladen werden.",
2581+
"ticketNotFound": "Ticket nicht gefunden.",
2582+
"addAttachmentFileSize": "Datei muss kleiner als 5 MB sein!",
2583+
"goBack": "Zurück",
2584+
"noDescription": "Keine Beschreibung verfügbar.",
2585+
"createTicket": "Neues Support-Ticket erstellen",
2586+
"createTicketTitlePlaceholder": "Titel eingeben (max. 150 Zeichen)",
2587+
"createTicketDescriptionTitle": "Beschreiben Sie Ihr Problem - je mehr Details, desto besser:",
2588+
"createTicketDescriptionPlaceholder": "Beschreiben Sie das Problem im Detail, einschließlich: 1) Schritte zur Reproduktion des Problems, 2) Erwartetes Verhalten im Vergleich zum tatsächlichen Verhalten, 3) Code-Snippets, falls zutreffend, 4) Betroffene Komponenten, APIs oder Konfigurationen",
2589+
"createTicketSubmit": "Ticket absenden",
2590+
"createTicketInfoText": "Wenn Ihr Ticket erstellt wurde, können Sie im Abschnitt 'Details' Screenshots und Kommentare hinzufügen."
2591+
},
2592+
25402593
"carousel": {
25412594
...en.carousel,
25422595
"dotPosition": "Position der Navigationspunkte",

0 commit comments

Comments
 (0)
Please sign in to comment.