@crowdin/app-project-module 2.2.0 → 2.4.0
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/out/middlewares/ui-module.js +1 -2
- package/out/modules/about.d.ts +4 -0
- package/out/modules/about.js +25 -3
- package/out/static/css/styles.css +2 -342
- package/out/static/ui/about.bundle.js +542 -0
- package/out/static/ui/about.bundle.js.map +1 -0
- package/out/static/ui/error.bundle.js +120 -2
- package/out/static/ui/error.bundle.js.map +1 -1
- package/out/static/ui/form.bundle.js +164 -12
- package/out/static/ui/form.bundle.js.map +1 -1
- package/out/static/ui/install.bundle.js +8 -2
- package/out/static/ui/install.bundle.js.map +1 -1
- package/out/static/ui/login.bundle.js +425 -35
- package/out/static/ui/login.bundle.js.map +1 -1
- package/out/static/ui/main.bundle.js +1798 -1377
- package/out/static/ui/main.bundle.js.map +1 -1
- package/out/static/ui/oauth.bundle.js +8 -2
- package/out/static/ui/oauth.bundle.js.map +1 -1
- package/out/static/ui/subscription.bundle.js +542 -0
- package/out/static/ui/subscription.bundle.js.map +1 -0
- package/out/storage/drizzle/postgresql/migrations/0002_equal_skrulls.sql +3 -0
- package/out/storage/drizzle/postgresql/migrations/meta/0002_snapshot.json +646 -0
- package/out/storage/drizzle/postgresql/migrations/meta/_journal.json +7 -0
- package/out/storage/drizzle/postgresql/schema.js +2 -1
- package/out/storage/drizzle/sqlite/migrations/0001_new_rhodey.sql +26 -0
- package/out/storage/drizzle/sqlite/migrations/meta/0001_snapshot.json +687 -0
- package/out/storage/drizzle/sqlite/migrations/meta/_journal.json +7 -0
- package/out/storage/drizzle/sqlite/schema.js +2 -1
- package/out/util/jsx-renderer.d.ts +2 -1
- package/out/util/jsx-renderer.js +8 -8
- package/out/views/FormPage.js +2 -2
- package/out/views/index.d.ts +0 -2
- package/out/views/index.js +1 -5
- package/out/views/layout/Head.js +0 -10
- package/package.json +5 -2
- package/out/static/css/about.css +0 -128
- package/out/static/css/crowdin-ui-colors.css +0 -115
- package/out/static/js/dependent.js +0 -315
- package/out/static/js/main.js +0 -96
- package/out/static/js/polyfills/fetch.js +0 -494
- package/out/static/js/polyfills/promise.js +0 -375
- package/out/views/AboutPage.d.ts +0 -10
- package/out/views/AboutPage.js +0 -88
- package/out/views/SubscriptionPage.d.ts +0 -7
- package/out/views/SubscriptionPage.js +0 -26
|
@@ -518,19 +518,25 @@
|
|
|
518
518
|
|
|
519
519
|
var clientExports = requireClient();
|
|
520
520
|
|
|
521
|
+
function readPageProps() {
|
|
522
|
+
const element = document.getElementById('__PAGE_PROPS__');
|
|
523
|
+
return JSON.parse((element === null || element === void 0 ? void 0 : element.textContent) || '{}');
|
|
524
|
+
}
|
|
525
|
+
|
|
521
526
|
var reactExports = requireReact();
|
|
522
527
|
|
|
523
528
|
const OAuthPage = ({ message, oauthMode }) => {
|
|
524
529
|
reactExports.useEffect(() => {
|
|
525
530
|
if (oauthMode !== 'polling') {
|
|
526
|
-
window.opener.postMessage(message);
|
|
531
|
+
window.opener.postMessage(message, window.location.origin);
|
|
527
532
|
}
|
|
528
533
|
window.close();
|
|
529
534
|
});
|
|
530
535
|
return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
531
536
|
};
|
|
532
537
|
|
|
533
|
-
|
|
538
|
+
const props = readPageProps();
|
|
539
|
+
clientExports.createRoot(document.getElementById('root')).render(jsxRuntimeExports.jsx(OAuthPage, { ...props }));
|
|
534
540
|
|
|
535
541
|
})();
|
|
536
542
|
//# sourceMappingURL=oauth.bundle.js.map
|