• R/O
  • SSH
  • HTTPS

tenarai: 提交


Commit MetaInfo

修訂128 (tree)
時間2008-10-28 22:22:45
作者junkikuchi

Log Message

updated.

Change Summary

差異

--- trunk/init_model.rb (revision 127)
+++ trunk/init_model.rb (revision 128)
@@ -2,33 +2,33 @@
22 CONFIG[:init_model] = {
33 'service' => [
44 {
5- :name => 'admin',
5+ :name => 'yui-layout',
66 :class => 'Service',
7- :row => {'name' => 'admin'},
8- :relation => {'default_view' => 'view:admin.view'},
7+ :row => {'name' => 'yui-layout'},
8+ :relation => {'default_view' => 'view:html.yui-layout'},
99 },
1010 ],
1111
1212 'view' => [
1313 {
14- :name => 'admin',
14+ :name => 'html',
1515 :class => 'View',
16- :row => {'name' => 'admin'},
17- :relation => {'resource' => 'widget:admin'},
16+ :row => {'name' => 'html'},
17+ :relation => {'resource' => 'widget:html'},
1818 },
1919 {
20- :name => 'admin.view',
20+ :name => 'html.yui-layout',
2121 :class => 'View',
22- :row => {'name' => 'view'},
23- :relation => {'resource' => 'widget:admin.view.widget'},
22+ :row => {'name' => 'yui-layout'},
23+ :relation => {'resource' => 'widget:html.view.widget'},
2424 },
2525 ],
2626
2727 'widget' => [
2828 {
29- :name => 'admin',
29+ :name => 'html',
3030 :class => 'Widget::HTML',
31- :relation => {'view' => 'view:admin'},
31+ :relation => {'view' => 'view:html'},
3232 :css => [
3333 ['*_font_text-align', 'left'],
3434 ['ul li_margin_margin-left', '10px']
@@ -35,19 +35,19 @@
3535 ],
3636 },
3737 {
38- :name => 'admin.yui',
38+ :name => 'html.yui',
3939 :class => 'Widget::Yahoo::UI::Loader',
40- :relation => {'view' => 'view:admin.view'},
40+ :relation => {'view' => 'view:html.yui-layout'},
4141 },
4242 {
43- :name => 'admin.yui.reset_css',
43+ :name => 'html.yui.reset_css',
4444 :class => 'Widget::Yahoo::UI::ResetCSS',
45- :relation => {'view' => 'view:admin.view'},
45+ :relation => {'view' => 'view:html.yui-layout'},
4646 },
4747 {
48- :name => 'admin.yui.layout',
48+ :name => 'html.yui.layout',
4949 :class => 'Widget::Yahoo::UI::Layout',
50- :relation => {'view' => 'view:admin.view'},
50+ :relation => {'view' => 'view:html.yui-layout'},
5151 :css => [
5252 ['.yui-layout-unit-top_background_background-color', '#c3d9ff'],
5353 ['.yui-layout-unit-right_background_background-color', '#e1ecfe'],
@@ -70,7 +70,7 @@
7070 :top_body => "'hd'",
7171 :top_height => '50',
7272
73- :right_body => "'property'",
73+ :right_body => "'right'",
7474 :right_width => '200',
7575 :right_resize => 'true',
7676 :right_scroll => 'true',
@@ -79,127 +79,93 @@
7979 :bottom_body => "'ft'",
8080 :bottom_height => '25',
8181
82- :left_body => "'selecter'",
82+ :left_body => "'left'",
8383 :left_width => '200',
8484 :left_resize => 'true',
8585 :left_scroll => 'true',
8686
87- :center_body => "'preview'"
87+ :center_body => "'center'"
8888 }
8989 },
9090 {
91- :name => 'admin.view',
92- :class => 'Widget::View',
93- :relation => {'view' => 'view:admin.view'},
94- },
95- {
96- :name => 'admin.view.widget',
97- :class => 'Widget::Widget',
98- :relation => {'view' => 'view:admin.view'},
99- },
100- {
101- :name => 'admin.view.widget.doc',
91+ :name => 'html.doc',
10292 :class => 'Widget::Panel',
103- :relation => {'view' => 'view:admin.view'},
93+ :relation => {'view' => 'view:html.yui-layout'},
10494 :property => {
10595 :html_attr_id => 'doc3'
10696 }
10797 },
10898 {
109- :name => 'admin.view.widget.doc.hd',
99+ :name => 'html.doc.hd',
110100 :class => 'Widget::Panel',
111- :relation => {'view' => 'view:admin.view'},
101+ :relation => {'view' => 'view:html.yui-layout'},
112102 :property => {
113103 :html_attr_id => 'hd'
114104 }
115105 },
116106 {
117- :name => 'admin.view.widget.doc.bd',
107+ :name => 'html.doc.bd',
118108 :class => 'Widget::Panel',
119- :relation => {'view' => 'view:admin.view'},
109+ :relation => {'view' => 'view:html.yui-layout'},
120110 :property => {
121111 :html_attr_id => 'bd'
122112 }
123113 },
124114 {
125- :name => 'admin.view.widget.doc.bd.yui-main',
115+ :name => 'html.doc.bd.yui-main',
126116 :class => 'Widget::Panel',
127- :relation => {'view' => 'view:admin.view'},
117+ :relation => {'view' => 'view:html.yui-layout'},
128118 :property => {
129119 :html_attr_id => 'yui-main'
130120 }
131121 },
132122 {
133- :name => 'admin.view.widget.doc.bd.yui-main.yui-b',
123+ :name => 'html.doc.bd.yui-main.yui-b',
134124 :class => 'Widget::Panel',
135- :relation => {'view' => 'view:admin.view'},
125+ :relation => {'view' => 'view:html.yui-layout'},
136126 :property => {
137127 :html_attr_class => 'yui-b'
138128 }
139129 },
140130 {
141- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb',
131+ :name => 'html.doc.bd.yui-main.yui-b.yui-gb',
142132 :class => 'Widget::Panel',
143- :relation => {'view' => 'view:admin.view'},
133+ :relation => {'view' => 'view:html.yui-layout'},
144134 :property => {
145135 :html_attr_class => 'yui-gb'
146136 }
147137 },
148138 {
149- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.selecter',
139+ :name => 'html.doc.bd.yui-main.yui-b.yui-gb.left',
150140 :class => 'Widget::Panel',
151- :relation => {'view' => 'view:admin.view'},
141+ :relation => {'view' => 'view:html.yui-layout'},
152142 :property => {
153- :html_attr_id => 'selecter',
143+ :html_attr_id => 'left',
154144 :html_attr_class => 'yui-u first'
155145 }
156146 },
157147 {
158- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.selecter.tree-vew',
159- :class => 'Widget::View::Tree',
160- :relation => {'view' => 'view:admin.view'},
161- :property => {:html_attr_id => 'tree-view'}
162- },
163- {
164- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.selecter.tree-widget',
165- :class => 'Widget::Widget::Tree',
166- :relation => {'view' => 'view:admin.view'},
167- :property => {:html_attr_id => 'tree-widget'}
168- },
169- {
170- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.preview',
148+ :name => 'html.doc.bd.yui-main.yui-b.yui-gb.center',
171149 :class => 'Widget::Panel',
172- :relation => {'view' => 'view:admin.view'},
150+ :relation => {'view' => 'view:html.yui-layout'},
173151 :property => {
174- :html_attr_id => 'preview',
152+ :html_attr_id => 'center',
175153 :html_attr_class => 'yui-u'
176154 }
177155 },
178156 {
179- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.property',
157+ :name => 'html.doc.bd.yui-main.yui-b.yui-gb.right',
180158 :class => 'Widget::Panel',
181- :relation => {'view' => 'view:admin.view'},
159+ :relation => {'view' => 'view:html.yui-layout'},
182160 :property => {
183- :html_attr_id => 'property',
161+ :html_attr_id => 'right',
184162 :html_attr_class => 'yui-u'
185163 }
186164 },
187165 {
188- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.property.widget-property',
189- :class => 'Widget::Widget::Property',
190- :relation => {'view' => 'view:admin.view'},
191- },
192-=begin
193- {
194- :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.property.widget-css',
195- :class => 'Widget::Widget::CSS',
196- :relation => {'view' => 'view:admin.view'},
197- },
198-=end
199- {
200- :name => 'admin.view.widget.doc.ft',
166+ :name => 'html.doc.ft',
201167 :class => 'Widget::Panel',
202- :relation => {'view' => 'view:admin.view'},
168+ :relation => {'view' => 'view:html.yui-layout'},
203169 :property => {
204170 :html_attr_id => 'ft'
205171 }
--- trunk/webapp/Widget/Yahoo/UI/Layout.rb (revision 127)
+++ trunk/webapp/Widget/Yahoo/UI/Layout.rb (revision 128)
@@ -84,19 +84,6 @@
8484 end
8585
8686 def render_html(head, body)
87- head.tag(
88- 'link',
89- 'rel' => 'stylesheet',
90- 'type' => 'text/css',
91- 'href' => 'http://yui.yahooapis.com/2.6.0/build/assets/skins/sam/resize.css'
92- )
93- head.tag(
94- 'link',
95- 'rel' => 'stylesheet',
96- 'type' => 'text/css',
97- 'href' => 'http://yui.yahooapis.com/2.6.0/build/assets/skins/sam/layout.css'
98- )
99-
10087 units = [
10188 'top',
10289 'right',
Show on old repository browser