ywana-core8 0.0.497 → 0.0.500
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 +6 -15340
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -3
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +6 -15331
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -15335
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/site.css +3 -3
- package/src/site/site.js +5 -9
- package/src/site/site.test.js +1 -1
package/package.json
CHANGED
package/src/site/site.css
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
height: 100vh;
|
5
5
|
display: grid;
|
6
6
|
grid-template-columns: auto 1fr 1fr auto;
|
7
|
-
grid-template-rows: var(--site-header-height) 1fr auto;
|
8
|
-
grid-template-areas: "header header nav nav" "menu main main aside" "footer footer footer footer";
|
7
|
+
grid-template-rows: var(--site-header-height) 1fr auto auto;
|
8
|
+
grid-template-areas: "header header nav nav" "menu main main aside" "footer footer footer footer" "console console console console";
|
9
9
|
background-color: var(--background-color);
|
10
10
|
}
|
11
11
|
|
@@ -112,7 +112,7 @@
|
|
112
112
|
}
|
113
113
|
|
114
114
|
.site6>.site-console {
|
115
|
-
grid-area:
|
115
|
+
grid-area: console;
|
116
116
|
min-height: 20rem;
|
117
117
|
background-color: rgb(222, 222, 222);
|
118
118
|
color: #000;
|
package/src/site/site.js
CHANGED
@@ -5,11 +5,9 @@ import { Header } from '../html/header'
|
|
5
5
|
import { Tooltip } from '../html/tooltip'
|
6
6
|
import { Page } from './page'
|
7
7
|
import { SiteContext } from './siteContext'
|
8
|
-
import './site.css'
|
9
|
-
|
10
8
|
import { ReactNotifications, Store } from 'react-notifications-component'
|
11
9
|
import 'react-notifications-component/dist/theme.css'
|
12
|
-
import
|
10
|
+
import './site.css'
|
13
11
|
|
14
12
|
|
15
13
|
|
@@ -64,7 +62,7 @@ export const SiteProvider = ({ children, siteLang, siteDictionary }) => {
|
|
64
62
|
consoleLines,
|
65
63
|
showConsole,
|
66
64
|
toggleConsole: () => { setShowConsole(!showConsole) },
|
67
|
-
|
65
|
+
writeLog: (line) => {
|
68
66
|
const next = consoleLines.concat(line)
|
69
67
|
setConsoleLines(next)
|
70
68
|
},
|
@@ -174,8 +172,6 @@ const SiteToolBar = ({ children }) => {
|
|
174
172
|
* Site Footer
|
175
173
|
*/
|
176
174
|
const SiteFooter = ({ children }) => {
|
177
|
-
const context = useContext(SiteContext)
|
178
|
-
const { breadcrumb } = context
|
179
175
|
return (
|
180
176
|
<footer>
|
181
177
|
{children}
|
@@ -319,7 +315,7 @@ const SiteConsole = () => {
|
|
319
315
|
}
|
320
316
|
|
321
317
|
return context.showConsole ? (
|
322
|
-
<
|
318
|
+
<div className="site-console" >
|
323
319
|
<Header>
|
324
320
|
<Tabs>
|
325
321
|
<Tab label="Console" />
|
@@ -329,8 +325,8 @@ const SiteConsole = () => {
|
|
329
325
|
<Icon icon="clear_all" size="small" clickable action={clear} />
|
330
326
|
</nav>
|
331
327
|
<main>
|
332
|
-
{context.consoleLines.map(line => <div>{line}</div>)}
|
328
|
+
{context.consoleLines.map((line,index) => <div key={`log-${index}`}>{line}</div>)}
|
333
329
|
</main>
|
334
|
-
</
|
330
|
+
</div>
|
335
331
|
) : ''
|
336
332
|
}
|