@openeventkit/event-site 2.0.73 → 2.0.74

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/gatsby-config.js CHANGED
@@ -8,6 +8,7 @@ const {
8
8
  STATIC_CONTENT_DIR_PATH,
9
9
  CONTENT_PAGES_DIR_PATH,
10
10
  SITE_SETTINGS_FILE_PATH,
11
+ SITE_SETTINGS_DIR_PATH,
11
12
  MARKETING_SETTINGS_FILE_PATH
12
13
  } = require("./src/utils/filePath");
13
14
 
@@ -19,12 +20,32 @@ catch (e) {
19
20
  console.log("Falling back to default site settings.")
20
21
  }
21
22
 
23
+ const title = siteSettings?.siteMetadata?.title || process.env.GATSBY_METADATA_TITLE || "Event Site";
24
+ const description = siteSettings?.siteMetadata?.description || process.env.GATSBY_METADATA_DESCRIPTION || "Event Site";
25
+ const manifestFaviconSettings = siteSettings?.favicon?.asset ? {
26
+ icon: `${SITE_SETTINGS_DIR_PATH}/${siteSettings.favicon.asset}`,
27
+ include_favicon: true
28
+ } : {};
29
+
22
30
  module.exports = {
23
31
  siteMetadata: {
24
- title: `${siteSettings?.siteMetadata?.title || process.env.GATSBY_METADATA_TITLE || 'Event Site'}`,
25
- description: `${siteSettings?.siteMetadata?.description || process.env.GATSBY_METADATA_DESCRIPTION || 'Event Site'}`
32
+ title: title,
33
+ description: description
26
34
  },
27
35
  plugins: [
36
+ {
37
+ resolve: "gatsby-plugin-manifest",
38
+ options: {
39
+ name: title,
40
+ short_name: title,
41
+ description: description,
42
+ start_url: "/",
43
+ // Enables "Add to Homescreen" prompt and disables browser UI (including back button)
44
+ // see https://developers.google.com/web/fundamentals/web-app-manifest/#display
45
+ display: "minimal-ui",
46
+ ...manifestFaviconSettings
47
+ }
48
+ },
28
49
  {
29
50
  resolve: "gatsby-alias-imports",
30
51
  options: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openeventkit/event-site",
3
3
  "description": "Event Site",
4
- "version": "2.0.73",
4
+ "version": "2.0.74",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@mui/base": "^5.0.0-alpha.114",
@@ -47,15 +47,16 @@
47
47
  "gatsby": "^5.8.1",
48
48
  "gatsby-alias-imports": "^1.0.6",
49
49
  "gatsby-plugin-image": "^3.8.0",
50
+ "gatsby-plugin-manifest": "^5.12.3",
50
51
  "gatsby-plugin-netlify": "^5.1.0",
51
52
  "gatsby-plugin-netlify-cms": "^7.8.0",
52
53
  "gatsby-plugin-sass": "^6.8.0",
53
- "gatsby-plugin-sharp": "^5.8.1",
54
+ "gatsby-plugin-sharp": "^5.12.3",
54
55
  "gatsby-remark-images": "^7.8.0",
55
56
  "gatsby-source-filesystem": "^5.8.0",
56
57
  "gatsby-transformer-json": "^5.8.0",
57
58
  "gatsby-transformer-remark": "^6.8.0",
58
- "gatsby-transformer-sharp": "^5.8.0",
59
+ "gatsby-transformer-sharp": "^5.12.3",
59
60
  "history": "^4.10.1",
60
61
  "i18n-react": "^0.6.4",
61
62
  "i18next": "^21.8.3",
@@ -77,7 +78,7 @@
77
78
  "netlify-cms-app": "^2.15.72",
78
79
  "netlify-cms-lib-widgets": "^1.8.0",
79
80
  "node-sass-utils": "^1.1.3",
80
- "openstack-uicore-foundation": "4.1.54",
81
+ "openstack-uicore-foundation": "4.1.55",
81
82
  "path-browserify": "^1.0.1",
82
83
  "prop-types": "^15.6.0",
83
84
  "react": "^18.2.0",
@@ -119,7 +120,7 @@
119
120
  "stream-browserify": "^3.0.0",
120
121
  "stream-chat": "^2.7.2",
121
122
  "stream-chat-react": "3.1.7",
122
- "summit-registration-lite": "5.0.12",
123
+ "summit-registration-lite": "5.0.13",
123
124
  "superagent": "8.0.9",
124
125
  "sweetalert2": "^9.17.0",
125
126
  "upcoming-events-widget": "3.0.4",
@@ -47,22 +47,12 @@ const siteSettings = {
47
47
  ]
48
48
  }),
49
49
  objectField({
50
- label: "Favicons",
51
- name: "favicons",
50
+ label: "Favicon",
51
+ name: "favicon",
52
52
  fields: [
53
53
  imageField({
54
- label: "Favicon 180x180",
55
- name: "favicon180",
56
- required: false
57
- }),
58
- imageField({
59
- label: "Favicon 32x32",
60
- name: "favicon32",
61
- required: false
62
- }),
63
- imageField({
64
- label: "Favicon 16x16",
65
- name: "favicon16",
54
+ label: "Image for favicon generation (squared, at least 512x512)",
55
+ name: "asset",
66
56
  required: false
67
57
  })
68
58
  ]
@@ -4,10 +4,8 @@ module.exports = `
4
4
  title: String
5
5
  description: String
6
6
  }
7
- type Favicons {
8
- favicon180: File @fileByRelativePath
9
- favicon32: File @fileByRelativePath
10
- favicon16: File @fileByRelativePath
7
+ type Favicon {
8
+ asset: File @fileByRelativePath
11
9
  }
12
10
  type Schedule {
13
11
  allowClick: Boolean
@@ -24,7 +22,7 @@ module.exports = `
24
22
  }
25
23
  type SiteSettingsJson implements Node {
26
24
  siteMetadata: SiteMetadata
27
- favicons: Favicons
25
+ favicon: Favicon
28
26
  widgets: Widgets
29
27
  }
30
28
  `;
@@ -13,6 +13,10 @@ import {
13
13
  markdownField
14
14
  } from "../../../fields";
15
15
 
16
+ import {
17
+ MARKETING_PAGE_FILE_PATH
18
+ } from "@utils/filePath";
19
+
16
20
  const markdownFieldButtons = [
17
21
  "bold",
18
22
  "italic",
@@ -26,10 +30,6 @@ const markdownFieldButtons = [
26
30
  "numbered-list"
27
31
  ];
28
32
 
29
- import {
30
- MARKETING_PAGE_FILE_PATH
31
- } from "@utils/filePath";
32
-
33
33
  const marketingPage = {
34
34
  label: "Marketing Page",
35
35
  name: "marketing-page",
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import useSiteMetadata from "@utils/useSiteMetadata";
3
- import useSiteSettings from "@utils/useSiteSettings";
4
3
  import { withPrefix } from "gatsby";
5
4
  import { getSrc } from "gatsby-plugin-image";
6
5
 
@@ -19,7 +18,6 @@ const Seo = ({
19
18
  description: description || defaultDescription,
20
19
  url: `${withPrefix(pathname || "/")}`
21
20
  }
22
- const { favicons } = useSiteSettings();
23
21
  return (
24
22
  <>
25
23
  <title>{seo.title}</title>
@@ -33,27 +31,6 @@ const Seo = ({
33
31
  <meta property="og:type" content="business.business" />
34
32
  <meta property="og:title" content={seo.title} />
35
33
  <meta property="og:url" content={seo.url} />
36
- {favicons?.favicon180 &&
37
- <link
38
- rel="apple-touch-icon"
39
- sizes="180x180"
40
- href={`${getSrc(favicons.favicon180)}`}
41
- />
42
- }
43
- {favicons?.favicon32 &&
44
- <link
45
- rel="icon"
46
- sizes="32x32"
47
- href={`${getSrc(favicons.favicon32)}`}
48
- />
49
- }
50
- {favicons?.favicon16 &&
51
- <link
52
- rel="icon"
53
- type="image/png"
54
- sizes="16x16"
55
- href={`${getSrc(favicons.favicon16)}`}
56
- />
57
34
  }
58
35
  {children}
59
36
  </>
@@ -10,44 +10,7 @@
10
10
  "allowClick": true
11
11
  }
12
12
  },
13
- "favicons": {
14
- "favicon180": "/img/favicon.png",
15
- "favicon32": "/img/favicon.png",
16
- "favicon16": "/img/favicon.png"
17
- },
18
- "staticJsonFilesBuildTime": [
19
- {
20
- "file": "src/data/summit.json",
21
- "build_time": 1692386447666
22
- },
23
- {
24
- "file": "src/data/events.json",
25
- "build_time": 1692386451064
26
- },
27
- {
28
- "file": "src/data/events.idx.json",
29
- "build_time": 1692386451066
30
- },
31
- {
32
- "file": "src/data/speakers.json",
33
- "build_time": 1692386451884
34
- },
35
- {
36
- "file": "src/data/speakers.idx.json",
37
- "build_time": 1692386451884
38
- },
39
- {
40
- "file": "src/content/sponsors.json",
41
- "build_time": 1692386455106
42
- },
43
- {
44
- "file": "src/data/voteable-presentations.json",
45
- "build_time": 1692386457214
46
- }
47
- ],
48
- "lastBuild": 1692386457215,
49
- "siteMetadata": {
50
- "title": "test!!",
51
- "description": "TEST!!$DESC"
13
+ "favicon": {
14
+ "asset": "icon.png"
52
15
  }
53
16
  }
@@ -6,29 +6,6 @@ import {
6
6
  const siteSettingsQuery = graphql`
7
7
  query {
8
8
  siteSettingsJson {
9
- favicons {
10
- favicon16 {
11
- childImageSharp {
12
- gatsbyImageData (
13
- quality: 100
14
- )
15
- }
16
- }
17
- favicon32 {
18
- childImageSharp {
19
- gatsbyImageData (
20
- quality: 100
21
- )
22
- }
23
- }
24
- favicon180 {
25
- childImageSharp {
26
- gatsbyImageData (
27
- quality: 100
28
- )
29
- }
30
- }
31
- }
32
9
  widgets {
33
10
  chat {
34
11
  enabled
Binary file