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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.497",
3
+ "version": "0.0.500",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
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: footer;
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 { Console } from './console'
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
- log: (line) => {
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
- <footer className="site-console" >
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
- </footer>
330
+ </div>
335
331
  ) : ''
336
332
  }
@@ -108,7 +108,7 @@ const Page2 = (props) => {
108
108
  }
109
109
 
110
110
  function write() {
111
- site.log("xxx"+new Date())
111
+ site.writeLog("xxx"+new Date())
112
112
  }
113
113
 
114
114