You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
524 lines
15 KiB
HTML
524 lines
15 KiB
HTML
<!DOCTYPE html>
|
|
<!-- THIS IS A GENERATED FILE VIA gulp generate-test-samples -->
|
|
<html>
|
|
<head>
|
|
<base href="..">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
</head>
|
|
<body>
|
|
<style>
|
|
/*----------------------------------------SAMPLE CSS START*/
|
|
|
|
|
|
|
|
/*----------------------------------------SAMPLE CSS END*/
|
|
</style>
|
|
<a class="loading-opts" href="playground.generated/index.html">[<< BACK]</a> <br/>
|
|
THIS IS A GENERATED FILE VIA gulp generate-test-samples
|
|
|
|
<div id="bar" style="margin-bottom: 6px;"></div>
|
|
|
|
<div style="clear:both"></div>
|
|
<div id="outer-container" style="width:800px;height:450px;border: 1px solid grey">
|
|
<!-- ----------------------------------------SAMPLE HTML START-->
|
|
|
|
<div id="container" style="height:100%;"></div>
|
|
|
|
|
|
<!-- ----------------------------------------SAMPLE HTML END-->
|
|
</div>
|
|
<div style="clear:both"></div>
|
|
|
|
<script src="../metadata.js"></script>
|
|
<script src="dev-setup.js"></script>
|
|
<script>
|
|
loadEditor(function() {
|
|
/*----------------------------------------SAMPLE JS START*/
|
|
|
|
monaco.languages.registerDocumentSymbolProvider('json', {
|
|
provideDocumentSymbols: function (model, token) {
|
|
return [
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'File',
|
|
kind: 0,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Module',
|
|
kind: 1,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Namespace',
|
|
kind: 2,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Package',
|
|
kind: 3,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Class',
|
|
kind: 4,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Method',
|
|
kind: 5,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Property',
|
|
kind: 6,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Field',
|
|
kind: 7,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Constructor',
|
|
kind: 8,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Enum',
|
|
kind: 9,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Interface',
|
|
kind: 10,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Function',
|
|
kind: 11,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Variable',
|
|
kind: 12,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Constant',
|
|
kind: 13,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'String',
|
|
kind: 14,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Number',
|
|
kind: 15,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Boolean',
|
|
kind: 16,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Array',
|
|
kind: 17,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Object',
|
|
kind: 18,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Key',
|
|
kind: 19,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Null',
|
|
kind: 20,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'EnumMember',
|
|
kind: 21,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Struct',
|
|
kind: 22,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Event',
|
|
kind: 23,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'Operator',
|
|
kind: 24,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
{
|
|
range: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
},
|
|
name: 'TypeParameter',
|
|
kind: 25,
|
|
detail: "",
|
|
tags: [],
|
|
selectionRange: {
|
|
startLineNumber: 1,
|
|
startColumn: 1,
|
|
endLineNumber: 2,
|
|
endColumn: 1
|
|
}
|
|
},
|
|
];
|
|
}
|
|
});
|
|
|
|
// press Ctrl+Shift+O to show the symbols in the editor
|
|
monaco.editor.create(document.getElementById("container"), {
|
|
value: "{\n\t\"dependencies\": {\n\t\t\n\t}\n}\n",
|
|
language: "json"
|
|
});
|
|
|
|
/*----------------------------------------SAMPLE JS END*/
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |