@fiduswriter/frontend 0.1.31 → 0.1.32

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 (154) hide show
  1. package/css/admin.css +23 -0
  2. package/css/colors.css +60 -0
  3. package/css/document_overview.css +15 -0
  4. package/css/document_template_admin.css +34 -0
  5. package/css/errorlist.css +14 -0
  6. package/css/feedback.css +136 -0
  7. package/css/figure.css +88 -0
  8. package/css/flatpage.css +44 -0
  9. package/css/fonts.css +398 -0
  10. package/css/forms.css +309 -0
  11. package/css/header_menu.css +114 -0
  12. package/css/inline_tools.css +84 -0
  13. package/css/prelogin.css +173 -0
  14. package/css/reset.css +175 -0
  15. package/css/show_profile.css +94 -0
  16. package/css/text.css +38 -0
  17. package/css/two_factor.css +247 -0
  18. package/css/user_template_manager.css +18 -0
  19. package/dist/css/admin.css +23 -0
  20. package/dist/css/bibliography/bibliography.css +180 -0
  21. package/dist/css/bibliography/colors.css +8 -0
  22. package/dist/css/bibliography/forms.css +102 -0
  23. package/dist/css/colors.css +60 -0
  24. package/dist/css/document/document.css +388 -0
  25. package/dist/css/document-template-editor/document_template_designer.css +198 -0
  26. package/dist/css/document_overview.css +15 -0
  27. package/dist/css/document_template_admin.css +34 -0
  28. package/dist/css/editor/access_rights_dialog.css +75 -0
  29. package/dist/css/editor/carets.css +17 -0
  30. package/dist/css/editor/chat.css +70 -0
  31. package/dist/css/editor/citation_dialog.css +71 -0
  32. package/dist/css/editor/colors.css +97 -0
  33. package/dist/css/editor/contributors.css +13 -0
  34. package/dist/css/editor/document.css +286 -0
  35. package/dist/css/editor/dot_menu.css +42 -0
  36. package/dist/css/editor/e2ee.css +331 -0
  37. package/dist/css/editor/editor.css +1484 -0
  38. package/dist/css/editor/footnotes.css +81 -0
  39. package/dist/css/editor/margin_boxes.css +514 -0
  40. package/dist/css/editor/merge.css +197 -0
  41. package/dist/css/editor/review.css +7 -0
  42. package/dist/css/editor/table.css +13 -0
  43. package/dist/css/editor/tags.css +36 -0
  44. package/dist/css/editor/tracking.css +63 -0
  45. package/dist/css/errorlist.css +14 -0
  46. package/dist/css/feedback.css +136 -0
  47. package/dist/css/figure.css +88 -0
  48. package/dist/css/flatpage.css +44 -0
  49. package/dist/css/fonts.css +398 -0
  50. package/dist/css/forms.css +309 -0
  51. package/dist/css/fwtoolkit/add_remove_dialog.css +18 -0
  52. package/dist/css/fwtoolkit/alerts.css +72 -0
  53. package/dist/css/fwtoolkit/buttons.css +373 -0
  54. package/dist/css/fwtoolkit/checkable_list.css +34 -0
  55. package/dist/css/fwtoolkit/colors.css +119 -0
  56. package/dist/css/fwtoolkit/common.css +196 -0
  57. package/dist/css/fwtoolkit/content_menu.css +105 -0
  58. package/dist/css/fwtoolkit/data_table.css +279 -0
  59. package/dist/css/fwtoolkit/dialog.css +214 -0
  60. package/dist/css/fwtoolkit/dialog_table.css +125 -0
  61. package/dist/css/fwtoolkit/drop_up.css +89 -0
  62. package/dist/css/fwtoolkit/faq_dialog.css +16 -0
  63. package/dist/css/fwtoolkit/file_selector.css +25 -0
  64. package/dist/css/fwtoolkit/forms.css +120 -0
  65. package/dist/css/fwtoolkit/fwtoolkit.css +2683 -0
  66. package/dist/css/fwtoolkit/inline_tools.css +84 -0
  67. package/dist/css/fwtoolkit/input_list.css +33 -0
  68. package/dist/css/fwtoolkit/loader.css +38 -0
  69. package/dist/css/fwtoolkit/overview_menu.css +194 -0
  70. package/dist/css/fwtoolkit/progress_task.css +140 -0
  71. package/dist/css/fwtoolkit/pulldown.css +118 -0
  72. package/dist/css/fwtoolkit/pulldown_menu.css +47 -0
  73. package/dist/css/fwtoolkit/two_pane_selector.css +51 -0
  74. package/dist/css/fwtoolkit/type_switch.css +81 -0
  75. package/dist/css/fwtoolkit/ui_tabs.css +65 -0
  76. package/dist/css/header_menu.css +114 -0
  77. package/dist/css/image-manager/dialog_usermedia.css +8 -0
  78. package/dist/css/inline_tools.css +84 -0
  79. package/dist/css/manifest.json +68 -0
  80. package/dist/css/prelogin.css +173 -0
  81. package/dist/css/reset.css +175 -0
  82. package/dist/css/show_profile.css +94 -0
  83. package/dist/css/text.css +38 -0
  84. package/dist/css/two_factor.css +247 -0
  85. package/dist/css/user_template_manager.css +18 -0
  86. package/dist/i18n/index.d.ts +49 -0
  87. package/dist/i18n/index.d.ts.map +1 -0
  88. package/dist/i18n/index.js +136 -0
  89. package/dist/i18n/index.js.map +1 -0
  90. package/dist/static/fonts/document/Cardo-Bold.woff +0 -0
  91. package/dist/static/fonts/document/Cardo-Italic.woff +0 -0
  92. package/dist/static/fonts/document/Cardo-Regular.woff +0 -0
  93. package/dist/static/fonts/document/CrimsonText-Bold.woff +0 -0
  94. package/dist/static/fonts/document/CrimsonText-BoldItalic.woff +0 -0
  95. package/dist/static/fonts/document/CrimsonText-Italic.woff +0 -0
  96. package/dist/static/fonts/document/CrimsonText-Roman.woff +0 -0
  97. package/dist/static/fonts/document/Lobster-1.4.woff +0 -0
  98. package/dist/static/fonts/document/NoticiaText-Bold.woff +0 -0
  99. package/dist/static/fonts/document/NoticiaText-BoldItalic.woff +0 -0
  100. package/dist/static/fonts/document/NoticiaText-Italic.woff +0 -0
  101. package/dist/static/fonts/document/NoticiaText-Regular.woff +0 -0
  102. package/dist/static/fonts/document/OpenSans-Bold.woff +0 -0
  103. package/dist/static/fonts/document/OpenSans-Regular.woff +0 -0
  104. package/dist/static/fonts/document/SourceSansPro-Bold.woff +0 -0
  105. package/dist/static/fonts/lato/lato-300.woff2 +0 -0
  106. package/dist/static/fonts/lato/lato-400.woff2 +0 -0
  107. package/dist/static/fonts/lato/lato-700.woff2 +0 -0
  108. package/dist/static/fonts/lato/lato-900.woff2 +0 -0
  109. package/dist/static/fonts/lato/lato-ext-300.woff2 +0 -0
  110. package/dist/static/fonts/lato/lato-ext-400.woff2 +0 -0
  111. package/dist/static/fonts/lato/lato-ext-700.woff2 +0 -0
  112. package/dist/static/fonts/lato/lato-ext-900.woff2 +0 -0
  113. package/dist/static/fonts/lato/lato-ext-italic-400.woff2 +0 -0
  114. package/dist/static/fonts/lato/lato-italic-400.woff2 +0 -0
  115. package/dist/static/fonts/roboto/roboto-300.woff2 +0 -0
  116. package/dist/static/fonts/roboto/roboto-700.woff2 +0 -0
  117. package/dist/static/img/accept_change.avif +0 -0
  118. package/dist/static/img/default_avatar.avif +0 -0
  119. package/dist/static/img/error.avif +0 -0
  120. package/dist/static/img/favicon.avif +0 -0
  121. package/dist/static/img/fidus_face.avif +0 -0
  122. package/dist/static/img/free_star.avif +0 -0
  123. package/dist/static/img/icon_192.avif +0 -0
  124. package/dist/static/img/icon_512.avif +0 -0
  125. package/dist/static/ogg/chat_notification.ogg +0 -0
  126. package/dist/static/svg/icon.svg +211 -0
  127. package/package.json +74 -11
  128. package/scripts/aggregate-assets.js +260 -0
  129. package/scripts/compile-i18n.js +114 -0
  130. package/scripts/deploy-pages.sh +31 -0
  131. package/scripts/extract-fwtoolkit-i18n.js +230 -0
  132. package/scripts/extract-i18n-generic.js +278 -0
  133. package/scripts/split-translations.js +304 -0
  134. package/src/i18n/index.ts +165 -0
  135. package/static/fonts/lato/lato-300.woff2 +0 -0
  136. package/static/fonts/lato/lato-400.woff2 +0 -0
  137. package/static/fonts/lato/lato-700.woff2 +0 -0
  138. package/static/fonts/lato/lato-900.woff2 +0 -0
  139. package/static/fonts/lato/lato-ext-300.woff2 +0 -0
  140. package/static/fonts/lato/lato-ext-400.woff2 +0 -0
  141. package/static/fonts/lato/lato-ext-700.woff2 +0 -0
  142. package/static/fonts/lato/lato-ext-900.woff2 +0 -0
  143. package/static/fonts/lato/lato-ext-italic-400.woff2 +0 -0
  144. package/static/fonts/lato/lato-italic-400.woff2 +0 -0
  145. package/static/fonts/roboto/roboto-300.woff2 +0 -0
  146. package/static/fonts/roboto/roboto-700.woff2 +0 -0
  147. package/static/img/default_avatar.avif +0 -0
  148. package/static/img/error.avif +0 -0
  149. package/static/img/favicon.avif +0 -0
  150. package/static/img/fidus_face.avif +0 -0
  151. package/static/img/free_star.avif +0 -0
  152. package/static/img/icon_192.avif +0 -0
  153. package/static/img/icon_512.avif +0 -0
  154. package/static/svg/icon.svg +211 -0
@@ -0,0 +1,175 @@
1
+ /* =============================================================================
2
+ HTML5 Boilerplate CSS: h5bp.com/css
3
+ ========================================================================== */
4
+
5
+ article,
6
+ aside,
7
+ details,
8
+ figcaption,
9
+ figure,
10
+ footer,
11
+ header,
12
+ hgroup,
13
+ nav,
14
+ section {
15
+ display: block;
16
+ }
17
+
18
+ audio,
19
+ canvas,
20
+ video {
21
+ display: inline-block;
22
+ }
23
+
24
+ [hidden] {
25
+ display: none;
26
+ }
27
+
28
+ /* http://meyerweb.com/eric/tools/css/reset/
29
+ v2.0 | 20110126
30
+ License: none (public domain)
31
+ */
32
+
33
+ html,
34
+ body,
35
+ div,
36
+ span,
37
+ applet,
38
+ object,
39
+ iframe,
40
+ h1,
41
+ h2,
42
+ h3,
43
+ h4,
44
+ h5,
45
+ h6,
46
+ p,
47
+ blockquote,
48
+ pre,
49
+ a,
50
+ abbr,
51
+ acronym,
52
+ address,
53
+ big,
54
+ cite,
55
+ code,
56
+ del,
57
+ dfn,
58
+ em,
59
+ img,
60
+ ins,
61
+ kbd,
62
+ q,
63
+ s,
64
+ samp,
65
+ small,
66
+ strike,
67
+ strong,
68
+ sub,
69
+ sup,
70
+ tt,
71
+ var,
72
+ b,
73
+ u,
74
+ i,
75
+ center,
76
+ dl,
77
+ dt,
78
+ dd,
79
+ ol,
80
+ ul,
81
+ li,
82
+ fieldset,
83
+ form,
84
+ label,
85
+ legend,
86
+ table,
87
+ caption,
88
+ tbody,
89
+ tfoot,
90
+ thead,
91
+ tr,
92
+ th,
93
+ td,
94
+ article,
95
+ aside,
96
+ canvas,
97
+ details,
98
+ embed,
99
+ figure,
100
+ figcaption,
101
+ footer,
102
+ header,
103
+ hgroup,
104
+ menu,
105
+ nav,
106
+ output,
107
+ ruby,
108
+ section,
109
+ summary,
110
+ time,
111
+ mark,
112
+ audio,
113
+ video {
114
+ margin: 0;
115
+ padding: 0;
116
+ border: 0;
117
+ font: inherit;
118
+ vertical-align: baseline;
119
+ }
120
+
121
+ audio:not([controls]) {
122
+ display: none;
123
+ }
124
+
125
+ /* HTML5 display-role reset for older browsers */
126
+ article,
127
+ aside,
128
+ details,
129
+ figcaption,
130
+ figure,
131
+ footer,
132
+ header,
133
+ hgroup,
134
+ menu,
135
+ nav,
136
+ section {
137
+ display: block;
138
+ }
139
+
140
+ body {
141
+ line-height: 1;
142
+ }
143
+
144
+ ol,
145
+ ul {
146
+ list-style: none;
147
+ }
148
+
149
+ blockquote,
150
+ q {
151
+ quotes: none;
152
+ }
153
+
154
+ blockquote::before,
155
+ blockquote::after,
156
+ q::before,
157
+ q::after {
158
+ content: "";
159
+ content: none;
160
+ }
161
+
162
+ table {
163
+ border-collapse: collapse;
164
+ border-spacing: 0;
165
+ }
166
+
167
+ a {
168
+ text-decoration: none;
169
+ outline: none;
170
+ }
171
+
172
+ ::placeholder {
173
+ color: #a9abaa;
174
+ font-size: 14px;
175
+ }
@@ -0,0 +1,94 @@
1
+ #profile-avatar {
2
+ position: relative;
3
+ float: left;
4
+ width: 166px;
5
+ text-align: center;
6
+ padding-right: 46px;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ #profile-avatar .fw-avatar,
11
+ #profile-avatar .fw-string-avatar {
12
+ width: 100%;
13
+ height: auto;
14
+ font-size: 50px;
15
+ }
16
+
17
+ #profile-data {
18
+ float: left;
19
+ width: calc(100% - 166px);
20
+ max-width: 505px;
21
+ }
22
+
23
+ .profile-data-row {
24
+ position: relative;
25
+ padding-right: 21px;
26
+ }
27
+
28
+ .profile-data-row + .profile-data-row {
29
+ margin-top: 12px;
30
+ }
31
+
32
+ .profile-data-row select {
33
+ width: calc(100% - 21px);
34
+ color: var(--cs-white-text);
35
+ background-color: var(--input-background-color);
36
+ appearance: none;
37
+ }
38
+
39
+ .profile-data-row .fw-select-arrow {
40
+ position: absolute;
41
+ top: 28px;
42
+ right: 37px;
43
+ pointer-events: none;
44
+ }
45
+
46
+ #fw-edit-profile-pwd {
47
+ position: absolute;
48
+ right: 0;
49
+ top: 30px;
50
+ }
51
+
52
+ #avatar-pulldown-wrapper {
53
+ margin-top: 23px;
54
+ }
55
+
56
+ #edit-avatar-btn {
57
+ color: var(--cs-4-text);
58
+ }
59
+
60
+ #edit-avatar-btn:hover {
61
+ text-decoration: underline;
62
+ }
63
+
64
+ .profile-email-action {
65
+ text-align: center;
66
+ }
67
+
68
+ .profile-email-table tbody tr:last-child td {
69
+ border-bottom: 0 none;
70
+ }
71
+
72
+ .inline-editor-hint {
73
+ font-size: 0.8em;
74
+ color: var(--cs-light-text-secondary, #6e6e6e);
75
+ margin: 0 0 8px;
76
+ padding-left: 12px;
77
+ line-height: 1.5;
78
+ }
79
+
80
+ ul.inline-editor-hint {
81
+ padding-left: 24px;
82
+ list-style: disc;
83
+ margin-bottom: 12px;
84
+ }
85
+
86
+ #profile-submit-wrapper {
87
+ margin-top: 36px;
88
+ text-align: right;
89
+ padding-right: 21px;
90
+ }
91
+
92
+ div.profile-editor-settings {
93
+ font-size: 1.5em;
94
+ }
@@ -0,0 +1,38 @@
1
+ .fw-basic-text {
2
+ font-family: Lato, sans-serif;
3
+ font-size: 13px;
4
+ line-height: 1.33em;
5
+ color: var(--cs-1-hover);
6
+ font-weight: 400;
7
+ }
8
+
9
+ a,
10
+ .fw-link-text {
11
+ cursor: pointer;
12
+ color: var(--cs-1-text);
13
+ }
14
+
15
+ a:hover,
16
+ .fw-link-text:hover {
17
+ cursor: pointer;
18
+ color: var(--cs-1-hover);
19
+ }
20
+
21
+ .fw-header-text {
22
+ color: var(--cs-5-text);
23
+ font-size: 14px;
24
+ }
25
+
26
+ .fw-header-navigation-text {
27
+ color: var(--cs-5-text);
28
+ font-weight: 400;
29
+ letter-spacing: 0.6px;
30
+ text-transform: uppercase;
31
+ font-size: 15px;
32
+ }
33
+
34
+ .fw-green-title {
35
+ font-size: 14px;
36
+ font-weight: 700;
37
+ color: var(--cs-4-text);
38
+ }
@@ -0,0 +1,247 @@
1
+ /* Two-Factor Authentication Styles */
2
+
3
+ /* QR Code Container */
4
+ .two-factor-qr-container {
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ margin: 20px 0;
9
+ padding: 20px;
10
+ background-color: #ffffff;
11
+ border: 1px solid #dddddd;
12
+ border-radius: 8px;
13
+ }
14
+
15
+ .two-factor-qr-container img {
16
+ max-width: 200px;
17
+ height: auto;
18
+ }
19
+
20
+ /* Secret Key Display */
21
+ .two-factor-secret {
22
+ display: inline-block;
23
+ padding: 10px 15px;
24
+ background-color: #f5f5f5;
25
+ border: 1px solid #cccccc;
26
+ border-radius: 4px;
27
+ font-family: "Courier New", Courier, monospace;
28
+ font-size: 14px;
29
+ font-weight: bold;
30
+ letter-spacing: 1px;
31
+ cursor: pointer;
32
+ transition: background-color 0.3s ease;
33
+ user-select: text;
34
+ }
35
+
36
+ .two-factor-secret:hover {
37
+ background-color: #e8e8e8;
38
+ }
39
+
40
+ /* Two-Factor Verification Section */
41
+ .two-factor-verify-section {
42
+ margin-top: 25px;
43
+ padding-top: 25px;
44
+ border-top: 1px solid #eeeeee;
45
+ }
46
+
47
+ .two-factor-verify-section p {
48
+ margin-bottom: 15px;
49
+ color: #666666;
50
+ font-size: 14px;
51
+ }
52
+
53
+ .two-factor-verify-section input[type="text"] {
54
+ width: 200px;
55
+ padding: 12px 15px;
56
+ font-size: 18px;
57
+ font-weight: bold;
58
+ letter-spacing: 2px;
59
+ text-align: center;
60
+ border: 2px solid #dddddd;
61
+ border-radius: 6px;
62
+ margin-right: 10px;
63
+ transition: border-color 0.3s ease;
64
+ }
65
+
66
+ .two-factor-verify-section input[type="text"]:focus {
67
+ border-color: #4a90e2;
68
+ outline: none;
69
+ box-shadow: 0 0 0 3px rgb(74 144 226 / 10%);
70
+ }
71
+
72
+ .two-factor-verify-section button {
73
+ padding: 12px 25px;
74
+ font-size: 14px;
75
+ font-weight: bold;
76
+ text-transform: uppercase;
77
+ border: none;
78
+ border-radius: 6px;
79
+ cursor: pointer;
80
+ transition:
81
+ background-color 0.3s ease,
82
+ transform 0.1s ease;
83
+ }
84
+
85
+ .two-factor-verify-section button:active {
86
+ transform: scale(0.98);
87
+ }
88
+
89
+ /* Two-Factor Status Indicators */
90
+ #two-factor-status {
91
+ display: inline-block;
92
+ padding: 8px 15px;
93
+ border-radius: 20px;
94
+ font-size: 13px;
95
+ font-weight: 600;
96
+ }
97
+
98
+ #two-factor-enabled-status {
99
+ color: #28a745;
100
+ background-color: rgb(40 167 69 / 10%);
101
+ padding: 5px 12px;
102
+ border-radius: 15px;
103
+ }
104
+
105
+ #two-factor-enabled-status i {
106
+ margin-right: 5px;
107
+ }
108
+
109
+ #two-factor-disabled-status {
110
+ color: #dc3545;
111
+ background-color: rgb(220 53 69 / 10%);
112
+ padding: 5px 12px;
113
+ border-radius: 15px;
114
+ }
115
+
116
+ #two-factor-disabled-status i {
117
+ margin-right: 5px;
118
+ }
119
+
120
+ /* Two-Factor Action Buttons */
121
+ #setup-two-factor,
122
+ #disable-two-factor {
123
+ display: inline-block;
124
+ margin-left: 15px;
125
+ padding: 6px 12px;
126
+ font-size: 12px;
127
+ color: #4a90e2;
128
+ cursor: pointer;
129
+ transition: color 0.3s ease;
130
+ }
131
+
132
+ #setup-two-factor i,
133
+ #disable-two-factor i {
134
+ margin-right: 5px;
135
+ }
136
+
137
+ #disable-two-factor {
138
+ color: #dc3545;
139
+ }
140
+
141
+ #setup-two-factor:hover,
142
+ #disable-two-factor:hover {
143
+ color: #357abd;
144
+ }
145
+
146
+ #disable-two-factor:hover {
147
+ color: #c82333;
148
+ } /* Two-Factor Dialog Styles */
149
+ .two-factor-dialog {
150
+ max-width: 500px;
151
+ padding: 30px;
152
+ }
153
+
154
+ .two-factor-dialog h3 {
155
+ margin-top: 0;
156
+ margin-bottom: 20px;
157
+ color: #333333;
158
+ font-size: 24px;
159
+ text-align: center;
160
+ }
161
+
162
+ .two-factor-dialog p {
163
+ color: #666666;
164
+ line-height: 1.6;
165
+ }
166
+
167
+ .two-factor-dialog .fw-button {
168
+ margin-top: 15px;
169
+ }
170
+
171
+ /* Attempts Warning */
172
+ .attempts-warning {
173
+ margin-top: 15px;
174
+ padding: 10px;
175
+ background-color: #fff3cd;
176
+ border: 1px solid #ffeaa7;
177
+ border-radius: 4px;
178
+ color: #856404;
179
+ font-size: 13px;
180
+ text-align: center;
181
+ }
182
+
183
+ /* Responsive Design */
184
+ @media (width <= 768px) {
185
+ .two-factor-qr-container img {
186
+ max-width: 150px;
187
+ }
188
+
189
+ .two-factor-verify-section input[type="text"] {
190
+ width: 100%;
191
+ margin-bottom: 10px;
192
+ margin-right: 0;
193
+ }
194
+
195
+ .two-factor-verify-section button {
196
+ width: 100%;
197
+ }
198
+
199
+ .two-factor-dialog {
200
+ padding: 20px;
201
+ margin: 10px;
202
+ }
203
+ }
204
+
205
+ /* Loading Spinner */
206
+ .two-factor-loading {
207
+ display: inline-block;
208
+ width: 20px;
209
+ height: 20px;
210
+ border: 3px solid rgb(255 255 255 / 30%);
211
+ border-top-color: #ffffff;
212
+ border-radius: 50%;
213
+ animation: spin 1s linear infinite;
214
+ margin-right: 10px;
215
+ }
216
+
217
+ @keyframes spin {
218
+ to {
219
+ transform: rotate(360deg);
220
+ }
221
+ }
222
+
223
+ /* Success/Error Messages */
224
+ .two-factor-success {
225
+ color: #28a745;
226
+ background-color: rgb(40 167 69 / 10%);
227
+ padding: 10px 15px;
228
+ border-radius: 4px;
229
+ margin-top: 15px;
230
+ }
231
+
232
+ .two-factor-error {
233
+ color: #dc3545;
234
+ background-color: rgb(220 53 69 / 10%);
235
+ padding: 10px 15px;
236
+ border-radius: 4px;
237
+ margin-top: 15px;
238
+ }
239
+
240
+ /* Copy to Clipboard Hint */
241
+ .two-factor-secret::after {
242
+ content: " (click to copy)";
243
+ font-size: 11px;
244
+ font-weight: normal;
245
+ color: #999999;
246
+ margin-left: 5px;
247
+ }
@@ -0,0 +1,18 @@
1
+ .bibliography-header-value input[type="text"],
2
+ .id-types-value input[type="text"] {
3
+ margin: 10px;
4
+ background-color: var(--cs-white-background);
5
+ border: 1px solid var(--cs-white-border);
6
+ }
7
+
8
+ .bibliography-header-value table.fw-small {
9
+ width: 100%;
10
+ }
11
+
12
+ #template-editor table.title-id input[type="text"] {
13
+ margin-bottom: 4px;
14
+ }
15
+
16
+ .fw-contents.template-editor-wrapper {
17
+ margin-bottom: 80px;
18
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Standalone i18n runtime for @fiduswriter/frontend.
3
+ *
4
+ * In Django mode, the Django backend serves `/api/jsi18n/` which defines
5
+ * `gettext`, `ngettext`, and `interpolate` globally. `fwtoolkit` is then
6
+ * initialized with the host page's `gettext`.
7
+ *
8
+ * In standalone mode (no Django), this module provides its own `gettext` /
9
+ * `ngettext` backed by a simple JSON translation catalog. Translations are
10
+ * loaded per-locale via dynamic `import()`.
11
+ *
12
+ * Usage (standalone):
13
+ * import { loadTranslations, gettext } from '@fiduswriter/frontend/i18n'
14
+ * await loadTranslations('de')
15
+ * console.log(gettext('Page not found')) // → 'Seite nicht gefunden'
16
+ */
17
+ /**
18
+ * Load translations for *locale* from the package's own `locale/` directory.
19
+ *
20
+ * The JSON files are expected at `../locale/<locale>/messages.json` relative
21
+ * to this module (i.e. they must be shipped in the npm package).
22
+ *
23
+ * Returns `true` if translations were successfully loaded, `false` otherwise
24
+ * (English identity fallback).
25
+ */
26
+ export declare function loadTranslations(locale: string): Promise<boolean>;
27
+ /**
28
+ * Translate *msgid* using the currently loaded catalog.
29
+ *
30
+ * If no catalog is loaded (or the msgid is not found), returns *msgid*
31
+ * unchanged (identity fallback — English).
32
+ */
33
+ export declare function gettext(msgid: string): string;
34
+ /**
35
+ * Translate a plural-aware string.
36
+ *
37
+ * *singular* and *plural* are separated by a null byte in the catalog key
38
+ * (matching the gettext convention).
39
+ */
40
+ export declare function ngettext(singular: string, plural: string, count: number): string;
41
+ /**
42
+ * Reset the catalog (useful for testing / language switching).
43
+ */
44
+ export declare function clearTranslations(): void;
45
+ /**
46
+ * Return `true` if translations have been loaded.
47
+ */
48
+ export declare function hasTranslations(): boolean;
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA6BH;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAiDvE;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAG7C;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACpB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACd,MAAM,CAwBR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAGxC;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC"}