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
Boris Kocherov
rjs_json_form
Commits
120cbfd9
Commit
120cbfd9
authored
Nov 20, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo/with_monaco: remove duplication
parent
a0e92aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
demo/with_monaco/index.js
demo/with_monaco/index.js
+5
-6
No files found.
demo/with_monaco/index.js
View file @
120cbfd9
...
...
@@ -67,8 +67,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM
.
then
(
s
=>
{
return
{
uri
:
mappedUrl
||
schemaUrl
,
schema
:
s
,
schema_url
:
mappedUrl
||
schemaUrl
schema
:
s
};
});
};
...
...
@@ -84,7 +83,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM
return
g
.
render
({
key
:
"
rjs_json_form
"
,
schema
:
schemas
[
0
].
schema
,
schema_url
:
schemas
[
0
].
schema_url
,
schema_url
:
schemas
[
0
].
uri
,
value
:
{}
});
});
...
...
@@ -97,7 +96,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM
monacoSchemaEditor
=
monaco
.
editor
.
create
(
document
.
getElementById
(
"
monaco-schema
"
),
{
model
:
monaco
.
editor
.
createModel
(
JSON
.
stringify
(
schemas
[
0
].
schema
,
null
,
2
),
"
json
"
,
schemas
[
0
].
schema_url
)
model
:
monaco
.
editor
.
createModel
(
JSON
.
stringify
(
schemas
[
0
].
schema
,
null
,
2
),
"
json
"
,
schemas
[
0
].
uri
)
}
);
...
...
@@ -115,7 +114,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM
return
g
.
render
({
key
:
"
rjs_json_form
"
,
schema
:
parsed
,
schema_url
:
schemas
[
0
].
schema_url
,
schema_url
:
schemas
[
0
].
uri
,
});
});
}
...
...
@@ -142,7 +141,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM
return
g
.
render
({
key
:
"
rjs_json_form
"
,
schema
:
schemas
[
0
].
schema
,
schema_url
:
schemas
[
0
].
schema_url
,
schema_url
:
schemas
[
0
].
uri
,
value
:
parsed
});
});
...
...
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