@geekron/strapi 0.2.2 → 0.2.4
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/server/index.js +21 -77
- package/dist/server/index.mjs +21 -77
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -302,6 +302,26 @@ var schema_default4 = {
|
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
attributes: {
|
|
305
|
+
logo: {
|
|
306
|
+
type: "component",
|
|
307
|
+
pluginOptions: {
|
|
308
|
+
i18n: {
|
|
309
|
+
localized: true
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
component: "base.image",
|
|
313
|
+
repeatable: false
|
|
314
|
+
},
|
|
315
|
+
icon: {
|
|
316
|
+
type: "component",
|
|
317
|
+
pluginOptions: {
|
|
318
|
+
i18n: {
|
|
319
|
+
localized: true
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
component: "base.image",
|
|
323
|
+
repeatable: false
|
|
324
|
+
},
|
|
305
325
|
styles: {
|
|
306
326
|
type: "text",
|
|
307
327
|
pluginOptions: {
|
|
@@ -690,85 +710,9 @@ var destroy = ({ strapi: strapi2 }) => {
|
|
|
690
710
|
strapi2.log.info("dashboard server plugin: bootstrap");
|
|
691
711
|
};
|
|
692
712
|
var destroy_default = destroy;
|
|
693
|
-
// server/src/components/schema/banner.json
|
|
694
|
-
var banner_default = {
|
|
695
|
-
collectionName: "components_website_banners",
|
|
696
|
-
info: {
|
|
697
|
-
displayName: "Banner",
|
|
698
|
-
icon: "landscape"
|
|
699
|
-
},
|
|
700
|
-
options: {},
|
|
701
|
-
attributes: {
|
|
702
|
-
title: {
|
|
703
|
-
type: "string"
|
|
704
|
-
},
|
|
705
|
-
subtitle: {
|
|
706
|
-
type: "string"
|
|
707
|
-
},
|
|
708
|
-
description: {
|
|
709
|
-
type: "string"
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
// server/src/components/schema/social.json
|
|
714
|
-
var social_default = {
|
|
715
|
-
collectionName: "components_website_socials",
|
|
716
|
-
info: {
|
|
717
|
-
displayName: "Social",
|
|
718
|
-
icon: "paperPlane"
|
|
719
|
-
},
|
|
720
|
-
options: {},
|
|
721
|
-
attributes: {
|
|
722
|
-
type: {
|
|
723
|
-
type: "enumeration",
|
|
724
|
-
enum: [
|
|
725
|
-
"url",
|
|
726
|
-
"qrcode"
|
|
727
|
-
]
|
|
728
|
-
},
|
|
729
|
-
url: {
|
|
730
|
-
type: "string",
|
|
731
|
-
conditions: {
|
|
732
|
-
visible: {
|
|
733
|
-
"==": [
|
|
734
|
-
{
|
|
735
|
-
var: "type"
|
|
736
|
-
},
|
|
737
|
-
"url"
|
|
738
|
-
]
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
},
|
|
742
|
-
icon: {
|
|
743
|
-
type: "customField",
|
|
744
|
-
customField: "plugin::website.iconPicker"
|
|
745
|
-
},
|
|
746
|
-
color: {
|
|
747
|
-
type: "customField",
|
|
748
|
-
customField: "plugin::website.colorPicker"
|
|
749
|
-
},
|
|
750
|
-
qrcode: {
|
|
751
|
-
type: "media",
|
|
752
|
-
conditions: {
|
|
753
|
-
visible: {
|
|
754
|
-
"==": [
|
|
755
|
-
{
|
|
756
|
-
var: "type"
|
|
757
|
-
},
|
|
758
|
-
"qrcode"
|
|
759
|
-
]
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
multiple: false,
|
|
763
|
-
allowedTypes: [
|
|
764
|
-
"images"
|
|
765
|
-
]
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
713
|
|
|
770
714
|
// server/src/components/index.ts
|
|
771
|
-
var schemas = {
|
|
715
|
+
var schemas = {};
|
|
772
716
|
var createComponent = (strapi2, { name, displayName, icon, attributes }) => {
|
|
773
717
|
const category = "website";
|
|
774
718
|
if (strapi2.components[`${category}.${name}`])
|
package/dist/server/index.mjs
CHANGED
|
@@ -267,6 +267,26 @@ var schema_default4 = {
|
|
|
267
267
|
}
|
|
268
268
|
},
|
|
269
269
|
attributes: {
|
|
270
|
+
logo: {
|
|
271
|
+
type: "component",
|
|
272
|
+
pluginOptions: {
|
|
273
|
+
i18n: {
|
|
274
|
+
localized: true
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
component: "base.image",
|
|
278
|
+
repeatable: false
|
|
279
|
+
},
|
|
280
|
+
icon: {
|
|
281
|
+
type: "component",
|
|
282
|
+
pluginOptions: {
|
|
283
|
+
i18n: {
|
|
284
|
+
localized: true
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
component: "base.image",
|
|
288
|
+
repeatable: false
|
|
289
|
+
},
|
|
270
290
|
styles: {
|
|
271
291
|
type: "text",
|
|
272
292
|
pluginOptions: {
|
|
@@ -655,85 +675,9 @@ var destroy = ({ strapi: strapi2 }) => {
|
|
|
655
675
|
strapi2.log.info("dashboard server plugin: bootstrap");
|
|
656
676
|
};
|
|
657
677
|
var destroy_default = destroy;
|
|
658
|
-
// server/src/components/schema/banner.json
|
|
659
|
-
var banner_default = {
|
|
660
|
-
collectionName: "components_website_banners",
|
|
661
|
-
info: {
|
|
662
|
-
displayName: "Banner",
|
|
663
|
-
icon: "landscape"
|
|
664
|
-
},
|
|
665
|
-
options: {},
|
|
666
|
-
attributes: {
|
|
667
|
-
title: {
|
|
668
|
-
type: "string"
|
|
669
|
-
},
|
|
670
|
-
subtitle: {
|
|
671
|
-
type: "string"
|
|
672
|
-
},
|
|
673
|
-
description: {
|
|
674
|
-
type: "string"
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
// server/src/components/schema/social.json
|
|
679
|
-
var social_default = {
|
|
680
|
-
collectionName: "components_website_socials",
|
|
681
|
-
info: {
|
|
682
|
-
displayName: "Social",
|
|
683
|
-
icon: "paperPlane"
|
|
684
|
-
},
|
|
685
|
-
options: {},
|
|
686
|
-
attributes: {
|
|
687
|
-
type: {
|
|
688
|
-
type: "enumeration",
|
|
689
|
-
enum: [
|
|
690
|
-
"url",
|
|
691
|
-
"qrcode"
|
|
692
|
-
]
|
|
693
|
-
},
|
|
694
|
-
url: {
|
|
695
|
-
type: "string",
|
|
696
|
-
conditions: {
|
|
697
|
-
visible: {
|
|
698
|
-
"==": [
|
|
699
|
-
{
|
|
700
|
-
var: "type"
|
|
701
|
-
},
|
|
702
|
-
"url"
|
|
703
|
-
]
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
},
|
|
707
|
-
icon: {
|
|
708
|
-
type: "customField",
|
|
709
|
-
customField: "plugin::website.iconPicker"
|
|
710
|
-
},
|
|
711
|
-
color: {
|
|
712
|
-
type: "customField",
|
|
713
|
-
customField: "plugin::website.colorPicker"
|
|
714
|
-
},
|
|
715
|
-
qrcode: {
|
|
716
|
-
type: "media",
|
|
717
|
-
conditions: {
|
|
718
|
-
visible: {
|
|
719
|
-
"==": [
|
|
720
|
-
{
|
|
721
|
-
var: "type"
|
|
722
|
-
},
|
|
723
|
-
"qrcode"
|
|
724
|
-
]
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
multiple: false,
|
|
728
|
-
allowedTypes: [
|
|
729
|
-
"images"
|
|
730
|
-
]
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
678
|
|
|
735
679
|
// server/src/components/index.ts
|
|
736
|
-
var schemas = {
|
|
680
|
+
var schemas = {};
|
|
737
681
|
var createComponent = (strapi2, { name, displayName, icon, attributes }) => {
|
|
738
682
|
const category = "website";
|
|
739
683
|
if (strapi2.components[`${category}.${name}`])
|