Module: Isomorfeus
- Defined in:
- lib/isomorfeus/config.rb,
lib/isomorfeus/top_level.rb,
lib/isomorfeus/top_level_ssr.rb,
lib/isomorfeus/props/validator.rb,
lib/isomorfeus/react_view_helper.rb,
lib/isomorfeus/props/validate_hash_proxy.rb
Defined Under Namespace
Modules: Props, ReactViewHelper
Classes: TopLevel
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.env ⇒ Object
Returns the value of attribute env.
8
9
10
|
# File 'lib/isomorfeus/config.rb', line 8
def env
@env
end
|
.initial_state_fetched ⇒ Object
Returns the value of attribute initial_state_fetched.
4
5
6
|
# File 'lib/isomorfeus/config.rb', line 4
def initial_state_fetched
@initial_state_fetched
end
|
.initialized ⇒ Object
Returns the value of attribute initialized.
7
8
9
|
# File 'lib/isomorfeus/config.rb', line 7
def initialized
@initialized
end
|
.server_side_rendering ⇒ Object
Returns the value of attribute server_side_rendering.
102
103
104
|
# File 'lib/isomorfeus/config.rb', line 102
def server_side_rendering
@server_side_rendering
end
|
.ssr_hot_asset_url ⇒ Object
Returns the value of attribute ssr_hot_asset_url.
103
104
105
|
# File 'lib/isomorfeus/config.rb', line 103
def ssr_hot_asset_url
@ssr_hot_asset_url
end
|
.ssr_response_status ⇒ Object
Returns the value of attribute ssr_response_status.
6
7
8
|
# File 'lib/isomorfeus/config.rb', line 6
def ssr_response_status
@ssr_response_status
end
|
.top_component ⇒ Object
Returns the value of attribute top_component.
5
6
7
|
# File 'lib/isomorfeus/config.rb', line 5
def top_component
@top_component
end
|
.zeitwerk ⇒ Object
Returns the value of attribute zeitwerk.
9
10
11
|
# File 'lib/isomorfeus/config.rb', line 9
def zeitwerk
@zeitwerk
end
|
.zeitwerk_lock ⇒ Object
Returns the value of attribute zeitwerk_lock.
106
107
108
|
# File 'lib/isomorfeus/config.rb', line 106
def zeitwerk_lock
@zeitwerk_lock
end
|
Class Method Details
.add_client_init_class_name(init_class_name) ⇒ Object
27
28
29
|
# File 'lib/isomorfeus/config.rb', line 27
def add_client_init_class_name(init_class_name)
client_init_class_names << init_class_name
end
|
.add_client_option(key, value = nil) ⇒ Object
31
32
33
34
|
# File 'lib/isomorfeus/config.rb', line 31
def add_client_option(key, value = nil)
self.class.attr_accessor(key)
self.send("#{key}=", value)
end
|
.cached_component_class(class_name) ⇒ Object
42
43
44
45
|
# File 'lib/isomorfeus/config.rb', line 42
def cached_component_class(class_name)
return cached_component_classes[class_name] if cached_component_classes.key?(class_name)
cached_component_classes[class_name] = "::#{class_name}".constantize
end
|
.cached_component_classes ⇒ Object
37
38
39
|
# File 'lib/isomorfeus/config.rb', line 37
def cached_component_classes
@cached_component_classes ||= {}
end
|
.configuration(&block) ⇒ Object
108
109
110
|
# File 'lib/isomorfeus/config.rb', line 108
def configuration(&block)
block.call(self)
end
|
.development? ⇒ Boolean
60
61
62
|
# File 'lib/isomorfeus/config.rb', line 60
def development?
@development
end
|
.execute_init_classes ⇒ Object
47
48
49
50
51
|
# File 'lib/isomorfeus/config.rb', line 47
def execute_init_classes
client_init_class_names.each do |constant|
constant.constantize.send(:init)
end
end
|
.init ⇒ Object
11
12
13
14
15
16
|
# File 'lib/isomorfeus/config.rb', line 11
def init
return if initialized
@initialized = true
Isomorfeus.init_store
execute_init_classes
end
|
.production? ⇒ Boolean
64
65
66
|
# File 'lib/isomorfeus/config.rb', line 64
def production?
@production
end
|
.ssr_contexts ⇒ Object
131
132
133
|
# File 'lib/isomorfeus/config.rb', line 131
def ssr_contexts
@ssr_contexts ||= {}
end
|
.test? ⇒ Boolean
68
69
70
|
# File 'lib/isomorfeus/config.rb', line 68
def test?
@test
end
|
.version ⇒ Object
135
136
137
|
# File 'lib/isomorfeus/config.rb', line 135
def version
Isomorfeus::VERSION
end
|