parent
fa9fe9b551
commit
ec94ffa927
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 69 KiB |
@ -1,8 +1,21 @@
|
|||||||
import * as riot from 'riot'
|
import * as riot from 'riot'
|
||||||
import Datepicker from './datepicker.riot'
|
import Datepicker from './datepicker.riot'
|
||||||
|
import store from './store.js'
|
||||||
|
|
||||||
riot.register('tiny-datepicker', Datepicker)
|
riot.register('tiny-datepicker', Datepicker)
|
||||||
|
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
window.riot = riot
|
window.riot = riot
|
||||||
|
|
||||||
|
document.addEventListener("DOMContentLoaded", (event) => {
|
||||||
|
|
||||||
|
const console = document.querySelector('.console')
|
||||||
|
|
||||||
|
store.on('change', (data) => {
|
||||||
|
const element = document.createElement('div')
|
||||||
|
|
||||||
|
element.append('Event => Change, ' + data.date.format('YYYY-MM-DD'))
|
||||||
|
console.append(element)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
@import
|
@import
|
||||||
'../node_modules/@tiny-components/plain-ui/src/scss/plain-ui',
|
'../node_modules/@tiny-components/plain-ui/src/scss/plain-ui',
|
||||||
'styles';
|
'styles';
|
||||||
|
|
||||||
|
.console {
|
||||||
|
overflow-y: scroll;
|
||||||
|
max-height: 350px;
|
||||||
|
background: gray;
|
||||||
|
padding: 1em 1.5em;
|
||||||
|
background: #ddd;
|
||||||
|
border: 1px solid #b3b3b3;
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 967 B |
Loading…
Reference in new issue