gatsby-theme-q3 4.5.17 → 4.5.19
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/.eslintrc.js +12 -12
- package/CHANGELOG.md +1208 -1200
- package/LICENSE +21 -21
- package/__fixtures__/en/titles.json +2 -2
- package/__fixtures__/fr/titles.json +2 -2
- package/gatsby-browser.js +38 -38
- package/gatsby-config.js +62 -62
- package/gatsby-node.js +77 -77
- package/gatsby-ssr.js +11 -11
- package/index.js +1 -1
- package/lib/components/AccountPublicGateway.js +2 -3
- package/lib/components/AdminLoader.js +2 -3
- package/lib/components/AdminPrivateGateway.js +3 -4
- package/lib/components/AdminPublicGateway.js +3 -4
- package/lib/components/AdminRouter.js +3 -4
- package/lib/components/BlogArchiveTemplate.js +2 -3
- package/lib/components/BlogTemplate.js +2 -3
- package/lib/components/FormBox.js +2 -3
- package/lib/components/FormBoxContent.js +2 -3
- package/lib/components/FormBoxNotice.js +2 -3
- package/lib/components/IsBrowserReady.js +2 -3
- package/lib/components/PageWrapper.js +2 -3
- package/lib/components/PublicTemplate.js +2 -3
- package/lib/components/Redirect.js +2 -3
- package/lib/components/RedirectToIndex.js +2 -3
- package/lib/components/RichText.js +2 -3
- package/lib/components/SearchEngine.js +4 -7
- package/lib/components/ShareButton.js +2 -3
- package/lib/components/Wrapper.js +2 -3
- package/lib/components/__tests__/useSiteMetaData.test.js +44 -44
- package/lib/components/__tests__/withAuthenticate.test.js +2 -2
- package/lib/components/__tests__/withSuccessOp.test.js +4 -4
- package/lib/components/index.js +2 -3
- package/lib/components/useSiteMetaData.js +1 -1
- package/lib/components/utils.js +2 -3
- package/lib/components/withAuthenticate.js +2 -2
- package/lib/components/withPublicTemplate.js +2 -3
- package/lib/components/withSuccessOp.js +3 -4
- package/lib/pages/404.js +2 -3
- package/lib/pages/login.js +2 -3
- package/lib/pages/password-change.js +2 -3
- package/lib/pages/password-reset.js +2 -3
- package/lib/pages/reverify.js +2 -3
- package/lib/pages/verify.js +2 -3
- package/package.json +5 -5
- package/src/components/AccountPublicGateway.jsx +18 -18
- package/src/components/AdminLoader.jsx +16 -16
- package/src/components/AdminPrivateGateway.jsx +37 -37
- package/src/components/AdminPublicGateway.jsx +34 -34
- package/src/components/AdminRouter.jsx +44 -44
- package/src/components/BlogArchiveTemplate.jsx +55 -55
- package/src/components/BlogTemplate.jsx +104 -104
- package/src/components/FormBox.jsx +22 -22
- package/src/components/FormBoxContent.jsx +26 -26
- package/src/components/FormBoxNotice.jsx +21 -21
- package/src/components/IsBrowserReady.jsx +13 -13
- package/src/components/PageWrapper.jsx +20 -20
- package/src/components/PublicTemplate.jsx +198 -198
- package/src/components/Redirect.jsx +13 -13
- package/src/components/RedirectToIndex.jsx +9 -9
- package/src/components/RichText.jsx +196 -196
- package/src/components/SearchEngine.jsx +124 -124
- package/src/components/ShareButton.jsx +80 -80
- package/src/components/Wrapper.jsx +14 -14
- package/src/components/__tests__/SearchEngine.test.jsx +58 -58
- package/src/components/__tests__/useSiteMetaData.test.js +44 -44
- package/src/components/__tests__/withAuthenticate.test.jsx +52 -52
- package/src/components/__tests__/withSuccessOp.test.jsx +57 -57
- package/src/components/index.js +16 -16
- package/src/components/useSiteMetaData.js +35 -35
- package/src/components/utils.js +23 -23
- package/src/components/withAuthenticate.jsx +20 -20
- package/src/components/withPublicTemplate.jsx +11 -11
- package/src/components/withSuccessOp.jsx +43 -43
- package/src/pages/404.jsx +31 -31
- package/src/pages/login.jsx +71 -71
- package/src/pages/password-change.jsx +72 -72
- package/src/pages/password-reset.jsx +47 -47
- package/src/pages/reverify.jsx +72 -72
- package/src/pages/verify.jsx +70 -70
package/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2019 3merge
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 3merge
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{
|
2
|
-
"themeTest": "A sample key for testing i18n configurations"
|
1
|
+
{
|
2
|
+
"themeTest": "A sample key for testing i18n configurations"
|
3
3
|
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{
|
2
|
-
"themeTest": "Un exemple de clé pour tester les configurations i18n"
|
1
|
+
{
|
2
|
+
"themeTest": "Un exemple de clé pour tester les configurations i18n"
|
3
3
|
}
|
package/gatsby-browser.js
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
import axios from 'axios';
|
2
|
-
import { size } from 'lodash';
|
3
|
-
import { getDomain } from 'q3-admin';
|
4
|
-
import { browser } from 'q3-ui-helpers';
|
5
|
-
|
6
|
-
export {
|
7
|
-
wrapPageElement,
|
8
|
-
wrapRootElement,
|
9
|
-
} from './gatsby-ssr';
|
10
|
-
|
11
|
-
export const onClientEntry = async () => {
|
12
|
-
if (!browser.isBrowserReady()) return;
|
13
|
-
|
14
|
-
// set api default root
|
15
|
-
axios.defaults.baseURL =
|
16
|
-
process.env.GATSBY_APP_BASE_URL ||
|
17
|
-
'http://localhost:9000';
|
18
|
-
|
19
|
-
// set language default
|
20
|
-
axios.defaults.headers['Content-Language'] =
|
21
|
-
window.localStorage.getItem('q3-locale') || 'en';
|
22
|
-
|
23
|
-
// set tenant default
|
24
|
-
const { host } = window.location;
|
25
|
-
const str = String(host);
|
26
|
-
const offset = str.includes('localhost') ? -1 : -2;
|
27
|
-
const parts = str.split('.').slice(0, offset).join('.');
|
28
|
-
|
29
|
-
if (process.env.GATSBY_APP_TENANT_FORCE) {
|
30
|
-
axios.defaults.headers['X-Session-Tenant'] =
|
31
|
-
process.env.GATSBY_APP_TENANT_FORCE;
|
32
|
-
} else if (size(parts))
|
33
|
-
axios.defaults.headers['X-Session-Tenant'] =
|
34
|
-
process.env.GATSBY_APP_TENANT || parts;
|
35
|
-
|
36
|
-
// calls Q3 API
|
37
|
-
await getDomain();
|
38
|
-
};
|
1
|
+
import axios from 'axios';
|
2
|
+
import { size } from 'lodash';
|
3
|
+
import { getDomain } from 'q3-admin';
|
4
|
+
import { browser } from 'q3-ui-helpers';
|
5
|
+
|
6
|
+
export {
|
7
|
+
wrapPageElement,
|
8
|
+
wrapRootElement,
|
9
|
+
} from './gatsby-ssr';
|
10
|
+
|
11
|
+
export const onClientEntry = async () => {
|
12
|
+
if (!browser.isBrowserReady()) return;
|
13
|
+
|
14
|
+
// set api default root
|
15
|
+
axios.defaults.baseURL =
|
16
|
+
process.env.GATSBY_APP_BASE_URL ||
|
17
|
+
'http://localhost:9000';
|
18
|
+
|
19
|
+
// set language default
|
20
|
+
axios.defaults.headers['Content-Language'] =
|
21
|
+
window.localStorage.getItem('q3-locale') || 'en';
|
22
|
+
|
23
|
+
// set tenant default
|
24
|
+
const { host } = window.location;
|
25
|
+
const str = String(host);
|
26
|
+
const offset = str.includes('localhost') ? -1 : -2;
|
27
|
+
const parts = str.split('.').slice(0, offset).join('.');
|
28
|
+
|
29
|
+
if (process.env.GATSBY_APP_TENANT_FORCE) {
|
30
|
+
axios.defaults.headers['X-Session-Tenant'] =
|
31
|
+
process.env.GATSBY_APP_TENANT_FORCE;
|
32
|
+
} else if (size(parts))
|
33
|
+
axios.defaults.headers['X-Session-Tenant'] =
|
34
|
+
process.env.GATSBY_APP_TENANT || parts;
|
35
|
+
|
36
|
+
// calls Q3 API
|
37
|
+
await getDomain();
|
38
|
+
};
|
package/gatsby-config.js
CHANGED
@@ -1,62 +1,62 @@
|
|
1
|
-
// eslint-disable-next-line
|
2
|
-
require('dotenv').config();
|
3
|
-
|
4
|
-
const genKey = (url) =>
|
5
|
-
String(url).includes('netlify') ? 'disallow' : 'allow';
|
6
|
-
|
7
|
-
module.exports = (options) => {
|
8
|
-
const plugins = [
|
9
|
-
{
|
10
|
-
resolve: 'gatsby-theme-q3-mui',
|
11
|
-
options,
|
12
|
-
},
|
13
|
-
'gatsby-plugin-material-ui',
|
14
|
-
'gatsby-plugin-force-trailing-slashes',
|
15
|
-
// 'gatsby-plugin-sitemap',
|
16
|
-
{
|
17
|
-
resolve: 'gatsby-transformer-sharp',
|
18
|
-
options: {
|
19
|
-
// The option defaults to true
|
20
|
-
checkSupportedExtensions: true,
|
21
|
-
},
|
22
|
-
},
|
23
|
-
'gatsby-plugin-sharp',
|
24
|
-
{
|
25
|
-
resolve: 'gatsby-plugin-robots-txt',
|
26
|
-
options: {
|
27
|
-
host: process.env.URL,
|
28
|
-
sitemap: `${process.env.URL}/sitemap.xml`,
|
29
|
-
env: {
|
30
|
-
development: {
|
31
|
-
policy: [{ userAgent: '*', disallow: ['/'] }],
|
32
|
-
},
|
33
|
-
production: {
|
34
|
-
policy: [
|
35
|
-
{
|
36
|
-
userAgent: '*',
|
37
|
-
[genKey(process.env.URL)]: '/',
|
38
|
-
},
|
39
|
-
],
|
40
|
-
},
|
41
|
-
},
|
42
|
-
},
|
43
|
-
},
|
44
|
-
{
|
45
|
-
resolve: 'gatsby-plugin-netlify',
|
46
|
-
options: {
|
47
|
-
generateMatchPathRewrites: true,
|
48
|
-
},
|
49
|
-
},
|
50
|
-
{
|
51
|
-
resolve: 'gatsby-plugin-canonical-urls',
|
52
|
-
options: {
|
53
|
-
stripQueryString: true,
|
54
|
-
siteUrl: process.env.URL,
|
55
|
-
},
|
56
|
-
},
|
57
|
-
];
|
58
|
-
|
59
|
-
return {
|
60
|
-
plugins,
|
61
|
-
};
|
62
|
-
};
|
1
|
+
// eslint-disable-next-line
|
2
|
+
require('dotenv').config();
|
3
|
+
|
4
|
+
const genKey = (url) =>
|
5
|
+
String(url).includes('netlify') ? 'disallow' : 'allow';
|
6
|
+
|
7
|
+
module.exports = (options) => {
|
8
|
+
const plugins = [
|
9
|
+
{
|
10
|
+
resolve: 'gatsby-theme-q3-mui',
|
11
|
+
options,
|
12
|
+
},
|
13
|
+
'gatsby-plugin-material-ui',
|
14
|
+
'gatsby-plugin-force-trailing-slashes',
|
15
|
+
// 'gatsby-plugin-sitemap',
|
16
|
+
{
|
17
|
+
resolve: 'gatsby-transformer-sharp',
|
18
|
+
options: {
|
19
|
+
// The option defaults to true
|
20
|
+
checkSupportedExtensions: true,
|
21
|
+
},
|
22
|
+
},
|
23
|
+
'gatsby-plugin-sharp',
|
24
|
+
{
|
25
|
+
resolve: 'gatsby-plugin-robots-txt',
|
26
|
+
options: {
|
27
|
+
host: process.env.URL,
|
28
|
+
sitemap: `${process.env.URL}/sitemap.xml`,
|
29
|
+
env: {
|
30
|
+
development: {
|
31
|
+
policy: [{ userAgent: '*', disallow: ['/'] }],
|
32
|
+
},
|
33
|
+
production: {
|
34
|
+
policy: [
|
35
|
+
{
|
36
|
+
userAgent: '*',
|
37
|
+
[genKey(process.env.URL)]: '/',
|
38
|
+
},
|
39
|
+
],
|
40
|
+
},
|
41
|
+
},
|
42
|
+
},
|
43
|
+
},
|
44
|
+
{
|
45
|
+
resolve: 'gatsby-plugin-netlify',
|
46
|
+
options: {
|
47
|
+
generateMatchPathRewrites: true,
|
48
|
+
},
|
49
|
+
},
|
50
|
+
{
|
51
|
+
resolve: 'gatsby-plugin-canonical-urls',
|
52
|
+
options: {
|
53
|
+
stripQueryString: true,
|
54
|
+
siteUrl: process.env.URL,
|
55
|
+
},
|
56
|
+
},
|
57
|
+
];
|
58
|
+
|
59
|
+
return {
|
60
|
+
plugins,
|
61
|
+
};
|
62
|
+
};
|
package/gatsby-node.js
CHANGED
@@ -1,77 +1,77 @@
|
|
1
|
-
exports.onCreateWebpackConfig = ({
|
2
|
-
actions,
|
3
|
-
stage,
|
4
|
-
plugins,
|
5
|
-
}) => {
|
6
|
-
if (stage === 'build-javascript' || stage === 'develop')
|
7
|
-
actions.setWebpackConfig({
|
8
|
-
plugins: [
|
9
|
-
plugins.provide({
|
10
|
-
Buffer: ['buffer/', 'Buffer'],
|
11
|
-
process: 'process/browser',
|
12
|
-
}),
|
13
|
-
],
|
14
|
-
});
|
15
|
-
|
16
|
-
actions.setWebpackConfig({
|
17
|
-
module: {
|
18
|
-
rules: [
|
19
|
-
{
|
20
|
-
test: /\.ts$/,
|
21
|
-
use: ['ts-loader'],
|
22
|
-
},
|
23
|
-
{
|
24
|
-
test: /unicode-properties[/\\]unicode-properties/,
|
25
|
-
use: ['transform-loader?brfs'],
|
26
|
-
},
|
27
|
-
{
|
28
|
-
test: /pdfkit[/\\]js[/\\]/,
|
29
|
-
use: ['transform-loader?brfs'],
|
30
|
-
},
|
31
|
-
{
|
32
|
-
test: /fontkit[/\\]index.js$/,
|
33
|
-
use: ['transform-loader?brfs'],
|
34
|
-
},
|
35
|
-
{
|
36
|
-
test: /linebreak[/\\]src[/\\]linebreaker.js/,
|
37
|
-
use: ['transform-loader?brfs'],
|
38
|
-
},
|
39
|
-
],
|
40
|
-
},
|
41
|
-
resolve: {
|
42
|
-
alias: {
|
43
|
-
'unicode-properties':
|
44
|
-
'unicode-properties/unicode-properties.cjs.js',
|
45
|
-
pdfkit: 'pdfkit/js/pdfkit.js',
|
46
|
-
},
|
47
|
-
fallback: {
|
48
|
-
util: false,
|
49
|
-
fs: false,
|
50
|
-
path: false,
|
51
|
-
},
|
52
|
-
},
|
53
|
-
});
|
54
|
-
};
|
55
|
-
|
56
|
-
exports.onCreateBabelConfig = function onCreateBabelConfig({
|
57
|
-
actions,
|
58
|
-
}) {
|
59
|
-
actions.setBabelPlugin({
|
60
|
-
name: '@babel/plugin-proposal-export-default-from',
|
61
|
-
});
|
62
|
-
};
|
63
|
-
|
64
|
-
exports.onCreatePage = async ({ page, actions }) => {
|
65
|
-
const { createPage } = actions;
|
66
|
-
|
67
|
-
if (page.path.match(/^\/app/)) {
|
68
|
-
// eslint-disable-next-line
|
69
|
-
page.matchPath = '/app/*';
|
70
|
-
createPage({
|
71
|
-
...page,
|
72
|
-
context: {
|
73
|
-
to: '/app',
|
74
|
-
},
|
75
|
-
});
|
76
|
-
}
|
77
|
-
};
|
1
|
+
exports.onCreateWebpackConfig = ({
|
2
|
+
actions,
|
3
|
+
stage,
|
4
|
+
plugins,
|
5
|
+
}) => {
|
6
|
+
if (stage === 'build-javascript' || stage === 'develop')
|
7
|
+
actions.setWebpackConfig({
|
8
|
+
plugins: [
|
9
|
+
plugins.provide({
|
10
|
+
Buffer: ['buffer/', 'Buffer'],
|
11
|
+
process: 'process/browser',
|
12
|
+
}),
|
13
|
+
],
|
14
|
+
});
|
15
|
+
|
16
|
+
actions.setWebpackConfig({
|
17
|
+
module: {
|
18
|
+
rules: [
|
19
|
+
{
|
20
|
+
test: /\.ts$/,
|
21
|
+
use: ['ts-loader'],
|
22
|
+
},
|
23
|
+
{
|
24
|
+
test: /unicode-properties[/\\]unicode-properties/,
|
25
|
+
use: ['transform-loader?brfs'],
|
26
|
+
},
|
27
|
+
{
|
28
|
+
test: /pdfkit[/\\]js[/\\]/,
|
29
|
+
use: ['transform-loader?brfs'],
|
30
|
+
},
|
31
|
+
{
|
32
|
+
test: /fontkit[/\\]index.js$/,
|
33
|
+
use: ['transform-loader?brfs'],
|
34
|
+
},
|
35
|
+
{
|
36
|
+
test: /linebreak[/\\]src[/\\]linebreaker.js/,
|
37
|
+
use: ['transform-loader?brfs'],
|
38
|
+
},
|
39
|
+
],
|
40
|
+
},
|
41
|
+
resolve: {
|
42
|
+
alias: {
|
43
|
+
'unicode-properties':
|
44
|
+
'unicode-properties/unicode-properties.cjs.js',
|
45
|
+
pdfkit: 'pdfkit/js/pdfkit.js',
|
46
|
+
},
|
47
|
+
fallback: {
|
48
|
+
util: false,
|
49
|
+
fs: false,
|
50
|
+
path: false,
|
51
|
+
},
|
52
|
+
},
|
53
|
+
});
|
54
|
+
};
|
55
|
+
|
56
|
+
exports.onCreateBabelConfig = function onCreateBabelConfig({
|
57
|
+
actions,
|
58
|
+
}) {
|
59
|
+
actions.setBabelPlugin({
|
60
|
+
name: '@babel/plugin-proposal-export-default-from',
|
61
|
+
});
|
62
|
+
};
|
63
|
+
|
64
|
+
exports.onCreatePage = async ({ page, actions }) => {
|
65
|
+
const { createPage } = actions;
|
66
|
+
|
67
|
+
if (page.path.match(/^\/app/)) {
|
68
|
+
// eslint-disable-next-line
|
69
|
+
page.matchPath = '/app/*';
|
70
|
+
createPage({
|
71
|
+
...page,
|
72
|
+
context: {
|
73
|
+
to: '/app',
|
74
|
+
},
|
75
|
+
});
|
76
|
+
}
|
77
|
+
};
|
package/gatsby-ssr.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
/* eslint-disable import/prefer-default-export, react/prop-types, react/jsx-filename-extension */
|
2
|
-
import React from 'react';
|
3
|
-
import { PageWrapper, Wrapper } from './src/components';
|
4
|
-
|
5
|
-
export const wrapPageElement = ({ element }, plugin) => (
|
6
|
-
<PageWrapper {...plugin}>{element}</PageWrapper>
|
7
|
-
);
|
8
|
-
|
9
|
-
export const wrapRootElement = ({ element }, plugin) => (
|
10
|
-
<Wrapper {...plugin}>{element}</Wrapper>
|
11
|
-
);
|
1
|
+
/* eslint-disable import/prefer-default-export, react/prop-types, react/jsx-filename-extension */
|
2
|
+
import React from 'react';
|
3
|
+
import { PageWrapper, Wrapper } from './src/components';
|
4
|
+
|
5
|
+
export const wrapPageElement = ({ element }, plugin) => (
|
6
|
+
<PageWrapper {...plugin}>{element}</PageWrapper>
|
7
|
+
);
|
8
|
+
|
9
|
+
export const wrapRootElement = ({ element }, plugin) => (
|
10
|
+
<Wrapper {...plugin}>{element}</Wrapper>
|
11
|
+
);
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
// noop
|
1
|
+
// noop
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _gatsby = require("gatsby");
|
9
9
|
var _containers = require("q3-admin/lib/containers");
|
10
10
|
var _IsBrowserReady = _interopRequireDefault(require("./IsBrowserReady"));
|
11
|
-
function _interopRequireDefault(
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
12
12
|
// eslint-disable-next-line
|
13
13
|
const AccountPublicGateway = ({
|
14
14
|
children
|
@@ -16,5 +16,4 @@ const AccountPublicGateway = ({
|
|
16
16
|
navigate: _gatsby.navigate,
|
17
17
|
redirectPathOnSession: "/account"
|
18
18
|
}, children));
|
19
|
-
var _default = AccountPublicGateway;
|
20
|
-
exports.default = _default;
|
19
|
+
var _default = exports.default = AccountPublicGateway;
|
@@ -7,12 +7,11 @@ exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
var _components = require("q3-admin/lib/components");
|
10
|
-
function _interopRequireDefault(
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
11
11
|
const AdminLoader = ({
|
12
12
|
children
|
13
13
|
}) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.Loader, null), children);
|
14
14
|
AdminLoader.propTypes = {
|
15
15
|
children: _propTypes.default.node.isRequired
|
16
16
|
};
|
17
|
-
var _default = AdminLoader;
|
18
|
-
exports.default = _default;
|
17
|
+
var _default = exports.default = AdminLoader;
|
@@ -9,8 +9,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _gatsby = require("gatsby");
|
10
10
|
var _containers = require("q3-admin/lib/containers");
|
11
11
|
var _IsBrowserReady = _interopRequireDefault(require("./IsBrowserReady"));
|
12
|
-
function _interopRequireDefault(
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
13
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
14
14
|
const AdminPrivateGateway = ({
|
15
15
|
children,
|
16
16
|
GatekeepProps,
|
@@ -30,5 +30,4 @@ AdminPrivateGateway.propTypes = {
|
|
30
30
|
}),
|
31
31
|
children: _propTypes.default.node
|
32
32
|
};
|
33
|
-
var _default = AdminPrivateGateway;
|
34
|
-
exports.default = _default;
|
33
|
+
var _default = exports.default = AdminPrivateGateway;
|
@@ -9,8 +9,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _gatsby = require("gatsby");
|
10
10
|
var _containers = require("q3-admin/lib/containers");
|
11
11
|
var _IsBrowserReady = _interopRequireDefault(require("./IsBrowserReady"));
|
12
|
-
function _interopRequireDefault(
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
13
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
14
14
|
const AdminPublicGateway = ({
|
15
15
|
children,
|
16
16
|
GatekeepProps
|
@@ -28,5 +28,4 @@ AdminPublicGateway.propTypes = {
|
|
28
28
|
}),
|
29
29
|
children: _propTypes.default.node
|
30
30
|
};
|
31
|
-
var _default = AdminPublicGateway;
|
32
|
-
exports.default = _default;
|
31
|
+
var _default = exports.default = AdminPublicGateway;
|
@@ -10,8 +10,8 @@ var _router = require("@reach/router");
|
|
10
10
|
var _q3Admin = _interopRequireDefault(require("q3-admin"));
|
11
11
|
var _AdminPrivateGateway = _interopRequireDefault(require("./AdminPrivateGateway"));
|
12
12
|
var _useSiteMetaData = _interopRequireDefault(require("./useSiteMetaData"));
|
13
|
-
function _interopRequireDefault(
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
14
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
15
15
|
const AdminRouter = ({
|
16
16
|
AdminProps,
|
17
17
|
GatekeepProps
|
@@ -46,5 +46,4 @@ AdminRouter.propTypes = {
|
|
46
46
|
// eslint-disable-next-line
|
47
47
|
GatekeepProps: _propTypes.default.object
|
48
48
|
};
|
49
|
-
var _default = AdminRouter;
|
50
|
-
exports.default = _default;
|
49
|
+
var _default = exports.default = AdminRouter;
|
@@ -13,7 +13,7 @@ var _wrapper = _interopRequireDefault(require("q3-ui/lib/wrapper"));
|
|
13
13
|
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
14
14
|
var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
|
15
15
|
var _Pagination = _interopRequireDefault(require("@material-ui/lab/Pagination"));
|
16
|
-
function _interopRequireDefault(
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
17
17
|
const BlogArchiveTemplate = ({
|
18
18
|
blogs,
|
19
19
|
pageNum,
|
@@ -46,5 +46,4 @@ BlogArchiveTemplate.propTypes = {
|
|
46
46
|
total: _propTypes.default.number.isRequired,
|
47
47
|
dir: _propTypes.default.string.isRequired
|
48
48
|
};
|
49
|
-
var _default = BlogArchiveTemplate;
|
50
|
-
exports.default = _default;
|
49
|
+
var _default = exports.default = BlogArchiveTemplate;
|
@@ -21,7 +21,7 @@ var _pagination = _interopRequireDefault(require("q3-ui/lib/pagination"));
|
|
21
21
|
var _RichText = _interopRequireDefault(require("./RichText"));
|
22
22
|
var _ShareButton = _interopRequireDefault(require("./ShareButton"));
|
23
23
|
var _SearchEngine = _interopRequireDefault(require("./SearchEngine"));
|
24
|
-
function _interopRequireDefault(
|
24
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
25
25
|
const BlogTemplateSharePublication = ({
|
26
26
|
publishedOn
|
27
27
|
}) => /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
@@ -105,5 +105,4 @@ BlogTemplate.propTypes = {
|
|
105
105
|
to: _propTypes.default.string
|
106
106
|
}).isRequired
|
107
107
|
};
|
108
|
-
var _default = BlogTemplate;
|
109
|
-
exports.default = _default;
|
108
|
+
var _default = exports.default = BlogTemplate;
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
8
8
|
var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
10
|
-
function _interopRequireDefault(
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
11
11
|
const FormBox = ({
|
12
12
|
renderBottom,
|
13
13
|
renderTop
|
@@ -23,5 +23,4 @@ FormBox.propTypes = {
|
|
23
23
|
renderBottom: _propTypes.default.node.isRequired,
|
24
24
|
renderTop: _propTypes.default.node.isRequired
|
25
25
|
};
|
26
|
-
var _default = FormBox;
|
27
|
-
exports.default = _default;
|
26
|
+
var _default = exports.default = FormBox;
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _q3UiLocale = require("q3-ui-locale");
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
10
10
|
var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
|
11
|
-
function _interopRequireDefault(
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
12
12
|
const FormBoxContent = ({
|
13
13
|
title,
|
14
14
|
description
|
@@ -28,5 +28,4 @@ FormBoxContent.propTypes = {
|
|
28
28
|
title: _propTypes.default.string.isRequired,
|
29
29
|
description: _propTypes.default.string.isRequired
|
30
30
|
};
|
31
|
-
var _default = FormBoxContent;
|
32
|
-
exports.default = _default;
|
31
|
+
var _default = exports.default = FormBoxContent;
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
var _FormBox = _interopRequireDefault(require("./FormBox"));
|
10
10
|
var _FormBoxContent = _interopRequireDefault(require("./FormBoxContent"));
|
11
|
-
function _interopRequireDefault(
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
12
12
|
const FormBoxNotice = ({
|
13
13
|
children,
|
14
14
|
...rest
|
@@ -22,5 +22,4 @@ FormBoxNotice.defaultProps = {
|
|
22
22
|
FormBoxNotice.propTypes = {
|
23
23
|
children: _propTypes.default.node
|
24
24
|
};
|
25
|
-
var _default = FormBoxNotice;
|
26
|
-
exports.default = _default;
|
25
|
+
var _default = exports.default = FormBoxNotice;
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.default = void 0;
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
8
8
|
var _q3UiHelpers = require("q3-ui-helpers");
|
9
|
-
function _interopRequireDefault(
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
10
|
const {
|
11
11
|
isBrowserReady
|
12
12
|
} = _q3UiHelpers.browser;
|
@@ -16,5 +16,4 @@ const IsBrowserReady = ({
|
|
16
16
|
IsBrowserReady.propTypes = {
|
17
17
|
children: _propTypes.default.node.isRequired
|
18
18
|
};
|
19
|
-
var _default = IsBrowserReady;
|
20
|
-
exports.default = _default;
|
19
|
+
var _default = exports.default = IsBrowserReady;
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
var _SearchEngine = _interopRequireDefault(require("./SearchEngine"));
|
10
|
-
function _interopRequireDefault(
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
11
11
|
const PageWrapper = ({
|
12
12
|
children
|
13
13
|
}) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_SearchEngine.default, null), children);
|
@@ -17,5 +17,4 @@ PageWrapper.defaultProps = {
|
|
17
17
|
PageWrapper.propTypes = {
|
18
18
|
children: _propTypes.default.node
|
19
19
|
};
|
20
|
-
var _default = PageWrapper;
|
21
|
-
exports.default = _default;
|
20
|
+
var _default = exports.default = PageWrapper;
|