gatsby-theme-q3 3.2.0 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +38 -0
- package/gatsby-browser.js +5 -0
- package/gatsby-config.js +7 -18
- package/gatsby-node.js +0 -1
- package/lib/components/FormBoxContent.js +2 -1
- package/lib/components/PageWrapper.js +1 -2
- package/lib/components/PublicTemplate.js +130 -6
- package/lib/components/SearchEngine.js +7 -10
- package/lib/components/Wrapper.js +2 -19
- package/lib/components/withPublicTemplate.js +17 -0
- package/lib/components/withSuccessOp.js +1 -1
- package/lib/pages/login.js +7 -4
- package/lib/pages/password-change.js +4 -3
- package/lib/pages/password-reset.js +4 -3
- package/lib/pages/reverify.js +5 -2
- package/lib/pages/verify.js +5 -3
- package/package.json +4 -4
- package/src/components/FormBoxContent.jsx +1 -1
- package/src/components/PageWrapper.jsx +1 -5
- package/src/components/PublicTemplate.jsx +134 -5
- package/src/components/SearchEngine.jsx +10 -14
- package/src/components/Wrapper.jsx +3 -21
- package/src/components/withPublicTemplate.jsx +11 -0
- package/src/components/withSuccessOp.jsx +1 -1
- package/src/pages/login.jsx +55 -43
- package/src/pages/password-change.jsx +5 -3
- package/src/pages/password-reset.jsx +5 -3
- package/src/pages/reverify.jsx +4 -2
- package/src/pages/verify.jsx +9 -12
- package/__tests__/config.int.test.js +0 -62
- package/helpers/__tests__/loadContent.unit.test.js +0 -13
- package/helpers/__tests__/pagination.unit.test.js +0 -139
- package/helpers/__tests__/slug.unit.test.js +0 -21
- package/helpers/archive.js +0 -42
- package/helpers/index.js +0 -19
- package/helpers/loadContent.js +0 -45
- package/helpers/loadTheme.js +0 -10
- package/helpers/pagination.js +0 -109
- package/helpers/setup.js +0 -60
- package/helpers/slug.js +0 -31
- package/helpers/slugType.js +0 -24
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.2.4](https://github.com/3merge/q/compare/v3.2.3...v3.2.4) (2022-02-10)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* feature photo and margins ([c8cd20a](https://github.com/3merge/q/commit/c8cd20a4f51a5ef0be67a4fbffa25f007641171e))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [3.2.3](https://github.com/3merge/q/compare/v3.2.2...v3.2.3) (2022-02-10)
|
18
|
+
|
19
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## [3.2.2](https://github.com/3merge/q/compare/v3.2.1...v3.2.2) (2022-02-10)
|
26
|
+
|
27
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## [3.2.1](https://github.com/3merge/q/compare/v3.2.0...v3.2.1) (2022-02-09)
|
34
|
+
|
35
|
+
|
36
|
+
### Bug Fixes
|
37
|
+
|
38
|
+
* misc domain issues ([17cb74b](https://github.com/3merge/q/commit/17cb74b927721f11b5fcd8f8a9a1a28a86867048))
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
6
44
|
# [3.2.0](https://github.com/3merge/q/compare/v3.1.5...v3.2.0) (2022-02-09)
|
7
45
|
|
8
46
|
|
package/gatsby-browser.js
CHANGED
@@ -11,6 +11,11 @@ export {
|
|
11
11
|
export const onClientEntry = async () => {
|
12
12
|
if (!browser.isBrowserReady()) return;
|
13
13
|
|
14
|
+
// set api default root
|
15
|
+
axios.defaults.baseURL =
|
16
|
+
process.env.GATSBY_APP_BASE_URL ||
|
17
|
+
'http://localhost:9000';
|
18
|
+
|
14
19
|
// set language default
|
15
20
|
axios.defaults.headers['Content-Language'] =
|
16
21
|
window.localStorage.getItem('q3-locale') || 'en';
|
package/gatsby-config.js
CHANGED
@@ -4,14 +4,7 @@ require('dotenv').config();
|
|
4
4
|
const genKey = (url) =>
|
5
5
|
String(url).includes('netlify') ? 'disallow' : 'allow';
|
6
6
|
|
7
|
-
module.exports = ({
|
8
|
-
siteUrl,
|
9
|
-
title,
|
10
|
-
brandingColor,
|
11
|
-
icon,
|
12
|
-
netlify,
|
13
|
-
...options
|
14
|
-
}) => {
|
7
|
+
module.exports = (options) => {
|
15
8
|
const plugins = [
|
16
9
|
{
|
17
10
|
resolve: 'gatsby-theme-q3-mui',
|
@@ -48,24 +41,20 @@ module.exports = ({
|
|
48
41
|
},
|
49
42
|
},
|
50
43
|
},
|
51
|
-
|
52
|
-
|
53
|
-
if (netlify)
|
54
|
-
plugins.push({
|
44
|
+
{
|
55
45
|
resolve: 'gatsby-plugin-netlify',
|
56
46
|
options: {
|
57
47
|
generateMatchPathRewrites: true,
|
58
48
|
},
|
59
|
-
}
|
60
|
-
|
61
|
-
if (siteUrl)
|
62
|
-
plugins.push({
|
49
|
+
},
|
50
|
+
{
|
63
51
|
resolve: 'gatsby-plugin-canonical-urls',
|
64
52
|
options: {
|
65
53
|
stripQueryString: true,
|
66
|
-
siteUrl,
|
54
|
+
siteUrl: process.env.URL,
|
67
55
|
},
|
68
|
-
}
|
56
|
+
},
|
57
|
+
];
|
69
58
|
|
70
59
|
return {
|
71
60
|
plugins,
|
package/gatsby-node.js
CHANGED
@@ -23,7 +23,8 @@ const FormBoxContent = ({
|
|
23
23
|
t
|
24
24
|
} = (0, _q3UiLocale.useTranslation)();
|
25
25
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
26
|
-
|
26
|
+
component: "h1",
|
27
|
+
variant: "h2",
|
27
28
|
gutterBottom: true
|
28
29
|
}, t(`titles:${title}`)), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
29
30
|
gutterBottom: true
|
@@ -17,8 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
17
17
|
|
18
18
|
const PageWrapper = ({
|
19
19
|
children,
|
20
|
-
includeLoader
|
21
|
-
includeLocale
|
20
|
+
includeLoader
|
22
21
|
}) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_SearchEngine.default, null), includeLoader && /*#__PURE__*/_react.default.createElement(_components.Loader, null), children);
|
23
22
|
|
24
23
|
PageWrapper.defaultProps = {
|
@@ -9,7 +9,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
11
11
|
|
12
|
-
var
|
12
|
+
var _core = require("@material-ui/core");
|
13
|
+
|
14
|
+
var _gatsby = require("gatsby");
|
15
|
+
|
16
|
+
var _q3UiLocale = require("q3-ui-locale");
|
17
|
+
|
18
|
+
var _lodash = require("lodash");
|
13
19
|
|
14
20
|
var _AdminPublicGateway = _interopRequireDefault(require("./AdminPublicGateway"));
|
15
21
|
|
@@ -17,18 +23,136 @@ var _useSiteMetaData = _interopRequireDefault(require("./useSiteMetaData"));
|
|
17
23
|
|
18
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
25
|
|
26
|
+
const useStyle = (0, _core.makeStyles)(theme => ({
|
27
|
+
logo: {
|
28
|
+
height: 95,
|
29
|
+
width: 180,
|
30
|
+
display: 'block',
|
31
|
+
'& img': {
|
32
|
+
objectFit: 'contain',
|
33
|
+
height: '100%',
|
34
|
+
width: '100%'
|
35
|
+
}
|
36
|
+
},
|
37
|
+
container: {
|
38
|
+
maxWidth: '85vw',
|
39
|
+
width: 850,
|
40
|
+
[theme.breakpoints.down('md')]: {
|
41
|
+
width: '100%'
|
42
|
+
},
|
43
|
+
[theme.breakpoints.down('sm')]: {
|
44
|
+
width: 'auto'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
photo: ({
|
48
|
+
photo
|
49
|
+
}) => ({
|
50
|
+
backgroundColor: theme.palette.secondary.light,
|
51
|
+
backgroundImage: (0, _lodash.isString)(photo) ? `url("${String(photo).replace(/\s/gi, '%20')}")` : undefined,
|
52
|
+
backgroundSize: 'contain',
|
53
|
+
backgroundPosition: 'center',
|
54
|
+
backgroundRepeat: 'no-repeat',
|
55
|
+
width: '100%',
|
56
|
+
height: '100%',
|
57
|
+
backgroundBlendMode: 'multiply',
|
58
|
+
minHeight: '55vh'
|
59
|
+
})
|
60
|
+
}));
|
61
|
+
|
62
|
+
const Copyright = () => {
|
63
|
+
const {
|
64
|
+
brand
|
65
|
+
} = (0, _useSiteMetaData.default)();
|
66
|
+
return brand ? /*#__PURE__*/_react.default.createElement(_core.Box, {
|
67
|
+
display: "inline-block",
|
68
|
+
mx: 1
|
69
|
+
}, "\xA9", new Date().getFullYear(), " ", brand) : null;
|
70
|
+
}; // eslint-disable-next-line
|
71
|
+
|
72
|
+
|
73
|
+
const TextLink = ({
|
74
|
+
href,
|
75
|
+
text
|
76
|
+
}) => {
|
77
|
+
const {
|
78
|
+
t
|
79
|
+
} = (0, _q3UiLocale.useTranslation)('labels');
|
80
|
+
return href ? /*#__PURE__*/_react.default.createElement(_core.Box, {
|
81
|
+
display: "inline-block",
|
82
|
+
mx: 1
|
83
|
+
}, /*#__PURE__*/_react.default.createElement(_core.Link, {
|
84
|
+
href: href,
|
85
|
+
target: "_blank"
|
86
|
+
}, t(text))) : null;
|
87
|
+
};
|
88
|
+
|
20
89
|
const PublicTemplate = ({
|
21
90
|
children,
|
22
91
|
...rest
|
23
92
|
}) => {
|
24
93
|
const {
|
25
94
|
brand,
|
26
|
-
|
95
|
+
cancellation,
|
96
|
+
logo,
|
97
|
+
terms,
|
98
|
+
privacy,
|
99
|
+
photo
|
27
100
|
} = (0, _useSiteMetaData.default)();
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
101
|
+
const cls = useStyle({
|
102
|
+
photo
|
103
|
+
});
|
104
|
+
return /*#__PURE__*/_react.default.createElement(_AdminPublicGateway.default, rest, /*#__PURE__*/_react.default.createElement(_core.Box, {
|
105
|
+
alignItems: "center",
|
106
|
+
component: "article",
|
107
|
+
display: "flex",
|
108
|
+
flexDirection: "column",
|
109
|
+
justifyContent: "center",
|
110
|
+
width: "100%"
|
111
|
+
}, /*#__PURE__*/_react.default.createElement(_core.Box, {
|
112
|
+
component: "header",
|
113
|
+
mt: "2vh",
|
114
|
+
mb: 1,
|
115
|
+
textAlign: "center"
|
116
|
+
}, /*#__PURE__*/_react.default.createElement(_gatsby.Link, {
|
117
|
+
to: "/",
|
118
|
+
className: cls.logo
|
119
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
120
|
+
alt: brand,
|
121
|
+
src: logo
|
122
|
+
}))), /*#__PURE__*/_react.default.createElement(_core.Paper, {
|
123
|
+
className: cls.container
|
124
|
+
}, /*#__PURE__*/_react.default.createElement(_core.Grid, {
|
125
|
+
alignItems: "center",
|
126
|
+
container: true,
|
127
|
+
spacing: 1
|
128
|
+
}, /*#__PURE__*/_react.default.createElement(_core.Hidden, {
|
129
|
+
smDown: true
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_core.Grid, {
|
131
|
+
item: true,
|
132
|
+
xs: 6
|
133
|
+
}, /*#__PURE__*/_react.default.createElement(_core.Box, {
|
134
|
+
className: cls.photo
|
135
|
+
}))), /*#__PURE__*/_react.default.createElement(_core.Grid, {
|
136
|
+
item: true,
|
137
|
+
md: 6,
|
138
|
+
xs: 12
|
139
|
+
}, /*#__PURE__*/_react.default.createElement(_core.Box, {
|
140
|
+
p: 2
|
141
|
+
}, children)))), /*#__PURE__*/_react.default.createElement(_core.Box, {
|
142
|
+
maxWidth: "75vw",
|
143
|
+
component: "footer",
|
144
|
+
mt: 2,
|
145
|
+
textAlign: "center"
|
146
|
+
}, /*#__PURE__*/_react.default.createElement("small", null, /*#__PURE__*/_react.default.createElement(Copyright, null), /*#__PURE__*/_react.default.createElement(TextLink, {
|
147
|
+
href: terms,
|
148
|
+
text: "termsAndConditions"
|
149
|
+
}), /*#__PURE__*/_react.default.createElement(TextLink, {
|
150
|
+
href: privacy,
|
151
|
+
text: "privacyPolicy"
|
152
|
+
}), /*#__PURE__*/_react.default.createElement(TextLink, {
|
153
|
+
href: cancellation,
|
154
|
+
text: "cancellationPolicy"
|
155
|
+
})))));
|
32
156
|
};
|
33
157
|
|
34
158
|
PublicTemplate.defaultProps = {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.getStartUrl = exports.generateMetaTitleOptions = exports.generateMetaDescriptionOptions = exports.generateManifest = exports.generateIcons = exports.generateBrand = exports.default =
|
6
|
+
exports.getStartUrl = exports.generateMetaTitleOptions = exports.generateMetaDescriptionOptions = exports.generateManifest = exports.generateIcons = exports.generateBrand = exports.default = void 0;
|
7
7
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
|
@@ -69,13 +69,6 @@ const generateManifest = (site = {}) => ({
|
|
69
69
|
|
70
70
|
exports.generateManifest = generateManifest;
|
71
71
|
|
72
|
-
const Manifest = props => (0, _lodash.isObject)(props) ? /*#__PURE__*/_react.default.createElement("link", {
|
73
|
-
rel: "manifest",
|
74
|
-
href: `data:application/manifest+json,${encodeURIComponent(JSON.stringify(props))}`
|
75
|
-
}) : null;
|
76
|
-
|
77
|
-
exports.Manifest = Manifest;
|
78
|
-
|
79
72
|
const SEO = ({
|
80
73
|
description,
|
81
74
|
lang,
|
@@ -85,12 +78,13 @@ const SEO = ({
|
|
85
78
|
const site = (0, _useSiteMetaData.default)();
|
86
79
|
const metaDescription = description || site.description;
|
87
80
|
const metaTitle = title || site.title;
|
81
|
+
const manifestData = generateManifest(site);
|
88
82
|
return /*#__PURE__*/_react.default.createElement(_reactHelmet.Helmet, {
|
89
83
|
htmlAttributes: {
|
90
84
|
lang
|
91
85
|
},
|
92
86
|
title: metaTitle,
|
93
|
-
titleTemplate: generateBrand(
|
87
|
+
titleTemplate: generateBrand(site.brand),
|
94
88
|
meta: [...generateMetaTitleOptions(metaTitle), ...generateMetaDescriptionOptions(metaDescription), {
|
95
89
|
property: 'og:type',
|
96
90
|
content: 'website'
|
@@ -98,7 +92,10 @@ const SEO = ({
|
|
98
92
|
name: 'twitter:card',
|
99
93
|
content: 'summary'
|
100
94
|
}].concat(meta)
|
101
|
-
},
|
95
|
+
}, (0, _lodash.isObject)(manifestData) ? /*#__PURE__*/_react.default.createElement("link", {
|
96
|
+
rel: "manifest",
|
97
|
+
href: `data:application/manifest+json,${encodeURIComponent(JSON.stringify(manifestData))}`
|
98
|
+
}) : null, /*#__PURE__*/_react.default.createElement("link", {
|
102
99
|
rel: "icon",
|
103
100
|
href: site.favicon
|
104
101
|
}));
|
@@ -7,8 +7,6 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
|
10
|
-
var _axios = _interopRequireDefault(require("axios"));
|
11
|
-
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
13
11
|
|
14
12
|
var _q3UiPermissions = _interopRequireDefault(require("q3-ui-permissions"));
|
@@ -16,27 +14,12 @@ var _q3UiPermissions = _interopRequireDefault(require("q3-ui-permissions"));
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
15
|
|
18
16
|
/* eslint-disable import/no-extraneous-dependencies */
|
19
|
-
const setBaseUrlForRest = (baseURL = process.env.GATSBY_APP_BASE_URL || 'http://localhost:9000') => {
|
20
|
-
_axios.default.defaults.baseURL = baseURL;
|
21
|
-
return _axios.default.defaults;
|
22
|
-
};
|
23
|
-
|
24
17
|
const Wrapper = ({
|
25
|
-
baseURL,
|
26
18
|
children
|
27
|
-
}) =>
|
28
|
-
setBaseUrlForRest(baseURL);
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_q3UiPermissions.default, null, children);
|
30
|
-
};
|
19
|
+
}) => /*#__PURE__*/_react.default.createElement(_q3UiPermissions.default, null, children);
|
31
20
|
|
32
|
-
Wrapper.defaultProps = {
|
33
|
-
baseURL: undefined
|
34
|
-
};
|
35
21
|
Wrapper.propTypes = {
|
36
|
-
|
37
|
-
children: _propTypes.default.node.isRequired,
|
38
|
-
// eslint-disable-next-line
|
39
|
-
locale: _propTypes.default.object.isRequired
|
22
|
+
children: _propTypes.default.node.isRequired
|
40
23
|
};
|
41
24
|
var _default = Wrapper;
|
42
25
|
exports.default = _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
10
|
+
var _PublicTemplate = _interopRequireDefault(require("./PublicTemplate"));
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
+
|
14
|
+
const withPublicTemplate = Component => props => /*#__PURE__*/_react.default.createElement(_PublicTemplate.default, props, /*#__PURE__*/_react.default.createElement(Component, props));
|
15
|
+
|
16
|
+
var _default = withPublicTemplate;
|
17
|
+
exports.default = _default;
|
@@ -41,7 +41,7 @@ const withSuccessOp = (Component, msg) => {
|
|
41
41
|
component: _gatsby.Link,
|
42
42
|
to: "/login",
|
43
43
|
variant: "contained",
|
44
|
-
color: "
|
44
|
+
color: "secondary"
|
45
45
|
}, t('labels:login'))) : /*#__PURE__*/_react.default.createElement(Component, _extends({}, props, {
|
46
46
|
onSuccess: (0, _utils.toOp)(pathname)
|
47
47
|
}));
|
package/lib/pages/login.js
CHANGED
@@ -27,9 +27,11 @@ var _FormBox = _interopRequireDefault(require("../components/FormBox"));
|
|
27
27
|
|
28
28
|
var _withAuthenticate = _interopRequireDefault(require("../components/withAuthenticate"));
|
29
29
|
|
30
|
+
var _withPublicTemplate = _interopRequireDefault(require("../components/withPublicTemplate"));
|
31
|
+
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
31
33
|
|
32
|
-
|
34
|
+
const Login = (0, _withPublicTemplate.default)((0, _withAuthenticate.default)(({
|
33
35
|
authenticate
|
34
36
|
}) => {
|
35
37
|
const {
|
@@ -64,10 +66,11 @@ var _default = (0, _withAuthenticate.default)(({
|
|
64
66
|
to: "/reverify"
|
65
67
|
}, t('labels:reverifyLink')))),
|
66
68
|
renderTop: /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
67
|
-
|
69
|
+
component: "h1",
|
70
|
+
variant: "h2",
|
68
71
|
gutterBottom: true
|
69
72
|
}, t('titles:login'))
|
70
73
|
});
|
71
|
-
});
|
72
|
-
|
74
|
+
}));
|
75
|
+
var _default = Login;
|
73
76
|
exports.default = _default;
|
@@ -25,6 +25,8 @@ var _FormBox = _interopRequireDefault(require("../components/FormBox"));
|
|
25
25
|
|
26
26
|
var _withSuccessOp = _interopRequireDefault(require("../components/withSuccessOp"));
|
27
27
|
|
28
|
+
var _withPublicTemplate = _interopRequireDefault(require("../components/withPublicTemplate"));
|
29
|
+
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
29
31
|
|
30
32
|
const PasswordChange = ({
|
@@ -65,7 +67,6 @@ PasswordChange.propTypes = {
|
|
65
67
|
search: _propTypes.default.string
|
66
68
|
}).isRequired
|
67
69
|
};
|
68
|
-
|
69
|
-
var _default =
|
70
|
-
|
70
|
+
const PasswordChangeWithTemplate = (0, _withPublicTemplate.default)((0, _withSuccessOp.default)(PasswordChange, 'passwordChangeNotice'));
|
71
|
+
var _default = PasswordChangeWithTemplate;
|
71
72
|
exports.default = _default;
|
@@ -19,6 +19,8 @@ var _FormBoxContent = _interopRequireDefault(require("../components/FormBoxConte
|
|
19
19
|
|
20
20
|
var _withSuccessOp = _interopRequireDefault(require("../components/withSuccessOp"));
|
21
21
|
|
22
|
+
var _withPublicTemplate = _interopRequireDefault(require("../components/withPublicTemplate"));
|
23
|
+
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
23
25
|
|
24
26
|
const PasswordReset = ({
|
@@ -43,7 +45,6 @@ const PasswordReset = ({
|
|
43
45
|
PasswordReset.propTypes = {
|
44
46
|
onSuccess: _propTypes.default.func.isRequired
|
45
47
|
};
|
46
|
-
|
47
|
-
var _default =
|
48
|
-
|
48
|
+
const PasswordResetWithTemplate = (0, _withPublicTemplate.default)((0, _withSuccessOp.default)(PasswordReset, 'passwordResetNotice'));
|
49
|
+
var _default = PasswordResetWithTemplate;
|
49
50
|
exports.default = _default;
|
package/lib/pages/reverify.js
CHANGED
@@ -27,6 +27,8 @@ var _FormBoxNotice = _interopRequireDefault(require("../components/FormBoxNotice
|
|
27
27
|
|
28
28
|
var _utils = require("../components/utils");
|
29
29
|
|
30
|
+
var _withPublicTemplate = _interopRequireDefault(require("../components/withPublicTemplate"));
|
31
|
+
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
31
33
|
|
32
34
|
const Reverify = ({
|
@@ -45,7 +47,7 @@ const Reverify = ({
|
|
45
47
|
component: _gatsby.Link,
|
46
48
|
to: "/reverify",
|
47
49
|
variant: "contained",
|
48
|
-
color: "
|
50
|
+
color: "secondary"
|
49
51
|
}, t('labels:tryAgain')));
|
50
52
|
return /*#__PURE__*/_react.default.createElement(_FormBox.default, {
|
51
53
|
renderBottom: /*#__PURE__*/_react.default.createElement(_builders.Form, {
|
@@ -71,5 +73,6 @@ Reverify.propTypes = {
|
|
71
73
|
pathname: _propTypes.default.string
|
72
74
|
}).isRequired
|
73
75
|
};
|
74
|
-
|
76
|
+
const ReverifyWithTemplate = (0, _withPublicTemplate.default)(Reverify);
|
77
|
+
var _default = ReverifyWithTemplate;
|
75
78
|
exports.default = _default;
|
package/lib/pages/verify.js
CHANGED
@@ -25,9 +25,11 @@ var _FormBox = _interopRequireDefault(require("../components/FormBox"));
|
|
25
25
|
|
26
26
|
var _withAuthenticate = _interopRequireDefault(require("../components/withAuthenticate"));
|
27
27
|
|
28
|
+
var _withPublicTemplate = _interopRequireDefault(require("../components/withPublicTemplate"));
|
29
|
+
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
29
31
|
|
30
|
-
|
32
|
+
const Verify = (0, _withPublicTemplate.default)((0, _withAuthenticate.default)(({
|
31
33
|
authenticate,
|
32
34
|
...props
|
33
35
|
}) => {
|
@@ -70,6 +72,6 @@ var _default = (0, _withAuthenticate.default)(({
|
|
70
72
|
description: "verify"
|
71
73
|
})
|
72
74
|
});
|
73
|
-
});
|
74
|
-
|
75
|
+
}));
|
76
|
+
var _default = Verify;
|
75
77
|
exports.default = _default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-theme-q3",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.4",
|
4
4
|
"main": "index.js",
|
5
5
|
"license": "MIT",
|
6
6
|
"peerDependencies": {
|
@@ -28,13 +28,13 @@
|
|
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.2.
|
31
|
+
"gatsby-theme-q3-mui": "^3.2.3",
|
32
32
|
"gatsby-transformer-sharp": "^4.2.0",
|
33
33
|
"lodash": "^4.17.20",
|
34
34
|
"process": "^0.11.10",
|
35
35
|
"prop-types": "^15.7.2",
|
36
36
|
"q3-ui-helpers": "^3.2.0",
|
37
|
-
"q3-ui-locale": "^3.2.
|
37
|
+
"q3-ui-locale": "^3.2.1",
|
38
38
|
"query-string": "^7.0.1",
|
39
39
|
"react-helmet": "^6.1.0",
|
40
40
|
"react-share": "^4.3.1",
|
@@ -42,5 +42,5 @@
|
|
42
42
|
"transform-loader": "^0.2.4",
|
43
43
|
"yarn": "^1.22.17"
|
44
44
|
},
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "5ca604e4b9081cf5728a581bc0a7300ffcefb6e9"
|
46
46
|
}
|
@@ -3,11 +3,7 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import { Loader } from 'q3-admin/lib/components';
|
4
4
|
import SearchEngine from './SearchEngine';
|
5
5
|
|
6
|
-
const PageWrapper = ({
|
7
|
-
children,
|
8
|
-
includeLoader,
|
9
|
-
includeLocale,
|
10
|
-
}) => (
|
6
|
+
const PageWrapper = ({ children, includeLoader }) => (
|
11
7
|
<>
|
12
8
|
<SearchEngine />
|
13
9
|
{includeLoader && <Loader />}
|