@things-factory/figure-library 10.1.283 → 10.1.287

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.
@@ -1,2 +1,6 @@
1
1
  export declare function setFigureLibraryFileUrl(resolver: ((hash: string) => string) | undefined): void;
2
2
  export declare function figureLibraryFileUrl(hash: string): string;
3
+ export declare function setFigureSourceThumbnailUrl(resolver: ((figureId: string, version: string) => string) | undefined): void;
4
+ export declare function figureSourceThumbnailUrl(figureId: string, version: string): string;
5
+ export declare function setFigureSourceOnLibrary(on: boolean): void;
6
+ export declare function figureSourceOnLibrary(): boolean;
@@ -11,4 +11,30 @@ export function setFigureLibraryFileUrl(resolver) {
11
11
  export function figureLibraryFileUrl(hash) {
12
12
  return resolve ? resolve(hash) : `${getPathInfo(location.pathname).contextPath}/figure-library-file/${hash}`;
13
13
  }
14
+ /*
15
+ * Where the picture of a figure in the figure server's catalog is fetched (ADR-0114 decision 25). This server relays
16
+ * it at `/figure-library-source/thumbnail/:figureId`; an app whose figure library lives on another server says where
17
+ * with `setFigureSourceThumbnailUrl`. `version` (the picture's hash) changes the address when the picture changes.
18
+ */
19
+ let resolveSourceThumbnail;
20
+ export function setFigureSourceThumbnailUrl(resolver) {
21
+ resolveSourceThumbnail = resolver;
22
+ }
23
+ export function figureSourceThumbnailUrl(figureId, version) {
24
+ return resolveSourceThumbnail
25
+ ? resolveSourceThumbnail(figureId, version)
26
+ : `${getPathInfo(location.pathname).contextPath}/figure-library-source/thumbnail/${encodeURIComponent(figureId)}?v=${encodeURIComponent(version)}`;
27
+ }
28
+ /*
29
+ * Whether the figure server connection is set on the library screen itself (ADR-0114 decision 21, amended 2026-11-15).
30
+ * An app with a Settings screen keeps it there, and the library offers the install once it is set. An app with no
31
+ * Settings screen (fmsim) turns this on: the library always offers the install, and its window holds the connection.
32
+ */
33
+ let connectionOnLibrary = false;
34
+ export function setFigureSourceOnLibrary(on) {
35
+ connectionOnLibrary = on;
36
+ }
37
+ export function figureSourceOnLibrary() {
38
+ return connectionOnLibrary;
39
+ }
14
40
  //# sourceMappingURL=figure-library-file.js.map
@@ -17,7 +17,7 @@ import { i18next, localize } from '@operato/i18n';
17
17
  import { openPopup } from '@operato/popup';
18
18
  import { PageView } from '@operato/shell';
19
19
  import { CardCatalogStyles, CommonGristStyles, CommonHeaderStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles';
20
- import { figureLibraryFileUrl } from '../figure-library-file.js';
20
+ import { figureLibraryFileUrl, figureSourceOnLibrary } from '../figure-library-file.js';
21
21
  /*
22
22
  * The board server's figures (ADR-0114, amended 2026-10-12), as a card catalogue with the board catalog's card: the
23
23
  * thumbnail, the name, and one line - the full name and the version it draws with. The one thing to know before opening
@@ -131,7 +131,7 @@ let FigureLibraryPage = class FigureLibraryPage extends localize(i18next)(PageVi
131
131
  <ox-grist class="page-fill" mode="CARD" .config=${this.gristConfig} .fetchHandler=${this.fetchHandler}>
132
132
  <div slot="headroom" filters-row>
133
133
  <ox-filters-form autofocus without-search></ox-filters-form>
134
- ${this.sourceSet
134
+ ${this.sourceSet || figureSourceOnLibrary()
135
135
  ? html `<md-text-button source-install @click=${() => this.openSourceInstall()}>
136
136
  <md-icon slot="icon">download</md-icon>${i18next.t('figure-library.button.install-from-source')}
137
137
  </md-text-button>`
@@ -10,6 +10,8 @@ declare const FigureSourceSettingLet_base: (new (...args: any[]) => LitElement)
10
10
  */
11
11
  export declare class FigureSourceSettingLet extends FigureSourceSettingLet_base {
12
12
  static styles: import("lit").CSSResult[];
13
+ /** Set by a host that has already decided this person keeps the connection (the install window on the library). */
14
+ editable: boolean;
13
15
  private keeps;
14
16
  private draft;
15
17
  private checking;
@@ -4,7 +4,7 @@ import '@material/web/button/text-button.js';
4
4
  import '@things-factory/setting-base';
5
5
  import gql from 'graphql-tag';
6
6
  import { css, html, LitElement, nothing } from 'lit';
7
- import { customElement, state } from 'lit/decorators.js';
7
+ import { customElement, property, state } from 'lit/decorators.js';
8
8
  import { client, MutationController, QueryController } from '@operato/graphql';
9
9
  import { i18next, localize } from '@operato/i18n';
10
10
  import { notify } from '@operato/layout';
@@ -19,6 +19,8 @@ const FIELDS = 'url domain tokenSet tokenHint';
19
19
  let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18next)(LitElement) {
20
20
  constructor() {
21
21
  super(...arguments);
22
+ /** Set by a host that has already decided this person keeps the connection (the install window on the library). */
23
+ this.editable = false;
22
24
  this.keeps = false;
23
25
  this.draft = {};
24
26
  this.checking = false;
@@ -75,6 +77,9 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
75
77
  margin-right: auto;
76
78
  font-size: var(--ui-t-small, 11.5px);
77
79
  }
80
+ small[missing] {
81
+ color: var(--ui-warn, #b26b00);
82
+ }
78
83
  [checked][failed] {
79
84
  color: var(--ui-crit, var(--md-sys-color-error));
80
85
  }
@@ -82,7 +87,7 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
82
87
  ]; }
83
88
  async connectedCallback() {
84
89
  super.connectedCallback();
85
- this.keeps = await hasPrivilege({ category: 'env-var', privilege: 'mutation', domainOwnerGranted: true });
90
+ this.keeps = this.editable || !!(await hasPrivilege({ category: 'env-var', privilege: 'mutation', domainOwnerGranted: true }));
86
91
  }
87
92
  get setting() {
88
93
  return this.settingRead.data?.figureLibrarySource || undefined;
@@ -93,6 +98,9 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
93
98
  return nothing;
94
99
  const busy = this.saving.pending;
95
100
  const value = (name) => this.draft[name] ?? setting[name] ?? '';
101
+ /* Once any part is saved, a part still empty says the connection waits for it - an example is not a value. */
102
+ const begun = !!(setting.url || setting.domain || setting.tokenSet);
103
+ const missing = (name) => begun && !setting[name] ? html `<small class="hint" missing>${i18next.t('figure-library.setting.missing')}</small>` : nothing;
96
104
  const set = (name, text) => (this.draft = { ...this.draft, [name]: text });
97
105
  return html `
98
106
  <setting-let>
@@ -100,12 +108,20 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
100
108
  <div slot="content" content>
101
109
  <label
102
110
  >${i18next.t('figure-library.setting.url')}
103
- <input type="url" autocomplete="off" placeholder="https://figure.hatiolab.com" .value=${value('url')} ?disabled=${busy} @input=${(e) => set('url', e.target.value)}
104
- /></label>
111
+ <input type="url" autocomplete="off" placeholder=${i18next.t('figure-library.setting.example', { value: 'https://figure.hatiolab.com' })}
112
+ .value=${value('url')}
113
+ ?disabled=${busy}
114
+ @input=${(e) => set('url', e.target.value)}
115
+ />${missing('url')}</label
116
+ >
105
117
  <label
106
118
  >${i18next.t('figure-library.setting.domain')}
107
- <input autocomplete="off" placeholder="system" .value=${value('domain')} ?disabled=${busy} @input=${(e) => set('domain', e.target.value)}
108
- /></label>
119
+ <input autocomplete="off" placeholder=${i18next.t('figure-library.setting.example', { value: 'system' })}
120
+ .value=${value('domain')}
121
+ ?disabled=${busy}
122
+ @input=${(e) => set('domain', e.target.value)}
123
+ />${missing('domain')}</label
124
+ >
109
125
  <label class="wide"
110
126
  >${i18next.t('figure-library.setting.token')}
111
127
  <input type="password" autocomplete="off" .value=${this.draft.token ?? ''} ?disabled=${busy} @input=${(e) => set('token', e.target.value)} />
@@ -165,8 +181,13 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
165
181
  this.draft = {};
166
182
  this.checked = undefined;
167
183
  notify({ message: i18next.t('figure-library.setting.saved') });
184
+ this.dispatchEvent(new CustomEvent('saved', { bubbles: true, composed: true }));
168
185
  }
169
186
  };
187
+ __decorate([
188
+ property({ type: Boolean }),
189
+ __metadata("design:type", Object)
190
+ ], FigureSourceSettingLet.prototype, "editable", void 0);
170
191
  __decorate([
171
192
  state(),
172
193
  __metadata("design:type", Object)
@@ -2,6 +2,7 @@ import '@material/web/button/text-button.js';
2
2
  import '@material/web/button/filled-button.js';
3
3
  import '@operato/popup/ox-popup-actions.js';
4
4
  import './figure-import-result.js';
5
+ import '../settings/figure-source-setting-let.js';
5
6
  import { LitElement } from 'lit';
6
7
  declare const FigureSourceInstall_base: (new (...args: any[]) => LitElement) & typeof LitElement;
7
8
  export declare class FigureSourceInstall extends FigureSourceInstall_base {
@@ -14,7 +15,13 @@ export declare class FigureSourceInstall extends FigureSourceInstall_base {
14
15
  private failure;
15
16
  private chosen;
16
17
  private result?;
18
+ /** The connection, when this window holds it (setFigureSourceOnLibrary). */
19
+ private source?;
20
+ private connecting;
17
21
  connectedCallback(): void;
22
+ private get connected();
23
+ private readSource;
24
+ private renderConnection;
18
25
  render(): import("lit-html").TemplateResult<1>;
19
26
  private renderItem;
20
27
  private choose;
@@ -3,14 +3,24 @@ import '@material/web/button/text-button.js';
3
3
  import '@material/web/button/filled-button.js';
4
4
  import '@operato/popup/ox-popup-actions.js';
5
5
  import './figure-import-result.js';
6
+ import '../settings/figure-source-setting-let.js';
6
7
  import gql from 'graphql-tag';
7
8
  import { css, html, LitElement, nothing } from 'lit';
8
9
  import { customElement, state } from 'lit/decorators.js';
9
10
  import { client } from '@operato/graphql';
10
11
  import { i18next, localize } from '@operato/i18n';
11
12
  import { CommonPopupStyles, FormFieldStyles, PopupBodyStyles, PopupFieldStyles } from '@operato/styles';
12
- import { getPathInfo } from '@operato/utils';
13
13
  import { announceLibraryChanged } from '../figure-library-changed.js';
14
+ import { figureSourceOnLibrary, figureSourceThumbnailUrl } from '../figure-library-file.js';
15
+ const SOURCE = gql `
16
+ query {
17
+ figureLibrarySource {
18
+ url
19
+ domain
20
+ tokenSet
21
+ }
22
+ }
23
+ `;
14
24
  /** How many figures one read brings; 「더 보기」 reads the next. */
15
25
  const PAGE = 50;
16
26
  const CATALOG = gql `
@@ -62,6 +72,9 @@ const STATUS_TONE = {
62
72
  * reads the figure server's catalog and installs the chosen releases through the same import a package file goes
63
73
  * through, so the result reads as a file import's does. The browser never talks to the figure server: the catalog, the
64
74
  * pictures and the install are this server's doors.
75
+ *
76
+ * In an app with no Settings screen (`setFigureSourceOnLibrary`) the window also holds the connection: the connection
77
+ * card while none is set, and the server it installs from with 「연결 바꾸기」 once it is.
65
78
  */
66
79
  let FigureSourceInstall = class FigureSourceInstall extends localize(i18next)(LitElement) {
67
80
  constructor() {
@@ -73,6 +86,7 @@ let FigureSourceInstall = class FigureSourceInstall extends localize(i18next)(Li
73
86
  this.installing = false;
74
87
  this.failure = '';
75
88
  this.chosen = new Set();
89
+ this.connecting = false;
76
90
  }
77
91
  static { this.styles = [
78
92
  CommonPopupStyles,
@@ -150,16 +164,73 @@ let FigureSourceInstall = class FigureSourceInstall extends localize(i18next)(Li
150
164
  [more] {
151
165
  align-self: center;
152
166
  }
167
+ [connection] {
168
+ display: flex;
169
+ align-items: center;
170
+ gap: var(--spacing-small, 4px);
171
+ color: var(--ui-muted);
172
+ font-size: var(--ui-t-small, 11.5px);
173
+ }
174
+ [connection] md-text-button {
175
+ margin-left: auto;
176
+ }
153
177
  `
154
178
  ]; }
155
179
  connectedCallback() {
156
180
  super.connectedCallback();
157
- this.read(true);
181
+ figureSourceOnLibrary() ? this.readSource() : this.read(true);
182
+ }
183
+ get connected() {
184
+ return !!(this.source?.url && this.source?.domain && this.source?.tokenSet);
185
+ }
186
+ /* The connection this window holds: the catalog is read once it is complete. */
187
+ async readSource() {
188
+ try {
189
+ const response = await client.query({ query: SOURCE, fetchPolicy: 'no-cache' });
190
+ this.source = response.data?.figureLibrarySource ?? { tokenSet: false };
191
+ }
192
+ catch {
193
+ this.source = { tokenSet: false };
194
+ }
195
+ this.connecting = !this.connected;
196
+ if (this.connected)
197
+ await this.read(true);
198
+ }
199
+ renderConnection() {
200
+ if (!figureSourceOnLibrary() || !this.source)
201
+ return nothing;
202
+ const host = this.source.url ? this.source.url.replace(/^https?:\/\//, '') : '';
203
+ return html `
204
+ ${this.connected
205
+ ? html `<div connection>
206
+ <span>${host} · ${this.source.domain}</span>
207
+ <md-text-button @click=${() => (this.connecting = !this.connecting)}>${i18next.t('figure-library.button.change-source')}</md-text-button>
208
+ </div>`
209
+ : nothing}
210
+ ${this.connecting
211
+ ? html `<figure-source-setting-let
212
+ editable
213
+ @saved=${(e) => {
214
+ e.stopPropagation();
215
+ this.readSource();
216
+ }}
217
+ ></figure-source-setting-let>`
218
+ : nothing}
219
+ `;
158
220
  }
159
221
  render() {
160
222
  const count = this.chosen.size;
223
+ if (figureSourceOnLibrary() && !this.connected) {
224
+ return html `
225
+ <div class="body">${this.renderConnection()}</div>
226
+ <ox-popup-actions>
227
+ <md-text-button slot="cancel" @click=${() => this.dispatchEvent(new CustomEvent('close'))}>${i18next.t('figure-library.button.close')}</md-text-button>
228
+ </ox-popup-actions>
229
+ `;
230
+ }
161
231
  return html `
162
232
  <div class="body">
233
+ ${this.renderConnection()}
163
234
  <label class="field">
164
235
  <span>${i18next.t('figure-library.label.search-source')}</span>
165
236
  <input
@@ -196,7 +267,7 @@ let FigureSourceInstall = class FigureSourceInstall extends localize(i18next)(Li
196
267
  }
197
268
  renderItem(item) {
198
269
  const name = item.names?.[i18next.language] ?? item.name ?? item.fullName;
199
- const picture = item.thumbnailHash ? `${getPathInfo(location.pathname).contextPath}/figure-library-source/thumbnail/${item.figureId}?v=${item.thumbnailHash}` : null;
270
+ const picture = item.thumbnailHash ? figureSourceThumbnailUrl(item.figureId, item.thumbnailHash) : null;
200
271
  const version = item.installedVersion && item.installedVersion !== item.version
201
272
  ? i18next.t('figure-library.text.source-version-here', { version: item.version, here: item.installedVersion })
202
273
  : i18next.t('figure-library.text.source-version', { version: item.version });
@@ -306,6 +377,14 @@ __decorate([
306
377
  state(),
307
378
  __metadata("design:type", Object)
308
379
  ], FigureSourceInstall.prototype, "result", void 0);
380
+ __decorate([
381
+ state(),
382
+ __metadata("design:type", Object)
383
+ ], FigureSourceInstall.prototype, "source", void 0);
384
+ __decorate([
385
+ state(),
386
+ __metadata("design:type", Object)
387
+ ], FigureSourceInstall.prototype, "connecting", void 0);
309
388
  FigureSourceInstall = __decorate([
310
389
  customElement('figure-source-install')
311
390
  ], FigureSourceInstall);
@@ -19,7 +19,7 @@ export * from './source/source-setting-rules';
19
19
  export * from './source/source-client';
20
20
  export * from './source/source-install';
21
21
  export * from './source/figure-source-resolver';
22
- export declare const entities: (typeof FigureTypeMapEntry | typeof FigureLibraryRelease)[];
22
+ export declare const entities: (typeof FigureLibraryRelease | typeof FigureTypeMapEntry)[];
23
23
  export declare const schema: {
24
24
  resolverClasses: (typeof FigureSourceResolver | typeof FigureLibraryResolver)[];
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/figure-library",
3
- "version": "10.1.283",
3
+ "version": "10.1.287",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "files": [
@@ -69,5 +69,5 @@
69
69
  "koa-router": "^7.4.0",
70
70
  "lit": "^3.1.2"
71
71
  },
72
- "gitHead": "912e4835a175273005bba4a98da160906caa2b40"
72
+ "gitHead": "cc547a35fc3f0cda7ae5bc8337a5bb342db4efdc"
73
73
  }
@@ -168,7 +168,7 @@
168
168
  "figure-library.setting.domain": "domain on the figure server",
169
169
  "figure-library.setting.token": "access token",
170
170
  "figure-library.setting.token-set": "Saved ({hint}). Enter a new token to replace it.",
171
- "figure-library.setting.token-unset": "Register an appliance on the figure server and enter the access token it issues.",
171
+ "figure-library.setting.token-unset": "Enter the token issued under 「Board server install keys」 in the figure server's Settings.",
172
172
  "figure-library.setting.check": "check connection",
173
173
  "figure-library.setting.check-ok": "Connected. {count} figures can be installed.",
174
174
  "figure-library.setting.saved": "Saved.",
@@ -181,5 +181,8 @@
181
181
  "error.figure-source-url-invalid": "The address is a web address that starts with http:// or https://.",
182
182
  "error.figure-source-domain-invalid": "Enter the domain name that follows /domain/ in the figure server address.",
183
183
  "error.figure-source-token-invalid": "The token has no spaces.",
184
- "error.figure-import-conflict": "The same version is already here with another content."
184
+ "error.figure-import-conflict": "The same version is already here with another content.",
185
+ "figure-library.button.change-source": "Change connection",
186
+ "figure-library.setting.example": "e.g. {value}",
187
+ "figure-library.setting.missing": "Needed to connect."
185
188
  }
@@ -168,7 +168,7 @@
168
168
  "figure-library.setting.domain": "dominio en el servidor de figuras",
169
169
  "figure-library.setting.token": "token de acceso",
170
170
  "figure-library.setting.token-set": "Guardado ({hint}). Introduzca un token nuevo para reemplazarlo.",
171
- "figure-library.setting.token-unset": "Registre un dispositivo en el servidor de figuras e introduzca el token de acceso que emite.",
171
+ "figure-library.setting.token-unset": "Introduzca el token emitido en 「Claves de instalación de servidores de tableros」 en la Configuración del servidor de figuras.",
172
172
  "figure-library.setting.check": "comprobar conexión",
173
173
  "figure-library.setting.check-ok": "Conectado. Se pueden instalar {count} figuras.",
174
174
  "figure-library.setting.saved": "Guardado.",
@@ -181,5 +181,8 @@
181
181
  "error.figure-source-url-invalid": "La dirección debe empezar por http:// o https://.",
182
182
  "error.figure-source-domain-invalid": "Introduzca el nombre de dominio que sigue a /domain/ en la dirección del servidor de figuras.",
183
183
  "error.figure-source-token-invalid": "El token no puede contener espacios.",
184
- "error.figure-import-conflict": "La misma versión ya está aquí con otro contenido."
184
+ "error.figure-import-conflict": "La misma versión ya está aquí con otro contenido.",
185
+ "figure-library.button.change-source": "Cambiar conexión",
186
+ "figure-library.setting.example": "p. ej. {value}",
187
+ "figure-library.setting.missing": "Necesario para conectar."
185
188
  }
@@ -168,7 +168,7 @@
168
168
  "figure-library.setting.domain": "Figure サーバーのドメイン",
169
169
  "figure-library.setting.token": "アクセストークン",
170
170
  "figure-library.setting.token-set": "保存済みです({hint})。変更するには新しいトークンを入力してください。",
171
- "figure-library.setting.token-unset": "Figure サーバーで端末を登録し、発行されたアクセストークンを入力してください。",
171
+ "figure-library.setting.token-unset": "フィギュアサーバーの設定「ボードサーバーのインストールキー」で発行したトークンを入力してください。",
172
172
  "figure-library.setting.check": "接続確認",
173
173
  "figure-library.setting.check-ok": "接続しました。インストールできる Figure は {count} 件です。",
174
174
  "figure-library.setting.saved": "保存しました。",
@@ -181,5 +181,8 @@
181
181
  "error.figure-source-url-invalid": "サーバーアドレスは http:// または https:// で始まる Web アドレスである必要があります。",
182
182
  "error.figure-source-domain-invalid": "Figure サーバーのアドレスで /domain/ の後にあるドメイン名を入力してください。",
183
183
  "error.figure-source-token-invalid": "アクセストークンに空白は入力できません。",
184
- "error.figure-import-conflict": "同じバージョンが別の内容で既に登録されているため、登録できません。"
184
+ "error.figure-import-conflict": "同じバージョンが別の内容で既に登録されているため、登録できません。",
185
+ "figure-library.button.change-source": "接続を変更",
186
+ "figure-library.setting.example": "例: {value}",
187
+ "figure-library.setting.missing": "入力すると接続されます。"
185
188
  }
@@ -168,7 +168,7 @@
168
168
  "figure-library.setting.domain": "피규어 서버의 사업장",
169
169
  "figure-library.setting.token": "접속 토큰",
170
170
  "figure-library.setting.token-set": "저장되어 있습니다({hint}). 변경하려면 새 토큰을 입력하세요.",
171
- "figure-library.setting.token-unset": "피규어 서버에서 단말장치를 등록하고 발급받은 access token을 입력하세요.",
171
+ "figure-library.setting.token-unset": "피규어 서버 설정의 「보드 서버 설치 키」에서 발급받은 토큰을 입력하세요.",
172
172
  "figure-library.setting.check": "연결 확인",
173
173
  "figure-library.setting.check-ok": "연결되었습니다. 설치할 수 있는 피규어는 {count}개입니다.",
174
174
  "figure-library.setting.saved": "저장되었습니다.",
@@ -181,5 +181,8 @@
181
181
  "error.figure-source-url-invalid": "서버 주소는 http:// 또는 https://로 시작하는 웹 주소여야 합니다.",
182
182
  "error.figure-source-domain-invalid": "피규어 서버 주소에서 /domain/ 뒤에 있는 사업장 이름을 입력하세요.",
183
183
  "error.figure-source-token-invalid": "접속 토큰에는 공백을 입력할 수 없습니다.",
184
- "error.figure-import-conflict": "같은 버전이 다른 내용으로 이미 등록되어 있어 등록할 수 없습니다."
184
+ "error.figure-import-conflict": "같은 버전이 다른 내용으로 이미 등록되어 있어 등록할 수 없습니다.",
185
+ "figure-library.button.change-source": "연결 바꾸기",
186
+ "figure-library.setting.example": "예: {value}",
187
+ "figure-library.setting.missing": "입력해야 연결됩니다."
185
188
  }
@@ -168,7 +168,7 @@
168
168
  "figure-library.setting.domain": "domain pada pelayan figure",
169
169
  "figure-library.setting.token": "token akses",
170
170
  "figure-library.setting.token-set": "Disimpan ({hint}). Masukkan token baharu untuk menggantikannya.",
171
- "figure-library.setting.token-unset": "Daftarkan peranti pada pelayan figure dan masukkan token akses yang dikeluarkan.",
171
+ "figure-library.setting.token-unset": "Masukkan token yang dikeluarkan di 「Kunci pemasangan pelayan papan」 dalam Tetapan pelayan figura.",
172
172
  "figure-library.setting.check": "semak sambungan",
173
173
  "figure-library.setting.check-ok": "Disambungkan. {count} figure boleh dipasang.",
174
174
  "figure-library.setting.saved": "Disimpan.",
@@ -181,5 +181,8 @@
181
181
  "error.figure-source-url-invalid": "Alamat mesti bermula dengan http:// atau https://.",
182
182
  "error.figure-source-domain-invalid": "Masukkan nama domain selepas /domain/ dalam alamat pelayan figure.",
183
183
  "error.figure-source-token-invalid": "Token tidak boleh mengandungi ruang.",
184
- "error.figure-import-conflict": "Versi yang sama sudah ada dengan kandungan lain."
184
+ "error.figure-import-conflict": "Versi yang sama sudah ada dengan kandungan lain.",
185
+ "figure-library.button.change-source": "Tukar sambungan",
186
+ "figure-library.setting.example": "cth. {value}",
187
+ "figure-library.setting.missing": "Diperlukan untuk menyambung."
185
188
  }
@@ -168,7 +168,7 @@
168
168
  "figure-library.setting.domain": "图形服务器上的域",
169
169
  "figure-library.setting.token": "访问令牌",
170
170
  "figure-library.setting.token-set": "已保存({hint})。如需更改,请输入新令牌。",
171
- "figure-library.setting.token-unset": "请在图形服务器上注册终端设备,并输入其签发的访问令牌。",
171
+ "figure-library.setting.token-unset": "请输入在图形服务器设置「看板服务器安装密钥」中签发的令牌。",
172
172
  "figure-library.setting.check": "检查连接",
173
173
  "figure-library.setting.check-ok": "已连接。可安装的图形有 {count} 个。",
174
174
  "figure-library.setting.saved": "已保存。",
@@ -181,5 +181,8 @@
181
181
  "error.figure-source-url-invalid": "服务器地址必须是以 http:// 或 https:// 开头的网址。",
182
182
  "error.figure-source-domain-invalid": "请输入图形服务器地址中 /domain/ 后面的域名称。",
183
183
  "error.figure-source-token-invalid": "访问令牌不能包含空格。",
184
- "error.figure-import-conflict": "相同版本已以不同内容注册,无法注册。"
184
+ "error.figure-import-conflict": "相同版本已以不同内容注册,无法注册。",
185
+ "figure-library.button.change-source": "更改连接",
186
+ "figure-library.setting.example": "例如:{value}",
187
+ "figure-library.setting.missing": "需要填写才能连接。"
185
188
  }