sproutcore 0.9.13 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +19 -0
- data/Manifest.txt +103 -26
- data/app_generators/sproutcore/templates/README +1 -1
- data/bin/sc-build +1 -1
- data/bin/sc-gen +0 -0
- data/bin/sc-ide +278 -0
- data/bin/sc-init +38 -0
- data/bin/sc-install +96 -0
- data/bin/sc-remove +94 -0
- data/bin/sc-server +4 -0
- data/bin/sc-update +94 -0
- data/bin/sproutcore +3 -14
- data/clients/sc_docs/controllers/docs.js +1 -1
- data/clients/sc_docs/models/doc.js +6 -0
- data/clients/sc_docs/views/doc_frame.js +1 -1
- data/clients/sc_test_runner/english.lproj/icons/small/next.png +0 -0
- data/clients/sc_test_runner/english.lproj/icons/small/reset.png +0 -0
- data/frameworks/sproutcore/HISTORY +34 -2
- data/frameworks/sproutcore/controllers/array.js +1 -1
- data/frameworks/sproutcore/controllers/controller.js +1 -1
- data/frameworks/sproutcore/controllers/object.js +9 -6
- data/frameworks/sproutcore/core.js +19 -4
- data/frameworks/sproutcore/english.lproj/blank.gif +0 -0
- data/frameworks/sproutcore/english.lproj/core.css +1 -0
- data/frameworks/sproutcore/english.lproj/menu.css +1 -0
- data/frameworks/sproutcore/foundation/application.js +3 -3
- data/frameworks/sproutcore/foundation/benchmark.js +1 -1
- data/frameworks/sproutcore/foundation/node_descriptor.js +13 -1
- data/frameworks/sproutcore/foundation/page.js +3 -2
- data/frameworks/sproutcore/foundation/path_module.js +33 -16
- data/frameworks/sproutcore/foundation/run_loop.js +1 -1
- data/frameworks/sproutcore/foundation/server.js +68 -18
- data/frameworks/sproutcore/foundation/string.js +1 -1
- data/frameworks/sproutcore/globals/window.js +62 -15
- data/frameworks/sproutcore/lib/core_views.rb +1 -0
- data/frameworks/sproutcore/lib/index.rhtml +4 -3
- data/frameworks/sproutcore/lib/menu_views.rb +2 -2
- data/frameworks/sproutcore/models/collection.js +122 -107
- data/frameworks/sproutcore/models/record.js +2 -2
- data/frameworks/sproutcore/panes/manager.js +1 -1
- data/frameworks/sproutcore/panes/overlay.js +3 -3
- data/frameworks/sproutcore/tests/controllers/object.rhtml +26 -0
- data/frameworks/sproutcore/tests/views/collection/incremental_rendering.rhtml +2 -2
- data/frameworks/sproutcore/views/button/disclosure.js +1 -1
- data/frameworks/sproutcore/views/collection/collection.js +19 -15
- data/frameworks/sproutcore/views/collection/source_list.js +1 -1
- data/frameworks/sproutcore/views/collection/table.js +2 -2
- data/frameworks/sproutcore/views/error_explanation.js +1 -1
- data/frameworks/sproutcore/views/field/checkbox_field.js +1 -1
- data/frameworks/sproutcore/views/field/field.js +1 -1
- data/frameworks/sproutcore/views/field/radio_field.js +1 -1
- data/frameworks/sproutcore/views/field/select_field.js +1 -1
- data/frameworks/sproutcore/views/form.js +1 -1
- data/frameworks/sproutcore/views/image.js +1 -1
- data/frameworks/sproutcore/views/menu_item.js +1 -1
- data/frameworks/sproutcore/views/popup_button.js +1 -1
- data/frameworks/sproutcore/views/popup_menu.js +1 -1
- data/frameworks/sproutcore/views/progress.js +4 -2
- data/frameworks/sproutcore/views/radio_group.js +1 -1
- data/frameworks/sproutcore/views/scroll.js +1 -1
- data/frameworks/sproutcore/views/source_list_group.js +1 -1
- data/frameworks/sproutcore/views/split.js +1 -1
- data/frameworks/sproutcore/views/tab.js +3 -1
- data/frameworks/sproutcore/views/view.js +19 -3
- data/jsdoc/README.txt +89 -57
- data/jsdoc/app/frame/Chain.js +102 -0
- data/jsdoc/app/frame/Dumper.js +144 -0
- data/jsdoc/app/frame/Hash.js +47 -0
- data/jsdoc/app/frame/Link.js +142 -0
- data/jsdoc/app/frame/Namespace.js +10 -0
- data/jsdoc/app/frame/Opt.js +134 -0
- data/jsdoc/app/frame/Reflection.js +26 -0
- data/jsdoc/app/frame/String.js +93 -0
- data/jsdoc/app/frame/Testrun.js +129 -0
- data/jsdoc/app/frame.js +33 -0
- data/jsdoc/app/handlers/FOODOC.js +26 -0
- data/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
- data/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/jsdoc/app/handlers/XMLDOC.js +26 -0
- data/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
- data/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
- data/jsdoc/app/lib/JSDOC/JsDoc.js +180 -0
- data/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
- data/jsdoc/app/lib/JSDOC/Lang.js +144 -0
- data/jsdoc/app/lib/JSDOC/Parser.js +109 -0
- data/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
- data/jsdoc/app/lib/JSDOC/Symbol.js +600 -0
- data/jsdoc/app/lib/JSDOC/SymbolSet.js +220 -0
- data/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
- data/jsdoc/app/lib/JSDOC/Token.js +18 -0
- data/jsdoc/app/lib/JSDOC/TokenReader.js +323 -0
- data/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
- data/jsdoc/app/lib/JSDOC/Util.js +32 -0
- data/jsdoc/app/lib/JSDOC/Walker.js +416 -0
- data/jsdoc/app/lib/JSDOC.js +97 -0
- data/jsdoc/app/main.js +74 -0
- data/jsdoc/app/plugins/commentSrcJson.js +19 -0
- data/jsdoc/app/plugins/frameworkPrototype.js +16 -0
- data/jsdoc/app/plugins/functionCall.js +10 -0
- data/jsdoc/app/plugins/publishSrcHilite.js +62 -0
- data/jsdoc/app/plugins/sproutcoreTags.js +26 -0
- data/jsdoc/app/plugins/symbolLink.js +9 -0
- data/jsdoc/app/plugins/tagParamConfig.js +31 -0
- data/jsdoc/app/plugins/tagSynonyms.js +43 -0
- data/jsdoc/app/run.js +339 -137
- data/jsdoc/changes.txt +47 -0
- data/jsdoc/conf/sample.conf +31 -0
- data/jsdoc/java/build.xml +36 -0
- data/jsdoc/java/build_1.4.xml +36 -0
- data/jsdoc/java/classes/js.jar +0 -0
- data/jsdoc/java/src/JsDebugRun.java +21 -0
- data/jsdoc/java/src/JsRun.java +21 -0
- data/jsdoc/jsdebug.jar +0 -0
- data/jsdoc/jsrun.jar +0 -0
- data/jsdoc/t/TestDoc.js +144 -0
- data/jsdoc/t/runner.js +13 -0
- data/jsdoc/templates/sproutcore/allclasses.tmpl +17 -0
- data/jsdoc/templates/sproutcore/allfiles.tmpl +56 -0
- data/jsdoc/templates/sproutcore/class.tmpl +408 -326
- data/jsdoc/templates/sproutcore/index.tmpl +30 -31
- data/jsdoc/templates/sproutcore/publish.js +173 -81
- data/jsdoc/templates/sproutcore/static/default.css +191 -0
- data/jsdoc/templates/sproutcore/static/header.html +2 -0
- data/jsdoc/templates/sproutcore/static/index.html +19 -0
- data/jsdoc/templates/sproutcore/symbol.tmpl +35 -0
- data/jsdoc/test/addon.js +24 -0
- data/jsdoc/test/anon_inner.js +14 -0
- data/jsdoc/test/augments.js +31 -0
- data/jsdoc/test/augments2.js +26 -0
- data/jsdoc/test/borrows.js +41 -0
- data/jsdoc/test/borrows2.js +23 -0
- data/jsdoc/test/config.js +22 -0
- data/jsdoc/test/constructs.js +18 -0
- data/jsdoc/test/encoding.js +10 -0
- data/jsdoc/test/encoding_other.js +12 -0
- data/jsdoc/test/functions_anon.js +39 -0
- data/jsdoc/test/functions_nested.js +33 -0
- data/jsdoc/test/global.js +13 -0
- data/jsdoc/test/globals.js +25 -0
- data/jsdoc/test/ignore.js +10 -0
- data/jsdoc/test/inner.js +16 -0
- data/jsdoc/test/jsdoc_test.js +477 -0
- data/jsdoc/test/lend.js +33 -0
- data/jsdoc/test/memberof.js +20 -0
- data/jsdoc/test/memberof_constructor.js +15 -0
- data/jsdoc/test/name.js +19 -0
- data/jsdoc/test/namespace_nested.js +23 -0
- data/jsdoc/test/nocode.js +13 -0
- data/jsdoc/test/oblit_anon.js +20 -0
- data/jsdoc/test/overview.js +20 -0
- data/jsdoc/test/param_inline.js +37 -0
- data/jsdoc/test/params_optional.js +8 -0
- data/jsdoc/test/prototype.js +17 -0
- data/jsdoc/test/prototype_nested.js +9 -0
- data/jsdoc/test/prototype_oblit.js +13 -0
- data/jsdoc/test/prototype_oblit_constructor.js +24 -0
- data/jsdoc/test/public.js +10 -0
- data/jsdoc/test/shared.js +42 -0
- data/jsdoc/test/shared2.js +2 -0
- data/jsdoc/test/shortcuts.js +22 -0
- data/jsdoc/test/static_this.js +13 -0
- data/jsdoc/test/synonyms.js +23 -0
- data/jsdoc/test/tosource.js +23 -0
- data/jsdoc/test/variable_redefine.js +14 -0
- data/jsdoc/test.js +304 -0
- data/lib/sproutcore/build_tools/resource_builder.rb +6 -1
- data/lib/sproutcore/bundle_installer.rb +268 -0
- data/lib/sproutcore/jsdoc.rb +7 -6
- data/lib/sproutcore/library.rb +38 -0
- data/lib/sproutcore/merb/bundle_controller.rb +8 -4
- data/lib/sproutcore/version.rb +1 -1
- data/lib/sproutcore.rb +1 -1
- data/script/destroy +0 -0
- data/script/generate +0 -0
- data/script/txt2html +0 -0
- metadata +117 -29
- data/clients/view_builder/core.js +0 -19
- data/clients/view_builder/english.lproj/body.css +0 -149
- data/clients/view_builder/english.lproj/body.rhtml +0 -18
- data/clients/view_builder/english.lproj/strings.js +0 -14
- data/clients/view_builder/main.js +0 -37
- data/jsdoc/app/DocFile.js +0 -137
- data/jsdoc/app/DocTag.js +0 -110
- data/jsdoc/app/Doclet.js +0 -63
- data/jsdoc/app/Dumper.js +0 -143
- data/jsdoc/app/JsDoc.js +0 -103
- data/jsdoc/app/JsHilite.js +0 -45
- data/jsdoc/app/JsIO.js +0 -163
- data/jsdoc/app/JsParse.js +0 -385
- data/jsdoc/app/JsPlate.js +0 -130
- data/jsdoc/app/JsTestrun.js +0 -129
- data/jsdoc/app/JsToke.js +0 -564
- data/jsdoc/app/Symbol.js +0 -298
- data/jsdoc/app/Transformer.js +0 -14
- data/jsdoc/app/Util.js +0 -97
- data/jsdoc/app/js.jar +0 -0
- data/jsdoc/plugins/min.js +0 -316
- data/jsdoc/plugins/strip.js +0 -20
- data/jsdoc/templates/sproutcore/default.css +0 -191
- data/jsdoc/templates/sproutcore/index.html +0 -13
- data/jsdoc/templates/sproutcore/prototype.js +0 -4186
- data/jsdoc/templates/sproutcore/splash.html +0 -7
@@ -1,149 +0,0 @@
|
|
1
|
-
/* Default CSS for welcome page. Delete this styling and replace it with your own. */
|
2
|
-
|
3
|
-
.sc-welcome {
|
4
|
-
position: absolute ;
|
5
|
-
top: 0px;
|
6
|
-
left: 0px;
|
7
|
-
right: 0px;
|
8
|
-
bottom: 0px;
|
9
|
-
background-color: white ;
|
10
|
-
}
|
11
|
-
|
12
|
-
.sc-welcome img.logo {
|
13
|
-
position: absolute ;
|
14
|
-
bottom: 80px;
|
15
|
-
left: 50%;
|
16
|
-
margin-left: -20px;
|
17
|
-
}
|
18
|
-
|
19
|
-
/* @group Message */
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
.sc-welcome .message {
|
24
|
-
max-width: 800px;
|
25
|
-
margin-left: auto ;
|
26
|
-
margin-right: auto;
|
27
|
-
margin-top: 100px;
|
28
|
-
position: relative;
|
29
|
-
}
|
30
|
-
|
31
|
-
.sc-welcome h1 {
|
32
|
-
border: none ;
|
33
|
-
padding: 0;
|
34
|
-
margin: 0;
|
35
|
-
letter-spacing: -3px;
|
36
|
-
font: normal 6.4em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
|
37
|
-
}
|
38
|
-
|
39
|
-
.sc-welcome h3 {
|
40
|
-
margin: 8px 12px;
|
41
|
-
padding: 0;
|
42
|
-
font: 1.5em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
|
43
|
-
color: #808080;
|
44
|
-
}
|
45
|
-
|
46
|
-
/* @end */
|
47
|
-
|
48
|
-
/* @group Sticky Note */
|
49
|
-
|
50
|
-
.sc-welcome .sticky-note {
|
51
|
-
position: absolute ;
|
52
|
-
right: 0;
|
53
|
-
top: -70px;
|
54
|
-
width: 320px;
|
55
|
-
height: 300px;
|
56
|
-
padding: 60px;
|
57
|
-
padding-right: 20px;
|
58
|
-
background: static_url('sticky-note') no-repeat center center;
|
59
|
-
font: 1.3em "Comic Sans MS", "Comic Sans", Arial, Helvetica, Geneva, sans-serif;
|
60
|
-
color: #5f4700;
|
61
|
-
}
|
62
|
-
|
63
|
-
.sc-welcome .sticky-note p {
|
64
|
-
font-weight: bold ;
|
65
|
-
}
|
66
|
-
|
67
|
-
.sc-welcome .sticky-note ul {
|
68
|
-
padding: 0 10px ;
|
69
|
-
}
|
70
|
-
|
71
|
-
.sc-welcome .sticky-note li {
|
72
|
-
margin: 8px 0 ;
|
73
|
-
}
|
74
|
-
|
75
|
-
/* @end */
|
76
|
-
|
77
|
-
/* @group For Tutorial */
|
78
|
-
|
79
|
-
body {
|
80
|
-
position: absolute ;
|
81
|
-
left: 0;
|
82
|
-
right: 0;
|
83
|
-
top: 0;
|
84
|
-
bottom: 0;
|
85
|
-
padding: 0;
|
86
|
-
margin: 0;
|
87
|
-
overflow: hidden ;
|
88
|
-
}
|
89
|
-
|
90
|
-
.workspace .sidebar {
|
91
|
-
position: absolute;
|
92
|
-
left: 0;
|
93
|
-
top: 0;
|
94
|
-
width: 200px;
|
95
|
-
bottom: 0;
|
96
|
-
}
|
97
|
-
|
98
|
-
.workspace .sidebar .master_list {
|
99
|
-
position: absolute;
|
100
|
-
left: 0;
|
101
|
-
top: 0;
|
102
|
-
right: 0;
|
103
|
-
bottom: 0;
|
104
|
-
}
|
105
|
-
|
106
|
-
.workspace .sc-split-divider-view {
|
107
|
-
position: absolute;
|
108
|
-
left: 200px;
|
109
|
-
top: 0;
|
110
|
-
bottom: 0;
|
111
|
-
}
|
112
|
-
|
113
|
-
.workspace .detail_view {
|
114
|
-
position: absolute;
|
115
|
-
left: 205px;
|
116
|
-
right: 0;
|
117
|
-
top: 0;
|
118
|
-
bottom: 0;
|
119
|
-
border: none ;
|
120
|
-
background-color: #aaa;
|
121
|
-
}
|
122
|
-
|
123
|
-
.workspace .detail_view .card-detail {
|
124
|
-
margin-left: auto;
|
125
|
-
margin-right: auto;
|
126
|
-
top: 100px;
|
127
|
-
position: relative;
|
128
|
-
border: 4px #888 solid;
|
129
|
-
background: #f0f0f0;
|
130
|
-
padding-top: 10px;
|
131
|
-
padding-bottom: 10px;
|
132
|
-
}
|
133
|
-
|
134
|
-
.workspace .detail_view .card-detail td {
|
135
|
-
padding: 0 10px;
|
136
|
-
}
|
137
|
-
|
138
|
-
.workspace .detail_view .card-detail .buttons {
|
139
|
-
text-align: right;
|
140
|
-
padding-top: 10px;
|
141
|
-
}
|
142
|
-
|
143
|
-
.workspace .detail_view .card-detail input {
|
144
|
-
font-size: 14px;
|
145
|
-
width: 300px;
|
146
|
-
}
|
147
|
-
|
148
|
-
/* @end */
|
149
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<% content_for('body') do %>
|
2
|
-
<div class="sc-welcome">
|
3
|
-
<img class="logo" src="<%= static_url('images/sproutcore-logo') %>" />
|
4
|
-
<div class="message">
|
5
|
-
<h1>Welcome!</h1>
|
6
|
-
<h3>You are now running SproutCore.</h3>
|
7
|
-
<div class="sticky-note">
|
8
|
-
<p>Things to do:</p>
|
9
|
-
<ul>
|
10
|
-
<li>Add a model:<br/>sc-gen model contacts/my_model</li>
|
11
|
-
<li>Add a controller:<br/>sc-gen controller contacts/my_controller</li>
|
12
|
-
<li>Edit english.lproj/body.rhtml</li>
|
13
|
-
<li>Build for deployment:<br />sc-build</li>
|
14
|
-
</ul>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<% end %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// ViewBuilder English Strings
|
3
|
-
// ==========================================================================
|
4
|
-
|
5
|
-
// Place strings you want to localize here. In your app, use the key and
|
6
|
-
// localize it using "key string".loc(). HINT: For your key names, use the
|
7
|
-
// english string with an underscore in front. This way you can still see
|
8
|
-
// how your UI will look and you'll notice right away when something needs a
|
9
|
-
// localized string added to this file!
|
10
|
-
//
|
11
|
-
Object.extend(String.English,{
|
12
|
-
// "_String Key": "Localized String"
|
13
|
-
}) ;
|
14
|
-
|
@@ -1,37 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// ViewBuilder
|
3
|
-
// ==========================================================================
|
4
|
-
|
5
|
-
// This is the function that will start your app running. The default
|
6
|
-
// implementation will load any fixtures you have created then instantiate
|
7
|
-
// your controllers and awake the elements on your page.
|
8
|
-
//
|
9
|
-
// As you develop your application you will probably want to override this.
|
10
|
-
// See comments for some pointers on what to do next.
|
11
|
-
//
|
12
|
-
function main() {
|
13
|
-
|
14
|
-
// Step 1: Load Your Model Data
|
15
|
-
// The default code here will load the fixtures you have defined.
|
16
|
-
// Comment out the preload line and add something to refresh from the server
|
17
|
-
// when you are ready to pull data from your server.
|
18
|
-
ViewBuilder.server.preload(ViewBuilder.FIXTURES) ;
|
19
|
-
|
20
|
-
// TODO: refresh() any collections you have created to get their records.
|
21
|
-
// ex: ViewBuilder.contacts.refresh() ;
|
22
|
-
|
23
|
-
// Step 2: Instantiate Your Views
|
24
|
-
// The default code just activates all the views you have on the page. If
|
25
|
-
// your app gets any level of complexity, you should just get the views you
|
26
|
-
// need to show the app in the first place, to speed things up.
|
27
|
-
SC.page.awake() ;
|
28
|
-
|
29
|
-
// Step 3. Set the content property on your primary controller.
|
30
|
-
// This will make your app come alive!
|
31
|
-
|
32
|
-
// TODO: Set the content property on your primary controller
|
33
|
-
// ex: ViewBuilder.contactsController.set('content',ViewBuilder.contacts);
|
34
|
-
|
35
|
-
} ;
|
36
|
-
|
37
|
-
|
data/jsdoc/app/DocFile.js
DELETED
@@ -1,137 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileOverview
|
3
|
-
* @name DocFile
|
4
|
-
* @author Michael Mathews micmath@gmail.com
|
5
|
-
* @url $HeadURL: https://jsdoc-toolkit.googlecode.com/svn/tags/jsdoc_toolkit-1.4.0b/app/DocFile.js $
|
6
|
-
* @revision $Id: DocFile.js 260 2007-10-03 22:18:38Z micmath $
|
7
|
-
* @license <a href="http://en.wikipedia.org/wiki/MIT_License">X11/MIT License</a>
|
8
|
-
* (See the accompanying README file for full details.)
|
9
|
-
*/
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @class Represents a collection of docFiles.
|
13
|
-
* @constructor
|
14
|
-
* @author Michael Mathews <a href="mailto:micmath@gmail.com">micmath@gmail.com</a>
|
15
|
-
*/
|
16
|
-
function DocFileGroup() {
|
17
|
-
this.files = [];
|
18
|
-
}
|
19
|
-
|
20
|
-
/**
|
21
|
-
* @param {DocFile} docFile Add this docFile to this group.
|
22
|
-
*/
|
23
|
-
DocFileGroup.prototype.addDocFile = function(docFile) {
|
24
|
-
docFile.fileGroup = this;
|
25
|
-
docFile.fileGroup.circularReference = 1; // keeps dumper from getting dizzy
|
26
|
-
this.files.push(docFile);
|
27
|
-
}
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Search the entire dofFileGroup for a certain symbol.
|
31
|
-
* @param {string} alias The full alias name of the symbol.
|
32
|
-
* @return {Symbol}
|
33
|
-
*/
|
34
|
-
DocFileGroup.prototype.getSymbol = function(alias) {
|
35
|
-
for (var f = 0; f < this.files.length; f++) {
|
36
|
-
var symbol = this.files[f].getSymbol(alias);
|
37
|
-
if (symbol) return symbol;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
/**
|
42
|
-
* @class Represents a collection of doclets associated with a file.
|
43
|
-
* @constructor
|
44
|
-
* @author Michael Mathews <a href="mailto:micmath@gmail.com">micmath@gmail.com</a>
|
45
|
-
* @param {string} [path] The file path to the source file.
|
46
|
-
*/
|
47
|
-
function DocFile(path) {
|
48
|
-
this.path = path;
|
49
|
-
this.filename = Util.fileName(this.path);
|
50
|
-
this.overview = new Symbol(this.filename, [], "FILE", "/** @overview */");
|
51
|
-
this.symbols = [];
|
52
|
-
fileGroup = null;
|
53
|
-
}
|
54
|
-
|
55
|
-
/**
|
56
|
-
* Add a group of doclets. Finds relationships between doclets within the group
|
57
|
-
* @param {Symbol[]} symbols
|
58
|
-
* @param {object} opt Passed in from the command line.
|
59
|
-
*/
|
60
|
-
DocFile.prototype.addSymbols = function(symbols, opt) {
|
61
|
-
for (var s = 0; s < symbols.length; s++) {
|
62
|
-
if (symbols[s].doc.getTag("ignore").length)
|
63
|
-
continue;
|
64
|
-
|
65
|
-
if (symbols[s].isPrivate && !opt.p)
|
66
|
-
continue;
|
67
|
-
|
68
|
-
symbols[s].file = this;
|
69
|
-
symbols[s].file.circularReference = 1; // keeps dumper from getting dizzy
|
70
|
-
|
71
|
-
var parents;
|
72
|
-
if ((parents = symbols[s].doc.getTag("memberof")) && parents.length) {
|
73
|
-
if (symbols[s].name.indexOf(parents[0]+".") == 0) {
|
74
|
-
symbols[s].name = symbols[s].name.replace(parents[0]+".", parents[0]+"/");
|
75
|
-
symbols[s].isStatic = true;
|
76
|
-
}
|
77
|
-
else if (symbols[s].name.indexOf(parents[0]+"/") != 0) {
|
78
|
-
symbols[s].name = parents[0]+"/"+symbols[s].name;
|
79
|
-
}
|
80
|
-
|
81
|
-
symbols[s].doc._dropTag("memberof");
|
82
|
-
}
|
83
|
-
|
84
|
-
if (symbols[s].desc == "undocumented") {
|
85
|
-
if (/(^_|[.\/]_)/.test(symbols[s].name) && !opt.A) {
|
86
|
-
continue;
|
87
|
-
}
|
88
|
-
if (!opt.a && !opt.A) {
|
89
|
-
continue;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
// is this a member of another object?
|
94
|
-
// TODO this relationship may span files, so should move into DocFileGroup?
|
95
|
-
var parts = null;
|
96
|
-
if (
|
97
|
-
symbols[s].name.indexOf("/") > -1
|
98
|
-
&& (parts = symbols[s].name.match(/^(.+)\/([^\/]+)$/))
|
99
|
-
) {
|
100
|
-
var parentName = parts[1].replace(/\//g, ".");
|
101
|
-
var childName = parts[2];
|
102
|
-
|
103
|
-
symbols[s].alias = symbols[s].name.replace(/\//g, ".");
|
104
|
-
symbols[s].name = childName;
|
105
|
-
symbols[s].memberof = parentName;
|
106
|
-
|
107
|
-
// is the parent defined?
|
108
|
-
var parent = this.getSymbol(parentName);
|
109
|
-
|
110
|
-
if (!parent) LOG.warn("Member '"+childName+"' documented but no documentation exists for parent object '"+parentName+"'.");
|
111
|
-
else {
|
112
|
-
if (symbols[s].is("OBJECT")) {
|
113
|
-
parent.properties.push(symbols[s]);
|
114
|
-
}
|
115
|
-
if (symbols[s].is("FUNCTION")) {
|
116
|
-
parent.methods.push(symbols[s]);
|
117
|
-
}
|
118
|
-
if (symbols[s].is("EVENT")) {
|
119
|
-
parent.events.push(symbols[s]);
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
this.symbols.push(symbols[s]);
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
/**
|
129
|
-
* @param {string} alias The full alias name of the symbol.
|
130
|
-
* @return {Symbol}
|
131
|
-
*/
|
132
|
-
DocFile.prototype.getSymbol = function(alias) {
|
133
|
-
for (var i = 0; i < this.symbols.length; i++) {
|
134
|
-
if (this.symbols[i].alias == alias) return this.symbols[i];
|
135
|
-
}
|
136
|
-
return null;
|
137
|
-
}
|
data/jsdoc/app/DocTag.js
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileOverview
|
3
|
-
* @name DocTag
|
4
|
-
* @author Michael Mathews micmath@gmail.com
|
5
|
-
* @url $HeadURL: https://jsdoc-toolkit.googlecode.com/svn/tags/jsdoc_toolkit-1.4.0b/app/DocTag.js $
|
6
|
-
* @revision $Id: DocTag.js 334 2007-11-13 19:52:49Z micmath $
|
7
|
-
* @license <a href="http://en.wikipedia.org/wiki/MIT_License">X11/MIT License</a>
|
8
|
-
* (See the accompanying README file for full details.)
|
9
|
-
*/
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @class Represents a tag within a doclet.
|
13
|
-
* @author Michael Mathews <a href="mailto:micmath@gmail.com">micmath@gmail.com</a>
|
14
|
-
* @constructor
|
15
|
-
* @param {string} src line(s) of text following the @ character
|
16
|
-
*/
|
17
|
-
function DocTag(src) {
|
18
|
-
/**
|
19
|
-
* Like @title
|
20
|
-
* @type string
|
21
|
-
*/
|
22
|
-
this.title = "";
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Like @title {type}
|
26
|
-
* @type string
|
27
|
-
*/
|
28
|
-
this.type = "";
|
29
|
-
|
30
|
-
/**
|
31
|
-
* Like @title {type}? name, though this is only recognized in tags with a title of "param" or "property."
|
32
|
-
* @type string
|
33
|
-
*/
|
34
|
-
this.name = "";
|
35
|
-
|
36
|
-
/**
|
37
|
-
* Like @title {type}? name? description goes here...
|
38
|
-
* @type string
|
39
|
-
*/
|
40
|
-
this.desc = "";
|
41
|
-
|
42
|
-
if (typeof(src) != "undefined") {
|
43
|
-
var parts = src.match(/^(\S+)(?:\s+\{\s*([\S\s]+?)\s*\})?\s*([\S\s]*\S)?/);
|
44
|
-
|
45
|
-
this.title = (parts[1].toLowerCase() || "");
|
46
|
-
this.type = (parts[2] || "");
|
47
|
-
|
48
|
-
if (this.type) this.type = this.type.replace(/\s*(,|\|\|?)\s*/g, ", ");
|
49
|
-
this.desc = (parts[3] || "");
|
50
|
-
|
51
|
-
// should be @type foo but we'll accept @type {foo} too
|
52
|
-
if (this.title == "type") {
|
53
|
-
if (this.type) this.desc = this.type;
|
54
|
-
|
55
|
-
// should be @type foo, bar, baz but we'll accept @type foo|bar||baz too
|
56
|
-
if (this.desc) {
|
57
|
-
this.desc = this.desc.replace(/\s*(,|\|\|?)\s*/g, ", ");
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
var syn;
|
62
|
-
if ((syn = DocTag.synonyms["="+this.title])) this.title = syn;
|
63
|
-
|
64
|
-
if (this.desc) {
|
65
|
-
if (this.title == "param") { // long tags like {type} [name] desc
|
66
|
-
var m = this.desc.match(/^\s*(\[?)([a-zA-Z0-9.$_]+)(\]?)(?:\s+\{\s*([\S\s]+?)\s*\})?(?:\s+([\S\s]*\S))?/);
|
67
|
-
if (m) {
|
68
|
-
this.isOptional = (!!m[1] && !!m[3]); // bracketed name means optional
|
69
|
-
this.name = (m[2] || "");
|
70
|
-
this.type = (m[4] || this.type);
|
71
|
-
this.desc = (m[5] || "");
|
72
|
-
}
|
73
|
-
}
|
74
|
-
else if (this.title == "property") {
|
75
|
-
m = this.desc.match(/^\s*([a-zA-Z0-9.$_]+)(?:\s+([\S\s]*\S))?/);
|
76
|
-
if (m) {
|
77
|
-
this.name = (m[1] || "");
|
78
|
-
this.desc = (m[2] || "");
|
79
|
-
}
|
80
|
-
}
|
81
|
-
else if (this.title == "config") {
|
82
|
-
m = this.desc.match(/^\s*(\[?)([a-zA-Z0-9.$_]+)(\]?)(?:\s+([\S\s]*\S))?/);
|
83
|
-
if (m) {
|
84
|
-
this.isOptional = (!!m[1] && !!m[3]); // bracketed name means optional
|
85
|
-
this.name = (m[2] || "");
|
86
|
-
this.desc = (m[4] || "");
|
87
|
-
}
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
/**
|
94
|
-
* Used to make various JsDoc tags compatible with JsDoc Toolkit.
|
95
|
-
* @memberOf DocTag
|
96
|
-
*/
|
97
|
-
DocTag.synonyms = {
|
98
|
-
"=member": "memberof",
|
99
|
-
"=description": "desc",
|
100
|
-
"=exception": "throws",
|
101
|
-
"=argument": "param",
|
102
|
-
"=returns": "return",
|
103
|
-
"=classdescription": "class",
|
104
|
-
"=fileoverview": "overview",
|
105
|
-
"=extends": "augments"
|
106
|
-
}
|
107
|
-
|
108
|
-
DocTag.prototype.toString = function() {
|
109
|
-
return this.desc;
|
110
|
-
}
|
data/jsdoc/app/Doclet.js
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileOverview
|
3
|
-
* @name Doclet
|
4
|
-
* @author Michael Mathews micmath@gmail.com
|
5
|
-
* @url $HeadURL: https://jsdoc-toolkit.googlecode.com/svn/tags/jsdoc_toolkit-1.4.0b/app/Doclet.js $
|
6
|
-
* @revision $Id: Doclet.js 295 2007-11-11 01:09:02Z micmath $
|
7
|
-
* @license <a href="http://en.wikipedia.org/wiki/MIT_License">X11/MIT License</a>
|
8
|
-
* (See the accompanying README file for full details.)
|
9
|
-
*/
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @class Represents a collection of DocTags.
|
13
|
-
* @constructor
|
14
|
-
* @author Michael Mathews <a href="mailto:micmath@gmail.com">micmath@gmail.com</a>
|
15
|
-
* @param {string} comment The entire documentation comment. The openening slash-star-star and
|
16
|
-
* closing star-slash are optional. An untagged string at the start automatically gets a "desc" tag.
|
17
|
-
*/
|
18
|
-
function Doclet(comment) {
|
19
|
-
var src = Doclet.unwrapComment(comment);
|
20
|
-
var tagTexts = src.split(/(^|[\r\f\n])\s*@/);
|
21
|
-
|
22
|
-
this.tags =
|
23
|
-
tagTexts.filter(function(el){return el.match(/^\w/)})
|
24
|
-
.map(function(el){return new DocTag(el)});
|
25
|
-
|
26
|
-
var paramParent = "config"; // default
|
27
|
-
for(var i = 0; i < this.tags.length; i++) {
|
28
|
-
if (this.tags[i].title == "param") paramParent = this.tags[i].name;
|
29
|
-
if (this.tags[i].title == "config") {
|
30
|
-
this.tags[i].name = paramParent+"."+this.tags[i].name;
|
31
|
-
this.tags[i].title = "param"
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
/**
|
37
|
-
* Remove the slashes and stars from a doc comment.
|
38
|
-
*/
|
39
|
-
Doclet.unwrapComment = function(comment) {
|
40
|
-
if (!comment) comment = "/** @desc undocumented */";
|
41
|
-
|
42
|
-
var unwrapped = comment.replace(/(^\/\*\*|\*\/$)/g, "").replace(/^\s*\* ?/gm, "");
|
43
|
-
if (unwrapped.match(/^\s*[^@\s]/)) unwrapped = "@desc "+unwrapped;
|
44
|
-
return unwrapped;
|
45
|
-
}
|
46
|
-
|
47
|
-
/**
|
48
|
-
* Get every DocTag with the given title.
|
49
|
-
* @param {string} tagTitle
|
50
|
-
* @return {DocTag[]}
|
51
|
-
*/
|
52
|
-
Doclet.prototype.getTag = function(tagTitle) {
|
53
|
-
return this.tags.filter(function(el){return el.title == tagTitle});
|
54
|
-
}
|
55
|
-
|
56
|
-
/**
|
57
|
-
* Remove from this Doclet every DocTag with the given title.
|
58
|
-
* @private
|
59
|
-
* @param {string} tagTitle
|
60
|
-
*/
|
61
|
-
Doclet.prototype._dropTag = function(tagTitle) {
|
62
|
-
this.tags = this.tags.filter(function(el){return el.title != tagTitle});
|
63
|
-
}
|
data/jsdoc/app/Dumper.js
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @class
|
3
|
-
<pre>
|
4
|
-
This is a lightly modified version of Kevin Jones' JavaScript
|
5
|
-
library Data.Dump. To download the original visit:
|
6
|
-
<a href="http://openjsan.org/doc/k/ke/kevinj/Data/Dump/">http://openjsan.org/doc/k/ke/kevinj/Data/Dump/</a>
|
7
|
-
|
8
|
-
AUTHORS
|
9
|
-
|
10
|
-
The Data.Dump JavaScript module is written by Kevin Jones
|
11
|
-
(kevinj@cpan.org), based on Data::Dump by Gisle Aas (gisle@aas.no),
|
12
|
-
based on Data::Dumper by Gurusamy Sarathy (gsar@umich.edu).
|
13
|
-
|
14
|
-
COPYRIGHT
|
15
|
-
|
16
|
-
Copyright 2007 Kevin Jones. Copyright 1998-2000,2003-2004 Gisle Aas.
|
17
|
-
Copyright 1996-1998 Gurusamy Sarathy.
|
18
|
-
|
19
|
-
This program is free software; you can redistribute it and/or modify
|
20
|
-
it under the terms of the Perl Artistic License
|
21
|
-
|
22
|
-
See http://www.perl.com/perl/misc/Artistic.html
|
23
|
-
</pre>
|
24
|
-
* @static
|
25
|
-
*/
|
26
|
-
Dumper = {
|
27
|
-
/** @param [...] The objects to dump. */
|
28
|
-
dump: function () {
|
29
|
-
if (arguments.length > 1)
|
30
|
-
return this._dump(arguments);
|
31
|
-
else if (arguments.length == 1)
|
32
|
-
return this._dump(arguments[0]);
|
33
|
-
else
|
34
|
-
return "()";
|
35
|
-
},
|
36
|
-
|
37
|
-
_dump: function (obj) {
|
38
|
-
if (typeof obj == 'undefined') return 'undefined';
|
39
|
-
var out;
|
40
|
-
var type = this._typeof(obj);
|
41
|
-
if (obj.circularReference) obj.circularReference++;
|
42
|
-
switch (type) {
|
43
|
-
case 'circular':
|
44
|
-
out = '{/*circularReference*/}';
|
45
|
-
break;
|
46
|
-
case 'object':
|
47
|
-
var pairs = new Array;
|
48
|
-
|
49
|
-
for (var prop in obj) {
|
50
|
-
if (prop != "circularReference" && obj.hasOwnProperty(prop)) { //hide inherited properties
|
51
|
-
pairs.push(prop + ': ' + this._dump(obj[prop]));
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
out = '{' + this._format_list(pairs) + '}';
|
56
|
-
break;
|
57
|
-
|
58
|
-
case 'string':
|
59
|
-
for (var prop in Dumper.ESC) {
|
60
|
-
if (Dumper.ESC.hasOwnProperty(prop)) {
|
61
|
-
obj = obj.replace(prop, Dumper.ESC[prop]);
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
// Escape UTF-8 Strings
|
66
|
-
if (obj.match(/^[\x00-\x7f]*$/)) {
|
67
|
-
out = '"' + obj + '"';
|
68
|
-
}
|
69
|
-
else {
|
70
|
-
out = "unescape('"+escape(obj)+"')";
|
71
|
-
}
|
72
|
-
break;
|
73
|
-
|
74
|
-
case 'array':
|
75
|
-
var elems = new Array;
|
76
|
-
|
77
|
-
for (var i=0; i<obj.length; i++) {
|
78
|
-
elems.push( this._dump(obj[i]) );
|
79
|
-
}
|
80
|
-
|
81
|
-
out = '[' + this._format_list(elems) + ']';
|
82
|
-
break;
|
83
|
-
|
84
|
-
case 'date':
|
85
|
-
// firefox returns GMT strings from toUTCString()...
|
86
|
-
var utc_string = obj.toUTCString().replace(/GMT/,'UTC');
|
87
|
-
out = 'new Date("' + utc_string + '")';
|
88
|
-
break;
|
89
|
-
|
90
|
-
case 'element':
|
91
|
-
// DOM element
|
92
|
-
out = this._dump_dom(obj);
|
93
|
-
break;
|
94
|
-
|
95
|
-
default:
|
96
|
-
out = obj;
|
97
|
-
}
|
98
|
-
|
99
|
-
out = String(out).replace(/\n/g, '\n ');
|
100
|
-
out = out.replace(/\n (.*)$/,"\n$1");
|
101
|
-
|
102
|
-
return out;
|
103
|
-
},
|
104
|
-
|
105
|
-
_format_list: function (list) {
|
106
|
-
if (!list.length) return '';
|
107
|
-
var nl = list.toString().length > 60 ? '\n' : ' ';
|
108
|
-
return nl + list.join(',' + nl) + nl;
|
109
|
-
},
|
110
|
-
|
111
|
-
_typeof: function (obj) {
|
112
|
-
if (obj && obj.circularReference && obj.circularReference > 1) return 'circular';
|
113
|
-
if (Array.prototype.isPrototypeOf(obj)) return 'array';
|
114
|
-
if (Date.prototype.isPrototypeOf(obj)) return 'date';
|
115
|
-
if (typeof obj.nodeType != 'undefined') return 'element';
|
116
|
-
return typeof(obj);
|
117
|
-
},
|
118
|
-
|
119
|
-
_dump_dom: function (obj) {
|
120
|
-
return '"' + Dumper.nodeTypes[obj.nodeType] + '"';
|
121
|
-
}
|
122
|
-
};
|
123
|
-
|
124
|
-
Dumper.ESC = {
|
125
|
-
"\t": "\\t",
|
126
|
-
"\n": "\\n",
|
127
|
-
"\f": "\\f"
|
128
|
-
};
|
129
|
-
|
130
|
-
Dumper.nodeTypes = {
|
131
|
-
1: "ELEMENT_NODE",
|
132
|
-
2: "ATTRIBUTE_NODE",
|
133
|
-
3: "TEXT_NODE",
|
134
|
-
4: "CDATA_SECTION_NODE",
|
135
|
-
5: "ENTITY_REFERENCE_NODE",
|
136
|
-
6: "ENTITY_NODE",
|
137
|
-
7: "PROCESSING_INSTRUCTION_NODE",
|
138
|
-
8: "COMMENT_NODE",
|
139
|
-
9: "DOCUMENT_NODE",
|
140
|
-
10: "DOCUMENT_TYPE_NODE",
|
141
|
-
11: "DOCUMENT_FRAGMENT_NODE",
|
142
|
-
12: "NOTATION_NODE"
|
143
|
-
};
|