@anywayseo/gatsby-plugin 2.3.0 → 2.4.0
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const shared = "\n # === SHARED DEFINITIONS ===\n type Image {\n localFile: File @link(from: \"localFile\")\n alternativeText: String\n }\n\n type Seo {\n metaTitle: String\n metaDescription: String\n }\n\n type Author {\n name: String
|
|
1
|
+
export declare const shared = "\n # === SHARED DEFINITIONS ===\n type Image {\n localFile: File @link(from: \"localFile\")\n alternativeText: String\n }\n\n type Seo {\n metaTitle: String\n metaDescription: String\n }\n\n type SocialNetwork {\n kind: String!\n url: String!\n }\n\n type SocialNetworkList {\n items: [SocialNetwork!]\n }\n\n type Author {\n name: String!\n role: String!\n bio: String!\n avatar: Image!\n socialNetworks: SocialNetworkList \n }\n ";
|
|
@@ -13,10 +13,20 @@ exports.shared = `
|
|
|
13
13
|
metaDescription: String
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type SocialNetwork {
|
|
17
|
+
kind: String!
|
|
18
|
+
url: String!
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type SocialNetworkList {
|
|
22
|
+
items: [SocialNetwork!]
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
type Author {
|
|
17
|
-
name: String
|
|
18
|
-
role: String
|
|
19
|
-
bio: String
|
|
20
|
-
avatar: Image
|
|
26
|
+
name: String!
|
|
27
|
+
role: String!
|
|
28
|
+
bio: String!
|
|
29
|
+
avatar: Image!
|
|
30
|
+
socialNetworks: SocialNetworkList
|
|
21
31
|
}
|
|
22
32
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const site = "\n # === STRAPI SITE DEFINITIONS ===\n type StrapiSite implements Node {\n id: ID!\n name: String\n locale: String
|
|
1
|
+
export declare const site = "\n # === STRAPI SITE DEFINITIONS ===\n type StrapiSite implements Node {\n id: ID!\n name: String\n locale: String!\n currency: String!\n seo: Seo!\n logo: Image!\n favicon: Image\n socialNetworks: SocialNetworkList \n }\n ";
|
|
@@ -6,9 +6,11 @@ exports.site = `
|
|
|
6
6
|
type StrapiSite implements Node {
|
|
7
7
|
id: ID!
|
|
8
8
|
name: String
|
|
9
|
-
locale: String
|
|
10
|
-
currency: String
|
|
11
|
-
seo: Seo
|
|
12
|
-
logo: Image
|
|
9
|
+
locale: String!
|
|
10
|
+
currency: String!
|
|
11
|
+
seo: Seo!
|
|
12
|
+
logo: Image!
|
|
13
|
+
favicon: Image
|
|
14
|
+
socialNetworks: SocialNetworkList
|
|
13
15
|
}
|
|
14
16
|
`;
|
|
@@ -27,7 +27,19 @@ function sourceStrapiContentNode(args, strapiClient, config) {
|
|
|
27
27
|
const singleTypes = [
|
|
28
28
|
{
|
|
29
29
|
singularName: 'site',
|
|
30
|
-
queryParams: {
|
|
30
|
+
queryParams: {
|
|
31
|
+
populate: {
|
|
32
|
+
logo: {
|
|
33
|
+
populate: '*',
|
|
34
|
+
},
|
|
35
|
+
seo: {
|
|
36
|
+
populate: '*',
|
|
37
|
+
},
|
|
38
|
+
socialNetworks: {
|
|
39
|
+
populate: '*',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
31
43
|
},
|
|
32
44
|
];
|
|
33
45
|
const collectionTypes = [
|
|
@@ -86,7 +98,14 @@ function sourceStrapiContentNode(args, strapiClient, config) {
|
|
|
86
98
|
},
|
|
87
99
|
},
|
|
88
100
|
author: {
|
|
89
|
-
populate:
|
|
101
|
+
populate: {
|
|
102
|
+
avatar: {
|
|
103
|
+
populate: '*',
|
|
104
|
+
},
|
|
105
|
+
socialNetworks: {
|
|
106
|
+
populate: '*',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
90
109
|
},
|
|
91
110
|
},
|
|
92
111
|
locale: '*',
|