golden hour
/home/phakp/public_html/erp/includes/ace/src
⬆️ Go Up
Upload
File/Folder
Size
Actions
ace.js
717.99 KB
Del
OK
ext-beautify.js
11.79 KB
Del
OK
ext-code_lens.js
7.49 KB
Del
OK
ext-elastic_tabstops_lite.js
8.74 KB
Del
OK
ext-emmet.js
47.29 KB
Del
OK
ext-error_marker.js
336 B
Del
OK
ext-keybinding_menu.js
6.06 KB
Del
OK
ext-language_tools.js
74.47 KB
Del
OK
ext-linking.js
1.95 KB
Del
OK
ext-modelist.js
7.1 KB
Del
OK
ext-options.js
23.92 KB
Del
OK
ext-prompt.js
94.39 KB
Del
OK
ext-rtl.js
4.44 KB
Del
OK
ext-searchbox.js
16.74 KB
Del
OK
ext-settings_menu.js
24.74 KB
Del
OK
ext-spellcheck.js
2.46 KB
Del
OK
ext-split.js
6.39 KB
Del
OK
ext-static_highlight.js
6.87 KB
Del
OK
ext-statusbar.js
1.87 KB
Del
OK
ext-textarea.js
16.11 KB
Del
OK
ext-themelist.js
2.63 KB
Del
OK
ext-whitespace.js
6.44 KB
Del
OK
keybinding-emacs.js
39.72 KB
Del
OK
keybinding-sublime.js
11.12 KB
Del
OK
keybinding-vim.js
214.18 KB
Del
OK
keybinding-vscode.js
8.07 KB
Del
OK
mode-abap.js
9.17 KB
Del
OK
mode-abc.js
9.17 KB
Del
OK
mode-actionscript.js
24.39 KB
Del
OK
mode-ada.js
4.2 KB
Del
OK
mode-apache_conf.js
18.94 KB
Del
OK
mode-apex.js
15.28 KB
Del
OK
mode-applescript.js
9.67 KB
Del
OK
mode-aql.js
4.6 KB
Del
OK
mode-asciidoc.js
13.79 KB
Del
OK
mode-asl.js
15.9 KB
Del
OK
mode-assembly_x86.js
11.76 KB
Del
OK
mode-autohotkey.js
66.03 KB
Del
OK
mode-batchfile.js
8.37 KB
Del
OK
mode-bro.js
11.09 KB
Del
OK
mode-c9search.js
9.72 KB
Del
OK
mode-c_cpp.js
18.81 KB
Del
OK
mode-cirru.js
6.15 KB
Del
OK
mode-clojure.js
12.77 KB
Del
OK
mode-cobol.js
3.6 KB
Del
OK
mode-coffee.js
14.34 KB
Del
OK
mode-coldfusion.js
102.71 KB
Del
OK
mode-crystal.js
23.55 KB
Del
OK
mode-csharp.js
16.41 KB
Del
OK
mode-csound_document.js
120.57 KB
Del
OK
mode-csound_orchestra.js
73.25 KB
Del
OK
mode-csound_score.js
14.02 KB
Del
OK
mode-csp.js
2.22 KB
Del
OK
mode-css.js
31.06 KB
Del
OK
mode-curly.js
100.79 KB
Del
OK
mode-d.js
17.42 KB
Del
OK
mode-dart.js
24.72 KB
Del
OK
mode-diff.js
4.64 KB
Del
OK
mode-django.js
101.6 KB
Del
OK
mode-dockerfile.js
16.11 KB
Del
OK
mode-dot.js
13.82 KB
Del
OK
mode-drools.js
18.68 KB
Del
OK
mode-edifact.js
5.31 KB
Del
OK
mode-eiffel.js
5.15 KB
Del
OK
mode-ejs.js
118.45 KB
Del
OK
mode-elixir.js
23.07 KB
Del
OK
mode-elm.js
9.47 KB
Del
OK
mode-erlang.js
45.63 KB
Del
OK
mode-forth.js
11.3 KB
Del
OK
mode-fortran.js
15.04 KB
Del
OK
mode-fsharp.js
10.39 KB
Del
OK
mode-fsl.js
8.53 KB
Del
OK
mode-ftl.js
50.14 KB
Del
OK
mode-gcode.js
3.09 KB
Del
OK
mode-gherkin.js
4.87 KB
Del
OK
mode-gitignore.js
1.77 KB
Del
OK
mode-glsl.js
21.86 KB
Del
OK
mode-gobstones.js
43.09 KB
Del
OK
mode-golang.js
13.82 KB
Del
OK
mode-graphqlschema.js
6.71 KB
Del
OK
mode-groovy.js
38.02 KB
Del
OK
mode-haml.js
63.97 KB
Del
OK
mode-handlebars.js
102.35 KB
Del
OK
mode-haskell.js
17.05 KB
Del
OK
mode-haskell_cabal.js
4.47 KB
Del
OK
mode-haxe.js
12.27 KB
Del
OK
mode-hjson.js
11.09 KB
Del
OK
mode-html.js
99.24 KB
Del
OK
mode-html_elixir.js
124.58 KB
Del
OK
mode-html_ruby.js
119.19 KB
Del
OK
mode-ini.js
4.88 KB
Del
OK
mode-io.js
9.05 KB
Del
OK
mode-jack.js
11.02 KB
Del
OK
mode-jade.js
79.34 KB
Del
OK
mode-java.js
39.7 KB
Del
OK
mode-javascript.js
31.03 KB
Del
OK
mode-json.js
10.24 KB
Del
OK
mode-json5.js
11.28 KB
Del
OK
mode-jsoniq.js
320.49 KB
Del
OK
mode-jsp.js
58.42 KB
Del
OK
mode-jssm.js
10.55 KB
Del
OK
mode-jsx.js
13.36 KB
Del
OK
mode-julia.js
11.93 KB
Del
OK
mode-kotlin.js
24.32 KB
Del
OK
mode-latex.js
9.49 KB
Del
OK
mode-less.js
35.21 KB
Del
OK
mode-liquid.js
107.71 KB
Del
OK
mode-lisp.js
3.47 KB
Del
OK
mode-livescript.js
8.34 KB
Del
OK
mode-logiql.js
10.65 KB
Del
OK
mode-logtalk.js
15.65 KB
Del
OK
mode-lsl.js
31.14 KB
Del
OK
mode-lua.js
14.98 KB
Del
OK
mode-luapage.js
115.82 KB
Del
OK
mode-lucene.js
4.78 KB
Del
OK
mode-makefile.js
13.12 KB
Del
OK
mode-markdown.js
121.58 KB
Del
OK
mode-mask.js
70.27 KB
Del
OK
mode-matlab.js
22.9 KB
Del
OK
mode-maze.js
9.17 KB
Del
OK
mode-mel.js
28.47 KB
Del
OK
mode-mixal.js
5.15 KB
Del
OK
mode-mushcode.js
12.08 KB
Del
OK
mode-mysql.js
8.79 KB
Del
OK
mode-nginx.js
20.03 KB
Del
OK
mode-nim.js
12.13 KB
Del
OK
mode-nix.js
23.54 KB
Del
OK
mode-nsis.js
14.76 KB
Del
OK
mode-nunjucks.js
105.16 KB
Del
OK
mode-objectivec.js
64.25 KB
Del
OK
mode-ocaml.js
21.26 KB
Del
OK
mode-pascal.js
7.92 KB
Del
OK
mode-perl.js
13.04 KB
Del
OK
mode-perl6.js
24.53 KB
Del
OK
mode-pgsql.js
84.98 KB
Del
OK
mode-php.js
580.88 KB
Del
OK
mode-php_laravel_blade.js
588.06 KB
Del
OK
mode-pig.js
10.91 KB
Del
OK
mode-plain_text.js
1.06 KB
Del
OK
mode-powershell.js
38.23 KB
Del
OK
mode-praat.js
17.59 KB
Del
OK
mode-prolog.js
14.07 KB
Del
OK
mode-properties.js
2.33 KB
Del
OK
mode-protobuf.js
21.98 KB
Del
OK
mode-puppet.js
12.8 KB
Del
OK
mode-python.js
15.13 KB
Del
OK
mode-r.js
9.91 KB
Del
OK
mode-razor.js
111.4 KB
Del
OK
mode-rdoc.js
8.06 KB
Del
OK
mode-red.js
19.83 KB
Del
OK
mode-redshift.js
13.99 KB
Del
OK
mode-rhtml.js
108.53 KB
Del
OK
mode-rst.js
5.83 KB
Del
OK
mode-ruby.js
18.75 KB
Del
OK
mode-rust.js
11.13 KB
Del
OK
mode-sass.js
23.81 KB
Del
OK
mode-scad.js
12.89 KB
Del
OK
mode-scala.js
38.13 KB
Del
OK
mode-scheme.js
7.14 KB
Del
OK
mode-scss.js
36.93 KB
Del
OK
mode-sh.js
14.49 KB
Del
OK
mode-sjs.js
36.98 KB
Del
OK
mode-slim.js
174.98 KB
Del
OK
mode-smarty.js
104.2 KB
Del
OK
mode-snippets.js
7.04 KB
Del
OK
mode-soy_template.js
112.5 KB
Del
OK
mode-space.js
4.99 KB
Del
OK
mode-sparql.js
12.35 KB
Del
OK
mode-sql.js
3.34 KB
Del
OK
mode-sqlserver.js
23.07 KB
Del
OK
mode-stylus.js
20.92 KB
Del
OK
mode-svg.js
57.59 KB
Del
OK
mode-swift.js
13.22 KB
Del
OK
mode-tcl.js
12.23 KB
Del
OK
mode-terraform.js
12.93 KB
Del
OK
mode-tex.js
5.13 KB
Del
OK
mode-text.js
329 B
Del
OK
mode-textile.js
4.18 KB
Del
OK
mode-toml.js
4.17 KB
Del
OK
mode-tsx.js
34.09 KB
Del
OK
mode-turtle.js
9.31 KB
Del
OK
mode-twig.js
104.9 KB
Del
OK
mode-typescript.js
33.67 KB
Del
OK
mode-vala.js
27.08 KB
Del
OK
mode-vbscript.js
7.57 KB
Del
OK
mode-velocity.js
108.36 KB
Del
OK
mode-verilog.js
4.45 KB
Del
OK
mode-vhdl.js
3.78 KB
Del
OK
mode-visualforce.js
103.47 KB
Del
OK
mode-wollok.js
34.9 KB
Del
OK
mode-xml.js
23.42 KB
Del
OK
mode-xquery.js
317.76 KB
Del
OK
mode-yaml.js
10.35 KB
Del
OK
mode-zeek.js
16.65 KB
Del
OK
snippets
-
Del
OK
theme-ambiance.js
27.53 KB
Del
OK
theme-chaos.js
3.45 KB
Del
OK
theme-chrome.js
3.28 KB
Del
OK
theme-clouds.js
2.6 KB
Del
OK
theme-clouds_midnight.js
2.95 KB
Del
OK
theme-cobalt.js
2.9 KB
Del
OK
theme-crimson_editor.js
3.37 KB
Del
OK
theme-dawn.js
2.78 KB
Del
OK
theme-dracula.js
3.16 KB
Del
OK
theme-dreamweaver.js
3.73 KB
Del
OK
theme-eclipse.js
2.65 KB
Del
OK
theme-github.js
2.72 KB
Del
OK
theme-gob.js
2.92 KB
Del
OK
theme-gruvbox.js
2.17 KB
Del
OK
theme-idle_fingers.js
2.77 KB
Del
OK
theme-iplastic.js
6.94 KB
Del
OK
theme-katzenmilch.js
3.68 KB
Del
OK
theme-kr_theme.js
2.83 KB
Del
OK
theme-kuroir.js
2.51 KB
Del
OK
theme-merbivore.js
2.75 KB
Del
OK
theme-merbivore_soft.js
2.97 KB
Del
OK
theme-mono_industrial.js
3.32 KB
Del
OK
theme-monokai.js
2.91 KB
Del
OK
theme-pastel_on_dark.js
3.17 KB
Del
OK
theme-solarized_dark.js
2.82 KB
Del
OK
theme-solarized_light.js
2.87 KB
Del
OK
theme-sqlserver.js
3.48 KB
Del
OK
theme-terminal.js
3.45 KB
Del
OK
theme-textmate.js
3.2 KB
Del
OK
theme-tomorrow.js
3.09 KB
Del
OK
theme-tomorrow_night.js
3.35 KB
Del
OK
theme-tomorrow_night_blue.js
3.56 KB
Del
OK
theme-tomorrow_night_bright.js
4.05 KB
Del
OK
theme-tomorrow_night_eighties.js
3.75 KB
Del
OK
theme-twilight.js
3.04 KB
Del
OK
theme-vibrant_ink.js
2.72 KB
Del
OK
theme-xcode.js
2.43 KB
Del
OK
worker-coffee.js
362.1 KB
Del
OK
worker-css.js
290.27 KB
Del
OK
worker-html.js
329.85 KB
Del
OK
worker-javascript.js
336.68 KB
Del
OK
worker-json.js
70.67 KB
Del
OK
worker-lua.js
102.94 KB
Del
OK
worker-php.js
147.24 KB
Del
OK
worker-xml.js
109.68 KB
Del
OK
worker-xquery.js
3.36 MB
Del
OK
Edit: ext-elastic_tabstops_lite.js
define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"], function(require, exports, module) { "use strict"; var ElasticTabstopsLite = function(editor) { this.$editor = editor; var self = this; var changedRows = []; var recordChanges = false; this.onAfterExec = function() { recordChanges = false; self.processRows(changedRows); changedRows = []; }; this.onExec = function() { recordChanges = true; }; this.onChange = function(delta) { if (recordChanges) { if (changedRows.indexOf(delta.start.row) == -1) changedRows.push(delta.start.row); if (delta.end.row != delta.start.row) changedRows.push(delta.end.row); } }; }; (function() { this.processRows = function(rows) { this.$inChange = true; var checkedRows = []; for (var r = 0, rowCount = rows.length; r < rowCount; r++) { var row = rows[r]; if (checkedRows.indexOf(row) > -1) continue; var cellWidthObj = this.$findCellWidthsForBlock(row); var cellWidths = this.$setBlockCellWidthsToMax(cellWidthObj.cellWidths); var rowIndex = cellWidthObj.firstRow; for (var w = 0, l = cellWidths.length; w < l; w++) { var widths = cellWidths[w]; checkedRows.push(rowIndex); this.$adjustRow(rowIndex, widths); rowIndex++; } } this.$inChange = false; }; this.$findCellWidthsForBlock = function(row) { var cellWidths = [], widths; var rowIter = row; while (rowIter >= 0) { widths = this.$cellWidthsForRow(rowIter); if (widths.length == 0) break; cellWidths.unshift(widths); rowIter--; } var firstRow = rowIter + 1; rowIter = row; var numRows = this.$editor.session.getLength(); while (rowIter < numRows - 1) { rowIter++; widths = this.$cellWidthsForRow(rowIter); if (widths.length == 0) break; cellWidths.push(widths); } return { cellWidths: cellWidths, firstRow: firstRow }; }; this.$cellWidthsForRow = function(row) { var selectionColumns = this.$selectionColumnsForRow(row); var tabs = [-1].concat(this.$tabsForRow(row)); var widths = tabs.map(function(el) { return 0; } ).slice(1); var line = this.$editor.session.getLine(row); for (var i = 0, len = tabs.length - 1; i < len; i++) { var leftEdge = tabs[i]+1; var rightEdge = tabs[i+1]; var rightmostSelection = this.$rightmostSelectionInCell(selectionColumns, rightEdge); var cell = line.substring(leftEdge, rightEdge); widths[i] = Math.max(cell.replace(/\s+$/g,'').length, rightmostSelection - leftEdge); } return widths; }; this.$selectionColumnsForRow = function(row) { var selections = [], cursor = this.$editor.getCursorPosition(); if (this.$editor.session.getSelection().isEmpty()) { if (row == cursor.row) selections.push(cursor.column); } return selections; }; this.$setBlockCellWidthsToMax = function(cellWidths) { var startingNewBlock = true, blockStartRow, blockEndRow, maxWidth; var columnInfo = this.$izip_longest(cellWidths); for (var c = 0, l = columnInfo.length; c < l; c++) { var column = columnInfo[c]; if (!column.push) { console.error(column); continue; } column.push(NaN); for (var r = 0, s = column.length; r < s; r++) { var width = column[r]; if (startingNewBlock) { blockStartRow = r; maxWidth = 0; startingNewBlock = false; } if (isNaN(width)) { blockEndRow = r; for (var j = blockStartRow; j < blockEndRow; j++) { cellWidths[j][c] = maxWidth; } startingNewBlock = true; } maxWidth = Math.max(maxWidth, width); } } return cellWidths; }; this.$rightmostSelectionInCell = function(selectionColumns, cellRightEdge) { var rightmost = 0; if (selectionColumns.length) { var lengths = []; for (var s = 0, length = selectionColumns.length; s < length; s++) { if (selectionColumns[s] <= cellRightEdge) lengths.push(s); else lengths.push(0); } rightmost = Math.max.apply(Math, lengths); } return rightmost; }; this.$tabsForRow = function(row) { var rowTabs = [], line = this.$editor.session.getLine(row), re = /\t/g, match; while ((match = re.exec(line)) != null) { rowTabs.push(match.index); } return rowTabs; }; this.$adjustRow = function(row, widths) { var rowTabs = this.$tabsForRow(row); if (rowTabs.length == 0) return; var bias = 0, location = -1; var expandedSet = this.$izip(widths, rowTabs); for (var i = 0, l = expandedSet.length; i < l; i++) { var w = expandedSet[i][0], it = expandedSet[i][1]; location += 1 + w; it += bias; var difference = location - it; if (difference == 0) continue; var partialLine = this.$editor.session.getLine(row).substr(0, it ); var strippedPartialLine = partialLine.replace(/\s*$/g, ""); var ispaces = partialLine.length - strippedPartialLine.length; if (difference > 0) { this.$editor.session.getDocument().insertInLine({row: row, column: it + 1}, Array(difference + 1).join(" ") + "\t"); this.$editor.session.getDocument().removeInLine(row, it, it + 1); bias += difference; } if (difference < 0 && ispaces >= -difference) { this.$editor.session.getDocument().removeInLine(row, it + difference, it); bias += difference; } } }; this.$izip_longest = function(iterables) { if (!iterables[0]) return []; var longest = iterables[0].length; var iterablesLength = iterables.length; for (var i = 1; i < iterablesLength; i++) { var iLength = iterables[i].length; if (iLength > longest) longest = iLength; } var expandedSet = []; for (var l = 0; l < longest; l++) { var set = []; for (var i = 0; i < iterablesLength; i++) { if (iterables[i][l] === "") set.push(NaN); else set.push(iterables[i][l]); } expandedSet.push(set); } return expandedSet; }; this.$izip = function(widths, tabs) { var size = widths.length >= tabs.length ? tabs.length : widths.length; var expandedSet = []; for (var i = 0; i < size; i++) { var set = [ widths[i], tabs[i] ]; expandedSet.push(set); } return expandedSet; }; }).call(ElasticTabstopsLite.prototype); exports.ElasticTabstopsLite = ElasticTabstopsLite; var Editor = require("../editor").Editor; require("../config").defineOptions(Editor.prototype, "editor", { useElasticTabstops: { set: function(val) { if (val) { if (!this.elasticTabstops) this.elasticTabstops = new ElasticTabstopsLite(this); this.commands.on("afterExec", this.elasticTabstops.onAfterExec); this.commands.on("exec", this.elasticTabstops.onExec); this.on("change", this.elasticTabstops.onChange); } else if (this.elasticTabstops) { this.commands.removeListener("afterExec", this.elasticTabstops.onAfterExec); this.commands.removeListener("exec", this.elasticTabstops.onExec); this.removeListener("change", this.elasticTabstops.onChange); } } } }); }); (function() { window.require(["ace/ext/elastic_tabstops_lite"], function(m) { if (typeof module == "object" && typeof exports == "object" && module) { module.exports = m; } }); })();
Save