cicy-desktop 2.1.126 → 2.1.129
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/package.json +1 -1
- package/src/backends/auth-loopback.js +5 -1
- package/src/backends/homepage-react/assets/index-BRrduYwz.js +377 -0
- package/src/backends/homepage-react/index.html +1 -1
- package/src/i18n/locales/en.json +14 -1
- package/src/i18n/locales/fr.json +14 -1
- package/src/i18n/locales/ja.json +14 -1
- package/src/i18n/locales/zh-CN.json +14 -1
- package/src/main.js +11 -14
- package/workers/render/src/App.jsx +31 -7
- package/src/backends/homepage-react/assets/index-DeoawoX4.js +0 -377
package/package.json
CHANGED
|
@@ -133,6 +133,10 @@ async function startLogin({ onResult } = {}) {
|
|
|
133
133
|
});
|
|
134
134
|
const url = `${LOGIN_BASE}?${params.toString()}`;
|
|
135
135
|
log.info(`[auth-loopback] listening :${port}, opening ${url}`);
|
|
136
|
+
// Best-effort auto-open. On some setups (fresh Windows user with no default
|
|
137
|
+
// browser, locked-down shell) openExternal silently fails and the user is
|
|
138
|
+
// left stuck "等回调" with no recourse — so we ALSO return the url to the
|
|
139
|
+
// renderer (below) to show a manual "open / copy this link" fallback.
|
|
136
140
|
shell.openExternal(url).catch((e) => log.warn(`[auth-loopback] openExternal failed: ${e.message}`));
|
|
137
141
|
|
|
138
142
|
_timeoutHandle = setTimeout(() => {
|
|
@@ -140,7 +144,7 @@ async function startLogin({ onResult } = {}) {
|
|
|
140
144
|
shutdown("timeout");
|
|
141
145
|
}, LOGIN_TIMEOUT_MS);
|
|
142
146
|
|
|
143
|
-
resolve({ port, state: expectedState });
|
|
147
|
+
resolve({ port, state: expectedState, url });
|
|
144
148
|
});
|
|
145
149
|
});
|
|
146
150
|
}
|