panamera-react-ui 13.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.
package/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ Frog
package/.idea/Frog.iml ADDED
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
9
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
package/.idea/misc.xml ADDED
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" />
4
+ </project>
5
+
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/Frog.iml" filepath="$PROJECT_DIR$/.idea/Frog.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,335 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="874a5ac7-8334-463f-8b84-4c48cb523ee9" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
6
+ </list>
7
+ <ignored path="Frog.iws" />
8
+ <ignored path=".idea/workspace.xml" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
+ <component name="CreatePatchCommitExecutor">
17
+ <option name="PATCH_PATH" value="" />
18
+ </component>
19
+ <component name="DaemonCodeAnalyzer">
20
+ <disable_hints />
21
+ </component>
22
+ <component name="FavoritesManager">
23
+ <favorites_list name="Frog" />
24
+ </component>
25
+ <component name="FileEditorManager">
26
+ <leaf>
27
+ <file leaf-file-name="Frog.js" pinned="false" current="false" current-in-tab="false">
28
+ <entry file="file://$PROJECT_DIR$/lib/Frog.js">
29
+ <provider selected="true" editor-type-id="text-editor">
30
+ <state line="34" column="2" selection-start="0" selection-end="1119" vertical-scroll-proportion="0.0">
31
+ <folding />
32
+ </state>
33
+ </provider>
34
+ </entry>
35
+ </file>
36
+ <file leaf-file-name="README.md" pinned="false" current="true" current-in-tab="true">
37
+ <entry file="file://$PROJECT_DIR$/README.md">
38
+ <provider editor-type-id="MarkdownPreviewEditor">
39
+ <state />
40
+ </provider>
41
+ <provider selected="true" editor-type-id="text-editor">
42
+ <state line="15" column="72" selection-start="423" selection-end="423" vertical-scroll-proportion="0.31059682">
43
+ <folding />
44
+ </state>
45
+ </provider>
46
+ </entry>
47
+ </file>
48
+ <file leaf-file-name="app.js" pinned="false" current="false" current-in-tab="false">
49
+ <entry file="file://$PROJECT_DIR$/test/app.js">
50
+ <provider selected="true" editor-type-id="text-editor">
51
+ <state line="8" column="13" selection-start="0" selection-end="199" vertical-scroll-proportion="0.0">
52
+ <folding />
53
+ </state>
54
+ </provider>
55
+ </entry>
56
+ </file>
57
+ <file leaf-file-name="test.dart" pinned="false" current="false" current-in-tab="false">
58
+ <entry file="file://$PROJECT_DIR$/test/test.dart">
59
+ <provider selected="true" editor-type-id="text-editor">
60
+ <state line="17" column="1" selection-start="0" selection-end="304" vertical-scroll-proportion="0.0">
61
+ <folding />
62
+ </state>
63
+ </provider>
64
+ </entry>
65
+ </file>
66
+ </leaf>
67
+ </component>
68
+ <component name="FindManager">
69
+ <FindUsagesManager>
70
+ <setting name="OPEN_NEW_TAB" value="false" />
71
+ </FindUsagesManager>
72
+ </component>
73
+ <component name="Git.Settings">
74
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
75
+ </component>
76
+ <component name="IdeDocumentHistory">
77
+ <option name="changedFiles">
78
+ <list>
79
+ <option value="$PROJECT_DIR$/test.dart" />
80
+ <option value="$PROJECT_DIR$/.gitignore" />
81
+ <option value="$PROJECT_DIR$/node-dart.js" />
82
+ <option value="$PROJECT_DIR$/app.js" />
83
+ <option value="$PROJECT_DIR$/lib/transform.js" />
84
+ <option value="$PROJECT_DIR$/lib/frog.js" />
85
+ <option value="$PROJECT_DIR$/LICENSE" />
86
+ <option value="$PROJECT_DIR$/.npmignore" />
87
+ <option value="$PROJECT_DIR$/package.json" />
88
+ <option value="$PROJECT_DIR$/lib/Frog.js" />
89
+ <option value="$PROJECT_DIR$/test/app.js" />
90
+ <option value="$PROJECT_DIR$/test/test.dart" />
91
+ <option value="$PROJECT_DIR$/README.md" />
92
+ </list>
93
+ </option>
94
+ </component>
95
+ <component name="ProjectFrameBounds">
96
+ <option name="x" value="-8" />
97
+ <option name="y" value="-8" />
98
+ <option name="width" value="1696" />
99
+ <option name="height" value="1026" />
100
+ </component>
101
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true">
102
+ <OptionsSetting value="true" id="Add" />
103
+ <OptionsSetting value="true" id="Remove" />
104
+ <OptionsSetting value="true" id="Checkout" />
105
+ <OptionsSetting value="true" id="Update" />
106
+ <OptionsSetting value="true" id="Status" />
107
+ <OptionsSetting value="true" id="Edit" />
108
+ <ConfirmationsSetting value="0" id="Add" />
109
+ <ConfirmationsSetting value="0" id="Remove" />
110
+ </component>
111
+ <component name="ProjectReloadState">
112
+ <option name="STATE" value="0" />
113
+ </component>
114
+ <component name="ProjectView">
115
+ <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
116
+ <flattenPackages />
117
+ <showMembers />
118
+ <showModules />
119
+ <showLibraryContents ProjectPane="true" />
120
+ <hideEmptyPackages />
121
+ <abbreviatePackageNames />
122
+ <autoscrollToSource />
123
+ <autoscrollFromSource />
124
+ <sortByType />
125
+ </navigator>
126
+ <panes>
127
+ <pane id="ProjectPane">
128
+ <subPane>
129
+ <PATH>
130
+ <PATH_ELEMENT>
131
+ <option name="myItemId" value="Frog" />
132
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
133
+ </PATH_ELEMENT>
134
+ </PATH>
135
+ <PATH>
136
+ <PATH_ELEMENT>
137
+ <option name="myItemId" value="Frog" />
138
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
139
+ </PATH_ELEMENT>
140
+ <PATH_ELEMENT>
141
+ <option name="myItemId" value="Frog" />
142
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
143
+ </PATH_ELEMENT>
144
+ </PATH>
145
+ <PATH>
146
+ <PATH_ELEMENT>
147
+ <option name="myItemId" value="Frog" />
148
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
149
+ </PATH_ELEMENT>
150
+ <PATH_ELEMENT>
151
+ <option name="myItemId" value="Frog" />
152
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
153
+ </PATH_ELEMENT>
154
+ <PATH_ELEMENT>
155
+ <option name="myItemId" value="test" />
156
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
157
+ </PATH_ELEMENT>
158
+ </PATH>
159
+ <PATH>
160
+ <PATH_ELEMENT>
161
+ <option name="myItemId" value="Frog" />
162
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
163
+ </PATH_ELEMENT>
164
+ <PATH_ELEMENT>
165
+ <option name="myItemId" value="Frog" />
166
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
167
+ </PATH_ELEMENT>
168
+ <PATH_ELEMENT>
169
+ <option name="myItemId" value="lib" />
170
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
171
+ </PATH_ELEMENT>
172
+ </PATH>
173
+ </subPane>
174
+ </pane>
175
+ <pane id="Scope" />
176
+ </panes>
177
+ </component>
178
+ <component name="PropertiesComponent">
179
+ <property name="options.splitter.main.proportions" value="0.3" />
180
+ <property name="WebServerToolWindowFactoryState" value="false" />
181
+ <property name="options.lastSelected" value="Markdown" />
182
+ <property name="GoToClass.includeJavaFiles" value="false" />
183
+ <property name="options.splitter.details.proportions" value="0.2" />
184
+ <property name="options.searchVisible" value="true" />
185
+ </component>
186
+ <component name="RecentsManager">
187
+ <key name="MoveFile.RECENT_KEYS">
188
+ <recent name="Z:\www\Frog\test" />
189
+ <recent name="Z:\www\Frog\lib" />
190
+ </key>
191
+ </component>
192
+ <component name="RunManager">
193
+ <list size="0" />
194
+ </component>
195
+ <component name="ShelveChangesManager" show_recycled="false" />
196
+ <component name="TaskManager">
197
+ <task active="true" id="Default" summary="Default task">
198
+ <changelist id="874a5ac7-8334-463f-8b84-4c48cb523ee9" name="Default" comment="" />
199
+ <created>1335023818840</created>
200
+ <updated>1335023818840</updated>
201
+ </task>
202
+ <servers />
203
+ </component>
204
+ <component name="ToolWindowManager">
205
+ <frame x="-8" y="-8" width="1696" height="1026" extended-state="6" />
206
+ <editor active="true" />
207
+ <layout>
208
+ <window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
209
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
210
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
211
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
212
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.17585784" sideWeight="0.6709007" order="0" side_tool="false" content_ui="combo" />
213
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
214
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
215
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
216
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
217
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
218
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
219
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
220
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
221
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3290993" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
222
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
223
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
224
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
225
+ </layout>
226
+ </component>
227
+ <component name="VcsContentAnnotationSettings">
228
+ <option name="myLimit" value="2678400000" />
229
+ </component>
230
+ <component name="VcsManagerConfiguration">
231
+ <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
232
+ <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
233
+ <option name="CHECK_NEW_TODO" value="true" />
234
+ <option name="myTodoPanelSettings">
235
+ <value>
236
+ <are-packages-shown value="false" />
237
+ <are-modules-shown value="false" />
238
+ <flatten-packages value="false" />
239
+ <is-autoscroll-to-source value="false" />
240
+ </value>
241
+ </option>
242
+ <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
243
+ <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
244
+ <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
245
+ <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
246
+ <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
247
+ <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
248
+ <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
249
+ <option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
250
+ <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
251
+ <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
252
+ <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
253
+ <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
254
+ <option name="SHORT_DIFF_HORISONTALLY" value="true" />
255
+ <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
256
+ <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
257
+ <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
258
+ <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
259
+ <option name="CREATE_PATCH_EXPAND_DETAILS_DEFAULT" value="true" />
260
+ <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
261
+ <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
262
+ <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
263
+ <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
264
+ <option name="LAST_COMMIT_MESSAGE" />
265
+ <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
266
+ <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
267
+ <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
268
+ <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
269
+ <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
270
+ <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
271
+ <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
272
+ <option name="ACTIVE_VCS_NAME" />
273
+ <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
274
+ <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
275
+ <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
276
+ <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
277
+ </component>
278
+ <component name="XDebuggerManager">
279
+ <breakpoint-manager />
280
+ </component>
281
+ <component name="editorHistoryManager">
282
+ <entry file="file://$PROJECT_DIR$/.gitignore">
283
+ <provider selected="true" editor-type-id="text-editor">
284
+ <state line="0" column="5" selection-start="5" selection-end="5" vertical-scroll-proportion="0.0" />
285
+ </provider>
286
+ </entry>
287
+ <entry file="file://$PROJECT_DIR$/LICENSE">
288
+ <provider selected="true" editor-type-id="text-editor">
289
+ <state line="18" column="9" selection-start="1055" selection-end="1055" vertical-scroll-proportion="0.36385256" />
290
+ </provider>
291
+ </entry>
292
+ <entry file="file://$PROJECT_DIR$/.npmignore">
293
+ <provider selected="true" editor-type-id="text-editor">
294
+ <state line="2" column="4" selection-start="20" selection-end="20" vertical-scroll-proportion="0.04042806" />
295
+ </provider>
296
+ </entry>
297
+ <entry file="file://$PROJECT_DIR$/package.json">
298
+ <provider selected="true" editor-type-id="text-editor">
299
+ <state line="30" column="6" selection-start="770" selection-end="770" vertical-scroll-proportion="0.60642093" />
300
+ </provider>
301
+ </entry>
302
+ <entry file="file://$PROJECT_DIR$/lib/Frog.js">
303
+ <provider selected="true" editor-type-id="text-editor">
304
+ <state line="34" column="2" selection-start="0" selection-end="1119" vertical-scroll-proportion="0.0">
305
+ <folding />
306
+ </state>
307
+ </provider>
308
+ </entry>
309
+ <entry file="file://$PROJECT_DIR$/test/app.js">
310
+ <provider selected="true" editor-type-id="text-editor">
311
+ <state line="8" column="13" selection-start="0" selection-end="199" vertical-scroll-proportion="0.0">
312
+ <folding />
313
+ </state>
314
+ </provider>
315
+ </entry>
316
+ <entry file="file://$PROJECT_DIR$/test/test.dart">
317
+ <provider selected="true" editor-type-id="text-editor">
318
+ <state line="17" column="1" selection-start="0" selection-end="304" vertical-scroll-proportion="0.0">
319
+ <folding />
320
+ </state>
321
+ </provider>
322
+ </entry>
323
+ <entry file="file://$PROJECT_DIR$/README.md">
324
+ <provider editor-type-id="MarkdownPreviewEditor">
325
+ <state />
326
+ </provider>
327
+ <provider selected="true" editor-type-id="text-editor">
328
+ <state line="15" column="72" selection-start="423" selection-end="423" vertical-scroll-proportion="0.31059682">
329
+ <folding />
330
+ </state>
331
+ </provider>
332
+ </entry>
333
+ </component>
334
+ </project>
335
+
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2012 Kai Sellgren
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,64 @@
1
+ What's Frog?
2
+ ==
3
+ Frog is a NodeJS module that enables Google Dart support. You may now write server-side Dart enabled NodeJS applications.
4
+
5
+ ## How to install
6
+ It's not yet released, but when it is:
7
+
8
+ ```
9
+ npm install Frog
10
+ ```
11
+
12
+ For now, clone the repo.
13
+
14
+ You also need to have Dart SDK installed: http://www.dartlang.org/docs/getting-started/sdk/#download
15
+
16
+ Make sure the installation bin folder is in your environment ```$PATH```.
17
+
18
+ ## Examples
19
+
20
+ #####app.js
21
+ ```javascript
22
+ // Include the Frog compiler.
23
+ require('./../lib/Frog.js');
24
+
25
+ // Now just run Dart like a boss.
26
+ console.log('I am about to run some Dart...');
27
+
28
+ require('./test.dart');
29
+
30
+ console.log('I just ran Dart!');
31
+ ```
32
+ #####test.dart
33
+ ```dart
34
+ class Point {
35
+ Point(this.x, this.y);
36
+
37
+ distanceTo(Point other) {
38
+ var dx = x - other.x;
39
+ var dy = y - other.y;
40
+ return Math.sqrt(dx * dx + dy * dy);
41
+ }
42
+
43
+ var x, y;
44
+ }
45
+
46
+ main() {
47
+ Point p = new Point(2, 3);
48
+ Point q = new Point(3, 4);
49
+
50
+ print('distance from p to q = ${p.distanceTo(q)}');
51
+ }
52
+ ```
53
+
54
+ #####Run it
55
+ ```
56
+ $ node app.js
57
+ I am about to run some Dart...
58
+ distance from p to q = 1.4142135623730951
59
+ I just ran Dart!
60
+ ```
61
+
62
+ ## Status
63
+
64
+ This project is not yet production ready! It's also quite slow. I'm planning to take another approach to this.
package/lib/Frog.js ADDED
@@ -0,0 +1,35 @@
1
+ var fs = require('fs'),
2
+ exec = require('child_process').exec,
3
+ basename = require('path').basename,
4
+ vm = require('vm'),
5
+ temp = (process.env.TEMP || '/tmp') + '/';
6
+
7
+ require.extensions['.dart'] = function(info, filename) {
8
+ var tempFile = temp + 'frog-compiled-' + basename(filename);
9
+ var data = fs.readFileSync(filename);
10
+
11
+ // Write a temporary file to compile.
12
+ fs.writeFileSync(tempFile, data);
13
+
14
+ // Compile with Frog. Assume it's in the PATH.
15
+ exec('frogc ' + tempFile, function(error, stdout, stderr) {
16
+ if (error !== null) {
17
+ throw new Error('Could not compile .dart source file to JavaScript.');
18
+ }
19
+ });
20
+
21
+ while (true) {
22
+ // This eats your CPU while compiling -- bad :(.
23
+ try {
24
+ var code = fs.readFileSync(tempFile + '.js', 'utf8');
25
+
26
+ if (code.length) {
27
+ fs.unlink(tempFile);
28
+ fs.unlink(tempFile + '.js');
29
+ return vm.runInThisContext(code, filename, true);
30
+ }
31
+ } catch (e) {
32
+ // readFileSync will fail until file exists.
33
+ }
34
+ }
35
+ };
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "_from": "Frog",
3
+ "_id": "Frog@0.1.0",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-bC0APqA+V6zYnDF56h6Y8I8GbWM5M2dE7nf1oEOMeOGwtKidxaVzEhJz3F4/avCQ39GohvO7CG4QpjU+WQBguA==",
6
+ "_location": "/Frog",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "tag",
10
+ "registry": true,
11
+ "raw": "Frog",
12
+ "name": "Frog",
13
+ "escapedName": "Frog",
14
+ "rawSpec": "",
15
+ "saveSpec": null,
16
+ "fetchSpec": "latest"
17
+ },
18
+ "_requiredBy": [
19
+ "#USER",
20
+ "/"
21
+ ],
22
+ "_resolved": "https://registry.npmjs.org/Frog/-/Frog-0.1.0.tgz",
23
+ "_shasum": "ebe17738227a5a9d96b86c874cb02cff18b41878",
24
+ "_spec": "Frog",
25
+ "_where": "/home/ubuntu/Documents/npm",
26
+ "author": {
27
+ "name": "Kai Sellgren"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/kaisellgren/Frog/issues"
31
+ },
32
+ "bundleDependencies": false,
33
+ "contributors": [
34
+ {
35
+ "name": "Kai Sellgren"
36
+ }
37
+ ],
38
+ "dependencies": {},
39
+ "deprecated": false,
40
+ "description": "Provides support for require()'ing Google Dart source files (.dart).",
41
+ "devDependencies": {},
42
+ "engines": {
43
+ "node": ">=0.6.15"
44
+ },
45
+ "homepage": "https://github.com/kaisellgren/Frog",
46
+ "keywords": [
47
+ "dart",
48
+ "google",
49
+ "frog",
50
+ "compiler"
51
+ ],
52
+ "licenses": [
53
+ {
54
+ "type": "MIT",
55
+ "url": "http://github.com/kaisellgren/Frog/raw/master/LICENSE"
56
+ }
57
+ ],
58
+ "main": "lib/Frog.js",
59
+ "name": "panamera-react-ui",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://kaisellgren@github.com/kaisellgren/Frog.git"
63
+ },
64
+ "version": "13.1.0"
65
+ }