bone_tree 0.5.6 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +26 -3
- data/Gemfile +5 -12
- data/Rakefile +7 -9
- data/bone_tree.gemspec +30 -14
- data/config.rb +8 -0
- data/lib/assets/javascripts/bone_tree.js +277 -981
- data/lib/assets/stylesheets/bone_tree.css +108 -0
- data/lib/bone_tree/rails.rb +5 -0
- data/lib/bone_tree/sprockets.rb +3 -0
- data/lib/{version.rb → bone_tree/version.rb} +1 -1
- data/lib/bone_tree.rb +11 -6
- data/source/index.html.haml +10 -382
- data/source/javascripts/{_backbone.js → backbone.js} +282 -142
- data/source/javascripts/bone_tree/models/directory.js.coffee +109 -0
- data/source/javascripts/bone_tree/models/file.js.coffee +12 -0
- data/source/javascripts/bone_tree/models/node.js.coffee +24 -0
- data/source/javascripts/bone_tree/models/settings.js.coffee +5 -0
- data/source/javascripts/bone_tree/{_namespace.js.coffee → namespace.js.coffee} +1 -1
- data/source/javascripts/bone_tree/views/directory.js.coffee +56 -0
- data/source/javascripts/bone_tree/views/file.js.coffee +25 -0
- data/source/javascripts/bone_tree/views/tree.js.coffee +87 -0
- data/source/javascripts/bone_tree.js.coffee +2 -1
- data/source/stylesheets/bone_tree.css.sass +0 -38
- data/spec/javascripts/directory_spec.coffee +26 -0
- data/spec/javascripts/helpers/spec_helper.coffee +3 -4
- data/spec/javascripts/sorting_spec.coffee +12 -0
- data/spec/javascripts/support/jasmine.yml +6 -4
- metadata +143 -36
- data/Gemfile.lock +0 -190
- data/docs/index.html +0 -222
- data/docs/resources/base.css +0 -70
- data/docs/resources/index.css +0 -20
- data/docs/resources/module.css +0 -24
- data/docs/source/javascripts/bone_tree/_namespace.js.html +0 -45
- data/docs/source/javascripts/bone_tree/models/_directory.js.html +0 -126
- data/docs/source/javascripts/bone_tree/models/_file.js.html +0 -112
- data/docs/source/javascripts/bone_tree/models/_nodes.js.html +0 -174
- data/docs/source/javascripts/bone_tree/models/_settings.js.html +0 -75
- data/docs/source/javascripts/bone_tree/views/_directory.js.html +0 -94
- data/docs/source/javascripts/bone_tree/views/_file.js.html +0 -82
- data/docs/source/javascripts/bone_tree/views/_menu.js.html +0 -110
- data/docs/source/javascripts/bone_tree/views/_tree.js.html +0 -432
- data/source/javascripts/_jquery.min.js +0 -5
- data/source/javascripts/_underscore.js +0 -999
- data/source/javascripts/bone_tree/models/_directory.js.coffee +0 -63
- data/source/javascripts/bone_tree/models/_file.js.coffee +0 -55
- data/source/javascripts/bone_tree/models/_nodes.js.coffee +0 -117
- data/source/javascripts/bone_tree/models/_settings.js.coffee +0 -25
- data/source/javascripts/bone_tree/views/_directory.js.coffee +0 -73
- data/source/javascripts/bone_tree/views/_file.js.coffee +0 -51
- data/source/javascripts/bone_tree/views/_menu.js.coffee +0 -97
- data/source/javascripts/bone_tree/views/_tree.js.coffee +0 -498
- data/spec/javascripts/directory_view_spec.coffee +0 -91
- data/spec/javascripts/file_view_spec.coffee +0 -70
- data/spec/javascripts/menu_view_spec.coffee +0 -42
- data/spec/javascripts/nodes_spec.coffee +0 -37
- data/spec/javascripts/tree_view_spec.coffee +0 -39
data/Gemfile.lock
DELETED
@@ -1,190 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git://github.com/johnbintz/guard-jasmine-headless-webkit.git
|
3
|
-
revision: 644f24cc4cba590c99572f6ea87335e24fb93264
|
4
|
-
specs:
|
5
|
-
guard-jasmine-headless-webkit (0.4.0.rc1)
|
6
|
-
guard (>= 0.4.0)
|
7
|
-
jasmine-headless-webkit (>= 0.7.0)
|
8
|
-
|
9
|
-
GIT
|
10
|
-
remote: git://github.com/johnbintz/jasmine-headless-webkit.git
|
11
|
-
revision: 724541a2cb3ee7d730dac4eb186b451a510bf11e
|
12
|
-
ref: 724541a2cb3ee7d730dac4eb186b451a510bf11e
|
13
|
-
specs:
|
14
|
-
jasmine-headless-webkit (0.9.0.rc1)
|
15
|
-
coffee-script
|
16
|
-
jasmine-core
|
17
|
-
multi_json
|
18
|
-
rainbow
|
19
|
-
sprockets
|
20
|
-
sprockets-vendor_gems
|
21
|
-
|
22
|
-
GIT
|
23
|
-
remote: git://github.com/middleman/middleman.git
|
24
|
-
revision: 23e05868961b242812817a794c25a2efa9d069a6
|
25
|
-
specs:
|
26
|
-
middleman (3.0.0.beta.3)
|
27
|
-
middleman-core (= 3.0.0.beta.3)
|
28
|
-
middleman-more (= 3.0.0.beta.3)
|
29
|
-
middleman-core (3.0.0.beta.3)
|
30
|
-
activesupport (~> 3.2.0)
|
31
|
-
bundler (~> 1.0)
|
32
|
-
i18n (~> 0.6.0)
|
33
|
-
listen (~> 0.4.1)
|
34
|
-
padrino-helpers (~> 0.10.6)
|
35
|
-
rack (~> 1.4.0)
|
36
|
-
rack-test (~> 0.6.1)
|
37
|
-
thin (~> 1.3.1)
|
38
|
-
thor (~> 0.14.0)
|
39
|
-
tilt (~> 1.3.1)
|
40
|
-
middleman-more (3.0.0.beta.3)
|
41
|
-
coffee-script (~> 2.2.0)
|
42
|
-
compass (~> 0.12.1)
|
43
|
-
execjs (~> 1.2)
|
44
|
-
haml (~> 3.1.0)
|
45
|
-
middleman-core (= 3.0.0.beta.3)
|
46
|
-
redcarpet (~> 2.1.0)
|
47
|
-
sass (>= 3.1.7)
|
48
|
-
sprockets (~> 2.1)
|
49
|
-
sprockets-sass (~> 0.8.0)
|
50
|
-
uglifier (~> 1.2.0)
|
51
|
-
|
52
|
-
GEM
|
53
|
-
remote: http://rubygems.org/
|
54
|
-
specs:
|
55
|
-
activesupport (3.2.3)
|
56
|
-
i18n (~> 0.6)
|
57
|
-
multi_json (~> 1.0)
|
58
|
-
addressable (2.2.7)
|
59
|
-
childprocess (0.3.2)
|
60
|
-
ffi (~> 1.0.6)
|
61
|
-
chunky_png (1.2.5)
|
62
|
-
coderay (1.0.6)
|
63
|
-
coffee-filter (0.1.1)
|
64
|
-
coffee-script (>= 2.2.0)
|
65
|
-
haml (>= 3.0.18)
|
66
|
-
coffee-script (2.2.0)
|
67
|
-
coffee-script-source
|
68
|
-
execjs
|
69
|
-
coffee-script-source (1.3.1)
|
70
|
-
compass (0.12.1)
|
71
|
-
chunky_png (~> 1.2)
|
72
|
-
fssm (>= 0.2.7)
|
73
|
-
sass (~> 3.1)
|
74
|
-
daemons (1.1.8)
|
75
|
-
diff-lcs (1.1.3)
|
76
|
-
eventmachine (0.12.10)
|
77
|
-
execjs (1.3.1)
|
78
|
-
multi_json (~> 1.0)
|
79
|
-
ffi (1.0.11)
|
80
|
-
fssm (0.2.9)
|
81
|
-
growl (1.0.3)
|
82
|
-
guard (1.0.1)
|
83
|
-
ffi (>= 0.5.0)
|
84
|
-
thor (~> 0.14.6)
|
85
|
-
haml (3.1.4)
|
86
|
-
haml-coderay (0.1.2)
|
87
|
-
coderay
|
88
|
-
haml
|
89
|
-
hike (1.2.1)
|
90
|
-
http_router (0.10.2)
|
91
|
-
rack (>= 1.0.0)
|
92
|
-
url_mount (~> 0.2.1)
|
93
|
-
i18n (0.6.0)
|
94
|
-
jasmine (1.1.2)
|
95
|
-
jasmine-core (>= 1.1.0)
|
96
|
-
rack (>= 1.1)
|
97
|
-
rspec (>= 1.3.1)
|
98
|
-
selenium-webdriver (>= 0.1.3)
|
99
|
-
jasmine-core (1.1.0)
|
100
|
-
jasmine-spec-extras (0.0.2)
|
101
|
-
libwebsocket (0.1.3)
|
102
|
-
addressable
|
103
|
-
listen (0.4.1)
|
104
|
-
rb-fchange (~> 0.0.5)
|
105
|
-
rb-fsevent (~> 0.9.1)
|
106
|
-
rb-inotify (~> 0.8.8)
|
107
|
-
multi_json (1.3.4)
|
108
|
-
nokogiri (1.5.2)
|
109
|
-
padrino-core (0.10.6)
|
110
|
-
activesupport (~> 3.2.0)
|
111
|
-
http_router (~> 0.10.2)
|
112
|
-
sinatra (~> 1.3.1)
|
113
|
-
thor (~> 0.14.3)
|
114
|
-
tilt (~> 1.3.0)
|
115
|
-
padrino-helpers (0.10.6)
|
116
|
-
i18n (~> 0.6)
|
117
|
-
padrino-core (= 0.10.6)
|
118
|
-
rack (1.4.1)
|
119
|
-
rack-codehighlighter (0.5.0)
|
120
|
-
nokogiri (>= 1.4.1)
|
121
|
-
rack (>= 1.0.0)
|
122
|
-
rack-protection (1.2.0)
|
123
|
-
rack
|
124
|
-
rack-test (0.6.1)
|
125
|
-
rack (>= 1.0)
|
126
|
-
rainbow (1.1.4)
|
127
|
-
rake (0.9.2.2)
|
128
|
-
rb-fchange (0.0.5)
|
129
|
-
ffi
|
130
|
-
rb-fsevent (0.9.1)
|
131
|
-
rb-inotify (0.8.8)
|
132
|
-
ffi (>= 0.5.0)
|
133
|
-
redcarpet (2.1.1)
|
134
|
-
rspec (2.9.0)
|
135
|
-
rspec-core (~> 2.9.0)
|
136
|
-
rspec-expectations (~> 2.9.0)
|
137
|
-
rspec-mocks (~> 2.9.0)
|
138
|
-
rspec-core (2.9.0)
|
139
|
-
rspec-expectations (2.9.1)
|
140
|
-
diff-lcs (~> 1.1.3)
|
141
|
-
rspec-mocks (2.9.0)
|
142
|
-
rubyzip (0.9.8)
|
143
|
-
sass (3.1.16)
|
144
|
-
selenium-webdriver (2.21.2)
|
145
|
-
childprocess (>= 0.2.5)
|
146
|
-
ffi (~> 1.0)
|
147
|
-
libwebsocket (~> 0.1.3)
|
148
|
-
multi_json (~> 1.0)
|
149
|
-
rubyzip
|
150
|
-
sinatra (1.3.2)
|
151
|
-
rack (~> 1.3, >= 1.3.6)
|
152
|
-
rack-protection (~> 1.2)
|
153
|
-
tilt (~> 1.3, >= 1.3.3)
|
154
|
-
sprockets (2.4.1)
|
155
|
-
hike (~> 1.2)
|
156
|
-
multi_json (~> 1.0)
|
157
|
-
rack (~> 1.0)
|
158
|
-
tilt (~> 1.1, != 1.3.0)
|
159
|
-
sprockets-sass (0.8.0)
|
160
|
-
sprockets (~> 2.0)
|
161
|
-
tilt (~> 1.1)
|
162
|
-
sprockets-vendor_gems (0.1.1)
|
163
|
-
thin (1.3.1)
|
164
|
-
daemons (>= 1.0.9)
|
165
|
-
eventmachine (>= 0.12.6)
|
166
|
-
rack (>= 1.0.0)
|
167
|
-
thor (0.14.6)
|
168
|
-
tilt (1.3.3)
|
169
|
-
uglifier (1.2.4)
|
170
|
-
execjs (>= 0.3.0)
|
171
|
-
multi_json (>= 1.0.2)
|
172
|
-
url_mount (0.2.1)
|
173
|
-
rack
|
174
|
-
|
175
|
-
PLATFORMS
|
176
|
-
ruby
|
177
|
-
|
178
|
-
DEPENDENCIES
|
179
|
-
coffee-filter
|
180
|
-
growl
|
181
|
-
guard-jasmine-headless-webkit!
|
182
|
-
haml-coderay
|
183
|
-
jasmine
|
184
|
-
jasmine-headless-webkit!
|
185
|
-
jasmine-spec-extras
|
186
|
-
middleman!
|
187
|
-
rack
|
188
|
-
rack-codehighlighter
|
189
|
-
rake
|
190
|
-
rb-fsevent
|
data/docs/index.html
DELETED
@@ -1,222 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<title>CoffeeDoc</title>
|
6
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
7
|
-
<link rel="stylesheet" media="all" href="resources/base.css" />
|
8
|
-
<link rel="stylesheet" media="all" href="resources/index.css" />
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<header>
|
12
|
-
<h1>CoffeeDoc</h1>
|
13
|
-
</header>
|
14
|
-
<div id="content">
|
15
|
-
<div id="sidebar">
|
16
|
-
<ul id="modulelist">
|
17
|
-
|
18
|
-
<li><a href="source/javascripts/bone_tree/_namespace.js.html">source/javascripts/bone_tree/_namespace.js.coffee</a></li>
|
19
|
-
|
20
|
-
<li><a href="source/javascripts/bone_tree/models/_directory.js.html">source/javascripts/bone_tree/models/_directory.js.coffee</a></li>
|
21
|
-
|
22
|
-
<li><a href="source/javascripts/bone_tree/models/_file.js.html">source/javascripts/bone_tree/models/_file.js.coffee</a></li>
|
23
|
-
|
24
|
-
<li><a href="source/javascripts/bone_tree/models/_nodes.js.html">source/javascripts/bone_tree/models/_nodes.js.coffee</a></li>
|
25
|
-
|
26
|
-
<li><a href="source/javascripts/bone_tree/models/_settings.js.html">source/javascripts/bone_tree/models/_settings.js.coffee</a></li>
|
27
|
-
|
28
|
-
<li><a href="source/javascripts/bone_tree/views/_directory.js.html">source/javascripts/bone_tree/views/_directory.js.coffee</a></li>
|
29
|
-
|
30
|
-
<li><a href="source/javascripts/bone_tree/views/_file.js.html">source/javascripts/bone_tree/views/_file.js.coffee</a></li>
|
31
|
-
|
32
|
-
<li><a href="source/javascripts/bone_tree/views/_menu.js.html">source/javascripts/bone_tree/views/_menu.js.coffee</a></li>
|
33
|
-
|
34
|
-
<li><a href="source/javascripts/bone_tree/views/_tree.js.html">source/javascripts/bone_tree/views/_tree.js.coffee</a></li>
|
35
|
-
|
36
|
-
</ul>
|
37
|
-
</div>
|
38
|
-
<div id="main">
|
39
|
-
<h1>Module index</h1>
|
40
|
-
|
41
|
-
<div class="module">
|
42
|
-
<div class="header">
|
43
|
-
<a href="source/javascripts/bone_tree/_namespace.js.html"><h3>_namespace.js.coffee</h3></a>
|
44
|
-
</div>
|
45
|
-
<div class="module_content">
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<h4>Functions</h4>
|
50
|
-
<ul class="functionlist">
|
51
|
-
|
52
|
-
<li><a href="source/javascripts/bone_tree/_namespace.js.html#BoneTree.namespace">BoneTree.namespace(target, name, block)</a></li>
|
53
|
-
|
54
|
-
</ul>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class="module">
|
60
|
-
<div class="header">
|
61
|
-
<a href="source/javascripts/bone_tree/models/_directory.js.html"><h3>_directory.js.coffee</h3></a>
|
62
|
-
</div>
|
63
|
-
<div class="module_content">
|
64
|
-
|
65
|
-
|
66
|
-
<h4>Classes</h4>
|
67
|
-
<ul class="classlist">
|
68
|
-
|
69
|
-
<li><a href="source/javascripts/bone_tree/models/_directory.js.html#Models.Directory">Models.Directory</a></li>
|
70
|
-
|
71
|
-
</ul>
|
72
|
-
|
73
|
-
|
74
|
-
<h4>Functions</h4>
|
75
|
-
<ul class="functionlist">
|
76
|
-
|
77
|
-
<li><a href="source/javascripts/bone_tree/models/_directory.js.html#Models.Directory.find">Models.Directory.find(currentDirectory, name)</a></li>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
<div class="module">
|
85
|
-
<div class="header">
|
86
|
-
<a href="source/javascripts/bone_tree/models/_file.js.html"><h3>_file.js.coffee</h3></a>
|
87
|
-
</div>
|
88
|
-
<div class="module_content">
|
89
|
-
|
90
|
-
|
91
|
-
<h4>Classes</h4>
|
92
|
-
<ul class="classlist">
|
93
|
-
|
94
|
-
<li><a href="source/javascripts/bone_tree/models/_file.js.html#Models.File">Models.File</a></li>
|
95
|
-
|
96
|
-
</ul>
|
97
|
-
|
98
|
-
|
99
|
-
<h4>Functions</h4>
|
100
|
-
<ul class="functionlist">
|
101
|
-
|
102
|
-
<li><a href="source/javascripts/bone_tree/models/_file.js.html#Models.File.createFromFileName">Models.File.createFromFileName(fileName, fileData)</a></li>
|
103
|
-
|
104
|
-
</ul>
|
105
|
-
|
106
|
-
</div>
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div class="module">
|
110
|
-
<div class="header">
|
111
|
-
<a href="source/javascripts/bone_tree/models/_nodes.js.html"><h3>_nodes.js.coffee</h3></a>
|
112
|
-
</div>
|
113
|
-
<div class="module_content">
|
114
|
-
|
115
|
-
|
116
|
-
<h4>Classes</h4>
|
117
|
-
<ul class="classlist">
|
118
|
-
|
119
|
-
<li><a href="source/javascripts/bone_tree/models/_nodes.js.html#Models.Node">Models.Node</a></li>
|
120
|
-
|
121
|
-
<li><a href="source/javascripts/bone_tree/models/_nodes.js.html#Models.Nodes">Models.Nodes</a></li>
|
122
|
-
|
123
|
-
</ul>
|
124
|
-
|
125
|
-
|
126
|
-
</div>
|
127
|
-
</div>
|
128
|
-
|
129
|
-
<div class="module">
|
130
|
-
<div class="header">
|
131
|
-
<a href="source/javascripts/bone_tree/models/_settings.js.html"><h3>_settings.js.coffee</h3></a>
|
132
|
-
</div>
|
133
|
-
<div class="module_content">
|
134
|
-
|
135
|
-
|
136
|
-
<h4>Classes</h4>
|
137
|
-
<ul class="classlist">
|
138
|
-
|
139
|
-
<li><a href="source/javascripts/bone_tree/models/_settings.js.html#Models.Settings">Models.Settings</a></li>
|
140
|
-
|
141
|
-
</ul>
|
142
|
-
|
143
|
-
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div class="module">
|
148
|
-
<div class="header">
|
149
|
-
<a href="source/javascripts/bone_tree/views/_directory.js.html"><h3>_directory.js.coffee</h3></a>
|
150
|
-
</div>
|
151
|
-
<div class="module_content">
|
152
|
-
|
153
|
-
|
154
|
-
<h4>Classes</h4>
|
155
|
-
<ul class="classlist">
|
156
|
-
|
157
|
-
<li><a href="source/javascripts/bone_tree/views/_directory.js.html#Views.Directory">Views.Directory</a></li>
|
158
|
-
|
159
|
-
</ul>
|
160
|
-
|
161
|
-
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="module">
|
166
|
-
<div class="header">
|
167
|
-
<a href="source/javascripts/bone_tree/views/_file.js.html"><h3>_file.js.coffee</h3></a>
|
168
|
-
</div>
|
169
|
-
<div class="module_content">
|
170
|
-
|
171
|
-
|
172
|
-
<h4>Classes</h4>
|
173
|
-
<ul class="classlist">
|
174
|
-
|
175
|
-
<li><a href="source/javascripts/bone_tree/views/_file.js.html#Views.File">Views.File</a></li>
|
176
|
-
|
177
|
-
</ul>
|
178
|
-
|
179
|
-
|
180
|
-
</div>
|
181
|
-
</div>
|
182
|
-
|
183
|
-
<div class="module">
|
184
|
-
<div class="header">
|
185
|
-
<a href="source/javascripts/bone_tree/views/_menu.js.html"><h3>_menu.js.coffee</h3></a>
|
186
|
-
</div>
|
187
|
-
<div class="module_content">
|
188
|
-
|
189
|
-
|
190
|
-
<h4>Classes</h4>
|
191
|
-
<ul class="classlist">
|
192
|
-
|
193
|
-
<li><a href="source/javascripts/bone_tree/views/_menu.js.html#Views.Menu">Views.Menu</a></li>
|
194
|
-
|
195
|
-
</ul>
|
196
|
-
|
197
|
-
|
198
|
-
</div>
|
199
|
-
</div>
|
200
|
-
|
201
|
-
<div class="module">
|
202
|
-
<div class="header">
|
203
|
-
<a href="source/javascripts/bone_tree/views/_tree.js.html"><h3>_tree.js.coffee</h3></a>
|
204
|
-
</div>
|
205
|
-
<div class="module_content">
|
206
|
-
|
207
|
-
|
208
|
-
<h4>Classes</h4>
|
209
|
-
<ul class="classlist">
|
210
|
-
|
211
|
-
<li><a href="source/javascripts/bone_tree/views/_tree.js.html#Views.Tree">Views.Tree</a></li>
|
212
|
-
|
213
|
-
</ul>
|
214
|
-
|
215
|
-
|
216
|
-
</div>
|
217
|
-
</div>
|
218
|
-
|
219
|
-
</div>
|
220
|
-
</div>
|
221
|
-
</body>
|
222
|
-
</html>
|
data/docs/resources/base.css
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
|
3
|
-
font-size: 15px;
|
4
|
-
line-height: 22px;
|
5
|
-
color: #444;
|
6
|
-
margin: 0;
|
7
|
-
padding: 0;
|
8
|
-
}
|
9
|
-
code {
|
10
|
-
padding: 2px 4px;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
background: #eee;
|
13
|
-
font-size: 12px; line-height: 18px;
|
14
|
-
font-family: Monaco, Consolas, "Lucida Console", monospace;
|
15
|
-
border-radius: 2px;
|
16
|
-
}
|
17
|
-
|
18
|
-
pre {
|
19
|
-
padding: 10px;
|
20
|
-
border: 1px solid #ccc;
|
21
|
-
background: #eee;
|
22
|
-
border-radius: 4px;
|
23
|
-
}
|
24
|
-
|
25
|
-
pre code {
|
26
|
-
border: 0;
|
27
|
-
background: none;
|
28
|
-
border-radius: 0;
|
29
|
-
padding: 0;
|
30
|
-
}
|
31
|
-
|
32
|
-
a, a:visited {
|
33
|
-
color: #444;
|
34
|
-
text-decoration: none;
|
35
|
-
}
|
36
|
-
a:hover {
|
37
|
-
color: #666;
|
38
|
-
}
|
39
|
-
header {
|
40
|
-
width: 100%;
|
41
|
-
background-color: #eef;
|
42
|
-
border-bottom: 1px solid #ccd;
|
43
|
-
}
|
44
|
-
header h1 {
|
45
|
-
margin: 0;
|
46
|
-
padding: 20px;
|
47
|
-
color: #667;
|
48
|
-
}
|
49
|
-
#content {
|
50
|
-
display: table;
|
51
|
-
}
|
52
|
-
#sidebar {
|
53
|
-
display: table-cell;
|
54
|
-
background-color: #f4f4ff;
|
55
|
-
padding: 10px;
|
56
|
-
border-right: 1px dotted #ccd;
|
57
|
-
min-width: 150px;
|
58
|
-
}
|
59
|
-
#main {
|
60
|
-
width: 650px;
|
61
|
-
display: table-cell;
|
62
|
-
padding: 20px;
|
63
|
-
}
|
64
|
-
#content > div {
|
65
|
-
border-bottom: 1px dotted #ccd;
|
66
|
-
}
|
67
|
-
.classlist, .functionlist {
|
68
|
-
list-style-type: none;
|
69
|
-
padding-left: 5px;
|
70
|
-
}
|
data/docs/resources/index.css
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
#modulelist {
|
2
|
-
list-style-type: none;
|
3
|
-
padding-left: 5px;
|
4
|
-
}
|
5
|
-
div.module {
|
6
|
-
background-color: #eef;
|
7
|
-
margin-bottom: 15px;
|
8
|
-
border-radius: 8px;
|
9
|
-
border: 1px solid #ccd;
|
10
|
-
}
|
11
|
-
div.module > div {
|
12
|
-
padding: 10px;
|
13
|
-
margin: 0;
|
14
|
-
}
|
15
|
-
div.module .header {
|
16
|
-
background-color: #ddf;
|
17
|
-
}
|
18
|
-
div.header h3 {
|
19
|
-
display: inline;
|
20
|
-
}
|
data/docs/resources/module.css
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
div.class, div.function {
|
2
|
-
background-color: #eef;
|
3
|
-
margin-bottom: 15px;
|
4
|
-
border-radius: 8px;
|
5
|
-
border: 1px solid #ccd;
|
6
|
-
}
|
7
|
-
div.class > div, div.function > div {
|
8
|
-
padding: 10px;
|
9
|
-
margin: 0;
|
10
|
-
}
|
11
|
-
div.class .header, div.function .header {
|
12
|
-
background-color: #ddf;
|
13
|
-
border-radius: 7px;
|
14
|
-
}
|
15
|
-
div.header h3 {
|
16
|
-
display: inline;
|
17
|
-
}
|
18
|
-
a.parent {
|
19
|
-
color: #779;
|
20
|
-
}
|
21
|
-
div.method {
|
22
|
-
padding: 0 10px;
|
23
|
-
border-top: 1px solid #ccd;
|
24
|
-
}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<title>_namespace.js.coffee</title>
|
6
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
7
|
-
<link rel="stylesheet" media="all" href="../../../resources/base.css" />
|
8
|
-
<link rel="stylesheet" media="all" href="../../../resources/module.css" />
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<header>
|
12
|
-
<h1>_namespace.js.coffee</h1>
|
13
|
-
</header>
|
14
|
-
<div id="content">
|
15
|
-
<div id="sidebar">
|
16
|
-
|
17
|
-
|
18
|
-
<h4>Functions</h4>
|
19
|
-
<ul class="functionlist">
|
20
|
-
|
21
|
-
<li><a href="#BoneTree.namespace">BoneTree.namespace</a></li>
|
22
|
-
|
23
|
-
</ul>
|
24
|
-
|
25
|
-
</div>
|
26
|
-
<div id="main">
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
<div id="functions">
|
31
|
-
<h2>Functions</h2>
|
32
|
-
|
33
|
-
<div class="function">
|
34
|
-
<div class="header">
|
35
|
-
<a id="BoneTree.namespace"><h3>BoneTree.namespace(target, name, block)</h3></a>
|
36
|
-
</div>
|
37
|
-
|
38
|
-
</div>
|
39
|
-
|
40
|
-
</div>
|
41
|
-
|
42
|
-
</div>
|
43
|
-
</div>
|
44
|
-
</body>
|
45
|
-
</html>
|
@@ -1,126 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<title>_directory.js.coffee</title>
|
6
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
7
|
-
<link rel="stylesheet" media="all" href="../../../../resources/base.css" />
|
8
|
-
<link rel="stylesheet" media="all" href="../../../../resources/module.css" />
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<header>
|
12
|
-
<h1>_directory.js.coffee</h1>
|
13
|
-
</header>
|
14
|
-
<div id="content">
|
15
|
-
<div id="sidebar">
|
16
|
-
|
17
|
-
<h4>Classes</h4>
|
18
|
-
<ul class="classlist">
|
19
|
-
|
20
|
-
<li><a href="#Models.Directory">Models.Directory</a></li>
|
21
|
-
|
22
|
-
</ul>
|
23
|
-
|
24
|
-
|
25
|
-
<h4>Functions</h4>
|
26
|
-
<ul class="functionlist">
|
27
|
-
|
28
|
-
<li><a href="#Models.Directory.find">Models.Directory.find</a></li>
|
29
|
-
|
30
|
-
</ul>
|
31
|
-
|
32
|
-
</div>
|
33
|
-
<div id="main">
|
34
|
-
|
35
|
-
|
36
|
-
<div id="classes">
|
37
|
-
<h2>Classes</h2>
|
38
|
-
|
39
|
-
<div class="class">
|
40
|
-
<div class="header">
|
41
|
-
<a id="Models.Directory"><h3>Models.Directory</h3></a>
|
42
|
-
|
43
|
-
|
44
|
-
<a class="parent" href="#Models.Node"><h3>extends Models.Node</h3></a>
|
45
|
-
|
46
|
-
|
47
|
-
</div>
|
48
|
-
<div class="class_content">
|
49
|
-
<p>Public: Object representing a directory.</p>
|
50
|
-
|
51
|
-
<ul>
|
52
|
-
<li>defaults
|
53
|
-
<ul><li>name - A String naming the directory (default: "New Directory").</li>
|
54
|
-
<li>sortPriority - A String representing the priority with which the
|
55
|
-
node is sorted. Directories have sortPriority "0"
|
56
|
-
allowing them to be sorted before Files which have
|
57
|
-
sortPriority "1".</li>
|
58
|
-
<li>nodeType - A String denoting what type of node this object is.
|
59
|
-
The two types are "file" and "directory".</li>
|
60
|
-
<li>open - The state of the directory. Controls whether or not
|
61
|
-
to display files and directories contained within this
|
62
|
-
Directory (default: false).</li></ul></li>
|
63
|
-
</ul>
|
64
|
-
<div class="methods">
|
65
|
-
|
66
|
-
|
67
|
-
<div class="instancemethods">
|
68
|
-
<h3>Instance Methods</h3>
|
69
|
-
|
70
|
-
<div class="method">
|
71
|
-
<h4>toggleOpen()</h4>
|
72
|
-
<p>Public: Toggle the open state of this Directory.</p>
|
73
|
-
|
74
|
-
<p>Examples</p>
|
75
|
-
|
76
|
-
<pre><code>dir = new BoneTree.Models.Directory
|
77
|
-
|
78
|
-
dir.get('open')
|
79
|
-
# => false
|
80
|
-
|
81
|
-
dir.toggleOpen()
|
82
|
-
dir.get('open')
|
83
|
-
# => true
|
84
|
-
</code></pre>
|
85
|
-
|
86
|
-
<p>Returns this Directory.</p>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
|
95
|
-
</div>
|
96
|
-
|
97
|
-
|
98
|
-
<div id="functions">
|
99
|
-
<h2>Functions</h2>
|
100
|
-
|
101
|
-
<div class="function">
|
102
|
-
<div class="header">
|
103
|
-
<a id="Models.Directory.find"><h3>Models.Directory.find(currentDirectory, name)</h3></a>
|
104
|
-
</div>
|
105
|
-
|
106
|
-
<div>
|
107
|
-
<p>Internal: Check to see if there is a directory with the matching name
|
108
|
-
contained within currentDirectory.</p>
|
109
|
-
|
110
|
-
<ul>
|
111
|
-
<li><p>currentDirectory - A Directory object to search for the matching directory name.</p></li>
|
112
|
-
<li><p>name - A String name used to check for matching directory
|
113
|
-
names in currentDirectory.</p></li>
|
114
|
-
</ul>
|
115
|
-
|
116
|
-
<p>Returns The Directory object with the matching name if it exists and undefined otherwise.</p>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
</div>
|
120
|
-
|
121
|
-
</div>
|
122
|
-
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
</body>
|
126
|
-
</html>
|