Move website files to /website/

This commit is contained in:
Alex Dima 2021-11-16 22:32:27 +01:00
parent 430d8e6e17
commit d9013a86c4
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
191 changed files with 9 additions and 9 deletions

View file

@ -0,0 +1,39 @@
var editor = monaco.editor.create(document.getElementById('container'), {
value: '{\n\t"dependencies": {\n\t\t\n\t}\n}\n',
language: 'json'
});
var commandId = editor.addCommand(
0,
function () {
// services available in `ctx`
alert('my command is executing!');
},
''
);
monaco.languages.registerCodeLensProvider('json', {
provideCodeLenses: function (model, token) {
return {
lenses: [
{
range: {
startLineNumber: 1,
startColumn: 1,
endLineNumber: 2,
endColumn: 1
},
id: 'First Line',
command: {
id: commandId,
title: 'First Line'
}
}
],
dispose: () => {}
};
},
resolveCodeLens: function (model, codeLens, token) {
return codeLens;
}
});