gatsby-theme-q3 3.2.4 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,41 @@
|
|
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.2](https://github.com/3merge/q/compare/v3.3.1...v3.3.2) (2022-02-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [3.3.1](https://github.com/3merge/q/compare/v3.3.0...v3.3.1) (2022-02-14)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
# [3.3.0](https://github.com/3merge/q/compare/v3.2.5...v3.3.0) (2022-02-14)
|
23
|
+
|
24
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
## [3.2.5](https://github.com/3merge/q/compare/v3.2.4...v3.2.5) (2022-02-11)
|
31
|
+
|
32
|
+
|
33
|
+
### Bug Fixes
|
34
|
+
|
35
|
+
* subdomain detection in production ([c7d91ca](https://github.com/3merge/q/commit/c7d91ca8a694335fc5fc13888a529755d718ce3c))
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
6
41
|
## [3.2.4](https://github.com/3merge/q/compare/v3.2.3...v3.2.4) (2022-02-10)
|
7
42
|
|
8
43
|
|
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
@@ -122,7 +122,6 @@ const PublicTemplate = ({
|
|
122
122
|
}))), /*#__PURE__*/_react.default.createElement(_core.Paper, {
|
123
123
|
className: cls.container
|
124
124
|
}, /*#__PURE__*/_react.default.createElement(_core.Grid, {
|
125
|
-
alignItems: "center",
|
126
125
|
container: true,
|
127
126
|
spacing: 1
|
128
127
|
}, /*#__PURE__*/_react.default.createElement(_core.Hidden, {
|
@@ -137,6 +136,9 @@ const PublicTemplate = ({
|
|
137
136
|
md: 6,
|
138
137
|
xs: 12
|
139
138
|
}, /*#__PURE__*/_react.default.createElement(_core.Box, {
|
139
|
+
alignItems: "center",
|
140
|
+
height: "100%",
|
141
|
+
display: "flex",
|
140
142
|
p: 2
|
141
143
|
}, children)))), /*#__PURE__*/_react.default.createElement(_core.Box, {
|
142
144
|
maxWidth: "75vw",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-theme-q3",
|
3
|
-
"version": "3.2
|
3
|
+
"version": "3.3.2",
|
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": "82edf32bf42d4da64fa5850918fdd044555d40da"
|
46
46
|
}
|
@@ -110,14 +110,21 @@ const PublicTemplate = ({ children, ...rest }) => {
|
|
110
110
|
</ReachLink>
|
111
111
|
</Box>
|
112
112
|
<Paper className={cls.container}>
|
113
|
-
<Grid
|
113
|
+
<Grid container spacing={1}>
|
114
114
|
<Hidden smDown>
|
115
115
|
<Grid item xs={6}>
|
116
116
|
<Box className={cls.photo} />
|
117
117
|
</Grid>
|
118
118
|
</Hidden>
|
119
119
|
<Grid item md={6} xs={12}>
|
120
|
-
<Box
|
120
|
+
<Box
|
121
|
+
alignItems="center"
|
122
|
+
height="100%"
|
123
|
+
display="flex"
|
124
|
+
p={2}
|
125
|
+
>
|
126
|
+
{children}
|
127
|
+
</Box>
|
121
128
|
</Grid>
|
122
129
|
</Grid>
|
123
130
|
</Paper>
|