creationix-milk 0.0.9 → 0.1.0
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.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/milk/application.rb +37 -16
- data/lib/milk/component.rb +23 -28
- data/lib/milk/field.rb +7 -18
- data/lib/milk/page.rb +19 -25
- data/lib/milk/tasks.rb +6 -7
- data/lib/milk.rb +64 -40
- data/milk.gemspec +56 -45
- data/site_template/Rakefile +5 -0
- data/site_template/bootstrap.rb +71 -0
- data/site_template/config.ru +1 -3
- data/site_template/{config → data/global}/foot.yaml +0 -0
- data/site_template/{config → data/global}/head.yaml +4 -4
- data/site_template/{pages → data/pages}/About.yaml +3 -3
- data/site_template/{pages → data/pages}/Home.yaml +4 -3
- data/site_template/{pages → data/pages}/News.yaml +3 -3
- data/site_template/{pages → data/pages}/NotFound.yaml +3 -3
- data/site_template/{pages → data/pages}/Products.yaml +3 -3
- data/site_template/lib/components/body.rb +6 -0
- data/site_template/lib/components/button.rb +19 -0
- data/site_template/lib/components/foot.rb +6 -0
- data/site_template/lib/components/head.rb +6 -0
- data/site_template/lib/fields/checkbox_field.rb +4 -0
- data/{lib/milk → site_template/lib}/fields/component_array.rb +0 -0
- data/site_template/lib/fields/dropdown_field.rb +4 -0
- data/{lib/milk → site_template/lib}/fields/image_chooser.rb +0 -0
- data/{lib/milk → site_template/lib}/fields/markdown_field.rb +0 -0
- data/{lib/milk → site_template/lib}/fields/page_chooser.rb +1 -1
- data/{lib/milk → site_template/lib}/fields/sprite_chooser.rb +1 -1
- data/{lib/milk → site_template/lib}/fields/text_field.rb +0 -0
- data/site_template/public/js/edit.js +121 -0
- data/site_template/public/js/form_validate.js +51 -0
- data/site_template/public/js/login.js +9 -0
- data/site_template/public/style/960.css +96 -0
- data/site_template/public/style/edit.css +29 -0
- data/site_template/public/style/login.css +12 -0
- data/site_template/public/style/reset.css +33 -0
- data/site_template/public/style/text.css +25 -0
- data/site_template/public/style/view.css +10 -0
- data/site_template/{design → templates}/960.sass +0 -0
- data/site_template/{design → templates/components}/body.haml +0 -0
- data/site_template/{design → templates/components}/button.haml +0 -0
- data/site_template/{design → templates/components}/foot.haml +0 -0
- data/site_template/{design → templates/components}/head.haml +0 -0
- data/site_template/templates/dependencies.haml +8 -0
- data/{lib/milk/fields/component.haml → site_template/templates/edit.component.haml} +0 -0
- data/site_template/templates/edit.haml +38 -0
- data/site_template/templates/edit.sass +91 -0
- data/site_template/templates/fields/checkbox_field.haml +1 -0
- data/{lib/milk → site_template/templates}/fields/component_array.haml +0 -0
- data/site_template/templates/fields/dropdown_field.haml +3 -0
- data/{lib/milk → site_template/templates}/fields/image_chooser.haml +0 -0
- data/{lib/milk → site_template/templates}/fields/markdown_field.haml +0 -0
- data/site_template/templates/fields/page_chooser.haml +3 -0
- data/{lib/milk → site_template/templates}/fields/sprite_chooser.haml +0 -0
- data/{lib/milk → site_template/templates}/fields/text_field.haml +0 -0
- data/site_template/templates/login.haml +37 -0
- data/site_template/templates/login.sass +35 -0
- data/site_template/{design/0-reset.sass → templates/reset.sass} +0 -0
- data/site_template/{design/1-text.sass → templates/text.sass} +0 -0
- data/site_template/{design/xhtml.haml → templates/view.haml} +2 -3
- data/site_template/{design/page.haml → templates/view.page.haml} +0 -0
- data/site_template/{design/head.sass → templates/view.sass} +10 -0
- metadata +56 -45
- data/lib/milk/fields/login.haml +0 -90
- data/lib/milk/fields/page_chooser.haml +0 -3
- data/lib/milk/fields/xhtml.haml +0 -253
- data/lib/milk/haxe.rb +0 -139
- data/site_template/config/config.yaml +0 -31
- data/site_template/config/users.yaml +0 -18
- data/site_template/design/body.rb +0 -4
- data/site_template/design/button.rb +0 -16
- data/site_template/design/foot.rb +0 -4
- data/site_template/design/foot.sass +0 -3
- data/site_template/design/head.rb +0 -4
- data/site_template/design/page.sass +0 -7
- data/site_template/design/sprites.sass +0 -0
@@ -0,0 +1,96 @@
|
|
1
|
+
.container_12 { margin-left: auto; margin-right: auto; width: 960px; }
|
2
|
+
.container_12 .grid_3 { width: 220px; }
|
3
|
+
.container_12 .grid_6 { width: 460px; }
|
4
|
+
.container_12 .grid_9 { width: 700px; }
|
5
|
+
.container_12 .grid_12 { width: 940px; }
|
6
|
+
.container_12 .grid_1 { width: 60px; }
|
7
|
+
.container_12 .grid_2 { width: 140px; }
|
8
|
+
.container_12 .grid_4 { width: 300px; }
|
9
|
+
.container_12 .grid_5 { width: 380px; }
|
10
|
+
.container_12 .grid_7 { width: 540px; }
|
11
|
+
.container_12 .grid_8 { width: 620px; }
|
12
|
+
.container_12 .grid_10 { width: 780px; }
|
13
|
+
.container_12 .grid_11 { width: 860px; }
|
14
|
+
.container_12 .prefix_3 { padding-left: 240px; }
|
15
|
+
.container_12 .prefix_6 { padding-left: 480px; }
|
16
|
+
.container_12 .prefix_9 { padding-left: 720px; }
|
17
|
+
.container_12 .prefix_1 { padding-left: 80px; }
|
18
|
+
.container_12 .prefix_2 { padding-left: 160px; }
|
19
|
+
.container_12 .prefix_4 { padding-left: 320px; }
|
20
|
+
.container_12 .prefix_5 { padding-left: 400px; }
|
21
|
+
.container_12 .prefix_7 { padding-left: 560px; }
|
22
|
+
.container_12 .prefix_8 { padding-left: 640px; }
|
23
|
+
.container_12 .prefix_10 { padding-left: 800px; }
|
24
|
+
.container_12 .prefix_11 { padding-left: 880px; }
|
25
|
+
.container_12 .suffix_3 { padding-right: 240px; }
|
26
|
+
.container_12 .suffix_6 { padding-right: 480px; }
|
27
|
+
.container_12 .suffix_9 { padding-right: 720px; }
|
28
|
+
.container_12 .suffix_1 { padding-right: 80px; }
|
29
|
+
.container_12 .suffix_2 { padding-right: 160px; }
|
30
|
+
.container_12 .suffix_4 { padding-right: 320px; }
|
31
|
+
.container_12 .suffix_5 { padding-right: 400px; }
|
32
|
+
.container_12 .suffix_7 { padding-right: 560px; }
|
33
|
+
.container_12 .suffix_8 { padding-right: 640px; }
|
34
|
+
.container_12 .suffix_10 { padding-right: 800px; }
|
35
|
+
.container_12 .suffix_11 { padding-right: 880px; }
|
36
|
+
|
37
|
+
.container_16 { margin-left: auto; margin-right: auto; width: 960px; }
|
38
|
+
.container_16 .grid_4 { width: 220px; }
|
39
|
+
.container_16 .grid_8 { width: 460px; }
|
40
|
+
.container_16 .grid_12 { width: 700px; }
|
41
|
+
.container_16 .grid_16 { width: 940px; }
|
42
|
+
.container_16 .grid_1 { width: 40px; }
|
43
|
+
.container_16 .grid_2 { width: 100px; }
|
44
|
+
.container_16 .grid_3 { width: 160px; }
|
45
|
+
.container_16 .grid_5 { width: 280px; }
|
46
|
+
.container_16 .grid_6 { width: 340px; }
|
47
|
+
.container_16 .grid_7 { width: 400px; }
|
48
|
+
.container_16 .grid_9 { width: 520px; }
|
49
|
+
.container_16 .grid_10 { width: 580px; }
|
50
|
+
.container_16 .grid_11 { width: 640px; }
|
51
|
+
.container_16 .grid_13 { width: 760px; }
|
52
|
+
.container_16 .grid_14 { width: 820px; }
|
53
|
+
.container_16 .grid_15 { width: 880px; }
|
54
|
+
.container_16 .prefix_4 { padding-left: 240px; }
|
55
|
+
.container_16 .prefix_8 { padding-left: 480px; }
|
56
|
+
.container_16 .prefix_12 { padding-left: 720px; }
|
57
|
+
.container_16 .prefix_1 { padding-left: 60px; }
|
58
|
+
.container_16 .prefix_2 { padding-left: 120px; }
|
59
|
+
.container_16 .prefix_3 { padding-left: 180px; }
|
60
|
+
.container_16 .prefix_5 { padding-left: 300px; }
|
61
|
+
.container_16 .prefix_6 { padding-left: 360px; }
|
62
|
+
.container_16 .prefix_7 { padding-left: 420px; }
|
63
|
+
.container_16 .prefix_9 { padding-left: 540px; }
|
64
|
+
.container_16 .prefix_10 { padding-left: 600px; }
|
65
|
+
.container_16 .prefix_11 { padding-left: 660px; }
|
66
|
+
.container_16 .prefix_13 { padding-left: 780px; }
|
67
|
+
.container_16 .prefix_14 { padding-left: 840px; }
|
68
|
+
.container_16 .prefix_15 { padding-left: 900px; }
|
69
|
+
.container_16 .suffix_4 { padding-right: 240px; }
|
70
|
+
.container_16 .suffix_8 { padding-right: 480px; }
|
71
|
+
.container_16 .suffix_12 { padding-right: 720px; }
|
72
|
+
.container_16 .suffix_1 { padding-right: 60px; }
|
73
|
+
.container_16 .suffix_2 { padding-right: 120px; }
|
74
|
+
.container_16 .suffix_3 { padding-right: 180px; }
|
75
|
+
.container_16 .suffix_5 { padding-right: 300px; }
|
76
|
+
.container_16 .suffix_6 { padding-right: 360px; }
|
77
|
+
.container_16 .suffix_7 { padding-right: 420px; }
|
78
|
+
.container_16 .suffix_9 { padding-right: 540px; }
|
79
|
+
.container_16 .suffix_10 { padding-right: 600px; }
|
80
|
+
.container_16 .suffix_11 { padding-right: 660px; }
|
81
|
+
.container_16 .suffix_13 { padding-right: 780px; }
|
82
|
+
.container_16 .suffix_14 { padding-right: 840px; }
|
83
|
+
.container_16 .suffix_15 { padding-right: 900px; }
|
84
|
+
|
85
|
+
.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12, .grid_13, .grid_14, .grid_15, .grid_16 { display: inline; float: left; margin-left: 10px; margin-right: 10px; }
|
86
|
+
|
87
|
+
.alpha { margin-left: 0; }
|
88
|
+
|
89
|
+
.omega { margin-right: 0; }
|
90
|
+
|
91
|
+
.clear { clear: both; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0; }
|
92
|
+
|
93
|
+
.clearfix { display: inline-block; display: block; }
|
94
|
+
.clearfix:after { clear: both; content: ' '; display: block; font-size: 0; line-height: 0; visibility: hidden; width: 0; height: 0; }
|
95
|
+
|
96
|
+
* html .clearfix { height: 1%; }
|
@@ -0,0 +1,29 @@
|
|
1
|
+
body, html { border: 0; margin: 0; padding: 0; }
|
2
|
+
|
3
|
+
body.busy { cursor: busy; }
|
4
|
+
|
5
|
+
div.component:hover { border: 10px solid #08f; }
|
6
|
+
|
7
|
+
#admin-title { position: absolute; margin: 0; top: 5px; left: 10px; line-height: 1em; font-size: 20px; font-family: monaco,monospace; }
|
8
|
+
|
9
|
+
#toolbar { position: absolute; left: 0; bottom: 0; right: 0; padding: 3px; }
|
10
|
+
#toolbar .toolitem { font-size: 12px; cursor: pointer; line-height: 1em; padding: 2px 5px 2px 2px; }
|
11
|
+
#toolbar .toolitem .ui-icon { float: left; line-height: 1em; }
|
12
|
+
|
13
|
+
#frame { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; }
|
14
|
+
|
15
|
+
#left { font-size: 11px; position: absolute; top: 0px; left: 0px; width: 250px; bottom: 0px; }
|
16
|
+
#left h4 { font-size: 14px; }
|
17
|
+
#left h3 { font-size: 13px; }
|
18
|
+
|
19
|
+
#divider { position: absolute; top: 0px; left: 250px; width: 5px; bottom: 0px; }
|
20
|
+
|
21
|
+
#fields { position: absolute; top: 0px; bottom: 35px; overflow: auto; left: 0px; right: 0; }
|
22
|
+
#fields .ui-accordion-content { padding: 10px; }
|
23
|
+
#fields .ui-accordion-content h4 { margin: 0; }
|
24
|
+
#fields .ui-accordion-content .field-content { margin-bottom: 10px; }
|
25
|
+
#fields .ui-accordion-content .field-content input { width: 95%; padding: 2px; }
|
26
|
+
#fields .ui-accordion-content .field-content textarea { width: 100%; min-height: 330px; }
|
27
|
+
#fields .ui-accordion-content .field-content .sprite-select .sprite-option { padding: 4px; margin: 2px; float: left; cursor: pointer; }
|
28
|
+
|
29
|
+
#preview { position: absolute; top: 0px; left: 255px; right: 0; width: auto; bottom: 0px; overflow: auto; }
|
@@ -0,0 +1,12 @@
|
|
1
|
+
table, #shadow, .ui-widget-shadow { width: 400px; height: 160px; }
|
2
|
+
|
3
|
+
table#login, #shadow { font-size: 15px; position: absolute; top: 50%; left: 50%; margin-top: -80px; margin-left: -200px; }
|
4
|
+
|
5
|
+
table#login td, table#login th { vertical-align: middle; }
|
6
|
+
|
7
|
+
#login tr.ui-state-error { font-size: 12px; }
|
8
|
+
#login tr.ui-state-error td { padding: 5px 10px; }
|
9
|
+
#login tr.ui-state-error span { float: left; margin-right: 0.3em; }
|
10
|
+
#login .ui-widget-header { line-height: 2em; height: 2em; }
|
11
|
+
#login button { font-size: 12px; cursor: pointer; line-height: 1em; padding: 2px 5px 2px 2px; }
|
12
|
+
#login button .ui-icon { float: left; line-height: 1em; }
|
@@ -0,0 +1,33 @@
|
|
1
|
+
html { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
2
|
+
|
3
|
+
body { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; line-height: 1; }
|
4
|
+
|
5
|
+
div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
6
|
+
|
7
|
+
blockquote { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; quotes: none; }
|
8
|
+
blockquote:before, blockquote:after { content: ''; content: none; }
|
9
|
+
|
10
|
+
pre, a, abbr, acronym, address, big, cite, code { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
11
|
+
|
12
|
+
del { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; text-decoration: line-through; }
|
13
|
+
|
14
|
+
dfn, em, font, img { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
15
|
+
|
16
|
+
ins { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; text-decoration: none; }
|
17
|
+
|
18
|
+
kbd { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
19
|
+
|
20
|
+
q { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; quotes: none; }
|
21
|
+
q:before, q:after { content: ''; content: none; }
|
22
|
+
|
23
|
+
s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
24
|
+
|
25
|
+
ol, ul { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; list-style: none; }
|
26
|
+
|
27
|
+
li, fieldset, form, label, legend { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
28
|
+
|
29
|
+
table { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; border-collapse: collapse; border-spacing: 0; }
|
30
|
+
|
31
|
+
caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
|
32
|
+
|
33
|
+
html :focus { outline: 0; }
|
@@ -0,0 +1,25 @@
|
|
1
|
+
body { font: 13px/1.5 Helvetica,Arial,'Liberation Sans',FreeSans,sans-serif; }
|
2
|
+
|
3
|
+
a:focus { outline: 1px dotted invert; }
|
4
|
+
|
5
|
+
hr { border: 0 #ccc solid; border-top-width: 1px; clear: both; height: 0; margin-bottom: 20px; }
|
6
|
+
|
7
|
+
h1 { font-size: 25px; margin-bottom: 20px; }
|
8
|
+
|
9
|
+
h2 { font-size: 23px; margin-bottom: 20px; }
|
10
|
+
|
11
|
+
h3 { font-size: 21px; margin-bottom: 20px; }
|
12
|
+
|
13
|
+
h4 { font-size: 19px; margin-bottom: 20px; }
|
14
|
+
|
15
|
+
h5 { font-size: 17px; margin-bottom: 20px; }
|
16
|
+
|
17
|
+
h6 { font-size: 15px; margin-bottom: 20px; }
|
18
|
+
|
19
|
+
ol { list-style: decimal; margin-bottom: 20px; }
|
20
|
+
|
21
|
+
ul { list-style: disc; margin-bottom: 20px; }
|
22
|
+
|
23
|
+
li { margin-left: 30px; }
|
24
|
+
|
25
|
+
p, dl, pre, table, address, fieldset { margin-bottom: 20px; }
|
@@ -0,0 +1,10 @@
|
|
1
|
+
#admin { color: #999; text-align: right; }
|
2
|
+
#admin a, #admin a:visited, #admin a:active, #admin a:link { color: #08f; }
|
3
|
+
|
4
|
+
#head { margin-top: 20px; margin-bottom: 20px; }
|
5
|
+
#head li { list-style-type: none; margin: 0; }
|
6
|
+
#head li a { color: #08f; text-decoration: none; border: 1px solid #999; text-align: center; font-weight: bold; background-color: #222; float: left; margin: 0 13px 0 0; padding: 8px 15px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; }
|
7
|
+
#head li a:hover { background-color: #8af; color: #000; }
|
8
|
+
#head li a.active { background-color: #8fa; color: #000; }
|
9
|
+
|
10
|
+
#foot { font-size: 90%; color: #888; }
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
- list.each do |resource|
|
2
|
+
- case resource.rpartition('.').last.to_sym
|
3
|
+
- when :js
|
4
|
+
%script{:src=>resource, :type=>"text/javascript"}
|
5
|
+
- when :css
|
6
|
+
%link{:href=>resource, :media=>"screen", :rel=>"stylesheet", :type=>"text/css"}/
|
7
|
+
- when :ico
|
8
|
+
%link{:href=>resource, :rel=>'shortcut icon', :type=>'image/x-icon'}
|
File without changes
|
@@ -0,0 +1,38 @@
|
|
1
|
+
!!! xml
|
2
|
+
!!! 1.1
|
3
|
+
%html{:xmlns =>"http://www.w3.org/1999/xhtml"}
|
4
|
+
%head
|
5
|
+
%title&= "Editing \"#{@pagename}\""
|
6
|
+
= render_dependencies
|
7
|
+
%body
|
8
|
+
#frame
|
9
|
+
#left
|
10
|
+
.ui-widget-overlay
|
11
|
+
%form#fields{:method => "post", :action => "/"+@pagename}
|
12
|
+
%h3
|
13
|
+
%a{:href => "#"} Page Settings
|
14
|
+
%div
|
15
|
+
%input{:type=>"hidden", :name=>"class", :value=>self.class.to_s}
|
16
|
+
-to_yaml_properties.each do |name|
|
17
|
+
- next if name == :@components
|
18
|
+
- fieldname = name.to_s.sub('@','')
|
19
|
+
.field
|
20
|
+
%h4= fieldname.capitalize + ":"
|
21
|
+
.field-content
|
22
|
+
%input{:type=>"text", :name=>fieldname, :value=>instance_variable_get(name)}
|
23
|
+
-@components.each_with_index do |component, i|
|
24
|
+
= component.edit("components:#{i}")
|
25
|
+
#toolbar{:class=>'ui-widget ui-widget-header'}
|
26
|
+
%button#save_button.toolitem{:title=>'Save changes and go to live page.'}
|
27
|
+
%span{:class=>'ui-icon ui-icon-disk'}
|
28
|
+
Save
|
29
|
+
%button#cancel_button.toolitem{:title=>'Cancel changes and go to live page.'}
|
30
|
+
%span{:class=>'ui-icon ui-icon-cancel'}
|
31
|
+
Cancel
|
32
|
+
%button#logout_button.toolitem{:title=>'Cancel changes and logout and go to live page.'}
|
33
|
+
%span{:class=>'ui-icon ui-icon-locked'}
|
34
|
+
Logout
|
35
|
+
#preview
|
36
|
+
= preview
|
37
|
+
#divider.ui-widget-header
|
38
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
body, html
|
2
|
+
:border 0
|
3
|
+
:margin 0
|
4
|
+
:padding 0
|
5
|
+
body.busy
|
6
|
+
:cursor busy
|
7
|
+
div.component
|
8
|
+
&:hover
|
9
|
+
:border 10px solid #08f
|
10
|
+
#admin-title
|
11
|
+
:position absolute
|
12
|
+
:margin 0
|
13
|
+
:top 5px
|
14
|
+
:left 10px
|
15
|
+
:line-height 1em
|
16
|
+
:font-size 20px
|
17
|
+
:font-family monaco,monospace
|
18
|
+
|
19
|
+
#toolbar
|
20
|
+
:position absolute
|
21
|
+
:left 0
|
22
|
+
:bottom 0
|
23
|
+
:right 0
|
24
|
+
:padding 3px
|
25
|
+
.toolitem
|
26
|
+
:font-size 12px
|
27
|
+
:cursor pointer
|
28
|
+
:line-height 1em
|
29
|
+
:padding 2px 5px 2px 2px
|
30
|
+
.ui-icon
|
31
|
+
:float left
|
32
|
+
:line-height 1em
|
33
|
+
#frame
|
34
|
+
:position absolute
|
35
|
+
:top 0px
|
36
|
+
:left 0px
|
37
|
+
:right 0px
|
38
|
+
:bottom 0px
|
39
|
+
#left
|
40
|
+
:font-size 11px
|
41
|
+
:position absolute
|
42
|
+
:top 0px
|
43
|
+
:left 0px
|
44
|
+
:width 250px
|
45
|
+
:bottom 0px
|
46
|
+
h4
|
47
|
+
:font-size 14px
|
48
|
+
h3
|
49
|
+
:font-size 13px
|
50
|
+
#divider
|
51
|
+
:position absolute
|
52
|
+
:top 0px
|
53
|
+
:left 250px
|
54
|
+
:width 5px
|
55
|
+
:bottom 0px
|
56
|
+
|
57
|
+
#fields
|
58
|
+
:position absolute
|
59
|
+
:top 0px
|
60
|
+
:bottom 35px
|
61
|
+
:overflow auto
|
62
|
+
:left 0px
|
63
|
+
:right 0
|
64
|
+
.ui-accordion-content
|
65
|
+
:padding 10px
|
66
|
+
h4
|
67
|
+
:margin 0
|
68
|
+
.field-content
|
69
|
+
:margin-bottom 10px
|
70
|
+
input
|
71
|
+
:width 95%
|
72
|
+
:padding 2px
|
73
|
+
textarea
|
74
|
+
:width 100%
|
75
|
+
:min-height 330px
|
76
|
+
.sprite-select
|
77
|
+
.sprite-option
|
78
|
+
:padding 4px
|
79
|
+
:margin 2px
|
80
|
+
:float left
|
81
|
+
:cursor pointer
|
82
|
+
|
83
|
+
#preview
|
84
|
+
:position absolute
|
85
|
+
:top 0px
|
86
|
+
:left 255px
|
87
|
+
:right 0
|
88
|
+
:width auto
|
89
|
+
:bottom 0px
|
90
|
+
:overflow auto
|
91
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
%input{:type=>"checkbox",:name=>form_field,:checked=>value}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
!!! xml
|
2
|
+
!!! 1.1
|
3
|
+
%html{:xmlns =>"http://www.w3.org/1999/xhtml"}
|
4
|
+
%head
|
5
|
+
%title Please Login
|
6
|
+
= render_dependencies
|
7
|
+
%body
|
8
|
+
.ui-widget-overlay
|
9
|
+
%form{:action => "/login", :method=>"post"}
|
10
|
+
%input{:type=>"hidden", :name => "dest", :value => @req.path_info}
|
11
|
+
#shadow
|
12
|
+
.ui-widget-shadow
|
13
|
+
%table#login{:class => "ui-widget ui-widget-content ui-corner-all"}
|
14
|
+
%thead
|
15
|
+
%tr
|
16
|
+
%th{:colspan=>2, :class=>"ui-widget-header ui-corner-top"}
|
17
|
+
&= "Please Login to edit '#{@page.pagename}'"
|
18
|
+
- if f = flash
|
19
|
+
%tr.ui-state-error{:class=>"ui-corner-all"}
|
20
|
+
%td{:colspan=>2}
|
21
|
+
%span{:class => "ui-icon ui-icon-alert",:style=>"float:left"}
|
22
|
+
%strong Alert:
|
23
|
+
&= f
|
24
|
+
%tr
|
25
|
+
%th Email
|
26
|
+
%td
|
27
|
+
%input{:name => "email"}
|
28
|
+
%tr
|
29
|
+
%th Password
|
30
|
+
%td
|
31
|
+
%input{:type=>"password", :name => "password"}
|
32
|
+
%tr
|
33
|
+
%th
|
34
|
+
%td
|
35
|
+
%button{:type =>"submit", :title=>'Login to the backend to edit this page.'}
|
36
|
+
%span{:class=>'ui-icon ui-icon-unlocked'}
|
37
|
+
Login
|
@@ -0,0 +1,35 @@
|
|
1
|
+
!width = 400
|
2
|
+
!height = 160
|
3
|
+
table, #shadow, .ui-widget-shadow
|
4
|
+
:width = !width + "px"
|
5
|
+
:height = !height + "px"
|
6
|
+
table#login, #shadow
|
7
|
+
:font-size 15px
|
8
|
+
:position absolute
|
9
|
+
:top 50%
|
10
|
+
:left 50%
|
11
|
+
:margin
|
12
|
+
:top = (-!height/2)+"px"
|
13
|
+
:left = (-!width/2)+"px"
|
14
|
+
table#login td, table#login th
|
15
|
+
:vertical-align middle
|
16
|
+
#login
|
17
|
+
tr.ui-state-error
|
18
|
+
td
|
19
|
+
:padding 5px 10px
|
20
|
+
:font-size 12px
|
21
|
+
span
|
22
|
+
:float left
|
23
|
+
:margin-right 0.3em
|
24
|
+
.ui-widget-header
|
25
|
+
:line-height 2em
|
26
|
+
:height 2em
|
27
|
+
button
|
28
|
+
:font-size 12px
|
29
|
+
:cursor pointer
|
30
|
+
:line-height 1em
|
31
|
+
:padding 2px 5px 2px 2px
|
32
|
+
.ui-icon
|
33
|
+
:float left
|
34
|
+
:line-height 1em
|
35
|
+
|
File without changes
|
File without changes
|
@@ -3,13 +3,12 @@
|
|
3
3
|
%html{:xmlns=>"http://www.w3.org/1999/xhtml", :lang=>"en"}
|
4
4
|
%head
|
5
5
|
%meta{:"http-equiv"=>"content-type", :content=>"application/xhtml+xml; charset=UTF-8"}
|
6
|
-
%link{:rel=>"shortcut icon", :type=>"image/x-icon", :href=>"/favicon.ico"}/
|
7
6
|
- if @keywords && @keywords.length > 0
|
8
7
|
%meta{:name=>"keywords", :content=>@keywords}
|
9
8
|
- if @description && @description.length > 0
|
10
9
|
%meta{:name=>"description", :content=>@description}
|
11
|
-
|
12
|
-
%title&= (@title || @pagename) + " - "
|
10
|
+
= render_dependencies
|
11
|
+
%title&= (@title || @pagename) + " - Sample Site"
|
13
12
|
%body
|
14
13
|
= yield
|
15
14
|
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: creationix-milk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Caswell
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-28 00:00:00 -07:00
|
13
13
|
default_executable: milk
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -63,62 +63,43 @@ files:
|
|
63
63
|
- lib/milk/application.rb
|
64
64
|
- lib/milk/component.rb
|
65
65
|
- lib/milk/field.rb
|
66
|
-
- lib/milk/fields/component.haml
|
67
|
-
- lib/milk/fields/component_array.haml
|
68
|
-
- lib/milk/fields/component_array.rb
|
69
|
-
- lib/milk/fields/image_chooser.haml
|
70
|
-
- lib/milk/fields/image_chooser.rb
|
71
|
-
- lib/milk/fields/login.haml
|
72
|
-
- lib/milk/fields/markdown_field.haml
|
73
|
-
- lib/milk/fields/markdown_field.rb
|
74
|
-
- lib/milk/fields/page_chooser.haml
|
75
|
-
- lib/milk/fields/page_chooser.rb
|
76
|
-
- lib/milk/fields/sprite_chooser.haml
|
77
|
-
- lib/milk/fields/sprite_chooser.rb
|
78
|
-
- lib/milk/fields/text_field.haml
|
79
|
-
- lib/milk/fields/text_field.rb
|
80
|
-
- lib/milk/fields/xhtml.haml
|
81
|
-
- lib/milk/haxe.rb
|
82
66
|
- lib/milk/page.rb
|
83
67
|
- lib/milk/tasks.rb
|
84
68
|
- milk.gemspec
|
85
69
|
- site_template/Rakefile
|
70
|
+
- site_template/bootstrap.rb
|
86
71
|
- site_template/config.ru
|
87
|
-
- site_template/
|
88
|
-
- site_template/
|
89
|
-
- site_template/
|
90
|
-
- site_template/
|
91
|
-
- site_template/
|
92
|
-
- site_template/
|
93
|
-
- site_template/
|
94
|
-
- site_template/
|
95
|
-
- site_template/
|
96
|
-
- site_template/
|
97
|
-
- site_template/
|
98
|
-
- site_template/
|
99
|
-
- site_template/
|
100
|
-
- site_template/
|
101
|
-
- site_template/
|
102
|
-
- site_template/
|
103
|
-
- site_template/
|
104
|
-
- site_template/
|
105
|
-
- site_template/
|
106
|
-
- site_template/design/sprites.sass
|
107
|
-
- site_template/design/xhtml.haml
|
108
|
-
- site_template/pages/About.yaml
|
109
|
-
- site_template/pages/Home.yaml
|
110
|
-
- site_template/pages/News.yaml
|
111
|
-
- site_template/pages/NotFound.yaml
|
112
|
-
- site_template/pages/Products.yaml
|
72
|
+
- site_template/data/global/foot.yaml
|
73
|
+
- site_template/data/global/head.yaml
|
74
|
+
- site_template/data/pages/About.yaml
|
75
|
+
- site_template/data/pages/Home.yaml
|
76
|
+
- site_template/data/pages/News.yaml
|
77
|
+
- site_template/data/pages/NotFound.yaml
|
78
|
+
- site_template/data/pages/Products.yaml
|
79
|
+
- site_template/lib/components/body.rb
|
80
|
+
- site_template/lib/components/button.rb
|
81
|
+
- site_template/lib/components/foot.rb
|
82
|
+
- site_template/lib/components/head.rb
|
83
|
+
- site_template/lib/fields/checkbox_field.rb
|
84
|
+
- site_template/lib/fields/component_array.rb
|
85
|
+
- site_template/lib/fields/dropdown_field.rb
|
86
|
+
- site_template/lib/fields/image_chooser.rb
|
87
|
+
- site_template/lib/fields/markdown_field.rb
|
88
|
+
- site_template/lib/fields/page_chooser.rb
|
89
|
+
- site_template/lib/fields/sprite_chooser.rb
|
90
|
+
- site_template/lib/fields/text_field.rb
|
113
91
|
- site_template/public/cache/About/index.html
|
114
92
|
- site_template/public/cache/Home/index.html
|
115
93
|
- site_template/public/cache/News/index.html
|
116
94
|
- site_template/public/cache/Products/index.html
|
117
95
|
- site_template/public/favicon.ico
|
118
96
|
- site_template/public/images/README.txt
|
97
|
+
- site_template/public/js/edit.js
|
98
|
+
- site_template/public/js/form_validate.js
|
119
99
|
- site_template/public/js/jquery-1.3.2.min.js
|
120
100
|
- site_template/public/js/jquery-ui-1.7.2.custom.min.js
|
121
101
|
- site_template/public/js/jquery.json-1.3.min.js
|
102
|
+
- site_template/public/js/login.js
|
122
103
|
- site_template/public/robots.txt
|
123
104
|
- site_template/public/skin/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
124
105
|
- site_template/public/skin/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
@@ -135,7 +116,37 @@ files:
|
|
135
116
|
- site_template/public/skin/images/ui-icons_ffd27a_256x240.png
|
136
117
|
- site_template/public/skin/images/ui-icons_ffffff_256x240.png
|
137
118
|
- site_template/public/skin/jquery-ui-1.7.2.custom.css
|
119
|
+
- site_template/public/style/960.css
|
120
|
+
- site_template/public/style/edit.css
|
121
|
+
- site_template/public/style/login.css
|
122
|
+
- site_template/public/style/reset.css
|
138
123
|
- site_template/public/style/style.css
|
124
|
+
- site_template/public/style/text.css
|
125
|
+
- site_template/public/style/view.css
|
126
|
+
- site_template/templates/960.sass
|
127
|
+
- site_template/templates/components/body.haml
|
128
|
+
- site_template/templates/components/button.haml
|
129
|
+
- site_template/templates/components/foot.haml
|
130
|
+
- site_template/templates/components/head.haml
|
131
|
+
- site_template/templates/dependencies.haml
|
132
|
+
- site_template/templates/edit.component.haml
|
133
|
+
- site_template/templates/edit.haml
|
134
|
+
- site_template/templates/edit.sass
|
135
|
+
- site_template/templates/fields/checkbox_field.haml
|
136
|
+
- site_template/templates/fields/component_array.haml
|
137
|
+
- site_template/templates/fields/dropdown_field.haml
|
138
|
+
- site_template/templates/fields/image_chooser.haml
|
139
|
+
- site_template/templates/fields/markdown_field.haml
|
140
|
+
- site_template/templates/fields/page_chooser.haml
|
141
|
+
- site_template/templates/fields/sprite_chooser.haml
|
142
|
+
- site_template/templates/fields/text_field.haml
|
143
|
+
- site_template/templates/login.haml
|
144
|
+
- site_template/templates/login.sass
|
145
|
+
- site_template/templates/reset.sass
|
146
|
+
- site_template/templates/text.sass
|
147
|
+
- site_template/templates/view.haml
|
148
|
+
- site_template/templates/view.page.haml
|
149
|
+
- site_template/templates/view.sass
|
139
150
|
- site_template/tmp/restart.txt
|
140
151
|
- test/milk_test.rb
|
141
152
|
- test/test_helper.rb
|
@@ -150,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
161
|
requirements:
|
151
162
|
- - ">="
|
152
163
|
- !ruby/object:Gem::Version
|
153
|
-
version: "1.
|
164
|
+
version: "1.8"
|
154
165
|
version:
|
155
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
167
|
requirements:
|