gatsby-theme-q3 3.2.3 → 3.3.1
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/CHANGELOG.md
CHANGED
@@ -3,6 +3,44 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [3.3.1](https://github.com/3merge/q/compare/v3.3.0...v3.3.1) (2022-02-14)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
# [3.3.0](https://github.com/3merge/q/compare/v3.2.5...v3.3.0) (2022-02-14)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
## [3.2.5](https://github.com/3merge/q/compare/v3.2.4...v3.2.5) (2022-02-11)
|
23
|
+
|
24
|
+
|
25
|
+
### Bug Fixes
|
26
|
+
|
27
|
+
* subdomain detection in production ([c7d91ca](https://github.com/3merge/q/commit/c7d91ca8a694335fc5fc13888a529755d718ce3c))
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## [3.2.4](https://github.com/3merge/q/compare/v3.2.3...v3.2.4) (2022-02-10)
|
34
|
+
|
35
|
+
|
36
|
+
### Bug Fixes
|
37
|
+
|
38
|
+
* feature photo and margins ([c8cd20a](https://github.com/3merge/q/commit/c8cd20a4f51a5ef0be67a4fbffa25f007641171e))
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
6
44
|
## [3.2.3](https://github.com/3merge/q/compare/v3.2.2...v3.2.3) (2022-02-10)
|
7
45
|
|
8
46
|
**Note:** Version bump only for package gatsby-theme-q3
|
package/gatsby-browser.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import axios from 'axios';
|
2
|
-
import {
|
2
|
+
import { size } from 'lodash';
|
3
3
|
import { getDomain } from 'q3-admin';
|
4
4
|
import { browser } from 'q3-ui-helpers';
|
5
5
|
|
@@ -22,11 +22,12 @@ export const onClientEntry = async () => {
|
|
22
22
|
|
23
23
|
// set tenant default
|
24
24
|
const { host } = window.location;
|
25
|
-
const
|
25
|
+
const str = String(host);
|
26
|
+
const offset = str.includes('localhost') ? -1 : -2;
|
27
|
+
const parts = str.split('.').slice(0, offset).join('.');
|
26
28
|
|
27
|
-
if (size(parts)
|
28
|
-
axios.defaults.headers['X-Session-Tenant'] =
|
29
|
-
last(parts);
|
29
|
+
if (size(parts))
|
30
|
+
axios.defaults.headers['X-Session-Tenant'] = parts;
|
30
31
|
|
31
32
|
// calls Q3 API
|
32
33
|
await getDomain();
|
package/gatsby-config.js
CHANGED
@@ -111,7 +111,7 @@ const PublicTemplate = ({
|
|
111
111
|
}, /*#__PURE__*/_react.default.createElement(_core.Box, {
|
112
112
|
component: "header",
|
113
113
|
mt: "2vh",
|
114
|
-
mb:
|
114
|
+
mb: 1,
|
115
115
|
textAlign: "center"
|
116
116
|
}, /*#__PURE__*/_react.default.createElement(_gatsby.Link, {
|
117
117
|
to: "/",
|
@@ -141,7 +141,7 @@ const PublicTemplate = ({
|
|
141
141
|
}, children)))), /*#__PURE__*/_react.default.createElement(_core.Box, {
|
142
142
|
maxWidth: "75vw",
|
143
143
|
component: "footer",
|
144
|
-
mt:
|
144
|
+
mt: 2,
|
145
145
|
textAlign: "center"
|
146
146
|
}, /*#__PURE__*/_react.default.createElement("small", null, /*#__PURE__*/_react.default.createElement(Copyright, null), /*#__PURE__*/_react.default.createElement(TextLink, {
|
147
147
|
href: terms,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-theme-q3",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.3.1",
|
4
4
|
"main": "index.js",
|
5
5
|
"license": "MIT",
|
6
6
|
"peerDependencies": {
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"gatsby-plugin-robots-txt": "^1.6.14",
|
29
29
|
"gatsby-plugin-sharp": "^4.2.0",
|
30
30
|
"gatsby-plugin-sitemap": "^5.2.0",
|
31
|
-
"gatsby-theme-q3-mui": "^3.
|
31
|
+
"gatsby-theme-q3-mui": "^3.3.1",
|
32
32
|
"gatsby-transformer-sharp": "^4.2.0",
|
33
33
|
"lodash": "^4.17.20",
|
34
34
|
"process": "^0.11.10",
|
@@ -42,5 +42,5 @@
|
|
42
42
|
"transform-loader": "^0.2.4",
|
43
43
|
"yarn": "^1.22.17"
|
44
44
|
},
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "bbc75bebf2248c7dcee094b383011a233bcfd1de"
|
46
46
|
}
|
@@ -102,7 +102,7 @@ const PublicTemplate = ({ children, ...rest }) => {
|
|
102
102
|
<Box
|
103
103
|
component="header"
|
104
104
|
mt="2vh"
|
105
|
-
mb={
|
105
|
+
mb={1}
|
106
106
|
textAlign="center"
|
107
107
|
>
|
108
108
|
<ReachLink to="/" className={cls.logo}>
|
@@ -124,7 +124,7 @@ const PublicTemplate = ({ children, ...rest }) => {
|
|
124
124
|
<Box
|
125
125
|
maxWidth="75vw"
|
126
126
|
component="footer"
|
127
|
-
mt={
|
127
|
+
mt={2}
|
128
128
|
textAlign="center"
|
129
129
|
>
|
130
130
|
<small>
|