ywana-core8 0.0.849 → 0.0.851
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/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/http/client.js +3 -3
- package/src/site/site.js +2 -2
package/package.json
CHANGED
package/src/http/client.js
CHANGED
@@ -52,17 +52,17 @@ export const HTTPClient = (domain, securityCtx) => {
|
|
52
52
|
return fetchAsync('POST', domain + URL, body, token, headers);
|
53
53
|
},
|
54
54
|
|
55
|
-
PUT: (URL, body) => {
|
55
|
+
PUT: (URL, body, headers) => {
|
56
56
|
const token = securityCtx ? securityCtx.token() : null;
|
57
57
|
return fetchAsync('PUT', domain + URL, body, token, headers);
|
58
58
|
},
|
59
59
|
|
60
|
-
PATCH: (URL, body) => {
|
60
|
+
PATCH: (URL, body, headers) => {
|
61
61
|
const token = securityCtx ? securityCtx.token() : null;
|
62
62
|
return fetchAsync('PATCH', domain + URL, body, token, headers);
|
63
63
|
},
|
64
64
|
|
65
|
-
DELETE: (URL) => {
|
65
|
+
DELETE: (URL, headers) => {
|
66
66
|
const token = securityCtx ? securityCtx.token() : null;
|
67
67
|
return fetchAsync('DELETE', domain + URL, undefined, token, headers);
|
68
68
|
}
|
package/src/site/site.js
CHANGED
@@ -114,11 +114,11 @@ export const SiteProvider = ({ children, siteLang, siteDictionary }) => {
|
|
114
114
|
/**
|
115
115
|
* Site
|
116
116
|
*/
|
117
|
-
export const Site = ({ icon, logo, title, toolbar, footer, children, init, min, lang, dictionary }) => {
|
117
|
+
export const Site = ({ icon, iconSrc, logo, title, toolbar, footer, children, init, min, lang, dictionary }) => {
|
118
118
|
return (
|
119
119
|
<SiteProvider siteLang={lang} siteDictionary={dictionary}>
|
120
120
|
<div className="site6">
|
121
|
-
<SiteHeader icon={icon} title={title} />
|
121
|
+
<SiteHeader icon={icon} iconSrc={iconSrc} title={title} />
|
122
122
|
<SiteToolBar >{toolbar}</SiteToolBar>
|
123
123
|
<SiteMenu logo={logo} title={title} min={min} >{children}</SiteMenu>
|
124
124
|
<SitePage init={init}>
|