Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
db1c84b1
Commit
db1c84b1
authored
Jan 31, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Output_viewDebugJson, we now have Input_viewDebugJson instead
parent
608b84b9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
117 deletions
+0
-117
dream/platform/src/dream/Output_viewDebugJson.html
dream/platform/src/dream/Output_viewDebugJson.html
+0
-20
dream/platform/src/dream/Output_viewDebugJson.js
dream/platform/src/dream/Output_viewDebugJson.js
+0
-49
dream/platform/static/dream/Output_viewDebugJson.html
dream/platform/static/dream/Output_viewDebugJson.html
+0
-20
dream/platform/static/dream/Output_viewDebugJson.js
dream/platform/static/dream/Output_viewDebugJson.js
+0
-28
No files found.
dream/platform/src/dream/Output_viewDebugJson.html
deleted
100644 → 0
View file @
608b84b9
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Debug JSON
</title>
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"Output_viewDebugJson.js"
type=
"text/javascript"
></script>
</head>
<body>
<label
for=
"json_input"
>
Input
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_input"
class=
"json_input"
></textarea>
<label
for=
"json_output"
>
Output
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_output"
class=
"json_output"
></textarea>
<label
for=
"json_output"
>
Configuration
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_configuration"
class=
"json_configuration"
></textarea>
</body>
</html>
dream/platform/src/dream/Output_viewDebugJson.js
deleted
100644 → 0
View file @
608b84b9
/*global rJS, initGadgetMixin */
(
function
(
window
,
rJS
,
initGadgetMixin
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
aq_getAttachment
"
,
"
jio_getAttachment
"
)
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
this
.
props
.
jio_key
=
options
.
id
;
this
.
props
.
result
=
options
.
result
;
return
gadget
.
aq_getAttachment
({
"
_id
"
:
gadget
.
props
.
jio_key
,
"
_attachment
"
:
"
simulation.json
"
})
.
push
(
function
(
result_json
)
{
var
document
=
JSON
.
parse
(
result_json
),
result
=
document
.
result
.
result_list
,
input
=
{
"
input
"
:
document
.
input
,
"
graph
"
:
document
.
graph
,
"
general
"
:
document
.
general
},
configuration
=
{
"
application_configuration
"
:
document
.
application_configuration
,
"
class_definition
"
:
document
.
class_definition
,
"
constrains
"
:
document
.
constrains
};
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
JSON
.
stringify
(
input
,
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
],
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_configuration
"
).
textContent
=
JSON
.
stringify
(
configuration
,
undefined
,
"
"
);
});
});
}(
window
,
rJS
,
initGadgetMixin
));
dream/platform/static/dream/Output_viewDebugJson.html
deleted
100644 → 0
View file @
608b84b9
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Debug JSON
</title>
<script
src=
"../lib/rsvp.min.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/renderjs.min.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"Output_viewDebugJson.js"
type=
"text/javascript"
></script>
</head>
<body>
<label
for=
"json_input"
>
Input
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_input"
class=
"json_input"
></textarea>
<label
for=
"json_output"
>
Output
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_output"
class=
"json_output"
></textarea>
<label
for=
"json_output"
>
Configuration
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_configuration"
class=
"json_configuration"
></textarea>
</body>
</html>
dream/platform/static/dream/Output_viewDebugJson.js
deleted
100644 → 0
View file @
608b84b9
/*global rJS, initGadgetMixin */
(
function
(
window
,
rJS
,
initGadgetMixin
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
.
declareAcquiredMethod
(
"
aq_getAttachment
"
,
"
jio_getAttachment
"
).
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
this
.
props
.
jio_key
=
options
.
id
;
this
.
props
.
result
=
options
.
result
;
return
gadget
.
aq_getAttachment
({
_id
:
gadget
.
props
.
jio_key
,
_attachment
:
"
simulation.json
"
}).
push
(
function
(
result_json
)
{
var
document
=
JSON
.
parse
(
result_json
),
result
=
document
.
result
.
result_list
,
input
=
{
input
:
document
.
input
,
graph
:
document
.
graph
,
general
:
document
.
general
},
configuration
=
{
application_configuration
:
document
.
application_configuration
,
class_definition
:
document
.
class_definition
,
constrains
:
document
.
constrains
};
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
JSON
.
stringify
(
input
,
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
],
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_configuration
"
).
textContent
=
JSON
.
stringify
(
configuration
,
undefined
,
"
"
);
});
});
})(
window
,
rJS
,
initGadgetMixin
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment