isomorfeus-react 16.9.5 → 16.9.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3db41ef26a24fa9c7fc245c8b438898364fe03203c954a5aafe3c5d871626f88
|
4
|
+
data.tar.gz: 5967eab20528f06f4f273e1294dd82cd6f53ed66c3c6f212bfcfb7081b984a6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14153b0edb03c88fb5f17716ceee0fddd64a473fee15cde590b89abe012b16b0a765327b0d6a76d0020ac518b5bddd79a35211b71617a87ad682525043b39bbd
|
7
|
+
data.tar.gz: 9e4ce1d9545488c3873043d34b79f4add71b46e47b883e766af9e8337fdd91183c14d5c5525d2c56fad3d77ed8a697aac291425e8db9925536c35ceea037487f
|
@@ -16,6 +16,7 @@ module Isomorfeus
|
|
16
16
|
# build javascript for rendering first pass
|
17
17
|
javascript = <<~JAVASCRIPT
|
18
18
|
global.FirstPassFinished = false;
|
19
|
+
global.Opal.Isomorfeus['$env=']('#{Isomorfeus.env}');
|
19
20
|
global.Opal.Isomorfeus['$force_init!']();
|
20
21
|
global.Opal.Isomorfeus['$ssr_response_status='](200);
|
21
22
|
global.Opal.Isomorfeus.TopLevel['$ssr_route_path=']('#{props[:location]}');
|
@@ -5,6 +5,7 @@ module Isomorfeus
|
|
5
5
|
on_ready do
|
6
6
|
root_element = `document.querySelector('div[data-iso-root]')`
|
7
7
|
component_name = root_element.JS.getAttribute('data-iso-root')
|
8
|
+
Isomorfeus.env = root_element.JS.getAttribute('data-iso-env')
|
8
9
|
component = component_name.constantize
|
9
10
|
props_json = root_element.JS.getAttribute('data-iso-props')
|
10
11
|
props = `Opal.Hash.$new(JSON.parse(props_json))`
|
@@ -108,7 +108,7 @@ module LucidMaterial
|
|
108
108
|
return #{component_name} + 'Shell';
|
109
109
|
}
|
110
110
|
render() {
|
111
|
-
if (!base.lucid_material_component) {
|
111
|
+
if (!base.lucid_material_component || Opal.Isomorfeus["$development?"]()) {
|
112
112
|
base.lucid_material_component = Opal.global.MuiStyles.withStyles(base.jss_styles)(function(props){
|
113
113
|
return Opal.global.React.createElement(base.lucid_react_component, props);
|
114
114
|
});
|
@@ -148,7 +148,7 @@ module LucidMaterial
|
|
148
148
|
base.react_component = function(outer_props) {
|
149
149
|
return Opal.global.React.createElement(Opal.global.LucidApplicationContext.Consumer, null, function(store) {
|
150
150
|
var store_props = Object.assign({}, outer_props, { isomorfeus_store: store });
|
151
|
-
if (!base.lucid_material_component) {
|
151
|
+
if (!base.lucid_material_component || Opal.Isomorfeus["$development?"]()) {
|
152
152
|
base.lucid_material_component = Opal.global.MuiStyles.withStyles(base.jss_styles)(function(props){
|
153
153
|
return Opal.global.React.createElement(base.lucid_react_component, props);
|
154
154
|
});
|
data/lib/react/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-react
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.9.
|
4
|
+
version: 16.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|