create-geekron-website 0.1.6 → 0.1.8

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 (23) hide show
  1. package/dist/templates/strapi/src/api/.gitkeep +0 -0
  2. package/dist/templates/strapi/src/api/about/content-types/about/schema.json +28 -0
  3. package/dist/templates/strapi/src/api/about/controllers/about.ts +7 -0
  4. package/dist/templates/strapi/src/api/about/routes/about.ts +7 -0
  5. package/dist/templates/strapi/src/api/about/services/about.ts +7 -0
  6. package/dist/templates/strapi/src/api/home/content-types/home/schema.json +28 -0
  7. package/dist/templates/strapi/src/api/home/controllers/home.ts +7 -0
  8. package/dist/templates/strapi/src/api/home/routes/home.ts +7 -0
  9. package/dist/templates/strapi/src/api/home/services/home.ts +7 -0
  10. package/dist/templates/strapi/src/components/site/banner.json +24 -0
  11. package/dist/templates/strapi/src/components/site/social.json +55 -0
  12. package/package.json +1 -1
  13. package/templates/strapi/src/api/.gitkeep +0 -0
  14. package/templates/strapi/src/api/about/content-types/about/schema.json +28 -0
  15. package/templates/strapi/src/api/about/controllers/about.ts +7 -0
  16. package/templates/strapi/src/api/about/routes/about.ts +7 -0
  17. package/templates/strapi/src/api/about/services/about.ts +7 -0
  18. package/templates/strapi/src/api/home/content-types/home/schema.json +28 -0
  19. package/templates/strapi/src/api/home/controllers/home.ts +7 -0
  20. package/templates/strapi/src/api/home/routes/home.ts +7 -0
  21. package/templates/strapi/src/api/home/services/home.ts +7 -0
  22. package/templates/strapi/src/components/site/banner.json +24 -0
  23. package/templates/strapi/src/components/site/social.json +55 -0
File without changes
@@ -0,0 +1,28 @@
1
+ {
2
+ "kind": "singleType",
3
+ "collectionName": "abouts",
4
+ "info": {
5
+ "singularName": "about",
6
+ "pluralName": "abouts",
7
+ "displayName": "About"
8
+ },
9
+ "options": {
10
+ "draftAndPublish": true
11
+ },
12
+ "pluginOptions": {
13
+ "i18n": {
14
+ "localized": true
15
+ }
16
+ },
17
+ "attributes": {
18
+ "title": {
19
+ "type": "string",
20
+ "pluginOptions": {
21
+ "i18n": {
22
+ "localized": true
23
+ }
24
+ },
25
+ "required": true
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * about controller
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreController('api::about.about');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * about router
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreRouter('api::about.about');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * about service
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreService('api::about.about');
@@ -0,0 +1,28 @@
1
+ {
2
+ "kind": "singleType",
3
+ "collectionName": "homes",
4
+ "info": {
5
+ "singularName": "home",
6
+ "pluralName": "homes",
7
+ "displayName": "Home"
8
+ },
9
+ "options": {
10
+ "draftAndPublish": true
11
+ },
12
+ "pluginOptions": {
13
+ "i18n": {
14
+ "localized": true
15
+ }
16
+ },
17
+ "attributes": {
18
+ "title": {
19
+ "type": "string",
20
+ "pluginOptions": {
21
+ "i18n": {
22
+ "localized": true
23
+ }
24
+ },
25
+ "required": true
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * home controller
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreController('api::home.home');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * home router
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreRouter('api::home.home');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * home service
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreService('api::home.home');
@@ -0,0 +1,24 @@
1
+ {
2
+ "collectionName": "components_site_banners",
3
+ "info": {
4
+ "displayName": "Banner",
5
+ "icon": "landscape"
6
+ },
7
+ "options": {},
8
+ "attributes": {
9
+ "title": {
10
+ "type": "string"
11
+ },
12
+ "subtitle": {
13
+ "type": "string"
14
+ },
15
+ "description": {
16
+ "type": "string"
17
+ },
18
+ "image": {
19
+ "type": "component",
20
+ "component": "base.image",
21
+ "repeatable": false
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "collectionName": "components_site_socials",
3
+ "info": {
4
+ "displayName": "Social",
5
+ "icon": "paperPlane"
6
+ },
7
+ "options": {},
8
+ "attributes": {
9
+ "type": {
10
+ "type": "enumeration",
11
+ "enum": [
12
+ "url",
13
+ "qrcode"
14
+ ]
15
+ },
16
+ "url": {
17
+ "type": "string",
18
+ "conditions": {
19
+ "visible": {
20
+ "==": [
21
+ {
22
+ "var": "type"
23
+ },
24
+ "url"
25
+ ]
26
+ }
27
+ }
28
+ },
29
+ "icon": {
30
+ "type": "customField",
31
+ "customField": "plugin::website.iconPicker"
32
+ },
33
+ "color": {
34
+ "type": "customField",
35
+ "customField": "plugin::website.colorPicker"
36
+ },
37
+ "qrcode": {
38
+ "type": "media",
39
+ "conditions": {
40
+ "visible": {
41
+ "==": [
42
+ {
43
+ "var": "type"
44
+ },
45
+ "qrcode"
46
+ ]
47
+ }
48
+ },
49
+ "multiple": false,
50
+ "allowedTypes": [
51
+ "images"
52
+ ]
53
+ }
54
+ }
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-geekron-website",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "CLI tool to create Geekron websites",
5
5
  "author": {
6
6
  "name": "Geekron",
File without changes
@@ -0,0 +1,28 @@
1
+ {
2
+ "kind": "singleType",
3
+ "collectionName": "abouts",
4
+ "info": {
5
+ "singularName": "about",
6
+ "pluralName": "abouts",
7
+ "displayName": "About"
8
+ },
9
+ "options": {
10
+ "draftAndPublish": true
11
+ },
12
+ "pluginOptions": {
13
+ "i18n": {
14
+ "localized": true
15
+ }
16
+ },
17
+ "attributes": {
18
+ "title": {
19
+ "type": "string",
20
+ "pluginOptions": {
21
+ "i18n": {
22
+ "localized": true
23
+ }
24
+ },
25
+ "required": true
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * about controller
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreController('api::about.about');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * about router
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreRouter('api::about.about');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * about service
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreService('api::about.about');
@@ -0,0 +1,28 @@
1
+ {
2
+ "kind": "singleType",
3
+ "collectionName": "homes",
4
+ "info": {
5
+ "singularName": "home",
6
+ "pluralName": "homes",
7
+ "displayName": "Home"
8
+ },
9
+ "options": {
10
+ "draftAndPublish": true
11
+ },
12
+ "pluginOptions": {
13
+ "i18n": {
14
+ "localized": true
15
+ }
16
+ },
17
+ "attributes": {
18
+ "title": {
19
+ "type": "string",
20
+ "pluginOptions": {
21
+ "i18n": {
22
+ "localized": true
23
+ }
24
+ },
25
+ "required": true
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * home controller
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreController('api::home.home');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * home router
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreRouter('api::home.home');
@@ -0,0 +1,7 @@
1
+ /**
2
+ * home service
3
+ */
4
+
5
+ import { factories } from '@strapi/strapi';
6
+
7
+ export default factories.createCoreService('api::home.home');
@@ -0,0 +1,24 @@
1
+ {
2
+ "collectionName": "components_site_banners",
3
+ "info": {
4
+ "displayName": "Banner",
5
+ "icon": "landscape"
6
+ },
7
+ "options": {},
8
+ "attributes": {
9
+ "title": {
10
+ "type": "string"
11
+ },
12
+ "subtitle": {
13
+ "type": "string"
14
+ },
15
+ "description": {
16
+ "type": "string"
17
+ },
18
+ "image": {
19
+ "type": "component",
20
+ "component": "base.image",
21
+ "repeatable": false
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "collectionName": "components_site_socials",
3
+ "info": {
4
+ "displayName": "Social",
5
+ "icon": "paperPlane"
6
+ },
7
+ "options": {},
8
+ "attributes": {
9
+ "type": {
10
+ "type": "enumeration",
11
+ "enum": [
12
+ "url",
13
+ "qrcode"
14
+ ]
15
+ },
16
+ "url": {
17
+ "type": "string",
18
+ "conditions": {
19
+ "visible": {
20
+ "==": [
21
+ {
22
+ "var": "type"
23
+ },
24
+ "url"
25
+ ]
26
+ }
27
+ }
28
+ },
29
+ "icon": {
30
+ "type": "customField",
31
+ "customField": "plugin::website.iconPicker"
32
+ },
33
+ "color": {
34
+ "type": "customField",
35
+ "customField": "plugin::website.colorPicker"
36
+ },
37
+ "qrcode": {
38
+ "type": "media",
39
+ "conditions": {
40
+ "visible": {
41
+ "==": [
42
+ {
43
+ "var": "type"
44
+ },
45
+ "qrcode"
46
+ ]
47
+ }
48
+ },
49
+ "multiple": false,
50
+ "allowedTypes": [
51
+ "images"
52
+ ]
53
+ }
54
+ }
55
+ }