@things-factory/figure-library 10.1.286 → 10.1.288
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/dist-client/settings/figure-source-setting-let.js +18 -4
- package/package.json +3 -3
- package/translations/en.json +3 -1
- package/translations/es.json +3 -1
- package/translations/ja.json +3 -1
- package/translations/ko.json +3 -1
- package/translations/ms.json +3 -1
- package/translations/zh.json +3 -1
|
@@ -77,6 +77,9 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
|
|
|
77
77
|
margin-right: auto;
|
|
78
78
|
font-size: var(--ui-t-small, 11.5px);
|
|
79
79
|
}
|
|
80
|
+
small[missing] {
|
|
81
|
+
color: var(--ui-warn, #b26b00);
|
|
82
|
+
}
|
|
80
83
|
[checked][failed] {
|
|
81
84
|
color: var(--ui-crit, var(--md-sys-color-error));
|
|
82
85
|
}
|
|
@@ -95,6 +98,9 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
|
|
|
95
98
|
return nothing;
|
|
96
99
|
const busy = this.saving.pending;
|
|
97
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;
|
|
98
104
|
const set = (name, text) => (this.draft = { ...this.draft, [name]: text });
|
|
99
105
|
return html `
|
|
100
106
|
<setting-let>
|
|
@@ -102,12 +108,20 @@ let FigureSourceSettingLet = class FigureSourceSettingLet extends localize(i18ne
|
|
|
102
108
|
<div slot="content" content>
|
|
103
109
|
<label
|
|
104
110
|
>${i18next.t('figure-library.setting.url')}
|
|
105
|
-
<input type="url" autocomplete="off" placeholder
|
|
106
|
-
|
|
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
|
+
>
|
|
107
117
|
<label
|
|
108
118
|
>${i18next.t('figure-library.setting.domain')}
|
|
109
|
-
<input autocomplete="off" placeholder
|
|
110
|
-
|
|
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
|
+
>
|
|
111
125
|
<label class="wide"
|
|
112
126
|
>${i18next.t('figure-library.setting.token')}
|
|
113
127
|
<input type="password" autocomplete="off" .value=${this.draft.token ?? ''} ?disabled=${busy} @input=${(e) => set('token', e.target.value)} />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/figure-library",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.288",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@operato/popup": "^10.29.25",
|
|
53
53
|
"@operato/property-editor": "^10.29.69",
|
|
54
54
|
"@operato/shell": "^10.29.69",
|
|
55
|
-
"@operato/slot-layout-editor": "^10.29.
|
|
55
|
+
"@operato/slot-layout-editor": "^10.29.87",
|
|
56
56
|
"@operato/styles": "^10.29.23",
|
|
57
57
|
"@operato/utils": "^10.0.0",
|
|
58
58
|
"@things-factory/attachment-base": "^10.1.283",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"koa-router": "^7.4.0",
|
|
70
70
|
"lit": "^3.1.2"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "78eaee46dd9b425ed845b02952b082f35a0faca7"
|
|
73
73
|
}
|
package/translations/en.json
CHANGED
|
@@ -182,5 +182,7 @@
|
|
|
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
184
|
"error.figure-import-conflict": "The same version is already here with another content.",
|
|
185
|
-
"figure-library.button.change-source": "Change connection"
|
|
185
|
+
"figure-library.button.change-source": "Change connection",
|
|
186
|
+
"figure-library.setting.example": "e.g. {value}",
|
|
187
|
+
"figure-library.setting.missing": "Needed to connect."
|
|
186
188
|
}
|
package/translations/es.json
CHANGED
|
@@ -182,5 +182,7 @@
|
|
|
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
184
|
"error.figure-import-conflict": "La misma versión ya está aquí con otro contenido.",
|
|
185
|
-
"figure-library.button.change-source": "Cambiar conexión"
|
|
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."
|
|
186
188
|
}
|
package/translations/ja.json
CHANGED
|
@@ -182,5 +182,7 @@
|
|
|
182
182
|
"error.figure-source-domain-invalid": "Figure サーバーのアドレスで /domain/ の後にあるドメイン名を入力してください。",
|
|
183
183
|
"error.figure-source-token-invalid": "アクセストークンに空白は入力できません。",
|
|
184
184
|
"error.figure-import-conflict": "同じバージョンが別の内容で既に登録されているため、登録できません。",
|
|
185
|
-
"figure-library.button.change-source": "接続を変更"
|
|
185
|
+
"figure-library.button.change-source": "接続を変更",
|
|
186
|
+
"figure-library.setting.example": "例: {value}",
|
|
187
|
+
"figure-library.setting.missing": "入力すると接続されます。"
|
|
186
188
|
}
|
package/translations/ko.json
CHANGED
|
@@ -182,5 +182,7 @@
|
|
|
182
182
|
"error.figure-source-domain-invalid": "피규어 서버 주소에서 /domain/ 뒤에 있는 사업장 이름을 입력하세요.",
|
|
183
183
|
"error.figure-source-token-invalid": "접속 토큰에는 공백을 입력할 수 없습니다.",
|
|
184
184
|
"error.figure-import-conflict": "같은 버전이 다른 내용으로 이미 등록되어 있어 등록할 수 없습니다.",
|
|
185
|
-
"figure-library.button.change-source": "연결 바꾸기"
|
|
185
|
+
"figure-library.button.change-source": "연결 바꾸기",
|
|
186
|
+
"figure-library.setting.example": "예: {value}",
|
|
187
|
+
"figure-library.setting.missing": "입력해야 연결됩니다."
|
|
186
188
|
}
|
package/translations/ms.json
CHANGED
|
@@ -182,5 +182,7 @@
|
|
|
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
184
|
"error.figure-import-conflict": "Versi yang sama sudah ada dengan kandungan lain.",
|
|
185
|
-
"figure-library.button.change-source": "Tukar sambungan"
|
|
185
|
+
"figure-library.button.change-source": "Tukar sambungan",
|
|
186
|
+
"figure-library.setting.example": "cth. {value}",
|
|
187
|
+
"figure-library.setting.missing": "Diperlukan untuk menyambung."
|
|
186
188
|
}
|
package/translations/zh.json
CHANGED
|
@@ -182,5 +182,7 @@
|
|
|
182
182
|
"error.figure-source-domain-invalid": "请输入图形服务器地址中 /domain/ 后面的域名称。",
|
|
183
183
|
"error.figure-source-token-invalid": "访问令牌不能包含空格。",
|
|
184
184
|
"error.figure-import-conflict": "相同版本已以不同内容注册,无法注册。",
|
|
185
|
-
"figure-library.button.change-source": "更改连接"
|
|
185
|
+
"figure-library.button.change-source": "更改连接",
|
|
186
|
+
"figure-library.setting.example": "例如:{value}",
|
|
187
|
+
"figure-library.setting.missing": "需要填写才能连接。"
|
|
186
188
|
}
|