@linxin666/dsh-ssh 0.3.0 → 0.3.1
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/lib/client.js +10 -4
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +7 -1
package/lib/client.js
CHANGED
|
@@ -15991,10 +15991,16 @@ window.__ModuleLoader__.load({
|
|
|
15991
15991
|
* @param ctx - client root context (locale service).
|
|
15992
15992
|
*/
|
|
15993
15993
|
function apply(ctx) {
|
|
15994
|
-
ctx.effect(() =>
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
|
|
15994
|
+
ctx.effect(() => {
|
|
15995
|
+
try {
|
|
15996
|
+
return ctx.locale.register(NS, {
|
|
15997
|
+
zh,
|
|
15998
|
+
en
|
|
15999
|
+
});
|
|
16000
|
+
} catch {
|
|
16001
|
+
return () => {};
|
|
16002
|
+
}
|
|
16003
|
+
}, "dsh-ssh: dictionaries");
|
|
15998
16004
|
const controller = new PanelController();
|
|
15999
16005
|
const api = new SshApi();
|
|
16000
16006
|
const scope = (ctx.get("webUiSettings") ?? ctx.settingsScope).bind({ namespace: SETTINGS_NS });
|