@symbo.ls/preview 0.0.70 → 0.0.71
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 +1 -1
- package/src/components/Page.js +17 -18
- package/src/pages/Init/CreateDocumentTheme.js +5 -4
- package/src/pages/Init/index.js +1 -1
- package/src/state.js +2 -1
- package/src/sync.js +4 -5
package/package.json
CHANGED
package/src/components/Page.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { PageTemplate, Flex } from '@symbo.ls/components'
|
|
3
|
+
import { PageTemplate, Overlay, Flex } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
import MASK1 from '../assets/mask1.png'
|
|
6
6
|
import MASK2 from '../assets/mask2.png' // eslint-disable-line
|
|
@@ -34,7 +34,9 @@ export const DisabledPage = {
|
|
|
34
34
|
overflow: 'hidden'
|
|
35
35
|
},
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
disablingOverlay: {
|
|
38
|
+
extend: [Overlay, Flex],
|
|
39
|
+
|
|
38
40
|
props: {
|
|
39
41
|
overflow: 'hidden',
|
|
40
42
|
background: 'shadow-overlay',
|
|
@@ -43,26 +45,23 @@ export const DisabledPage = {
|
|
|
43
45
|
},
|
|
44
46
|
|
|
45
47
|
Overlay: {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
WebkitMaskImage: 'url(' + MASK1 + ')',
|
|
53
|
-
WebkitMaskSize: '100% 100%'
|
|
54
|
-
}
|
|
48
|
+
background: 'gradient-colorful',
|
|
49
|
+
inset: '0 0 0 0',
|
|
50
|
+
opacity: '.9',
|
|
51
|
+
style: {
|
|
52
|
+
WebkitMaskImage: 'url(' + MASK1 + ')',
|
|
53
|
+
WebkitMaskSize: '100% 100%'
|
|
55
54
|
}
|
|
56
55
|
},
|
|
57
56
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
H3: {
|
|
58
|
+
margin: 'auto auto 0',
|
|
59
|
+
padding: 'C1',
|
|
61
60
|
color: 'black',
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
text: 'Custom library will come up
|
|
65
|
-
animation: '
|
|
61
|
+
width: '100%',
|
|
62
|
+
maxWidth: 'J-default',
|
|
63
|
+
text: 'Custom library will come up',
|
|
64
|
+
animation: 'fadeInUpShort',
|
|
66
65
|
animationDuration: 'G',
|
|
67
66
|
animationDelay: 'G'
|
|
68
67
|
}
|
|
@@ -66,13 +66,14 @@ const modes = {
|
|
|
66
66
|
|
|
67
67
|
ThemeButtons: {
|
|
68
68
|
position: 'absolute',
|
|
69
|
-
left: '
|
|
70
|
-
right: '
|
|
71
|
-
bottom: '
|
|
69
|
+
left: 'W',
|
|
70
|
+
right: 'W',
|
|
71
|
+
bottom: 'W',
|
|
72
72
|
opacity: '0',
|
|
73
73
|
transition: 'B default-bezier',
|
|
74
74
|
transitionProperty: 'transform, opacity',
|
|
75
|
-
transform: 'translate3d(0, 100%, 0)'
|
|
75
|
+
transform: 'translate3d(0, 100%, 0)',
|
|
76
|
+
columnGap: 'W'
|
|
76
77
|
},
|
|
77
78
|
|
|
78
79
|
Span: {
|
package/src/pages/Init/index.js
CHANGED
package/src/state.js
CHANGED
package/src/sync.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// import { init } from '@symbo.ls/init'
|
|
4
4
|
import { connect, send } from '@symbo.ls/socket/client'
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const onChange = (element, state) => {
|
|
7
7
|
return (event, data) => {
|
|
8
8
|
state.update({ SYSTEM: data })
|
|
9
9
|
}
|
|
@@ -12,13 +12,12 @@ const receive = (element, state) => {
|
|
|
12
12
|
export const Sync = {
|
|
13
13
|
on: {
|
|
14
14
|
init: (el, s) => {
|
|
15
|
-
connect(
|
|
15
|
+
if (s.appKey) connect(s.appKey, onChange(el, s))
|
|
16
16
|
},
|
|
17
17
|
stateUpdated: (el, s, changes) => {
|
|
18
|
-
if (changes.SYSTEM) {
|
|
19
|
-
// init(changes.SYSTEM)
|
|
20
|
-
console.log(changes)
|
|
18
|
+
if (s.appKey && changes.SYSTEM) {
|
|
21
19
|
send(changes.SYSTEM, s.SYSTEM)
|
|
20
|
+
// init(changes.SYSTEM)
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
}
|