diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 63339e38..00000000 --- a/.editorconfig +++ /dev/null @@ -1,18 +0,0 @@ -# EditorConfig is awesome: http://EditorConfig.org - -# top-most EditorConfig file -root = true - -# Unix-style newlines with a newline ending every file -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true - -# 4 space indentation -[*.go] -indent_style = tab -indent_size = 4 diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 883b2160..00000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "_embed/public/ace"] - path = _embed/public/ace - url = https://github.com/ajaxorg/ace-builds - ignore = dirty diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 9c8f3ea0..00000000 --- a/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/_embed/public/ace b/_embed/public/ace deleted file mode 160000 index 784ffa86..00000000 --- a/_embed/public/ace +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 784ffa862c5351e0d300370f61471b1eb95ebcf1 diff --git a/_embed/public/css/fonts.css b/_embed/public/css/fonts.css deleted file mode 100644 index 1911d377..00000000 --- a/_embed/public/css/fonts.css +++ /dev/null @@ -1,137 +0,0 @@ -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(roboto/normal-cyrillic-ext.woff2) format('woff2'); - unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(roboto/normal-cyrillic.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(roboto/normal-greek-ext.woff2) format('woff2'); - unicode-range: U+1F00-1FFF; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(roboto/normal-greek.woff2) format('woff2'); - unicode-range: U+0370-03FF; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(roboto/normal-vietnamese.woff2) format('woff2'); - unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(roboto/normal-latin-ext.woff2) format('woff2'); - unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(roboto/normal-latin.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/medium-cyrillic-ext.woff2) format('woff2'); - unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/medium-cyrillic.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/medium-greek-ext.woff2) format('woff2'); - unicode-range: U+1F00-1FFF; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/medium-greek.woff2) format('woff2'); - unicode-range: U+0370-03FF; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/medium-vietnamese.woff2) format('woff2'); - unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/medium-latin-ext.woff2) format('woff2'); - unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/medium-latin.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; -} - -@font-face { - font-family: 'Material Icons'; - font-style: normal; - font-weight: 400; - src: local('Material Icons'), local('MaterialIcons-Regular'), url(material/icons.woff2) format('woff2'); -} - -.prompt .file-list ul li:before, -.material-icons { - font-family: 'Material Icons'; - font-weight: normal; - font-style: normal; - font-size: 24px; - line-height: 1; - letter-spacing: normal; - text-transform: none; - display: inline-block; - white-space: nowrap; - word-wrap: normal; - direction: ltr; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - font-feature-settings: 'liga'; -} diff --git a/_embed/public/css/material/icons.woff2 b/_embed/public/css/material/icons.woff2 deleted file mode 100644 index 9fa21125..00000000 Binary files a/_embed/public/css/material/icons.woff2 and /dev/null differ diff --git a/_embed/public/css/normalize.css b/_embed/public/css/normalize.css deleted file mode 100644 index 9b77e0eb..00000000 --- a/_embed/public/css/normalize.css +++ /dev/null @@ -1,461 +0,0 @@ -/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ - -/** - * 1. Change the default font family in all browsers (opinionated). - * 2. Correct the line height in all browsers. - * 3. Prevent adjustments of font size after orientation changes in - * IE on Windows Phone and in iOS. - */ - -/* Document - ========================================================================== */ - -html { - font-family: sans-serif; /* 1 */ - line-height: 1.15; /* 2 */ - -ms-text-size-adjust: 100%; /* 3 */ - -webkit-text-size-adjust: 100%; /* 3 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers (opinionated). - */ - -body { - margin: 0; -} - -/** - * Add the correct display in IE 9-. - */ - -article, -aside, -footer, -header, -nav, -section { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - * 1. Add the correct display in IE. - */ - -figcaption, -figure, -main { /* 1 */ - display: block; -} - -/** - * Add the correct margin in IE 8. - */ - -figure { - margin: 1em 40px; -} - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ - -a { - background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ -} - -/** - * Remove the outline on focused links when they are also active or hovered - * in all browsers (opinionated). - */ - -a:active, -a:hover { - outline-width: 0; -} - -/** - * 1. Remove the bottom border in Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ - -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font style in Android 4.3-. - */ - -dfn { - font-style: italic; -} - -/** - * Add the correct background and color in IE 9-. - */ - -mark { - background-color: #ff0; - color: #000; -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -audio, -video { - display: inline-block; -} - -/** - * Add the correct display in iOS 4-7. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Remove the border on images inside links in IE 10-. - */ - -img { - border-style: none; -} - -/** - * Hide the overflow in IE. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers (opinionated). - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: sans-serif; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. - */ - -button, -html [type="button"], /* 1 */ -[type="reset"], -[type="submit"] { - -webkit-appearance: button; /* 2 */ -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Change the border, margin, and padding in all browsers (opinionated). - */ - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * 1. Add the correct display in IE 9-. - * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Remove the default vertical scrollbar in IE. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10-. - * 2. Remove the padding in IE 10-. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. - */ - -details, /* 1 */ -menu { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Scripting - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -canvas { - display: inline-block; -} - -/** - * Add the correct display in IE. - */ - -template { - display: none; -} - -/* Hidden - ========================================================================== */ - -/** - * Add the correct display in IE 10-. - */ - -[hidden] { - display: none; -} diff --git a/_embed/public/css/old.css b/_embed/public/css/old.css deleted file mode 100644 index eb9d8a5b..00000000 --- a/_embed/public/css/old.css +++ /dev/null @@ -1,1207 +0,0 @@ -body { - font-family: 'Roboto', sans-serif; - padding-top: 7.8em; - background-color: #f8f8f8; -} - -* { - box-sizing: border-box; -} - -*, -*:hover, -*:active, -*:focus { - outline: 0 -} - -a { - text-decoration: none; -} - -img { - max-width: 100%; -} - -audio, -video { - width: 100%; -} - -pre { - padding: 1em; - border: 1px solid #e6e6e6; - border-radius: 0.5em; - background-color: #f5f5f5; - white-space: pre-wrap; - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - word-wrap: break-word; -} - -button { - border: 0; - padding: .5em 1em; - margin-left: .5em; - border-radius: .1em; - cursor: pointer; - background: #2196f3; - color: #fff; - border: 1px solid rgba(0, 0, 0, 0.05); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); - transition: .1s ease all; -} - -button:hover { - background-color: #1E88E5; -} - -.mobile-only { - display: none !important; -} - -.container { - width: 95%; - max-width: 960px; - margin: 1em auto 0; -} - -i.spin { - animation: 1s spin linear infinite; -} - -.pdf { - width: 100%; - height: calc(100vh - 13em); -} - - -/* * * * * * * * * * * * * * * * - * EDITOR * - * * * * * * * * * * * * * * * */ - -#editor .source { - display: none; -} - -#editor .content { - background: #fff; - padding: 1em 0; -} - -#editor #ace, -#editor h2, -#editor .frontmatter { - width: 95%; - max-width: 960px; - margin: 1em auto 0; -} - -#editor h2 { - margin: 1.5em auto 1em; - color: rgba(0, 0, 0, 0.3); - font-weight: 500; -} - -#editor .ace_gutter { - background-color: #fff; -} - - -/* * * * * * * * * * * * * * * * - * EDITOR - MARKDOWN * - * * * * * * * * * * * * * * * */ - -.frontmatter { - column-count: 3; - column-gap: 1em; - column-fill: balance; - /* display: flex; */ - /* flex-wrap: wrap; */ - /* justify-content: space-between; */ - /* flex-grow: 1; */ -} - -.frontmatter label { - display: block; - width: calc(100% - 1em); - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} - -.frontmatter label, -.frontmatter h3 { - font-weight: 500; - margin: 0 0; - color: rgba(0, 0, 0, 0.6); -} - -.frontmatter input, -.frontmatter textarea { - display: block; - width: 100%; - border: 0; - margin-top: .5em; - padding: 0; - line-height: 1; -} - -.frontmatter .block, -.frontmatter fieldset[data-type="array"], -.button { - position: relative; - background: #fff; - border-radius: .2em; - border: 1px solid rgba(0, 0, 0, 0.075); - padding: .5em; - break-inside: avoid; - margin: 0 0 1em; - width: 100%; - display: inline-block; -} - -.frontmatter fieldset[data-type="object"] { - position: relative; - margin: 0; -} - -.frontmatter .button { - background-color: #2196f3; - color: #fff; - cursor: pointer; - text-align: center; -} - -[data-type="array-item"] { - position: relative; -} - -[data-type="array-item"] .action { - top: 0; - right: 0; -} - -.frontmatter textarea { - resize: none; -} - -[data-type="array-item"] input { - width: calc(100% - 1em); -} - -.block .action, -fieldset .action { - position: absolute; - top: .5em; - right: .5em; -} - -.block>.action, -fieldset>.action { - opacity: 0; -} - -.block:hover>.action, -fieldset:hover>.action { - opacity: 1; -} - -.block .action.add, -fieldset .action.add { - right: 1.5em; -} - -.frontmatter .action i { - padding: 0; - font-size: 1em; -} - -fieldset { - border: 0; - padding: 0; -} - -.frontmatter>fieldset h3, -.frontmatter>.group h3 { - font-size: 1.5em; - margin-bottom: .5em; -} - -fieldset h3, -.group h3 { - font-size: 0.9em; -} - - -/* * * * * * * * * * * * * * * * - * ACTION * - * * * * * * * * * * * * * * * */ - -.action { - display: inline-block; - cursor: pointer; - -webkit-transition: 0.2s ease all; - transition: 0.2s ease all; - border: 0; - margin: 0; - color: #546E7A; - border-radius: 50%; -} - -.action.disabled { - opacity: 0.2; - cursor: not-allowed; -} - -.action i { - padding: 0.4em; - -webkit-transition: 0.2s ease-in-out all; - transition: 0.2s ease-in-out all; - border-radius: 50%; -} - -.action:hover i { - background-color: rgba(0, 0, 0, .1); -} - -.action ul { - position: absolute; - top: 0; - color: #7d7d7d; - list-style: none; - margin: 0; - padding: 0; - flex-direction: column; - display: flex; -} - -.action ul li { - line-height: 1; - padding: .7em; - transition: .1s ease background-color; -} - -.action ul li:hover { - background-color: rgba(0, 0, 0, 0.04); -} - - -/* * * * * * * * * * * * * * * * - * NEW FILE/DIR * - * * * * * * * * * * * * * * * */ - -.floating { - position: fixed; - bottom: 1em; - right: 1em; -} - -.floating .action { - background-color: #2196f3 !important; - color: #fff; - box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); -} - -#newdir { - position: fixed; - bottom: 1.3em; - right: 5em; - transition: .2s ease all; - opacity: 0; - border: 0; - box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); - padding: .5em; - width: 22em; - border-radius: .2em; -} - -#newdir.enabled { - opacity: 1; -} - - -/* * * * * * * * * * * * * * * * - * HEADER * - * * * * * * * * * * * * * * * */ - -header { - z-index: 1000; - background-color: #fff; - border-bottom: 1px solid rgba(0, 0, 0, 0.075); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - position: fixed; - top: 0; - left: 0; - width: 100%; - padding: 0; -} - -header a, -header a:hover { - color: inherit; -} - -header p i { - font-size: 1em !important; - color: rgba(255, 255, 255, .31); -} - -header>div { - display: flex; - width: 100%; - padding: 0.5em 0.5em 0.5em 1em; - align-items: center; -} - -header p { - display: inline-block; - margin: 0; - vertical-align: middle; -} - -header p a, -header p a:hover { - color: inherit; -} - -header .action span { - display: none; -} - -header>div div { - vertical-align: middle; - position: relative; -} - -#logout { - border-radius: 0; - margin-left: auto; - padding: .15em; -} - -#click-overlay { - display: none; - position: fixed; - cursor: pointer; - top: 0; - left: 0; - height: 100%; - width: 100%; -} - -#click-overlay.active { - display: block; -} - - -/* * * * * * * * * * * * * * * * - * TOP BAR * - * * * * * * * * * * * * * * * */ - -#top-bar { - height: 4em; -} - -#top-bar>div:nth-child(1) { - margin-right: 1em; - font-weight: 500; - font-size: 1.5em; - line-height: 2; -} - - -/* * * * * * * * * * * * * * * * - * SEARCH BAR * - * * * * * * * * * * * * * * * */ - -#search { - position: relative; - display: flex; - height: 100%; - padding: 0.75em; - vertical-align: middle; - border-radius: 0.3em; - background-color: #f5f5f5; - transition: .1s ease all; - width: 100%; - max-width: 25em; -} - -#search.active { - background-color: #fff; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); -} - -#search.active i, -#search.active input { - color: #212121; -} - -#search i, -#search input { - vertical-align: middle; -} - -#search i { - margin-right: 0.3em; - user-select: none; -} - -#search input { - width: 100%; - border: 0; - outline: 0; - background-color: transparent; -} - -#search.active div { - visibility: visible; - opacity: 1; - top: 100%; -} - -#search ul { - padding: 0; - margin: 0; - list-style: none; -} - -#search li { - margin-bottom: .5em; -} - -#search>div { - position: absolute; - top: 0; - width: 100%; - left: 0; - z-index: 999999; - background-color: #fff; - text-align: left; - color: #ccc; - box-shadow: 0 2px 3px rgba(0, 0, 0, .06), 0 2px 2px rgba(0, 0, 0, .12); - padding: .5em; - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - transition: .1s ease all; - visibility: hidden; - opacity: 0; - overflow-x: hidden; - overflow-y: auto; - max-height: 50vh; -} - -#search>div div { - white-space: pre-wrap; - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - word-wrap: break-word; -} - -#search>div p { - width: 100%; - text-align: center; - display: none; - margin: 0; - max-width: none; -} - -#search.ongoing p { - display: block; -} - -#search.active div i, -#sidebar #search.active div i { - color: #ccc; - text-align: center; - margin: 0 auto; - display: table; -} - -#search::-webkit-input-placeholder { - color: rgba(255, 255, 255, .5); -} - -#search:-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, .5); -} - -#search::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, .5); -} - -#search:-ms-input-placeholder { - color: rgba(255, 255, 255, .5); -} - - -/* * * * * * * * * * * * * * * * - * BOTTOM BAR * - * * * * * * * * * * * * * * * */ - -#bottom-bar { - background-color: #fafafa; - border-top: 1px solid rgba(0, 0, 0, 0.075); - border-bottom: 1px solid rgba(0, 0, 0, 0.075); - height: 3.8em; -} - -#bottom-bar>div:first-child>* { - display: inline-block; - vertical-align: middle; -} - -#bottom-bar>div:first-child>i { - margin-right: .3em; -} - -#bottom-bar>*:first-child { - margin-right: auto; - max-width: calc(100% - 25em); - width: 100%; -} - -#bottom-bar p { - text-overflow: ellipsis; - overflow: hidden; - width: calc(100% - 3em); - white-space: nowrap; -} - -#more { - display: none; -} - -#file-only { - display: inline-block; - border-right: 1px solid rgba(0, 0, 0, 0.075); - padding-right: .3em; - margin-right: .3em; - transition: .2s ease opacity, visibility; - visibility: visible; -} - -#file-only.disabled { - opacity: 0; - visibility: hidden; -} - -#download ul.active { - top: 0; - right: 0; -} - -#more ul.active { - right: .5em; - top: 4.5em; -} - - -/* * * * * * * * * * * * * * * * - * DROPDOWN * - * * * * * * * * * * * * * * * */ - -.dropdown { - position: fixed; - top: -100%; - right: -100%; - visibility: hidden; - display: flex; - flex-direction: column; - border-radius: .1em; - border-top-left-radius: 0; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - background: #fff; - z-index: 9999999; -} - -.dropdown.active { - visibility: visible; -} - -.dropdown .action { - padding: .7em; -} - -.dropdown i { - padding: 0; - vertical-align: middle; -} - -.dropdown span { - display: inline-block; - margin-left: .5em; - font-size: .9em; -} - - -/* * * * * * * * * * * * * * * * - * BREADCRUMBS * - * * * * * * * * * * * * * * * */ - -#previous { - margin-left: -.5em; -} - -#breadcrumbs { - min-width: 7em; -} - -#breadcrumbs.active { - top: 0; - left: 0; - right: auto; -} - - -/* * * * * * * * * * * * * * * * - * LISTING * - * * * * * * * * * * * * * * * */ - -#listing { - max-width: calc(100% - 1.2em); - width: 100%; -} - -#listing h2 { - margin: 0 0 0 0.5em; - font-size: 1em; - color: rgba(0, 0, 0, 0.2); - font-weight: 500; -} - -#listing .item div:last-of-type * { - text-overflow: ellipsis; - overflow: hidden; -} - -#listing>div { - display: flex; - padding: 0; - flex-wrap: wrap; - justify-content: flex-start; - position: relative; -} - -#listing .item { - background-color: #fff; - position: relative; - display: flex; - flex-wrap: nowrap; - color: #6f6f6f; - transition: .1s ease all; - align-items: center; - cursor: pointer; -} - -#listing .item div:last-of-type { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; -} - -#listing .item p { - margin: 0; -} - -#listing .item .size, -#listing .item .modified { - font-size: 0.9em; -} - -#listing .item .name { - font-weight: bold; -} - -#listing .item i { - font-size: 4em; - margin-right: 0.1em; - vertical-align: bottom; -} - -#listing h2.message, -.message { - text-align: center; - font-size: 3em; - margin: 1em auto; - display: block !important; - width: 95%; - color: rgba(0, 0, 0, 0.2); - font-weight: 500; -} - -.message i { - font-size: inherit; - vertical-align: middle; -} - - -/* * * * * * * * * * * * * * * * - * LISTING - MOSAIC * - * * * * * * * * * * * * * * * */ - -#listing.mosaic { - margin-top: 1em; -} - -#listing.mosaic .item { - width: calc(33% - 1em); - margin: .5em; - padding: 0.5em; - border-radius: 0.2em; - box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); -} - -#listing.mosaic .item:hover { - box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24) !important; -} - -#listing.mosaic .header { - display: none; -} - -#listing.mosaic .item div:first-of-type { - width: 5em; -} - -#listing.mosaic .item div:last-of-type { - width: calc(100% - 5vw); -} - - -/* * * * * * * * * * * * * * * * - * LISTING - DETAIL * - * * * * * * * * * * * * * * * */ - -#listing.list { - flex-direction: column; - padding-top: 3.25em; - width: 100%; - max-width: 100%; - margin: 0; -} - -#listing.list .item { - width: 100%; - margin: 0; - border: 0; - border-bottom: 1px solid rgba(0, 0, 0, 0.1); - padding: 1em; -} - -#listing.list h2 { - display: none; -} - -#listing .item[aria-selected=true] { - background: #2196f3 !important; - color: #fff !important; -} - -#listing.list .item div:first-of-type { - width: 3em; -} - -#listing.list .item div:first-of-type i { - font-size: 2em; -} - -#listing.list .item div:last-of-type { - width: calc(100% - 3em); - display: flex; - align-items: center; -} - -#listing.list .item .name { - width: 50%; -} - -#listing.list .item .size { - width: 25%; -} - -#listing .item.header { - display: none !important; - background-color: #ccc; -} - -#listing.list .header i { - font-size: 1.5em; - vertical-align: middle; - margin-left: .2em; -} - -#listing.list .item.header { - display: flex !important; - background: #fafafa; - position: fixed; - width: 100%; - top: 7.8em; - left: 0; - z-index: 999; - padding: .85em; -} - -#listing.list .item.header>div:first-child { - width: 0; -} - -#listing.list .item.header .name { - margin-right: 3em; -} - -#listing.list .header { - display: flex; - background: #fafafa; - position: fixed; - width: 100%; - top: 7.8em; - left: 0; - z-index: 999; -} - -#listing.list .header a { - color: inherit; -} - -#listing.list .item.header>div:first-child { - width: 0; -} - -#listing.list .name { - font-weight: normal; -} - -#listing.list .item.header .name { - margin-right: 3em; -} - -#listing.list .header span { - vertical-align: middle; -} - -#listing.list .header i { - opacity: 0; - transition: .1s ease all; -} - -#listing.list .header p:hover i, -#listing.list .header .active i { - opacity: 1; -} - -#listing.list .item.header .active { - font-weight: bold; -} - - -/* * * * * * * * * * * * * * * * - * MULTIPLE SELECTION DIALOG * - * * * * * * * * * * * * * * * */ - -#multiple-selection { - position: fixed; - bottom: -4em; - left: 0; - z-index: 99999999; - width: 100%; - background-color: #2196f3; - height: 4em; - display: flex !important; - padding: 0.5em 0.5em 0.5em 1em; - justify-content: space-between; - align-items: center; - transition: .2s ease all; -} - -#multiple-selection.active { - bottom: 0; -} - -#multiple-selection * { - margin: 0; -} - -#multiple-selection p, -#multiple-selection i { - color: #fff; -} - - -/* * * * * * * * * * * * * * * * - * PROMPT * - * * * * * * * * * * * * * * * */ - -.overlay, -.prompt, -.help { - opacity: 0; - z-index: -1; - transition: .1s ease opacity, z-index; -} - -.overlay.active, -.prompt.active, -.help.active { - z-index: 9999999; - opacity: 1; -} - -.overlay { - background-color: rgba(0, 0, 0, 0.5); - position: fixed; - top: 0; - left: 0; - height: 0; - width: 0; -} - -.overlay.active { - height: 100%; - width: 100%; -} - -.prompt, -.help { - position: fixed; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - z-index: 99999999; - background: #fff; - border: 1px solid rgba(0, 0, 0, 0.075); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - padding: 2em; - max-width: 25em; - width: 90%; - max-height: 95%; -} - -.prompt h3, -.help h3 { - margin: 0; - font-weight: 500; - font-size: 1.5em; -} - -.prompt p, -.help p { - font-size: .9em; - color: rgba(0, 0, 0, 0.8); - margin: .5em 0 1em; -} - -.prompt input { - width: 100%; - border: 1px solid #dadada; - line-height: 1; - padding: .3em; -} - -.prompt code { - word-wrap: break-word; -} - -.prompt div, -.help div { - margin-top: 1em; - display: flex; - justify-content: flex-start; - flex-direction: row-reverse; -} - -.prompt .cancel { - background-color: #ECEFF1; - color: #37474F; -} - -.prompt .cancel:hover { - background-color: #e9eaeb; -} - - -/* * * * * * * * * * * * * * * * - * PROMPT - MOVE * - * * * * * * * * * * * * * * * */ - -.prompt .file-list { - flex-direction: initial; - max-height: 50vh; - overflow: auto; -} - -.prompt .file-list ul { - list-style: none; - margin: 0; - padding: 0; - width: 100%; -} - -.prompt .file-list ul li { - width: 100%; - user-select: none; -} - -.prompt .file-list ul li[aria-selected=true] { - background: #2196f3 !important; - color: #fff !important; - transition: .1s ease all; -} - -.prompt .file-list ul li:hover { - background-color: #e9eaeb; - cursor: pointer; -} - -.prompt .file-list ul li:before { - content: "folder"; - color: #6f6f6f; - vertical-align: middle; - padding: 0 .25em; - line-height: 2em; -} - -.prompt .file-list ul li[aria-selected=true]:before { - color: white; -} - - -/* * * * * * * * * * * * * * * * - * HELP * - * * * * * * * * * * * * * * * */ - -.help { - max-width: 24em; - visibility: hidden; - top: -100%; - left: -100%; -} - -.help.active { - visibility: visible; - top: 50%; - left: 50%; -} - -.help ul { - padding: 0; - margin: 1em 0; - list-style: none; -} - - -/* * * * * * * * * * * * * * * * - * FOOTER * - * * * * * * * * * * * * * * * */ - -footer { - font-size: 0.6em; - margin: 2em 0 2em; - text-align: center; - color: grey; -} - -footer a, -footer a:hover { - color: inherit; -} - - -/* * * * * * * * * * * * * * * * - * MEDIA QUERIES * - * * * * * * * * * * * * * * * */ - -@media screen and (max-width: 850px) { - .frontmatter { - column-count: 2; - } -} - -@media screen and (max-width: 650px) { - body { - transition: .2s ease padding; - } - .mobile-only { - display: inherit !important; - } - #top-bar>div:nth-child(1) { - display: none; - } - #bottom-bar>*:first-child { - max-width: calc(100% - 16em) !important; - } - #main-actions { - position: fixed; - top: -100%; - right: -100%; - visibility: hidden; - display: flex; - flex-direction: column; - border-radius: .1em; - border-top-left-radius: 0; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - background: #fff; - z-index: 9999999; - } - #main-actions.active { - right: .5em; - top: 4.5em; - visibility: visible; - } - #main-actions .action { - padding: .7em; - border-radius: 0; - align-items: center; - } - #main-actions .action:hover { - background-color: rgba(0, 0, 0, 0.04); - } - #main-actions i { - padding: 0; - vertical-align: middle; - } - #main-actions .action:hover i { - padding: 0; - background-color: transparent; - } - #main-actions span { - display: inline-block; - margin-left: .5em; - font-size: .9em; - } - #listing.list .item .size, - #listing.list .item .modified { - display: none; - } - #listing.list .item .name { - width: 100%; - } - .frontmatter { - column-count: 1; - } -} - -@media screen and (max-width: 450px) { - #bottom-bar p { - display: none !important; - } -} - - -/* * * * * * * * * * * * * * * * - * ANIMATIONS * - * * * * * * * * * * * * * * * */ - -@keyframes spin { - 100% { - -webkit-transform: rotate(-360deg); - transform: rotate(-360deg); - } -} diff --git a/_embed/public/css/roboto/medium-cyrillic-ext.woff2 b/_embed/public/css/roboto/medium-cyrillic-ext.woff2 deleted file mode 100644 index f63bc9a1..00000000 Binary files a/_embed/public/css/roboto/medium-cyrillic-ext.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/medium-cyrillic.woff2 b/_embed/public/css/roboto/medium-cyrillic.woff2 deleted file mode 100644 index b3ca824d..00000000 Binary files a/_embed/public/css/roboto/medium-cyrillic.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/medium-greek-ext.woff2 b/_embed/public/css/roboto/medium-greek-ext.woff2 deleted file mode 100644 index 7e1a8078..00000000 Binary files a/_embed/public/css/roboto/medium-greek-ext.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/medium-greek.woff2 b/_embed/public/css/roboto/medium-greek.woff2 deleted file mode 100644 index 314cf3f8..00000000 Binary files a/_embed/public/css/roboto/medium-greek.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/medium-latin-ext.woff2 b/_embed/public/css/roboto/medium-latin-ext.woff2 deleted file mode 100644 index 604b8935..00000000 Binary files a/_embed/public/css/roboto/medium-latin-ext.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/medium-latin.woff2 b/_embed/public/css/roboto/medium-latin.woff2 deleted file mode 100644 index 5f96609d..00000000 Binary files a/_embed/public/css/roboto/medium-latin.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/medium-vietnamese.woff2 b/_embed/public/css/roboto/medium-vietnamese.woff2 deleted file mode 100644 index d92b7125..00000000 Binary files a/_embed/public/css/roboto/medium-vietnamese.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/normal-cyrillic-ext.woff2 b/_embed/public/css/roboto/normal-cyrillic-ext.woff2 deleted file mode 100644 index e4546e49..00000000 Binary files a/_embed/public/css/roboto/normal-cyrillic-ext.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/normal-cyrillic.woff2 b/_embed/public/css/roboto/normal-cyrillic.woff2 deleted file mode 100644 index d08397f7..00000000 Binary files a/_embed/public/css/roboto/normal-cyrillic.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/normal-greek-ext.woff2 b/_embed/public/css/roboto/normal-greek-ext.woff2 deleted file mode 100644 index ed0b13ca..00000000 Binary files a/_embed/public/css/roboto/normal-greek-ext.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/normal-greek.woff2 b/_embed/public/css/roboto/normal-greek.woff2 deleted file mode 100644 index f630772d..00000000 Binary files a/_embed/public/css/roboto/normal-greek.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/normal-latin-ext.woff2 b/_embed/public/css/roboto/normal-latin-ext.woff2 deleted file mode 100644 index 0c7aec28..00000000 Binary files a/_embed/public/css/roboto/normal-latin-ext.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/normal-latin.woff2 b/_embed/public/css/roboto/normal-latin.woff2 deleted file mode 100644 index 120796bb..00000000 Binary files a/_embed/public/css/roboto/normal-latin.woff2 and /dev/null differ diff --git a/_embed/public/css/roboto/normal-vietnamese.woff2 b/_embed/public/css/roboto/normal-vietnamese.woff2 deleted file mode 100644 index 7936b665..00000000 Binary files a/_embed/public/css/roboto/normal-vietnamese.woff2 and /dev/null differ diff --git a/_embed/public/css/styles.css b/_embed/public/css/styles.css deleted file mode 100644 index eb9d8a5b..00000000 --- a/_embed/public/css/styles.css +++ /dev/null @@ -1,1207 +0,0 @@ -body { - font-family: 'Roboto', sans-serif; - padding-top: 7.8em; - background-color: #f8f8f8; -} - -* { - box-sizing: border-box; -} - -*, -*:hover, -*:active, -*:focus { - outline: 0 -} - -a { - text-decoration: none; -} - -img { - max-width: 100%; -} - -audio, -video { - width: 100%; -} - -pre { - padding: 1em; - border: 1px solid #e6e6e6; - border-radius: 0.5em; - background-color: #f5f5f5; - white-space: pre-wrap; - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - word-wrap: break-word; -} - -button { - border: 0; - padding: .5em 1em; - margin-left: .5em; - border-radius: .1em; - cursor: pointer; - background: #2196f3; - color: #fff; - border: 1px solid rgba(0, 0, 0, 0.05); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); - transition: .1s ease all; -} - -button:hover { - background-color: #1E88E5; -} - -.mobile-only { - display: none !important; -} - -.container { - width: 95%; - max-width: 960px; - margin: 1em auto 0; -} - -i.spin { - animation: 1s spin linear infinite; -} - -.pdf { - width: 100%; - height: calc(100vh - 13em); -} - - -/* * * * * * * * * * * * * * * * - * EDITOR * - * * * * * * * * * * * * * * * */ - -#editor .source { - display: none; -} - -#editor .content { - background: #fff; - padding: 1em 0; -} - -#editor #ace, -#editor h2, -#editor .frontmatter { - width: 95%; - max-width: 960px; - margin: 1em auto 0; -} - -#editor h2 { - margin: 1.5em auto 1em; - color: rgba(0, 0, 0, 0.3); - font-weight: 500; -} - -#editor .ace_gutter { - background-color: #fff; -} - - -/* * * * * * * * * * * * * * * * - * EDITOR - MARKDOWN * - * * * * * * * * * * * * * * * */ - -.frontmatter { - column-count: 3; - column-gap: 1em; - column-fill: balance; - /* display: flex; */ - /* flex-wrap: wrap; */ - /* justify-content: space-between; */ - /* flex-grow: 1; */ -} - -.frontmatter label { - display: block; - width: calc(100% - 1em); - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} - -.frontmatter label, -.frontmatter h3 { - font-weight: 500; - margin: 0 0; - color: rgba(0, 0, 0, 0.6); -} - -.frontmatter input, -.frontmatter textarea { - display: block; - width: 100%; - border: 0; - margin-top: .5em; - padding: 0; - line-height: 1; -} - -.frontmatter .block, -.frontmatter fieldset[data-type="array"], -.button { - position: relative; - background: #fff; - border-radius: .2em; - border: 1px solid rgba(0, 0, 0, 0.075); - padding: .5em; - break-inside: avoid; - margin: 0 0 1em; - width: 100%; - display: inline-block; -} - -.frontmatter fieldset[data-type="object"] { - position: relative; - margin: 0; -} - -.frontmatter .button { - background-color: #2196f3; - color: #fff; - cursor: pointer; - text-align: center; -} - -[data-type="array-item"] { - position: relative; -} - -[data-type="array-item"] .action { - top: 0; - right: 0; -} - -.frontmatter textarea { - resize: none; -} - -[data-type="array-item"] input { - width: calc(100% - 1em); -} - -.block .action, -fieldset .action { - position: absolute; - top: .5em; - right: .5em; -} - -.block>.action, -fieldset>.action { - opacity: 0; -} - -.block:hover>.action, -fieldset:hover>.action { - opacity: 1; -} - -.block .action.add, -fieldset .action.add { - right: 1.5em; -} - -.frontmatter .action i { - padding: 0; - font-size: 1em; -} - -fieldset { - border: 0; - padding: 0; -} - -.frontmatter>fieldset h3, -.frontmatter>.group h3 { - font-size: 1.5em; - margin-bottom: .5em; -} - -fieldset h3, -.group h3 { - font-size: 0.9em; -} - - -/* * * * * * * * * * * * * * * * - * ACTION * - * * * * * * * * * * * * * * * */ - -.action { - display: inline-block; - cursor: pointer; - -webkit-transition: 0.2s ease all; - transition: 0.2s ease all; - border: 0; - margin: 0; - color: #546E7A; - border-radius: 50%; -} - -.action.disabled { - opacity: 0.2; - cursor: not-allowed; -} - -.action i { - padding: 0.4em; - -webkit-transition: 0.2s ease-in-out all; - transition: 0.2s ease-in-out all; - border-radius: 50%; -} - -.action:hover i { - background-color: rgba(0, 0, 0, .1); -} - -.action ul { - position: absolute; - top: 0; - color: #7d7d7d; - list-style: none; - margin: 0; - padding: 0; - flex-direction: column; - display: flex; -} - -.action ul li { - line-height: 1; - padding: .7em; - transition: .1s ease background-color; -} - -.action ul li:hover { - background-color: rgba(0, 0, 0, 0.04); -} - - -/* * * * * * * * * * * * * * * * - * NEW FILE/DIR * - * * * * * * * * * * * * * * * */ - -.floating { - position: fixed; - bottom: 1em; - right: 1em; -} - -.floating .action { - background-color: #2196f3 !important; - color: #fff; - box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); -} - -#newdir { - position: fixed; - bottom: 1.3em; - right: 5em; - transition: .2s ease all; - opacity: 0; - border: 0; - box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); - padding: .5em; - width: 22em; - border-radius: .2em; -} - -#newdir.enabled { - opacity: 1; -} - - -/* * * * * * * * * * * * * * * * - * HEADER * - * * * * * * * * * * * * * * * */ - -header { - z-index: 1000; - background-color: #fff; - border-bottom: 1px solid rgba(0, 0, 0, 0.075); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - position: fixed; - top: 0; - left: 0; - width: 100%; - padding: 0; -} - -header a, -header a:hover { - color: inherit; -} - -header p i { - font-size: 1em !important; - color: rgba(255, 255, 255, .31); -} - -header>div { - display: flex; - width: 100%; - padding: 0.5em 0.5em 0.5em 1em; - align-items: center; -} - -header p { - display: inline-block; - margin: 0; - vertical-align: middle; -} - -header p a, -header p a:hover { - color: inherit; -} - -header .action span { - display: none; -} - -header>div div { - vertical-align: middle; - position: relative; -} - -#logout { - border-radius: 0; - margin-left: auto; - padding: .15em; -} - -#click-overlay { - display: none; - position: fixed; - cursor: pointer; - top: 0; - left: 0; - height: 100%; - width: 100%; -} - -#click-overlay.active { - display: block; -} - - -/* * * * * * * * * * * * * * * * - * TOP BAR * - * * * * * * * * * * * * * * * */ - -#top-bar { - height: 4em; -} - -#top-bar>div:nth-child(1) { - margin-right: 1em; - font-weight: 500; - font-size: 1.5em; - line-height: 2; -} - - -/* * * * * * * * * * * * * * * * - * SEARCH BAR * - * * * * * * * * * * * * * * * */ - -#search { - position: relative; - display: flex; - height: 100%; - padding: 0.75em; - vertical-align: middle; - border-radius: 0.3em; - background-color: #f5f5f5; - transition: .1s ease all; - width: 100%; - max-width: 25em; -} - -#search.active { - background-color: #fff; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); -} - -#search.active i, -#search.active input { - color: #212121; -} - -#search i, -#search input { - vertical-align: middle; -} - -#search i { - margin-right: 0.3em; - user-select: none; -} - -#search input { - width: 100%; - border: 0; - outline: 0; - background-color: transparent; -} - -#search.active div { - visibility: visible; - opacity: 1; - top: 100%; -} - -#search ul { - padding: 0; - margin: 0; - list-style: none; -} - -#search li { - margin-bottom: .5em; -} - -#search>div { - position: absolute; - top: 0; - width: 100%; - left: 0; - z-index: 999999; - background-color: #fff; - text-align: left; - color: #ccc; - box-shadow: 0 2px 3px rgba(0, 0, 0, .06), 0 2px 2px rgba(0, 0, 0, .12); - padding: .5em; - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - transition: .1s ease all; - visibility: hidden; - opacity: 0; - overflow-x: hidden; - overflow-y: auto; - max-height: 50vh; -} - -#search>div div { - white-space: pre-wrap; - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - word-wrap: break-word; -} - -#search>div p { - width: 100%; - text-align: center; - display: none; - margin: 0; - max-width: none; -} - -#search.ongoing p { - display: block; -} - -#search.active div i, -#sidebar #search.active div i { - color: #ccc; - text-align: center; - margin: 0 auto; - display: table; -} - -#search::-webkit-input-placeholder { - color: rgba(255, 255, 255, .5); -} - -#search:-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, .5); -} - -#search::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, .5); -} - -#search:-ms-input-placeholder { - color: rgba(255, 255, 255, .5); -} - - -/* * * * * * * * * * * * * * * * - * BOTTOM BAR * - * * * * * * * * * * * * * * * */ - -#bottom-bar { - background-color: #fafafa; - border-top: 1px solid rgba(0, 0, 0, 0.075); - border-bottom: 1px solid rgba(0, 0, 0, 0.075); - height: 3.8em; -} - -#bottom-bar>div:first-child>* { - display: inline-block; - vertical-align: middle; -} - -#bottom-bar>div:first-child>i { - margin-right: .3em; -} - -#bottom-bar>*:first-child { - margin-right: auto; - max-width: calc(100% - 25em); - width: 100%; -} - -#bottom-bar p { - text-overflow: ellipsis; - overflow: hidden; - width: calc(100% - 3em); - white-space: nowrap; -} - -#more { - display: none; -} - -#file-only { - display: inline-block; - border-right: 1px solid rgba(0, 0, 0, 0.075); - padding-right: .3em; - margin-right: .3em; - transition: .2s ease opacity, visibility; - visibility: visible; -} - -#file-only.disabled { - opacity: 0; - visibility: hidden; -} - -#download ul.active { - top: 0; - right: 0; -} - -#more ul.active { - right: .5em; - top: 4.5em; -} - - -/* * * * * * * * * * * * * * * * - * DROPDOWN * - * * * * * * * * * * * * * * * */ - -.dropdown { - position: fixed; - top: -100%; - right: -100%; - visibility: hidden; - display: flex; - flex-direction: column; - border-radius: .1em; - border-top-left-radius: 0; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - background: #fff; - z-index: 9999999; -} - -.dropdown.active { - visibility: visible; -} - -.dropdown .action { - padding: .7em; -} - -.dropdown i { - padding: 0; - vertical-align: middle; -} - -.dropdown span { - display: inline-block; - margin-left: .5em; - font-size: .9em; -} - - -/* * * * * * * * * * * * * * * * - * BREADCRUMBS * - * * * * * * * * * * * * * * * */ - -#previous { - margin-left: -.5em; -} - -#breadcrumbs { - min-width: 7em; -} - -#breadcrumbs.active { - top: 0; - left: 0; - right: auto; -} - - -/* * * * * * * * * * * * * * * * - * LISTING * - * * * * * * * * * * * * * * * */ - -#listing { - max-width: calc(100% - 1.2em); - width: 100%; -} - -#listing h2 { - margin: 0 0 0 0.5em; - font-size: 1em; - color: rgba(0, 0, 0, 0.2); - font-weight: 500; -} - -#listing .item div:last-of-type * { - text-overflow: ellipsis; - overflow: hidden; -} - -#listing>div { - display: flex; - padding: 0; - flex-wrap: wrap; - justify-content: flex-start; - position: relative; -} - -#listing .item { - background-color: #fff; - position: relative; - display: flex; - flex-wrap: nowrap; - color: #6f6f6f; - transition: .1s ease all; - align-items: center; - cursor: pointer; -} - -#listing .item div:last-of-type { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; -} - -#listing .item p { - margin: 0; -} - -#listing .item .size, -#listing .item .modified { - font-size: 0.9em; -} - -#listing .item .name { - font-weight: bold; -} - -#listing .item i { - font-size: 4em; - margin-right: 0.1em; - vertical-align: bottom; -} - -#listing h2.message, -.message { - text-align: center; - font-size: 3em; - margin: 1em auto; - display: block !important; - width: 95%; - color: rgba(0, 0, 0, 0.2); - font-weight: 500; -} - -.message i { - font-size: inherit; - vertical-align: middle; -} - - -/* * * * * * * * * * * * * * * * - * LISTING - MOSAIC * - * * * * * * * * * * * * * * * */ - -#listing.mosaic { - margin-top: 1em; -} - -#listing.mosaic .item { - width: calc(33% - 1em); - margin: .5em; - padding: 0.5em; - border-radius: 0.2em; - box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); -} - -#listing.mosaic .item:hover { - box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24) !important; -} - -#listing.mosaic .header { - display: none; -} - -#listing.mosaic .item div:first-of-type { - width: 5em; -} - -#listing.mosaic .item div:last-of-type { - width: calc(100% - 5vw); -} - - -/* * * * * * * * * * * * * * * * - * LISTING - DETAIL * - * * * * * * * * * * * * * * * */ - -#listing.list { - flex-direction: column; - padding-top: 3.25em; - width: 100%; - max-width: 100%; - margin: 0; -} - -#listing.list .item { - width: 100%; - margin: 0; - border: 0; - border-bottom: 1px solid rgba(0, 0, 0, 0.1); - padding: 1em; -} - -#listing.list h2 { - display: none; -} - -#listing .item[aria-selected=true] { - background: #2196f3 !important; - color: #fff !important; -} - -#listing.list .item div:first-of-type { - width: 3em; -} - -#listing.list .item div:first-of-type i { - font-size: 2em; -} - -#listing.list .item div:last-of-type { - width: calc(100% - 3em); - display: flex; - align-items: center; -} - -#listing.list .item .name { - width: 50%; -} - -#listing.list .item .size { - width: 25%; -} - -#listing .item.header { - display: none !important; - background-color: #ccc; -} - -#listing.list .header i { - font-size: 1.5em; - vertical-align: middle; - margin-left: .2em; -} - -#listing.list .item.header { - display: flex !important; - background: #fafafa; - position: fixed; - width: 100%; - top: 7.8em; - left: 0; - z-index: 999; - padding: .85em; -} - -#listing.list .item.header>div:first-child { - width: 0; -} - -#listing.list .item.header .name { - margin-right: 3em; -} - -#listing.list .header { - display: flex; - background: #fafafa; - position: fixed; - width: 100%; - top: 7.8em; - left: 0; - z-index: 999; -} - -#listing.list .header a { - color: inherit; -} - -#listing.list .item.header>div:first-child { - width: 0; -} - -#listing.list .name { - font-weight: normal; -} - -#listing.list .item.header .name { - margin-right: 3em; -} - -#listing.list .header span { - vertical-align: middle; -} - -#listing.list .header i { - opacity: 0; - transition: .1s ease all; -} - -#listing.list .header p:hover i, -#listing.list .header .active i { - opacity: 1; -} - -#listing.list .item.header .active { - font-weight: bold; -} - - -/* * * * * * * * * * * * * * * * - * MULTIPLE SELECTION DIALOG * - * * * * * * * * * * * * * * * */ - -#multiple-selection { - position: fixed; - bottom: -4em; - left: 0; - z-index: 99999999; - width: 100%; - background-color: #2196f3; - height: 4em; - display: flex !important; - padding: 0.5em 0.5em 0.5em 1em; - justify-content: space-between; - align-items: center; - transition: .2s ease all; -} - -#multiple-selection.active { - bottom: 0; -} - -#multiple-selection * { - margin: 0; -} - -#multiple-selection p, -#multiple-selection i { - color: #fff; -} - - -/* * * * * * * * * * * * * * * * - * PROMPT * - * * * * * * * * * * * * * * * */ - -.overlay, -.prompt, -.help { - opacity: 0; - z-index: -1; - transition: .1s ease opacity, z-index; -} - -.overlay.active, -.prompt.active, -.help.active { - z-index: 9999999; - opacity: 1; -} - -.overlay { - background-color: rgba(0, 0, 0, 0.5); - position: fixed; - top: 0; - left: 0; - height: 0; - width: 0; -} - -.overlay.active { - height: 100%; - width: 100%; -} - -.prompt, -.help { - position: fixed; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - z-index: 99999999; - background: #fff; - border: 1px solid rgba(0, 0, 0, 0.075); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - padding: 2em; - max-width: 25em; - width: 90%; - max-height: 95%; -} - -.prompt h3, -.help h3 { - margin: 0; - font-weight: 500; - font-size: 1.5em; -} - -.prompt p, -.help p { - font-size: .9em; - color: rgba(0, 0, 0, 0.8); - margin: .5em 0 1em; -} - -.prompt input { - width: 100%; - border: 1px solid #dadada; - line-height: 1; - padding: .3em; -} - -.prompt code { - word-wrap: break-word; -} - -.prompt div, -.help div { - margin-top: 1em; - display: flex; - justify-content: flex-start; - flex-direction: row-reverse; -} - -.prompt .cancel { - background-color: #ECEFF1; - color: #37474F; -} - -.prompt .cancel:hover { - background-color: #e9eaeb; -} - - -/* * * * * * * * * * * * * * * * - * PROMPT - MOVE * - * * * * * * * * * * * * * * * */ - -.prompt .file-list { - flex-direction: initial; - max-height: 50vh; - overflow: auto; -} - -.prompt .file-list ul { - list-style: none; - margin: 0; - padding: 0; - width: 100%; -} - -.prompt .file-list ul li { - width: 100%; - user-select: none; -} - -.prompt .file-list ul li[aria-selected=true] { - background: #2196f3 !important; - color: #fff !important; - transition: .1s ease all; -} - -.prompt .file-list ul li:hover { - background-color: #e9eaeb; - cursor: pointer; -} - -.prompt .file-list ul li:before { - content: "folder"; - color: #6f6f6f; - vertical-align: middle; - padding: 0 .25em; - line-height: 2em; -} - -.prompt .file-list ul li[aria-selected=true]:before { - color: white; -} - - -/* * * * * * * * * * * * * * * * - * HELP * - * * * * * * * * * * * * * * * */ - -.help { - max-width: 24em; - visibility: hidden; - top: -100%; - left: -100%; -} - -.help.active { - visibility: visible; - top: 50%; - left: 50%; -} - -.help ul { - padding: 0; - margin: 1em 0; - list-style: none; -} - - -/* * * * * * * * * * * * * * * * - * FOOTER * - * * * * * * * * * * * * * * * */ - -footer { - font-size: 0.6em; - margin: 2em 0 2em; - text-align: center; - color: grey; -} - -footer a, -footer a:hover { - color: inherit; -} - - -/* * * * * * * * * * * * * * * * - * MEDIA QUERIES * - * * * * * * * * * * * * * * * */ - -@media screen and (max-width: 850px) { - .frontmatter { - column-count: 2; - } -} - -@media screen and (max-width: 650px) { - body { - transition: .2s ease padding; - } - .mobile-only { - display: inherit !important; - } - #top-bar>div:nth-child(1) { - display: none; - } - #bottom-bar>*:first-child { - max-width: calc(100% - 16em) !important; - } - #main-actions { - position: fixed; - top: -100%; - right: -100%; - visibility: hidden; - display: flex; - flex-direction: column; - border-radius: .1em; - border-top-left-radius: 0; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - background: #fff; - z-index: 9999999; - } - #main-actions.active { - right: .5em; - top: 4.5em; - visibility: visible; - } - #main-actions .action { - padding: .7em; - border-radius: 0; - align-items: center; - } - #main-actions .action:hover { - background-color: rgba(0, 0, 0, 0.04); - } - #main-actions i { - padding: 0; - vertical-align: middle; - } - #main-actions .action:hover i { - padding: 0; - background-color: transparent; - } - #main-actions span { - display: inline-block; - margin-left: .5em; - font-size: .9em; - } - #listing.list .item .size, - #listing.list .item .modified { - display: none; - } - #listing.list .item .name { - width: 100%; - } - .frontmatter { - column-count: 1; - } -} - -@media screen and (max-width: 450px) { - #bottom-bar p { - display: none !important; - } -} - - -/* * * * * * * * * * * * * * * * - * ANIMATIONS * - * * * * * * * * * * * * * * * */ - -@keyframes spin { - 100% { - -webkit-transform: rotate(-360deg); - transform: rotate(-360deg); - } -} diff --git a/_embed/public/js/common.js b/_embed/public/js/common.js deleted file mode 100644 index 76cae2a3..00000000 --- a/_embed/public/js/common.js +++ /dev/null @@ -1,685 +0,0 @@ -'use strict' - -var tempID = '_fm_internal_temporary_id' -var ssl = (window.location.protocol === 'https:') -var templates = {} -var selectedItems = [] -var overlay -var clickOverlay - -// Removes an element, if exists, from an array -Array.prototype.removeElement = function (element) { - var i = this.indexOf(element) - if (i !== -1) { - this.splice(i, 1) - } -} - -// Replaces an element inside an array by another -Array.prototype.replaceElement = function (oldElement, newElement) { - var i = this.indexOf(oldElement) - if (i !== -1) { - this[i] = newElement - } -} - -// Sends a costum event to itself -Document.prototype.sendCostumEvent = function (text) { - this.dispatchEvent(new window.CustomEvent(text)) -} - -// Gets the content of a cookie -Document.prototype.getCookie = function (name) { - var re = new RegExp('(?:(?:^|.*;\\s*)' + name + '\\s*\\=\\s*([^;]*).*$)|^.*$') - return document.cookie.replace(re, '$1') -} - -// Remove the last directory of an url -var removeLastDirectoryPartOf = function (url) { - var arr = url.split('/') - if (arr.pop() === '') { - arr.pop() - } - return (arr.join('/')) -} - -function getCSSRule (rules) { - for (let i = 0; i < rules.length; i++) { - rules[i] = rules[i].toLowerCase() - } - - let result = null - let find = Array.prototype.find - - find.call(document.styleSheets, styleSheet => { - result = find.call(styleSheet.cssRules, cssRule => { - let found = false - - if (cssRule instanceof CSSStyleRule) { - for (let i = 0; i < rules.length; i++) { - if (cssRule.selectorText.toLowerCase() === rules[i]) { - found = true - } - } - } - - return found - }) - - return result != null - }) - - return result -} - -/* * * * * * * * * * * * * * * * - * * - * BUTTONS * - * * - * * * * * * * * * * * * * * * */ -var buttons = { - previousState: {} -} - -buttons.setLoading = function (name) { - if (typeof this[name] === 'undefined') return - let i = this[name].querySelector('i') - - this.previousState[name] = i.innerHTML - i.style.opacity = 0 - - setTimeout(function () { - i.classList.add('spin') - i.innerHTML = 'autorenew' - i.style.opacity = 1 - }, 200) -} - -// Changes an element to done animation -buttons.setDone = function (name, success = true) { - let i = this[name].querySelector('i') - - i.style.opacity = 0 - - let thirdStep = () => { - i.innerHTML = this.previousState[name] - i.style.opacity = null - - if (selectedItems.length === 0 && document.getElementById('listing')) { - document.sendCostumEvent('changed-selected') - } - } - - let secondStep = () => { - i.style.opacity = 0 - setTimeout(thirdStep, 200) - } - - let firstStep = () => { - i.classList.remove('spin') - i.innerHTML = success - ? 'done' - : 'close' - i.style.opacity = 1 - setTimeout(secondStep, 1000) - } - - setTimeout(firstStep, 200) - return false -} - -/* * * * * * * * * * * * * * * * - * * - * WEBDAV * - * * - * * * * * * * * * * * * * * * */ -var webdav = {} - -webdav.convertURL = function (url) { - return window.location.origin + url.replace(baseURL + '/', webdavURL + '/') -} - -webdav.move = function (oldLink, newLink) { - return new Promise((resolve, reject) => { - let request = new window.XMLHttpRequest() - let destination = newLink.replace(baseURL + '/', webdavURL + '/') - - destination = window.location.origin + destination.substring(prefixURL.length) - - request.open('MOVE', webdav.convertURL(oldLink), true) - request.setRequestHeader('Destination', destination) - request.onload = () => { - if (request.status === 201 || request.status === 204) { - resolve() - } else { - reject(request.statusText) - } - } - request.onerror = () => reject(request.statusText) - request.send() - }) -} - -webdav.put = function (link, body, headers = {}) { - return new Promise((resolve, reject) => { - let request = new window.XMLHttpRequest() - request.open('PUT', webdav.convertURL(link), true) - - for (let key in headers) { - request.setRequestHeader(key, headers[key]) - } - - request.onload = () => { - if (request.status == 201) { - resolve() - } else { - reject(request.statusText) - } - } - request.onerror = () => reject(request.statusText) - request.send(body) - }) -} - -webdav.propfind = function (link, body, headers = {}) { - return new Promise((resolve, reject) => { - let request = new window.XMLHttpRequest() - request.open('PROPFIND', webdav.convertURL(link), true) - - for (let key in headers) { - request.setRequestHeader(key, headers[key]) - } - - request.onload = () => { - if (request.status < 300) { - resolve(request.responseText) - } else { - reject(request.statusText) - } - } - request.onerror = () => reject(request.statusText) - request.send(body) - }) -} - -webdav.delete = function (link) { - return new Promise((resolve, reject) => { - let request = new window.XMLHttpRequest() - request.open('DELETE', webdav.convertURL(link), true) - request.onload = () => { - if (request.status === 204) { - resolve() - } else { - reject(request.statusText) - } - } - request.onerror = () => reject(request.statusText) - request.send() - }) -} - -webdav.new = function (link) { - return new Promise((resolve, reject) => { - let request = new window.XMLHttpRequest() - request.open((link.endsWith('/') ? 'MKCOL' : 'PUT'), webdav.convertURL(link), true) - request.onload = () => { - if (request.status === 201) { - resolve() - } else { - reject(request.statusText) - } - } - request.onerror = () => reject(request.statusText) - request.send() - }) -} - -/* * * * * * * * * * * * * * * * - * * - * EVENTS * - * * - * * * * * * * * * * * * * * * */ -function closePrompt (event) { - let prompt = document.querySelector('.prompt') - - if (!prompt) return - - if (typeof event !== 'undefined') { - event.preventDefault() - } - - document.querySelector('.overlay').classList.remove('active') - prompt.classList.remove('active') - - setTimeout(() => { - prompt.remove() - }, 100) -} - -function notImplemented (event) { - event.preventDefault() - clickOverlay.click() - - let clone = document.importNode(templates.message.content, true) - clone.querySelector('h3').innerHTML = 'Not implemented' - clone.querySelector('p').innerHTML = "Sorry, but this feature wasn't implemented yet." - - document.querySelector('body').appendChild(clone) - document.querySelector('.overlay').classList.add('active') - document.querySelector('.prompt').classList.add('active') -} - -// Prevent Default event -var preventDefault = function (event) { - event.preventDefault() -} - -function logoutEvent (event) { - let request = new window.XMLHttpRequest() - request.open('GET', window.location.pathname, true, 'username', 'password') - request.send() - request.onreadystatechange = function () { - if (request.readyState === 4) { - window.location = '/' - } - } -} - -function openEvent (event) { - if (event.currentTarget.classList.contains('disabled')) { - return false - } - - let link = '?raw=true' - - if (selectedItems.length) { - link = document.getElementById(selectedItems[0]).dataset.url + link - } else { - link = window.location.pathname + link - } - - window.open(link) - return false -} - -function getHash (event, hash) { - event.preventDefault() - - let request = new window.XMLHttpRequest() - let link - - if (selectedItems.length) { - link = document.getElementById(selectedItems[0]).dataset.url - } else { - link = window.location.pathname - } - - request.open('GET', `${link}?checksum=${hash}`, true) - - request.onload = () => { - if (request.status >= 300) { - console.log(request.statusText) - return - } - event.target.parentElement.innerHTML = request.responseText - } - request.onerror = (e) => console.log(e) - request.send() -} - -function infoEvent (event) { - event.preventDefault() - if (event.currentTarget.classList.contains('disabled')) { - return - } - - let dir = false - let link - - if (selectedItems.length) { - link = document.getElementById(selectedItems[0]).dataset.url - dir = document.getElementById(selectedItems[0]).dataset.dir - } else { - if (document.getElementById('listing') !== null) { - dir = true - } - - link = window.location.pathname - } - - buttons.setLoading('info', false) - - webdav.propfind(link) - .then((text) => { - let parser = new window.DOMParser() - let xml = parser.parseFromString(text, 'text/xml') - let clone = document.importNode(templates.info.content, true) - - let value = xml.getElementsByTagName('displayname') - if (value.length > 0) { - clone.getElementById('display_name').innerHTML = value[0].innerHTML - } else { - clone.getElementById('display_name').innerHTML = xml.getElementsByTagName('D:displayname')[0].innerHTML - } - - value = xml.getElementsByTagName('getcontentlength') - if (value.length > 0) { - clone.getElementById('content_length').innerHTML = value[0].innerHTML - } else { - clone.getElementById('content_length').innerHTML = xml.getElementsByTagName('D:getcontentlength')[0].innerHTML - } - - value = xml.getElementsByTagName('getlastmodified') - if (value.length > 0) { - clone.getElementById('last_modified').innerHTML = value[0].innerHTML - } else { - clone.getElementById('last_modified').innerHTML = xml.getElementsByTagName('D:getlastmodified')[0].innerHTML - } - - if (dir === true || dir === 'true') { - clone.querySelector('.file-only').style.display = 'none' - } - - document.querySelector('body').appendChild(clone) - document.querySelector('.overlay').classList.add('active') - document.querySelector('.prompt').classList.add('active') - buttons.setDone('info', true) - }) - .catch(e => { - buttons.setDone('info', false) - console.log(e) - }) -} - -function deleteOnSingleFile () { - closePrompt() - buttons.setLoading('delete') - - webdav.delete(window.location.pathname) - .then(() => { - window.location.pathname = removeLastDirectoryPartOf(window.location.pathname) - }) - .catch(e => { - buttons.setDone('delete', false) - console.log(e) - }) -} - -function deleteOnListing () { - closePrompt() - buttons.setLoading('delete') - - let promises = [] - - for (let id of selectedItems) { - promises.push(webdav.delete(document.getElementById(id).dataset.url)) - } - - Promise.all(promises) - .then(() => { - listing.reload() - buttons.setDone('delete') - }) - .catch(e => { - console.log(e) - buttons.setDone('delete', false) - }) -} - -// Handles the delete button event -function deleteEvent (event) { - let single = false - - if (!selectedItems.length) { - selectedItems = ['placeholder'] - single = true - } - - let clone = document.importNode(templates.question.content, true) - clone.querySelector('h3').innerHTML = 'Delete files' - - if (single) { - clone.querySelector('form').addEventListener('submit', deleteOnSingleFile) - clone.querySelector('p').innerHTML = `Are you sure you want to delete this file/folder?` - } else { - clone.querySelector('form').addEventListener('submit', deleteOnListing) - clone.querySelector('p').innerHTML = `Are you sure you want to delete ${selectedItems.length} file(s)?` - } - - clone.querySelector('input').remove() - clone.querySelector('.ok').innerHTML = 'Delete' - - document.body.appendChild(clone) - document.querySelector('.overlay').classList.add('active') - document.querySelector('.prompt').classList.add('active') - - return false -} - -function resetSearchText () { - let box = document.querySelector('#search > div div') - - if (user.AllowCommands) { - box.innerHTML = `Search or use one of your supported commands: ${user.Commands.join(", ")}.` - } else { - box.innerHTML = 'Type and press enter to search.' - } -} - -function searchEvent (event) { - if (this.value.length === 0) { - resetSearchText() - return - } - - let value = this.value, - search = document.getElementById('search'), - scrollable = document.querySelector('#search > div'), - box = document.querySelector('#search > div div'), - pieces = value.split(' '), - supported = false - - user.Commands.forEach(function (cmd) { - if (cmd == pieces[0]) { - supported = true - } - }) - - if (!supported || !user.AllowCommands) { - box.innerHTML = 'Press enter to search.' - } else { - box.innerHTML = 'Press enter to execute.' - } - - if (event.keyCode === 13) { - box.innerHTML = '' - search.classList.add('ongoing') - - let url = window.location.host + window.location.pathname - - if (document.getElementById('editor')) { - url = removeLastDirectoryPartOf(url) - } - - let protocol = ssl ? 'wss:' : 'ws:' - - if (supported && user.AllowCommands) { - let conn = new window.WebSocket(`${protocol}//${url}?command=true`) - - conn.onopen = function () { - conn.send(value) - } - - conn.onmessage = function (event) { - box.innerHTML = event.data - scrollable.scrollTop = scrollable.scrollHeight - } - - conn.onclose = function (event) { - search.classList.remove('ongoing') - listing.reload() - } - - return - } - - box.innerHTML = '' - - let ul = box.querySelector('ul') - let conn = new window.WebSocket(`${protocol}//${url}?search=true`) - - conn.onopen = function () { - conn.send(value) - } - - conn.onmessage = function (event) { - ul.innerHTML += '
  • ' + event.data + '
  • ' - scrollable.scrollTop = scrollable.scrollHeight - } - - conn.onclose = function (event) { - search.classList.remove('ongoing') - } - } -} - -function setupSearch () { - let search = document.getElementById('search') - let searchInput = search.querySelector('input') - let searchDiv = search.querySelector('div') - let hover = false - let focus = false - - resetSearchText() - - searchInput.addEventListener('focus', event => { - focus = true - search.classList.add('active') - }) - - searchDiv.addEventListener('mouseover', event => { - hover = true - search.classList.add('active') - }) - - searchInput.addEventListener('blur', event => { - focus = false - if (hover) return - search.classList.remove('active') - }) - - search.addEventListener('mouseleave', event => { - hover = false - if (focus) return - search.classList.remove('active') - }) - - search.addEventListener('click', event => { - search.classList.add('active') - search.querySelector('input').focus() - }) - - searchInput.addEventListener('keyup', searchEvent) -} - -function closeHelp (event) { - event.preventDefault() - - document.querySelector('.help').classList.remove('active') - document.querySelector('.overlay').classList.remove('active') -} - -function openHelp (event) { - closePrompt(event) - - document.querySelector('.help').classList.add('active') - document.querySelector('.overlay').classList.add('active') -} - -window.addEventListener('keydown', (event) => { - if (event.keyCode === 27) { - if (document.querySelector('.help.active')) { - closeHelp(event) - } - } - - if (event.keyCode === 46) { - deleteEvent(event) - } - - if (event.keyCode === 112) { - event.preventDefault() - openHelp(event) - } -}) - -/* * * * * * * * * * * * * * * * - * * - * BOOTSTRAP * - * * - * * * * * * * * * * * * * * * */ - -document.addEventListener('DOMContentLoaded', function (event) { - overlay = document.querySelector('.overlay') - clickOverlay = document.querySelector('#click-overlay') - - buttons.logout = document.getElementById('logout') - buttons.open = document.getElementById('open') - buttons.delete = document.getElementById('delete') - buttons.previous = document.getElementById('previous') - buttons.info = document.getElementById('info') - - // Attach event listeners - buttons.logout.addEventListener('click', logoutEvent) - buttons.open.addEventListener('click', openEvent) - buttons.info.addEventListener('click', infoEvent) - - templates.question = document.querySelector('#question-template') - templates.info = document.querySelector('#info-template') - templates.message = document.querySelector('#message-template') - templates.move = document.querySelector('#move-template') - - if (user.AllowEdit) { - buttons.delete.addEventListener('click', deleteEvent) - } - - let dropdownButtons = document.querySelectorAll('.action[data-dropdown]') - Array.from(dropdownButtons).forEach(button => { - button.addEventListener('click', event => { - button.querySelector('ul').classList.toggle('active') - clickOverlay.classList.add('active') - - clickOverlay.addEventListener('click', event => { - button.querySelector('ul').classList.remove('active') - clickOverlay.classList.remove('active') - }) - }) - }) - - overlay.addEventListener('click', event => { - if (document.querySelector('.help.active')) { - closeHelp(event) - return - } - - closePrompt(event) - }) - - let mainActions = document.getElementById('main-actions') - - document.getElementById('more').addEventListener('click', event => { - event.preventDefault() - event.stopPropagation() - - clickOverlay.classList.add('active') - mainActions.classList.add('active') - - clickOverlay.addEventListener('click', event => { - mainActions.classList.remove('active') - clickOverlay.classList.remove('active') - }) - }) - - setupSearch() - return false -}) diff --git a/_embed/public/js/editor.js b/_embed/public/js/editor.js deleted file mode 100644 index 38ff40c7..00000000 --- a/_embed/public/js/editor.js +++ /dev/null @@ -1,278 +0,0 @@ -'use strict' - -var editor = {} - -editor.textareaAutoGrow = function () { - let autogrow = function () { - console.log(this.style.height) - this.style.height = 'auto' - this.style.height = (this.scrollHeight) + 'px' - } - - let textareas = document.getElementsByTagName('textarea') - - let addAutoGrow = () => { - Array.from(textareas).forEach(textarea => { - autogrow.bind(textarea)() - textarea.addEventListener('keyup', autogrow) - }) - } - - addAutoGrow() - window.addEventListener('resize', addAutoGrow) -} - -editor.toggleSourceEditor = function (event) { - event.preventDefault() - - if (document.querySelector('[data-kind="content-only"]')) { - window.location = window.location.pathname + '?visual=true' - return - } - - window.location = window.location.pathname + '?visual=false' -} - -function deleteFrontMatterItem (event) { - event.preventDefault() - document.getElementById(this.dataset.delete).remove() -} - -function makeFromBaseTemplate (id, type, name, parent) { - let clone = document.importNode(templates.base.content, true) - clone.querySelector('fieldset').id = id - clone.querySelector('fieldset').dataset.type = type - clone.querySelector('h3').innerHTML = name - clone.querySelector('.delete').dataset.delete = id - clone.querySelector('.delete').addEventListener('click', deleteFrontMatterItem) - clone.querySelector('.add').addEventListener('click', addFrontMatterItem) - - if (parent.classList.contains('frontmatter')) { - parent.insertBefore(clone, document.querySelector('div.button.add')) - return - } - - parent.appendChild(clone) -} - -function makeFromArrayItemTemplate (id, number, parent) { - let clone = document.importNode(templates.arrayItem.content, true) - clone.querySelector('[data-type="array-item"]').id = `${id}-${number}` - clone.querySelector('input').name = id - clone.querySelector('input').id = id - clone.querySelector('div.action').dataset.delete = `${id}-${number}` - clone.querySelector('div.action').addEventListener('click', deleteFrontMatterItem) - parent.querySelector('.group').appendChild(clone) - document.getElementById(`${id}-${number}`).querySelector('input').focus() -} - -function makeFromObjectItemTemplate (id, name, parent) { - let clone = document.importNode(templates.objectItem.content, true) - clone.querySelector('.block').id = `block-${id}` - clone.querySelector('.block').dataset.content = id - clone.querySelector('label').for = id - clone.querySelector('label').innerHTML = name - clone.querySelector('input').name = id - clone.querySelector('input').id = id - clone.querySelector('.action').dataset.delete = `block-${id}` - clone.querySelector('.action').addEventListener('click', deleteFrontMatterItem) - - parent.appendChild(clone) - document.getElementById(id).focus() -} - -function addFrontMatterItemPrompt (parent) { - return function (event) { - event.preventDefault() - - let value = event.currentTarget.querySelector('input').value - if (value === '') { - return true - } - - closePrompt(event) - - let name = value.substring(0, value.lastIndexOf(':')), - type = value.substring(value.lastIndexOf(':') + 1, value.length) - - if (type !== '' && type !== 'array' && type !== 'object') { - name = value - } - - name = name.replace(' ', '_') - - let id = name - - if (parent.id != '') { - id = parent.id + '.' + id - } - - if (type == 'array' || type == 'object') { - if (parent.dataset.type == 'parent') { - makeFromBaseTemplate(id, type, name, document.querySelector('.frontmatter')) - return - } - - makeFromBaseTemplate(id, type, name, block) - return - } - - let group = parent.querySelector('.group') - - if (group == null) { - parent.insertAdjacentHTML('afterbegin', '
    ') - group = parent.querySelector('.group') - } - - makeFromObjectItemTemplate(id, name, group) - } -} - -function addFrontMatterItem (event) { - event.preventDefault() - - let parent = event.currentTarget.parentNode, - type = parent.dataset.type - - // If the block is an array - if (type === 'array') { - let id = parent.id + '[]', - count = parent.querySelectorAll('.group > div').length, - fieldsets = parent.getElementsByTagName('fieldset') - - if (fieldsets.length > 0) { - let itemType = fieldsets[0].dataset.type, - itemID = parent.id + '[' + fieldsets.length + ']', - itemName = fieldsets.length - - makeFromBaseTemplate(itemID, itemType, itemName, parent) - } else { - makeFromArrayItemTemplate(id, count, parent) - } - - return - } - - if (type == 'object' || type == 'parent') { - let clone = document.importNode(templates.question.content, true) - clone.querySelector('form').id = tempID - clone.querySelector('h3').innerHTML = 'New field' - clone.querySelector('p').innerHTML = 'Write the field name and then press enter. If you want to create an array or an object, end the name with :array or :object.' - clone.querySelector('.ok').innerHTML = 'Create' - clone.querySelector('form').addEventListener('submit', addFrontMatterItemPrompt(parent)) - clone.querySelector('form').classList.add('active') - document.querySelector('body').appendChild(clone) - - document.querySelector('.overlay').classList.add('active') - document.getElementById(tempID).classList.add('active') - } - - return false -} - -document.addEventListener('DOMContentLoaded', (event) => { - if (!document.getElementById('editor')) return - - editor.textareaAutoGrow() - - templates.arrayItem = document.getElementById('array-item-template') - templates.base = document.getElementById('base-template') - templates.objectItem = document.getElementById('object-item-template') - templates.temporary = document.getElementById('temporary-template') - - buttons.save = document.querySelector('#save') - buttons.editSource = document.querySelector('#edit-source') - - if (buttons.editSource) { - buttons.editSource.addEventListener('click', editor.toggleSourceEditor) - } - - let container = document.getElementById('editor'), - kind = container.dataset.kind, - rune = container.dataset.rune - - if (kind != 'frontmatter-only') { - let editor = document.querySelector('.content #ace'), - mode = editor.dataset.mode, - textarea = document.querySelector('textarea[name="content"]'), - aceEditor = ace.edit('ace'), - options = { - wrap: true, - maxLines: Infinity, - theme: 'ace/theme/github', - showPrintMargin: false, - fontSize: '1em', - minLines: 20 - } - - aceEditor.getSession().setMode('ace/mode/' + mode) - aceEditor.getSession().setValue(textarea.value) - aceEditor.getSession().on('change', function () { - textarea.value = aceEditor.getSession().getValue() - }) - - if (mode == 'markdown') options.showGutter = false - aceEditor.setOptions(options) - } - - let deleteFrontMatterItemButtons = document.getElementsByClassName('delete') - Array.from(deleteFrontMatterItemButtons).forEach(button => { - button.addEventListener('click', deleteFrontMatterItem) - }) - - let addFrontMatterItemButtons = document.getElementsByClassName('add') - Array.from(addFrontMatterItemButtons).forEach(button => { - button.addEventListener('click', addFrontMatterItem) - }) - - let saveContent = function () { - let data = form2js(document.querySelector('form')) - - if (typeof data.content === 'undefined' && kind !== 'frontmatter-only') { - data.content = '' - } - - if (typeof data.content === 'number') { - data.content = data.content.toString() - } - - let request = new XMLHttpRequest() - - buttons.setLoading('save') - - webdav.put(window.location.pathname, JSON.stringify(data), { - 'Kind': kind, - 'Rune': rune - }) - .then(() => { - buttons.setDone('save') - }) - .catch(e => { - console.log(e) - buttons.setDone('save', false) - }) - } - - document.querySelector('#save').addEventListener('click', event => { - event.preventDefault() - saveContent() - }) - - document.querySelector('form').addEventListener('submit', (event) => { - event.preventDefault() - saveContent() - }) - - window.addEventListener('keydown', (event) => { - if (event.ctrlKey || event.metaKey) { - switch (String.fromCharCode(event.which).toLowerCase()) { - case 's': - event.preventDefault() - saveContent() - break - } - } - }) - - return false -}) diff --git a/_embed/public/js/form2js.js b/_embed/public/js/form2js.js deleted file mode 100644 index 8d739bbd..00000000 --- a/_embed/public/js/form2js.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,n){"undefined"!=typeof exports&&"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):e.form2js=n()}(this,function(){"use strict";function e(e,r,u,i,a,l){l=!!l,void 0!==u&&null!=u||(u=!0),void 0!==r&&null!=r||(r="."),arguments.length<5&&(a=!1);var o,c=[],s=0;if((e="string"==typeof e?document.getElementById(e):e).constructor==Array||"undefined"!=typeof NodeList&&e.constructor==NodeList)for(;o=e[s++];)c=c.concat(t(o,i,a,l));else c=t(e,i,a,l);return n(c,u,r)}function n(e,n,t){var r,u,i,a,l,o,c,s,f,d,h,m,g={},p={};for(r=0;r1)for(i=0;i-1&&u==o.length-1?(s+=f=h.substr(0,h.indexOf("[")),c[f]||(c[f]=[]),c[f].push(l)):h.indexOf("[")>-1?(p[s+="_"+(f=h.substr(0,h.indexOf("[")))+"_"+(d=h.replace(/(^([a-z_]+)?\[)|(\]$)/gi,""))]||(p[s]={}),""==f||c[f]||(c[f]=[]),u==o.length-1?""==f?(c.push(l),p[s][d]=c[c.length-1]):(c[f].push(l),p[s][d]=c[f][c[f].length-1]):p[s][d]||(/^[0-9a-z_]+\[?/i.test(o[u+1])?c[f].push({}):c[f].push([]),p[s][d]=c[f][c[f].length-1]),c=p[s][d]):(s+=h,u0?a:r(e,n,t,i)}function r(e,n,t,r){for(var i=[],a=e.firstChild;a;)i=i.concat(u(a,n,t,r)),a=a.nextSibling;return i}function u(e,n,t,u){if(e.disabled&&!u)return[];var l,o,c,s=i(e,t);return l=n&&n(e),l&&l.name?c=[l]:""!=s&&e.nodeName.match(/INPUT|TEXTAREA/i)?c=null===(o=a(e,u))?[]:[{name:s,value:o}]:""!=s&&e.nodeName.match(/SELECT/i)?(o=a(e,u),c=[{name:s.replace(/\[\]$/,""),value:o}]):c=r(e,n,t,u),c}function i(e,n){return e.name&&""!=e.name?e.name:n&&e.id&&""!=e.id?e.id:""}function a(e,n){if(e.disabled&&!n)return null;switch(e.nodeName){case"INPUT":case"TEXTAREA":switch(e.type.toLowerCase()){case"radio":if(e.checked&&"false"===e.value)return!1;case"checkbox":if(e.checked&&"true"===e.value)return!0;if(!e.checked&&"true"===e.value)return!1;if(e.checked)return e.value;break;case"button":case"reset":case"submit":case"image":return"";default:return e.value}break;case"SELECT":return l(e)}return null}function l(e){var n,t,r,u=[];if(!e.multiple)return e.value;for(t=0,r=(n=e.getElementsByTagName("option")).length;t listing.reload()) - .catch(e => console.log(e)) -} - -listing.documentDrop = function (event) { - event.preventDefault() - let dt = event.dataTransfer, - files = dt.files, - el = event.target, - items = document.getElementsByClassName('item') - - for (let i = 0; i < 5; i++) { - if (el != null && !el.classList.contains('item')) { - el = el.parentElement - } - } - - if (files.length > 0) { - if (el != null && el.classList.contains('item') && el.dataset.dir == 'true') { - listing.handleFiles(files, el.querySelector('.name').innerHTML + '/') - return - } - - listing.handleFiles(files, '') - } else { - Array.from(items).forEach(file => { - file.style.opacity = 1 - }) - } -} - -listing.rename = function (event) { - if (!selectedItems.length || selectedItems.length > 1) { - return false - } - - let item = document.getElementById(selectedItems[0]) - - if (item.classList.contains('disabled')) { - return false - } - - let link = item.dataset.url, - field = item.querySelector('.name'), - name = field.innerHTML - - let submit = (event) => { - event.preventDefault() - - let newName = event.currentTarget.querySelector('input').value, - newLink = removeLastDirectoryPartOf(link) + '/' + newName - - closePrompt(event) - buttons.setLoading('rename') - - webdav.move(link, newLink).then(() => { - listing.reload(() => { - newName = btoa(newName) - selectedItems = [newName] - document.getElementById(newName).setAttribute('aria-selected', true) - listing.handleSelectionChange() - }) - - buttons.setDone('rename') - }).catch(error => { - field.innerHTML = name - buttons.setDone('rename', false) - console.log(error) - }) - - return false - } - - let clone = document.importNode(templates.question.content, true) - clone.querySelector('h3').innerHTML = 'Rename' - clone.querySelector('input').value = name - clone.querySelector('.ok').innerHTML = 'Rename' - clone.querySelector('form').addEventListener('submit', submit) - - document.querySelector('body').appendChild(clone) - document.querySelector('.overlay').classList.add('active') - document.querySelector('.prompt').classList.add('active') - - return false -} - -listing.handleFiles = function (files, base) { - buttons.setLoading('upload') - - let promises = [] - - for (let file of files) { - promises.push(webdav.put(window.location.pathname + base + file.name, file)) - } - - Promise.all(promises) - .then(() => { - listing.reload() - buttons.setDone('upload') - }) - .catch(e => { - console.log(e) - buttons.setDone('upload', false) - }) - - return false -} - -listing.unselectAll = function () { - let items = document.getElementsByClassName('item') - Array.from(items).forEach(link => { - link.setAttribute('aria-selected', false) - }) - - selectedItems = [] - - listing.handleSelectionChange() - return false -} - -listing.handleSelectionChange = function (event) { - listing.redefineDownloadURLs() - - let selectedNumber = selectedItems.length, - fileAction = document.getElementById('file-only') - - if (selectedNumber) { - fileAction.classList.remove('disabled') - - if (selectedNumber > 1) { - buttons.open.classList.add('disabled') - buttons.rename.classList.add('disabled') - buttons.info.classList.add('disabled') - } - - if (selectedNumber == 1) { - if (document.getElementById(selectedItems[0]).dataset.dir == 'true') { - buttons.open.classList.add('disabled') - } else { - buttons.open.classList.remove('disabled') - } - - buttons.info.classList.remove('disabled') - buttons.rename.classList.remove('disabled') - } - - return false - } - - buttons.info.classList.remove('disabled') - fileAction.classList.add('disabled') - return false -} - -listing.redefineDownloadURLs = function () { - let files = '' - - for (let i = 0; i < selectedItems.length; i++) { - let url = document.getElementById(selectedItems[i]).dataset.url - files += url.replace(window.location.pathname, '') + ',' - } - - files = files.substring(0, files.length - 1) - files = encodeURIComponent(files) - - let links = document.querySelectorAll('#download ul a') - Array.from(links).forEach(link => { - link.href = '?download=' + link.dataset.format + '&files=' + files - }) -} - -listing.openItem = function (event) { - window.location = event.currentTarget.dataset.url -} - -listing.selectItem = function (event) { - let el = event.currentTarget - - if (selectedItems.length != 0) event.preventDefault() - if (selectedItems.indexOf(el.id) == -1) { - if (!event.ctrlKey && !listing.selectMultiple) listing.unselectAll() - - el.setAttribute('aria-selected', true) - selectedItems.push(el.id) - } else { - el.setAttribute('aria-selected', false) - selectedItems.removeElement(el.id) - } - - listing.handleSelectionChange() - return false -} - -listing.newFileButton = function (event) { - event.preventDefault() - - let clone = document.importNode(templates.question.content, true) - clone.querySelector('h3').innerHTML = 'New file' - clone.querySelector('p').innerHTML = 'End with a trailing slash to create a dir.' - clone.querySelector('.ok').innerHTML = 'Create' - clone.querySelector('form').addEventListener('submit', listing.newFilePrompt) - - document.querySelector('body').appendChild(clone) - document.querySelector('.overlay').classList.add('active') - document.querySelector('.prompt').classList.add('active') -} - -listing.newFilePrompt = function (event) { - event.preventDefault() - buttons.setLoading('new') - - let name = event.currentTarget.querySelector('input').value - - webdav.new(window.location.pathname + name) - .then(() => { - buttons.setDone('new') - listing.reload() - }) - .catch(e => { - console.log(e) - buttons.setDone('new', false) - }) - - closePrompt(event) - return false -} - -listing.updateColumns = function (event) { - let columns = Math.floor(document.getElementById('listing').offsetWidth / 300), - items = getCSSRule(['#listing.mosaic .item', '.mosaic#listing .item']) - - items.style.width = `calc(${100/columns}% - 1em)` -} - -listing.addDoubleTapEvent = function () { - let items = document.getElementsByClassName('item'), - touches = { - id: '', - count: 0 - } - - Array.from(items).forEach(file => { - file.addEventListener('touchstart', event => { - if (touches.id != file.id) { - touches.id = file.id - touches.count = 1 - - setTimeout(() => { - touches.count = 0 - }, 300) - - return - } - - touches.count++ - - if (touches.count > 1) { - window.location = file.dataset.url - } - }) - }) -} - -// Keydown events -window.addEventListener('keydown', (event) => { - if (event.keyCode == 27) { - listing.unselectAll() - - if (document.querySelectorAll('.prompt').length) { - closePrompt(event) - } - } - - if (event.keyCode == 113) { - listing.rename() - } - - if (event.ctrlKey || event.metaKey) { - switch (String.fromCharCode(event.which).toLowerCase()) { - case 's': - event.preventDefault() - window.location = '?download=true' - } - } -}) - -window.addEventListener('resize', () => { - listing.updateColumns() -}) - -listing.selectMoveFolder = function (event) { - if (event.target.getAttribute('aria-selected') === 'true') { - event.target.setAttribute('aria-selected', false) - return - } else { - if (document.querySelector('.file-list li[aria-selected=true]')) { - document.querySelector('.file-list li[aria-selected=true]').setAttribute('aria-selected', false) - } - event.target.setAttribute('aria-selected', true) - return - } -} - -listing.getJSON = function (link) { - return new Promise((resolve, reject) => { - let request = new XMLHttpRequest() - request.open('GET', link) - request.setRequestHeader('Accept', 'application/json') - request.onload = () => { - if (request.status == 200) { - resolve(request.responseText) - } else { - reject(request.statusText) - } - } - request.onerror = () => reject(request.statusText) - request.send() - }) -} - -listing.moveMakeItem = function (url, name) { - let node = document.createElement('li'), - count = 0 - - node.dataset.url = url - node.innerHTML = name - node.setAttribute('aria-selected', false) - - node.addEventListener('dblclick', listing.moveDialogNext) - node.addEventListener('click', listing.selectMoveFolder) - node.addEventListener('touchstart', event => { - count++ - - setTimeout(() => { - count = 0 - }, 300) - - if (count > 1) { - listing.moveDialogNext(event) - } - }) - - return node -} - -listing.moveDialogNext = function (event) { - let request = new XMLHttpRequest(), - prompt = document.querySelector('form.prompt.active'), - list = prompt.querySelector('div.file-list ul') - - prompt.addEventListener('submit', listing.moveSelected) - - listing.getJSON(event.target.dataset.url) - .then((data) => { - let dirs = 0 - - prompt.querySelector('ul').innerHTML = '' - prompt.querySelector('code').innerHTML = event.target.dataset.url - - if (event.target.dataset.url != baseURL + '/') { - let node = listing.moveMakeItem(removeLastDirectoryPartOf(event.target.dataset.url) + '/', '..') - list.appendChild(node) - } - - if (JSON.parse(data) == null) { - prompt.querySelector('p').innerHTML = `There aren't any folders in this directory.` - return - } - - for (let f of JSON.parse(data)) { - if (f.IsDir === true) { - dirs++ - list.appendChild(listing.moveMakeItem(f.URL, f.Name)) - } - } - - if (dirs === 0) - prompt.querySelector('p').innerHTML = `There aren't any folders in this directory.` - }) - .catch(e => console.log(e)) -} - -listing.moveSelected = function (event) { - event.preventDefault() - - let promises = [] - buttons.setLoading('move') - - for (let file of selectedItems) { - let fileElement = document.getElementById(file), - destFolder = event.target.querySelector('p code').innerHTML - - if (event.currentTarget.querySelector('li[aria-selected=true]') != null) { - destFolder = event.currentTarget.querySelector('li[aria-selected=true]').dataset.url - } - - let destPath = '/' + destFolder + '/' + fileElement.querySelector('.name').innerHTML - destPath = destPath.replace('//', '/') - - promises.push(webdav.move(fileElement.dataset.url, destPath)) - } - - Promise.all(promises) - .then(() => { - closePrompt(event) - buttons.setDone('move') - listing.reload() - }) - .catch(e => { - console.log(e) - }) -} - -listing.moveEvent = function (event) { - if (event.currentTarget.classList.contains('disabled')) - return - - listing.getJSON(window.location.pathname) - .then((data) => { - let prompt = document.importNode(templates.move.content, true), - list = prompt.querySelector('div.file-list ul'), - dirs = 0 - - prompt.querySelector('form').addEventListener('submit', listing.moveSelected) - prompt.querySelector('code').innerHTML = window.location.pathname - - if (window.location.pathname !== baseURL + '/') { - list.appendChild(listing.moveMakeItem(removeLastDirectoryPartOf(window.location.pathname) + '/', '..')) - } - - for (let f of JSON.parse(data)) { - if (f.IsDir === true) { - dirs++ - list.appendChild(listing.moveMakeItem(f.URL, f.Name)) - } - } - - if (dirs === 0) { - prompt.querySelector('p').innerHTML = `There aren't any folders in this directory.` - } - - document.body.appendChild(prompt) - document.querySelector('.overlay').classList.add('active') - document.querySelector('.prompt').classList.add('active') - }) - .catch(e => console.log(e)) -} - -document.addEventListener('DOMContentLoaded', event => { - listing.updateColumns() - listing.addDoubleTapEvent() - - buttons.rename = document.getElementById('rename') - buttons.upload = document.getElementById('upload') - buttons.new = document.getElementById('new') - buttons.download = document.getElementById('download') - buttons.move = document.getElementById('move') - - document.getElementById('multiple-selection-activate').addEventListener('click', event => { - listing.selectMultiple = true - clickOverlay.click() - - document.getElementById('multiple-selection').classList.add('active') - document.querySelector('body').style.paddingBottom = '4em' - }) - - document.getElementById('multiple-selection-cancel').addEventListener('click', event => { - listing.selectMultiple = false - - document.querySelector('body').style.paddingBottom = '0' - document.getElementById('multiple-selection').classList.remove('active') - }) - - if (user.AllowEdit) { - buttons.move.addEventListener('click', listing.moveEvent) - buttons.rename.addEventListener('click', listing.rename) - } - - let items = document.getElementsByClassName('item') - - if (user.AllowNew) { - buttons.upload.addEventListener('click', (event) => { - document.getElementById('upload-input').click() - }) - - buttons.new.addEventListener('click', listing.newFileButton) - - // Drag and Drop - document.addEventListener('dragover', function (event) { - event.preventDefault() - }, false) - - document.addEventListener('dragenter', (event) => { - Array.from(items).forEach(file => { - file.style.opacity = 0.5 - }) - }, false) - - document.addEventListener('dragend', (event) => { - Array.from(items).forEach(file => { - file.style.opacity = 1 - }) - }, false) - - document.addEventListener('drop', listing.documentDrop, false) - } -}) diff --git a/_embed/templates/base.tmpl b/_embed/templates/base.tmpl deleted file mode 100644 index 14dbb525..00000000 --- a/_embed/templates/base.tmpl +++ /dev/null @@ -1,289 +0,0 @@ - - -{{ $absURL := .Config.AbsoluteURL }} - - {{.Name}} - - - - - - {{- if ne .User.StyleSheet "" -}} - - {{- end -}} - - - - {{- if .IsDir }} - - {{- else }} - - - - {{- end }} - - -
    -
    -

    File Manager

    - - -
    - exit_to_app -
    -
    - -
    -
    - {{- if ne .Name "/"}} - - {{- end }} - - {{ if ne .Name "/"}}

    {{ .Name }}

    {{ end }} -
    - -
    - {{- if and (not .IsDir) (.User.AllowEdit) }} - {{- if .Editor}} - - {{- if eq .Data.Mode "markdown" }} -
    - remove_red_eye -
    - {{- end }} - - {{- if eq .Data.Visual true }} -
    - code -
    - {{- end }} - {{- end }} - -
    - save -
    - {{- end }} - - {{- if .IsDir }} -
    - open_in_new - See raw -
    - {{- end }} - - {{- if and (.User.AllowEdit) (.IsDir) }} -
    - forward - Move file -
    - {{- end }} - - {{- if and .IsDir .User.AllowEdit }} -
    - mode_edit -
    - {{- end }} - - {{- if and .User.AllowEdit .IsDir }} -
    - deleteDelete -
    - {{- end }} -
    - -
    - more_vert -
    - -
    - {{- if .IsDir }} -
    - {{- if eq .Display "mosaic" }} - - view_listSwitch view - - {{- else }} - - view_moduleSwitch view - - {{- end }} -
    - -
    - check_circleSelect -
    - {{- end }} - - {{- if and (.User.AllowNew) (.IsDir) }} -
    - file_uploadUpload -
    - {{- end }} - - {{- if not .IsDir }} -
    - open_in_new - See raw -
    - {{- end }} - - {{- if and .User.AllowEdit (not .IsDir) }} -
    - deleteDelete -
    - {{- end }} - -
    - {{- if not .IsDir}}{{ end }} - file_downloadDownload - {{- if not .IsDir}}{{ end }} - - {{- if .IsDir }} - - {{- end }} -
    - -
    - infoInfo -
    -
    -
    - -
    -
    - -
    -

    Multiple selection enabled

    -
    - clear -
    -
    - -
    - {{- template "content" . }} -
    - -
    - - {{- if and (.User.AllowNew) (.IsDir) }} -
    -
    - add -
    -
    - {{- end }} - - - - - - - - - -
    -

    Help

    - -
      -
    • F1 - this information
    • -
    • F2 - rename file
    • -
    • DEL - delete selected items
    • -
    • ESC - clear selection and/or close the prompt
    • -
    • CTRL + S - save a file or download the directory where you are
    • -
    • CTRL + Click - select multiple files or directories
    • -
    • Double click - open a file or directory
    • -
    • Click - select file or directory
    • -
    - -

    Not available yet

    - -
      -
    • Alt + Click - select a group of files
    • -
    - -
    - -
    -
    - - - - diff --git a/_embed/templates/editor.tmpl b/_embed/templates/editor.tmpl deleted file mode 100644 index d02238d8..00000000 --- a/_embed/templates/editor.tmpl +++ /dev/null @@ -1,57 +0,0 @@ -{{ define "content" }} -{{- with .Data }} -
    - {{- if or (eq .Class "frontmatter-only") (eq .Class "complete") }} - {{- if (eq .Class "complete")}} -

    Metadata

    - {{- end }} -
    - {{- template "blocks" .FrontMatter.Content }} -
    Add field
    -
    - {{- end }} - - {{ if or (eq .Class "content-only") (eq .Class "complete") }} - {{ if (eq .Class "complete")}} -

    Body

    - {{ end }} -
    -
    - -
    - {{ end }} -
    -{{- end }} - - - - - - -{{ end }} diff --git a/_embed/templates/frontmatter.tmpl b/_embed/templates/frontmatter.tmpl deleted file mode 100644 index 3389da90..00000000 --- a/_embed/templates/frontmatter.tmpl +++ /dev/null @@ -1,56 +0,0 @@ -{{ define "blocks" }} -{{ if .Fields }}
    {{ end }} -{{- range $key, $value := .Fields }} - {{- if eq $value.Parent.Type "array" }} -
    - {{- template "value" $value }} -
    - close -
    -
    - {{- else }} -
    - - {{ template "value" $value }} -
    - close -
    -
    - {{- end }} -{{- end }} -{{- if .Fields }}
    {{ end }} - -{{- range $key, $value := .Arrays }} -{{- template "fielset" $value }} -{{- end }} - -{{- range $key, $value := .Objects }} -{{- template "fielset" $value }} -{{- end }} - -{{ end }} - -{{ define "value" }} -{{- if eq .HTMLType "textarea" }} - -{{- else if eq .HTMLType "datetime" }} - -{{- else }} - -{{- end }} -{{ end }} - -{{ define "fielset" }} -
    - {{- if not (eq .Title "") }} -

    {{ .Name }}

    - {{- end }} -
    - add -
    -
    - close -
    - {{- template "blocks" .Content }} -
    -{{ end }} diff --git a/_embed/templates/listing.tmpl b/_embed/templates/listing.tmpl deleted file mode 100644 index da94b962..00000000 --- a/_embed/templates/listing.tmpl +++ /dev/null @@ -1,103 +0,0 @@ -{{ define "content" }} -
    -{{- with .Data -}} -
    -
    -
    -
    -

    Name - {{- if eq .Sort "name" -}} - {{- if eq .Order "asc" -}} - arrow_downward - {{- else -}} - arrow_upward - {{- end -}} - {{- else -}} - arrow_downward - {{- end -}} -

    -

    File Size - {{- if eq .Sort "size" -}} - {{- if eq .Order "asc" -}} - arrow_downward - {{- else -}} - arrow_upward - {{- end -}} - {{- else -}} - arrow_downward - {{- end -}} -

    -

    Last modified

    -
    -
    -
    - - {{ if and (eq .NumDirs 0) (eq .NumFiles 0) }} -

    It feels lonely here :'(

    - {{ end }} - - {{- if not (eq .NumDirs 0)}} -

    Folders

    -
    - {{- range .Items }} - {{- if (.IsDir) }} - {{ template "item" .}} - {{- end }} - {{- end }} -
    - {{- end }} - - {{- if not (eq .NumFiles 0)}} -

    Files

    -
    - {{- range .Items }} - {{- if (not .IsDir) }} - {{ template "item" .}} - {{- end }} - {{- end }} -
    - {{- end }} -
    - - -{{- end -}} -{{- end -}} - -{{ define "item" }} -
    -
    - {{- if .IsDir}} - folder - {{- else}} - {{ if eq .Type "image" }} - insert_photo - {{ else if eq .Type "audio" }} - volume_up - {{ else if eq .Type "video" }} - movie - {{ else }} - insert_drive_file - {{ end }} - {{- end}} -
    -
    -

    {{.Name}}

    - {{- if .IsDir}} -

    - {{- else}} -

    {{.HumanSize}}

    - {{- end}} -

    - -

    -
    -
    -{{ end }} diff --git a/_embed/templates/minimal.tmpl b/_embed/templates/minimal.tmpl deleted file mode 100644 index 66e0068d..00000000 --- a/_embed/templates/minimal.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{ template "content" . }} diff --git a/_embed/templates/single.tmpl b/_embed/templates/single.tmpl deleted file mode 100644 index c85ab5a4..00000000 --- a/_embed/templates/single.tmpl +++ /dev/null @@ -1,23 +0,0 @@ -{{ define "content" }} -{{ with .Data}} -
    - {{ if eq .Type "image" }} -
    - {{ else if eq .Type "audio" }} - - {{ else if eq .Type "video" }} - - {{ else if eq .Extension ".pdf" }} - - {{ else if eq .Type "blob" }} -

    Download file_download

    - {{ else}} -
    {{ .StringifyContent }}
    - {{ end }} -
    -{{ end }} -{{ end }} diff --git a/assets/assets.go b/assets/assets.go deleted file mode 100644 index 22990cbe..00000000 --- a/assets/assets.go +++ /dev/null @@ -1,33 +0,0 @@ -package assets - -import ( - "mime" - "net/http" - "path/filepath" - "strings" - - "github.com/hacdias/filemanager" -) - -// BaseURL is the url of the assets -const BaseURL = "/_internal" - -// Serve provides the needed assets for the front-end -func Serve(w http.ResponseWriter, r *http.Request, c *filemanager.Config) (int, error) { - // gets the filename to be used with Assets function - filename := strings.Replace(r.URL.Path, c.BaseURL+BaseURL, "public", 1) - file, err := Asset(filename) - if err != nil { - return http.StatusNotFound, nil - } - - // Get the file extension and its mimetype - extension := filepath.Ext(filename) - mediatype := mime.TypeByExtension(extension) - - // Write the header with the Content-Type and write the file - // content to the buffer - w.Header().Set("Content-Type", mediatype) - w.Write(file) - return 200, nil -} diff --git a/assets/binary.go b/assets/binary.go deleted file mode 100644 index 560a6b56..00000000 --- a/assets/binary.go +++ /dev/null @@ -1,7413 +0,0 @@ -// Code generated by go-bindata. -// sources: -// _embed/templates/base.tmpl -// _embed/templates/editor.tmpl -// _embed/templates/frontmatter.tmpl -// _embed/templates/listing.tmpl -// _embed/templates/minimal.tmpl -// _embed/templates/single.tmpl -// _embed/public/js/common.js -// _embed/public/js/editor.js -// _embed/public/js/form2js.js -// _embed/public/js/listing.js -// _embed/public/css/fonts.css -// _embed/public/css/material/icons.woff2 -// _embed/public/css/normalize.css -// _embed/public/css/roboto/medium-cyrillic-ext.woff2 -// _embed/public/css/roboto/medium-cyrillic.woff2 -// _embed/public/css/roboto/medium-greek-ext.woff2 -// _embed/public/css/roboto/medium-greek.woff2 -// _embed/public/css/roboto/medium-latin-ext.woff2 -// _embed/public/css/roboto/medium-latin.woff2 -// _embed/public/css/roboto/medium-vietnamese.woff2 -// _embed/public/css/roboto/normal-cyrillic-ext.woff2 -// _embed/public/css/roboto/normal-cyrillic.woff2 -// _embed/public/css/roboto/normal-greek-ext.woff2 -// _embed/public/css/roboto/normal-greek.woff2 -// _embed/public/css/roboto/normal-latin-ext.woff2 -// _embed/public/css/roboto/normal-latin.woff2 -// _embed/public/css/roboto/normal-vietnamese.woff2 -// _embed/public/css/styles.css -// _embed/public/ace/src-min/ace.js -// _embed/public/ace/src-min/ext-beautify.js -// _embed/public/ace/src-min/ext-chromevox.js -// _embed/public/ace/src-min/ext-elastic_tabstops_lite.js -// _embed/public/ace/src-min/ext-emmet.js -// _embed/public/ace/src-min/ext-error_marker.js -// _embed/public/ace/src-min/ext-keybinding_menu.js -// _embed/public/ace/src-min/ext-language_tools.js -// _embed/public/ace/src-min/ext-linking.js -// _embed/public/ace/src-min/ext-modelist.js -// _embed/public/ace/src-min/ext-old_ie.js -// _embed/public/ace/src-min/ext-searchbox.js -// _embed/public/ace/src-min/ext-settings_menu.js -// _embed/public/ace/src-min/ext-spellcheck.js -// _embed/public/ace/src-min/ext-split.js -// _embed/public/ace/src-min/ext-static_highlight.js -// _embed/public/ace/src-min/ext-statusbar.js -// _embed/public/ace/src-min/ext-textarea.js -// _embed/public/ace/src-min/ext-themelist.js -// _embed/public/ace/src-min/ext-whitespace.js -// _embed/public/ace/src-min/keybinding-emacs.js -// _embed/public/ace/src-min/keybinding-vim.js -// _embed/public/ace/src-min/mode-abap.js -// _embed/public/ace/src-min/mode-abc.js -// _embed/public/ace/src-min/mode-actionscript.js -// _embed/public/ace/src-min/mode-ada.js -// _embed/public/ace/src-min/mode-apache_conf.js -// _embed/public/ace/src-min/mode-applescript.js -// _embed/public/ace/src-min/mode-asciidoc.js -// _embed/public/ace/src-min/mode-assembly_x86.js -// _embed/public/ace/src-min/mode-autohotkey.js -// _embed/public/ace/src-min/mode-batchfile.js -// _embed/public/ace/src-min/mode-bro.js -// _embed/public/ace/src-min/mode-c9search.js -// _embed/public/ace/src-min/mode-c_cpp.js -// _embed/public/ace/src-min/mode-cirru.js -// _embed/public/ace/src-min/mode-clojure.js -// _embed/public/ace/src-min/mode-cobol.js -// _embed/public/ace/src-min/mode-coffee.js -// _embed/public/ace/src-min/mode-coldfusion.js -// _embed/public/ace/src-min/mode-csharp.js -// _embed/public/ace/src-min/mode-css.js -// _embed/public/ace/src-min/mode-curly.js -// _embed/public/ace/src-min/mode-d.js -// _embed/public/ace/src-min/mode-dart.js -// _embed/public/ace/src-min/mode-diff.js -// _embed/public/ace/src-min/mode-django.js -// _embed/public/ace/src-min/mode-dockerfile.js -// _embed/public/ace/src-min/mode-dot.js -// _embed/public/ace/src-min/mode-drools.js -// _embed/public/ace/src-min/mode-eiffel.js -// _embed/public/ace/src-min/mode-ejs.js -// _embed/public/ace/src-min/mode-elixir.js -// _embed/public/ace/src-min/mode-elm.js -// _embed/public/ace/src-min/mode-erlang.js -// _embed/public/ace/src-min/mode-forth.js -// _embed/public/ace/src-min/mode-fortran.js -// _embed/public/ace/src-min/mode-ftl.js -// _embed/public/ace/src-min/mode-gcode.js -// _embed/public/ace/src-min/mode-gherkin.js -// _embed/public/ace/src-min/mode-gitignore.js -// _embed/public/ace/src-min/mode-glsl.js -// _embed/public/ace/src-min/mode-gobstones.js -// _embed/public/ace/src-min/mode-golang.js -// _embed/public/ace/src-min/mode-groovy.js -// _embed/public/ace/src-min/mode-haml.js -// _embed/public/ace/src-min/mode-handlebars.js -// _embed/public/ace/src-min/mode-haskell.js -// _embed/public/ace/src-min/mode-haskell_cabal.js -// _embed/public/ace/src-min/mode-haxe.js -// _embed/public/ace/src-min/mode-hjson.js -// _embed/public/ace/src-min/mode-html.js -// _embed/public/ace/src-min/mode-html_elixir.js -// _embed/public/ace/src-min/mode-html_ruby.js -// _embed/public/ace/src-min/mode-ini.js -// _embed/public/ace/src-min/mode-io.js -// _embed/public/ace/src-min/mode-jack.js -// _embed/public/ace/src-min/mode-jade.js -// _embed/public/ace/src-min/mode-java.js -// _embed/public/ace/src-min/mode-javascript.js -// _embed/public/ace/src-min/mode-json.js -// _embed/public/ace/src-min/mode-jsoniq.js -// _embed/public/ace/src-min/mode-jsp.js -// _embed/public/ace/src-min/mode-jsx.js -// _embed/public/ace/src-min/mode-julia.js -// _embed/public/ace/src-min/mode-kotlin.js -// _embed/public/ace/src-min/mode-latex.js -// _embed/public/ace/src-min/mode-lean.js -// _embed/public/ace/src-min/mode-less.js -// _embed/public/ace/src-min/mode-liquid.js -// _embed/public/ace/src-min/mode-lisp.js -// _embed/public/ace/src-min/mode-live_script.js -// _embed/public/ace/src-min/mode-livescript.js -// _embed/public/ace/src-min/mode-logiql.js -// _embed/public/ace/src-min/mode-lsl.js -// _embed/public/ace/src-min/mode-lua.js -// _embed/public/ace/src-min/mode-luapage.js -// _embed/public/ace/src-min/mode-lucene.js -// _embed/public/ace/src-min/mode-makefile.js -// _embed/public/ace/src-min/mode-markdown.js -// _embed/public/ace/src-min/mode-mask.js -// _embed/public/ace/src-min/mode-matlab.js -// _embed/public/ace/src-min/mode-maze.js -// _embed/public/ace/src-min/mode-mel.js -// _embed/public/ace/src-min/mode-mips_assembler.js -// _embed/public/ace/src-min/mode-mipsassembler.js -// _embed/public/ace/src-min/mode-mushcode.js -// _embed/public/ace/src-min/mode-mysql.js -// _embed/public/ace/src-min/mode-nix.js -// _embed/public/ace/src-min/mode-nsis.js -// _embed/public/ace/src-min/mode-objectivec.js -// _embed/public/ace/src-min/mode-ocaml.js -// _embed/public/ace/src-min/mode-pascal.js -// _embed/public/ace/src-min/mode-perl.js -// _embed/public/ace/src-min/mode-pgsql.js -// _embed/public/ace/src-min/mode-php.js -// _embed/public/ace/src-min/mode-plain_text.js -// _embed/public/ace/src-min/mode-powershell.js -// _embed/public/ace/src-min/mode-praat.js -// _embed/public/ace/src-min/mode-prolog.js -// _embed/public/ace/src-min/mode-properties.js -// _embed/public/ace/src-min/mode-protobuf.js -// _embed/public/ace/src-min/mode-python.js -// _embed/public/ace/src-min/mode-r.js -// _embed/public/ace/src-min/mode-razor.js -// _embed/public/ace/src-min/mode-rdoc.js -// _embed/public/ace/src-min/mode-rhtml.js -// _embed/public/ace/src-min/mode-rst.js -// _embed/public/ace/src-min/mode-ruby.js -// _embed/public/ace/src-min/mode-rust.js -// _embed/public/ace/src-min/mode-sass.js -// _embed/public/ace/src-min/mode-scad.js -// _embed/public/ace/src-min/mode-scala.js -// _embed/public/ace/src-min/mode-scheme.js -// _embed/public/ace/src-min/mode-scss.js -// _embed/public/ace/src-min/mode-sh.js -// _embed/public/ace/src-min/mode-sjs.js -// _embed/public/ace/src-min/mode-smarty.js -// _embed/public/ace/src-min/mode-snippets.js -// _embed/public/ace/src-min/mode-soy_template.js -// _embed/public/ace/src-min/mode-space.js -// _embed/public/ace/src-min/mode-sql.js -// _embed/public/ace/src-min/mode-sqlserver.js -// _embed/public/ace/src-min/mode-stylus.js -// _embed/public/ace/src-min/mode-svg.js -// _embed/public/ace/src-min/mode-swift.js -// _embed/public/ace/src-min/mode-swig.js -// _embed/public/ace/src-min/mode-tcl.js -// _embed/public/ace/src-min/mode-tex.js -// _embed/public/ace/src-min/mode-text.js -// _embed/public/ace/src-min/mode-textile.js -// _embed/public/ace/src-min/mode-toml.js -// _embed/public/ace/src-min/mode-tsx.js -// _embed/public/ace/src-min/mode-twig.js -// _embed/public/ace/src-min/mode-typescript.js -// _embed/public/ace/src-min/mode-vala.js -// _embed/public/ace/src-min/mode-vbscript.js -// _embed/public/ace/src-min/mode-velocity.js -// _embed/public/ace/src-min/mode-verilog.js -// _embed/public/ace/src-min/mode-vhdl.js -// _embed/public/ace/src-min/mode-wollok.js -// _embed/public/ace/src-min/mode-xml.js -// _embed/public/ace/src-min/mode-xquery.js -// _embed/public/ace/src-min/mode-yaml.js -// _embed/public/ace/src-min/snippets/abap.js -// _embed/public/ace/src-min/snippets/abc.js -// _embed/public/ace/src-min/snippets/actionscript.js -// _embed/public/ace/src-min/snippets/ada.js -// _embed/public/ace/src-min/snippets/apache_conf.js -// _embed/public/ace/src-min/snippets/applescript.js -// _embed/public/ace/src-min/snippets/asciidoc.js -// _embed/public/ace/src-min/snippets/assembly_x86.js -// _embed/public/ace/src-min/snippets/autohotkey.js -// _embed/public/ace/src-min/snippets/batchfile.js -// _embed/public/ace/src-min/snippets/bro.js -// _embed/public/ace/src-min/snippets/c9search.js -// _embed/public/ace/src-min/snippets/c_cpp.js -// _embed/public/ace/src-min/snippets/cirru.js -// _embed/public/ace/src-min/snippets/clojure.js -// _embed/public/ace/src-min/snippets/cobol.js -// _embed/public/ace/src-min/snippets/coffee.js -// _embed/public/ace/src-min/snippets/coldfusion.js -// _embed/public/ace/src-min/snippets/csharp.js -// _embed/public/ace/src-min/snippets/css.js -// _embed/public/ace/src-min/snippets/curly.js -// _embed/public/ace/src-min/snippets/d.js -// _embed/public/ace/src-min/snippets/dart.js -// _embed/public/ace/src-min/snippets/diff.js -// _embed/public/ace/src-min/snippets/django.js -// _embed/public/ace/src-min/snippets/dockerfile.js -// _embed/public/ace/src-min/snippets/dot.js -// _embed/public/ace/src-min/snippets/drools.js -// _embed/public/ace/src-min/snippets/eiffel.js -// _embed/public/ace/src-min/snippets/ejs.js -// _embed/public/ace/src-min/snippets/elixir.js -// _embed/public/ace/src-min/snippets/elm.js -// _embed/public/ace/src-min/snippets/erlang.js -// _embed/public/ace/src-min/snippets/forth.js -// _embed/public/ace/src-min/snippets/fortran.js -// _embed/public/ace/src-min/snippets/ftl.js -// _embed/public/ace/src-min/snippets/gcode.js -// _embed/public/ace/src-min/snippets/gherkin.js -// _embed/public/ace/src-min/snippets/gitignore.js -// _embed/public/ace/src-min/snippets/glsl.js -// _embed/public/ace/src-min/snippets/gobstones.js -// _embed/public/ace/src-min/snippets/golang.js -// _embed/public/ace/src-min/snippets/groovy.js -// _embed/public/ace/src-min/snippets/haml.js -// _embed/public/ace/src-min/snippets/handlebars.js -// _embed/public/ace/src-min/snippets/haskell.js -// _embed/public/ace/src-min/snippets/haskell_cabal.js -// _embed/public/ace/src-min/snippets/haxe.js -// _embed/public/ace/src-min/snippets/hjson.js -// _embed/public/ace/src-min/snippets/html.js -// _embed/public/ace/src-min/snippets/html_elixir.js -// _embed/public/ace/src-min/snippets/html_ruby.js -// _embed/public/ace/src-min/snippets/ini.js -// _embed/public/ace/src-min/snippets/io.js -// _embed/public/ace/src-min/snippets/jack.js -// _embed/public/ace/src-min/snippets/jade.js -// _embed/public/ace/src-min/snippets/java.js -// _embed/public/ace/src-min/snippets/javascript.js -// _embed/public/ace/src-min/snippets/json.js -// _embed/public/ace/src-min/snippets/jsoniq.js -// _embed/public/ace/src-min/snippets/jsp.js -// _embed/public/ace/src-min/snippets/jsx.js -// _embed/public/ace/src-min/snippets/julia.js -// _embed/public/ace/src-min/snippets/kotlin.js -// _embed/public/ace/src-min/snippets/latex.js -// _embed/public/ace/src-min/snippets/lean.js -// _embed/public/ace/src-min/snippets/less.js -// _embed/public/ace/src-min/snippets/liquid.js -// _embed/public/ace/src-min/snippets/lisp.js -// _embed/public/ace/src-min/snippets/live_script.js -// _embed/public/ace/src-min/snippets/livescript.js -// _embed/public/ace/src-min/snippets/logiql.js -// _embed/public/ace/src-min/snippets/lsl.js -// _embed/public/ace/src-min/snippets/lua.js -// _embed/public/ace/src-min/snippets/luapage.js -// _embed/public/ace/src-min/snippets/lucene.js -// _embed/public/ace/src-min/snippets/makefile.js -// _embed/public/ace/src-min/snippets/markdown.js -// _embed/public/ace/src-min/snippets/mask.js -// _embed/public/ace/src-min/snippets/matlab.js -// _embed/public/ace/src-min/snippets/maze.js -// _embed/public/ace/src-min/snippets/mel.js -// _embed/public/ace/src-min/snippets/mips_assembler.js -// _embed/public/ace/src-min/snippets/mipsassembler.js -// _embed/public/ace/src-min/snippets/mushcode.js -// _embed/public/ace/src-min/snippets/mysql.js -// _embed/public/ace/src-min/snippets/nix.js -// _embed/public/ace/src-min/snippets/nsis.js -// _embed/public/ace/src-min/snippets/objectivec.js -// _embed/public/ace/src-min/snippets/ocaml.js -// _embed/public/ace/src-min/snippets/pascal.js -// _embed/public/ace/src-min/snippets/perl.js -// _embed/public/ace/src-min/snippets/pgsql.js -// _embed/public/ace/src-min/snippets/php.js -// _embed/public/ace/src-min/snippets/plain_text.js -// _embed/public/ace/src-min/snippets/powershell.js -// _embed/public/ace/src-min/snippets/praat.js -// _embed/public/ace/src-min/snippets/prolog.js -// _embed/public/ace/src-min/snippets/properties.js -// _embed/public/ace/src-min/snippets/protobuf.js -// _embed/public/ace/src-min/snippets/python.js -// _embed/public/ace/src-min/snippets/r.js -// _embed/public/ace/src-min/snippets/razor.js -// _embed/public/ace/src-min/snippets/rdoc.js -// _embed/public/ace/src-min/snippets/rhtml.js -// _embed/public/ace/src-min/snippets/rst.js -// _embed/public/ace/src-min/snippets/ruby.js -// _embed/public/ace/src-min/snippets/rust.js -// _embed/public/ace/src-min/snippets/sass.js -// _embed/public/ace/src-min/snippets/scad.js -// _embed/public/ace/src-min/snippets/scala.js -// _embed/public/ace/src-min/snippets/scheme.js -// _embed/public/ace/src-min/snippets/scss.js -// _embed/public/ace/src-min/snippets/sh.js -// _embed/public/ace/src-min/snippets/sjs.js -// _embed/public/ace/src-min/snippets/smarty.js -// _embed/public/ace/src-min/snippets/snippets.js -// _embed/public/ace/src-min/snippets/soy_template.js -// _embed/public/ace/src-min/snippets/space.js -// _embed/public/ace/src-min/snippets/sql.js -// _embed/public/ace/src-min/snippets/sqlserver.js -// _embed/public/ace/src-min/snippets/stylus.js -// _embed/public/ace/src-min/snippets/svg.js -// _embed/public/ace/src-min/snippets/swift.js -// _embed/public/ace/src-min/snippets/swig.js -// _embed/public/ace/src-min/snippets/tcl.js -// _embed/public/ace/src-min/snippets/tex.js -// _embed/public/ace/src-min/snippets/text.js -// _embed/public/ace/src-min/snippets/textile.js -// _embed/public/ace/src-min/snippets/toml.js -// _embed/public/ace/src-min/snippets/tsx.js -// _embed/public/ace/src-min/snippets/twig.js -// _embed/public/ace/src-min/snippets/typescript.js -// _embed/public/ace/src-min/snippets/vala.js -// _embed/public/ace/src-min/snippets/vbscript.js -// _embed/public/ace/src-min/snippets/velocity.js -// _embed/public/ace/src-min/snippets/verilog.js -// _embed/public/ace/src-min/snippets/vhdl.js -// _embed/public/ace/src-min/snippets/wollok.js -// _embed/public/ace/src-min/snippets/xml.js -// _embed/public/ace/src-min/snippets/xquery.js -// _embed/public/ace/src-min/snippets/yaml.js -// _embed/public/ace/src-min/theme-github.js -// _embed/public/ace/src-min/worker-coffee.js -// _embed/public/ace/src-min/worker-css.js -// _embed/public/ace/src-min/worker-html.js -// _embed/public/ace/src-min/worker-javascript.js -// _embed/public/ace/src-min/worker-json.js -// _embed/public/ace/src-min/worker-lua.js -// _embed/public/ace/src-min/worker-php.js -// _embed/public/ace/src-min/worker-xml.js -// _embed/public/ace/src-min/worker-xquery.js -// DO NOT EDIT! - -package assets - -import ( - "fmt" - "io/ioutil" - "os" - "path/filepath" - "strings" -) - -// bindataRead reads the given file from disk. It returns an error on failure. -func bindataRead(path, name string) ([]byte, error) { - buf, err := ioutil.ReadFile(path) - if err != nil { - err = fmt.Errorf("Error reading asset %s at %s: %v", name, path, err) - } - return buf, err -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -// templatesBaseTmpl reads file data from disk. It returns an error on failure. -func templatesBaseTmpl() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\templates\\base.tmpl" - name := "templates/base.tmpl" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// templatesEditorTmpl reads file data from disk. It returns an error on failure. -func templatesEditorTmpl() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\templates\\editor.tmpl" - name := "templates/editor.tmpl" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// templatesFrontmatterTmpl reads file data from disk. It returns an error on failure. -func templatesFrontmatterTmpl() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\templates\\frontmatter.tmpl" - name := "templates/frontmatter.tmpl" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// templatesListingTmpl reads file data from disk. It returns an error on failure. -func templatesListingTmpl() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\templates\\listing.tmpl" - name := "templates/listing.tmpl" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// templatesMinimalTmpl reads file data from disk. It returns an error on failure. -func templatesMinimalTmpl() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\templates\\minimal.tmpl" - name := "templates/minimal.tmpl" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// templatesSingleTmpl reads file data from disk. It returns an error on failure. -func templatesSingleTmpl() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\templates\\single.tmpl" - name := "templates/single.tmpl" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicJsCommonJs reads file data from disk. It returns an error on failure. -func publicJsCommonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\js\\common.js" - name := "public/js/common.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicJsEditorJs reads file data from disk. It returns an error on failure. -func publicJsEditorJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\js\\editor.js" - name := "public/js/editor.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicJsForm2jsJs reads file data from disk. It returns an error on failure. -func publicJsForm2jsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\js\\form2js.js" - name := "public/js/form2js.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicJsListingJs reads file data from disk. It returns an error on failure. -func publicJsListingJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\js\\listing.js" - name := "public/js/listing.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssFontsCss reads file data from disk. It returns an error on failure. -func publicCssFontsCss() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\fonts.css" - name := "public/css/fonts.css" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssMaterialIconsWoff2 reads file data from disk. It returns an error on failure. -func publicCssMaterialIconsWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\material\\icons.woff2" - name := "public/css/material/icons.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssNormalizeCss reads file data from disk. It returns an error on failure. -func publicCssNormalizeCss() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\normalize.css" - name := "public/css/normalize.css" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoMediumCyrillicExtWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoMediumCyrillicExtWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\medium-cyrillic-ext.woff2" - name := "public/css/roboto/medium-cyrillic-ext.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoMediumCyrillicWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoMediumCyrillicWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\medium-cyrillic.woff2" - name := "public/css/roboto/medium-cyrillic.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoMediumGreekExtWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoMediumGreekExtWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\medium-greek-ext.woff2" - name := "public/css/roboto/medium-greek-ext.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoMediumGreekWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoMediumGreekWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\medium-greek.woff2" - name := "public/css/roboto/medium-greek.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoMediumLatinExtWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoMediumLatinExtWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\medium-latin-ext.woff2" - name := "public/css/roboto/medium-latin-ext.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoMediumLatinWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoMediumLatinWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\medium-latin.woff2" - name := "public/css/roboto/medium-latin.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoMediumVietnameseWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoMediumVietnameseWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\medium-vietnamese.woff2" - name := "public/css/roboto/medium-vietnamese.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoNormalCyrillicExtWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoNormalCyrillicExtWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\normal-cyrillic-ext.woff2" - name := "public/css/roboto/normal-cyrillic-ext.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoNormalCyrillicWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoNormalCyrillicWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\normal-cyrillic.woff2" - name := "public/css/roboto/normal-cyrillic.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoNormalGreekExtWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoNormalGreekExtWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\normal-greek-ext.woff2" - name := "public/css/roboto/normal-greek-ext.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoNormalGreekWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoNormalGreekWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\normal-greek.woff2" - name := "public/css/roboto/normal-greek.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoNormalLatinExtWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoNormalLatinExtWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\normal-latin-ext.woff2" - name := "public/css/roboto/normal-latin-ext.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoNormalLatinWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoNormalLatinWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\normal-latin.woff2" - name := "public/css/roboto/normal-latin.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssRobotoNormalVietnameseWoff2 reads file data from disk. It returns an error on failure. -func publicCssRobotoNormalVietnameseWoff2() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\roboto\\normal-vietnamese.woff2" - name := "public/css/roboto/normal-vietnamese.woff2" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicCssStylesCss reads file data from disk. It returns an error on failure. -func publicCssStylesCss() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\css\\styles.css" - name := "public/css/styles.css" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinAceJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinAceJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ace.js" - name := "public/ace/src-min/ace.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtBeautifyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtBeautifyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-beautify.js" - name := "public/ace/src-min/ext-beautify.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtChromevoxJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtChromevoxJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-chromevox.js" - name := "public/ace/src-min/ext-chromevox.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtElastic_tabstops_liteJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtElastic_tabstops_liteJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-elastic_tabstops_lite.js" - name := "public/ace/src-min/ext-elastic_tabstops_lite.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtEmmetJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtEmmetJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-emmet.js" - name := "public/ace/src-min/ext-emmet.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtError_markerJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtError_markerJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-error_marker.js" - name := "public/ace/src-min/ext-error_marker.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtKeybinding_menuJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtKeybinding_menuJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-keybinding_menu.js" - name := "public/ace/src-min/ext-keybinding_menu.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtLanguage_toolsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtLanguage_toolsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-language_tools.js" - name := "public/ace/src-min/ext-language_tools.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtLinkingJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtLinkingJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-linking.js" - name := "public/ace/src-min/ext-linking.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtModelistJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtModelistJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-modelist.js" - name := "public/ace/src-min/ext-modelist.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtOld_ieJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtOld_ieJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-old_ie.js" - name := "public/ace/src-min/ext-old_ie.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtSearchboxJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtSearchboxJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-searchbox.js" - name := "public/ace/src-min/ext-searchbox.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtSettings_menuJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtSettings_menuJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-settings_menu.js" - name := "public/ace/src-min/ext-settings_menu.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtSpellcheckJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtSpellcheckJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-spellcheck.js" - name := "public/ace/src-min/ext-spellcheck.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtSplitJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtSplitJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-split.js" - name := "public/ace/src-min/ext-split.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtStatic_highlightJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtStatic_highlightJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-static_highlight.js" - name := "public/ace/src-min/ext-static_highlight.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtStatusbarJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtStatusbarJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-statusbar.js" - name := "public/ace/src-min/ext-statusbar.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtTextareaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtTextareaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-textarea.js" - name := "public/ace/src-min/ext-textarea.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtThemelistJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtThemelistJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-themelist.js" - name := "public/ace/src-min/ext-themelist.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinExtWhitespaceJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinExtWhitespaceJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\ext-whitespace.js" - name := "public/ace/src-min/ext-whitespace.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinKeybindingEmacsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinKeybindingEmacsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\keybinding-emacs.js" - name := "public/ace/src-min/keybinding-emacs.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinKeybindingVimJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinKeybindingVimJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\keybinding-vim.js" - name := "public/ace/src-min/keybinding-vim.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeAbapJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeAbapJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-abap.js" - name := "public/ace/src-min/mode-abap.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeAbcJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeAbcJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-abc.js" - name := "public/ace/src-min/mode-abc.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeActionscriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeActionscriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-actionscript.js" - name := "public/ace/src-min/mode-actionscript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeAdaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeAdaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-ada.js" - name := "public/ace/src-min/mode-ada.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeApache_confJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeApache_confJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-apache_conf.js" - name := "public/ace/src-min/mode-apache_conf.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeApplescriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeApplescriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-applescript.js" - name := "public/ace/src-min/mode-applescript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeAsciidocJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeAsciidocJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-asciidoc.js" - name := "public/ace/src-min/mode-asciidoc.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeAssembly_x86Js reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeAssembly_x86Js() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-assembly_x86.js" - name := "public/ace/src-min/mode-assembly_x86.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeAutohotkeyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeAutohotkeyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-autohotkey.js" - name := "public/ace/src-min/mode-autohotkey.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeBatchfileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeBatchfileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-batchfile.js" - name := "public/ace/src-min/mode-batchfile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeBroJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeBroJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-bro.js" - name := "public/ace/src-min/mode-bro.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeC9searchJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeC9searchJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-c9search.js" - name := "public/ace/src-min/mode-c9search.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeC_cppJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeC_cppJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-c_cpp.js" - name := "public/ace/src-min/mode-c_cpp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeCirruJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeCirruJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-cirru.js" - name := "public/ace/src-min/mode-cirru.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeClojureJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeClojureJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-clojure.js" - name := "public/ace/src-min/mode-clojure.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeCobolJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeCobolJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-cobol.js" - name := "public/ace/src-min/mode-cobol.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeCoffeeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeCoffeeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-coffee.js" - name := "public/ace/src-min/mode-coffee.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeColdfusionJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeColdfusionJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-coldfusion.js" - name := "public/ace/src-min/mode-coldfusion.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeCsharpJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeCsharpJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-csharp.js" - name := "public/ace/src-min/mode-csharp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeCssJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeCssJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-css.js" - name := "public/ace/src-min/mode-css.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeCurlyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeCurlyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-curly.js" - name := "public/ace/src-min/mode-curly.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeDJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeDJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-d.js" - name := "public/ace/src-min/mode-d.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeDartJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeDartJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-dart.js" - name := "public/ace/src-min/mode-dart.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeDiffJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeDiffJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-diff.js" - name := "public/ace/src-min/mode-diff.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeDjangoJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeDjangoJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-django.js" - name := "public/ace/src-min/mode-django.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeDockerfileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeDockerfileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-dockerfile.js" - name := "public/ace/src-min/mode-dockerfile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeDotJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeDotJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-dot.js" - name := "public/ace/src-min/mode-dot.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeDroolsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeDroolsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-drools.js" - name := "public/ace/src-min/mode-drools.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeEiffelJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeEiffelJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-eiffel.js" - name := "public/ace/src-min/mode-eiffel.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeEjsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeEjsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-ejs.js" - name := "public/ace/src-min/mode-ejs.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeElixirJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeElixirJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-elixir.js" - name := "public/ace/src-min/mode-elixir.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeElmJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeElmJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-elm.js" - name := "public/ace/src-min/mode-elm.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeErlangJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeErlangJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-erlang.js" - name := "public/ace/src-min/mode-erlang.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeForthJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeForthJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-forth.js" - name := "public/ace/src-min/mode-forth.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeFortranJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeFortranJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-fortran.js" - name := "public/ace/src-min/mode-fortran.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeFtlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeFtlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-ftl.js" - name := "public/ace/src-min/mode-ftl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeGcodeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeGcodeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-gcode.js" - name := "public/ace/src-min/mode-gcode.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeGherkinJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeGherkinJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-gherkin.js" - name := "public/ace/src-min/mode-gherkin.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeGitignoreJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeGitignoreJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-gitignore.js" - name := "public/ace/src-min/mode-gitignore.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeGlslJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeGlslJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-glsl.js" - name := "public/ace/src-min/mode-glsl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeGobstonesJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeGobstonesJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-gobstones.js" - name := "public/ace/src-min/mode-gobstones.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeGolangJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeGolangJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-golang.js" - name := "public/ace/src-min/mode-golang.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeGroovyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeGroovyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-groovy.js" - name := "public/ace/src-min/mode-groovy.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHamlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHamlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-haml.js" - name := "public/ace/src-min/mode-haml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHandlebarsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHandlebarsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-handlebars.js" - name := "public/ace/src-min/mode-handlebars.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHaskellJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHaskellJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-haskell.js" - name := "public/ace/src-min/mode-haskell.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHaskell_cabalJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHaskell_cabalJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-haskell_cabal.js" - name := "public/ace/src-min/mode-haskell_cabal.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHaxeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHaxeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-haxe.js" - name := "public/ace/src-min/mode-haxe.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHjsonJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHjsonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-hjson.js" - name := "public/ace/src-min/mode-hjson.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHtmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHtmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-html.js" - name := "public/ace/src-min/mode-html.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHtml_elixirJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHtml_elixirJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-html_elixir.js" - name := "public/ace/src-min/mode-html_elixir.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeHtml_rubyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeHtml_rubyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-html_ruby.js" - name := "public/ace/src-min/mode-html_ruby.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeIniJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeIniJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-ini.js" - name := "public/ace/src-min/mode-ini.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeIoJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeIoJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-io.js" - name := "public/ace/src-min/mode-io.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJackJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJackJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-jack.js" - name := "public/ace/src-min/mode-jack.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJadeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJadeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-jade.js" - name := "public/ace/src-min/mode-jade.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJavaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJavaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-java.js" - name := "public/ace/src-min/mode-java.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJavascriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJavascriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-javascript.js" - name := "public/ace/src-min/mode-javascript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJsonJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJsonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-json.js" - name := "public/ace/src-min/mode-json.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJsoniqJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJsoniqJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-jsoniq.js" - name := "public/ace/src-min/mode-jsoniq.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJspJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJspJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-jsp.js" - name := "public/ace/src-min/mode-jsp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJsxJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJsxJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-jsx.js" - name := "public/ace/src-min/mode-jsx.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeJuliaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeJuliaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-julia.js" - name := "public/ace/src-min/mode-julia.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeKotlinJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeKotlinJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-kotlin.js" - name := "public/ace/src-min/mode-kotlin.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLatexJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLatexJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-latex.js" - name := "public/ace/src-min/mode-latex.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLeanJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLeanJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-lean.js" - name := "public/ace/src-min/mode-lean.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLessJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLessJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-less.js" - name := "public/ace/src-min/mode-less.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLiquidJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLiquidJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-liquid.js" - name := "public/ace/src-min/mode-liquid.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLispJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLispJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-lisp.js" - name := "public/ace/src-min/mode-lisp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLive_scriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLive_scriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-live_script.js" - name := "public/ace/src-min/mode-live_script.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLivescriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLivescriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-livescript.js" - name := "public/ace/src-min/mode-livescript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLogiqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLogiqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-logiql.js" - name := "public/ace/src-min/mode-logiql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLslJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLslJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-lsl.js" - name := "public/ace/src-min/mode-lsl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLuaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLuaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-lua.js" - name := "public/ace/src-min/mode-lua.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLuapageJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLuapageJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-luapage.js" - name := "public/ace/src-min/mode-luapage.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeLuceneJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeLuceneJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-lucene.js" - name := "public/ace/src-min/mode-lucene.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMakefileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMakefileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-makefile.js" - name := "public/ace/src-min/mode-makefile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMarkdownJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMarkdownJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-markdown.js" - name := "public/ace/src-min/mode-markdown.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMaskJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMaskJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-mask.js" - name := "public/ace/src-min/mode-mask.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMatlabJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMatlabJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-matlab.js" - name := "public/ace/src-min/mode-matlab.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMazeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMazeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-maze.js" - name := "public/ace/src-min/mode-maze.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMelJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMelJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-mel.js" - name := "public/ace/src-min/mode-mel.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMips_assemblerJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMips_assemblerJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-mips_assembler.js" - name := "public/ace/src-min/mode-mips_assembler.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMipsassemblerJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMipsassemblerJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-mipsassembler.js" - name := "public/ace/src-min/mode-mipsassembler.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMushcodeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMushcodeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-mushcode.js" - name := "public/ace/src-min/mode-mushcode.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeMysqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeMysqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-mysql.js" - name := "public/ace/src-min/mode-mysql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeNixJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeNixJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-nix.js" - name := "public/ace/src-min/mode-nix.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeNsisJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeNsisJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-nsis.js" - name := "public/ace/src-min/mode-nsis.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeObjectivecJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeObjectivecJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-objectivec.js" - name := "public/ace/src-min/mode-objectivec.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeOcamlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeOcamlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-ocaml.js" - name := "public/ace/src-min/mode-ocaml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePascalJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePascalJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-pascal.js" - name := "public/ace/src-min/mode-pascal.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePerlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePerlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-perl.js" - name := "public/ace/src-min/mode-perl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePgsqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePgsqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-pgsql.js" - name := "public/ace/src-min/mode-pgsql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePhpJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePhpJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-php.js" - name := "public/ace/src-min/mode-php.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePlain_textJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePlain_textJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-plain_text.js" - name := "public/ace/src-min/mode-plain_text.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePowershellJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePowershellJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-powershell.js" - name := "public/ace/src-min/mode-powershell.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePraatJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePraatJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-praat.js" - name := "public/ace/src-min/mode-praat.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePrologJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePrologJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-prolog.js" - name := "public/ace/src-min/mode-prolog.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePropertiesJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePropertiesJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-properties.js" - name := "public/ace/src-min/mode-properties.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeProtobufJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeProtobufJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-protobuf.js" - name := "public/ace/src-min/mode-protobuf.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModePythonJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModePythonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-python.js" - name := "public/ace/src-min/mode-python.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeRJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeRJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-r.js" - name := "public/ace/src-min/mode-r.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeRazorJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeRazorJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-razor.js" - name := "public/ace/src-min/mode-razor.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeRdocJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeRdocJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-rdoc.js" - name := "public/ace/src-min/mode-rdoc.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeRhtmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeRhtmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-rhtml.js" - name := "public/ace/src-min/mode-rhtml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeRstJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeRstJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-rst.js" - name := "public/ace/src-min/mode-rst.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeRubyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeRubyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-ruby.js" - name := "public/ace/src-min/mode-ruby.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeRustJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeRustJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-rust.js" - name := "public/ace/src-min/mode-rust.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSassJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSassJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-sass.js" - name := "public/ace/src-min/mode-sass.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeScadJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeScadJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-scad.js" - name := "public/ace/src-min/mode-scad.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeScalaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeScalaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-scala.js" - name := "public/ace/src-min/mode-scala.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSchemeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSchemeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-scheme.js" - name := "public/ace/src-min/mode-scheme.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeScssJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeScssJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-scss.js" - name := "public/ace/src-min/mode-scss.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeShJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeShJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-sh.js" - name := "public/ace/src-min/mode-sh.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSjsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSjsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-sjs.js" - name := "public/ace/src-min/mode-sjs.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSmartyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSmartyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-smarty.js" - name := "public/ace/src-min/mode-smarty.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSnippetsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSnippetsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-snippets.js" - name := "public/ace/src-min/mode-snippets.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSoy_templateJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSoy_templateJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-soy_template.js" - name := "public/ace/src-min/mode-soy_template.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSpaceJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSpaceJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-space.js" - name := "public/ace/src-min/mode-space.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-sql.js" - name := "public/ace/src-min/mode-sql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSqlserverJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSqlserverJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-sqlserver.js" - name := "public/ace/src-min/mode-sqlserver.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeStylusJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeStylusJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-stylus.js" - name := "public/ace/src-min/mode-stylus.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSvgJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSvgJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-svg.js" - name := "public/ace/src-min/mode-svg.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSwiftJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSwiftJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-swift.js" - name := "public/ace/src-min/mode-swift.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeSwigJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeSwigJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-swig.js" - name := "public/ace/src-min/mode-swig.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTclJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTclJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-tcl.js" - name := "public/ace/src-min/mode-tcl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTexJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTexJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-tex.js" - name := "public/ace/src-min/mode-tex.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTextJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTextJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-text.js" - name := "public/ace/src-min/mode-text.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTextileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTextileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-textile.js" - name := "public/ace/src-min/mode-textile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTomlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTomlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-toml.js" - name := "public/ace/src-min/mode-toml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTsxJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTsxJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-tsx.js" - name := "public/ace/src-min/mode-tsx.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTwigJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTwigJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-twig.js" - name := "public/ace/src-min/mode-twig.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeTypescriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeTypescriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-typescript.js" - name := "public/ace/src-min/mode-typescript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeValaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeValaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-vala.js" - name := "public/ace/src-min/mode-vala.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeVbscriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeVbscriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-vbscript.js" - name := "public/ace/src-min/mode-vbscript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeVelocityJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeVelocityJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-velocity.js" - name := "public/ace/src-min/mode-velocity.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeVerilogJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeVerilogJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-verilog.js" - name := "public/ace/src-min/mode-verilog.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeVhdlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeVhdlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-vhdl.js" - name := "public/ace/src-min/mode-vhdl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeWollokJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeWollokJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-wollok.js" - name := "public/ace/src-min/mode-wollok.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeXmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeXmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-xml.js" - name := "public/ace/src-min/mode-xml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeXqueryJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeXqueryJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-xquery.js" - name := "public/ace/src-min/mode-xquery.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinModeYamlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinModeYamlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\mode-yaml.js" - name := "public/ace/src-min/mode-yaml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsAbapJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsAbapJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\abap.js" - name := "public/ace/src-min/snippets/abap.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsAbcJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsAbcJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\abc.js" - name := "public/ace/src-min/snippets/abc.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsActionscriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsActionscriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\actionscript.js" - name := "public/ace/src-min/snippets/actionscript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsAdaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsAdaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\ada.js" - name := "public/ace/src-min/snippets/ada.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsApache_confJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsApache_confJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\apache_conf.js" - name := "public/ace/src-min/snippets/apache_conf.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsApplescriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsApplescriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\applescript.js" - name := "public/ace/src-min/snippets/applescript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsAsciidocJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsAsciidocJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\asciidoc.js" - name := "public/ace/src-min/snippets/asciidoc.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsAssembly_x86Js reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsAssembly_x86Js() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\assembly_x86.js" - name := "public/ace/src-min/snippets/assembly_x86.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsAutohotkeyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsAutohotkeyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\autohotkey.js" - name := "public/ace/src-min/snippets/autohotkey.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsBatchfileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsBatchfileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\batchfile.js" - name := "public/ace/src-min/snippets/batchfile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsBroJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsBroJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\bro.js" - name := "public/ace/src-min/snippets/bro.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsC9searchJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsC9searchJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\c9search.js" - name := "public/ace/src-min/snippets/c9search.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsC_cppJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsC_cppJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\c_cpp.js" - name := "public/ace/src-min/snippets/c_cpp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsCirruJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsCirruJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\cirru.js" - name := "public/ace/src-min/snippets/cirru.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsClojureJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsClojureJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\clojure.js" - name := "public/ace/src-min/snippets/clojure.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsCobolJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsCobolJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\cobol.js" - name := "public/ace/src-min/snippets/cobol.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsCoffeeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsCoffeeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\coffee.js" - name := "public/ace/src-min/snippets/coffee.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsColdfusionJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsColdfusionJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\coldfusion.js" - name := "public/ace/src-min/snippets/coldfusion.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsCsharpJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsCsharpJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\csharp.js" - name := "public/ace/src-min/snippets/csharp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsCssJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsCssJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\css.js" - name := "public/ace/src-min/snippets/css.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsCurlyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsCurlyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\curly.js" - name := "public/ace/src-min/snippets/curly.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsDJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsDJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\d.js" - name := "public/ace/src-min/snippets/d.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsDartJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsDartJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\dart.js" - name := "public/ace/src-min/snippets/dart.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsDiffJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsDiffJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\diff.js" - name := "public/ace/src-min/snippets/diff.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsDjangoJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsDjangoJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\django.js" - name := "public/ace/src-min/snippets/django.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsDockerfileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsDockerfileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\dockerfile.js" - name := "public/ace/src-min/snippets/dockerfile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsDotJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsDotJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\dot.js" - name := "public/ace/src-min/snippets/dot.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsDroolsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsDroolsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\drools.js" - name := "public/ace/src-min/snippets/drools.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsEiffelJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsEiffelJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\eiffel.js" - name := "public/ace/src-min/snippets/eiffel.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsEjsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsEjsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\ejs.js" - name := "public/ace/src-min/snippets/ejs.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsElixirJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsElixirJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\elixir.js" - name := "public/ace/src-min/snippets/elixir.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsElmJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsElmJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\elm.js" - name := "public/ace/src-min/snippets/elm.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsErlangJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsErlangJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\erlang.js" - name := "public/ace/src-min/snippets/erlang.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsForthJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsForthJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\forth.js" - name := "public/ace/src-min/snippets/forth.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsFortranJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsFortranJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\fortran.js" - name := "public/ace/src-min/snippets/fortran.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsFtlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsFtlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\ftl.js" - name := "public/ace/src-min/snippets/ftl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsGcodeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsGcodeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\gcode.js" - name := "public/ace/src-min/snippets/gcode.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsGherkinJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsGherkinJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\gherkin.js" - name := "public/ace/src-min/snippets/gherkin.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsGitignoreJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsGitignoreJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\gitignore.js" - name := "public/ace/src-min/snippets/gitignore.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsGlslJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsGlslJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\glsl.js" - name := "public/ace/src-min/snippets/glsl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsGobstonesJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsGobstonesJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\gobstones.js" - name := "public/ace/src-min/snippets/gobstones.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsGolangJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsGolangJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\golang.js" - name := "public/ace/src-min/snippets/golang.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsGroovyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsGroovyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\groovy.js" - name := "public/ace/src-min/snippets/groovy.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHamlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHamlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\haml.js" - name := "public/ace/src-min/snippets/haml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHandlebarsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHandlebarsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\handlebars.js" - name := "public/ace/src-min/snippets/handlebars.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHaskellJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHaskellJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\haskell.js" - name := "public/ace/src-min/snippets/haskell.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHaskell_cabalJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHaskell_cabalJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\haskell_cabal.js" - name := "public/ace/src-min/snippets/haskell_cabal.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHaxeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHaxeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\haxe.js" - name := "public/ace/src-min/snippets/haxe.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHjsonJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHjsonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\hjson.js" - name := "public/ace/src-min/snippets/hjson.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHtmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHtmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\html.js" - name := "public/ace/src-min/snippets/html.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHtml_elixirJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHtml_elixirJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\html_elixir.js" - name := "public/ace/src-min/snippets/html_elixir.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsHtml_rubyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsHtml_rubyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\html_ruby.js" - name := "public/ace/src-min/snippets/html_ruby.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsIniJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsIniJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\ini.js" - name := "public/ace/src-min/snippets/ini.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsIoJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsIoJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\io.js" - name := "public/ace/src-min/snippets/io.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJackJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJackJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\jack.js" - name := "public/ace/src-min/snippets/jack.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJadeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJadeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\jade.js" - name := "public/ace/src-min/snippets/jade.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJavaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJavaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\java.js" - name := "public/ace/src-min/snippets/java.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJavascriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJavascriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\javascript.js" - name := "public/ace/src-min/snippets/javascript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJsonJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJsonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\json.js" - name := "public/ace/src-min/snippets/json.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJsoniqJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJsoniqJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\jsoniq.js" - name := "public/ace/src-min/snippets/jsoniq.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJspJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJspJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\jsp.js" - name := "public/ace/src-min/snippets/jsp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJsxJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJsxJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\jsx.js" - name := "public/ace/src-min/snippets/jsx.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsJuliaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsJuliaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\julia.js" - name := "public/ace/src-min/snippets/julia.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsKotlinJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsKotlinJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\kotlin.js" - name := "public/ace/src-min/snippets/kotlin.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLatexJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLatexJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\latex.js" - name := "public/ace/src-min/snippets/latex.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLeanJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLeanJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\lean.js" - name := "public/ace/src-min/snippets/lean.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLessJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLessJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\less.js" - name := "public/ace/src-min/snippets/less.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLiquidJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLiquidJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\liquid.js" - name := "public/ace/src-min/snippets/liquid.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLispJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLispJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\lisp.js" - name := "public/ace/src-min/snippets/lisp.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLive_scriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLive_scriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\live_script.js" - name := "public/ace/src-min/snippets/live_script.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLivescriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLivescriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\livescript.js" - name := "public/ace/src-min/snippets/livescript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLogiqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLogiqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\logiql.js" - name := "public/ace/src-min/snippets/logiql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLslJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLslJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\lsl.js" - name := "public/ace/src-min/snippets/lsl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLuaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLuaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\lua.js" - name := "public/ace/src-min/snippets/lua.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLuapageJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLuapageJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\luapage.js" - name := "public/ace/src-min/snippets/luapage.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsLuceneJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsLuceneJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\lucene.js" - name := "public/ace/src-min/snippets/lucene.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMakefileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMakefileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\makefile.js" - name := "public/ace/src-min/snippets/makefile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMarkdownJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMarkdownJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\markdown.js" - name := "public/ace/src-min/snippets/markdown.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMaskJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMaskJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\mask.js" - name := "public/ace/src-min/snippets/mask.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMatlabJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMatlabJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\matlab.js" - name := "public/ace/src-min/snippets/matlab.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMazeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMazeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\maze.js" - name := "public/ace/src-min/snippets/maze.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMelJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMelJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\mel.js" - name := "public/ace/src-min/snippets/mel.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMips_assemblerJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMips_assemblerJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\mips_assembler.js" - name := "public/ace/src-min/snippets/mips_assembler.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMipsassemblerJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMipsassemblerJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\mipsassembler.js" - name := "public/ace/src-min/snippets/mipsassembler.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMushcodeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMushcodeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\mushcode.js" - name := "public/ace/src-min/snippets/mushcode.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsMysqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsMysqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\mysql.js" - name := "public/ace/src-min/snippets/mysql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsNixJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsNixJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\nix.js" - name := "public/ace/src-min/snippets/nix.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsNsisJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsNsisJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\nsis.js" - name := "public/ace/src-min/snippets/nsis.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsObjectivecJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsObjectivecJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\objectivec.js" - name := "public/ace/src-min/snippets/objectivec.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsOcamlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsOcamlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\ocaml.js" - name := "public/ace/src-min/snippets/ocaml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPascalJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPascalJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\pascal.js" - name := "public/ace/src-min/snippets/pascal.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPerlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPerlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\perl.js" - name := "public/ace/src-min/snippets/perl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPgsqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPgsqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\pgsql.js" - name := "public/ace/src-min/snippets/pgsql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPhpJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPhpJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\php.js" - name := "public/ace/src-min/snippets/php.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPlain_textJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPlain_textJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\plain_text.js" - name := "public/ace/src-min/snippets/plain_text.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPowershellJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPowershellJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\powershell.js" - name := "public/ace/src-min/snippets/powershell.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPraatJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPraatJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\praat.js" - name := "public/ace/src-min/snippets/praat.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPrologJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPrologJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\prolog.js" - name := "public/ace/src-min/snippets/prolog.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPropertiesJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPropertiesJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\properties.js" - name := "public/ace/src-min/snippets/properties.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsProtobufJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsProtobufJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\protobuf.js" - name := "public/ace/src-min/snippets/protobuf.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsPythonJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsPythonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\python.js" - name := "public/ace/src-min/snippets/python.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsRJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsRJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\r.js" - name := "public/ace/src-min/snippets/r.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsRazorJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsRazorJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\razor.js" - name := "public/ace/src-min/snippets/razor.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsRdocJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsRdocJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\rdoc.js" - name := "public/ace/src-min/snippets/rdoc.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsRhtmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsRhtmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\rhtml.js" - name := "public/ace/src-min/snippets/rhtml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsRstJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsRstJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\rst.js" - name := "public/ace/src-min/snippets/rst.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsRubyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsRubyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\ruby.js" - name := "public/ace/src-min/snippets/ruby.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsRustJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsRustJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\rust.js" - name := "public/ace/src-min/snippets/rust.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSassJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSassJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\sass.js" - name := "public/ace/src-min/snippets/sass.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsScadJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsScadJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\scad.js" - name := "public/ace/src-min/snippets/scad.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsScalaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsScalaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\scala.js" - name := "public/ace/src-min/snippets/scala.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSchemeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSchemeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\scheme.js" - name := "public/ace/src-min/snippets/scheme.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsScssJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsScssJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\scss.js" - name := "public/ace/src-min/snippets/scss.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsShJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsShJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\sh.js" - name := "public/ace/src-min/snippets/sh.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSjsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSjsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\sjs.js" - name := "public/ace/src-min/snippets/sjs.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSmartyJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSmartyJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\smarty.js" - name := "public/ace/src-min/snippets/smarty.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSnippetsJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSnippetsJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\snippets.js" - name := "public/ace/src-min/snippets/snippets.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSoy_templateJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSoy_templateJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\soy_template.js" - name := "public/ace/src-min/snippets/soy_template.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSpaceJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSpaceJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\space.js" - name := "public/ace/src-min/snippets/space.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSqlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSqlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\sql.js" - name := "public/ace/src-min/snippets/sql.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSqlserverJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSqlserverJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\sqlserver.js" - name := "public/ace/src-min/snippets/sqlserver.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsStylusJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsStylusJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\stylus.js" - name := "public/ace/src-min/snippets/stylus.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSvgJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSvgJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\svg.js" - name := "public/ace/src-min/snippets/svg.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSwiftJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSwiftJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\swift.js" - name := "public/ace/src-min/snippets/swift.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsSwigJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsSwigJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\swig.js" - name := "public/ace/src-min/snippets/swig.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTclJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTclJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\tcl.js" - name := "public/ace/src-min/snippets/tcl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTexJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTexJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\tex.js" - name := "public/ace/src-min/snippets/tex.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTextJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTextJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\text.js" - name := "public/ace/src-min/snippets/text.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTextileJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTextileJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\textile.js" - name := "public/ace/src-min/snippets/textile.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTomlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTomlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\toml.js" - name := "public/ace/src-min/snippets/toml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTsxJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTsxJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\tsx.js" - name := "public/ace/src-min/snippets/tsx.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTwigJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTwigJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\twig.js" - name := "public/ace/src-min/snippets/twig.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsTypescriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsTypescriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\typescript.js" - name := "public/ace/src-min/snippets/typescript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsValaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsValaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\vala.js" - name := "public/ace/src-min/snippets/vala.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsVbscriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsVbscriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\vbscript.js" - name := "public/ace/src-min/snippets/vbscript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsVelocityJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsVelocityJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\velocity.js" - name := "public/ace/src-min/snippets/velocity.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsVerilogJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsVerilogJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\verilog.js" - name := "public/ace/src-min/snippets/verilog.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsVhdlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsVhdlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\vhdl.js" - name := "public/ace/src-min/snippets/vhdl.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsWollokJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsWollokJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\wollok.js" - name := "public/ace/src-min/snippets/wollok.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsXmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsXmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\xml.js" - name := "public/ace/src-min/snippets/xml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsXqueryJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsXqueryJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\xquery.js" - name := "public/ace/src-min/snippets/xquery.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinSnippetsYamlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinSnippetsYamlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\snippets\\yaml.js" - name := "public/ace/src-min/snippets/yaml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinThemeGithubJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinThemeGithubJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\theme-github.js" - name := "public/ace/src-min/theme-github.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerCoffeeJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerCoffeeJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-coffee.js" - name := "public/ace/src-min/worker-coffee.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerCssJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerCssJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-css.js" - name := "public/ace/src-min/worker-css.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerHtmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerHtmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-html.js" - name := "public/ace/src-min/worker-html.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerJavascriptJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerJavascriptJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-javascript.js" - name := "public/ace/src-min/worker-javascript.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerJsonJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerJsonJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-json.js" - name := "public/ace/src-min/worker-json.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerLuaJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerLuaJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-lua.js" - name := "public/ace/src-min/worker-lua.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerPhpJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerPhpJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-php.js" - name := "public/ace/src-min/worker-php.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerXmlJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerXmlJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-xml.js" - name := "public/ace/src-min/worker-xml.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// publicAceSrcMinWorkerXqueryJs reads file data from disk. It returns an error on failure. -func publicAceSrcMinWorkerXqueryJs() (*asset, error) { - path := "D:\\Code\\Go\\src\\github.com\\hacdias\\filemanager\\_embed\\public\\ace\\src-min\\worker-xquery.js" - name := "public/ace/src-min/worker-xquery.js" - bytes, err := bindataRead(path, name) - if err != nil { - return nil, err - } - - fi, err := os.Stat(path) - if err != nil { - err = fmt.Errorf("Error reading asset info %s at %s: %v", name, path, err) - } - - a := &asset{bytes: bytes, info: fi} - return a, err -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "templates/base.tmpl": templatesBaseTmpl, - "templates/editor.tmpl": templatesEditorTmpl, - "templates/frontmatter.tmpl": templatesFrontmatterTmpl, - "templates/listing.tmpl": templatesListingTmpl, - "templates/minimal.tmpl": templatesMinimalTmpl, - "templates/single.tmpl": templatesSingleTmpl, - "public/js/common.js": publicJsCommonJs, - "public/js/editor.js": publicJsEditorJs, - "public/js/form2js.js": publicJsForm2jsJs, - "public/js/listing.js": publicJsListingJs, - "public/css/fonts.css": publicCssFontsCss, - "public/css/material/icons.woff2": publicCssMaterialIconsWoff2, - "public/css/normalize.css": publicCssNormalizeCss, - "public/css/roboto/medium-cyrillic-ext.woff2": publicCssRobotoMediumCyrillicExtWoff2, - "public/css/roboto/medium-cyrillic.woff2": publicCssRobotoMediumCyrillicWoff2, - "public/css/roboto/medium-greek-ext.woff2": publicCssRobotoMediumGreekExtWoff2, - "public/css/roboto/medium-greek.woff2": publicCssRobotoMediumGreekWoff2, - "public/css/roboto/medium-latin-ext.woff2": publicCssRobotoMediumLatinExtWoff2, - "public/css/roboto/medium-latin.woff2": publicCssRobotoMediumLatinWoff2, - "public/css/roboto/medium-vietnamese.woff2": publicCssRobotoMediumVietnameseWoff2, - "public/css/roboto/normal-cyrillic-ext.woff2": publicCssRobotoNormalCyrillicExtWoff2, - "public/css/roboto/normal-cyrillic.woff2": publicCssRobotoNormalCyrillicWoff2, - "public/css/roboto/normal-greek-ext.woff2": publicCssRobotoNormalGreekExtWoff2, - "public/css/roboto/normal-greek.woff2": publicCssRobotoNormalGreekWoff2, - "public/css/roboto/normal-latin-ext.woff2": publicCssRobotoNormalLatinExtWoff2, - "public/css/roboto/normal-latin.woff2": publicCssRobotoNormalLatinWoff2, - "public/css/roboto/normal-vietnamese.woff2": publicCssRobotoNormalVietnameseWoff2, - "public/css/styles.css": publicCssStylesCss, - "public/ace/src-min/ace.js": publicAceSrcMinAceJs, - "public/ace/src-min/ext-beautify.js": publicAceSrcMinExtBeautifyJs, - "public/ace/src-min/ext-chromevox.js": publicAceSrcMinExtChromevoxJs, - "public/ace/src-min/ext-elastic_tabstops_lite.js": publicAceSrcMinExtElastic_tabstops_liteJs, - "public/ace/src-min/ext-emmet.js": publicAceSrcMinExtEmmetJs, - "public/ace/src-min/ext-error_marker.js": publicAceSrcMinExtError_markerJs, - "public/ace/src-min/ext-keybinding_menu.js": publicAceSrcMinExtKeybinding_menuJs, - "public/ace/src-min/ext-language_tools.js": publicAceSrcMinExtLanguage_toolsJs, - "public/ace/src-min/ext-linking.js": publicAceSrcMinExtLinkingJs, - "public/ace/src-min/ext-modelist.js": publicAceSrcMinExtModelistJs, - "public/ace/src-min/ext-old_ie.js": publicAceSrcMinExtOld_ieJs, - "public/ace/src-min/ext-searchbox.js": publicAceSrcMinExtSearchboxJs, - "public/ace/src-min/ext-settings_menu.js": publicAceSrcMinExtSettings_menuJs, - "public/ace/src-min/ext-spellcheck.js": publicAceSrcMinExtSpellcheckJs, - "public/ace/src-min/ext-split.js": publicAceSrcMinExtSplitJs, - "public/ace/src-min/ext-static_highlight.js": publicAceSrcMinExtStatic_highlightJs, - "public/ace/src-min/ext-statusbar.js": publicAceSrcMinExtStatusbarJs, - "public/ace/src-min/ext-textarea.js": publicAceSrcMinExtTextareaJs, - "public/ace/src-min/ext-themelist.js": publicAceSrcMinExtThemelistJs, - "public/ace/src-min/ext-whitespace.js": publicAceSrcMinExtWhitespaceJs, - "public/ace/src-min/keybinding-emacs.js": publicAceSrcMinKeybindingEmacsJs, - "public/ace/src-min/keybinding-vim.js": publicAceSrcMinKeybindingVimJs, - "public/ace/src-min/mode-abap.js": publicAceSrcMinModeAbapJs, - "public/ace/src-min/mode-abc.js": publicAceSrcMinModeAbcJs, - "public/ace/src-min/mode-actionscript.js": publicAceSrcMinModeActionscriptJs, - "public/ace/src-min/mode-ada.js": publicAceSrcMinModeAdaJs, - "public/ace/src-min/mode-apache_conf.js": publicAceSrcMinModeApache_confJs, - "public/ace/src-min/mode-applescript.js": publicAceSrcMinModeApplescriptJs, - "public/ace/src-min/mode-asciidoc.js": publicAceSrcMinModeAsciidocJs, - "public/ace/src-min/mode-assembly_x86.js": publicAceSrcMinModeAssembly_x86Js, - "public/ace/src-min/mode-autohotkey.js": publicAceSrcMinModeAutohotkeyJs, - "public/ace/src-min/mode-batchfile.js": publicAceSrcMinModeBatchfileJs, - "public/ace/src-min/mode-bro.js": publicAceSrcMinModeBroJs, - "public/ace/src-min/mode-c9search.js": publicAceSrcMinModeC9searchJs, - "public/ace/src-min/mode-c_cpp.js": publicAceSrcMinModeC_cppJs, - "public/ace/src-min/mode-cirru.js": publicAceSrcMinModeCirruJs, - "public/ace/src-min/mode-clojure.js": publicAceSrcMinModeClojureJs, - "public/ace/src-min/mode-cobol.js": publicAceSrcMinModeCobolJs, - "public/ace/src-min/mode-coffee.js": publicAceSrcMinModeCoffeeJs, - "public/ace/src-min/mode-coldfusion.js": publicAceSrcMinModeColdfusionJs, - "public/ace/src-min/mode-csharp.js": publicAceSrcMinModeCsharpJs, - "public/ace/src-min/mode-css.js": publicAceSrcMinModeCssJs, - "public/ace/src-min/mode-curly.js": publicAceSrcMinModeCurlyJs, - "public/ace/src-min/mode-d.js": publicAceSrcMinModeDJs, - "public/ace/src-min/mode-dart.js": publicAceSrcMinModeDartJs, - "public/ace/src-min/mode-diff.js": publicAceSrcMinModeDiffJs, - "public/ace/src-min/mode-django.js": publicAceSrcMinModeDjangoJs, - "public/ace/src-min/mode-dockerfile.js": publicAceSrcMinModeDockerfileJs, - "public/ace/src-min/mode-dot.js": publicAceSrcMinModeDotJs, - "public/ace/src-min/mode-drools.js": publicAceSrcMinModeDroolsJs, - "public/ace/src-min/mode-eiffel.js": publicAceSrcMinModeEiffelJs, - "public/ace/src-min/mode-ejs.js": publicAceSrcMinModeEjsJs, - "public/ace/src-min/mode-elixir.js": publicAceSrcMinModeElixirJs, - "public/ace/src-min/mode-elm.js": publicAceSrcMinModeElmJs, - "public/ace/src-min/mode-erlang.js": publicAceSrcMinModeErlangJs, - "public/ace/src-min/mode-forth.js": publicAceSrcMinModeForthJs, - "public/ace/src-min/mode-fortran.js": publicAceSrcMinModeFortranJs, - "public/ace/src-min/mode-ftl.js": publicAceSrcMinModeFtlJs, - "public/ace/src-min/mode-gcode.js": publicAceSrcMinModeGcodeJs, - "public/ace/src-min/mode-gherkin.js": publicAceSrcMinModeGherkinJs, - "public/ace/src-min/mode-gitignore.js": publicAceSrcMinModeGitignoreJs, - "public/ace/src-min/mode-glsl.js": publicAceSrcMinModeGlslJs, - "public/ace/src-min/mode-gobstones.js": publicAceSrcMinModeGobstonesJs, - "public/ace/src-min/mode-golang.js": publicAceSrcMinModeGolangJs, - "public/ace/src-min/mode-groovy.js": publicAceSrcMinModeGroovyJs, - "public/ace/src-min/mode-haml.js": publicAceSrcMinModeHamlJs, - "public/ace/src-min/mode-handlebars.js": publicAceSrcMinModeHandlebarsJs, - "public/ace/src-min/mode-haskell.js": publicAceSrcMinModeHaskellJs, - "public/ace/src-min/mode-haskell_cabal.js": publicAceSrcMinModeHaskell_cabalJs, - "public/ace/src-min/mode-haxe.js": publicAceSrcMinModeHaxeJs, - "public/ace/src-min/mode-hjson.js": publicAceSrcMinModeHjsonJs, - "public/ace/src-min/mode-html.js": publicAceSrcMinModeHtmlJs, - "public/ace/src-min/mode-html_elixir.js": publicAceSrcMinModeHtml_elixirJs, - "public/ace/src-min/mode-html_ruby.js": publicAceSrcMinModeHtml_rubyJs, - "public/ace/src-min/mode-ini.js": publicAceSrcMinModeIniJs, - "public/ace/src-min/mode-io.js": publicAceSrcMinModeIoJs, - "public/ace/src-min/mode-jack.js": publicAceSrcMinModeJackJs, - "public/ace/src-min/mode-jade.js": publicAceSrcMinModeJadeJs, - "public/ace/src-min/mode-java.js": publicAceSrcMinModeJavaJs, - "public/ace/src-min/mode-javascript.js": publicAceSrcMinModeJavascriptJs, - "public/ace/src-min/mode-json.js": publicAceSrcMinModeJsonJs, - "public/ace/src-min/mode-jsoniq.js": publicAceSrcMinModeJsoniqJs, - "public/ace/src-min/mode-jsp.js": publicAceSrcMinModeJspJs, - "public/ace/src-min/mode-jsx.js": publicAceSrcMinModeJsxJs, - "public/ace/src-min/mode-julia.js": publicAceSrcMinModeJuliaJs, - "public/ace/src-min/mode-kotlin.js": publicAceSrcMinModeKotlinJs, - "public/ace/src-min/mode-latex.js": publicAceSrcMinModeLatexJs, - "public/ace/src-min/mode-lean.js": publicAceSrcMinModeLeanJs, - "public/ace/src-min/mode-less.js": publicAceSrcMinModeLessJs, - "public/ace/src-min/mode-liquid.js": publicAceSrcMinModeLiquidJs, - "public/ace/src-min/mode-lisp.js": publicAceSrcMinModeLispJs, - "public/ace/src-min/mode-live_script.js": publicAceSrcMinModeLive_scriptJs, - "public/ace/src-min/mode-livescript.js": publicAceSrcMinModeLivescriptJs, - "public/ace/src-min/mode-logiql.js": publicAceSrcMinModeLogiqlJs, - "public/ace/src-min/mode-lsl.js": publicAceSrcMinModeLslJs, - "public/ace/src-min/mode-lua.js": publicAceSrcMinModeLuaJs, - "public/ace/src-min/mode-luapage.js": publicAceSrcMinModeLuapageJs, - "public/ace/src-min/mode-lucene.js": publicAceSrcMinModeLuceneJs, - "public/ace/src-min/mode-makefile.js": publicAceSrcMinModeMakefileJs, - "public/ace/src-min/mode-markdown.js": publicAceSrcMinModeMarkdownJs, - "public/ace/src-min/mode-mask.js": publicAceSrcMinModeMaskJs, - "public/ace/src-min/mode-matlab.js": publicAceSrcMinModeMatlabJs, - "public/ace/src-min/mode-maze.js": publicAceSrcMinModeMazeJs, - "public/ace/src-min/mode-mel.js": publicAceSrcMinModeMelJs, - "public/ace/src-min/mode-mips_assembler.js": publicAceSrcMinModeMips_assemblerJs, - "public/ace/src-min/mode-mipsassembler.js": publicAceSrcMinModeMipsassemblerJs, - "public/ace/src-min/mode-mushcode.js": publicAceSrcMinModeMushcodeJs, - "public/ace/src-min/mode-mysql.js": publicAceSrcMinModeMysqlJs, - "public/ace/src-min/mode-nix.js": publicAceSrcMinModeNixJs, - "public/ace/src-min/mode-nsis.js": publicAceSrcMinModeNsisJs, - "public/ace/src-min/mode-objectivec.js": publicAceSrcMinModeObjectivecJs, - "public/ace/src-min/mode-ocaml.js": publicAceSrcMinModeOcamlJs, - "public/ace/src-min/mode-pascal.js": publicAceSrcMinModePascalJs, - "public/ace/src-min/mode-perl.js": publicAceSrcMinModePerlJs, - "public/ace/src-min/mode-pgsql.js": publicAceSrcMinModePgsqlJs, - "public/ace/src-min/mode-php.js": publicAceSrcMinModePhpJs, - "public/ace/src-min/mode-plain_text.js": publicAceSrcMinModePlain_textJs, - "public/ace/src-min/mode-powershell.js": publicAceSrcMinModePowershellJs, - "public/ace/src-min/mode-praat.js": publicAceSrcMinModePraatJs, - "public/ace/src-min/mode-prolog.js": publicAceSrcMinModePrologJs, - "public/ace/src-min/mode-properties.js": publicAceSrcMinModePropertiesJs, - "public/ace/src-min/mode-protobuf.js": publicAceSrcMinModeProtobufJs, - "public/ace/src-min/mode-python.js": publicAceSrcMinModePythonJs, - "public/ace/src-min/mode-r.js": publicAceSrcMinModeRJs, - "public/ace/src-min/mode-razor.js": publicAceSrcMinModeRazorJs, - "public/ace/src-min/mode-rdoc.js": publicAceSrcMinModeRdocJs, - "public/ace/src-min/mode-rhtml.js": publicAceSrcMinModeRhtmlJs, - "public/ace/src-min/mode-rst.js": publicAceSrcMinModeRstJs, - "public/ace/src-min/mode-ruby.js": publicAceSrcMinModeRubyJs, - "public/ace/src-min/mode-rust.js": publicAceSrcMinModeRustJs, - "public/ace/src-min/mode-sass.js": publicAceSrcMinModeSassJs, - "public/ace/src-min/mode-scad.js": publicAceSrcMinModeScadJs, - "public/ace/src-min/mode-scala.js": publicAceSrcMinModeScalaJs, - "public/ace/src-min/mode-scheme.js": publicAceSrcMinModeSchemeJs, - "public/ace/src-min/mode-scss.js": publicAceSrcMinModeScssJs, - "public/ace/src-min/mode-sh.js": publicAceSrcMinModeShJs, - "public/ace/src-min/mode-sjs.js": publicAceSrcMinModeSjsJs, - "public/ace/src-min/mode-smarty.js": publicAceSrcMinModeSmartyJs, - "public/ace/src-min/mode-snippets.js": publicAceSrcMinModeSnippetsJs, - "public/ace/src-min/mode-soy_template.js": publicAceSrcMinModeSoy_templateJs, - "public/ace/src-min/mode-space.js": publicAceSrcMinModeSpaceJs, - "public/ace/src-min/mode-sql.js": publicAceSrcMinModeSqlJs, - "public/ace/src-min/mode-sqlserver.js": publicAceSrcMinModeSqlserverJs, - "public/ace/src-min/mode-stylus.js": publicAceSrcMinModeStylusJs, - "public/ace/src-min/mode-svg.js": publicAceSrcMinModeSvgJs, - "public/ace/src-min/mode-swift.js": publicAceSrcMinModeSwiftJs, - "public/ace/src-min/mode-swig.js": publicAceSrcMinModeSwigJs, - "public/ace/src-min/mode-tcl.js": publicAceSrcMinModeTclJs, - "public/ace/src-min/mode-tex.js": publicAceSrcMinModeTexJs, - "public/ace/src-min/mode-text.js": publicAceSrcMinModeTextJs, - "public/ace/src-min/mode-textile.js": publicAceSrcMinModeTextileJs, - "public/ace/src-min/mode-toml.js": publicAceSrcMinModeTomlJs, - "public/ace/src-min/mode-tsx.js": publicAceSrcMinModeTsxJs, - "public/ace/src-min/mode-twig.js": publicAceSrcMinModeTwigJs, - "public/ace/src-min/mode-typescript.js": publicAceSrcMinModeTypescriptJs, - "public/ace/src-min/mode-vala.js": publicAceSrcMinModeValaJs, - "public/ace/src-min/mode-vbscript.js": publicAceSrcMinModeVbscriptJs, - "public/ace/src-min/mode-velocity.js": publicAceSrcMinModeVelocityJs, - "public/ace/src-min/mode-verilog.js": publicAceSrcMinModeVerilogJs, - "public/ace/src-min/mode-vhdl.js": publicAceSrcMinModeVhdlJs, - "public/ace/src-min/mode-wollok.js": publicAceSrcMinModeWollokJs, - "public/ace/src-min/mode-xml.js": publicAceSrcMinModeXmlJs, - "public/ace/src-min/mode-xquery.js": publicAceSrcMinModeXqueryJs, - "public/ace/src-min/mode-yaml.js": publicAceSrcMinModeYamlJs, - "public/ace/src-min/snippets/abap.js": publicAceSrcMinSnippetsAbapJs, - "public/ace/src-min/snippets/abc.js": publicAceSrcMinSnippetsAbcJs, - "public/ace/src-min/snippets/actionscript.js": publicAceSrcMinSnippetsActionscriptJs, - "public/ace/src-min/snippets/ada.js": publicAceSrcMinSnippetsAdaJs, - "public/ace/src-min/snippets/apache_conf.js": publicAceSrcMinSnippetsApache_confJs, - "public/ace/src-min/snippets/applescript.js": publicAceSrcMinSnippetsApplescriptJs, - "public/ace/src-min/snippets/asciidoc.js": publicAceSrcMinSnippetsAsciidocJs, - "public/ace/src-min/snippets/assembly_x86.js": publicAceSrcMinSnippetsAssembly_x86Js, - "public/ace/src-min/snippets/autohotkey.js": publicAceSrcMinSnippetsAutohotkeyJs, - "public/ace/src-min/snippets/batchfile.js": publicAceSrcMinSnippetsBatchfileJs, - "public/ace/src-min/snippets/bro.js": publicAceSrcMinSnippetsBroJs, - "public/ace/src-min/snippets/c9search.js": publicAceSrcMinSnippetsC9searchJs, - "public/ace/src-min/snippets/c_cpp.js": publicAceSrcMinSnippetsC_cppJs, - "public/ace/src-min/snippets/cirru.js": publicAceSrcMinSnippetsCirruJs, - "public/ace/src-min/snippets/clojure.js": publicAceSrcMinSnippetsClojureJs, - "public/ace/src-min/snippets/cobol.js": publicAceSrcMinSnippetsCobolJs, - "public/ace/src-min/snippets/coffee.js": publicAceSrcMinSnippetsCoffeeJs, - "public/ace/src-min/snippets/coldfusion.js": publicAceSrcMinSnippetsColdfusionJs, - "public/ace/src-min/snippets/csharp.js": publicAceSrcMinSnippetsCsharpJs, - "public/ace/src-min/snippets/css.js": publicAceSrcMinSnippetsCssJs, - "public/ace/src-min/snippets/curly.js": publicAceSrcMinSnippetsCurlyJs, - "public/ace/src-min/snippets/d.js": publicAceSrcMinSnippetsDJs, - "public/ace/src-min/snippets/dart.js": publicAceSrcMinSnippetsDartJs, - "public/ace/src-min/snippets/diff.js": publicAceSrcMinSnippetsDiffJs, - "public/ace/src-min/snippets/django.js": publicAceSrcMinSnippetsDjangoJs, - "public/ace/src-min/snippets/dockerfile.js": publicAceSrcMinSnippetsDockerfileJs, - "public/ace/src-min/snippets/dot.js": publicAceSrcMinSnippetsDotJs, - "public/ace/src-min/snippets/drools.js": publicAceSrcMinSnippetsDroolsJs, - "public/ace/src-min/snippets/eiffel.js": publicAceSrcMinSnippetsEiffelJs, - "public/ace/src-min/snippets/ejs.js": publicAceSrcMinSnippetsEjsJs, - "public/ace/src-min/snippets/elixir.js": publicAceSrcMinSnippetsElixirJs, - "public/ace/src-min/snippets/elm.js": publicAceSrcMinSnippetsElmJs, - "public/ace/src-min/snippets/erlang.js": publicAceSrcMinSnippetsErlangJs, - "public/ace/src-min/snippets/forth.js": publicAceSrcMinSnippetsForthJs, - "public/ace/src-min/snippets/fortran.js": publicAceSrcMinSnippetsFortranJs, - "public/ace/src-min/snippets/ftl.js": publicAceSrcMinSnippetsFtlJs, - "public/ace/src-min/snippets/gcode.js": publicAceSrcMinSnippetsGcodeJs, - "public/ace/src-min/snippets/gherkin.js": publicAceSrcMinSnippetsGherkinJs, - "public/ace/src-min/snippets/gitignore.js": publicAceSrcMinSnippetsGitignoreJs, - "public/ace/src-min/snippets/glsl.js": publicAceSrcMinSnippetsGlslJs, - "public/ace/src-min/snippets/gobstones.js": publicAceSrcMinSnippetsGobstonesJs, - "public/ace/src-min/snippets/golang.js": publicAceSrcMinSnippetsGolangJs, - "public/ace/src-min/snippets/groovy.js": publicAceSrcMinSnippetsGroovyJs, - "public/ace/src-min/snippets/haml.js": publicAceSrcMinSnippetsHamlJs, - "public/ace/src-min/snippets/handlebars.js": publicAceSrcMinSnippetsHandlebarsJs, - "public/ace/src-min/snippets/haskell.js": publicAceSrcMinSnippetsHaskellJs, - "public/ace/src-min/snippets/haskell_cabal.js": publicAceSrcMinSnippetsHaskell_cabalJs, - "public/ace/src-min/snippets/haxe.js": publicAceSrcMinSnippetsHaxeJs, - "public/ace/src-min/snippets/hjson.js": publicAceSrcMinSnippetsHjsonJs, - "public/ace/src-min/snippets/html.js": publicAceSrcMinSnippetsHtmlJs, - "public/ace/src-min/snippets/html_elixir.js": publicAceSrcMinSnippetsHtml_elixirJs, - "public/ace/src-min/snippets/html_ruby.js": publicAceSrcMinSnippetsHtml_rubyJs, - "public/ace/src-min/snippets/ini.js": publicAceSrcMinSnippetsIniJs, - "public/ace/src-min/snippets/io.js": publicAceSrcMinSnippetsIoJs, - "public/ace/src-min/snippets/jack.js": publicAceSrcMinSnippetsJackJs, - "public/ace/src-min/snippets/jade.js": publicAceSrcMinSnippetsJadeJs, - "public/ace/src-min/snippets/java.js": publicAceSrcMinSnippetsJavaJs, - "public/ace/src-min/snippets/javascript.js": publicAceSrcMinSnippetsJavascriptJs, - "public/ace/src-min/snippets/json.js": publicAceSrcMinSnippetsJsonJs, - "public/ace/src-min/snippets/jsoniq.js": publicAceSrcMinSnippetsJsoniqJs, - "public/ace/src-min/snippets/jsp.js": publicAceSrcMinSnippetsJspJs, - "public/ace/src-min/snippets/jsx.js": publicAceSrcMinSnippetsJsxJs, - "public/ace/src-min/snippets/julia.js": publicAceSrcMinSnippetsJuliaJs, - "public/ace/src-min/snippets/kotlin.js": publicAceSrcMinSnippetsKotlinJs, - "public/ace/src-min/snippets/latex.js": publicAceSrcMinSnippetsLatexJs, - "public/ace/src-min/snippets/lean.js": publicAceSrcMinSnippetsLeanJs, - "public/ace/src-min/snippets/less.js": publicAceSrcMinSnippetsLessJs, - "public/ace/src-min/snippets/liquid.js": publicAceSrcMinSnippetsLiquidJs, - "public/ace/src-min/snippets/lisp.js": publicAceSrcMinSnippetsLispJs, - "public/ace/src-min/snippets/live_script.js": publicAceSrcMinSnippetsLive_scriptJs, - "public/ace/src-min/snippets/livescript.js": publicAceSrcMinSnippetsLivescriptJs, - "public/ace/src-min/snippets/logiql.js": publicAceSrcMinSnippetsLogiqlJs, - "public/ace/src-min/snippets/lsl.js": publicAceSrcMinSnippetsLslJs, - "public/ace/src-min/snippets/lua.js": publicAceSrcMinSnippetsLuaJs, - "public/ace/src-min/snippets/luapage.js": publicAceSrcMinSnippetsLuapageJs, - "public/ace/src-min/snippets/lucene.js": publicAceSrcMinSnippetsLuceneJs, - "public/ace/src-min/snippets/makefile.js": publicAceSrcMinSnippetsMakefileJs, - "public/ace/src-min/snippets/markdown.js": publicAceSrcMinSnippetsMarkdownJs, - "public/ace/src-min/snippets/mask.js": publicAceSrcMinSnippetsMaskJs, - "public/ace/src-min/snippets/matlab.js": publicAceSrcMinSnippetsMatlabJs, - "public/ace/src-min/snippets/maze.js": publicAceSrcMinSnippetsMazeJs, - "public/ace/src-min/snippets/mel.js": publicAceSrcMinSnippetsMelJs, - "public/ace/src-min/snippets/mips_assembler.js": publicAceSrcMinSnippetsMips_assemblerJs, - "public/ace/src-min/snippets/mipsassembler.js": publicAceSrcMinSnippetsMipsassemblerJs, - "public/ace/src-min/snippets/mushcode.js": publicAceSrcMinSnippetsMushcodeJs, - "public/ace/src-min/snippets/mysql.js": publicAceSrcMinSnippetsMysqlJs, - "public/ace/src-min/snippets/nix.js": publicAceSrcMinSnippetsNixJs, - "public/ace/src-min/snippets/nsis.js": publicAceSrcMinSnippetsNsisJs, - "public/ace/src-min/snippets/objectivec.js": publicAceSrcMinSnippetsObjectivecJs, - "public/ace/src-min/snippets/ocaml.js": publicAceSrcMinSnippetsOcamlJs, - "public/ace/src-min/snippets/pascal.js": publicAceSrcMinSnippetsPascalJs, - "public/ace/src-min/snippets/perl.js": publicAceSrcMinSnippetsPerlJs, - "public/ace/src-min/snippets/pgsql.js": publicAceSrcMinSnippetsPgsqlJs, - "public/ace/src-min/snippets/php.js": publicAceSrcMinSnippetsPhpJs, - "public/ace/src-min/snippets/plain_text.js": publicAceSrcMinSnippetsPlain_textJs, - "public/ace/src-min/snippets/powershell.js": publicAceSrcMinSnippetsPowershellJs, - "public/ace/src-min/snippets/praat.js": publicAceSrcMinSnippetsPraatJs, - "public/ace/src-min/snippets/prolog.js": publicAceSrcMinSnippetsPrologJs, - "public/ace/src-min/snippets/properties.js": publicAceSrcMinSnippetsPropertiesJs, - "public/ace/src-min/snippets/protobuf.js": publicAceSrcMinSnippetsProtobufJs, - "public/ace/src-min/snippets/python.js": publicAceSrcMinSnippetsPythonJs, - "public/ace/src-min/snippets/r.js": publicAceSrcMinSnippetsRJs, - "public/ace/src-min/snippets/razor.js": publicAceSrcMinSnippetsRazorJs, - "public/ace/src-min/snippets/rdoc.js": publicAceSrcMinSnippetsRdocJs, - "public/ace/src-min/snippets/rhtml.js": publicAceSrcMinSnippetsRhtmlJs, - "public/ace/src-min/snippets/rst.js": publicAceSrcMinSnippetsRstJs, - "public/ace/src-min/snippets/ruby.js": publicAceSrcMinSnippetsRubyJs, - "public/ace/src-min/snippets/rust.js": publicAceSrcMinSnippetsRustJs, - "public/ace/src-min/snippets/sass.js": publicAceSrcMinSnippetsSassJs, - "public/ace/src-min/snippets/scad.js": publicAceSrcMinSnippetsScadJs, - "public/ace/src-min/snippets/scala.js": publicAceSrcMinSnippetsScalaJs, - "public/ace/src-min/snippets/scheme.js": publicAceSrcMinSnippetsSchemeJs, - "public/ace/src-min/snippets/scss.js": publicAceSrcMinSnippetsScssJs, - "public/ace/src-min/snippets/sh.js": publicAceSrcMinSnippetsShJs, - "public/ace/src-min/snippets/sjs.js": publicAceSrcMinSnippetsSjsJs, - "public/ace/src-min/snippets/smarty.js": publicAceSrcMinSnippetsSmartyJs, - "public/ace/src-min/snippets/snippets.js": publicAceSrcMinSnippetsSnippetsJs, - "public/ace/src-min/snippets/soy_template.js": publicAceSrcMinSnippetsSoy_templateJs, - "public/ace/src-min/snippets/space.js": publicAceSrcMinSnippetsSpaceJs, - "public/ace/src-min/snippets/sql.js": publicAceSrcMinSnippetsSqlJs, - "public/ace/src-min/snippets/sqlserver.js": publicAceSrcMinSnippetsSqlserverJs, - "public/ace/src-min/snippets/stylus.js": publicAceSrcMinSnippetsStylusJs, - "public/ace/src-min/snippets/svg.js": publicAceSrcMinSnippetsSvgJs, - "public/ace/src-min/snippets/swift.js": publicAceSrcMinSnippetsSwiftJs, - "public/ace/src-min/snippets/swig.js": publicAceSrcMinSnippetsSwigJs, - "public/ace/src-min/snippets/tcl.js": publicAceSrcMinSnippetsTclJs, - "public/ace/src-min/snippets/tex.js": publicAceSrcMinSnippetsTexJs, - "public/ace/src-min/snippets/text.js": publicAceSrcMinSnippetsTextJs, - "public/ace/src-min/snippets/textile.js": publicAceSrcMinSnippetsTextileJs, - "public/ace/src-min/snippets/toml.js": publicAceSrcMinSnippetsTomlJs, - "public/ace/src-min/snippets/tsx.js": publicAceSrcMinSnippetsTsxJs, - "public/ace/src-min/snippets/twig.js": publicAceSrcMinSnippetsTwigJs, - "public/ace/src-min/snippets/typescript.js": publicAceSrcMinSnippetsTypescriptJs, - "public/ace/src-min/snippets/vala.js": publicAceSrcMinSnippetsValaJs, - "public/ace/src-min/snippets/vbscript.js": publicAceSrcMinSnippetsVbscriptJs, - "public/ace/src-min/snippets/velocity.js": publicAceSrcMinSnippetsVelocityJs, - "public/ace/src-min/snippets/verilog.js": publicAceSrcMinSnippetsVerilogJs, - "public/ace/src-min/snippets/vhdl.js": publicAceSrcMinSnippetsVhdlJs, - "public/ace/src-min/snippets/wollok.js": publicAceSrcMinSnippetsWollokJs, - "public/ace/src-min/snippets/xml.js": publicAceSrcMinSnippetsXmlJs, - "public/ace/src-min/snippets/xquery.js": publicAceSrcMinSnippetsXqueryJs, - "public/ace/src-min/snippets/yaml.js": publicAceSrcMinSnippetsYamlJs, - "public/ace/src-min/theme-github.js": publicAceSrcMinThemeGithubJs, - "public/ace/src-min/worker-coffee.js": publicAceSrcMinWorkerCoffeeJs, - "public/ace/src-min/worker-css.js": publicAceSrcMinWorkerCssJs, - "public/ace/src-min/worker-html.js": publicAceSrcMinWorkerHtmlJs, - "public/ace/src-min/worker-javascript.js": publicAceSrcMinWorkerJavascriptJs, - "public/ace/src-min/worker-json.js": publicAceSrcMinWorkerJsonJs, - "public/ace/src-min/worker-lua.js": publicAceSrcMinWorkerLuaJs, - "public/ace/src-min/worker-php.js": publicAceSrcMinWorkerPhpJs, - "public/ace/src-min/worker-xml.js": publicAceSrcMinWorkerXmlJs, - "public/ace/src-min/worker-xquery.js": publicAceSrcMinWorkerXqueryJs, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("notexist") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - cannonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(cannonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} -var _bintree = &bintree{nil, map[string]*bintree{ - "public": &bintree{nil, map[string]*bintree{ - "ace": &bintree{nil, map[string]*bintree{ - "src-min": &bintree{nil, map[string]*bintree{ - "ace.js": &bintree{publicAceSrcMinAceJs, map[string]*bintree{}}, - "ext-beautify.js": &bintree{publicAceSrcMinExtBeautifyJs, map[string]*bintree{}}, - "ext-chromevox.js": &bintree{publicAceSrcMinExtChromevoxJs, map[string]*bintree{}}, - "ext-elastic_tabstops_lite.js": &bintree{publicAceSrcMinExtElastic_tabstops_liteJs, map[string]*bintree{}}, - "ext-emmet.js": &bintree{publicAceSrcMinExtEmmetJs, map[string]*bintree{}}, - "ext-error_marker.js": &bintree{publicAceSrcMinExtError_markerJs, map[string]*bintree{}}, - "ext-keybinding_menu.js": &bintree{publicAceSrcMinExtKeybinding_menuJs, map[string]*bintree{}}, - "ext-language_tools.js": &bintree{publicAceSrcMinExtLanguage_toolsJs, map[string]*bintree{}}, - "ext-linking.js": &bintree{publicAceSrcMinExtLinkingJs, map[string]*bintree{}}, - "ext-modelist.js": &bintree{publicAceSrcMinExtModelistJs, map[string]*bintree{}}, - "ext-old_ie.js": &bintree{publicAceSrcMinExtOld_ieJs, map[string]*bintree{}}, - "ext-searchbox.js": &bintree{publicAceSrcMinExtSearchboxJs, map[string]*bintree{}}, - "ext-settings_menu.js": &bintree{publicAceSrcMinExtSettings_menuJs, map[string]*bintree{}}, - "ext-spellcheck.js": &bintree{publicAceSrcMinExtSpellcheckJs, map[string]*bintree{}}, - "ext-split.js": &bintree{publicAceSrcMinExtSplitJs, map[string]*bintree{}}, - "ext-static_highlight.js": &bintree{publicAceSrcMinExtStatic_highlightJs, map[string]*bintree{}}, - "ext-statusbar.js": &bintree{publicAceSrcMinExtStatusbarJs, map[string]*bintree{}}, - "ext-textarea.js": &bintree{publicAceSrcMinExtTextareaJs, map[string]*bintree{}}, - "ext-themelist.js": &bintree{publicAceSrcMinExtThemelistJs, map[string]*bintree{}}, - "ext-whitespace.js": &bintree{publicAceSrcMinExtWhitespaceJs, map[string]*bintree{}}, - "keybinding-emacs.js": &bintree{publicAceSrcMinKeybindingEmacsJs, map[string]*bintree{}}, - "keybinding-vim.js": &bintree{publicAceSrcMinKeybindingVimJs, map[string]*bintree{}}, - "mode-abap.js": &bintree{publicAceSrcMinModeAbapJs, map[string]*bintree{}}, - "mode-abc.js": &bintree{publicAceSrcMinModeAbcJs, map[string]*bintree{}}, - "mode-actionscript.js": &bintree{publicAceSrcMinModeActionscriptJs, map[string]*bintree{}}, - "mode-ada.js": &bintree{publicAceSrcMinModeAdaJs, map[string]*bintree{}}, - "mode-apache_conf.js": &bintree{publicAceSrcMinModeApache_confJs, map[string]*bintree{}}, - "mode-applescript.js": &bintree{publicAceSrcMinModeApplescriptJs, map[string]*bintree{}}, - "mode-asciidoc.js": &bintree{publicAceSrcMinModeAsciidocJs, map[string]*bintree{}}, - "mode-assembly_x86.js": &bintree{publicAceSrcMinModeAssembly_x86Js, map[string]*bintree{}}, - "mode-autohotkey.js": &bintree{publicAceSrcMinModeAutohotkeyJs, map[string]*bintree{}}, - "mode-batchfile.js": &bintree{publicAceSrcMinModeBatchfileJs, map[string]*bintree{}}, - "mode-bro.js": &bintree{publicAceSrcMinModeBroJs, map[string]*bintree{}}, - "mode-c9search.js": &bintree{publicAceSrcMinModeC9searchJs, map[string]*bintree{}}, - "mode-c_cpp.js": &bintree{publicAceSrcMinModeC_cppJs, map[string]*bintree{}}, - "mode-cirru.js": &bintree{publicAceSrcMinModeCirruJs, map[string]*bintree{}}, - "mode-clojure.js": &bintree{publicAceSrcMinModeClojureJs, map[string]*bintree{}}, - "mode-cobol.js": &bintree{publicAceSrcMinModeCobolJs, map[string]*bintree{}}, - "mode-coffee.js": &bintree{publicAceSrcMinModeCoffeeJs, map[string]*bintree{}}, - "mode-coldfusion.js": &bintree{publicAceSrcMinModeColdfusionJs, map[string]*bintree{}}, - "mode-csharp.js": &bintree{publicAceSrcMinModeCsharpJs, map[string]*bintree{}}, - "mode-css.js": &bintree{publicAceSrcMinModeCssJs, map[string]*bintree{}}, - "mode-curly.js": &bintree{publicAceSrcMinModeCurlyJs, map[string]*bintree{}}, - "mode-d.js": &bintree{publicAceSrcMinModeDJs, map[string]*bintree{}}, - "mode-dart.js": &bintree{publicAceSrcMinModeDartJs, map[string]*bintree{}}, - "mode-diff.js": &bintree{publicAceSrcMinModeDiffJs, map[string]*bintree{}}, - "mode-django.js": &bintree{publicAceSrcMinModeDjangoJs, map[string]*bintree{}}, - "mode-dockerfile.js": &bintree{publicAceSrcMinModeDockerfileJs, map[string]*bintree{}}, - "mode-dot.js": &bintree{publicAceSrcMinModeDotJs, map[string]*bintree{}}, - "mode-drools.js": &bintree{publicAceSrcMinModeDroolsJs, map[string]*bintree{}}, - "mode-eiffel.js": &bintree{publicAceSrcMinModeEiffelJs, map[string]*bintree{}}, - "mode-ejs.js": &bintree{publicAceSrcMinModeEjsJs, map[string]*bintree{}}, - "mode-elixir.js": &bintree{publicAceSrcMinModeElixirJs, map[string]*bintree{}}, - "mode-elm.js": &bintree{publicAceSrcMinModeElmJs, map[string]*bintree{}}, - "mode-erlang.js": &bintree{publicAceSrcMinModeErlangJs, map[string]*bintree{}}, - "mode-forth.js": &bintree{publicAceSrcMinModeForthJs, map[string]*bintree{}}, - "mode-fortran.js": &bintree{publicAceSrcMinModeFortranJs, map[string]*bintree{}}, - "mode-ftl.js": &bintree{publicAceSrcMinModeFtlJs, map[string]*bintree{}}, - "mode-gcode.js": &bintree{publicAceSrcMinModeGcodeJs, map[string]*bintree{}}, - "mode-gherkin.js": &bintree{publicAceSrcMinModeGherkinJs, map[string]*bintree{}}, - "mode-gitignore.js": &bintree{publicAceSrcMinModeGitignoreJs, map[string]*bintree{}}, - "mode-glsl.js": &bintree{publicAceSrcMinModeGlslJs, map[string]*bintree{}}, - "mode-gobstones.js": &bintree{publicAceSrcMinModeGobstonesJs, map[string]*bintree{}}, - "mode-golang.js": &bintree{publicAceSrcMinModeGolangJs, map[string]*bintree{}}, - "mode-groovy.js": &bintree{publicAceSrcMinModeGroovyJs, map[string]*bintree{}}, - "mode-haml.js": &bintree{publicAceSrcMinModeHamlJs, map[string]*bintree{}}, - "mode-handlebars.js": &bintree{publicAceSrcMinModeHandlebarsJs, map[string]*bintree{}}, - "mode-haskell.js": &bintree{publicAceSrcMinModeHaskellJs, map[string]*bintree{}}, - "mode-haskell_cabal.js": &bintree{publicAceSrcMinModeHaskell_cabalJs, map[string]*bintree{}}, - "mode-haxe.js": &bintree{publicAceSrcMinModeHaxeJs, map[string]*bintree{}}, - "mode-hjson.js": &bintree{publicAceSrcMinModeHjsonJs, map[string]*bintree{}}, - "mode-html.js": &bintree{publicAceSrcMinModeHtmlJs, map[string]*bintree{}}, - "mode-html_elixir.js": &bintree{publicAceSrcMinModeHtml_elixirJs, map[string]*bintree{}}, - "mode-html_ruby.js": &bintree{publicAceSrcMinModeHtml_rubyJs, map[string]*bintree{}}, - "mode-ini.js": &bintree{publicAceSrcMinModeIniJs, map[string]*bintree{}}, - "mode-io.js": &bintree{publicAceSrcMinModeIoJs, map[string]*bintree{}}, - "mode-jack.js": &bintree{publicAceSrcMinModeJackJs, map[string]*bintree{}}, - "mode-jade.js": &bintree{publicAceSrcMinModeJadeJs, map[string]*bintree{}}, - "mode-java.js": &bintree{publicAceSrcMinModeJavaJs, map[string]*bintree{}}, - "mode-javascript.js": &bintree{publicAceSrcMinModeJavascriptJs, map[string]*bintree{}}, - "mode-json.js": &bintree{publicAceSrcMinModeJsonJs, map[string]*bintree{}}, - "mode-jsoniq.js": &bintree{publicAceSrcMinModeJsoniqJs, map[string]*bintree{}}, - "mode-jsp.js": &bintree{publicAceSrcMinModeJspJs, map[string]*bintree{}}, - "mode-jsx.js": &bintree{publicAceSrcMinModeJsxJs, map[string]*bintree{}}, - "mode-julia.js": &bintree{publicAceSrcMinModeJuliaJs, map[string]*bintree{}}, - "mode-kotlin.js": &bintree{publicAceSrcMinModeKotlinJs, map[string]*bintree{}}, - "mode-latex.js": &bintree{publicAceSrcMinModeLatexJs, map[string]*bintree{}}, - "mode-lean.js": &bintree{publicAceSrcMinModeLeanJs, map[string]*bintree{}}, - "mode-less.js": &bintree{publicAceSrcMinModeLessJs, map[string]*bintree{}}, - "mode-liquid.js": &bintree{publicAceSrcMinModeLiquidJs, map[string]*bintree{}}, - "mode-lisp.js": &bintree{publicAceSrcMinModeLispJs, map[string]*bintree{}}, - "mode-live_script.js": &bintree{publicAceSrcMinModeLive_scriptJs, map[string]*bintree{}}, - "mode-livescript.js": &bintree{publicAceSrcMinModeLivescriptJs, map[string]*bintree{}}, - "mode-logiql.js": &bintree{publicAceSrcMinModeLogiqlJs, map[string]*bintree{}}, - "mode-lsl.js": &bintree{publicAceSrcMinModeLslJs, map[string]*bintree{}}, - "mode-lua.js": &bintree{publicAceSrcMinModeLuaJs, map[string]*bintree{}}, - "mode-luapage.js": &bintree{publicAceSrcMinModeLuapageJs, map[string]*bintree{}}, - "mode-lucene.js": &bintree{publicAceSrcMinModeLuceneJs, map[string]*bintree{}}, - "mode-makefile.js": &bintree{publicAceSrcMinModeMakefileJs, map[string]*bintree{}}, - "mode-markdown.js": &bintree{publicAceSrcMinModeMarkdownJs, map[string]*bintree{}}, - "mode-mask.js": &bintree{publicAceSrcMinModeMaskJs, map[string]*bintree{}}, - "mode-matlab.js": &bintree{publicAceSrcMinModeMatlabJs, map[string]*bintree{}}, - "mode-maze.js": &bintree{publicAceSrcMinModeMazeJs, map[string]*bintree{}}, - "mode-mel.js": &bintree{publicAceSrcMinModeMelJs, map[string]*bintree{}}, - "mode-mips_assembler.js": &bintree{publicAceSrcMinModeMips_assemblerJs, map[string]*bintree{}}, - "mode-mipsassembler.js": &bintree{publicAceSrcMinModeMipsassemblerJs, map[string]*bintree{}}, - "mode-mushcode.js": &bintree{publicAceSrcMinModeMushcodeJs, map[string]*bintree{}}, - "mode-mysql.js": &bintree{publicAceSrcMinModeMysqlJs, map[string]*bintree{}}, - "mode-nix.js": &bintree{publicAceSrcMinModeNixJs, map[string]*bintree{}}, - "mode-nsis.js": &bintree{publicAceSrcMinModeNsisJs, map[string]*bintree{}}, - "mode-objectivec.js": &bintree{publicAceSrcMinModeObjectivecJs, map[string]*bintree{}}, - "mode-ocaml.js": &bintree{publicAceSrcMinModeOcamlJs, map[string]*bintree{}}, - "mode-pascal.js": &bintree{publicAceSrcMinModePascalJs, map[string]*bintree{}}, - "mode-perl.js": &bintree{publicAceSrcMinModePerlJs, map[string]*bintree{}}, - "mode-pgsql.js": &bintree{publicAceSrcMinModePgsqlJs, map[string]*bintree{}}, - "mode-php.js": &bintree{publicAceSrcMinModePhpJs, map[string]*bintree{}}, - "mode-plain_text.js": &bintree{publicAceSrcMinModePlain_textJs, map[string]*bintree{}}, - "mode-powershell.js": &bintree{publicAceSrcMinModePowershellJs, map[string]*bintree{}}, - "mode-praat.js": &bintree{publicAceSrcMinModePraatJs, map[string]*bintree{}}, - "mode-prolog.js": &bintree{publicAceSrcMinModePrologJs, map[string]*bintree{}}, - "mode-properties.js": &bintree{publicAceSrcMinModePropertiesJs, map[string]*bintree{}}, - "mode-protobuf.js": &bintree{publicAceSrcMinModeProtobufJs, map[string]*bintree{}}, - "mode-python.js": &bintree{publicAceSrcMinModePythonJs, map[string]*bintree{}}, - "mode-r.js": &bintree{publicAceSrcMinModeRJs, map[string]*bintree{}}, - "mode-razor.js": &bintree{publicAceSrcMinModeRazorJs, map[string]*bintree{}}, - "mode-rdoc.js": &bintree{publicAceSrcMinModeRdocJs, map[string]*bintree{}}, - "mode-rhtml.js": &bintree{publicAceSrcMinModeRhtmlJs, map[string]*bintree{}}, - "mode-rst.js": &bintree{publicAceSrcMinModeRstJs, map[string]*bintree{}}, - "mode-ruby.js": &bintree{publicAceSrcMinModeRubyJs, map[string]*bintree{}}, - "mode-rust.js": &bintree{publicAceSrcMinModeRustJs, map[string]*bintree{}}, - "mode-sass.js": &bintree{publicAceSrcMinModeSassJs, map[string]*bintree{}}, - "mode-scad.js": &bintree{publicAceSrcMinModeScadJs, map[string]*bintree{}}, - "mode-scala.js": &bintree{publicAceSrcMinModeScalaJs, map[string]*bintree{}}, - "mode-scheme.js": &bintree{publicAceSrcMinModeSchemeJs, map[string]*bintree{}}, - "mode-scss.js": &bintree{publicAceSrcMinModeScssJs, map[string]*bintree{}}, - "mode-sh.js": &bintree{publicAceSrcMinModeShJs, map[string]*bintree{}}, - "mode-sjs.js": &bintree{publicAceSrcMinModeSjsJs, map[string]*bintree{}}, - "mode-smarty.js": &bintree{publicAceSrcMinModeSmartyJs, map[string]*bintree{}}, - "mode-snippets.js": &bintree{publicAceSrcMinModeSnippetsJs, map[string]*bintree{}}, - "mode-soy_template.js": &bintree{publicAceSrcMinModeSoy_templateJs, map[string]*bintree{}}, - "mode-space.js": &bintree{publicAceSrcMinModeSpaceJs, map[string]*bintree{}}, - "mode-sql.js": &bintree{publicAceSrcMinModeSqlJs, map[string]*bintree{}}, - "mode-sqlserver.js": &bintree{publicAceSrcMinModeSqlserverJs, map[string]*bintree{}}, - "mode-stylus.js": &bintree{publicAceSrcMinModeStylusJs, map[string]*bintree{}}, - "mode-svg.js": &bintree{publicAceSrcMinModeSvgJs, map[string]*bintree{}}, - "mode-swift.js": &bintree{publicAceSrcMinModeSwiftJs, map[string]*bintree{}}, - "mode-swig.js": &bintree{publicAceSrcMinModeSwigJs, map[string]*bintree{}}, - "mode-tcl.js": &bintree{publicAceSrcMinModeTclJs, map[string]*bintree{}}, - "mode-tex.js": &bintree{publicAceSrcMinModeTexJs, map[string]*bintree{}}, - "mode-text.js": &bintree{publicAceSrcMinModeTextJs, map[string]*bintree{}}, - "mode-textile.js": &bintree{publicAceSrcMinModeTextileJs, map[string]*bintree{}}, - "mode-toml.js": &bintree{publicAceSrcMinModeTomlJs, map[string]*bintree{}}, - "mode-tsx.js": &bintree{publicAceSrcMinModeTsxJs, map[string]*bintree{}}, - "mode-twig.js": &bintree{publicAceSrcMinModeTwigJs, map[string]*bintree{}}, - "mode-typescript.js": &bintree{publicAceSrcMinModeTypescriptJs, map[string]*bintree{}}, - "mode-vala.js": &bintree{publicAceSrcMinModeValaJs, map[string]*bintree{}}, - "mode-vbscript.js": &bintree{publicAceSrcMinModeVbscriptJs, map[string]*bintree{}}, - "mode-velocity.js": &bintree{publicAceSrcMinModeVelocityJs, map[string]*bintree{}}, - "mode-verilog.js": &bintree{publicAceSrcMinModeVerilogJs, map[string]*bintree{}}, - "mode-vhdl.js": &bintree{publicAceSrcMinModeVhdlJs, map[string]*bintree{}}, - "mode-wollok.js": &bintree{publicAceSrcMinModeWollokJs, map[string]*bintree{}}, - "mode-xml.js": &bintree{publicAceSrcMinModeXmlJs, map[string]*bintree{}}, - "mode-xquery.js": &bintree{publicAceSrcMinModeXqueryJs, map[string]*bintree{}}, - "mode-yaml.js": &bintree{publicAceSrcMinModeYamlJs, map[string]*bintree{}}, - "snippets": &bintree{nil, map[string]*bintree{ - "abap.js": &bintree{publicAceSrcMinSnippetsAbapJs, map[string]*bintree{}}, - "abc.js": &bintree{publicAceSrcMinSnippetsAbcJs, map[string]*bintree{}}, - "actionscript.js": &bintree{publicAceSrcMinSnippetsActionscriptJs, map[string]*bintree{}}, - "ada.js": &bintree{publicAceSrcMinSnippetsAdaJs, map[string]*bintree{}}, - "apache_conf.js": &bintree{publicAceSrcMinSnippetsApache_confJs, map[string]*bintree{}}, - "applescript.js": &bintree{publicAceSrcMinSnippetsApplescriptJs, map[string]*bintree{}}, - "asciidoc.js": &bintree{publicAceSrcMinSnippetsAsciidocJs, map[string]*bintree{}}, - "assembly_x86.js": &bintree{publicAceSrcMinSnippetsAssembly_x86Js, map[string]*bintree{}}, - "autohotkey.js": &bintree{publicAceSrcMinSnippetsAutohotkeyJs, map[string]*bintree{}}, - "batchfile.js": &bintree{publicAceSrcMinSnippetsBatchfileJs, map[string]*bintree{}}, - "bro.js": &bintree{publicAceSrcMinSnippetsBroJs, map[string]*bintree{}}, - "c9search.js": &bintree{publicAceSrcMinSnippetsC9searchJs, map[string]*bintree{}}, - "c_cpp.js": &bintree{publicAceSrcMinSnippetsC_cppJs, map[string]*bintree{}}, - "cirru.js": &bintree{publicAceSrcMinSnippetsCirruJs, map[string]*bintree{}}, - "clojure.js": &bintree{publicAceSrcMinSnippetsClojureJs, map[string]*bintree{}}, - "cobol.js": &bintree{publicAceSrcMinSnippetsCobolJs, map[string]*bintree{}}, - "coffee.js": &bintree{publicAceSrcMinSnippetsCoffeeJs, map[string]*bintree{}}, - "coldfusion.js": &bintree{publicAceSrcMinSnippetsColdfusionJs, map[string]*bintree{}}, - "csharp.js": &bintree{publicAceSrcMinSnippetsCsharpJs, map[string]*bintree{}}, - "css.js": &bintree{publicAceSrcMinSnippetsCssJs, map[string]*bintree{}}, - "curly.js": &bintree{publicAceSrcMinSnippetsCurlyJs, map[string]*bintree{}}, - "d.js": &bintree{publicAceSrcMinSnippetsDJs, map[string]*bintree{}}, - "dart.js": &bintree{publicAceSrcMinSnippetsDartJs, map[string]*bintree{}}, - "diff.js": &bintree{publicAceSrcMinSnippetsDiffJs, map[string]*bintree{}}, - "django.js": &bintree{publicAceSrcMinSnippetsDjangoJs, map[string]*bintree{}}, - "dockerfile.js": &bintree{publicAceSrcMinSnippetsDockerfileJs, map[string]*bintree{}}, - "dot.js": &bintree{publicAceSrcMinSnippetsDotJs, map[string]*bintree{}}, - "drools.js": &bintree{publicAceSrcMinSnippetsDroolsJs, map[string]*bintree{}}, - "eiffel.js": &bintree{publicAceSrcMinSnippetsEiffelJs, map[string]*bintree{}}, - "ejs.js": &bintree{publicAceSrcMinSnippetsEjsJs, map[string]*bintree{}}, - "elixir.js": &bintree{publicAceSrcMinSnippetsElixirJs, map[string]*bintree{}}, - "elm.js": &bintree{publicAceSrcMinSnippetsElmJs, map[string]*bintree{}}, - "erlang.js": &bintree{publicAceSrcMinSnippetsErlangJs, map[string]*bintree{}}, - "forth.js": &bintree{publicAceSrcMinSnippetsForthJs, map[string]*bintree{}}, - "fortran.js": &bintree{publicAceSrcMinSnippetsFortranJs, map[string]*bintree{}}, - "ftl.js": &bintree{publicAceSrcMinSnippetsFtlJs, map[string]*bintree{}}, - "gcode.js": &bintree{publicAceSrcMinSnippetsGcodeJs, map[string]*bintree{}}, - "gherkin.js": &bintree{publicAceSrcMinSnippetsGherkinJs, map[string]*bintree{}}, - "gitignore.js": &bintree{publicAceSrcMinSnippetsGitignoreJs, map[string]*bintree{}}, - "glsl.js": &bintree{publicAceSrcMinSnippetsGlslJs, map[string]*bintree{}}, - "gobstones.js": &bintree{publicAceSrcMinSnippetsGobstonesJs, map[string]*bintree{}}, - "golang.js": &bintree{publicAceSrcMinSnippetsGolangJs, map[string]*bintree{}}, - "groovy.js": &bintree{publicAceSrcMinSnippetsGroovyJs, map[string]*bintree{}}, - "haml.js": &bintree{publicAceSrcMinSnippetsHamlJs, map[string]*bintree{}}, - "handlebars.js": &bintree{publicAceSrcMinSnippetsHandlebarsJs, map[string]*bintree{}}, - "haskell.js": &bintree{publicAceSrcMinSnippetsHaskellJs, map[string]*bintree{}}, - "haskell_cabal.js": &bintree{publicAceSrcMinSnippetsHaskell_cabalJs, map[string]*bintree{}}, - "haxe.js": &bintree{publicAceSrcMinSnippetsHaxeJs, map[string]*bintree{}}, - "hjson.js": &bintree{publicAceSrcMinSnippetsHjsonJs, map[string]*bintree{}}, - "html.js": &bintree{publicAceSrcMinSnippetsHtmlJs, map[string]*bintree{}}, - "html_elixir.js": &bintree{publicAceSrcMinSnippetsHtml_elixirJs, map[string]*bintree{}}, - "html_ruby.js": &bintree{publicAceSrcMinSnippetsHtml_rubyJs, map[string]*bintree{}}, - "ini.js": &bintree{publicAceSrcMinSnippetsIniJs, map[string]*bintree{}}, - "io.js": &bintree{publicAceSrcMinSnippetsIoJs, map[string]*bintree{}}, - "jack.js": &bintree{publicAceSrcMinSnippetsJackJs, map[string]*bintree{}}, - "jade.js": &bintree{publicAceSrcMinSnippetsJadeJs, map[string]*bintree{}}, - "java.js": &bintree{publicAceSrcMinSnippetsJavaJs, map[string]*bintree{}}, - "javascript.js": &bintree{publicAceSrcMinSnippetsJavascriptJs, map[string]*bintree{}}, - "json.js": &bintree{publicAceSrcMinSnippetsJsonJs, map[string]*bintree{}}, - "jsoniq.js": &bintree{publicAceSrcMinSnippetsJsoniqJs, map[string]*bintree{}}, - "jsp.js": &bintree{publicAceSrcMinSnippetsJspJs, map[string]*bintree{}}, - "jsx.js": &bintree{publicAceSrcMinSnippetsJsxJs, map[string]*bintree{}}, - "julia.js": &bintree{publicAceSrcMinSnippetsJuliaJs, map[string]*bintree{}}, - "kotlin.js": &bintree{publicAceSrcMinSnippetsKotlinJs, map[string]*bintree{}}, - "latex.js": &bintree{publicAceSrcMinSnippetsLatexJs, map[string]*bintree{}}, - "lean.js": &bintree{publicAceSrcMinSnippetsLeanJs, map[string]*bintree{}}, - "less.js": &bintree{publicAceSrcMinSnippetsLessJs, map[string]*bintree{}}, - "liquid.js": &bintree{publicAceSrcMinSnippetsLiquidJs, map[string]*bintree{}}, - "lisp.js": &bintree{publicAceSrcMinSnippetsLispJs, map[string]*bintree{}}, - "live_script.js": &bintree{publicAceSrcMinSnippetsLive_scriptJs, map[string]*bintree{}}, - "livescript.js": &bintree{publicAceSrcMinSnippetsLivescriptJs, map[string]*bintree{}}, - "logiql.js": &bintree{publicAceSrcMinSnippetsLogiqlJs, map[string]*bintree{}}, - "lsl.js": &bintree{publicAceSrcMinSnippetsLslJs, map[string]*bintree{}}, - "lua.js": &bintree{publicAceSrcMinSnippetsLuaJs, map[string]*bintree{}}, - "luapage.js": &bintree{publicAceSrcMinSnippetsLuapageJs, map[string]*bintree{}}, - "lucene.js": &bintree{publicAceSrcMinSnippetsLuceneJs, map[string]*bintree{}}, - "makefile.js": &bintree{publicAceSrcMinSnippetsMakefileJs, map[string]*bintree{}}, - "markdown.js": &bintree{publicAceSrcMinSnippetsMarkdownJs, map[string]*bintree{}}, - "mask.js": &bintree{publicAceSrcMinSnippetsMaskJs, map[string]*bintree{}}, - "matlab.js": &bintree{publicAceSrcMinSnippetsMatlabJs, map[string]*bintree{}}, - "maze.js": &bintree{publicAceSrcMinSnippetsMazeJs, map[string]*bintree{}}, - "mel.js": &bintree{publicAceSrcMinSnippetsMelJs, map[string]*bintree{}}, - "mips_assembler.js": &bintree{publicAceSrcMinSnippetsMips_assemblerJs, map[string]*bintree{}}, - "mipsassembler.js": &bintree{publicAceSrcMinSnippetsMipsassemblerJs, map[string]*bintree{}}, - "mushcode.js": &bintree{publicAceSrcMinSnippetsMushcodeJs, map[string]*bintree{}}, - "mysql.js": &bintree{publicAceSrcMinSnippetsMysqlJs, map[string]*bintree{}}, - "nix.js": &bintree{publicAceSrcMinSnippetsNixJs, map[string]*bintree{}}, - "nsis.js": &bintree{publicAceSrcMinSnippetsNsisJs, map[string]*bintree{}}, - "objectivec.js": &bintree{publicAceSrcMinSnippetsObjectivecJs, map[string]*bintree{}}, - "ocaml.js": &bintree{publicAceSrcMinSnippetsOcamlJs, map[string]*bintree{}}, - "pascal.js": &bintree{publicAceSrcMinSnippetsPascalJs, map[string]*bintree{}}, - "perl.js": &bintree{publicAceSrcMinSnippetsPerlJs, map[string]*bintree{}}, - "pgsql.js": &bintree{publicAceSrcMinSnippetsPgsqlJs, map[string]*bintree{}}, - "php.js": &bintree{publicAceSrcMinSnippetsPhpJs, map[string]*bintree{}}, - "plain_text.js": &bintree{publicAceSrcMinSnippetsPlain_textJs, map[string]*bintree{}}, - "powershell.js": &bintree{publicAceSrcMinSnippetsPowershellJs, map[string]*bintree{}}, - "praat.js": &bintree{publicAceSrcMinSnippetsPraatJs, map[string]*bintree{}}, - "prolog.js": &bintree{publicAceSrcMinSnippetsPrologJs, map[string]*bintree{}}, - "properties.js": &bintree{publicAceSrcMinSnippetsPropertiesJs, map[string]*bintree{}}, - "protobuf.js": &bintree{publicAceSrcMinSnippetsProtobufJs, map[string]*bintree{}}, - "python.js": &bintree{publicAceSrcMinSnippetsPythonJs, map[string]*bintree{}}, - "r.js": &bintree{publicAceSrcMinSnippetsRJs, map[string]*bintree{}}, - "razor.js": &bintree{publicAceSrcMinSnippetsRazorJs, map[string]*bintree{}}, - "rdoc.js": &bintree{publicAceSrcMinSnippetsRdocJs, map[string]*bintree{}}, - "rhtml.js": &bintree{publicAceSrcMinSnippetsRhtmlJs, map[string]*bintree{}}, - "rst.js": &bintree{publicAceSrcMinSnippetsRstJs, map[string]*bintree{}}, - "ruby.js": &bintree{publicAceSrcMinSnippetsRubyJs, map[string]*bintree{}}, - "rust.js": &bintree{publicAceSrcMinSnippetsRustJs, map[string]*bintree{}}, - "sass.js": &bintree{publicAceSrcMinSnippetsSassJs, map[string]*bintree{}}, - "scad.js": &bintree{publicAceSrcMinSnippetsScadJs, map[string]*bintree{}}, - "scala.js": &bintree{publicAceSrcMinSnippetsScalaJs, map[string]*bintree{}}, - "scheme.js": &bintree{publicAceSrcMinSnippetsSchemeJs, map[string]*bintree{}}, - "scss.js": &bintree{publicAceSrcMinSnippetsScssJs, map[string]*bintree{}}, - "sh.js": &bintree{publicAceSrcMinSnippetsShJs, map[string]*bintree{}}, - "sjs.js": &bintree{publicAceSrcMinSnippetsSjsJs, map[string]*bintree{}}, - "smarty.js": &bintree{publicAceSrcMinSnippetsSmartyJs, map[string]*bintree{}}, - "snippets.js": &bintree{publicAceSrcMinSnippetsSnippetsJs, map[string]*bintree{}}, - "soy_template.js": &bintree{publicAceSrcMinSnippetsSoy_templateJs, map[string]*bintree{}}, - "space.js": &bintree{publicAceSrcMinSnippetsSpaceJs, map[string]*bintree{}}, - "sql.js": &bintree{publicAceSrcMinSnippetsSqlJs, map[string]*bintree{}}, - "sqlserver.js": &bintree{publicAceSrcMinSnippetsSqlserverJs, map[string]*bintree{}}, - "stylus.js": &bintree{publicAceSrcMinSnippetsStylusJs, map[string]*bintree{}}, - "svg.js": &bintree{publicAceSrcMinSnippetsSvgJs, map[string]*bintree{}}, - "swift.js": &bintree{publicAceSrcMinSnippetsSwiftJs, map[string]*bintree{}}, - "swig.js": &bintree{publicAceSrcMinSnippetsSwigJs, map[string]*bintree{}}, - "tcl.js": &bintree{publicAceSrcMinSnippetsTclJs, map[string]*bintree{}}, - "tex.js": &bintree{publicAceSrcMinSnippetsTexJs, map[string]*bintree{}}, - "text.js": &bintree{publicAceSrcMinSnippetsTextJs, map[string]*bintree{}}, - "textile.js": &bintree{publicAceSrcMinSnippetsTextileJs, map[string]*bintree{}}, - "toml.js": &bintree{publicAceSrcMinSnippetsTomlJs, map[string]*bintree{}}, - "tsx.js": &bintree{publicAceSrcMinSnippetsTsxJs, map[string]*bintree{}}, - "twig.js": &bintree{publicAceSrcMinSnippetsTwigJs, map[string]*bintree{}}, - "typescript.js": &bintree{publicAceSrcMinSnippetsTypescriptJs, map[string]*bintree{}}, - "vala.js": &bintree{publicAceSrcMinSnippetsValaJs, map[string]*bintree{}}, - "vbscript.js": &bintree{publicAceSrcMinSnippetsVbscriptJs, map[string]*bintree{}}, - "velocity.js": &bintree{publicAceSrcMinSnippetsVelocityJs, map[string]*bintree{}}, - "verilog.js": &bintree{publicAceSrcMinSnippetsVerilogJs, map[string]*bintree{}}, - "vhdl.js": &bintree{publicAceSrcMinSnippetsVhdlJs, map[string]*bintree{}}, - "wollok.js": &bintree{publicAceSrcMinSnippetsWollokJs, map[string]*bintree{}}, - "xml.js": &bintree{publicAceSrcMinSnippetsXmlJs, map[string]*bintree{}}, - "xquery.js": &bintree{publicAceSrcMinSnippetsXqueryJs, map[string]*bintree{}}, - "yaml.js": &bintree{publicAceSrcMinSnippetsYamlJs, map[string]*bintree{}}, - }}, - "theme-github.js": &bintree{publicAceSrcMinThemeGithubJs, map[string]*bintree{}}, - "worker-coffee.js": &bintree{publicAceSrcMinWorkerCoffeeJs, map[string]*bintree{}}, - "worker-css.js": &bintree{publicAceSrcMinWorkerCssJs, map[string]*bintree{}}, - "worker-html.js": &bintree{publicAceSrcMinWorkerHtmlJs, map[string]*bintree{}}, - "worker-javascript.js": &bintree{publicAceSrcMinWorkerJavascriptJs, map[string]*bintree{}}, - "worker-json.js": &bintree{publicAceSrcMinWorkerJsonJs, map[string]*bintree{}}, - "worker-lua.js": &bintree{publicAceSrcMinWorkerLuaJs, map[string]*bintree{}}, - "worker-php.js": &bintree{publicAceSrcMinWorkerPhpJs, map[string]*bintree{}}, - "worker-xml.js": &bintree{publicAceSrcMinWorkerXmlJs, map[string]*bintree{}}, - "worker-xquery.js": &bintree{publicAceSrcMinWorkerXqueryJs, map[string]*bintree{}}, - }}, - }}, - "css": &bintree{nil, map[string]*bintree{ - "fonts.css": &bintree{publicCssFontsCss, map[string]*bintree{}}, - "material": &bintree{nil, map[string]*bintree{ - "icons.woff2": &bintree{publicCssMaterialIconsWoff2, map[string]*bintree{}}, - }}, - "normalize.css": &bintree{publicCssNormalizeCss, map[string]*bintree{}}, - "roboto": &bintree{nil, map[string]*bintree{ - "medium-cyrillic-ext.woff2": &bintree{publicCssRobotoMediumCyrillicExtWoff2, map[string]*bintree{}}, - "medium-cyrillic.woff2": &bintree{publicCssRobotoMediumCyrillicWoff2, map[string]*bintree{}}, - "medium-greek-ext.woff2": &bintree{publicCssRobotoMediumGreekExtWoff2, map[string]*bintree{}}, - "medium-greek.woff2": &bintree{publicCssRobotoMediumGreekWoff2, map[string]*bintree{}}, - "medium-latin-ext.woff2": &bintree{publicCssRobotoMediumLatinExtWoff2, map[string]*bintree{}}, - "medium-latin.woff2": &bintree{publicCssRobotoMediumLatinWoff2, map[string]*bintree{}}, - "medium-vietnamese.woff2": &bintree{publicCssRobotoMediumVietnameseWoff2, map[string]*bintree{}}, - "normal-cyrillic-ext.woff2": &bintree{publicCssRobotoNormalCyrillicExtWoff2, map[string]*bintree{}}, - "normal-cyrillic.woff2": &bintree{publicCssRobotoNormalCyrillicWoff2, map[string]*bintree{}}, - "normal-greek-ext.woff2": &bintree{publicCssRobotoNormalGreekExtWoff2, map[string]*bintree{}}, - "normal-greek.woff2": &bintree{publicCssRobotoNormalGreekWoff2, map[string]*bintree{}}, - "normal-latin-ext.woff2": &bintree{publicCssRobotoNormalLatinExtWoff2, map[string]*bintree{}}, - "normal-latin.woff2": &bintree{publicCssRobotoNormalLatinWoff2, map[string]*bintree{}}, - "normal-vietnamese.woff2": &bintree{publicCssRobotoNormalVietnameseWoff2, map[string]*bintree{}}, - }}, - "styles.css": &bintree{publicCssStylesCss, map[string]*bintree{}}, - }}, - "js": &bintree{nil, map[string]*bintree{ - "common.js": &bintree{publicJsCommonJs, map[string]*bintree{}}, - "editor.js": &bintree{publicJsEditorJs, map[string]*bintree{}}, - "form2js.js": &bintree{publicJsForm2jsJs, map[string]*bintree{}}, - "listing.js": &bintree{publicJsListingJs, map[string]*bintree{}}, - }}, - }}, - "templates": &bintree{nil, map[string]*bintree{ - "base.tmpl": &bintree{templatesBaseTmpl, map[string]*bintree{}}, - "editor.tmpl": &bintree{templatesEditorTmpl, map[string]*bintree{}}, - "frontmatter.tmpl": &bintree{templatesFrontmatterTmpl, map[string]*bintree{}}, - "listing.tmpl": &bintree{templatesListingTmpl, map[string]*bintree{}}, - "minimal.tmpl": &bintree{templatesMinimalTmpl, map[string]*bintree{}}, - "single.tmpl": &bintree{templatesSingleTmpl, map[string]*bintree{}}, - }}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - cannonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) -} - diff --git a/cmd/filemanager/main.go b/cmd/filemanager/main.go deleted file mode 100644 index f421b3b7..00000000 --- a/cmd/filemanager/main.go +++ /dev/null @@ -1,21 +0,0 @@ -package main - -import ( - "net/http" - - "github.com/hacdias/filemanager" - handlers "github.com/hacdias/filemanager/http" -) - -var cfg *filemanager.Config - -func handler(w http.ResponseWriter, r *http.Request) { - handlers.ServeHTTP(w, r, cfg) -} - -func main() { - cfg = filemanager.New("D:\\TEST\\") - - http.HandleFunc("/", handler) - http.ListenAndServe(":8080", nil) -} diff --git a/editor.go b/editor.go deleted file mode 100644 index c42deee1..00000000 --- a/editor.go +++ /dev/null @@ -1,120 +0,0 @@ -package filemanager - -import ( - "bytes" - "errors" - "net/http" - "path/filepath" - "strings" - - "github.com/hacdias/filemanager/frontmatter" - "github.com/spf13/hugo/parser" -) - -// editor contains the information for the editor page -type editor struct { - Class string - Mode string - Visual bool - Content string - FrontMatter struct { - Content *frontmatter.Content - Rune rune - } -} - -// newEditor gets the editor based on a FileInfo struct -func newEditor(r *http.Request, i *fileInfo) (*editor, error) { - var err error - - // Create a new editor variable and set the mode - e := new(editor) - e.Mode = editorMode(i.Name) - e.Class = editorClass(e.Mode) - - if e.Class == "frontmatter-only" || e.Class == "complete" { - e.Visual = true - } - - if r.URL.Query().Get("visual") == "false" { - e.Class = "content-only" - } - - hasRune := frontmatter.HasRune(i.Content) - - if e.Class == "frontmatter-only" && !hasRune { - e.FrontMatter.Rune, err = frontmatter.StringFormatToRune(e.Mode) - if err != nil { - goto Error - } - i.Content = frontmatter.AppendRune(i.Content, e.FrontMatter.Rune) - hasRune = true - } - - if e.Class == "frontmatter-only" && hasRune { - e.FrontMatter.Content, _, err = frontmatter.Pretty(i.Content) - if err != nil { - goto Error - } - } - - if e.Class == "complete" && hasRune { - var page parser.Page - // Starts a new buffer and parses the file using Hugo's functions - buffer := bytes.NewBuffer(i.Content) - page, err = parser.ReadFrom(buffer) - - if err != nil { - goto Error - } - - // Parses the page content and the frontmatter - e.Content = strings.TrimSpace(string(page.Content())) - e.FrontMatter.Rune = rune(i.Content[0]) - e.FrontMatter.Content, _, err = frontmatter.Pretty(page.FrontMatter()) - } - - if e.Class == "complete" && !hasRune { - err = errors.New("Complete but without rune") - } - -Error: - if e.Class == "content-only" || err != nil { - e.Class = "content-only" - e.Content = i.StringifyContent() - } - - return e, nil -} - -func editorClass(mode string) string { - switch mode { - case "json", "toml", "yaml": - return "frontmatter-only" - case "markdown", "asciidoc", "rst": - return "complete" - } - - return "content-only" -} - -func editorMode(filename string) string { - mode := strings.TrimPrefix(filepath.Ext(filename), ".") - - switch mode { - case "md", "markdown", "mdown", "mmark": - mode = "markdown" - case "asciidoc", "adoc", "ad": - mode = "asciidoc" - case "rst": - mode = "rst" - case "html", "htm": - mode = "html" - case "js": - mode = "javascript" - case "go": - mode = "golang" - } - - return mode -} diff --git a/file.go b/file.go deleted file mode 100644 index 5e0599b9..00000000 --- a/file.go +++ /dev/null @@ -1,161 +0,0 @@ -package filemanager - -import ( - "io/ioutil" - "mime" - "net/http" - "net/url" - "os" - "path/filepath" - "strings" - "time" - - humanize "github.com/dustin/go-humanize" -) - -// fileInfo contains the information about a particular file or directory. -type fileInfo struct { - Name string - Size int64 - URL string - Extension string - ModTime time.Time - Mode os.FileMode - IsDir bool - Path string // Relative path to Caddyfile - VirtualPath string // Relative path to u.FileSystem - Mimetype string - Content []byte - Type string - UserAllowed bool // Indicates if the user has enough permissions -} - -// getFileInfo retrieves the file information and the error, if there is any. -func getFileInfo(url *url.URL, c *FileManager, u *User) (*fileInfo, error) { - var err error - - i := &fileInfo{URL: c.PrefixURL + url.Path} - i.VirtualPath = strings.Replace(url.Path, c.BaseURL, "", 1) - i.VirtualPath = strings.TrimPrefix(i.VirtualPath, "/") - i.VirtualPath = "/" + i.VirtualPath - - i.Path = u.Scope + i.VirtualPath - i.Path = filepath.Clean(i.Path) - - info, err := os.Stat(i.Path) - if err != nil { - return i, err - } - - i.Name = info.Name() - i.ModTime = info.ModTime() - i.Mode = info.Mode() - i.IsDir = info.IsDir() - i.Size = info.Size() - i.Extension = filepath.Ext(i.Name) - return i, nil -} - -var textExtensions = [...]string{ - ".md", ".markdown", ".mdown", ".mmark", - ".asciidoc", ".adoc", ".ad", - ".rst", - ".json", ".toml", ".yaml", ".csv", ".xml", ".rss", ".conf", ".ini", - ".tex", ".sty", - ".css", ".sass", ".scss", - ".js", - ".html", - ".txt", ".rtf", - ".sh", ".bash", ".ps1", ".bat", ".cmd", - ".php", ".pl", ".py", - "Caddyfile", - ".c", ".cc", ".h", ".hh", ".cpp", ".hpp", ".f90", - ".f", ".bas", ".d", ".ada", ".nim", ".cr", ".java", ".cs", ".vala", ".vapi", -} - -// RetrieveFileType obtains the mimetype and a simplified internal Type -// using the first 512 bytes from the file. -func (i fileInfo) RetrieveFileType() error { - i.Mimetype = mime.TypeByExtension(i.Extension) - - if i.Mimetype == "" { - err := i.Read() - if err != nil { - return err - } - - i.Mimetype = http.DetectContentType(i.Content) - } - - if strings.HasPrefix(i.Mimetype, "video") { - i.Type = "video" - return nil - } - - if strings.HasPrefix(i.Mimetype, "audio") { - i.Type = "audio" - return nil - } - - if strings.HasPrefix(i.Mimetype, "image") { - i.Type = "image" - return nil - } - - if strings.HasPrefix(i.Mimetype, "text") { - i.Type = "text" - return nil - } - - if strings.HasPrefix(i.Mimetype, "application/javascript") { - i.Type = "text" - return nil - } - - // If the type isn't text (and is blob for example), it will check some - // common types that are mistaken not to be text. - for _, extension := range textExtensions { - if strings.HasSuffix(i.Name, extension) { - i.Type = "text" - return nil - } - } - - i.Type = "blob" - return nil -} - -// Reads the file. -func (i fileInfo) Read() error { - if len(i.Content) != 0 { - return nil - } - - var err error - i.Content, err = ioutil.ReadFile(i.Path) - if err != nil { - return err - } - return nil -} - -// StringifyContent returns the string version of Raw -func (i fileInfo) StringifyContent() string { - return string(i.Content) -} - -// HumanSize returns the size of the file as a human-readable string -// in IEC format (i.e. power of 2 or base 1024). -func (i fileInfo) HumanSize() string { - return humanize.IBytes(uint64(i.Size)) -} - -// HumanModTime returns the modified time of the file as a human-readable string. -func (i fileInfo) HumanModTime(format string) string { - return i.ModTime.Format(format) -} - -// CanBeEdited checks if the extension of a file is supported by the editor -func (i fileInfo) CanBeEdited() bool { - return i.Type == "text" -} diff --git a/filemanager.go b/filemanager.go deleted file mode 100644 index 6fc6107c..00000000 --- a/filemanager.go +++ /dev/null @@ -1,116 +0,0 @@ -package filemanager - -import ( - "net/http" - "regexp" - "strings" - - rice "github.com/GeertJohan/go.rice" - - "golang.org/x/net/webdav" -) - -// FileManager is a configuration for browsing in a particular path. -type FileManager struct { - *User - PrefixURL string // A part of the URL that is stripped from the http.Request - BaseURL string // The base URL of FileManager interface - WebDavURL string // The URL of WebDAV - Users map[string]*User - BeforeSave Command - AfterSave Command - Assets struct { - Templates *rice.Box - Static *rice.Box - } -} - -// New creates a new FileManager object with the default settings -// for a certain scope. -func New(scope string) *FileManager { - fm := &FileManager{ - User: &User{ - Scope: scope, - FileSystem: webdav.Dir(scope), - AllowCommands: true, - AllowEdit: true, - AllowNew: true, - Commands: []string{"git", "svn", "hg"}, - Rules: []*Rule{{ - Regex: true, - Allow: false, - Regexp: regexp.MustCompile("\\/\\..+"), - }}, - }, - Users: map[string]*User{}, - BaseURL: "", - PrefixURL: "", - WebDavURL: "/webdav", - BeforeSave: func(r *http.Request, c *FileManager, u *User) error { return nil }, - AfterSave: func(r *http.Request, c *FileManager, u *User) error { return nil }, - } - - fm.Handler = &webdav.Handler{ - Prefix: fm.WebDavURL, - FileSystem: fm.FileSystem, - LockSystem: webdav.NewMemLS(), - } - - return fm -} - -// AbsoluteURL ... -func (c FileManager) AbsoluteURL() string { - return c.PrefixURL + c.BaseURL -} - -// AbsoluteWebdavURL ... -func (c FileManager) AbsoluteWebdavURL() string { - return c.PrefixURL + c.WebDavURL -} - -// Rule is a dissalow/allow rule -type Rule struct { - Regex bool - Allow bool - Path string - Regexp *regexp.Regexp -} - -// User contains the configuration for each user -type User struct { - Scope string `json:"-"` // Path the user have access - FileSystem webdav.FileSystem `json:"-"` // The virtual file system the user have access - Handler *webdav.Handler `json:"-"` // The WebDav HTTP Handler - StyleSheet string `json:"-"` // Costum stylesheet - Rules []*Rule `json:"-"` // Access rules - AllowNew bool // Can create files and folders - AllowEdit bool // Can edit/rename files - AllowCommands bool // Can execute commands - Commands []string // Available Commands -} - -// Allowed checks if the user has permission to access a directory/file -func (u User) Allowed(url string) bool { - var rule *Rule - i := len(u.Rules) - 1 - - for i >= 0 { - rule = u.Rules[i] - - if rule.Regex { - if rule.Regexp.MatchString(url) { - return rule.Allow - } - } else if strings.HasPrefix(url, rule.Path) { - return rule.Allow - } - - i-- - } - - return true -} - -// Command is a user-defined command that is executed in some moments. -type Command func(r *http.Request, c *FileManager, u *User) error diff --git a/frontmatter/frontmatter.go b/frontmatter/frontmatter.go deleted file mode 100644 index 6e2401d8..00000000 --- a/frontmatter/frontmatter.go +++ /dev/null @@ -1,275 +0,0 @@ -package frontmatter - -import ( - "bytes" - "encoding/json" - "errors" - "log" - "reflect" - "sort" - "strconv" - "strings" - - "gopkg.in/yaml.v2" - - "github.com/BurntSushi/toml" - - "github.com/spf13/cast" -) - -const ( - mainName = "#MAIN#" - objectType = "object" - arrayType = "array" -) - -var mainTitle = "" - -// Pretty creates a new FrontMatter object -func Pretty(content []byte) (*Content, string, error) { - data, err := Unmarshal(content) - - if err != nil { - return &Content{}, "", err - } - - kind := reflect.ValueOf(data).Kind() - - if kind == reflect.Invalid { - return &Content{}, "", nil - } - - object := new(Block) - object.Type = objectType - object.Name = mainName - - if kind == reflect.Map { - object.Type = objectType - } else if kind == reflect.Slice || kind == reflect.Array { - object.Type = arrayType - } - - return rawToPretty(data, object), mainTitle, nil -} - -// Unmarshal returns the data of the frontmatter -func Unmarshal(content []byte) (interface{}, error) { - mark := rune(content[0]) - var data interface{} - - switch mark { - case '-': - // If it's YAML - if err := yaml.Unmarshal(content, &data); err != nil { - return nil, err - } - case '+': - // If it's TOML - content = bytes.Replace(content, []byte("+"), []byte(""), -1) - if _, err := toml.Decode(string(content), &data); err != nil { - return nil, err - } - case '{', '[': - // If it's JSON - if err := json.Unmarshal(content, &data); err != nil { - return nil, err - } - default: - return nil, errors.New("Invalid frontmatter type") - } - - return data, nil -} - -// Marshal encodes the interface in a specific format -func Marshal(data interface{}, mark rune) ([]byte, error) { - b := new(bytes.Buffer) - - switch mark { - case '+': - enc := toml.NewEncoder(b) - err := enc.Encode(data) - if err != nil { - return nil, err - } - return b.Bytes(), nil - case '{': - by, err := json.MarshalIndent(data, "", " ") - if err != nil { - return nil, err - } - b.Write(by) - _, err = b.Write([]byte("\n")) - if err != nil { - return nil, err - } - return b.Bytes(), nil - case '-': - by, err := yaml.Marshal(data) - if err != nil { - return nil, err - } - b.Write(by) - _, err = b.Write([]byte("...")) - if err != nil { - return nil, err - } - return b.Bytes(), nil - default: - return nil, errors.New("Unsupported Format provided") - } -} - -// Content is the block content -type Content struct { - Other interface{} - Fields []*Block - Arrays []*Block - Objects []*Block -} - -// Block is a block -type Block struct { - Name string - Title string - Type string - HTMLType string - Content *Content - Parent *Block -} - -func rawToPretty(config interface{}, parent *Block) *Content { - objects := []*Block{} - arrays := []*Block{} - fields := []*Block{} - - cnf := map[string]interface{}{} - kind := reflect.TypeOf(config) - - switch kind { - case reflect.TypeOf(map[interface{}]interface{}{}): - for key, value := range config.(map[interface{}]interface{}) { - cnf[key.(string)] = value - } - case reflect.TypeOf([]map[string]interface{}{}): - for index, value := range config.([]map[string]interface{}) { - cnf[strconv.Itoa(index)] = value - } - case reflect.TypeOf([]map[interface{}]interface{}{}): - for index, value := range config.([]map[interface{}]interface{}) { - cnf[strconv.Itoa(index)] = value - } - case reflect.TypeOf([]interface{}{}): - for index, value := range config.([]interface{}) { - cnf[strconv.Itoa(index)] = value - } - default: - cnf = config.(map[string]interface{}) - } - - for name, element := range cnf { - if isMap(element) { - objects = append(objects, handleObjects(element, parent, name)) - } else if isSlice(element) { - arrays = append(arrays, handleArrays(element, parent, name)) - } else { - if name == "title" && parent.Name == mainName { - mainTitle = element.(string) - } - fields = append(fields, handleFlatValues(element, parent, name)) - } - } - - sort.Sort(sortByTitle(fields)) - sort.Sort(sortByTitle(arrays)) - sort.Sort(sortByTitle(objects)) - return &Content{ - Fields: fields, - Arrays: arrays, - Objects: objects, - } -} - -type sortByTitle []*Block - -func (f sortByTitle) Len() int { return len(f) } -func (f sortByTitle) Swap(i, j int) { f[i], f[j] = f[j], f[i] } -func (f sortByTitle) Less(i, j int) bool { - return strings.ToLower(f[i].Name) < strings.ToLower(f[j].Name) -} - -func handleObjects(content interface{}, parent *Block, name string) *Block { - c := new(Block) - c.Parent = parent - c.Type = objectType - c.Title = name - - if parent.Name == mainName { - c.Name = c.Title - } else if parent.Type == arrayType { - c.Name = parent.Name + "[" + name + "]" - } else { - c.Name = parent.Name + "." + c.Title - } - - c.Content = rawToPretty(content, c) - return c -} - -func handleArrays(content interface{}, parent *Block, name string) *Block { - c := new(Block) - c.Parent = parent - c.Type = arrayType - c.Title = name - - if parent.Name == mainName { - c.Name = name - } else { - c.Name = parent.Name + "." + name - } - - c.Content = rawToPretty(content, c) - return c -} - -func handleFlatValues(content interface{}, parent *Block, name string) *Block { - c := new(Block) - c.Parent = parent - - switch content.(type) { - case bool: - c.Type = "boolean" - case int, float32, float64: - c.Type = "number" - default: - c.Type = "string" - } - - c.Content = &Content{Other: content} - - switch strings.ToLower(name) { - case "description": - c.HTMLType = "textarea" - case "date", "publishdate": - c.HTMLType = "datetime" - c.Content = &Content{Other: cast.ToTime(content)} - default: - c.HTMLType = "text" - } - - if parent.Type == arrayType { - c.Name = parent.Name + "[]" - c.Title = content.(string) - } else if parent.Type == objectType { - c.Title = name - c.Name = parent.Name + "." + name - - if parent.Name == mainName { - c.Name = name - } - } else { - log.Panic("Parent type not allowed in handleFlatValues.") - } - - return c -} diff --git a/frontmatter/runes.go b/frontmatter/runes.go deleted file mode 100644 index b4ad1dc2..00000000 --- a/frontmatter/runes.go +++ /dev/null @@ -1,58 +0,0 @@ -package frontmatter - -import ( - "bytes" - "errors" - "strings" -) - -// HasRune checks if the file has the frontmatter rune -func HasRune(file []byte) bool { - return strings.HasPrefix(string(file), "---") || - strings.HasPrefix(string(file), "+++") || - strings.HasPrefix(string(file), "{") -} - -// AppendRune appends the frontmatter rune to a file -func AppendRune(frontmatter []byte, mark rune) []byte { - frontmatter = bytes.TrimSpace(frontmatter) - - switch mark { - case '-': - return []byte("---\n" + string(frontmatter) + "\n---") - case '+': - return []byte("+++\n" + string(frontmatter) + "\n+++") - case '{': - return []byte("{\n" + string(frontmatter) + "\n}") - } - - return frontmatter -} - -// RuneToStringFormat converts the rune to a string with the format -func RuneToStringFormat(mark rune) (string, error) { - switch mark { - case '-': - return "yaml", nil - case '+': - return "toml", nil - case '{', '}': - return "json", nil - default: - return "", errors.New("Unsupported format type") - } -} - -// StringFormatToRune converts the format name to its rune -func StringFormatToRune(format string) (rune, error) { - switch format { - case "yaml": - return '-', nil - case "toml": - return '+', nil - case "json": - return '{', nil - default: - return '0', errors.New("Unsupported format type") - } -} diff --git a/frontmatter/runes_test.go b/frontmatter/runes_test.go deleted file mode 100644 index 6d120948..00000000 --- a/frontmatter/runes_test.go +++ /dev/null @@ -1,131 +0,0 @@ -package frontmatter - -import "testing" - -type hasRuneTest struct { - File []byte - Return bool -} - -var testHasRune = []hasRuneTest{ - hasRuneTest{ - File: []byte(`--- -Lorem ipsum dolor sit amet, consectetur adipiscing elit. -Sed auctor libero eget ante fermentum commodo. ----`), - Return: true, - }, - hasRuneTest{ - File: []byte(`+++ -Lorem ipsum dolor sit amet, consectetur adipiscing elit. -Sed auctor libero eget ante fermentum commodo. -+++`), - Return: true, - }, - hasRuneTest{ - File: []byte(`{ - "json": "Lorem ipsum dolor sit amet" -}`), - Return: true, - }, - hasRuneTest{ - File: []byte(`+`), - Return: false, - }, - hasRuneTest{ - File: []byte(`++`), - Return: false, - }, - hasRuneTest{ - File: []byte(`-`), - Return: false, - }, - hasRuneTest{ - File: []byte(`--`), - Return: false, - }, - hasRuneTest{ - File: []byte(`Lorem ipsum`), - Return: false, - }, -} - -func TestHasRune(t *testing.T) { - for _, test := range testHasRune { - if HasRune(test.File) != test.Return { - t.Error("Incorrect value on HasRune") - } - } -} - -type appendRuneTest struct { - Before []byte - After []byte - Mark rune -} - -var testAppendRuneTest = []appendRuneTest{} - -func TestAppendRune(t *testing.T) { - for i, test := range testAppendRuneTest { - if !compareByte(AppendRune(test.Before, test.Mark), test.After) { - t.Errorf("Incorrect value on AppendRune of Test %d", i) - } - } -} - -func compareByte(a, b []byte) bool { - if a == nil && b == nil { - return true - } - - if a == nil || b == nil { - return false - } - - if len(a) != len(b) { - return false - } - - for i := range a { - if a[i] != b[i] { - return false - } - } - - return true -} - -var testRuneToStringFormat = map[rune]string{ - '-': "yaml", - '+': "toml", - '{': "json", - '}': "json", - '1': "", - 'a': "", -} - -func TestRuneToStringFormat(t *testing.T) { - for mark, format := range testRuneToStringFormat { - val, _ := RuneToStringFormat(mark) - if val != format { - t.Errorf("Incorrect value on RuneToStringFormat of %v; want: %s; got: %s", mark, format, val) - } - } -} - -var testStringFormatToRune = map[string]rune{ - "yaml": '-', - "toml": '+', - "json": '{', - "lorem": '0', -} - -func TestStringFormatToRune(t *testing.T) { - for format, mark := range testStringFormatToRune { - val, _ := StringFormatToRune(format) - if val != mark { - t.Errorf("Incorrect value on StringFormatToRune of %s; want: %v; got: %v", format, mark, val) - } - } -} diff --git a/frontmatter/types.go b/frontmatter/types.go deleted file mode 100644 index 89ff9b6d..00000000 --- a/frontmatter/types.go +++ /dev/null @@ -1,13 +0,0 @@ -package frontmatter - -import "reflect" - -// isMap checks if some variable is a map -func isMap(sth interface{}) bool { - return reflect.ValueOf(sth).Kind() == reflect.Map -} - -// isSlice checks if some variable is a slice -func isSlice(sth interface{}) bool { - return reflect.ValueOf(sth).Kind() == reflect.Slice -} diff --git a/frontmatter/types_test.go b/frontmatter/types_test.go deleted file mode 100644 index e2f008c3..00000000 --- a/frontmatter/types_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package frontmatter - -import "testing" - -type interfaceToBool struct { - Value interface{} - Result bool -} - -var testIsMap = []*interfaceToBool{ - &interfaceToBool{"teste", false}, - &interfaceToBool{453478, false}, - &interfaceToBool{-984512, false}, - &interfaceToBool{true, false}, - &interfaceToBool{map[string]bool{}, true}, - &interfaceToBool{map[int]bool{}, true}, - &interfaceToBool{map[interface{}]bool{}, true}, - &interfaceToBool{[]string{}, false}, -} - -func TestIsMap(t *testing.T) { - for _, test := range testIsMap { - if isMap(test.Value) != test.Result { - t.Errorf("Incorrect value on IsMap for %v; want: %v; got: %v", test.Value, test.Result, !test.Result) - } - } -} - -var testIsSlice = []*interfaceToBool{ - &interfaceToBool{"teste", false}, - &interfaceToBool{453478, false}, - &interfaceToBool{-984512, false}, - &interfaceToBool{true, false}, - &interfaceToBool{map[string]bool{}, false}, - &interfaceToBool{map[int]bool{}, false}, - &interfaceToBool{map[interface{}]bool{}, false}, - &interfaceToBool{[]string{}, true}, - &interfaceToBool{[]int{}, true}, - &interfaceToBool{[]bool{}, true}, - &interfaceToBool{[]interface{}{}, true}, -} - -func TestIsSlice(t *testing.T) { - for _, test := range testIsSlice { - if isSlice(test.Value) != test.Result { - t.Errorf("Incorrect value on IsSlice for %v; want: %v; got: %v", test.Value, test.Result, !test.Result) - } - } -} diff --git a/http.go b/http.go deleted file mode 100644 index d6c851a1..00000000 --- a/http.go +++ /dev/null @@ -1,168 +0,0 @@ -package filemanager - -import ( - "errors" - "net/http" - "os" - "path/filepath" - "strings" - - "github.com/mholt/caddy/caddyhttp/httpserver" -) - -// ServeHTTP starts FileManager. -func (c *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) { - var ( - fi *fileInfo - user *User - code int - err error - ) - /* TODO: readd this - // Checks if the URL matches the Assets URL. Returns the asset if the - // method is GET and Status Forbidden otherwise. - if strings.HasPrefix(r.URL.Path, c.BaseURL+assets.BaseURL) { - if r.Method == http.MethodGet { - return assets.Serve(w, r, c) - } - - return http.StatusForbidden, nil - } */ - - // Obtains the user. - username, _, _ := r.BasicAuth() - if _, ok := c.Users[username]; ok { - user = c.Users[username] - } else { - user = c.User - } - - // Checks if the request URL is for the WebDav server - if httpserver.Path(r.URL.Path).Matches(c.WebDavURL) { - // Checks for user permissions relatively to this PATH - if !user.Allowed(strings.TrimPrefix(r.URL.Path, c.WebDavURL)) { - return http.StatusForbidden, nil - } - - switch r.Method { - case "GET", "HEAD": - // Excerpt from RFC4918, section 9.4: - // - // GET, when applied to a collection, may return the contents of an - // "index.html" resource, a human-readable view of the contents of - // the collection, or something else altogether. - // - // It was decided on https://github.com/hacdias/caddy-filemanager/issues/85 - // that GET, for collections, will return the same as PROPFIND method. - path := strings.Replace(r.URL.Path, c.WebDavURL, "", 1) - path = user.Scope + "/" + path - path = filepath.Clean(path) - - var i os.FileInfo - i, err = os.Stat(path) - if err != nil { - // Is there any error? WebDav will handle it... no worries. - break - } - - if i.IsDir() { - r.Method = "PROPFIND" - - if r.Method == "HEAD" { - w = NewResponseWriterNoBody(w) - } - } - case "PROPPATCH", "MOVE", "PATCH", "PUT", "DELETE": - if !user.AllowEdit { - return http.StatusForbidden, nil - } - case "MKCOL", "COPY": - if !user.AllowNew { - return http.StatusForbidden, nil - } - } - - // Preprocess the PUT request if it's the case - if r.Method == http.MethodPut { - if err = c.BeforeSave(r, c, user); err != nil { - return http.StatusInternalServerError, err - } - - if c.preProccessPUT(w, r, user) != nil { - return http.StatusInternalServerError, err - } - } - - c.Handler.ServeHTTP(w, r) - if err = c.AfterSave(r, c, user); err != nil { - return http.StatusInternalServerError, err - } - - return 0, nil - } - - w.Header().Set("x-frame-options", "SAMEORIGIN") - w.Header().Set("x-content-type", "nosniff") - w.Header().Set("x-xss-protection", "1; mode=block") - - // Checks if the User is allowed to access this file - if !user.Allowed(strings.TrimPrefix(r.URL.Path, c.BaseURL)) { - if r.Method == http.MethodGet { - return printError( - w, http.StatusForbidden, - errors.New("You don't have permission to access this page"), - ) - } - - return http.StatusForbidden, nil - } - - if r.URL.Query().Get("search") != "" { - return c.search(w, r, user) - } - - if r.URL.Query().Get("command") != "" { - return c.command(w, r, user) - } - - if r.Method == http.MethodGet { - // Gets the information of the directory/file - fi, err = getFileInfo(r.URL, c, user) - code = errorToHTTPCode(err, false) - if err != nil { - if r.Method == http.MethodGet { - return printError(w, code, err) - } - return code, err - } - - // If it's a dir and the path doesn't end with a trailing slash, - // redirect the user. - if fi.IsDir && !strings.HasSuffix(r.URL.Path, "/") { - http.Redirect(w, r, c.PrefixURL+r.URL.Path+"/", http.StatusTemporaryRedirect) - return 0, nil - } - - switch { - case r.URL.Query().Get("download") != "": - code, err = c.download(w, r, fi) - case r.URL.Query().Get("raw") == "true" && !fi.IsDir: - http.ServeFile(w, r, fi.Path) - code, err = 0, nil - case !fi.IsDir && r.URL.Query().Get("checksum") != "": - code, err = c.checksum(w, r, fi) - case fi.IsDir: - code, err = c.serveListing(w, r, user, fi) - default: - code, err = c.serveSingle(w, r, user, fi) - } - - if err != nil { - code, err = printError(w, code, err) - } - - return code, err - } - - return http.StatusNotImplemented, nil -} diff --git a/http_checksum.go b/http_checksum.go deleted file mode 100644 index 58f9fe0e..00000000 --- a/http_checksum.go +++ /dev/null @@ -1,50 +0,0 @@ -package filemanager - -import ( - "crypto/md5" - "crypto/sha1" - "crypto/sha256" - "crypto/sha512" - "encoding/hex" - "errors" - "hash" - "io" - "net/http" - "os" -) - -// checksum calculates the hash of a filemanager. Supports MD5, SHA1, SHA256 and SHA512. -func (c *FileManager) checksum(w http.ResponseWriter, r *http.Request, i *fileInfo) (int, error) { - query := r.URL.Query().Get("checksum") - - file, err := os.Open(i.Path) - if err != nil { - return errorToHTTPCode(err, true), err - } - - defer file.Close() - - var h hash.Hash - - switch query { - case "md5": - h = md5.New() - case "sha1": - h = sha1.New() - case "sha256": - h = sha256.New() - case "sha512": - h = sha512.New() - default: - return http.StatusBadRequest, errors.New("Unknown HASH type") - } - - _, err = io.Copy(h, file) - if err != nil { - return http.StatusInternalServerError, err - } - - val := hex.EncodeToString(h.Sum(nil)) - w.Write([]byte(val)) - return http.StatusOK, nil -} diff --git a/http_command.go b/http_command.go deleted file mode 100644 index 3893473b..00000000 --- a/http_command.go +++ /dev/null @@ -1,135 +0,0 @@ -package filemanager - -import ( - "bytes" - "net/http" - "os/exec" - "path/filepath" - "strings" - "time" - - "github.com/gorilla/websocket" -) - -var upgrader = websocket.Upgrader{ - ReadBufferSize: 1024, - WriteBufferSize: 1024, -} - -var ( - cmdNotImplemented = []byte("Command not implemented.") - cmdNotAllowed = []byte("Command not allowed.") -) - -// command handles the requests for VCS related commands: git, svn and mercurial -func (c *FileManager) command(w http.ResponseWriter, r *http.Request, u *User) (int, error) { - // Upgrades the connection to a websocket and checks for errors. - conn, err := upgrader.Upgrade(w, r, nil) - if err != nil { - return 0, err - } - defer conn.Close() - - var ( - message []byte - command []string - ) - - // Starts an infinite loop until a valid command is captured. - for { - _, message, err = conn.ReadMessage() - if err != nil { - return http.StatusInternalServerError, err - } - - command = strings.Split(string(message), " ") - if len(command) != 0 { - break - } - } - - // Check if the command is allowed - allowed := false - - for _, cmd := range u.Commands { - if cmd == command[0] { - allowed = true - } - } - - if !allowed { - err = conn.WriteMessage(websocket.BinaryMessage, cmdNotAllowed) - if err != nil { - return http.StatusInternalServerError, err - } - - return 0, nil - } - - // Check if the program is talled is installed on the computer. - if _, err = exec.LookPath(command[0]); err != nil { - err = conn.WriteMessage(websocket.BinaryMessage, cmdNotImplemented) - if err != nil { - return http.StatusInternalServerError, err - } - - return http.StatusNotImplemented, nil - } - - // Gets the path and initializes a buffer. - path := strings.Replace(r.URL.Path, c.BaseURL, c.Scope, 1) - path = filepath.Clean(path) - buff := new(bytes.Buffer) - - // Sets up the command executation. - cmd := exec.Command(command[0], command[1:]...) - cmd.Dir = path - cmd.Stderr = buff - cmd.Stdout = buff - - // Starts the command and checks for errors. - err = cmd.Start() - if err != nil { - return http.StatusInternalServerError, err - } - - // Set a 'done' variable to check whetever the command has already finished - // running or not. This verification is done using a goroutine that uses the - // method .Wait() from the command. - done := false - go func() { - err = cmd.Wait() - done = true - }() - - // Function to print the current information on the buffer to the connection. - print := func() error { - by := buff.Bytes() - if len(by) > 0 { - err = conn.WriteMessage(websocket.TextMessage, by) - if err != nil { - return err - } - } - - return nil - } - - // While the command hasn't finished running, continue sending the output - // to the client in intervals of 100 milliseconds. - for !done { - if err = print(); err != nil { - return http.StatusInternalServerError, err - } - - time.Sleep(100 * time.Millisecond) - } - - // After the command is done executing, send the output one more time to the - // browser to make sure it gets the latest information. - if err = print(); err != nil { - return http.StatusInternalServerError, err - } - - return 0, nil -} diff --git a/http_download.go b/http_download.go deleted file mode 100644 index f1556153..00000000 --- a/http_download.go +++ /dev/null @@ -1,95 +0,0 @@ -package filemanager - -import ( - "io" - "io/ioutil" - "net/http" - "net/url" - "os" - "path/filepath" - "strings" - - "github.com/mholt/archiver" -) - -// download creates an archive in one of the supported formats (zip, tar, -// tar.gz or tar.bz2) and sends it to be downloaded. -func (c *FileManager) download(w http.ResponseWriter, r *http.Request, i *fileInfo) (int, error) { - query := r.URL.Query().Get("download") - - if !i.IsDir { - w.Header().Set("Content-Disposition", "attachment; filename="+i.Name) - http.ServeFile(w, r, i.Path) - return 0, nil - } - - files := []string{} - names := strings.Split(r.URL.Query().Get("files"), ",") - - if len(names) != 0 { - for _, name := range names { - name, err := url.QueryUnescape(name) - - if err != nil { - return http.StatusInternalServerError, err - } - - files = append(files, filepath.Join(i.Path, name)) - } - - } else { - files = append(files, i.Path) - } - - if query == "true" { - query = "zip" - } - - var ( - extension string - temp string - err error - tempfile string - ) - - temp, err = ioutil.TempDir("", "") - if err != nil { - return http.StatusInternalServerError, err - } - - defer os.RemoveAll(temp) - tempfile = filepath.Join(temp, "temp") - - switch query { - case "zip": - extension, err = ".zip", archiver.Zip.Make(tempfile, files) - case "tar": - extension, err = ".tar", archiver.Tar.Make(tempfile, files) - case "targz": - extension, err = ".tar.gz", archiver.TarGz.Make(tempfile, files) - case "tarbz2": - extension, err = ".tar.bz2", archiver.TarBz2.Make(tempfile, files) - case "tarxz": - extension, err = ".tar.xz", archiver.TarXZ.Make(tempfile, files) - default: - return http.StatusNotImplemented, nil - } - - if err != nil { - return http.StatusInternalServerError, err - } - - file, err := os.Open(temp + "/temp") - if err != nil { - return http.StatusInternalServerError, err - } - - name := i.Name - if name == "." || name == "" { - name = "download" - } - - w.Header().Set("Content-Disposition", "attachment; filename="+name+extension) - io.Copy(w, file) - return http.StatusOK, nil -} diff --git a/http_listing.go b/http_listing.go deleted file mode 100644 index 11480a88..00000000 --- a/http_listing.go +++ /dev/null @@ -1,144 +0,0 @@ -package filemanager - -import ( - "encoding/json" - "net/http" - "strconv" - "strings" - - "github.com/mholt/caddy/caddyhttp/httpserver" -) - -// serveListing presents the user with a listage of a directory folder. -func (c *FileManager) serveListing(w http.ResponseWriter, r *http.Request, u *User, i *fileInfo) (int, error) { - var err error - - // Loads the content of the directory - listing, err := getListing(u, i.VirtualPath, c.PrefixURL+r.URL.Path) - if err != nil { - return errorToHTTPCode(err, true), err - } - - listing.Context = httpserver.Context{ - Root: http.Dir(u.Scope), - Req: r, - URL: r.URL, - } - - cookieScope := c.BaseURL - if cookieScope == "" { - cookieScope = "/" - } - - // Copy the query values into the Listing struct - var limit int - listing.Sort, listing.Order, limit, err = handleSortOrder(w, r, cookieScope) - if err != nil { - return http.StatusBadRequest, err - } - - listing.ApplySort() - - if limit > 0 && limit <= len(listing.Items) { - listing.Items = listing.Items[:limit] - listing.ItemsLimitedTo = limit - } - - if strings.Contains(r.Header.Get("Accept"), "application/json") { - marsh, err := json.Marshal(listing.Items) - if err != nil { - return http.StatusInternalServerError, err - } - - w.Header().Set("Content-Type", "application/json; charset=utf-8") - if _, err := w.Write(marsh); err != nil { - return http.StatusInternalServerError, err - } - - return http.StatusOK, nil - } - - displayMode := r.URL.Query().Get("display") - - if displayMode == "" { - if displayCookie, err := r.Cookie("display"); err == nil { - displayMode = displayCookie.Value - } - } - - if displayMode == "" || (displayMode != "mosaic" && displayMode != "list") { - displayMode = "mosaic" - } - - http.SetCookie(w, &http.Cookie{ - Name: "display", - Value: displayMode, - Path: cookieScope, - Secure: r.TLS != nil, - }) - - page := &page{ - Minimal: r.Header.Get("Minimal") == "true", - Info: &pageInfo{ - Name: listing.Name, - Path: i.VirtualPath, - IsDir: true, - User: u, - Config: c, - Display: displayMode, - Data: listing, - }, - } - - return page.PrintHTML(w, "listing") -} - -// handleSortOrder gets and stores for a Listing the 'sort' and 'order', -// and reads 'limit' if given. The latter is 0 if not given. Sets cookies. -func handleSortOrder(w http.ResponseWriter, r *http.Request, scope string) (sort string, order string, limit int, err error) { - sort = r.URL.Query().Get("sort") - order = r.URL.Query().Get("order") - limitQuery := r.URL.Query().Get("limit") - - // If the query 'sort' or 'order' is empty, use defaults or any values - // previously saved in Cookies. - switch sort { - case "": - sort = "name" - if sortCookie, sortErr := r.Cookie("sort"); sortErr == nil { - sort = sortCookie.Value - } - case "name", "size", "type": - http.SetCookie(w, &http.Cookie{ - Name: "sort", - Value: sort, - Path: scope, - Secure: r.TLS != nil, - }) - } - - switch order { - case "": - order = "asc" - if orderCookie, orderErr := r.Cookie("order"); orderErr == nil { - order = orderCookie.Value - } - case "asc", "desc": - http.SetCookie(w, &http.Cookie{ - Name: "order", - Value: order, - Path: scope, - Secure: r.TLS != nil, - }) - } - - if limitQuery != "" { - limit, err = strconv.Atoi(limitQuery) - // If the 'limit' query can't be interpreted as a number, return err. - if err != nil { - return - } - } - - return -} diff --git a/http_put.go b/http_put.go deleted file mode 100644 index fa41658e..00000000 --- a/http_put.go +++ /dev/null @@ -1,138 +0,0 @@ -package filemanager - -import ( - "bytes" - "encoding/json" - "errors" - "io/ioutil" - "net/http" - "path/filepath" - "strconv" - "strings" - - "github.com/hacdias/filemanager/frontmatter" -) - -// preProccessPUT is used to update a file that was edited -func (c *FileManager) preProccessPUT(w http.ResponseWriter, r *http.Request, u *User) (err error) { - var ( - data = map[string]interface{}{} - file []byte - kind string - rawBuffer = new(bytes.Buffer) - ) - - kind = r.Header.Get("kind") - rawBuffer.ReadFrom(r.Body) - - if kind != "" { - err = json.Unmarshal(rawBuffer.Bytes(), &data) - - if err != nil { - return - } - } - - switch kind { - case "frontmatter-only": - if file, err = ParseFrontMatterOnlyFile(data, r.URL.Path); err != nil { - return - } - case "content-only": - mainContent := data["content"].(string) - mainContent = strings.TrimSpace(mainContent) - file = []byte(mainContent) - case "complete": - var mark rune - - if v := r.Header.Get("Rune"); v != "" { - var n int - n, err = strconv.Atoi(v) - if err != nil { - return err - } - - mark = rune(n) - } - - if file, err = ParseCompleteFile(data, r.URL.Path, mark); err != nil { - return - } - default: - file = rawBuffer.Bytes() - } - - // Overwrite the request Body - r.Body = ioutil.NopCloser(bytes.NewReader(file)) - return -} - -// ParseFrontMatterOnlyFile parses a frontmatter only file -func ParseFrontMatterOnlyFile(data interface{}, filename string) ([]byte, error) { - frontmatter := strings.TrimPrefix(filepath.Ext(filename), ".") - f, err := ParseFrontMatter(data, frontmatter) - fString := string(f) - - // If it's toml or yaml, strip frontmatter identifier - if frontmatter == "toml" { - fString = strings.TrimSuffix(fString, "+++\n") - fString = strings.TrimPrefix(fString, "+++\n") - } - - if frontmatter == "yaml" { - fString = strings.TrimSuffix(fString, "---\n") - fString = strings.TrimPrefix(fString, "---\n") - } - - f = []byte(fString) - return f, err -} - -// ParseFrontMatter is the frontmatter parser -func ParseFrontMatter(data interface{}, front string) ([]byte, error) { - var mark rune - - switch front { - case "toml": - mark = '+' - case "json": - mark = '{' - case "yaml": - mark = '-' - default: - return nil, errors.New("Unsupported Format provided") - } - - return frontmatter.Marshal(data, mark) -} - -// ParseCompleteFile parses a complete file -func ParseCompleteFile(data map[string]interface{}, filename string, mark rune) ([]byte, error) { - mainContent := "" - - if _, ok := data["content"]; ok { - // The main content of the file - mainContent = data["content"].(string) - mainContent = "\n\n" + strings.TrimSpace(mainContent) + "\n" - - // Removes the main content from the rest of the frontmatter - delete(data, "content") - } - - if _, ok := data["date"]; ok { - data["date"] = data["date"].(string) + ":00" - } - - front, err := frontmatter.Marshal(data, mark) - if err != nil { - return []byte{}, err - } - - front = frontmatter.AppendRune(front, mark) - - // Generates the final file - f := new(bytes.Buffer) - f.Write(front) - f.Write([]byte(mainContent)) - return f.Bytes(), nil -} diff --git a/http_search.go b/http_search.go deleted file mode 100644 index 9e656de2..00000000 --- a/http_search.go +++ /dev/null @@ -1,117 +0,0 @@ -package filemanager - -import ( - "net/http" - "os" - "path/filepath" - "strings" - - "github.com/gorilla/websocket" -) - -type searchOptions struct { - CaseInsensitive bool - Terms []string -} - -func parseSearch(value string) *searchOptions { - opts := &searchOptions{ - CaseInsensitive: strings.Contains(value, "case:insensitive"), - } - - // removes the options from the value - value = strings.Replace(value, "case:insensitive", "", -1) - value = strings.Replace(value, "case:sensitive", "", -1) - value = strings.TrimSpace(value) - - if opts.CaseInsensitive { - value = strings.ToLower(value) - } - - // if the value starts with " and finishes what that character, we will - // only search for that term - if value[0] == '"' && value[len(value)-1] == '"' { - unique := strings.TrimPrefix(value, "\"") - unique = strings.TrimSuffix(unique, "\"") - - opts.Terms = []string{unique} - return opts - } - - opts.Terms = strings.Split(value, " ") - return opts -} - -// search ... -func (c *FileManager) search(w http.ResponseWriter, r *http.Request, u *User) (int, error) { - // Upgrades the connection to a websocket and checks for errors. - conn, err := upgrader.Upgrade(w, r, nil) - if err != nil { - return 0, err - } - defer conn.Close() - - var ( - value string - search *searchOptions - message []byte - ) - - // Starts an infinite loop until a valid command is captured. - for { - _, message, err = conn.ReadMessage() - if err != nil { - return http.StatusInternalServerError, err - } - - if len(message) != 0 { - value = string(message) - break - } - } - - search = parseSearch(value) - scope := strings.Replace(r.URL.Path, c.BaseURL, "", 1) - scope = strings.TrimPrefix(scope, "/") - scope = "/" + scope - scope = u.Scope + scope - scope = strings.Replace(scope, "\\", "/", -1) - scope = filepath.Clean(scope) - - err = filepath.Walk(scope, func(path string, f os.FileInfo, err error) error { - if search.CaseInsensitive { - path = strings.ToLower(path) - } - - path = strings.Replace(path, "\\", "/", -1) - is := false - - for _, term := range search.Terms { - if is { - break - } - - if strings.Contains(path, term) { - if !u.Allowed(path) { - return nil - } - - is = true - } - } - - if !is { - return nil - } - - path = strings.TrimPrefix(path, scope) - path = strings.TrimPrefix(path, "/") - return conn.WriteMessage(websocket.TextMessage, []byte(path)) - }) - - if err != nil { - return http.StatusInternalServerError, err - } - - return http.StatusOK, nil -} diff --git a/http_single.go b/http_single.go deleted file mode 100644 index 32f9dbed..00000000 --- a/http_single.go +++ /dev/null @@ -1,50 +0,0 @@ -package filemanager - -import ( - "net/http" - "strings" -) - -// serveSingle serves a single file in an editor (if it is editable), shows the -// plain file, or downloads it if it can't be shown. -func (c *FileManager) serveSingle(w http.ResponseWriter, r *http.Request, u *User, i *fileInfo) (int, error) { - var err error - - if err = i.RetrieveFileType(); err != nil { - return errorToHTTPCode(err, true), err - } - - p := &page{ - Info: &pageInfo{ - Name: i.Name, - Path: i.VirtualPath, - IsDir: false, - Data: i, - User: u, - Config: c, - }, - } - - // If the request accepts JSON, we send the file information. - if strings.Contains(r.Header.Get("Accept"), "application/json") { - return p.PrintJSON(w) - } - - if i.Type == "text" { - if err = i.Read(); err != nil { - return errorToHTTPCode(err, true), err - } - } - - if i.CanBeEdited() && u.AllowEdit { - p.Info.Data, err = newEditor(r, i) - p.Info.Editor = true - if err != nil { - return http.StatusInternalServerError, err - } - - return p.PrintHTML(w, "frontmatter", "editor") - } - - return p.PrintHTML(w, "single") -} diff --git a/listing.go b/listing.go deleted file mode 100644 index 0b4468c9..00000000 --- a/listing.go +++ /dev/null @@ -1,184 +0,0 @@ -package filemanager - -import ( - "context" - "net/url" - "os" - "path" - "sort" - "strings" - - "github.com/mholt/caddy/caddyhttp/httpserver" -) - -// A listing is the context used to fill out a template. -type listing struct { - // The name of the directory (the last element of the path) - Name string - // The full path of the request relatively to a File System - Path string - // The items (files and folders) in the path - Items []fileInfo - // The number of directories in the listing - NumDirs int - // The number of files (items that aren't directories) in the listing - NumFiles int - // Which sorting order is used - Sort string - // And which order - Order string - // If ≠0 then Items have been limited to that many elements - ItemsLimitedTo int - httpserver.Context `json:"-"` -} - -// getListing gets the information about a specific directory and its files. -func getListing(u *User, filePath string, baseURL string) (*listing, error) { - // Gets the directory information using the Virtual File System of - // the user configuration. - file, err := u.FileSystem.OpenFile(context.TODO(), filePath, os.O_RDONLY, 0) - if err != nil { - return nil, err - } - defer file.Close() - - // Reads the directory and gets the information about the files. - files, err := file.Readdir(-1) - if err != nil { - return nil, err - } - - var ( - fileinfos []fileInfo - dirCount, fileCount int - ) - - for _, f := range files { - name := f.Name() - allowed := u.Allowed("/" + name) - - if !allowed { - continue - } - - if f.IsDir() { - name += "/" - dirCount++ - } else { - fileCount++ - } - - // Absolute URL - url := url.URL{Path: baseURL + name} - - i := fileInfo{ - Name: f.Name(), - Size: f.Size(), - ModTime: f.ModTime(), - Mode: f.Mode(), - IsDir: f.IsDir(), - URL: url.String(), - UserAllowed: allowed, - } - i.RetrieveFileType() - - fileinfos = append(fileinfos, i) - } - - return &listing{ - Name: path.Base(filePath), - Path: filePath, - Items: fileinfos, - NumDirs: dirCount, - NumFiles: fileCount, - }, nil -} - -// ApplySort applies the sort order using .Order and .Sort -func (l listing) ApplySort() { - // Check '.Order' to know how to sort - if l.Order == "desc" { - switch l.Sort { - case "name": - sort.Sort(sort.Reverse(byName(l))) - case "size": - sort.Sort(sort.Reverse(bySize(l))) - case "time": - sort.Sort(sort.Reverse(byTime(l))) - default: - // If not one of the above, do nothing - return - } - } else { // If we had more Orderings we could add them here - switch l.Sort { - case "name": - sort.Sort(byName(l)) - case "size": - sort.Sort(bySize(l)) - case "time": - sort.Sort(byTime(l)) - default: - sort.Sort(byName(l)) - return - } - } -} - -// Implement sorting for listing -type byName listing -type bySize listing -type byTime listing - -// By Name -func (l byName) Len() int { - return len(l.Items) -} - -func (l byName) Swap(i, j int) { - l.Items[i], l.Items[j] = l.Items[j], l.Items[i] -} - -// Treat upper and lower case equally -func (l byName) Less(i, j int) bool { - if l.Items[i].IsDir && !l.Items[j].IsDir { - return true - } - - if !l.Items[i].IsDir && l.Items[j].IsDir { - return false - } - - return strings.ToLower(l.Items[i].Name) < strings.ToLower(l.Items[j].Name) -} - -// By Size -func (l bySize) Len() int { - return len(l.Items) -} - -func (l bySize) Swap(i, j int) { - l.Items[i], l.Items[j] = l.Items[j], l.Items[i] -} - -const directoryOffset = -1 << 31 // = math.MinInt32 -func (l bySize) Less(i, j int) bool { - iSize, jSize := l.Items[i].Size, l.Items[j].Size - if l.Items[i].IsDir { - iSize = directoryOffset + iSize - } - if l.Items[j].IsDir { - jSize = directoryOffset + jSize - } - return iSize < jSize -} - -// By Time -func (l byTime) Len() int { - return len(l.Items) -} -func (l byTime) Swap(i, j int) { - l.Items[i], l.Items[j] = l.Items[j], l.Items[i] -} -func (l byTime) Less(i, j int) bool { - return l.Items[i].ModTime.Before(l.Items[j].ModTime) -} diff --git a/page.go b/page.go deleted file mode 100644 index 0e44acd6..00000000 --- a/page.go +++ /dev/null @@ -1,219 +0,0 @@ -package filemanager - -import ( - "bytes" - "encoding/json" - "errors" - "html/template" - "log" - "net/http" - "strconv" - "strings" -) - -// Create the functions map, then the template, check for erros and -// execute the template if there aren't errors -var functionMap = template.FuncMap{ - "Defined": defined, - "CSS": css, - "Marshal": marshal, - "EncodeBase64": encodeBase64, -} - -// page contains the informations and functions needed to show the Page -type page struct { - Info *pageInfo - Minimal bool -} - -// pageInfo contains the information of a Page -type pageInfo struct { - Name string - Path string - IsDir bool - User *User - Config *FileManager - Data interface{} - Editor bool - Display string -} - -// BreadcrumbMapItem ... -type BreadcrumbMapItem struct { - Name string - URL string -} - -// BreadcrumbMap returns p.Path where every element is a map -// of URLs and path segment names. -func (i pageInfo) BreadcrumbMap() []BreadcrumbMapItem { - result := []BreadcrumbMapItem{} - - if len(i.Path) == 0 { - return result - } - - // skip trailing slash - lpath := i.Path - if lpath[len(lpath)-1] == '/' { - lpath = lpath[:len(lpath)-1] - } - - parts := strings.Split(lpath, "/") - for i, part := range parts { - if i == len(parts)-1 { - continue - } - - if i == 0 && part == "" { - result = append([]BreadcrumbMapItem{{ - Name: "/", - URL: "/", - }}, result...) - continue - } - - result = append([]BreadcrumbMapItem{{ - Name: part, - URL: strings.Join(parts[:i+1], "/") + "/", - }}, result...) - } - - return result -} - -// PreviousLink returns the path of the previous folder -func (i pageInfo) PreviousLink() string { - path := strings.TrimSuffix(i.Path, "/") - path = strings.TrimPrefix(path, "/") - path = i.Config.AbsoluteURL() + "/" + path - path = path[0 : len(path)-len(i.Name)] - - if len(path) < len(i.Config.AbsoluteURL()+"/") { - return "" - } - - return path -} - -// PrintHTML formats the page in HTML and executes the template -func (p page) PrintHTML(w http.ResponseWriter, templates ...string) (int, error) { - - if p.Minimal { - templates = append(templates, "minimal") - } else { - templates = append(templates, "base") - } - - var tpl *template.Template - - // For each template, add it to the the tpl variable - for i, t := range templates { - // Get the template from the assets - //Page, err := assets.Asset("templates/" + t + ".tmpl") - Page, err := []byte("Shit"), errors.New("Hello") - - // Check if there is some error. If so, the template doesn't exist - if err != nil { - log.Print(err) - return http.StatusInternalServerError, err - } - - // If it's the first iteration, creates a new template and add the - // functions map - if i == 0 { - tpl, err = template.New(t).Funcs(functionMap).Parse(string(Page)) - } else { - tpl, err = tpl.Parse(string(Page)) - } - - if err != nil { - log.Print(err) - return http.StatusInternalServerError, err - } - } - - buf := &bytes.Buffer{} - err := tpl.Execute(buf, p.Info) - - if err != nil { - return http.StatusInternalServerError, err - } - - w.Header().Set("Content-Type", "text/html; charset=utf-8") - _, err = buf.WriteTo(w) - return http.StatusOK, err -} - -// PrintJSON prints the current Page information in JSON -func (p page) PrintJSON(w http.ResponseWriter) (int, error) { - marsh, err := json.MarshalIndent(p.Info.Data, "", " ") - if err != nil { - return http.StatusInternalServerError, err - } - - w.Header().Set("Content-Type", "application/json; charset=utf-8") - if _, err := w.Write(marsh); err != nil { - return http.StatusInternalServerError, err - } - - return http.StatusOK, nil -} - -// printError prints the error page -func printError(w http.ResponseWriter, code int, err error) (int, error) { - tpl := errorTemplate - tpl = strings.Replace(tpl, "TITLE", strconv.Itoa(code)+" "+http.StatusText(code), -1) - tpl = strings.Replace(tpl, "CODE", err.Error(), -1) - - _, err = w.Write([]byte(tpl)) - - if err != nil { - return http.StatusInternalServerError, err - } - return http.StatusOK, nil -} - -const errorTemplate = ` - - - TITLE - - - - - - -
    -

    TITLE

    - -

    Try reloading the page or hitting the back button. If this error persists, it seems that you may have found a bug! Please create an issue at hacdias/caddy-filemanager repository on GitHub with the code below.

    - - CODE -
    -` diff --git a/pre-build.sh b/pre-build.sh deleted file mode 100644 index 493b588b..00000000 --- a/pre-build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -go get github.com/jteeuwen/go-bindata/go-bindata - -go-bindata -debug -pkg assets -prefix "_embed" \ - -o assets/binary.go -ignore "^.*theme-([^g]|g[^i]|gi[^t]|git[^h]|gith[^u]|githu[^b]).*\.js$" \ - _embed/templates/... _embed/public/js/... _embed/public/css/... _embed/public/ace/src-min/... \ \ No newline at end of file diff --git a/response_writer.go b/response_writer.go deleted file mode 100644 index 496971d4..00000000 --- a/response_writer.go +++ /dev/null @@ -1,29 +0,0 @@ -package filemanager - -import "net/http" - -// ResponseWriterNoBody is a wrapper used to suprress the body of the response -// to a request. Mainly used for HEAD requests. -type ResponseWriterNoBody struct { - http.ResponseWriter -} - -// NewResponseWriterNoBody creates a new ResponseWriterNoBody. -func NewResponseWriterNoBody(w http.ResponseWriter) *ResponseWriterNoBody { - return &ResponseWriterNoBody{w} -} - -// Header executes the Header method from the http.ResponseWriter. -func (w ResponseWriterNoBody) Header() http.Header { - return w.ResponseWriter.Header() -} - -// Write suprresses the body. -func (w ResponseWriterNoBody) Write(data []byte) (int, error) { - return 0, nil -} - -// WriteHeader writes the header to the http.ResponseWriter. -func (w ResponseWriterNoBody) WriteHeader(statusCode int) { - w.ResponseWriter.WriteHeader(statusCode) -} diff --git a/utils.go b/utils.go deleted file mode 100644 index bb8592ce..00000000 --- a/utils.go +++ /dev/null @@ -1,58 +0,0 @@ -package filemanager - -import ( - "encoding/base64" - "encoding/json" - "html/template" - "log" - "net/http" - "os" - "reflect" -) - -// defined checks if variable is defined in a struct -func defined(data interface{}, field string) bool { - t := reflect.Indirect(reflect.ValueOf(data)).Type() - - if t.Kind() != reflect.Struct { - log.Print("Non-struct type not allowed.") - return false - } - - _, b := t.FieldByName(field) - return b -} - -// css returns the sanitized and safe css -func css(s string) template.CSS { - return template.CSS(s) -} - -// marshal converts an interface to json and sanitizes it -func marshal(v interface{}) template.JS { - a, _ := json.Marshal(v) - return template.JS(a) -} - -// encodeBase64 encodes a string in base 64 -func encodeBase64(s string) string { - return base64.StdEncoding.EncodeToString([]byte(s)) -} - -// errorToHTTPCode converts errors to HTTP Status Code. -func errorToHTTPCode(err error, gone bool) int { - switch { - case os.IsPermission(err): - return http.StatusForbidden - case os.IsNotExist(err): - if !gone { - return http.StatusNotFound - } - - return http.StatusGone - case os.IsExist(err): - return http.StatusGone - default: - return http.StatusInternalServerError - } -} diff --git a/utils_test.go b/utils_test.go deleted file mode 100644 index 7c5b5c8a..00000000 --- a/utils_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package filemanager - -import "testing" - -type testDefinedData struct { - f1 string - f2 bool - f3 int - f4 func() -} - -type testDefined struct { - data interface{} - field string - result bool -} - -var testDefinedCases = []testDefined{ - {testDefinedData{}, "f1", true}, - {testDefinedData{}, "f2", true}, - {testDefinedData{}, "f3", true}, - {testDefinedData{}, "f4", true}, - {testDefinedData{}, "f5", false}, - {[]string{}, "", false}, - {map[string]int{"oi": 4}, "", false}, - {"asa", "", false}, - {"int", "", false}, -} - -func TestDefined(t *testing.T) { - for _, pair := range testDefinedCases { - v := defined(pair.data, pair.field) - if v != pair.result { - t.Error( - "For", pair.data, - "expected", pair.result, - "got", v, - ) - } - } -}