@raketa-cloud/admin 1.8.1 → 1.8.3
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
CHANGED
|
@@ -749,40 +749,6 @@ 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
|
-
|
|
786
752
|
/* Utils */
|
|
787
753
|
|
|
788
754
|
.chip {
|
|
@@ -1600,10 +1566,6 @@ select {
|
|
|
1600
1566
|
pointer-events: none;
|
|
1601
1567
|
}
|
|
1602
1568
|
|
|
1603
|
-
.static {
|
|
1604
|
-
position: static;
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
1569
|
.absolute {
|
|
1608
1570
|
position: absolute;
|
|
1609
1571
|
}
|
package/package.json
CHANGED
package/src/cloud/Articles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dateToUTCISO8601String,
|
|
1
|
+
import { dateToUTCISO8601String, toDateInput } from "../utils";
|
|
2
2
|
import RaketaClient from "./RaketaClient";
|
|
3
3
|
import {
|
|
4
4
|
ArticleByIdDocument,
|
|
@@ -58,6 +58,8 @@ export default class Articles extends RaketaClient {
|
|
|
58
58
|
async listAll(query, locale, articleTypeSlug) {
|
|
59
59
|
const vars = this.buildAllInput(query, locale);
|
|
60
60
|
|
|
61
|
+
vars.input.filters = this.formatDateFilters(vars.input.filters);
|
|
62
|
+
|
|
61
63
|
const { miniArticles: items } = await this.query(MiniArticlesDocument, {
|
|
62
64
|
input: {
|
|
63
65
|
...vars.input,
|
|
@@ -71,12 +73,7 @@ export default class Articles extends RaketaClient {
|
|
|
71
73
|
async list(query, locale, articleTypeSlug) {
|
|
72
74
|
const vars = this.buildListInput(query, locale);
|
|
73
75
|
|
|
74
|
-
|
|
75
|
-
vars.input.filters.last_updated_from = toUTCISO8601String(vars.input.filters.last_updated_from);
|
|
76
|
-
}
|
|
77
|
-
if (vars.input.filters.last_updated_to) {
|
|
78
|
-
vars.input.filters.last_updated_to = toUTCISO8601String(vars.input.filters.last_updated_to);
|
|
79
|
-
}
|
|
76
|
+
vars.input.filters = this.formatDateFilters(vars.input.filters);
|
|
80
77
|
|
|
81
78
|
const { articles: items } = await this.query(ArticlesDocument, {
|
|
82
79
|
input: {
|
package/src/cloud/Events.js
CHANGED
|
@@ -73,6 +73,8 @@ export default class Events extends RaketaClient {
|
|
|
73
73
|
async listAll(query, locale, eventTypeSlug) {
|
|
74
74
|
const vars = this.buildAllInput(query, locale);
|
|
75
75
|
|
|
76
|
+
vars.input.filters = this.formatDateFilters(vars.input.filters);
|
|
77
|
+
|
|
76
78
|
const { miniEvents: items } = await this.query(MiniEventsDocument, {
|
|
77
79
|
input: {
|
|
78
80
|
...vars.input,
|
|
@@ -86,12 +88,7 @@ export default class Events extends RaketaClient {
|
|
|
86
88
|
async list(query, locale, eventTypeSlug) {
|
|
87
89
|
const vars = this.buildListInput(query, locale);
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
vars.input.filters.last_updated_from = toUTCISO8601String(vars.input.filters.last_updated_from);
|
|
91
|
-
}
|
|
92
|
-
if (vars.input.filters.last_updated_to) {
|
|
93
|
-
vars.input.filters.last_updated_to = toUTCISO8601String(vars.input.filters.last_updated_to);
|
|
94
|
-
}
|
|
91
|
+
vars.input.filters = this.formatDateFilters(vars.input.filters);
|
|
95
92
|
|
|
96
93
|
const { events: items } = await this.query(EventsDocument, {
|
|
97
94
|
input: {
|
package/src/cloud/Pages.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { toUTCISO8601String } from "../utils";
|
|
2
1
|
import RaketaClient from "./RaketaClient";
|
|
3
2
|
import {
|
|
4
3
|
ChangePageSlugDocument,
|
|
@@ -49,6 +48,8 @@ export default class Pages extends RaketaClient {
|
|
|
49
48
|
async listAll(query, locale, pageTypeSlug) {
|
|
50
49
|
const vars = this.buildAllInput(query, locale);
|
|
51
50
|
|
|
51
|
+
vars.input.filters = this.formatDateFilters(vars.input.filters);
|
|
52
|
+
|
|
52
53
|
const { miniPages: items } = await this.query(MiniPagesDocument, {
|
|
53
54
|
input: {
|
|
54
55
|
...vars.input,
|
|
@@ -62,16 +63,7 @@ export default class Pages extends RaketaClient {
|
|
|
62
63
|
async list(query, locale, pageTypeSlug) {
|
|
63
64
|
const vars = this.buildListInput(query, locale);
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
vars.input.filters.last_updated_from = toUTCISO8601String(
|
|
67
|
-
vars.input.filters.last_updated_from,
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
if (vars.input.filters.last_updated_to) {
|
|
71
|
-
vars.input.filters.last_updated_to = toUTCISO8601String(
|
|
72
|
-
vars.input.filters.last_updated_to,
|
|
73
|
-
);
|
|
74
|
-
}
|
|
66
|
+
vars.input.filters = this.formatDateFilters(vars.input.filters);
|
|
75
67
|
|
|
76
68
|
const { pages: items } = await this.query(PagesDocument, {
|
|
77
69
|
input: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { request } from "graphql-request";
|
|
2
|
+
import { toUTCISO8601String } from "../utils";
|
|
2
3
|
|
|
3
4
|
function isObjectEmpty(obj) {
|
|
4
5
|
for (const key in obj) {
|
|
@@ -217,6 +218,16 @@ export default class RaketaClient {
|
|
|
217
218
|
return variables;
|
|
218
219
|
}
|
|
219
220
|
|
|
221
|
+
formatDateFilters(filters) {
|
|
222
|
+
if (filters.last_updated_from) {
|
|
223
|
+
filters.last_updated_from = toUTCISO8601String(filters.last_updated_from);
|
|
224
|
+
}
|
|
225
|
+
if (filters.last_updated_to) {
|
|
226
|
+
filters.last_updated_to = toUTCISO8601String(filters.last_updated_to);
|
|
227
|
+
}
|
|
228
|
+
return filters;
|
|
229
|
+
}
|
|
230
|
+
|
|
220
231
|
deepMerge(target, source) {
|
|
221
232
|
return parseJsonFields(deepMerge(structuredClone(target), source));
|
|
222
233
|
}
|