Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
rjs_json_form
Commits
47be5070
Commit
47be5070
authored
Apr 25, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 1_clean_document.json and xmla_settings_schema.json in demo
parent
424b799e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
8 deletions
+43
-8
demo/docs.json
demo/docs.json
+3
-1
demo/docs/1_clean_document.json
demo/docs/1_clean_document.json
+1
-0
demo/docs/xmla_settings_schema.json
demo/docs/xmla_settings_schema.json
+26
-0
demo/gadget_demo_json_schema_form.js
demo/gadget_demo_json_schema_form.js
+13
-7
No files found.
demo/docs.json
View file @
47be5070
[
[
"docs/demo.json"
"docs/1_clean_document.json"
,
"docs/demo.json"
,
"docs/xmla_settings_schema.json"
]
]
demo/docs/1_clean_document.json
0 → 100644
View file @
47be5070
{}
\ No newline at end of file
demo/docs/xmla_settings_schema.json
0 → 100644
View file @
47be5070
{
"$schema"
:
"http://json-schema.org/draft-07/schema"
,
"title"
:
"Settings for XMLA connection"
,
"properties"
:
{
"url"
:
{
"uniqueItems"
:
true
,
"items"
:
{
"format"
:
"uri"
,
"minLength"
:
1
,
"type"
:
"string"
},
"minItems"
:
1
,
"type"
:
"array"
},
"username"
:
{
"type"
:
"string"
},
"password"
:
{
"type"
:
"string"
}
},
"required"
:
[
"url"
],
"additionalProperties"
:
false
}
\ No newline at end of file
demo/gadget_demo_json_schema_form.js
View file @
47be5070
...
@@ -50,11 +50,6 @@
...
@@ -50,11 +50,6 @@
rJS
(
window
)
rJS
(
window
)
.
ready
(
function
(
g
)
{
.
ready
(
function
(
g
)
{
g
.
props
=
{};
g
.
props
=
{};
g
.
props
.
schemas
=
[
"
http://json-schema.org/draft-07/schema
"
,
"
http://json-schema.org/draft-06/schema
"
,
"
http://json-schema.org/draft-04/schema
"
];
return
RSVP
.
Queue
()
return
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
all
([
return
RSVP
.
all
([
...
@@ -63,9 +58,20 @@
...
@@ -63,9 +58,20 @@
]);
]);
})
})
.
push
(
function
(
arr
)
{
.
push
(
function
(
arr
)
{
g
.
props
.
schemas
=
g
.
props
.
schemas
.
concat
(
arr
[
0
]);
var
schemas
=
arr
[
0
],
docs
=
arr
[
1
];
g
.
props
.
schemas
=
docs
.
filter
(
function
(
v
)
{
var
suffix
=
"
_schema.json
"
;
return
v
.
indexOf
(
suffix
,
v
.
length
-
suffix
.
length
)
!==
-
1
;
});
g
.
props
.
schemas
=
g
.
props
.
schemas
.
concat
([
"
http://json-schema.org/draft-07/schema
"
,
"
http://json-schema.org/draft-06/schema
"
,
"
http://json-schema.org/draft-04/schema
"
]);
g
.
props
.
schemas
=
g
.
props
.
schemas
.
concat
(
schemas
);
g
.
props
.
schemas
=
[
"
form generated by schema
"
].
concat
(
g
.
props
.
schemas
);
g
.
props
.
schemas
=
[
"
form generated by schema
"
].
concat
(
g
.
props
.
schemas
);
g
.
props
.
documents
=
arr
[
1
].
concat
(
arr
[
0
]
);
g
.
props
.
documents
=
docs
.
concat
(
schemas
);
g
.
props
.
documents
=
[
"
open document
"
].
concat
(
g
.
props
.
documents
);
g
.
props
.
documents
=
[
"
open document
"
].
concat
(
g
.
props
.
documents
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
...
...
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