New v2 project structure
This commit is contained in:
parent
e20415a5bd
commit
0a807605ad
727 changed files with 51204 additions and 0 deletions
.dockerignore.gitattributes
.idea/.idea.Moonlight/.idea
Moonlight.slnMoonlight
App.razor
Assets
Core
css
fonts
js
FileManager/editor
ace.cssace.jsmode-abap.jsmode-abc.jsmode-actionscript.jsmode-ada.jsmode-alda.jsmode-apache_conf.jsmode-apex.jsmode-applescript.jsmode-aql.jsmode-asciidoc.jsmode-asl.jsmode-assembly_x86.jsmode-autohotkey.jsmode-batchfile.jsmode-c9search.jsmode-c_cpp.jsmode-cirru.jsmode-clojure.jsmode-cobol.jsmode-coffee.jsmode-coldfusion.jsmode-crystal.jsmode-csharp.jsmode-csound_document.jsmode-csound_orchestra.jsmode-csound_score.jsmode-csp.jsmode-css.jsmode-curly.jsmode-d.jsmode-dart.jsmode-diff.jsmode-django.jsmode-dockerfile.jsmode-dot.jsmode-drools.jsmode-edifact.jsmode-eiffel.jsmode-ejs.jsmode-elixir.jsmode-elm.jsmode-erlang.jsmode-forth.jsmode-fortran.jsmode-fsharp.jsmode-fsl.jsmode-ftl.jsmode-gcode.jsmode-gherkin.jsmode-gitignore.jsmode-glsl.jsmode-gobstones.jsmode-golang.jsmode-graphqlschema.jsmode-groovy.jsmode-haml.jsmode-handlebars.jsmode-haskell.jsmode-haskell_cabal.jsmode-haxe.jsmode-hjson.jsmode-html.jsmode-html_elixir.jsmode-html_ruby.jsmode-ini.jsmode-io.jsmode-ion.jsmode-jack.jsmode-jade.jsmode-java.jsmode-javascript.jsmode-json.jsmode-json5.js
25
.dockerignore
Normal file
25
.dockerignore
Normal file
|
@ -0,0 +1,25 @@
|
|||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/.idea
|
||||
**/*.*proj.user
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/azds.yaml
|
||||
**/bin
|
||||
**/charts
|
||||
**/docker-compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
LICENSE
|
||||
README.md
|
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
13
.idea/.idea.Moonlight/.idea/.gitignore
generated
vendored
Normal file
13
.idea/.idea.Moonlight/.idea/.gitignore
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/modules.xml
|
||||
/contentModel.xml
|
||||
/projectSettingsUpdater.xml
|
||||
/.idea.Moonlight.iml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
7
.idea/.idea.Moonlight/.idea/discord.xml
generated
Normal file
7
.idea/.idea.Moonlight/.idea/discord.xml
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DiscordProjectSettings">
|
||||
<option name="show" value="PROJECT_FILES" />
|
||||
<option name="description" value="" />
|
||||
</component>
|
||||
</project>
|
4
.idea/.idea.Moonlight/.idea/encodings.xml
generated
Normal file
4
.idea/.idea.Moonlight/.idea/encodings.xml
generated
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||
</project>
|
8
.idea/.idea.Moonlight/.idea/indexLayout.xml
generated
Normal file
8
.idea/.idea.Moonlight/.idea/indexLayout.xml
generated
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
6
.idea/.idea.Moonlight/.idea/vcs.xml
generated
Normal file
6
.idea/.idea.Moonlight/.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
18
Moonlight.sln
Normal file
18
Moonlight.sln
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Moonlight", "Moonlight\Moonlight.csproj", "{B9AD26D2-AAA7-4C57-884D-5AACAA54D5B6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B9AD26D2-AAA7-4C57-884D-5AACAA54D5B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B9AD26D2-AAA7-4C57-884D-5AACAA54D5B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B9AD26D2-AAA7-4C57-884D-5AACAA54D5B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B9AD26D2-AAA7-4C57-884D-5AACAA54D5B6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
26
Moonlight/App.razor
Normal file
26
Moonlight/App.razor
Normal file
|
@ -0,0 +1,26 @@
|
|||
@using Moonlight.Core.UI.Layouts
|
||||
@using Moonlight.Core.Services
|
||||
|
||||
@inject FeatureService FeatureService
|
||||
|
||||
@{
|
||||
var assemblies = FeatureService.UiContext.RouteAssemblies;
|
||||
var firstAssembly = assemblies.First();
|
||||
var additionalAssemblies = assemblies.Skip(1).ToArray();
|
||||
}
|
||||
|
||||
<Router AppAssembly="@firstAssembly" AdditionalAssemblies="@additionalAssemblies">
|
||||
<Found Context="routeData">
|
||||
<CascadingValue TValue="Type" Name="TargetPageType" Value="@routeData.PageType">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
|
||||
</CascadingValue>
|
||||
</Found>
|
||||
<NotFound>
|
||||
<PageTitle>Not found</PageTitle>
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<IconAlert Title="Unknown page" Icon="bx-search">
|
||||
The address you are trying to access is not associated with any page. To resume please go back or to the <a href="/">homepage</a>
|
||||
</IconAlert>
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
51
Moonlight/Assets/Core/css/blazor.css
Normal file
51
Moonlight/Assets/Core/css/blazor.css
Normal file
|
@ -0,0 +1,51 @@
|
|||
.my-reconnect-modal {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.components-reconnect-hide > div {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.components-reconnect-show > div {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.components-reconnect-failed > div {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.components-reconnect-rejected > div {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.components-reconnect-show > .show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.components-reconnect-failed > .failed {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.components-reconnect-rejected > .rejected {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.components-reconnect-hide > .default {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.components-reconnect-hide {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.components-reconnect-show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.components-reconnect-failed {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.components-reconnect-rejected {
|
||||
display: block;
|
||||
}
|
1
Moonlight/Assets/Core/css/boxicons.css
Normal file
1
Moonlight/Assets/Core/css/boxicons.css
Normal file
File diff suppressed because one or more lines are too long
1126
Moonlight/Assets/Core/css/sweetalert2dark.css
Normal file
1126
Moonlight/Assets/Core/css/sweetalert2dark.css
Normal file
File diff suppressed because it is too large
Load diff
17
Moonlight/Assets/Core/css/utils.css
Normal file
17
Moonlight/Assets/Core/css/utils.css
Normal file
|
@ -0,0 +1,17 @@
|
|||
.table-row-hover-content {
|
||||
visibility: hidden;
|
||||
}
|
||||
tr:hover .table-row-hover-content {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||
.hide-scrollbar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide scrollbar for IE, Edge and Firefox */
|
||||
.hide-scrollbar {
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
}
|
BIN
Moonlight/Assets/Core/fonts/Inter.woff2
Normal file
BIN
Moonlight/Assets/Core/fonts/Inter.woff2
Normal file
Binary file not shown.
BIN
Moonlight/Assets/Core/fonts/boxicons.eot
Normal file
BIN
Moonlight/Assets/Core/fonts/boxicons.eot
Normal file
Binary file not shown.
1653
Moonlight/Assets/Core/fonts/boxicons.svg
Normal file
1653
Moonlight/Assets/Core/fonts/boxicons.svg
Normal file
File diff suppressed because one or more lines are too long
After (image error) Size: 1.2 MiB |
BIN
Moonlight/Assets/Core/fonts/boxicons.ttf
Normal file
BIN
Moonlight/Assets/Core/fonts/boxicons.ttf
Normal file
Binary file not shown.
BIN
Moonlight/Assets/Core/fonts/boxicons.woff
Normal file
BIN
Moonlight/Assets/Core/fonts/boxicons.woff
Normal file
Binary file not shown.
BIN
Moonlight/Assets/Core/fonts/boxicons.woff2
Normal file
BIN
Moonlight/Assets/Core/fonts/boxicons.woff2
Normal file
Binary file not shown.
168
Moonlight/Assets/Core/js/alerter.js
Normal file
168
Moonlight/Assets/Core/js/alerter.js
Normal file
|
@ -0,0 +1,168 @@
|
|||
class AlertHelper {
|
||||
constructor(description, color, type, icon = "") {
|
||||
|
||||
this.htmlHandle = buildAlert(description, color, type, icon, this)
|
||||
|
||||
this.modal = new bootstrap.Modal(this.htmlHandle, {
|
||||
focus: true
|
||||
});
|
||||
|
||||
this.ask = async function () {
|
||||
// This should wait until the modal has been submitted or cancled and the return the input value
|
||||
|
||||
// Create a new promise that will be resolved when the modal is submitted or cancelled
|
||||
return new Promise((resolve, reject) => {
|
||||
this.resolvePromise = resolve;
|
||||
this.modal.show();
|
||||
|
||||
// Handle modal close events
|
||||
this.modal._element.addEventListener('hidden.bs.modal', () => {
|
||||
|
||||
if(type === "confirm")
|
||||
this.resolvePromise(false);
|
||||
else
|
||||
this.resolvePromise("");
|
||||
|
||||
setTimeout(() => {
|
||||
this.htmlHandle.remove();
|
||||
}, 1000);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function buildAlert(description, color, type, icon, handle) {
|
||||
var modal = document.createElement("div");
|
||||
modal.classList.add("modal", "fade");
|
||||
modal.tabIndex = -1;
|
||||
|
||||
var modalDialog = document.createElement("div");
|
||||
modalDialog.classList.add("modal-dialog", "modal-dialog-centered");
|
||||
|
||||
var modalContent = document.createElement("div");
|
||||
modalContent.classList.add("modal-content");
|
||||
|
||||
modalContent.appendChild(buildAlertBody(description, color, type, icon));
|
||||
modalContent.appendChild(buildAlertFooter(type, handle));
|
||||
|
||||
modalDialog.appendChild(modalContent);
|
||||
|
||||
modal.appendChild(modalDialog);
|
||||
|
||||
return modal;
|
||||
}
|
||||
|
||||
function buildAlertBody(description, color, type, icon) {
|
||||
var modalBody = document.createElement("modal-body");
|
||||
modalBody.classList.add("modal-body");
|
||||
|
||||
if (type !== "text") {
|
||||
var flexBox = document.createElement("div");
|
||||
flexBox.classList.add("d-flex", "justify-content-center");
|
||||
|
||||
var symbol = document.createElement("div");
|
||||
symbol.classList.add("symbol", "symbol-circle", "h-90px", "w-90px", "bg-" + color, "text-center", "d-flex", "justify-content-center", "align-items-center");
|
||||
|
||||
var iconE = document.createElement("i");
|
||||
iconE.classList.add("bx", "bx-lg", icon, "text-white", "align-middle", "p-10");
|
||||
|
||||
symbol.appendChild(iconE);
|
||||
flexBox.appendChild(symbol);
|
||||
|
||||
modalBody.appendChild(flexBox);
|
||||
}
|
||||
|
||||
var descE = document.createElement("p");
|
||||
descE.classList.add("mt-5", "text-gray-800", "fs-4", "fw-semibold", "text-center");
|
||||
descE.innerText = description;
|
||||
|
||||
modalBody.appendChild(descE);
|
||||
|
||||
if (type === "text") {
|
||||
var txtInput = document.createElement("input");
|
||||
|
||||
txtInput.classList.add("form-control", "w-100", "text-center", "mt-2");
|
||||
txtInput.type = "text";
|
||||
txtInput.value = icon;
|
||||
|
||||
modalBody.appendChild(txtInput);
|
||||
}
|
||||
|
||||
return modalBody;
|
||||
}
|
||||
|
||||
function buildAlertFooter(type, handle) {
|
||||
var modalFooter = document.createElement("modal-footer");
|
||||
modalFooter.classList.add("modal-footer");
|
||||
|
||||
var buttonGroup = document.createElement("div");
|
||||
buttonGroup.classList.add("btn-group", "w-100");
|
||||
|
||||
if (type === "confirm" || type === "text") {
|
||||
var submitButton = document.createElement("button");
|
||||
|
||||
submitButton.onclick = function () {
|
||||
if(type === "confirm")
|
||||
handle.resolvePromise(true);
|
||||
else
|
||||
handle.resolvePromise(handle.htmlHandle.getElementsByTagName("input")[0].value);
|
||||
|
||||
handle.modal.hide();
|
||||
|
||||
setTimeout(() => {
|
||||
handle.htmlHandle.remove();
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
if(type === "confirm")
|
||||
{
|
||||
submitButton.innerText = "Yes";
|
||||
submitButton.classList.add("btn", "btn-primary", "w-50");
|
||||
}
|
||||
else
|
||||
{
|
||||
submitButton.innerText = "Submit";
|
||||
submitButton.classList.add("btn", "btn-primary", "w-50");
|
||||
}
|
||||
|
||||
var cancelButton = document.createElement("button");
|
||||
cancelButton.onclick = function () {
|
||||
if(type === "confirm")
|
||||
handle.resolvePromise(false);
|
||||
else
|
||||
handle.resolvePromise("");
|
||||
|
||||
handle.modal.hide();
|
||||
|
||||
setTimeout(() => {
|
||||
handle.htmlHandle.remove();
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
if(type === "confirm")
|
||||
{
|
||||
cancelButton.innerText = "No";
|
||||
cancelButton.classList.add("btn", "btn-danger", "w-50");
|
||||
}
|
||||
else
|
||||
{
|
||||
cancelButton.innerText = "Cancel";
|
||||
cancelButton.classList.add("btn", "btn-secondary", "w-50");
|
||||
}
|
||||
|
||||
buttonGroup.appendChild(submitButton);
|
||||
buttonGroup.appendChild(cancelButton);
|
||||
} else {
|
||||
var okButton = document.createElement("button");
|
||||
okButton.classList.add("btn", "btn-primary");
|
||||
okButton.innerText = "Cancel";
|
||||
okButton.setAttribute("data-bs-dismiss", "modal");
|
||||
|
||||
buttonGroup.appendChild(okButton);
|
||||
}
|
||||
|
||||
modalFooter.appendChild(buttonGroup);
|
||||
|
||||
return modalFooter;
|
||||
}
|
7
Moonlight/Assets/Core/js/bootstrap.js
vendored
Normal file
7
Moonlight/Assets/Core/js/bootstrap.js
vendored
Normal file
File diff suppressed because one or more lines are too long
293
Moonlight/Assets/Core/js/moonlight.js
Normal file
293
Moonlight/Assets/Core/js/moonlight.js
Normal file
|
@ -0,0 +1,293 @@
|
|||
window.moonlight = {
|
||||
toasts: {
|
||||
success: function(title, message, timeout)
|
||||
{
|
||||
this.show(title, message, timeout, "success");
|
||||
},
|
||||
danger: function(title, message, timeout)
|
||||
{
|
||||
this.show(title, message, timeout, "danger");
|
||||
},
|
||||
warning: function(title, message, timeout)
|
||||
{
|
||||
this.show(title, message, timeout, "warning");
|
||||
},
|
||||
info: function(title, message, timeout)
|
||||
{
|
||||
this.show(title, message, timeout, "info");
|
||||
},
|
||||
show: function(title, message, timeout, color)
|
||||
{
|
||||
var toast = new ToastHelper(title, message, color, timeout);
|
||||
toast.show();
|
||||
},
|
||||
create: function (id, text) {
|
||||
var toast = new ToastHelper("Progress", text, "secondary", 0);
|
||||
toast.showAlways();
|
||||
|
||||
toast.domElement.setAttribute('data-ml-toast-id', id);
|
||||
},
|
||||
modify: function (id, text) {
|
||||
var toast = document.querySelector('[data-ml-toast-id="' + id + '"]');
|
||||
|
||||
toast.getElementsByClassName("toast-body")[0].getElementsByTagName("span")[0].innerText = text;
|
||||
},
|
||||
remove: function (id) {
|
||||
var toast = document.querySelector('[data-ml-toast-id="' + id + '"]');
|
||||
bootstrap.Toast.getInstance(toast).hide();
|
||||
|
||||
setTimeout(() => {
|
||||
toast.remove();
|
||||
}, 2);
|
||||
}
|
||||
},
|
||||
modals: {
|
||||
show: function (id, focus)
|
||||
{
|
||||
let modal = new bootstrap.Modal(document.getElementById(id), {
|
||||
focus: focus
|
||||
});
|
||||
|
||||
modal.show();
|
||||
},
|
||||
hide: function (id)
|
||||
{
|
||||
let element = document.getElementById(id)
|
||||
let modal = bootstrap.Modal.getInstance(element)
|
||||
modal.hide()
|
||||
}
|
||||
},
|
||||
alerts: {
|
||||
getHelper: function (description, color, type, icon = "") {
|
||||
return new AlertHelper(description, color, type, icon);
|
||||
},
|
||||
info: function (title, description) {
|
||||
this.getHelper(title, "info", "", "bx-info-circle").ask(); // Ignore, as it should not be a blocking call
|
||||
},
|
||||
success: function (title, description) {
|
||||
this.getHelper(title, "success", "", "bx-check").ask(); // Ignore, as it should not be a blocking call
|
||||
},
|
||||
warning: function (title, description) {
|
||||
this.getHelper(title, "warning", "", "bx-error-circle").ask(); // Ignore, as it should not be a blocking call
|
||||
},
|
||||
error: function (title, description) {
|
||||
this.getHelper(title, "danger", "", "bx-error").ask(); // Ignore, as it should not be a blocking call
|
||||
},
|
||||
yesno: async function (title, yesText, noText) {
|
||||
return await this.getHelper(title, "secondary", "confirm", "bx-question-mark").ask();
|
||||
},
|
||||
text: async function (title, description, initialValue) {
|
||||
return await this.getHelper(title, "primary", "text", initialValue).ask();
|
||||
}
|
||||
},
|
||||
utils: {
|
||||
download: async function (fileName, contentStreamReference) {
|
||||
const arrayBuffer = await contentStreamReference.arrayBuffer();
|
||||
const blob = new Blob([arrayBuffer]);
|
||||
const url = URL.createObjectURL(blob);
|
||||
const anchorElement = document.createElement('a');
|
||||
anchorElement.href = url;
|
||||
anchorElement.download = fileName ?? '';
|
||||
anchorElement.click();
|
||||
anchorElement.remove();
|
||||
URL.revokeObjectURL(url);
|
||||
},
|
||||
vendo: function ()
|
||||
{
|
||||
try
|
||||
{
|
||||
var request = new XMLHttpRequest();
|
||||
|
||||
request.open("GET", "https://pagead2.googlesyndication.com/pagead/js/aidsbygoogle.js?client=ca-pub-1234567890123456", false);
|
||||
request.send();
|
||||
|
||||
if(request.status === 404)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
},
|
||||
registerUnload: function (dotNetObjRef)
|
||||
{
|
||||
window.addEventListener("beforeunload", function()
|
||||
{
|
||||
dotNetObjRef.invokeMethodAsync('Unload');
|
||||
}, false);
|
||||
}
|
||||
},
|
||||
textEditor: {
|
||||
create: function(id)
|
||||
{
|
||||
BalloonEditor
|
||||
.create(document.getElementById(id), {
|
||||
toolbar: [ 'heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote' ],
|
||||
heading: {
|
||||
options: [
|
||||
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
|
||||
{ model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' },
|
||||
{ model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' }
|
||||
]
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
},
|
||||
get: function (id)
|
||||
{
|
||||
let editor = document.getElementById(id).ckeditorInstance;
|
||||
return editor.getData();
|
||||
},
|
||||
set: function (id, data)
|
||||
{
|
||||
let editor = document.getElementById(id).ckeditorInstance;
|
||||
editor.setData(data);
|
||||
}
|
||||
},
|
||||
clipboard: {
|
||||
copy: function (text) {
|
||||
if (!navigator.clipboard) {
|
||||
var textArea = document.createElement("textarea");
|
||||
textArea.value = text;
|
||||
|
||||
// Avoid scrolling to bottom
|
||||
textArea.style.top = "0";
|
||||
textArea.style.left = "0";
|
||||
textArea.style.position = "fixed";
|
||||
|
||||
document.body.appendChild(textArea);
|
||||
textArea.focus();
|
||||
textArea.select();
|
||||
|
||||
try {
|
||||
var successful = document.execCommand('copy');
|
||||
var msg = successful ? 'successful' : 'unsuccessful';
|
||||
} catch (err) {
|
||||
console.error('Fallback: Oops, unable to copy', err);
|
||||
}
|
||||
|
||||
document.body.removeChild(textArea);
|
||||
return;
|
||||
}
|
||||
navigator.clipboard.writeText(text).then(function () {
|
||||
},
|
||||
function (err) {
|
||||
console.error('Async: Could not copy text: ', err);
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
dropzone: {
|
||||
create: function (elementId, url) {
|
||||
var id = "#" + elementId;
|
||||
var dropzone = document.querySelector(id);
|
||||
|
||||
// set the preview element template
|
||||
var previewNode = dropzone.querySelector(".dropzone-item");
|
||||
previewNode.id = "";
|
||||
var previewTemplate = previewNode.parentNode.innerHTML;
|
||||
previewNode.parentNode.removeChild(previewNode);
|
||||
|
||||
var fileDropzone = new Dropzone(id, {
|
||||
url: url,
|
||||
maxFilesize: 100,
|
||||
previewTemplate: previewTemplate,
|
||||
previewsContainer: id + " .dropzone-items",
|
||||
clickable: ".dropzone-panel",
|
||||
createImageThumbnails: false,
|
||||
ignoreHiddenFiles: false,
|
||||
disablePreviews: false
|
||||
});
|
||||
|
||||
fileDropzone.on("addedfile", function (file) {
|
||||
const dropzoneItems = dropzone.querySelectorAll('.dropzone-item');
|
||||
dropzoneItems.forEach(dropzoneItem => {
|
||||
dropzoneItem.style.display = '';
|
||||
});
|
||||
|
||||
// Create a progress bar for the current file
|
||||
var progressBar = dropzone.querySelector('.dropzone-item .progress-bar');
|
||||
progressBar.style.width = "0%";
|
||||
});
|
||||
|
||||
// Update the progress bar for each file
|
||||
fileDropzone.on("uploadprogress", function (file, progress, bytesSent) {
|
||||
var dropzoneItem = file.previewElement;
|
||||
var progressBar = dropzoneItem.querySelector('.progress-bar');
|
||||
progressBar.style.width = progress + "%";
|
||||
});
|
||||
|
||||
// Hide the progress bar for each file when the upload is complete
|
||||
fileDropzone.on("complete", function (file) {
|
||||
var dropzoneItem = file.previewElement;
|
||||
var progressBar = dropzoneItem.querySelector('.progress-bar');
|
||||
|
||||
setTimeout(function () {
|
||||
progressBar.style.opacity = "1";
|
||||
progressBar.classList.remove("bg-primary");
|
||||
progressBar.classList.add("bg-success");
|
||||
}, 300);
|
||||
});
|
||||
},
|
||||
updateUrl: function (elementId, url) {
|
||||
Dropzone.forElement("#" + elementId).options.url = url;
|
||||
}
|
||||
},
|
||||
editor: {
|
||||
instance: {},
|
||||
|
||||
create: function (mount, theme, mode, initialContent, lines, fontSize) {
|
||||
this.instance = ace.edit(mount);
|
||||
|
||||
this.instance.setTheme("ace/theme/" + theme);
|
||||
this.instance.session.setMode("ace/mode/" + mode);
|
||||
this.instance.setShowPrintMargin(false);
|
||||
this.instance.setOptions({
|
||||
minLines: lines,
|
||||
maxLines: lines
|
||||
});
|
||||
|
||||
this.instance.setValue(initialContent);
|
||||
this.instance.setFontSize(fontSize);
|
||||
},
|
||||
|
||||
setValue: function (content) {
|
||||
this.instance.setValue(content);
|
||||
this.instance.moveCursorTo(0);
|
||||
},
|
||||
|
||||
getValue: function () {
|
||||
return this.instance.getValue();
|
||||
},
|
||||
|
||||
setMode: function (mode) {
|
||||
this.instance.session.setMode("ace/mode/" + mode);
|
||||
}
|
||||
},
|
||||
hotkeys: {
|
||||
storage: {},
|
||||
|
||||
registerHotkey: function (key, modifier, action, dotNetObjRef) {
|
||||
const hotkeyListener = (event) => {
|
||||
if (event.code === key && event[modifier + 'Key']) {
|
||||
event.preventDefault();
|
||||
dotNetObjRef.invokeMethodAsync('OnHotkeyPressed', action);
|
||||
}
|
||||
};
|
||||
this.storage[key + modifier] = hotkeyListener;
|
||||
window.addEventListener('keydown', hotkeyListener);
|
||||
},
|
||||
|
||||
unregisterHotkey: function (key, modifier) {
|
||||
const listenerKey = key + modifier;
|
||||
if (this.storage[listenerKey]) {
|
||||
window.removeEventListener('keydown', this.hotkeys[listenerKey]);
|
||||
delete this.storage[listenerKey];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
38
Moonlight/Assets/Core/js/sidebar.js
Normal file
38
Moonlight/Assets/Core/js/sidebar.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
function showSidebarDrawer() {
|
||||
let sidebar = document.getElementsByClassName("app-sidebar")[0];
|
||||
|
||||
sidebar.classList.add("drawer");
|
||||
sidebar.classList.add("drawer-start");
|
||||
sidebar.setAttribute("data-kt-drawer-overlay", "true");
|
||||
|
||||
setTimeout(() => {
|
||||
sidebar.classList.add("drawer-on");
|
||||
|
||||
let disableOverlay = document.createElement("div");
|
||||
|
||||
disableOverlay.classList.add("drawer-overlay");
|
||||
disableOverlay.style.zIndex = "105";
|
||||
|
||||
disableOverlay.onclick = () => hideSidebarDrawer();
|
||||
|
||||
document.body.appendChild(disableOverlay);
|
||||
}, 100);
|
||||
}
|
||||
|
||||
function hideSidebarDrawer()
|
||||
{
|
||||
let sidebar = document.getElementsByClassName("app-sidebar")[0];
|
||||
|
||||
sidebar.classList.remove("drawer-on");
|
||||
|
||||
setTimeout(() => {
|
||||
sidebar.classList.remove("drawer");
|
||||
sidebar.classList.remove("drawer-start");
|
||||
|
||||
|
||||
sidebar.setAttribute("data-kt-drawer-overlay", "false");
|
||||
|
||||
let disableOverlay = document.getElementsByClassName("drawer-overlay")[0];
|
||||
disableOverlay.remove();
|
||||
}, 350);
|
||||
}
|
6
Moonlight/Assets/Core/js/sweetalert2.js
Normal file
6
Moonlight/Assets/Core/js/sweetalert2.js
Normal file
File diff suppressed because one or more lines are too long
166
Moonlight/Assets/Core/js/toaster.js
Normal file
166
Moonlight/Assets/Core/js/toaster.js
Normal file
|
@ -0,0 +1,166 @@
|
|||
class ToastHelper {
|
||||
constructor(title, description, color, timeout) {
|
||||
var toastElement = buildToast(title, description, color);
|
||||
var toastWrapper = getOrCreateToastWrapper();
|
||||
toastWrapper.append(toastElement);
|
||||
this.bootstrapToast = new bootstrap.Toast(toastElement, {
|
||||
autohide: false
|
||||
});
|
||||
this.domElement = toastElement;
|
||||
|
||||
this.show = function () {
|
||||
this.bootstrapToast.show();
|
||||
|
||||
if (timeout && typeof timeout === 'number') {
|
||||
setTimeout(() => {
|
||||
this.hide();
|
||||
toastElement.remove();
|
||||
}, timeout);
|
||||
}
|
||||
}
|
||||
|
||||
this.showAlways = function () {
|
||||
this.bootstrapToast.show();
|
||||
}
|
||||
|
||||
this.hide = function () {
|
||||
this.bootstrapToast.hide();
|
||||
}
|
||||
|
||||
this.dispose = function () {
|
||||
this.bootstrapToast.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getOrCreateToastWrapper() {
|
||||
var toastWrapper = document.querySelector('body > [data-toast-wrapper]');
|
||||
|
||||
if (!toastWrapper) {
|
||||
toastWrapper = document.createElement('div');
|
||||
toastWrapper.style.zIndex = 11;
|
||||
toastWrapper.style.position = 'fixed';
|
||||
toastWrapper.style.bottom = 0;
|
||||
toastWrapper.style.right = 0;
|
||||
toastWrapper.style.padding = '1rem';
|
||||
toastWrapper.setAttribute('data-toast-wrapper', '');
|
||||
document.body.append(toastWrapper);
|
||||
}
|
||||
|
||||
return toastWrapper;
|
||||
}
|
||||
|
||||
function buildToastHeader(title, color) {
|
||||
var toastHeader = document.createElement('div');
|
||||
|
||||
if(title !== "")
|
||||
{
|
||||
toastHeader.setAttribute('class', 'toast-header');
|
||||
|
||||
var titleE = document.createElement('div');
|
||||
titleE.setAttribute('class', 'me-auto');
|
||||
|
||||
var iconE = document.createElement("i");
|
||||
|
||||
var iconTag = "bx-info-circle";
|
||||
|
||||
switch (color)
|
||||
{
|
||||
case "info":
|
||||
iconTag = "bx-info-circle";
|
||||
break
|
||||
|
||||
case "success":
|
||||
iconTag = "bx-check-circle";
|
||||
break
|
||||
|
||||
case "warning":
|
||||
iconTag = "bx-error-circle";
|
||||
break
|
||||
|
||||
case "danger":
|
||||
iconTag = "bx-error";
|
||||
break
|
||||
}
|
||||
|
||||
iconE.setAttribute("class", "align-middle me-2 bx bx-sm " + iconTag + " text-" + (color === "secondary" ? "primary" : color));
|
||||
|
||||
var titleText = document.createElement("span");
|
||||
titleText.setAttribute("class", "text-white fs-6 fw-bold align-middle");
|
||||
titleText.innerText = title;
|
||||
|
||||
titleE.appendChild(iconE);
|
||||
titleE.appendChild(titleText);
|
||||
|
||||
var closeButton = document.createElement('button');
|
||||
closeButton.setAttribute('type', 'button');
|
||||
closeButton.setAttribute('class', 'btn-close');
|
||||
closeButton.setAttribute('data-bs-dismiss', 'toast');
|
||||
closeButton.setAttribute('data-label', 'Close');
|
||||
|
||||
toastHeader.append(titleE);
|
||||
toastHeader.append(closeButton);
|
||||
}
|
||||
|
||||
return toastHeader;
|
||||
}
|
||||
|
||||
function buildToastBody(title, description, color) {
|
||||
var toastBody = document.createElement('div');
|
||||
toastBody.setAttribute("class", "toast-body")
|
||||
|
||||
if(title === "")
|
||||
{
|
||||
|
||||
var iconE = document.createElement("i");
|
||||
|
||||
var iconTag = "bx-info-circle";
|
||||
|
||||
switch (color)
|
||||
{
|
||||
case "info":
|
||||
iconTag = "bx-info-circle";
|
||||
break
|
||||
|
||||
case "success":
|
||||
iconTag = "bx-check-circle";
|
||||
break
|
||||
|
||||
case "warning":
|
||||
iconTag = "bx-error-circle";
|
||||
break
|
||||
|
||||
case "danger":
|
||||
iconTag = "bx-error";
|
||||
break
|
||||
}
|
||||
|
||||
iconE.setAttribute("class", "align-middle me-2 bx bx-sm " + iconTag + " text-" + (color === "secondary" ? "primary" : color));
|
||||
|
||||
toastBody.appendChild(iconE);
|
||||
}
|
||||
|
||||
var contentSpan = document.createElement("span");
|
||||
contentSpan.setAttribute("class", "fs-5 align-middle text-white")
|
||||
contentSpan.innerText = description;
|
||||
|
||||
toastBody.appendChild(contentSpan);
|
||||
|
||||
return toastBody;
|
||||
}
|
||||
|
||||
function buildToast(title, description, color) {
|
||||
var toast = document.createElement('div');
|
||||
toast.setAttribute('class', 'toast my-2');
|
||||
toast.setAttribute('role', 'alert');
|
||||
toast.setAttribute('aria-live', 'assertive');
|
||||
toast.setAttribute('aria-atomic', 'true');
|
||||
|
||||
var toastHeader = buildToastHeader(title, color);
|
||||
var toastBody = buildToastBody(title, description, color);
|
||||
|
||||
toast.append(toastHeader);
|
||||
toast.append(toastBody);
|
||||
|
||||
return toast;
|
||||
}
|
1025
Moonlight/Assets/FileManager/editor/ace.css
Normal file
1025
Moonlight/Assets/FileManager/editor/ace.css
Normal file
File diff suppressed because it is too large
Load diff
17
Moonlight/Assets/FileManager/editor/ace.js
Normal file
17
Moonlight/Assets/FileManager/editor/ace.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-abap.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-abap.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-abc.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-abc.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/abc_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:["zupfnoter.information.comment.line.percentage","information.keyword","in formation.keyword.embedded"],regex:"(%%%%)(hn\\.[a-z]*)(.*)",comment:"Instruction Comment"},{token:["information.comment.line.percentage","information.keyword.embedded"],regex:"(%%)(.*)",comment:"Instruction Comment"},{token:"comment.line.percentage",regex:"%.*",comment:"Comments"},{token:"barline.keyword.operator",regex:"[\\[:]*[|:][|\\]:]*(?:\\[?[0-9]+)?|\\[[0-9]+",comment:"Bar lines"},{token:["information.keyword.embedded","information.argument.string.unquoted"],regex:"(\\[[A-Za-z]:)([^\\]]*\\])",comment:"embedded Header lines"},{token:["information.keyword","information.argument.string.unquoted"],regex:"^([A-Za-z]:)([^%\\\\]*)",comment:"Header lines"},{token:["text","entity.name.function","string.unquoted","text"],regex:"(\\[)([A-Z]:)(.*?)(\\])",comment:"Inline fields"},{token:["accent.constant.language","pitch.constant.numeric","duration.constant.numeric"],regex:"([\\^=_]*)([A-Ga-gz][,']*)([0-9]*/*[><0-9]*)",comment:"Notes"},{token:"zupfnoter.jumptarget.string.quoted",regex:'[\\"!]\\^\\:.*?[\\"!]',comment:"Zupfnoter jumptarget"},{token:"zupfnoter.goto.string.quoted",regex:'[\\"!]\\^\\@.*?[\\"!]',comment:"Zupfnoter goto"},{token:"zupfnoter.annotation.string.quoted",regex:'[\\"!]\\^\\!.*?[\\"!]',comment:"Zupfnoter annoation"},{token:"zupfnoter.annotationref.string.quoted",regex:'[\\"!]\\^\\#.*?[\\"!]',comment:"Zupfnoter annotation reference"},{token:"chordname.string.quoted",regex:'[\\"!]\\^.*?[\\"!]',comment:"abc chord"},{token:"string.quoted",regex:'[\\"!].*?[\\"!]',comment:"abc annotation"}]},this.normalizeRules()};s.metaData={fileTypes:["abc"],name:"ABC",scopeName:"text.abcnotation"},r.inherits(s,i),t.ABCHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),ace.define("ace/mode/abc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/abc_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./abc_highlight_rules").ABCHighlightRules,o=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart="%",this.$id="ace/mode/abc",this.snippetFileId="ace/snippets/abc"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/abc"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-actionscript.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-actionscript.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-ada.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-ada.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/ada_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="abort|else|new|return|abs|elsif|not|reverse|abstract|end|null|accept|entry|select|access|exception|of|separate|aliased|exit|or|some|all|others|subtype|and|for|out|synchronized|array|function|overriding|at|tagged|generic|package|task|begin|goto|pragma|terminate|body|private|then|if|procedure|type|case|in|protected|constant|interface|until||is|raise|use|declare|range|delay|limited|record|when|delta|loop|rem|while|digits|renames|with|do|mod|requeue|xor",t="true|false|null",n="count|min|max|avg|sum|rank|now|coalesce|main",r=this.createKeywordMapper({"support.function":n,keyword:e,"constant.language":t},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:r,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]}};r.inherits(s,i),t.AdaHighlightRules=s}),ace.define("ace/mode/ada",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ada_highlight_rules","ace/range"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./ada_highlight_rules").AdaHighlightRules,o=e("../range").Range,u=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart="--",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),s=i.tokens;if(s.length&&s[s.length-1].type=="comment")return r;if(e=="start"){var o=t.match(/^.*(begin|loop|then|is|do)\s*$/);o&&(r+=n)}return r},this.checkOutdent=function(e,t,n){var r=t+n;return r.match(/^\s*(begin|end)$/)?!0:!1},this.autoOutdent=function(e,t,n){var r=t.getLine(n),i=t.getLine(n-1),s=this.$getIndent(i).length,u=this.$getIndent(r).length;if(u<=s)return;t.outdentRows(new o(n,0,n+2,0))},this.$id="ace/mode/ada"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/ada"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-alda.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-alda.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-apache_conf.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-apache_conf.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-apex.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-apex.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-applescript.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-applescript.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-aql.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-aql.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/aql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="for|search|outbound|inbound|any|graph|prune|options|shortest_path|to|in|return|filter|sort|limit|let|collect|remove|update|replace|insers|upsert|with",t="true|false",n="append|contains_array|count|count_distinct|count_unique|first|flatten|intersection|last|length|minus|nth|outersection|pop|position|push|remove_nth|remove_value|remove_values|reverse|shift|slice|sorted|sorted_unique|union|union_distinct|unique|unshift|date_now|date_iso8601|date_timestamp|is_datestring|date_dayofweek|date_year|date_month|date_day|date_hour|date_minute|date_second|date_millisecond|date_dayofyear|date_isoweek|date_leapyear|date_quarter|date_days_in_month|date_trunc|date_format|date_add|date_subtract|date_diff|date_compare|attributes|count|has|is_same_collection|keep|length|matches|merge|merge_recursive|parse_identifier|translate|unset|unset_recursive|values|zip|fulltext|distance|geo_contains|geo_distance|geo_equals|geo_intersects|is_in_polygon|not_null|first_list|first_document|check_document|collection_count|collections|count|current_user|document|length|hash|apply|assert|/ warn|call|fail|noopt|passthru|sleep|v8|version|abs|acos|asin|atan|atan2|average|avg|ceil|cos|degrees|exp|exp2|floor|log|log2|log10|max|median|min|percentile|pi|pow|radians|rand|range|round|sin|sqrt|stddev_population|stddev_sample|stddev|sum|tan|variance_population|variance_sample|variance|char_length|concat|concat_separator|contains|count|encode_uri_component|find_first|find_last|json_parse|json_stringify|left|length|levenshtein_distance|like|lower|ltrim|md5|random_token|regex_matches|regex_split|regex_test|regex_replace|reverse|right|rtrim|sha1|sha512|split|soundex|substitute|substring|tokens|to_base64|to_hex|trim|upper|uuid|to_bool|to_number|to_string|to_array|to_list|is_null|is_bool|is_number|is_string|is_array|is_list|is_object|is_document|is_datestring|is_key|typename|",r=this.createKeywordMapper({"support.function":n,keyword:e,"constant.language":t},"identifier",!0);this.$rules={start:[{token:"comment",regex:"//.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:r,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};r.inherits(s,i),t.AqlHighlightRules=s}),ace.define("ace/mode/aql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/aql_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./aql_highlight_rules").AqlHighlightRules,o=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};r.inherits(o,i),function(){this.lineCommentStart="//",this.$id="ace/mode/aql"}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/aql"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-asciidoc.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-asciidoc.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-asl.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-asl.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-assembly_x86.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-assembly_x86.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-autohotkey.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-autohotkey.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-batchfile.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-batchfile.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/batchfile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"keyword.command.dosbatch",regex:"\\b(?:append|assoc|at|attrib|break|cacls|cd|chcp|chdir|chkdsk|chkntfs|cls|cmd|color|comp|compact|convert|copy|date|del|dir|diskcomp|diskcopy|doskey|echo|endlocal|erase|fc|find|findstr|format|ftype|graftabl|help|keyb|label|md|mkdir|mode|more|move|path|pause|popd|print|prompt|pushd|rd|recover|ren|rename|replace|restore|rmdir|set|setlocal|shift|sort|start|subst|time|title|tree|type|ver|verify|vol|xcopy)\\b",caseInsensitive:!0},{token:"keyword.control.statement.dosbatch",regex:"\\b(?:goto|call|exit)\\b",caseInsensitive:!0},{token:"keyword.control.conditional.if.dosbatch",regex:"\\bif\\s+not\\s+(?:exist|defined|errorlevel|cmdextversion)\\b",caseInsensitive:!0},{token:"keyword.control.conditional.dosbatch",regex:"\\b(?:if|else)\\b",caseInsensitive:!0},{token:"keyword.control.repeat.dosbatch",regex:"\\bfor\\b",caseInsensitive:!0},{token:"keyword.operator.dosbatch",regex:"\\b(?:EQU|NEQ|LSS|LEQ|GTR|GEQ)\\b"},{token:["doc.comment","comment"],regex:"(?:^|\\b)(rem)($|\\s.*$)",caseInsensitive:!0},{token:"comment.line.colons.dosbatch",regex:"::.*$"},{include:"variable"},{token:"punctuation.definition.string.begin.shell",regex:'"',push:[{token:"punctuation.definition.string.end.shell",regex:'"',next:"pop"},{include:"variable"},{defaultToken:"string.quoted.double.dosbatch"}]},{token:"keyword.operator.pipe.dosbatch",regex:"[|]"},{token:"keyword.operator.redirect.shell",regex:"&>|\\d*>&\\d*|\\d*(?:>>|>|<)|\\d*<&|\\d*<>"}],variable:[{token:"constant.numeric",regex:"%%\\w+|%[*\\d]|%\\w+%"},{token:"constant.numeric",regex:"%~\\d+"},{token:["markup.list","constant.other","markup.list"],regex:"(%)(\\w+)(%?)"}]},this.normalizeRules()};s.metaData={name:"Batch File",scopeName:"source.dosbatch",fileTypes:["bat"]},r.inherits(s,i),t.BatchFileHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),ace.define("ace/mode/batchfile",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/batchfile_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./batchfile_highlight_rules").BatchFileHighlightRules,o=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart="::",this.blockComment="",this.$id="ace/mode/batchfile"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/batchfile"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-c9search.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-c9search.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/c9search_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";function o(e,t){try{return new RegExp(e,t)}catch(n){}}var r=e("../lib/oop"),i=e("../lib/lang"),s=e("./text_highlight_rules").TextHighlightRules,u=function(){this.$rules={start:[{tokenNames:["c9searchresults.constant.numeric","c9searchresults.text","c9searchresults.text","c9searchresults.keyword"],regex:/(^\s+[0-9]+)(:)(\d*\s?)([^\r\n]+)/,onMatch:function(e,t,n){var r=this.splitRegex.exec(e),i=this.tokenNames,s=[{type:i[0],value:r[1]},{type:i[1],value:r[2]}];r[3]&&(r[3]==" "?s[1]={type:i[1],value:r[2]+" "}:s.push({type:i[1],value:r[3]}));var o=n[1],u=r[4],a,f=0;if(o&&o.exec){o.lastIndex=0;while(a=o.exec(u)){var l=u.substring(f,a.index);f=o.lastIndex,l&&s.push({type:i[2],value:l});if(a[0])s.push({type:i[3],value:a[0]});else if(!l)break}}return f<u.length&&s.push({type:i[2],value:u.substr(f)}),s}},{regex:"^Searching for [^\\r\\n]*$",onMatch:function(e,t,n){var r=e.split("\x01");if(r.length<3)return"text";var s,u,a=0,f=[{value:r[a++]+"'",type:"text"},{value:u=r[a++],type:"text"},{value:"'"+r[a++],type:"text"}];r[2]!==" in"&&f.push({value:"'"+r[a++]+"'",type:"text"},{value:r[a++],type:"text"}),f.push({value:" "+r[a++]+" ",type:"text"}),r[a+1]?(s=r[a+1],f.push({value:"("+r[a+1]+")",type:"text"}),a+=1):a-=1;while(a++<r.length)r[a]&&f.push({value:r[a],type:"text"});u&&(/regex/.test(s)||(u=i.escapeRegExp(u)),/whole/.test(s)&&(u="\\b"+u+"\\b"));var l=u&&o("("+u+")",/ sensitive/.test(s)?"g":"ig");return l&&(n[0]=t,n[1]=l),f}},{regex:"^(?=Found \\d+ matches)",token:"text",next:"numbers"},{token:"string",regex:"^\\S:?[^:]+",next:"numbers"}],numbers:[{regex:"\\d+",token:"constant.numeric"},{regex:"$",token:"text",next:"start"}]},this.normalizeRules()};r.inherits(u,s),t.C9SearchHighlightRules=u}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/folding/c9search",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(){};r.inherits(o,s),function(){this.foldingStartMarker=/^(\S.*:|Searching for.*)$/,this.foldingStopMarker=/^(\s+|Found.*)$/,this.getFoldWidgetRange=function(e,t,n){var r=e.doc.getAllLines(n),s=r[n],o=/^(Found.*|Searching for.*)$/,u=/^(\S.*:|\s*)$/,a=o.test(s)?o:u,f=n,l=n;if(this.foldingStartMarker.test(s)){for(var c=n+1,h=e.getLength();c<h;c++)if(a.test(r[c]))break;l=c}else if(this.foldingStopMarker.test(s)){for(var c=n-1;c>=0;c--){s=r[c];if(a.test(s))break}f=c}if(f!=l){var p=s.length;return a===o&&(p=s.search(/\(Found[^)]+\)$|$/)),new i(f,p,l,0)}}}.call(o.prototype)}),ace.define("ace/mode/c9search",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/c9search_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/c9search"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./c9search_highlight_rules").C9SearchHighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,u=e("./folding/c9search").FoldMode,a=function(){this.HighlightRules=s,this.$outdent=new o,this.foldingRules=new u};r.inherits(a,i),function(){this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id="ace/mode/c9search"}.call(a.prototype),t.Mode=a}); (function() {
|
||||
ace.require(["ace/mode/c9search"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-c_cpp.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-c_cpp.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-cirru.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-cirru.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/cirru_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"constant.numeric",regex:/[\d\.]+/},{token:"comment.line.double-dash",regex:/--/,next:"comment"},{token:"storage.modifier",regex:/\(/},{token:"storage.modifier",regex:/,/,next:"line"},{token:"support.function",regex:/[^\(\)"\s{}\[\]]+/,next:"line"},{token:"string.quoted.double",regex:/"/,next:"string"},{token:"storage.modifier",regex:/\)/}],comment:[{token:"comment.line.double-dash",regex:/ +[^\n]+/,next:"start"}],string:[{token:"string.quoted.double",regex:/"/,next:"line"},{token:"constant.character.escape",regex:/\\/,next:"escape"},{token:"string.quoted.double",regex:/[^\\"]+/}],escape:[{token:"constant.character.escape",regex:/./,next:"string"}],line:[{token:"constant.numeric",regex:/[\d\.]+/},{token:"markup.raw",regex:/^\s*/,next:"start"},{token:"storage.modifier",regex:/\$/,next:"start"},{token:"variable.parameter",regex:/[^\(\)"\s{}\[\]]+/},{token:"storage.modifier",regex:/\(/,next:"start"},{token:"storage.modifier",regex:/\)/},{token:"markup.raw",regex:/^ */,next:"start"},{token:"string.quoted.double",regex:/"/,next:"string"}]}};r.inherits(s,i),t.CirruHighlightRules=s}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=this.indentationBlock(e,n);if(r)return r;var i=/\S/,o=e.getLine(n),u=o.search(i);if(u==-1||o[u]!="#")return;var a=o.length,f=e.getLength(),l=n,c=n;while(++n<f){o=e.getLine(n);var h=o.search(i);if(h==-1)continue;if(o[h]!="#")break;c=n}if(c>l){var p=e.getLine(c).length;return new s(l,a,c,p)}},this.getFoldWidget=function(e,t,n){var r=e.getLine(n),i=r.search(/\S/),s=e.getLine(n+1),o=e.getLine(n-1),u=o.search(/\S/),a=s.search(/\S/);if(i==-1)return e.foldWidgets[n-1]=u!=-1&&u<a?"start":"","";if(u==-1){if(i==a&&r[i]=="#"&&s[i]=="#")return e.foldWidgets[n-1]="",e.foldWidgets[n+1]="","start"}else if(u==i&&r[i]=="#"&&o[i]=="#"&&e.getLine(n-2).search(/\S/)==-1)return e.foldWidgets[n-1]="start",e.foldWidgets[n+1]="","";return u!=-1&&u<i?e.foldWidgets[n-1]="start":e.foldWidgets[n-1]="",i<a?"start":""}}.call(o.prototype)}),ace.define("ace/mode/cirru",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/cirru_highlight_rules","ace/mode/folding/coffee"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./cirru_highlight_rules").CirruHighlightRules,o=e("./folding/coffee").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart="--",this.$id="ace/mode/cirru"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/cirru"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-clojure.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-clojure.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-cobol.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-cobol.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/cobol_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="ACCEPT|MERGE|SUM|ADD||MESSAGE|TABLE|ADVANCING|MODE|TAPE|AFTER|MULTIPLY|TEST|ALL|NEGATIVE|TEXT|ALPHABET|NEXT|THAN|ALSO|NO|THEN|ALTERNATE|NOT|THROUGH|AND|NUMBER|THRU|ANY|OCCURS|TIME|ARE|OF|TO|AREA|OFF|TOP||ASCENDING|OMITTED|TRUE|ASSIGN|ON|TYPE|AT|OPEN|UNIT|AUTHOR|OR|UNTIL|BEFORE|OTHER|UP|BLANK|OUTPUT|USE|BLOCK|PAGE|USING|BOTTOM|PERFORM|VALUE|BY|PIC|VALUES|CALL|PICTURE|WHEN|CANCEL|PLUS|WITH|CD|POINTER|WRITE|CHARACTER|POSITION||ZERO|CLOSE|POSITIVE|ZEROS|COLUMN|PROCEDURE|ZEROES|COMMA|PROGRAM|COMMON|PROGRAM-ID|COMMUNICATION|QUOTE|COMP|RANDOM|COMPUTE|READ|CONTAINS|RECEIVE|CONFIGURATION|RECORD|CONTINUE|REDEFINES|CONTROL|REFERENCE|COPY|REMAINDER|COUNT|REPLACE|DATA|REPORT|DATE|RESERVE|DAY|RESET|DELETE|RETURN|DESTINATION|REWIND|DISABLE|REWRITE|DISPLAY|RIGHT|DIVIDE|RUN|DOWN|SAME|ELSE|SEARCH|ENABLE|SECTION|END|SELECT|ENVIRONMENT|SENTENCE|EQUAL|SET|ERROR|SIGN|EXIT|SEQUENTIAL|EXTERNAL|SIZE|FLASE|SORT|FILE|SOURCE|LENGTH|SPACE|LESS|STANDARD|LIMIT|START|LINE|STOP|LOCK|STRING|LOW-VALUE|SUBTRACT",t="true|false|null",n="count|min|max|avg|sum|rank|now|coalesce|main",r=this.createKeywordMapper({"support.function":n,keyword:e,"constant.language":t},"identifier",!0);this.$rules={start:[{token:"comment",regex:"\\*.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:r,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]}};r.inherits(s,i),t.CobolHighlightRules=s}),ace.define("ace/mode/cobol",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/cobol_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./cobol_highlight_rules").CobolHighlightRules,o=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};r.inherits(o,i),function(){this.lineCommentStart="*",this.$id="ace/mode/cobol"}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/cobol"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-coffee.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-coffee.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-coldfusion.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-coldfusion.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-crystal.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-crystal.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-csharp.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-csharp.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-csound_score.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-csound_score.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-csp.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-csp.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/csp_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=this.createKeywordMapper({"constant.language":"child-src|connect-src|default-src|font-src|frame-src|img-src|manifest-src|media-src|object-src|script-src|style-src|worker-src|base-uri|plugin-types|sandbox|disown-opener|form-action|frame-ancestors|report-uri|report-to|upgrade-insecure-requests|block-all-mixed-content|require-sri-for|reflected-xss|referrer|policy-uri",variable:"'none'|'self'|'unsafe-inline'|'unsafe-eval'|'strict-dynamic'|'unsafe-hashed-attributes'"},"identifier",!0);this.$rules={start:[{token:"string.link",regex:/https?:[^;\s]*/},{token:"operator.punctuation",regex:/;/},{token:e,regex:/[^\s;]+/}]}};r.inherits(s,i),t.CspHighlightRules=s}),ace.define("ace/mode/csp",["require","exports","module","ace/mode/text","ace/mode/csp_highlight_rules","ace/lib/oop"],function(e,t,n){"use strict";var r=e("./text").Mode,i=e("./csp_highlight_rules").CspHighlightRules,s=e("../lib/oop"),o=function(){this.HighlightRules=i};s.inherits(o,r),function(){this.$id="ace/mode/csp"}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/csp"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-css.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-css.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-curly.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-curly.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-d.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-d.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-dart.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-dart.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-diff.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-diff.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/diff_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{regex:"^(?:\\*{15}|={67}|-{3}|\\+{3})$",token:"punctuation.definition.separator.diff",name:"keyword"},{regex:"^(@@)(\\s*.+?\\s*)(@@)(.*)$",token:["constant","constant.numeric","constant","comment.doc.tag"]},{regex:"^(\\d+)([,\\d]+)(a|d|c)(\\d+)([,\\d]+)(.*)$",token:["constant.numeric","punctuation.definition.range.diff","constant.function","constant.numeric","punctuation.definition.range.diff","invalid"],name:"meta."},{regex:"^(\\-{3}|\\+{3}|\\*{3})( .+)$",token:["constant.numeric","meta.tag"]},{regex:"^([!+>])(.*?)(\\s*)$",token:["support.constant","text","invalid"]},{regex:"^([<\\-])(.*?)(\\s*)$",token:["support.function","string","invalid"]},{regex:"^(diff)(\\s+--\\w+)?(.+?)( .+)?$",token:["variable","variable","keyword","variable"]},{regex:"^Index.+$",token:"variable"},{regex:"^\\s+$",token:"text"},{regex:"\\s*$",token:"invalid"},{defaultToken:"invisible",caseInsensitive:!0}]}};r.inherits(s,i),t.DiffHighlightRules=s}),ace.define("ace/mode/folding/diff",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(e,t){this.regExpList=e,this.flag=t,this.foldingStartMarker=RegExp("^("+e.join("|")+")",this.flag)};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i={row:n,column:r.length},o=this.regExpList;for(var u=1;u<=o.length;u++){var a=RegExp("^("+o.slice(0,u).join("|")+")",this.flag);if(a.test(r))break}for(var f=e.getLength();++n<f;){r=e.getLine(n);if(a.test(r))break}if(n==i.row+1)return;return new s(i.row,i.column,n-1,r.length)}}.call(o.prototype)}),ace.define("ace/mode/diff",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/diff_highlight_rules","ace/mode/folding/diff"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./diff_highlight_rules").DiffHighlightRules,o=e("./folding/diff").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o(["diff","@@|\\*{5}"],"i")};r.inherits(u,i),function(){this.$id="ace/mode/diff",this.snippetFileId="ace/snippets/diff"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/diff"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-django.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-django.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-dockerfile.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-dockerfile.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-dot.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-dot.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-drools.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-drools.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-edifact.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-edifact.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(s,i),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=s}),ace.define("ace/mode/edifact_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,o=function(){var e="UNH",t="ADR|AGR|AJT|ALC|ALI|APP|APR|ARD|ARR|ASI|ATT|AUT|BAS|BGM|BII|BUS|CAV|CCD|CCI|CDI|CDS|CDV|CED|CIN|CLA|CLI|CMP|CNI|CNT|COD|COM|COT|CPI|CPS|CPT|CST|CTA|CUX|DAM|DFN|DGS|DII|DIM|DLI|DLM|DMS|DOC|DRD|DSG|DSI|DTM|EDT|EFI|ELM|ELU|ELV|EMP|EQA|EQD|EQN|ERC|ERP|EVE|FCA|FII|FNS|FNT|FOR|FSQ|FTX|GDS|GEI|GID|GIN|GIR|GOR|GPO|GRU|HAN|HYN|ICD|IDE|IFD|IHC|IMD|IND|INP|INV|IRQ|LAN|LIN|LOC|MEA|MEM|MKS|MOA|MSG|MTD|NAD|NAT|PAC|PAI|PAS|PCC|PCD|PCI|PDI|PER|PGI|PIA|PNA|POC|PRC|PRI|PRV|PSD|PTY|PYT|QRS|QTY|QUA|QVR|RCS|REL|RFF|RJL|RNG|ROD|RSL|RTE|SAL|SCC|SCD|SEG|SEL|SEQ|SFI|SGP|SGU|SPR|SPS|STA|STC|STG|STS|TAX|TCC|TDT|TEM|TMD|TMP|TOD|TPL|TRU|TSR|UNB|UNZ|UNT|UGH|UGT|UNS|VLI",e="UNH",n="null|Infinity|NaN|undefined",r="",s="BY|SE|ON|INV|JP|UNOA",o=this.createKeywordMapper({"variable.language":"this",keyword:s,"entity.name.segment":t,"entity.name.header":e,"constant.language":n,"support.function":r},"identifier");this.$rules={start:[{token:"punctuation.operator",regex:"\\+.\\+"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+"},{token:"punctuation.operator",regex:"\\:|'"},{token:"identifier",regex:"\\:D\\:"}]},this.embedRules(i,"doc-",[i.getEndRule("start")])};o.metaData={fileTypes:["edi"],keyEquivalent:"^~E",name:"Edifact",scopeName:"source.edifact"},r.inherits(o,s),t.EdifactHighlightRules=o}),ace.define("ace/mode/edifact",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/edifact_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./edifact_highlight_rules").EdifactHighlightRules,o=function(){this.HighlightRules=s};r.inherits(o,i),function(){this.$id="ace/mode/edifact",this.snippetFileId="ace/snippets/edifact"}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/edifact"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-eiffel.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-eiffel.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/eiffel_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="across|agent|alias|all|attached|as|assign|attribute|check|class|convert|create|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|Precursor|redefine|rename|require|rescue|retry|select|separate|some|then|undefine|until|variant|when",t="and|implies|or|xor",n="Void",r="True|False",i="Current|Result",s=this.createKeywordMapper({"constant.language":n,"constant.language.boolean":r,"variable.language":i,"keyword.operator":t,keyword:e},"identifier",!0),o=/(?:[^"%\b\f\v]|%[A-DFHLNQR-V%'"()<>]|%\/(?:0[xX][\da-fA-F](?:_*[\da-fA-F])*|0[cC][0-7](?:_*[0-7])*|0[bB][01](?:_*[01])*|\d(?:_*\d)*)\/)+?/;this.$rules={start:[{token:"string.quoted.other",regex:/"\[/,next:"aligned_verbatim_string"},{token:"string.quoted.other",regex:/"\{/,next:"non-aligned_verbatim_string"},{token:"string.quoted.double",regex:/"(?:[^%\b\f\n\r\v]|%[A-DFHLNQR-V%'"()<>]|%\/(?:0[xX][\da-fA-F](?:_*[\da-fA-F])*|0[cC][0-7](?:_*[0-7])*|0[bB][01](?:_*[01])*|\d(?:_*\d)*)\/)*?"/},{token:"comment.line.double-dash",regex:/--.*/},{token:"constant.character",regex:/'(?:[^%\b\f\n\r\t\v]|%[A-DFHLNQR-V%'"()<>]|%\/(?:0[xX][\da-fA-F](?:_*[\da-fA-F])*|0[cC][0-7](?:_*[0-7])*|0[bB][01](?:_*[01])*|\d(?:_*\d)*)\/)'/},{token:"constant.numeric",regex:/\b0(?:[xX][\da-fA-F](?:_*[\da-fA-F])*|[cC][0-7](?:_*[0-7])*|[bB][01](?:_*[01])*)\b/},{token:"constant.numeric",regex:/(?:\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?[eE][+-]?)?\d(?:_*\d)*|\d(?:_*\d)*\.?/},{token:"paren.lparen",regex:/[\[({]|<<|\|\(/},{token:"paren.rparen",regex:/[\])}]|>>|\|\)/},{token:"keyword.operator",regex:/:=|->|\.(?=\w)|[;,:?]/},{token:"keyword.operator",regex:/\\\\|\|\.\.\||\.\.|\/[~\/]?|[><\/]=?|[-+*^=~]/},{token:function(e){var t=s(e);return t==="identifier"&&e===e.toUpperCase()&&(t="entity.name.type"),t},regex:/[a-zA-Z][a-zA-Z\d_]*\b/},{token:"text",regex:/\s+/}],aligned_verbatim_string:[{token:"string",regex:/]"/,next:"start"},{token:"string",regex:o}],"non-aligned_verbatim_string":[{token:"string.quoted.other",regex:/}"/,next:"start"},{token:"string.quoted.other",regex:o}]}};r.inherits(s,i),t.EiffelHighlightRules=s}),ace.define("ace/mode/eiffel",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/eiffel_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./eiffel_highlight_rules").EiffelHighlightRules,o=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};r.inherits(o,i),function(){this.lineCommentStart="--",this.$id="ace/mode/eiffel"}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/eiffel"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-ejs.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-ejs.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-elixir.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-elixir.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-elm.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-elm.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/elm_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=this.createKeywordMapper({keyword:"as|case|class|data|default|deriving|do|else|export|foreign|hiding|jsevent|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|open|then|type|where|_|port|\u03bb"},"identifier"),t=/\\(\d+|['"\\&trnbvf])/,n=/[a-z_]/.source,r=/[A-Z]/.source,i=/[a-z_A-Z0-9']/.source;this.$rules={start:[{token:"string.start",regex:'"',next:"string"},{token:"string.character",regex:"'(?:"+t.source+"|.)'?"},{regex:/0(?:[xX][0-9A-Fa-f]+|[oO][0-7]+)|\d+(\.\d+)?([eE][-+]?\d*)?/,token:"constant.numeric"},{token:"comment",regex:"--.*"},{token:"keyword",regex:/\.\.|\||:|=|\\|"|->|<-|\u2192/},{token:"keyword.operator",regex:/[-!#$%&*+.\/<=>?@\\^|~:\u03BB\u2192]+/},{token:"operator.punctuation",regex:/[,;`]/},{regex:r+i+"+\\.?",token:function(e){return e[e.length-1]=="."?"entity.name.function":"constant.language"}},{regex:"^"+n+i+"+",token:function(e){return"constant.language"}},{token:e,regex:"[\\w\\xff-\\u218e\\u2455-\\uffff]+\\b"},{regex:"{-#?",token:"comment.start",onMatch:function(e,t,n){return this.next=e.length==2?"blockComment":"docComment",this.token}},{token:"variable.language",regex:/\[markdown\|/,next:"markdown"},{token:"paren.lparen",regex:/[\[({]/},{token:"paren.rparen",regex:/[\])}]/}],markdown:[{regex:/\|\]/,next:"start"},{defaultToken:"string"}],blockComment:[{regex:"{-",token:"comment.start",push:"blockComment"},{regex:"-}",token:"comment.end",next:"pop"},{defaultToken:"comment"}],docComment:[{regex:"{-",token:"comment.start",push:"docComment"},{regex:"-}",token:"comment.end",next:"pop"},{defaultToken:"doc.comment"}],string:[{token:"constant.language.escape",regex:t},{token:"text",regex:/\\(\s|$)/,next:"stringGap"},{token:"string.end",regex:'"',next:"start"},{defaultToken:"string"}],stringGap:[{token:"text",regex:/\\/,next:"string"},{token:"error",regex:"",next:"start"}]},this.normalizeRules()};r.inherits(s,i),t.ElmHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),ace.define("ace/mode/elm",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/elm_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./elm_highlight_rules").ElmHighlightRules,o=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart="--",this.blockComment={start:"{-",end:"-}",nestable:!0},this.$id="ace/mode/elm"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/elm"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-erlang.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-erlang.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-forth.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-forth.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-fortran.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-fortran.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-fsharp.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-fsharp.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-fsl.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-fsl.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/fsl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"punctuation.definition.comment.mn",regex:/\/\*/,push:[{token:"punctuation.definition.comment.mn",regex:/\*\//,next:"pop"},{defaultToken:"comment.block.fsl"}]},{token:"comment.line.fsl",regex:/\/\//,push:[{token:"comment.line.fsl",regex:/$/,next:"pop"},{defaultToken:"comment.line.fsl"}]},{token:"entity.name.function",regex:/\${/,push:[{token:"entity.name.function",regex:/}/,next:"pop"},{defaultToken:"keyword.other"}],comment:"js outcalls"},{token:"constant.numeric",regex:/[0-9]*\.[0-9]*\.[0-9]*/,comment:"semver"},{token:"constant.language.fslLanguage",regex:"(?:graph_layout|machine_name|machine_author|machine_license|machine_comment|machine_language|machine_version|machine_reference|npm_name|graph_layout|on_init|on_halt|on_end|on_terminate|on_finalize|on_transition|on_action|on_stochastic_action|on_legal|on_main|on_forced|on_validation|on_validation_failure|on_transition_refused|on_forced_transition_refused|on_action_refused|on_enter|on_exit|start_states|end_states|terminal_states|final_states|fsl_version)\\s*:"},{token:"keyword.control.transition.fslArrow",regex:/<->|<-|->|<=>|=>|<=|<~>|~>|<~|<-=>|<=->|<-~>|<~->|<=~>|<~=>/},{token:"constant.numeric.fslProbability",regex:/[0-9]+%/,comment:"edge probability annotation"},{token:"constant.character.fslAction",regex:/\'[^']*\'/,comment:"action annotation"},{token:"string.quoted.double.fslLabel.doublequoted",regex:/\"[^"]*\"/,comment:"fsl label annotation"},{token:"entity.name.tag.fslLabel.atom",regex:/[a-zA-Z0-9_.+&()#@!?,]/,comment:"fsl label annotation"}]},this.normalizeRules()};s.metaData={fileTypes:["fsl","fsl_state"],name:"FSL",scopeName:"source.fsl"},r.inherits(s,i),t.FSLHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),ace.define("ace/mode/fsl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/fsl_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./fsl_highlight_rules").FSLHighlightRules,o=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o};r.inherits(u,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/fsl",this.snippetFileId="ace/snippets/fsl"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/fsl"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-ftl.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-ftl.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-gcode.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-gcode.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/gcode_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="IF|DO|WHILE|ENDWHILE|CALL|ENDIF|SUB|ENDSUB|GOTO|REPEAT|ENDREPEAT|CALL",t="PI",n="ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN",r=this.createKeywordMapper({"support.function":n,keyword:e,"constant.language":t},"identifier",!0);this.$rules={start:[{token:"comment",regex:"\\(.*\\)"},{token:"comment",regex:"([N])([0-9]+)"},{token:"string",regex:"([G])([0-9]+\\.?[0-9]?)"},{token:"string",regex:"([M])([0-9]+\\.?[0-9]?)"},{token:"constant.numeric",regex:"([-+]?([0-9]*\\.?[0-9]+\\.?))|(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)"},{token:r,regex:"[A-Z]"},{token:"keyword.operator",regex:"EQ|LT|GT|NE|GE|LE|OR|XOR"},{token:"paren.lparen",regex:"[\\[]"},{token:"paren.rparen",regex:"[\\]]"},{token:"text",regex:"\\s+"}]}};r.inherits(s,i),t.GcodeHighlightRules=s}),ace.define("ace/mode/gcode",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/gcode_highlight_rules","ace/range"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./gcode_highlight_rules").GcodeHighlightRules,o=e("../range").Range,u=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.$id="ace/mode/gcode"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/gcode"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-gherkin.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-gherkin.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/gherkin_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s="\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})",o=function(){var e=[{name:"en",labels:"Feature|Background|Scenario(?: Outline)?|Examples",keywords:"Given|When|Then|And|But"}],t=e.map(function(e){return e.labels}).join("|"),n=e.map(function(e){return e.keywords}).join("|");this.$rules={start:[{token:"constant.numeric",regex:"(?:(?:[1-9]\\d*)|(?:0))"},{token:"comment",regex:"#.*$"},{token:"keyword",regex:"(?:"+t+"):|(?:"+n+")\\b"},{token:"keyword",regex:"\\*"},{token:"string",regex:'"{3}',next:"qqstring3"},{token:"string",regex:'"',next:"qqstring"},{token:"text",regex:"^\\s*(?=@[\\w])",next:[{token:"text",regex:"\\s+"},{token:"variable.parameter",regex:"@[\\w]+"},{token:"empty",regex:"",next:"start"}]},{token:"comment",regex:"<[^>]+>"},{token:"comment",regex:"\\|(?=.)",next:"table-item"},{token:"comment",regex:"\\|$",next:"start"}],qqstring3:[{token:"constant.language.escape",regex:s},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:s},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],"table-item":[{token:"comment",regex:/$/,next:"start"},{token:"comment",regex:/\|/},{token:"string",regex:/\\./},{defaultToken:"string"}]},this.normalizeRules()};r.inherits(o,i),t.GherkinHighlightRules=o}),ace.define("ace/mode/gherkin",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/gherkin_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("./gherkin_highlight_rules").GherkinHighlightRules,o=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};r.inherits(o,i),function(){this.lineCommentStart="#",this.$id="ace/mode/gherkin",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=" ",s=this.getTokenizer().getLineTokens(t,e),o=s.tokens;return t.match("[ ]*\\|")&&(r+="| "),o.length&&o[o.length-1].type=="comment"?r:(e=="start"&&(t.match("Scenario:|Feature:|Scenario Outline:|Background:")?r+=i:t.match("(Given|Then).+(:)$|Examples:")?r+=i:t.match("\\*.+")&&(r+="* ")),r)}}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/gherkin"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-gitignore.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-gitignore.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/gitignore_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment",regex:/^\s*#.*$/},{token:"keyword",regex:/^\s*!.*$/}]},this.normalizeRules()};s.metaData={fileTypes:["gitignore"],name:"Gitignore"},r.inherits(s,i),t.GitignoreHighlightRules=s}),ace.define("ace/mode/gitignore",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/gitignore_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./gitignore_highlight_rules").GitignoreHighlightRules,o=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};r.inherits(o,i),function(){this.lineCommentStart="#",this.$id="ace/mode/gitignore"}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/gitignore"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-glsl.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-glsl.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-gobstones.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-gobstones.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-golang.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-golang.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/graphqlschema_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="type|interface|union|enum|schema|input|implements|extends|scalar",t="Int|Float|String|ID|Boolean",n=this.createKeywordMapper({keyword:e,"storage.type":t},"identifier");this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:n,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};r.inherits(s,i),t.GraphQLSchemaHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),ace.define("ace/mode/graphqlschema",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/graphqlschema_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./graphqlschema_highlight_rules").GraphQLSchemaHighlightRules,o=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o};r.inherits(u,i),function(){this.lineCommentStart="#",this.$id="ace/mode/graphqlschema",this.snippetFileId="ace/snippets/graphqlschema"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/graphqlschema"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-groovy.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-groovy.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-haml.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-haml.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-handlebars.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-handlebars.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-haskell.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-haskell.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/haskell_cabal_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment",regex:"^\\s*--.*$"},{token:["keyword"],regex:/^(\s*\w.*?)(:(?:\s+|$))/},{token:"constant.numeric",regex:/[\d_]+(?:(?:[\.\d_]*)?)/},{token:"constant.language.boolean",regex:"(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"markup.heading",regex:/^(\w.*)$/}]}};r.inherits(s,i),t.CabalHighlightRules=s}),ace.define("ace/mode/folding/haskell_cabal",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.isHeading=function(e,t){var n="markup.heading",r=e.getTokens(t)[0];return t==0||r&&r.type.lastIndexOf(n,0)===0},this.getFoldWidget=function(e,t,n){if(this.isHeading(e,n))return"start";if(t==="markbeginend"&&!/^\s*$/.test(e.getLine(n))){var r=e.getLength();while(++n<r)if(!/^\s*$/.test(e.getLine(n)))break;if(n==r||this.isHeading(e,n))return"end"}return""},this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.length,o=e.getLength(),u=n,a=n;if(this.isHeading(e,n)){while(++n<o)if(this.isHeading(e,n)){n--;break}a=n;if(a>u)while(a>u&&/^\s*$/.test(e.getLine(a)))a--;if(a>u){var f=e.getLine(a).length;return new s(u,i,a,f)}}else if(this.getFoldWidget(e,t,n)==="end"){var a=n,f=e.getLine(a).length;while(--n>=0)if(this.isHeading(e,n))break;var r=e.getLine(n),i=r.length;return new s(n,i,a,f)}}}.call(o.prototype)}),ace.define("ace/mode/haskell_cabal",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/haskell_cabal_highlight_rules","ace/mode/folding/haskell_cabal"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./haskell_cabal_highlight_rules").CabalHighlightRules,o=e("./folding/haskell_cabal").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart="--",this.blockComment=null,this.$id="ace/mode/haskell_cabal"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/haskell_cabal"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-haxe.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-haxe.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-hjson.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-hjson.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-html.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-html.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-html_elixir.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-html_elixir.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-html_ruby.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-html_ruby.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-ini.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-ini.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
ace.define("ace/mode/ini_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s="\\\\(?:[\\\\0abtrn;#=:]|x[a-fA-F\\d]{4})",o=function(){this.$rules={start:[{token:"punctuation.definition.comment.ini",regex:"#.*",push_:[{token:"comment.line.number-sign.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.number-sign.ini"}]},{token:"punctuation.definition.comment.ini",regex:";.*",push_:[{token:"comment.line.semicolon.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.semicolon.ini"}]},{token:["keyword.other.definition.ini","text","punctuation.separator.key-value.ini"],regex:"\\b([a-zA-Z0-9_.-]+)\\b(\\s*)(=)"},{token:["punctuation.definition.entity.ini","constant.section.group-title.ini","punctuation.definition.entity.ini"],regex:"^(\\[)(.*?)(\\])"},{token:"punctuation.definition.string.begin.ini",regex:"'",push:[{token:"punctuation.definition.string.end.ini",regex:"'",next:"pop"},{token:"constant.language.escape",regex:s},{defaultToken:"string.quoted.single.ini"}]},{token:"punctuation.definition.string.begin.ini",regex:'"',push:[{token:"constant.language.escape",regex:s},{token:"punctuation.definition.string.end.ini",regex:'"',next:"pop"},{defaultToken:"string.quoted.double.ini"}]}]},this.normalizeRules()};o.metaData={fileTypes:["ini","conf"],keyEquivalent:"^~I",name:"Ini",scopeName:"source.ini"},r.inherits(o,i),t.IniHighlightRules=o}),ace.define("ace/mode/folding/ini",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(){};r.inherits(o,s),function(){this.foldingStartMarker=/^\s*\[([^\])]*)]\s*(?:$|[;#])/,this.getFoldWidgetRange=function(e,t,n){var r=this.foldingStartMarker,s=e.getLine(n),o=s.match(r);if(!o)return;var u=o[1]+".",a=s.length,f=e.getLength(),l=n,c=n;while(++n<f){s=e.getLine(n);if(/^\s*$/.test(s))continue;o=s.match(r);if(o&&o[1].lastIndexOf(u,0)!==0)break;c=n}if(c>l){var h=e.getLine(c).length;return new i(l,a,c,h)}}}.call(o.prototype)}),ace.define("ace/mode/ini",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ini_highlight_rules","ace/mode/folding/ini"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./ini_highlight_rules").IniHighlightRules,o=e("./folding/ini").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart=";",this.blockComment=null,this.$id="ace/mode/ini"}.call(u.prototype),t.Mode=u}); (function() {
|
||||
ace.require(["ace/mode/ini"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
8
Moonlight/Assets/FileManager/editor/mode-io.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-io.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-ion.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-ion.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-jack.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-jack.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-jade.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-jade.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-java.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-java.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-javascript.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-javascript.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-json.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-json.js
Normal file
File diff suppressed because one or more lines are too long
8
Moonlight/Assets/FileManager/editor/mode-json5.js
Normal file
8
Moonlight/Assets/FileManager/editor/mode-json5.js
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue