@skillcdn/console 0.1.3 → 0.1.5
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 +7 -6
- package/dist/api.d.ts +4 -3
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +4 -3
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +3 -3
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +45 -15
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/credentials.d.ts +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +7 -4
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/main.js +3 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/terminal.d.ts +0 -5
- package/dist/cli/terminal.d.ts.map +1 -1
- package/dist/cli/terminal.js +0 -43
- package/dist/cli/terminal.js.map +1 -1
- package/dist/client.d.ts +20 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -2
- package/dist/client.js.map +1 -1
- package/dist/components/board.d.ts.map +1 -1
- package/dist/components/board.js +6 -3
- package/dist/components/board.js.map +1 -1
- package/dist/components/connect.d.ts +28 -0
- package/dist/components/connect.d.ts.map +1 -0
- package/dist/components/connect.js +30 -0
- package/dist/components/connect.js.map +1 -0
- package/dist/components/decision-form.d.ts.map +1 -1
- package/dist/components/decision-form.js +4 -1
- package/dist/components/decision-form.js.map +1 -1
- package/dist/components/decision-list.d.ts +4 -0
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +15 -7
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/documents.d.ts +7 -5
- package/dist/components/documents.d.ts.map +1 -1
- package/dist/components/documents.js +28 -16
- package/dist/components/documents.js.map +1 -1
- package/dist/components/event-feed.d.ts +3 -2
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +50 -52
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/people.d.ts +2 -0
- package/dist/components/people.d.ts.map +1 -1
- package/dist/components/people.js +4 -2
- package/dist/components/people.js.map +1 -1
- package/dist/components/projects.d.ts +1 -0
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +16 -10
- package/dist/components/projects.js.map +1 -1
- package/dist/components/runs.d.ts +1 -0
- package/dist/components/runs.d.ts.map +1 -1
- package/dist/components/runs.js +6 -2
- package/dist/components/runs.js.map +1 -1
- package/dist/components/shell.d.ts +32 -1
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +56 -8
- package/dist/components/shell.js.map +1 -1
- package/dist/components/sign-in.d.ts +3 -0
- package/dist/components/sign-in.d.ts.map +1 -1
- package/dist/components/sign-in.js +3 -9
- package/dist/components/sign-in.js.map +1 -1
- package/dist/components/skills.d.ts.map +1 -1
- package/dist/components/skills.js +8 -12
- package/dist/components/skills.js.map +1 -1
- package/dist/components/task-form.d.ts.map +1 -1
- package/dist/components/task-form.js +5 -2
- package/dist/components/task-form.js.map +1 -1
- package/dist/components/task-view.d.ts +7 -0
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +6 -13
- package/dist/components/task-view.js.map +1 -1
- package/dist/components/tokens.d.ts +12 -0
- package/dist/components/tokens.d.ts.map +1 -1
- package/dist/components/tokens.js +25 -10
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/ui.d.ts +3 -3
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +15 -9
- package/dist/components/ui.js.map +1 -1
- package/dist/connect-page.d.ts +10 -0
- package/dist/connect-page.d.ts.map +1 -0
- package/dist/connect-page.js +67 -0
- package/dist/connect-page.js.map +1 -0
- package/dist/connect.d.ts +11 -0
- package/dist/connect.d.ts.map +1 -0
- package/dist/connect.js +24 -0
- package/dist/connect.js.map +1 -0
- package/dist/console.css +976 -201
- package/dist/console.d.ts +6 -1
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +339 -136
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +10 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +10 -0
- package/dist/data.js.map +1 -1
- package/dist/docs-page.d.ts +4 -1
- package/dist/docs-page.d.ts.map +1 -1
- package/dist/docs-page.js +74 -54
- package/dist/docs-page.js.map +1 -1
- package/dist/i18n/en.d.ts +473 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +483 -0
- package/dist/i18n/en.js.map +1 -0
- package/dist/i18n/index.d.ts +26 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +46 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/ko.d.ts +3 -0
- package/dist/i18n/ko.d.ts.map +1 -0
- package/dist/i18n/ko.js +472 -0
- package/dist/i18n/ko.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +4 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +4 -0
- package/dist/limits.js.map +1 -1
- package/dist/router.d.ts +88 -11
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +163 -34
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +8 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +14 -0
- package/dist/routes.js.map +1 -1
- package/dist/schemas.d.ts +59 -2
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +55 -9
- package/dist/schemas.js.map +1 -1
- package/dist/use-action.d.ts +2 -1
- package/dist/use-action.d.ts.map +1 -1
- package/dist/use-action.js +7 -3
- package/dist/use-action.js.map +1 -1
- package/package.json +1 -1
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
// Every word the default console shows, in English: the source of the keys every other pack
|
|
2
|
+
// carries (ADR-0012). Sentences with parts are functions of their parts, so that another
|
|
3
|
+
// language orders them its own way. Nothing here is HTML: the components place the words.
|
|
4
|
+
/** How many of something, said in words: the count and the noun, one or many. */
|
|
5
|
+
const count = (n, one, many) => `${n} ${n === 1 ? one : many}`;
|
|
6
|
+
export const en = {
|
|
7
|
+
tag: "en",
|
|
8
|
+
label: "English",
|
|
9
|
+
vocabulary: {
|
|
10
|
+
state: {
|
|
11
|
+
idea: "Idea",
|
|
12
|
+
ready: "Ready",
|
|
13
|
+
in_progress: "In progress",
|
|
14
|
+
in_review: "In review",
|
|
15
|
+
done: "Done",
|
|
16
|
+
dropped: "Dropped",
|
|
17
|
+
},
|
|
18
|
+
priority: {
|
|
19
|
+
low: "Low",
|
|
20
|
+
normal: "Normal",
|
|
21
|
+
high: "High",
|
|
22
|
+
urgent: "Urgent",
|
|
23
|
+
},
|
|
24
|
+
role: { admin: "Administrator", member: "Member" },
|
|
25
|
+
projectRole: { owner: "Owner", member: "Member" },
|
|
26
|
+
visibility: {
|
|
27
|
+
workspace: "Everyone of the workspace",
|
|
28
|
+
private: "Only those listed",
|
|
29
|
+
},
|
|
30
|
+
runStatus: {
|
|
31
|
+
running: "At work",
|
|
32
|
+
waiting: "Waiting for a decision",
|
|
33
|
+
finished: "Finished",
|
|
34
|
+
failed: "Failed",
|
|
35
|
+
abandoned: "Abandoned",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
common: {
|
|
39
|
+
cancel: "Cancel",
|
|
40
|
+
save: "Save",
|
|
41
|
+
remove: "Remove",
|
|
42
|
+
edit: "Edit",
|
|
43
|
+
done: "Done",
|
|
44
|
+
loading: "Loading",
|
|
45
|
+
tryAgain: "Try again",
|
|
46
|
+
somethingWentWrong: "Something went wrong. Try again.",
|
|
47
|
+
couldNotReach: "The console could not be reached",
|
|
48
|
+
loadingWorkspace: "Loading the workspace",
|
|
49
|
+
loadingProject: "Loading the project",
|
|
50
|
+
nothingHere: {
|
|
51
|
+
title: "There is nothing at this address",
|
|
52
|
+
body: "The link may be wrong, or what it led to is gone.",
|
|
53
|
+
},
|
|
54
|
+
noSuchProject: {
|
|
55
|
+
title: "No such project",
|
|
56
|
+
body: "It may not exist, or it is not yours to see. The projects you may work in are on the front page.",
|
|
57
|
+
},
|
|
58
|
+
you: "(you)",
|
|
59
|
+
nobody: "Nobody",
|
|
60
|
+
nothing: "Nothing",
|
|
61
|
+
language: "Language",
|
|
62
|
+
},
|
|
63
|
+
nav: {
|
|
64
|
+
projects: "Projects",
|
|
65
|
+
people: "People",
|
|
66
|
+
agents: "Agents",
|
|
67
|
+
board: "Board",
|
|
68
|
+
docs: "Docs",
|
|
69
|
+
decisions: "Decisions",
|
|
70
|
+
feed: "Feed",
|
|
71
|
+
skills: "Skills",
|
|
72
|
+
members: "Members",
|
|
73
|
+
settings: "Settings",
|
|
74
|
+
},
|
|
75
|
+
shell: {
|
|
76
|
+
skipToContent: "Skip to content",
|
|
77
|
+
pages: "Pages",
|
|
78
|
+
workspace: "Workspace",
|
|
79
|
+
live: "Live",
|
|
80
|
+
reconnecting: "Reconnecting",
|
|
81
|
+
signOut: "Sign out",
|
|
82
|
+
menu: (login) => `${login}: menu`,
|
|
83
|
+
},
|
|
84
|
+
signIn: {
|
|
85
|
+
lead: "The board of the work, the agents at it, what they did, and the decisions that wait for a person.",
|
|
86
|
+
continueWith: (provider) => `Continue with ${provider}`,
|
|
87
|
+
nobody: {
|
|
88
|
+
title: "Nobody can sign in here yet",
|
|
89
|
+
body: "Signing in is not configured on this console. Whoever runs it sets it up as deploy/README.md describes.",
|
|
90
|
+
},
|
|
91
|
+
failure: {
|
|
92
|
+
denied: "The provider did not confirm the sign-in: you said no, or it did.",
|
|
93
|
+
expired: "The sign-in took too long or was finished in another browser. Try again.",
|
|
94
|
+
failed: "The sign-in did not complete. Try again in a moment.",
|
|
95
|
+
refused: "This account is not a member of the board. Ask whoever runs it to add you.",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
projects: {
|
|
99
|
+
title: "Projects",
|
|
100
|
+
newProject: "New project",
|
|
101
|
+
lead: "A project holds its board, its documents, its skills and its people. What you may see and change is decided per project: an owner configures it, a member works on it.",
|
|
102
|
+
empty: {
|
|
103
|
+
title: "No projects yet",
|
|
104
|
+
body: "Make the first one: what it is for, and who is in it. Or ask an owner to add you to theirs.",
|
|
105
|
+
},
|
|
106
|
+
list: "Projects",
|
|
107
|
+
private: "Private",
|
|
108
|
+
decisionsWaiting: (n) => `${count(n, "decision", "decisions")} waiting`,
|
|
109
|
+
agentsAtWork: (n) => `${count(n, "agent", "agents")} at work`,
|
|
110
|
+
form: {
|
|
111
|
+
aria: "New project",
|
|
112
|
+
name: "Name",
|
|
113
|
+
key: "Key",
|
|
114
|
+
keyHint: "Lowercase letters, digits and hyphens: what addresses and the command say. It does not change.",
|
|
115
|
+
description: "Description",
|
|
116
|
+
descriptionPlaceholder: "What the project is for, in a sentence or two.",
|
|
117
|
+
whoIsMember: "Who is a member",
|
|
118
|
+
skillsAddress: "Skills address",
|
|
119
|
+
skillsAddressPlaceholder: "/gh/<owner>/<repo>, or empty for the organization's",
|
|
120
|
+
make: "Make the project",
|
|
121
|
+
},
|
|
122
|
+
members: {
|
|
123
|
+
title: "Members",
|
|
124
|
+
list: "Members",
|
|
125
|
+
leadWorkspace: "Everyone of the workspace is a member of this project; those listed here are its owners and the people named besides.",
|
|
126
|
+
leadPrivate: "Only those listed here are in this project.",
|
|
127
|
+
leadRoles: "An owner configures the project; a member works on it. A workspace administrator is an owner of every project.",
|
|
128
|
+
since: "since",
|
|
129
|
+
roleOf: (login) => `Role of ${login}`,
|
|
130
|
+
addAria: "Add a member",
|
|
131
|
+
person: "Person",
|
|
132
|
+
chooseSomeone: "Choose someone",
|
|
133
|
+
as: "As",
|
|
134
|
+
add: "Add",
|
|
135
|
+
empty: {
|
|
136
|
+
title: "Nobody is listed",
|
|
137
|
+
workspace: "Everyone of the workspace is in; the administrators own it.",
|
|
138
|
+
private: "The administrators own it until an owner is listed.",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
settings: {
|
|
142
|
+
title: "Settings",
|
|
143
|
+
aria: "Project settings",
|
|
144
|
+
leadBefore: "The key, ",
|
|
145
|
+
leadAfter: ", is what addresses and the command say, and does not change. The skills address names a repository served by SkillCDN; empty, the organization's skills are shown.",
|
|
146
|
+
onlyOwner: {
|
|
147
|
+
title: "Only an owner may change the project",
|
|
148
|
+
body: "Ask one of its owners, or a workspace administrator.",
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
board: {
|
|
153
|
+
writeTask: "Write a task",
|
|
154
|
+
empty: {
|
|
155
|
+
title: "Nothing on the board yet",
|
|
156
|
+
body: "Write the first task: what is to be done, and for whom.",
|
|
157
|
+
},
|
|
158
|
+
moveTo: "Move to",
|
|
159
|
+
decisions: (n) => count(n, "decision", "decisions"),
|
|
160
|
+
decisionsTitle: "Decisions waiting for a person",
|
|
161
|
+
agentAtWork: "agent at work",
|
|
162
|
+
agentAtWorkTitle: "An agent is at work on it",
|
|
163
|
+
links: (n) => count(n, "link", "links"),
|
|
164
|
+
},
|
|
165
|
+
task: {
|
|
166
|
+
newTitle: "Write a task",
|
|
167
|
+
newAria: "Write a task",
|
|
168
|
+
facts: "At a glance",
|
|
169
|
+
noSuch: {
|
|
170
|
+
title: "No such task",
|
|
171
|
+
body: "It may belong to another project, or the link is wrong.",
|
|
172
|
+
},
|
|
173
|
+
partOf: "Part of",
|
|
174
|
+
owner: "Owner",
|
|
175
|
+
assignee: "Assignee",
|
|
176
|
+
written: "Written",
|
|
177
|
+
changed: "Changed",
|
|
178
|
+
state: "State",
|
|
179
|
+
raiseDecision: "Raise a decision",
|
|
180
|
+
nothingMore: "Nothing more was written about it.",
|
|
181
|
+
links: "Links",
|
|
182
|
+
agentsAtWork: "Agents at work",
|
|
183
|
+
runs: "Runs",
|
|
184
|
+
decisions: "Decisions",
|
|
185
|
+
history: "What happened",
|
|
186
|
+
subtasks: "Subtasks",
|
|
187
|
+
partOfIt: "Part of it",
|
|
188
|
+
form: {
|
|
189
|
+
title: "Title",
|
|
190
|
+
body: "Body",
|
|
191
|
+
bodyPlaceholder: "What is to be done, in Markdown.",
|
|
192
|
+
state: "State",
|
|
193
|
+
priority: "Priority",
|
|
194
|
+
assignee: "Assignee",
|
|
195
|
+
partOf: "Part of",
|
|
196
|
+
links: "Links",
|
|
197
|
+
label: "Label",
|
|
198
|
+
addLink: "Add a link",
|
|
199
|
+
write: "Write the task",
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
decisions: {
|
|
203
|
+
title: "Decisions",
|
|
204
|
+
raise: "Raise a decision",
|
|
205
|
+
raiseAria: "Raise a decision",
|
|
206
|
+
one: "Decision",
|
|
207
|
+
all: "All decisions",
|
|
208
|
+
noSuch: {
|
|
209
|
+
title: "No such decision",
|
|
210
|
+
body: "It may belong to another project, or the link is wrong.",
|
|
211
|
+
},
|
|
212
|
+
empty: {
|
|
213
|
+
title: "Nothing waits for a person",
|
|
214
|
+
body: "A decision raised from a task, or from here, shows up on this page.",
|
|
215
|
+
},
|
|
216
|
+
waiting: "Waiting",
|
|
217
|
+
answered: "Answered",
|
|
218
|
+
waitingForPerson: "Waiting for a person.",
|
|
219
|
+
options: "Options",
|
|
220
|
+
notePlaceholder: "A word about it, if any",
|
|
221
|
+
answer: "Answer",
|
|
222
|
+
asked: "asked",
|
|
223
|
+
askedThrough: (agent) => `asked through ${agent}`,
|
|
224
|
+
about: "about",
|
|
225
|
+
answeredBy: "answered",
|
|
226
|
+
context: "Context",
|
|
227
|
+
whatFollowed: "What followed",
|
|
228
|
+
nothingWritten: "Nothing written yet.",
|
|
229
|
+
outcomePlaceholder: "What was done with the answer, and what came of it, in Markdown.",
|
|
230
|
+
writeWhatFollowed: "Write what followed",
|
|
231
|
+
changeIt: "Change it",
|
|
232
|
+
form: {
|
|
233
|
+
question: "Question",
|
|
234
|
+
context: "Context",
|
|
235
|
+
contextPlaceholder: "What a person needs to know to answer, in Markdown.",
|
|
236
|
+
about: "About",
|
|
237
|
+
noTask: "No task in particular",
|
|
238
|
+
options: "Options",
|
|
239
|
+
option: (n) => `Option ${n}`,
|
|
240
|
+
addOption: "Add an option",
|
|
241
|
+
raise: "Raise the decision",
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
feed: {
|
|
245
|
+
title: "What happened",
|
|
246
|
+
list: "What happened",
|
|
247
|
+
empty: "Nothing happened yet",
|
|
248
|
+
console: "The console",
|
|
249
|
+
as: (agent) => `as ${agent}`,
|
|
250
|
+
asTitle: "The agent the person acted through",
|
|
251
|
+
aTask: "a task",
|
|
252
|
+
aProject: "a project",
|
|
253
|
+
someone: "someone",
|
|
254
|
+
something: "something",
|
|
255
|
+
aQuestion: "a question",
|
|
256
|
+
aFile: "a file",
|
|
257
|
+
thePage: (name) => `the page ${name}`.trimEnd(),
|
|
258
|
+
role: {
|
|
259
|
+
admin: "an administrator",
|
|
260
|
+
owner: "an owner",
|
|
261
|
+
member: "a member",
|
|
262
|
+
other: "something",
|
|
263
|
+
},
|
|
264
|
+
field: {
|
|
265
|
+
title: "the title",
|
|
266
|
+
body: "the body",
|
|
267
|
+
priority: "the priority",
|
|
268
|
+
assigneeId: "the assignee",
|
|
269
|
+
parentId: "what it is part of",
|
|
270
|
+
links: "the links",
|
|
271
|
+
name: "the name",
|
|
272
|
+
description: "the description",
|
|
273
|
+
visibility: "who is a member",
|
|
274
|
+
skillsAddress: "the skills address",
|
|
275
|
+
outcome: "what followed",
|
|
276
|
+
},
|
|
277
|
+
event: {
|
|
278
|
+
personJoined: () => "joined the board",
|
|
279
|
+
roleChanged: (login, role) => `made ${login} ${role}`,
|
|
280
|
+
projectCreated: (project) => `made the project ${project}`,
|
|
281
|
+
projectUpdated: (fields, project) => `changed ${fields} of the project ${project}`,
|
|
282
|
+
memberAdded: (login, project, role) => `added ${login} to ${project} as ${role}`,
|
|
283
|
+
memberChanged: (login, role, project) => `made ${login} ${role} of ${project}`,
|
|
284
|
+
memberRemoved: (login, project) => `removed ${login} from ${project}`,
|
|
285
|
+
taskCreated: (task) => `wrote ${task}`,
|
|
286
|
+
taskMoved: (task, from, to) => `moved ${task} from ${from} to ${to}`,
|
|
287
|
+
taskUpdated: (fields, task) => `changed ${fields} of ${task}`,
|
|
288
|
+
decisionRaised: (question) => `asked: ${question}`,
|
|
289
|
+
decisionAnswered: (question, option) => `answered "${question}": ${option}`,
|
|
290
|
+
decisionUpdated: (fields, question) => `wrote ${fields} of the decision "${question}"`,
|
|
291
|
+
runStarted: (task) => `started on ${task}`,
|
|
292
|
+
runReported: (task, excerpt) => `reported on ${task}${excerpt === undefined ? "" : `: ${excerpt}`}`,
|
|
293
|
+
runHandedIn: (label, task) => `handed in ${label} on ${task}`,
|
|
294
|
+
runFinished: (task) => `finished ${task}`,
|
|
295
|
+
runFailed: (task) => `failed on ${task}`,
|
|
296
|
+
runAbandoned: (task) => `gave up on ${task}`,
|
|
297
|
+
documentWritten: (page, version) => `wrote ${page}${version === undefined ? "" : `, version ${version}`}`,
|
|
298
|
+
documentArchived: (page) => `archived ${page}`,
|
|
299
|
+
documentRestored: (page) => `restored ${page}`,
|
|
300
|
+
fileAttached: (label, page) => `attached ${label} to ${page}`,
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
runs: {
|
|
304
|
+
for: "for",
|
|
305
|
+
since: "since",
|
|
306
|
+
until: "until",
|
|
307
|
+
markAbandoned: "Mark abandoned",
|
|
308
|
+
waitingForDecision: "Waiting for a decision",
|
|
309
|
+
answerIt: "answer it",
|
|
310
|
+
reports: "Reports",
|
|
311
|
+
handedIn: "Handed in",
|
|
312
|
+
label: (agent, login) => `${agent} for ${login}`,
|
|
313
|
+
},
|
|
314
|
+
skills: {
|
|
315
|
+
loading: "Loading the skills",
|
|
316
|
+
list: "Skills",
|
|
317
|
+
noAddress: {
|
|
318
|
+
title: "No skills address yet",
|
|
319
|
+
body: "This console has no address for the organization's skills. Whoever runs it names a repository served by SkillCDN in its configuration.",
|
|
320
|
+
},
|
|
321
|
+
servedBy: "The organization's skills, served by",
|
|
322
|
+
at: "at",
|
|
323
|
+
howLoaded: ". An agent loads one through its SkillCDN connection; a person reads it at its page.",
|
|
324
|
+
status: {
|
|
325
|
+
indexing: "SkillCDN is still indexing the repository. Look again in a moment.",
|
|
326
|
+
failed: "SkillCDN could not index the repository. What it found is on the address's page.",
|
|
327
|
+
not_found: "SkillCDN does not serve this address, or serves it only to someone signed in there. The address's page says which.",
|
|
328
|
+
unavailable: "SkillCDN could not be reached. The skills are as they were; look again later.",
|
|
329
|
+
},
|
|
330
|
+
none: {
|
|
331
|
+
title: "No skills at this address",
|
|
332
|
+
body: "The repository is served, and SkillCDN found no skill in it.",
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
docs: {
|
|
336
|
+
title: "Docs",
|
|
337
|
+
newPage: "New page",
|
|
338
|
+
newPageAria: "New page",
|
|
339
|
+
facts: "About this page",
|
|
340
|
+
editPageAria: "Edit the page",
|
|
341
|
+
writeIt: "Write it",
|
|
342
|
+
found: "Pages found",
|
|
343
|
+
searchLabel: "Find pages",
|
|
344
|
+
searchPlaceholder: "Find pages by their words",
|
|
345
|
+
find: "Find",
|
|
346
|
+
searching: "Searching",
|
|
347
|
+
loading: "Loading the documents",
|
|
348
|
+
pagesWith: (words) => `Pages with "${words}"`,
|
|
349
|
+
noPageHasWords: "No page has these words",
|
|
350
|
+
couldNotLoad: "The documents could not be loaded.",
|
|
351
|
+
searchFailed: "The search did not go.",
|
|
352
|
+
emptyRoot: {
|
|
353
|
+
title: "No pages yet",
|
|
354
|
+
body: "Write the first one: what the project rests on, in Markdown, at a path of its own.",
|
|
355
|
+
},
|
|
356
|
+
emptyPath: {
|
|
357
|
+
title: "No page at this path",
|
|
358
|
+
body: "Nothing is written here yet, and no folder of that name holds a page.",
|
|
359
|
+
},
|
|
360
|
+
folders: "Folders",
|
|
361
|
+
pages: "Pages",
|
|
362
|
+
archived: "Archived",
|
|
363
|
+
version: (n) => `v${n}`,
|
|
364
|
+
versionWord: "version",
|
|
365
|
+
writtenBy: "written by",
|
|
366
|
+
versionOf: (n, of) => `Version ${n} of ${of}`,
|
|
367
|
+
showLatest: "Show the latest",
|
|
368
|
+
archivedNotice: "This page is archived: out of the folders and the search, and not written to.",
|
|
369
|
+
archive: "Archive",
|
|
370
|
+
restore: "Restore",
|
|
371
|
+
nothingOnPage: "Nothing is written on this page yet.",
|
|
372
|
+
refersTo: "Refers to",
|
|
373
|
+
noPageThereYet: "no page there yet",
|
|
374
|
+
referredToBy: "Referred to by",
|
|
375
|
+
decisionPrefix: "Decision: ",
|
|
376
|
+
files: "Files",
|
|
377
|
+
fileToAttach: "A file to attach",
|
|
378
|
+
labelPlaceholder: "What to call it, if not its name",
|
|
379
|
+
attach: "Attach",
|
|
380
|
+
by: "by",
|
|
381
|
+
versions: "Versions",
|
|
382
|
+
asAgentTitle: "The agent the person wrote it through",
|
|
383
|
+
form: {
|
|
384
|
+
path: "Path",
|
|
385
|
+
pathHint: "Lowercase letters, digits and hyphens, with slashes between folders. It does not change once written.",
|
|
386
|
+
title: "Title",
|
|
387
|
+
body: "Body",
|
|
388
|
+
bodyPlaceholder: "Markdown. A link to another page's path, such as guides/onboarding, refers to that page.",
|
|
389
|
+
write: "Write the page",
|
|
390
|
+
writeVersion: "Write a new version",
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
people: {
|
|
394
|
+
title: "People",
|
|
395
|
+
list: "People",
|
|
396
|
+
lead: "Everyone who has signed in. An administrator configures the workspace and says what each person is; a member works in the projects they are in. What a person may do, their agents may do.",
|
|
397
|
+
roleOf: (login) => `Role of ${login}`,
|
|
398
|
+
agents: "Agents",
|
|
399
|
+
agentsOf: (login) => `Agents of ${login}`,
|
|
400
|
+
agentsLead: (name) => `What works here as ${name}, each with a token of its own. Disconnecting one takes its token away at once.`,
|
|
401
|
+
loadingAgents: "Loading the agents",
|
|
402
|
+
noAgent: "No agent is connected",
|
|
403
|
+
onlyAdmin: {
|
|
404
|
+
title: "Only an administrator sees another person's agents",
|
|
405
|
+
body: "Your own are on your Agents page.",
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
agents: {
|
|
409
|
+
title: "Agents",
|
|
410
|
+
makeByHand: "Make a token by hand",
|
|
411
|
+
makeAria: "Make a token",
|
|
412
|
+
lead: "What works here as you: each agent you connected, with a token of its own that nobody sees. What you may do, it may do; disconnect it here when that is over. A script or a console of your own holds a token the same way, made by hand.",
|
|
413
|
+
empty: {
|
|
414
|
+
title: "No agent is connected yet",
|
|
415
|
+
body: "Tell your agent to connect to this console, as below, and it shows up here.",
|
|
416
|
+
},
|
|
417
|
+
list: "Agents",
|
|
418
|
+
connected: "Connected",
|
|
419
|
+
doesNotExpire: "Does not expire",
|
|
420
|
+
goodUntil: "Good until",
|
|
421
|
+
notActive: "Not active yet",
|
|
422
|
+
lastActive: "Last active",
|
|
423
|
+
disconnect: "Disconnect",
|
|
424
|
+
form: {
|
|
425
|
+
name: "Name",
|
|
426
|
+
namePlaceholder: "The agent it is for, and where it runs",
|
|
427
|
+
goodFor: "Good for",
|
|
428
|
+
days: (n) => `${n} days`,
|
|
429
|
+
make: "Make the token",
|
|
430
|
+
},
|
|
431
|
+
fresh: {
|
|
432
|
+
ready: (name) => `The token "${name}" is ready`,
|
|
433
|
+
copyNow: "Copy it now: it is shown this once, and the console keeps only its hash.",
|
|
434
|
+
copy: "Copy",
|
|
435
|
+
copied: "Copied",
|
|
436
|
+
useIt: "Sign the console command in with it, present it as a bearer token to the REST API, or give it to a console or a script of your own.",
|
|
437
|
+
removeWhenDone: "It does not expire, so remove it here once it is no longer needed.",
|
|
438
|
+
goodUntilBefore: "It is good until",
|
|
439
|
+
goodUntilAfter: ", and you can remove it here at any time.",
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
connect: {
|
|
443
|
+
title: "Connect an agent",
|
|
444
|
+
aria: "Connect",
|
|
445
|
+
lead: "Your agent showed you a code when it was told to connect to this console. Type it here, and say whether the agent may work as you.",
|
|
446
|
+
codeAria: "The code",
|
|
447
|
+
codeLabel: "The code your agent showed",
|
|
448
|
+
continue: "Continue",
|
|
449
|
+
lookingUp: "Looking the code up",
|
|
450
|
+
notACode: "That is not a code: eight letters and digits, in two groups.",
|
|
451
|
+
noSuchCode: "No agent asks to connect with this code. A code is good for ten minutes and for one approval; ask your agent for a new one.",
|
|
452
|
+
couldNotAsk: "The console could not be asked.",
|
|
453
|
+
asks: {
|
|
454
|
+
title: "An agent asks to connect as you",
|
|
455
|
+
callsItself: "It calls itself:",
|
|
456
|
+
showedCode: "The code it showed:",
|
|
457
|
+
ifNot: "If that is not the code on your screen, or you did not ask for this, say that it is not yours.",
|
|
458
|
+
approvedMeans: "Approved, it works here as you, within what you may do, until you disconnect it on your Agents page. It gets a token of its own, which nobody sees, you included.",
|
|
459
|
+
asked: "Asked",
|
|
460
|
+
goodUntil: "good until",
|
|
461
|
+
},
|
|
462
|
+
approve: "Approve",
|
|
463
|
+
notMine: "Not mine",
|
|
464
|
+
approved: {
|
|
465
|
+
title: (agent) => `"${agent}" is connected as you`,
|
|
466
|
+
body: "The agent gets its token on its own; there is nothing to copy. You can close this page, or see what is connected on your Agents page.",
|
|
467
|
+
agentsPage: "Agents page",
|
|
468
|
+
},
|
|
469
|
+
denied: {
|
|
470
|
+
title: "Nothing was connected",
|
|
471
|
+
body: "The code is spent. An agent that should connect shows a new one when told again.",
|
|
472
|
+
},
|
|
473
|
+
words: {
|
|
474
|
+
title: "Connecting an agent",
|
|
475
|
+
tellYourAgent: "Tell your agent, in its own chat:",
|
|
476
|
+
quote: (origin) => `Install the console command and connect to ${origin}.`,
|
|
477
|
+
doesTheRest: "An agent that can run commands does the rest: it installs the command, connects, and shows you an address with a code.",
|
|
478
|
+
thenApprove: "Open the address, signed in here, check that the page shows the same code, give the agent a name, and approve. From then on the agent works here as you, within what you may do; disconnect it on this page when that is over. The token it holds is never shown to anyone, you included.",
|
|
479
|
+
byHand: "By hand, where no agent runs the command for you:",
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
};
|
|
483
|
+
//# sourceMappingURL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,EAAE,CAAC,8CAA8C,MAAM,GAAG;YAClF,WAAW,EACT,wHAAwH;YAC1H,WAAW,EACT,2RAA2R;YAC7R,MAAM,EAAE,mDAAmD;SAC5D;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Messages } from "./en.js";
|
|
2
|
+
export type { Messages } from "./en.js";
|
|
3
|
+
export interface LanguagePack {
|
|
4
|
+
/** The language's tag, as the browser and the person's choice name it: `en`, `ko`. */
|
|
5
|
+
readonly tag: string;
|
|
6
|
+
/** What the language is called, in itself. */
|
|
7
|
+
readonly label: string;
|
|
8
|
+
readonly messages: Messages;
|
|
9
|
+
}
|
|
10
|
+
export declare const ENGLISH: LanguagePack;
|
|
11
|
+
export declare const KOREAN: LanguagePack;
|
|
12
|
+
/** The packs the package ships, English first: what the default console speaks. */
|
|
13
|
+
export declare const DEFAULT_LANGUAGES: readonly LanguagePack[];
|
|
14
|
+
export declare const LanguageContext: import("react").Context<LanguagePack>;
|
|
15
|
+
/** The language the page is in. */
|
|
16
|
+
export declare function useLanguage(): LanguagePack;
|
|
17
|
+
/** The words of the language the page is in. */
|
|
18
|
+
export declare function useWords(): Messages;
|
|
19
|
+
/** The pack a tag names, by the tag itself or by its language part, or nothing. */
|
|
20
|
+
export declare function packFor(tag: string | null | undefined, packs: readonly LanguagePack[]): LanguagePack | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The language to speak: the person's choice when it names a pack, else the first of the
|
|
23
|
+
* browser's languages that does, else the first pack.
|
|
24
|
+
*/
|
|
25
|
+
export declare function chooseLanguage(chosen: string | null | undefined, browser: readonly string[], packs?: readonly LanguagePack[]): LanguagePack;
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAM,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAO5C,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,WAAW,YAAY;IAC3B,sFAAsF;IACtF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,OAAO,EAAE,YAA6D,CAAC;AACpF,eAAO,MAAM,MAAM,EAAE,YAA6D,CAAC;AAEnF,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,EAAE,SAAS,YAAY,EAAsB,CAAC;AAE5E,eAAO,MAAM,eAAe,uCAAuC,CAAC;AAEpE,mCAAmC;AACnC,wBAAgB,WAAW,IAAI,YAAY,CAE1C;AAED,gDAAgD;AAChD,wBAAgB,QAAQ,IAAI,QAAQ,CAEnC;AAKD,mFAAmF;AACnF,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC9B,KAAK,EAAE,SAAS,YAAY,EAAE,GAC7B,YAAY,GAAG,SAAS,CAS1B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,KAAK,GAAE,SAAS,YAAY,EAAsB,GACjD,YAAY,CAad"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
import { en } from "./en.js";
|
|
3
|
+
import { ko } from "./ko.js";
|
|
4
|
+
export const ENGLISH = { tag: en.tag, label: en.label, messages: en };
|
|
5
|
+
export const KOREAN = { tag: ko.tag, label: ko.label, messages: ko };
|
|
6
|
+
/** The packs the package ships, English first: what the default console speaks. */
|
|
7
|
+
export const DEFAULT_LANGUAGES = [ENGLISH, KOREAN];
|
|
8
|
+
export const LanguageContext = createContext(ENGLISH);
|
|
9
|
+
/** The language the page is in. */
|
|
10
|
+
export function useLanguage() {
|
|
11
|
+
return useContext(LanguageContext);
|
|
12
|
+
}
|
|
13
|
+
/** The words of the language the page is in. */
|
|
14
|
+
export function useWords() {
|
|
15
|
+
return useContext(LanguageContext).messages;
|
|
16
|
+
}
|
|
17
|
+
/** The language part of a tag: `ko` of `ko-KR`. */
|
|
18
|
+
const languageOf = (tag) => tag.toLowerCase().split("-")[0] ?? "";
|
|
19
|
+
/** The pack a tag names, by the tag itself or by its language part, or nothing. */
|
|
20
|
+
export function packFor(tag, packs) {
|
|
21
|
+
if (tag === null || tag === undefined || tag.length === 0) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
const wanted = tag.toLowerCase();
|
|
25
|
+
return (packs.find((pack) => pack.tag.toLowerCase() === wanted) ??
|
|
26
|
+
packs.find((pack) => languageOf(pack.tag) === languageOf(wanted)));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The language to speak: the person's choice when it names a pack, else the first of the
|
|
30
|
+
* browser's languages that does, else the first pack.
|
|
31
|
+
*/
|
|
32
|
+
export function chooseLanguage(chosen, browser, packs = DEFAULT_LANGUAGES) {
|
|
33
|
+
const first = packs[0] ?? ENGLISH;
|
|
34
|
+
const own = packFor(chosen, packs);
|
|
35
|
+
if (own !== undefined) {
|
|
36
|
+
return own;
|
|
37
|
+
}
|
|
38
|
+
for (const tag of browser) {
|
|
39
|
+
const found = packFor(tag, packs);
|
|
40
|
+
if (found !== undefined) {
|
|
41
|
+
return found;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return first;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,EAAE,EAAiB,MAAM,S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