@lightworkai.official/debug-capture 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -80
- package/dist/index.d.ts +1 -10
- package/dist/index.mjs +9 -14
- package/dist/portal.d.ts +24 -0
- package/package.json +1 -1
- package/src/index.ts +10 -54
- package/src/portal.ts +65 -0
- package/dist/mytickets/api.d.ts +0 -115
- package/dist/mytickets/format.d.ts +0 -84
- package/dist/mytickets/sanitize.d.ts +0 -66
- package/dist/mytickets/strings.d.ts +0 -74
- package/dist/mytickets/toolbar.d.ts +0 -17
- package/src/mytickets/api.ts +0 -226
- package/src/mytickets/format.ts +0 -191
- package/src/mytickets/sanitize.ts +0 -221
- package/src/mytickets/strings.ts +0 -217
- package/src/mytickets/toolbar.ts +0 -48
package/src/mytickets/strings.ts
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The tickets panel's own words, kept apart from the reporter dialog's so
|
|
3
|
-
* neither grows the other's vocabulary. Thai wording is the original's, verbatim
|
|
4
|
-
* where the original had one.
|
|
5
|
-
*/
|
|
6
|
-
export interface TicketStrings {
|
|
7
|
-
title: string;
|
|
8
|
-
intro: string;
|
|
9
|
-
searchPlaceholder: string;
|
|
10
|
-
searchLabel: string;
|
|
11
|
-
allStatuses: string;
|
|
12
|
-
count: (n: number) => string;
|
|
13
|
-
colNumber: string;
|
|
14
|
-
colTitle: string;
|
|
15
|
-
colModule: string;
|
|
16
|
-
colStatus: string;
|
|
17
|
-
colResponse: string;
|
|
18
|
-
colCreated: string;
|
|
19
|
-
colUpdated: string;
|
|
20
|
-
awaitingReply: string;
|
|
21
|
-
hasSolution: string;
|
|
22
|
-
hasReply: string;
|
|
23
|
-
noReply: string;
|
|
24
|
-
empty: string;
|
|
25
|
-
emptyFiltered: string;
|
|
26
|
-
loading: string;
|
|
27
|
-
listFailed: string;
|
|
28
|
-
detailFailed: string;
|
|
29
|
-
signedOut: string;
|
|
30
|
-
back: string;
|
|
31
|
-
reportedBy: string;
|
|
32
|
-
conversation: string;
|
|
33
|
-
resolution: string;
|
|
34
|
-
noMessages: string;
|
|
35
|
-
you: string;
|
|
36
|
-
team: string;
|
|
37
|
-
/** The role chip beside a reporter's name, as the original prints it. */
|
|
38
|
-
reporterRole: string;
|
|
39
|
-
edited: string;
|
|
40
|
-
edit: string;
|
|
41
|
-
saveEdit: string;
|
|
42
|
-
cancel: string;
|
|
43
|
-
replyPlaceholder: string;
|
|
44
|
-
bold: string;
|
|
45
|
-
italic: string;
|
|
46
|
-
underline: string;
|
|
47
|
-
strike: string;
|
|
48
|
-
code: string;
|
|
49
|
-
blockquote: string;
|
|
50
|
-
bulletList: string;
|
|
51
|
-
orderedList: string;
|
|
52
|
-
link: string;
|
|
53
|
-
linkPrompt: string;
|
|
54
|
-
linkNeedsSelection: string;
|
|
55
|
-
linkInvalid: string;
|
|
56
|
-
attachImage: string;
|
|
57
|
-
uploading: string;
|
|
58
|
-
send: string;
|
|
59
|
-
sending: string;
|
|
60
|
-
sent: string;
|
|
61
|
-
sendFailed: string;
|
|
62
|
-
reopen: string;
|
|
63
|
-
reopenHint: string;
|
|
64
|
-
reopening: string;
|
|
65
|
-
reopened: string;
|
|
66
|
-
reopenFailed: string;
|
|
67
|
-
close: string;
|
|
68
|
-
retry: string;
|
|
69
|
-
page: string;
|
|
70
|
-
of: (page: number, pages: number) => string;
|
|
71
|
-
prev: string;
|
|
72
|
-
next: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const th: TicketStrings = {
|
|
76
|
-
title: "ปัญหาที่แจ้ง",
|
|
77
|
-
// The original names the toolbar button and points at it ("จากปุ่ม 🐞 รายงานปัญหา
|
|
78
|
-
// ที่แถบด้านบนขวา"). A package cannot: the host decides whether that button
|
|
79
|
-
// exists and where it sits, and a sentence describing a button that is not
|
|
80
|
-
// there is worse than no sentence.
|
|
81
|
-
intro: "ปัญหาที่คุณแจ้งไว้ พร้อมสถานะล่าสุด",
|
|
82
|
-
searchPlaceholder: "ค้นหาเลขที่/หัวข้อ/โมดูล",
|
|
83
|
-
searchLabel: "ค้นหาปัญหาที่แจ้ง",
|
|
84
|
-
allStatuses: "ทุกสถานะ",
|
|
85
|
-
count: (n) => `${n} รายการ`,
|
|
86
|
-
colNumber: "เลขที่",
|
|
87
|
-
colTitle: "หัวข้อ",
|
|
88
|
-
colModule: "โมดูล",
|
|
89
|
-
colStatus: "สถานะ",
|
|
90
|
-
colResponse: "คำตอบจากทีม",
|
|
91
|
-
colCreated: "แจ้งเมื่อ",
|
|
92
|
-
colUpdated: "อัปเดตล่าสุด",
|
|
93
|
-
awaitingReply: "รอคุณตอบกลับ",
|
|
94
|
-
hasSolution: "มีวิธีแก้ไข",
|
|
95
|
-
hasReply: "ตอบกลับแล้ว",
|
|
96
|
-
noReply: "ยังไม่มีการตอบกลับ",
|
|
97
|
-
empty: "คุณยังไม่ได้แจ้งปัญหา",
|
|
98
|
-
emptyFiltered: "ไม่พบรายการที่ตรงกับการค้นหา",
|
|
99
|
-
loading: "กำลังโหลด…",
|
|
100
|
-
listFailed: "โหลดรายการไม่สำเร็จ",
|
|
101
|
-
detailFailed: "โหลดรายงานไม่สำเร็จ",
|
|
102
|
-
signedOut: "กรุณาเข้าสู่ระบบเพื่อดูปัญหาที่แจ้งไว้",
|
|
103
|
-
back: "กลับไปรายการ",
|
|
104
|
-
reportedBy: "แจ้งเมื่อ",
|
|
105
|
-
conversation: "การสนทนา",
|
|
106
|
-
resolution: "วิธีแก้ไข",
|
|
107
|
-
noMessages: "ยังไม่มีข้อความ",
|
|
108
|
-
you: "คุณ",
|
|
109
|
-
team: "ทีมงาน",
|
|
110
|
-
reporterRole: "ผู้แจ้ง",
|
|
111
|
-
edited: "แก้ไขแล้ว",
|
|
112
|
-
edit: "แก้ไข",
|
|
113
|
-
saveEdit: "บันทึกการแก้ไข",
|
|
114
|
-
cancel: "ยกเลิก",
|
|
115
|
-
replyPlaceholder: "พิมพ์ข้อความถึงทีมงาน",
|
|
116
|
-
bold: "ตัวหนา",
|
|
117
|
-
italic: "ตัวเอียง",
|
|
118
|
-
underline: "ขีดเส้นใต้",
|
|
119
|
-
strike: "ขีดฆ่า",
|
|
120
|
-
code: "โค้ด",
|
|
121
|
-
blockquote: "ยกคำพูด",
|
|
122
|
-
bulletList: "รายการหัวข้อ",
|
|
123
|
-
orderedList: "รายการตัวเลข",
|
|
124
|
-
link: "ลิงก์",
|
|
125
|
-
linkPrompt: "ใส่ลิงก์",
|
|
126
|
-
linkNeedsSelection: "เลือกข้อความที่ต้องการทำลิงก์ก่อน",
|
|
127
|
-
linkInvalid: "ลิงก์ต้องขึ้นต้นด้วย http:// หรือ https://",
|
|
128
|
-
attachImage: "แนบรูป",
|
|
129
|
-
uploading: "กำลังอัปโหลดรูป…",
|
|
130
|
-
send: "ส่งข้อความ",
|
|
131
|
-
sending: "กำลังส่ง…",
|
|
132
|
-
sent: "ส่งข้อความแล้ว",
|
|
133
|
-
sendFailed: "ส่งไม่สำเร็จ ลองใหม่อีกครั้ง",
|
|
134
|
-
reopen: "ยังมีปัญหา",
|
|
135
|
-
reopenHint: "ถ้าปัญหายังไม่หาย แจ้งทีมงานอีกครั้งได้",
|
|
136
|
-
reopening: "กำลังแจ้ง…",
|
|
137
|
-
reopened: "แจ้งทีมงานอีกครั้งแล้ว — เรากำลังดูให้ครับ",
|
|
138
|
-
reopenFailed: "เปิดเรื่องไม่สำเร็จ ลองใหม่อีกครั้ง",
|
|
139
|
-
close: "ปิด",
|
|
140
|
-
retry: "ลองใหม่",
|
|
141
|
-
page: "หน้า",
|
|
142
|
-
of: (page, pages) => `หน้า ${page} จาก ${pages}`,
|
|
143
|
-
prev: "ก่อนหน้า",
|
|
144
|
-
next: "ถัดไป",
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
const en: TicketStrings = {
|
|
148
|
-
title: "My reports",
|
|
149
|
-
intro: "The problems you have reported, with their latest status",
|
|
150
|
-
searchPlaceholder: "Search number / title / module",
|
|
151
|
-
searchLabel: "Search my reports",
|
|
152
|
-
allStatuses: "All statuses",
|
|
153
|
-
count: (n) => `${n} item${n === 1 ? "" : "s"}`,
|
|
154
|
-
colNumber: "No.",
|
|
155
|
-
colTitle: "Title",
|
|
156
|
-
colModule: "Module",
|
|
157
|
-
colStatus: "Status",
|
|
158
|
-
colResponse: "Team response",
|
|
159
|
-
colCreated: "Reported",
|
|
160
|
-
colUpdated: "Last update",
|
|
161
|
-
awaitingReply: "Awaiting your reply",
|
|
162
|
-
hasSolution: "Solution provided",
|
|
163
|
-
hasReply: "Replied",
|
|
164
|
-
noReply: "No reply yet",
|
|
165
|
-
empty: "You have not reported anything yet",
|
|
166
|
-
emptyFiltered: "Nothing matches that search",
|
|
167
|
-
loading: "Loading…",
|
|
168
|
-
listFailed: "Could not load your reports",
|
|
169
|
-
detailFailed: "Could not load this report",
|
|
170
|
-
signedOut: "Sign in to see the problems you have reported",
|
|
171
|
-
back: "Back to the list",
|
|
172
|
-
reportedBy: "Reported",
|
|
173
|
-
conversation: "Conversation",
|
|
174
|
-
resolution: "Solution",
|
|
175
|
-
noMessages: "No messages yet",
|
|
176
|
-
you: "You",
|
|
177
|
-
team: "Support",
|
|
178
|
-
reporterRole: "Reporter",
|
|
179
|
-
edited: "edited",
|
|
180
|
-
edit: "Edit",
|
|
181
|
-
saveEdit: "Save changes",
|
|
182
|
-
cancel: "Cancel",
|
|
183
|
-
replyPlaceholder: "Write a message to the team",
|
|
184
|
-
bold: "Bold",
|
|
185
|
-
italic: "Italic",
|
|
186
|
-
underline: "Underline",
|
|
187
|
-
strike: "Strikethrough",
|
|
188
|
-
code: "Code",
|
|
189
|
-
blockquote: "Quote",
|
|
190
|
-
bulletList: "Bulleted list",
|
|
191
|
-
orderedList: "Numbered list",
|
|
192
|
-
link: "Link",
|
|
193
|
-
linkPrompt: "Enter a link",
|
|
194
|
-
linkNeedsSelection: "Select the text you want to link first",
|
|
195
|
-
linkInvalid: "A link must start with http:// or https://",
|
|
196
|
-
attachImage: "Add an image",
|
|
197
|
-
uploading: "Uploading the image…",
|
|
198
|
-
send: "Send",
|
|
199
|
-
sending: "Sending…",
|
|
200
|
-
sent: "Message sent",
|
|
201
|
-
sendFailed: "Could not send — try again",
|
|
202
|
-
reopen: "Still a problem",
|
|
203
|
-
reopenHint: "If the problem is not fixed, tell the team again",
|
|
204
|
-
reopening: "Sending…",
|
|
205
|
-
reopened: "The team has been notified — we are looking at it",
|
|
206
|
-
reopenFailed: "Could not reopen — try again",
|
|
207
|
-
close: "Close",
|
|
208
|
-
retry: "Try again",
|
|
209
|
-
page: "Page",
|
|
210
|
-
of: (page, pages) => `Page ${page} of ${pages}`,
|
|
211
|
-
prev: "Previous",
|
|
212
|
-
next: "Next",
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
export function ticketStrings(locale: "th" | "en" | undefined): TicketStrings {
|
|
216
|
-
return locale === "en" ? en : th;
|
|
217
|
-
}
|
package/src/mytickets/toolbar.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Which controls a rich composer offers.
|
|
3
|
-
*
|
|
4
|
-
* A list rather than a fixed set, because the original itself has two —
|
|
5
|
-
* `NOTE_TOOLBAR` for replies and a longer one for articles — and the support app's
|
|
6
|
-
* admin composer wants a few more than a reporter's does. The alternative was a
|
|
7
|
-
* second editor component, which is the thing this package exists to stop.
|
|
8
|
-
*/
|
|
9
|
-
export type EditorTool =
|
|
10
|
-
| "bold"
|
|
11
|
-
| "italic"
|
|
12
|
-
| "underline"
|
|
13
|
-
| "strike"
|
|
14
|
-
| "code"
|
|
15
|
-
| "bulletList"
|
|
16
|
-
| "orderedList"
|
|
17
|
-
| "blockquote"
|
|
18
|
-
| "link"
|
|
19
|
-
| "image";
|
|
20
|
-
|
|
21
|
-
/** The original's own NOTE_TOOLBAR — what a reporter replying to a ticket gets. */
|
|
22
|
-
export const NOTE_TOOLBAR: EditorTool[] = [
|
|
23
|
-
"bold",
|
|
24
|
-
"italic",
|
|
25
|
-
"underline",
|
|
26
|
-
"bulletList",
|
|
27
|
-
"orderedList",
|
|
28
|
-
"link",
|
|
29
|
-
"image",
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Everything, for a staff composer. Adds the three the admin side had grown on
|
|
34
|
-
* its own — strike, code and blockquote — so adopting this component costs the
|
|
35
|
-
* app nothing it already had.
|
|
36
|
-
*/
|
|
37
|
-
export const FULL_TOOLBAR: EditorTool[] = [
|
|
38
|
-
"bold",
|
|
39
|
-
"italic",
|
|
40
|
-
"underline",
|
|
41
|
-
"strike",
|
|
42
|
-
"code",
|
|
43
|
-
"bulletList",
|
|
44
|
-
"orderedList",
|
|
45
|
-
"blockquote",
|
|
46
|
-
"link",
|
|
47
|
-
"image",
|
|
48
|
-
];
|