revelry_core 0.1.6.3 → 0.1.6.4
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0bf78b69d2b7020bb0d306ac68aae5dbdbce5b5
|
4
|
+
data.tar.gz: c8dd3656fbbb64aa9f209ed8d75d18aa5228c97c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 220ff76fcb15282f321016fb00355e24b9d8327e29706ab27c0cc73395782311619683797fa8384adf9dd40eed4925e8d56885934439a91b7e1e7ca6674d996a
|
7
|
+
data.tar.gz: d5aae2cfe8e426405f53e7f0e2bc3a10258a561fd638f58eb5c56a9e9e4b32c8c6d3d9ae83909cc851f70fc8d5f139632bcc769d5d6330e1876eaf279977db5c
|
@@ -29,9 +29,9 @@ Rev.registerComponent 'Main',
|
|
29
29
|
# Some things are just easier when semi-global.
|
30
30
|
# (Think CSRF token.)
|
31
31
|
componentWillMount: ->
|
32
|
-
App.props = @props
|
32
|
+
App.props = @props.options
|
33
33
|
componentWillUpdate: (nextProps, nextState) ->
|
34
|
-
App.props = nextProps
|
34
|
+
App.props = nextProps.options
|
35
35
|
|
36
36
|
render: ->
|
37
37
|
if klass = @getChildComponentClass()
|
@@ -27,7 +27,7 @@ JS
|
|
27
27
|
if File.exist? file_name
|
28
28
|
file_name_backup = "#{file_name}.#{Time.now.to_i}"
|
29
29
|
run "mv #{file_name} #{file_name_backup}"
|
30
|
-
prepend_file file_name_backup, "// MOVED BY revelry:core:install - In most cases you can delete this file now
|
30
|
+
prepend_file file_name_backup, "// MOVED BY revelry:core:install - In most cases you can delete this file now.\n\n"
|
31
31
|
end
|
32
32
|
create_file file_name,
|
33
33
|
<<-JS
|
@@ -41,7 +41,7 @@ JS
|
|
41
41
|
if File.exist? settings_destination
|
42
42
|
file_name_backup = "#{settings_source}.#{Time.now.to_i}"
|
43
43
|
run "mv #{settings_source} #{file_name_backup}"
|
44
|
-
prepend_file file_name_backup, "// MOVED BY revelry:core:install - In most cases you can delete this file now
|
44
|
+
prepend_file file_name_backup, "// MOVED BY revelry:core:install - In most cases you can delete this file now.\n\n"
|
45
45
|
end
|
46
46
|
run "cp #{settings_source} #{settings_destination}"
|
47
47
|
create_file "app/assets/stylesheets/components/__keep.scss",
|
@@ -71,6 +71,70 @@ SCSS
|
|
71
71
|
*/
|
72
72
|
CSS
|
73
73
|
end
|
74
|
+
|
75
|
+
def starter_scaffolding
|
76
|
+
# Main component override with client-side routing.
|
77
|
+
create_file "app/assets/javascripts/components/Main.js.jsx",
|
78
|
+
<<-JSX
|
79
|
+
// This is the top of the component tree.
|
80
|
+
// It's a great place to hook in any behaviors you want for every view.
|
81
|
+
|
82
|
+
Rev.appComponent('Main', {
|
83
|
+
render: function() {
|
84
|
+
// Remove the Router wrapper if you do not need client-side routing.
|
85
|
+
return <Rev.Components.Router {...this.props}>
|
86
|
+
<Rev.Components.Main {...this.props} />
|
87
|
+
</Rev.Components.Router>;
|
88
|
+
}
|
89
|
+
});
|
90
|
+
JSX
|
91
|
+
|
92
|
+
create_file "app/assets/javascripts/components/PageLayout.js.jsx",
|
93
|
+
<<-JSX
|
94
|
+
// A good place to put navs, headers, footers that are shared across pages
|
95
|
+
|
96
|
+
Rev.appComponent('PageLayout', {
|
97
|
+
render: function() {
|
98
|
+
return <div>{this.props.children}</div>;
|
99
|
+
}
|
100
|
+
});
|
101
|
+
|
102
|
+
JSX
|
103
|
+
|
104
|
+
create_file "app/assets/javascripts/components/home/index.js.jsx",
|
105
|
+
<<-JSX
|
106
|
+
// Exports Rev.Components.<whatever> into the `this` context for convenience.
|
107
|
+
// This is is not strictly necessary.
|
108
|
+
// You could just use Rev.Components.Col, etc. directly if you enjoy typing.
|
109
|
+
Rev.pullInto(this)('Row', 'Col', 'CodeBlock', 'Lipsum');
|
110
|
+
|
111
|
+
Rev.appComponent('Home.Index', {
|
112
|
+
render: function() {
|
113
|
+
return <App.Components.PageLayout>
|
114
|
+
<Row>
|
115
|
+
<Col>
|
116
|
+
<h1>
|
117
|
+
Find this React component in...
|
118
|
+
</h1>
|
119
|
+
</Col>
|
120
|
+
<Col>
|
121
|
+
<p><CodeBlock>app/assets/javascripts/components/home/index.js.jsx</CodeBlock></p>
|
122
|
+
</Col>
|
123
|
+
</Row>
|
124
|
+
<Row>
|
125
|
+
<Col medium={4}><Lipsum /></Col>
|
126
|
+
<Col medium={8}><Lipsum p={2} /></Col>
|
127
|
+
</Row>
|
128
|
+
</App.Components.PageLayout>;
|
129
|
+
}
|
130
|
+
});
|
131
|
+
|
132
|
+
JSX
|
133
|
+
|
134
|
+
generate "controller", "Home index --skip-routes --skip-template-engine"
|
135
|
+
route "root to: 'home#index'"
|
136
|
+
|
137
|
+
end
|
74
138
|
end
|
75
139
|
end
|
76
140
|
end
|
data/lib/revelry_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: revelry_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.6.
|
4
|
+
version: 0.1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Revelry Labs, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|