@raketa-cloud/admin 1.7.9 → 1.8.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/dist/application.css +38 -0
- package/package.json +1 -1
- package/src/views/_shared/_translations_search_input.ejs +29 -26
- package/src/views/articles/_shared/_addons.ejs +0 -0
- package/src/views/articles/index.ejs +2 -2
- package/src/views/articles/show.ejs +2 -0
- package/src/views/events/_shared/_addons.ejs +0 -0
- package/src/views/events/show.ejs +2 -0
- package/src/views/layouts/application.ejs +6 -1
- package/src/views/pages/_shared/_addons.ejs +0 -0
- package/src/views/pages/show.ejs +7 -6
package/dist/application.css
CHANGED
|
@@ -749,6 +749,40 @@ select {
|
|
|
749
749
|
--tw-contain-style: ;
|
|
750
750
|
}
|
|
751
751
|
|
|
752
|
+
.container {
|
|
753
|
+
width: 100%;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
@media (min-width: 640px) {
|
|
757
|
+
.container {
|
|
758
|
+
max-width: 640px;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
@media (min-width: 768px) {
|
|
763
|
+
.container {
|
|
764
|
+
max-width: 768px;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
@media (min-width: 1024px) {
|
|
769
|
+
.container {
|
|
770
|
+
max-width: 1024px;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
@media (min-width: 1280px) {
|
|
775
|
+
.container {
|
|
776
|
+
max-width: 1280px;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
@media (min-width: 1536px) {
|
|
781
|
+
.container {
|
|
782
|
+
max-width: 1536px;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
752
786
|
/* Utils */
|
|
753
787
|
|
|
754
788
|
.chip {
|
|
@@ -1566,6 +1600,10 @@ select {
|
|
|
1566
1600
|
pointer-events: none;
|
|
1567
1601
|
}
|
|
1568
1602
|
|
|
1603
|
+
.static {
|
|
1604
|
+
position: static;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1569
1607
|
.absolute {
|
|
1570
1608
|
position: absolute;
|
|
1571
1609
|
}
|
package/package.json
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<div class="
|
|
4
|
-
|
|
5
|
-
<div class="
|
|
6
|
-
<%
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
<% if (translations.length > 0) { %>
|
|
2
|
+
|
|
3
|
+
<div class="mb-4">
|
|
4
|
+
<label for="" class="font-semibold hover:cursor-pointer body-3">Translations</label>
|
|
5
|
+
<div class="checkbox-group mb-4">
|
|
6
|
+
<% translations.filter(item => item.code !== _context.locale).forEach((item,idx)=> { %>
|
|
7
|
+
<div class="flex items-center gap-1">
|
|
8
|
+
<% if (utils.includedInCollection(item.code, _context.query["f:translations"])) { %>
|
|
9
|
+
<input type="checkbox" name="f:translations" id='locale-<%= item.code %>' checked value="<%= item.code %>" class="hover:cursor-pointer">
|
|
10
|
+
<% } else { %>
|
|
11
|
+
<input type="checkbox" name="f:translations" id='locale-<%= item.code %>' value="<%= item.code %>" class="hover:cursor-pointer">
|
|
12
|
+
<% } %>
|
|
13
|
+
<label for='locale-<%= item.code %>' class="body-2 hover:cursor-pointer"><%= item.name %></label>
|
|
14
|
+
</div>
|
|
15
|
+
<% }); %>
|
|
12
16
|
</div>
|
|
13
|
-
<% }); %>
|
|
14
17
|
</div>
|
|
15
|
-
</div>
|
|
16
18
|
|
|
17
|
-
<div class="mb-4">
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
<div class="mb-4">
|
|
20
|
+
<label for="" class="font-semibold hover:cursor-pointer body-3">Without translations</label>
|
|
21
|
+
<div class="checkbox-group mb-4">
|
|
22
|
+
<% translations.filter(item => item.code !== _context.locale).forEach((item,idx)=> { %>
|
|
23
|
+
<div class="flex items-center gap-1">
|
|
24
|
+
<% if (utils.includedInCollection(item.code, _context.query["f:without_translations"])) { %>
|
|
25
|
+
<input type="checkbox" name="f:without_translations" id='n-locale-<%= item.code %>' checked value="<%= item.code %>" class="hover:cursor-pointer">
|
|
26
|
+
<% } else { %>
|
|
27
|
+
<input type="checkbox" name="f:without_translations" id='n-locale-<%= item.code %>' value="<%= item.code %>" class="hover:cursor-pointer">
|
|
28
|
+
<% } %>
|
|
29
|
+
<label for='n-locale-<%= item.code %>' class="body-2 hover:cursor-pointer"><%= item.name %></label>
|
|
30
|
+
</div>
|
|
31
|
+
<% }); %>
|
|
28
32
|
</div>
|
|
29
|
-
<% }); %>
|
|
30
33
|
</div>
|
|
31
|
-
|
|
34
|
+
<% } %>
|
|
File without changes
|
|
@@ -153,12 +153,12 @@
|
|
|
153
153
|
|
|
154
154
|
<div class="mb-4">
|
|
155
155
|
<label for="last_updated_from" class="font-semibold hover:cursor-pointer body-3">Last Updated from</label>
|
|
156
|
-
<input type="datetime-local" name="f:last_updated_from" value="<%= _context.query["f:last_updated_from"] %>"
|
|
156
|
+
<input type="datetime-local" name="f:last_updated_from" value="<%= _context.query["f:last_updated_from"] %>" />
|
|
157
157
|
</div>
|
|
158
158
|
|
|
159
159
|
<div class="mb-4">
|
|
160
160
|
<label for="last_updated_to" class="font-semibold hover:cursor-pointer body-3">Last Updated to</label>
|
|
161
|
-
<input type="datetime-local" name="f:last_updated_to" value="<%= _context.query["f:last_updated_to"] %>"
|
|
161
|
+
<input type="datetime-local" name="f:last_updated_to" value="<%= _context.query["f:last_updated_to"] %>" />
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
<%- include('./../_shared/_translations_search_input.ejs') %>
|
|
@@ -208,6 +208,8 @@
|
|
|
208
208
|
</div>
|
|
209
209
|
<% } %>
|
|
210
210
|
|
|
211
|
+
<%- render_partial('./_shared/_addons.ejs') %>
|
|
212
|
+
|
|
211
213
|
<div class="mb-4">
|
|
212
214
|
<h4 class="pb-4 heading-3 items-center gap-2 flex">
|
|
213
215
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-4 text-raketa-primary">
|
|
File without changes
|
|
@@ -208,6 +208,8 @@
|
|
|
208
208
|
</div>
|
|
209
209
|
<% } %>
|
|
210
210
|
|
|
211
|
+
<%- render_partial('./_shared/_addons.ejs') %>
|
|
212
|
+
|
|
211
213
|
<div class="mb-4">
|
|
212
214
|
<h4 class="pb-4 heading-3 items-center gap-2 flex">
|
|
213
215
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-4 text-raketa-primary">
|
|
@@ -182,11 +182,16 @@
|
|
|
182
182
|
const hint = document.createElement("div");
|
|
183
183
|
|
|
184
184
|
hint.classList.add('hint')
|
|
185
|
-
hint.innerText = `
|
|
185
|
+
hint.innerText = `Your local time: ${strTime}`;
|
|
186
186
|
hint.dataset.auto = "1";
|
|
187
187
|
|
|
188
188
|
parent.appendChild(hint)
|
|
189
189
|
|
|
190
|
+
if (!input.value) {
|
|
191
|
+
hint.innerHTML = '';
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
|
|
190
195
|
TIMEZONES.forEach(timeZone => {
|
|
191
196
|
const strTime = fakeUTCDate.toLocaleString(TIME_LOCALE, {
|
|
192
197
|
timeZone: `${timeZone.value}`
|
|
File without changes
|
package/src/views/pages/show.ejs
CHANGED
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
<div class="flex flex-wrap items-center gap-1 mb-6 -mt-4">
|
|
8
8
|
<%
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const availableLocales = Object.keys(_context.locales);
|
|
10
|
+
const totalPossibleTranslations = availableLocales.length - 1;
|
|
11
|
+
const existingTranslationsCount = Object.keys(resource.translations).length;
|
|
12
|
+
const canBeTranslated = existingTranslationsCount < totalPossibleTranslations;
|
|
13
|
+
%>
|
|
15
14
|
|
|
16
15
|
<% Object.keys(_context.locales).forEach(key => { %>
|
|
17
16
|
<% const { name, _code, flag} = _context.locales[key] %>
|
|
@@ -209,6 +208,8 @@
|
|
|
209
208
|
</div>
|
|
210
209
|
<% } %>
|
|
211
210
|
|
|
211
|
+
<%- render_partial('./_shared/_addons.ejs') %>
|
|
212
|
+
|
|
212
213
|
<div class="mb-4">
|
|
213
214
|
<h4 class="flex items-center gap-2 pb-4 heading-3">
|
|
214
215
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-4 text-raketa-primary">
|