modeljs 0.0.1

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.
@@ -0,0 +1,199 @@
1
+
2
+ /*******************************************************************************
3
+ Message boxes
4
+ *******************************************************************************/
5
+
6
+ .note {
7
+ padding: 20px;
8
+ background: #fef49c;
9
+ color: #000000;
10
+ font-weight: bold;
11
+ font-size: 1.4em;
12
+ }
13
+
14
+ .note_small {
15
+ display: block;
16
+ padding: 4px 10px;
17
+ background: #fef49c;
18
+ color: #000000;
19
+ font-size: 1em;
20
+ }
21
+
22
+ .note2 {
23
+ padding: 20px 20px 10px 20px;
24
+ background: #fef49c;
25
+ border: #cbc37d 1px dotted;
26
+ color: #000000;
27
+ /*font-weight: bold;*/
28
+ font-size: 1.2em;
29
+ }
30
+
31
+ div.note2 {
32
+ margin-bottom: 20px;
33
+ }
34
+
35
+ div.note2 p {
36
+ margin: 0 0 10px 0;
37
+ padding: 0;
38
+ }
39
+
40
+ .error {
41
+ background: #9c171b;
42
+ color: #ffffff;
43
+ }
44
+
45
+ .error a {
46
+ color: #fff;
47
+ }
48
+
49
+ .error a:hover {
50
+ color: #000;
51
+ }
52
+
53
+ .success {
54
+ background: #009900;
55
+ color: #ffffff;
56
+ }
57
+
58
+ .general {
59
+ border: #666666 1px solid;
60
+ }
61
+
62
+ .success a {
63
+ color: #ffffff;
64
+ }
65
+
66
+ .loading {
67
+ padding: 20px 20px 20px 40px;
68
+ background-image: url(/assets/loading.gif);
69
+ background-position: 0 15px;
70
+ background-repeat: no-repeat;
71
+ color: #000000;
72
+ font-weight: bold;
73
+ font-size: 1.4em;
74
+ }
75
+
76
+ .loading_small {
77
+ width: 20px;
78
+ height: 20px;
79
+ background-image: url(/assets/loading_small.gif);
80
+ background-position: 0 0;
81
+ background-repeat: no-repeat;
82
+ background-color: #fff;
83
+ color: #000000;
84
+ font-weight: normal;
85
+ font-size: 0.95em;
86
+ }
87
+
88
+ /*******************************************************************************
89
+ Edit page styles
90
+ *******************************************************************************/
91
+
92
+ table.data {
93
+ border-collapse: collapse;
94
+ }
95
+
96
+ table.data th {
97
+ margin: 0;
98
+ padding: 4px 8px;
99
+ background: #666;
100
+ color: #fff;
101
+ border: #666 1px solid;
102
+ }
103
+
104
+ table.data th a {
105
+ color: #fff;
106
+ text-decoration: none;
107
+ }
108
+
109
+ table.data th a:hover {
110
+ color: #000;
111
+ text-decoration: none;
112
+ }
113
+
114
+ table.data td {
115
+ margin: 0;
116
+ padding: 4px 8px;
117
+ border: #666 1px solid;
118
+ }
119
+
120
+ table.data tr.alt td {
121
+ background: #efefef;
122
+ }
123
+
124
+ table.data tr.over td {
125
+ background: #990000;
126
+ color: #fff;
127
+ cursor: pointer;
128
+ /*cursor: hand;*/
129
+ }
130
+
131
+ table.data tr.over td a {
132
+ color: #fff;
133
+ }
134
+
135
+ table.data tr.edit_listing_controls td {
136
+ border-top: 0;
137
+ background: #fef49c;
138
+ }
139
+
140
+ table.data td.edit_listing_first_cell {
141
+ border-bottom: #ccc 1px dotted;
142
+ border-right: #ccc 1px dotted;
143
+ background: #fef49c;
144
+ }
145
+
146
+ table.data td.edit_listing_last_cell {
147
+ border-bottom: #ccc 1px dotted;
148
+ border-left: #ccc 1px dotted;
149
+ background: #fef49c;
150
+ }
151
+
152
+ table.data td.edit_listing_cell {
153
+ border-bottom: #ccc 1px dotted;
154
+ border-left: #ccc 1px dotted;
155
+ border-right: #ccc 1px dotted;
156
+ background: #fef49c;
157
+ }
158
+
159
+ table.data td.edit_listing_single_cell {
160
+ border-bottom: #ccc 1px dotted;
161
+ background: #fef49c;
162
+ }
163
+
164
+ td.border1 { border-bottom: #000 2px solid; }
165
+ td.border2 { border-bottom: #000 4px double; }
166
+
167
+ table.data table.no-border td {
168
+ border: 0;
169
+ }
170
+
171
+ /******************************************************************************/
172
+
173
+ .model_attribute {
174
+ display: block;
175
+ padding: 2px 4px;
176
+ background: #fff;
177
+ text-decoration: none;
178
+ }
179
+
180
+ .model_attribute:hover {
181
+ background: #efefef;
182
+ }
183
+
184
+ form.model_attribute_form {
185
+ margin: 0;
186
+ }
187
+
188
+ form.model_attribute_form_text input[type=text] {
189
+ width: 300px;
190
+ }
191
+
192
+ tr.model_listing .model_attribute,
193
+ tr.model_listing .model_attribute:hover {
194
+ background: none;
195
+ }
196
+
197
+ tr.model_listing:hover td {
198
+ background: #efefef;
199
+ }
@@ -0,0 +1,4 @@
1
+ module Modeljs
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module Modeljs
2
+ VERSION = "0.0.1"
3
+ end
data/lib/modeljs.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "modeljs/engine"
2
+
3
+ module Modeljs
4
+ end
5
+
File without changes
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: modeljs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - William Barry
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.13
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.13
30
+ - !ruby/object:Gem::Dependency
31
+ name: jquery-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: activesupport
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: A javascript model framework.
63
+ email:
64
+ - william@nine.is
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - app/assets/javascripts/modeljs/attribute/checkbox-multiple.js
70
+ - app/assets/javascripts/modeljs/attribute/checkbox.js
71
+ - app/assets/javascripts/modeljs/attribute/date-time.js
72
+ - app/assets/javascripts/modeljs/attribute/file.js
73
+ - app/assets/javascripts/modeljs/attribute/hidden.js
74
+ - app/assets/javascripts/modeljs/attribute/image.js
75
+ - app/assets/javascripts/modeljs/attribute/password.js
76
+ - app/assets/javascripts/modeljs/attribute/radio.js
77
+ - app/assets/javascripts/modeljs/attribute/rich-text.js
78
+ - app/assets/javascripts/modeljs/attribute/select.js
79
+ - app/assets/javascripts/modeljs/attribute/texarea.js
80
+ - app/assets/javascripts/modeljs/attribute/textjs.js
81
+ - app/assets/javascripts/modeljs/attribute/time.js
82
+ - app/assets/javascripts/modeljs/attribute/video.js
83
+ - app/assets/javascripts/modeljs/attribute.js
84
+ - app/assets/javascripts/modeljs/form/embedded.js
85
+ - app/assets/javascripts/modeljs/form.js
86
+ - app/assets/javascripts/modeljs/model.js
87
+ - app/assets/stylesheets/modeljs/modeljs.css
88
+ - lib/modeljs/engine.rb
89
+ - lib/modeljs/version.rb
90
+ - lib/modeljs.rb
91
+ - lib/tasks/modeljs_tasks.rake
92
+ - MIT-LICENSE
93
+ - Rakefile
94
+ - README.md
95
+ homepage: http://github.com/williambarry007/modeljs
96
+ licenses: []
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubyforge_project:
115
+ rubygems_version: 1.8.25
116
+ signing_key:
117
+ specification_version: 3
118
+ summary: A javascript model framework.
119
+ test_files: []