@crowdin/app-project-module 0.96.3 → 0.98.0-cf-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.
Files changed (79) hide show
  1. package/out/index.js +17 -6
  2. package/out/middlewares/integration-credentials.js +4 -1
  3. package/out/middlewares/render-ui-module.d.ts +3 -3
  4. package/out/middlewares/render-ui-module.js +9 -13
  5. package/out/middlewares/ui-module.js +4 -1
  6. package/out/modules/about.d.ts +1 -1
  7. package/out/modules/about.js +8 -2
  8. package/out/modules/ai-prompt-provider/index.js +4 -2
  9. package/out/modules/ai-provider/index.js +4 -2
  10. package/out/modules/ai-tools/index.js +1 -1
  11. package/out/modules/context-menu/index.js +2 -2
  12. package/out/modules/custom-mt/index.js +3 -1
  13. package/out/modules/custom-spell-check/index.js +4 -4
  14. package/out/modules/editor-right-panel/index.js +1 -1
  15. package/out/modules/external-qa-check/index.js +2 -2
  16. package/out/modules/integration/handlers/main.js +13 -1
  17. package/out/modules/integration/handlers/oauth-login.js +10 -2
  18. package/out/modules/integration/index.js +27 -21
  19. package/out/modules/integration/util/job.js +2 -4
  20. package/out/modules/integration/util/types.d.ts +2 -1
  21. package/out/modules/modal/index.js +2 -2
  22. package/out/modules/organization-menu/index.js +6 -4
  23. package/out/modules/organization-settings-menu/index.js +6 -4
  24. package/out/modules/profile-resources-menu/index.js +6 -4
  25. package/out/modules/profile-settings-menu/index.js +6 -4
  26. package/out/modules/project-menu/index.js +1 -1
  27. package/out/modules/project-menu-crowdsource/index.js +1 -1
  28. package/out/modules/project-reports/index.js +4 -2
  29. package/out/modules/project-tools/index.js +4 -2
  30. package/out/modules/workflow-step-type/index.js +3 -2
  31. package/out/storage/d1.d.ts +99 -0
  32. package/out/storage/d1.js +769 -0
  33. package/out/storage/index.d.ts +1 -0
  34. package/out/storage/index.js +8 -1
  35. package/out/storage/mysql.d.ts +1 -0
  36. package/out/storage/mysql.js +7 -1
  37. package/out/storage/postgre.d.ts +1 -0
  38. package/out/storage/postgre.js +2 -1
  39. package/out/storage/sqlite.d.ts +1 -0
  40. package/out/storage/sqlite.js +2 -1
  41. package/out/types.d.ts +10 -0
  42. package/out/util/index.d.ts +1 -0
  43. package/out/util/index.js +8 -2
  44. package/out/util/jsx-renderer.d.ts +6 -0
  45. package/out/util/jsx-renderer.js +13 -0
  46. package/out/util/static-files.d.ts +19 -0
  47. package/out/util/static-files.js +80 -0
  48. package/out/views/AboutPage.d.ts +9 -0
  49. package/out/views/AboutPage.js +79 -0
  50. package/out/views/ErrorPage.d.ts +18 -0
  51. package/out/views/ErrorPage.js +56 -0
  52. package/out/views/FormPage.d.ts +13 -0
  53. package/out/views/FormPage.js +27 -0
  54. package/out/views/InstallPage.d.ts +10 -0
  55. package/out/views/InstallPage.js +22 -0
  56. package/out/views/LoginPage.d.ts +33 -0
  57. package/out/views/LoginPage.js +199 -0
  58. package/out/views/MainPage.d.ts +79 -0
  59. package/out/views/MainPage.js +1613 -0
  60. package/out/views/OAuthPage.d.ts +7 -0
  61. package/out/views/OAuthPage.js +17 -0
  62. package/out/views/SubscriptionPage.d.ts +7 -0
  63. package/out/views/SubscriptionPage.js +26 -0
  64. package/out/views/index.d.ts +13 -0
  65. package/out/views/index.js +25 -0
  66. package/out/views/layout/Head.d.ts +9 -0
  67. package/out/views/layout/Head.js +54 -0
  68. package/package.json +12 -11
  69. package/out/util/handlebars.d.ts +0 -1
  70. package/out/util/handlebars.js +0 -46
  71. package/out/views/about.handlebars +0 -102
  72. package/out/views/error.handlebars +0 -54
  73. package/out/views/form.handlebars +0 -30
  74. package/out/views/install.handlebars +0 -16
  75. package/out/views/login.handlebars +0 -331
  76. package/out/views/main.handlebars +0 -1857
  77. package/out/views/oauth.handlebars +0 -11
  78. package/out/views/partials/head.handlebars +0 -53
  79. package/out/views/subscription.handlebars +0 -26
@@ -1,11 +0,0 @@
1
- <script type="text/javascript">
2
- {{#if oauthMode}}
3
- const oauthMode = '{{{ oauthMode }}}';
4
- {{else}}
5
- const oauthMode = undefined;
6
- {{/if}}
7
- if (oauthMode !== 'polling') {
8
- window.opener.postMessage('{{{message}}}');
9
- }
10
- window.close();
11
- </script>
@@ -1,53 +0,0 @@
1
- <head>
2
- <meta charset="UTF-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
5
- <title></title>
6
- <link rel="stylesheet" href="/assets/css/styles.css">
7
- <link rel="stylesheet" href="/assets/css/crowdin-ui-colors.css">
8
- <script type="module"
9
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.esm.js"></script>
10
- <script nomodule=""
11
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.js"></script>
12
- <script type="text/javascript" src="https://cdn.crowdin.com/apps/dist/iframe.js"></script>
13
- <script type="text/javascript" src="/assets/js/polyfills/promise.js"></script>
14
- <script type="text/javascript" src="/assets/js/polyfills/fetch.js"></script>
15
- <script type="text/javascript" src="/assets/js/main.js"></script>
16
- <script type="text/javascript" src="/assets/js/dependent.js"></script>
17
- <style>
18
- .ml-10 {
19
- margin-left: 10px;
20
- }
21
- </style>
22
- {{#if sentryData}}
23
- <script
24
- src="https://browser.sentry-cdn.com/7.60.0/bundle.replay.min.js"
25
- integrity="sha384-N+VZps2PwFdv9LugkPA8nw+SMI1mGJG7IDe49jaxZlWDDJhHQ+SHakMpwhLQLAka"
26
- crossorigin="anonymous"
27
- ></script>
28
- <script>
29
- if (typeof Sentry !== 'undefined') {
30
- Sentry.init({
31
- dsn: "{{sentryData.dsn}}",
32
- environment: "frontend",
33
- replaysSessionSampleRate: 0,
34
- replaysOnErrorSampleRate: 1.0,
35
- integrations: [new Sentry.Replay()],
36
- });
37
-
38
- Sentry.configureScope(function(scope) {
39
- scope.setTag("identifier", "{{sentryData.appIdentifier}}");
40
-
41
- AP.getContext(contextData => {
42
- const { user_id, ...rest } = contextData;
43
-
44
- user_id && scope.setUser({ id: user_id });
45
- scope.setTags(rest);
46
- });
47
- });
48
- } else {
49
- console.warn('Sentry is not available. This might be due to ad/tracking blockers or network issues.');
50
- }
51
- </script>
52
- {{/if}}
53
- </head>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
8
- <title></title>
9
- <script type="module"
10
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.esm.js"></script>
11
- <script nomodule=""
12
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.js"></script>
13
- <script type="text/javascript" src="https://cdn.crowdin.com/apps/dist/iframe.js"></script>
14
- </head>
15
-
16
- <body>
17
- <div class="i_w center">
18
- <crowdin-alert type="warning">Subscribe to continue using the {{name}} app.</crowdin-alert>
19
- <br/>
20
- <crowdin-button primary onclick="window.open('{{subscribeLink}}','_blank')">Subscribe</crowdin-button>
21
- <crowdin-button outlined onclick="window.open('https://crowdin.com/contacts','_blank')">Contact us
22
- </crowdin-button>
23
- </div>
24
- </body>
25
-
26
- </html>