Commit 1af97f8c authored by 李维's avatar 李维

feat: 完成

parent c71b356e
No preview for this file type
import { asyncDelay, onHomeworkFinish } from "../script/util"; import { asyncDelay, onHomeworkFinish } from "../script/util_dpe_audio_editor";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent"; import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent_dpe_audio_editor";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
......
import { defaultData } from "../script/defaultData"; import { defaultData } from "../script/defaultData_dpe_audio_editor";
export class MyCocosSceneComponent extends cc.Component { export class MyCocosSceneComponent extends cc.Component {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../../lib/dom"),i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}";r.importCssString(i,"settings_menu.css",!1),n.exports.overlayPage=function(t,n,r){function o(e){e.keyCode===27&&u()}function u(){if(!i)return;document.removeEventListener("keydown",o),i.parentNode.removeChild(i),t&&t.focus(),i=null,r&&r()}function a(e){s=e,e&&(i.style.pointerEvents="none",n.style.pointerEvents="auto")}var i=document.createElement("div"),s=!1;return i.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; "+(t?"background-color: rgba(0, 0, 0, 0.3);":""),i.addEventListener("click",function(e){s||u()}),document.addEventListener("keydown",o),n.addEventListener("click",function(e){e.stopPropagation()}),i.appendChild(n),document.body.appendChild(i),t&&t.blur(),{close:u,setIgnoreFocusOut:a}}}),define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){var t=a.text,n=e.split(/[\/\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n;var r;/\^/.test(n)?r=n.replace(/\|(\^)?/g,function(e,t){return"$|"+(t?"^":"^.*\\.")})+"$":r="^.*\\.("+n+")$",this.extRe=new RegExp(r,"gi")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Alda:["alda"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],Apex:["apex|cls|trigger|tgr"],AQL:["aql"],AsciiDoc:["asciidoc|adoc"],ASL:["dsl|asl|asl.json"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],Crystal:["cr"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Edifact:["edi"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FSharp:["fsi|fs|ml|mli|fsx|fsscript"],FSL:["fsl"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|vue|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSON5:["json5"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],Latte:["latte"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MediaWiki:["wiki|mediawiki"],MEL:["mel"],MIPS:["s|asm"],MIXAL:["mixal"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nginx:["nginx|conf"],Nim:["nim"],Nix:["nix"],NSIS:["nsi|nsh"],Nunjucks:["nunjucks|nunjs|nj|njk"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],PHP_Laravel_blade:["blade.php"],Pig:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prisma:["prisma"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Puppet:["epp|pp"],Python:["py"],QML:["qml"],R:["r"],Raku:["raku|rakumod|rakutest|p6|pl6|pm6"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCAD:["scad"],Scala:["scala|sbt"],Scheme:["scm|sm|rkt|oak|scheme"],Scrypt:["scrypt"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Slim:["slim|skim"],Smarty:["smarty|tpl"],Smithy:["smithy"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Terraform:["tf","tfvars","terragrunt"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSX:["tsx"],Twig:["twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Visualforce:["vfp|component|page"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Zeek:["zeek|bro"],Django:["html"]},u={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker",PHP_Laravel_blade:"PHP (Blade Template)",Perl6:"Perl 6",AutoHotKey:"AutoHotkey / AutoIt"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g," "),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}}),define("ace/ext/themelist",["require","exports","module"],function(e,t,n){"use strict";var r=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["Xcode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Nord Dark","nord_dark","dark"],["One Dark","one_dark","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,"_").toLowerCase(),r={caption:e[0],theme:"ace/theme/"+n,isDark:e[2]=="dark",name:n};return t.themesByName[n]=r,r})}),define("ace/ext/options",["require","exports","module","ace/ext/menu_tools/overlay_page","ace/lib/dom","ace/lib/oop","ace/config","ace/lib/event_emitter","ace/ext/modelist","ace/ext/themelist"],function(e,t,n){"use strict";e("./menu_tools/overlay_page");var r=e("../lib/dom"),i=e("../lib/oop"),s=e("../config"),o=e("../lib/event_emitter").EventEmitter,u=r.buildDom,a=e("./modelist"),f=e("./themelist"),l={Bright:[],Dark:[]};f.themes.forEach(function(e){l[e.isDark?"Dark":"Bright"].push({caption:e.caption,value:e.theme})});var c=a.modes.map(function(e){return{caption:e.caption,value:e.mode}}),h={Main:{Mode:{path:"mode",type:"select",items:c},Theme:{path:"theme",type:"select",items:l},Keybinding:{type:"buttonBar",path:"keyboardHandler",items:[{caption:"Ace",value:null},{caption:"Vim",value:"ace/keyboard/vim"},{caption:"Emacs",value:"ace/keyboard/emacs"},{caption:"Sublime",value:"ace/keyboard/sublime"},{caption:"VSCode",value:"ace/keyboard/vscode"}]},"Font Size":{path:"fontSize",type:"number",defaultValue:12,defaults:[{caption:"12px",value:12},{caption:"24px",value:24}]},"Soft Wrap":{type:"buttonBar",path:"wrap",items:[{caption:"Off",value:"off"},{caption:"View",value:"free"},{caption:"margin",value:"printMargin"},{caption:"40",value:"40"}]},"Cursor Style":{path:"cursorStyle",items:[{caption:"Ace",value:"ace"},{caption:"Slim",value:"slim"},{caption:"Smooth",value:"smooth"},{caption:"Smooth And Slim",value:"smooth slim"},{caption:"Wide",value:"wide"}]},Folding:{path:"foldStyle",items:[{caption:"Manual",value:"manual"},{caption:"Mark begin",value:"markbegin"},{caption:"Mark begin and end",value:"markbeginend"}]},"Soft Tabs":[{path:"useSoftTabs"},{ariaLabel:"Tab Size",path:"tabSize",type:"number",values:[2,3,4,8,16]}],Overscroll:{type:"buttonBar",path:"scrollPastEnd",items:[{caption:"None",value:0},{caption:"Half",value:.5},{caption:"Full",value:1}]}},More:{"Atomic soft tabs":{path:"navigateWithinSoftTabs"},"Enable Behaviours":{path:"behavioursEnabled"},"Wrap with quotes":{path:"wrapBehavioursEnabled"},"Enable Auto Indent":{path:"enableAutoIndent"},"Full Line Selection":{type:"checkbox",values:"text|line",path:"selectionStyle"},"Highlight Active Line":{path:"highlightActiveLine"},"Show Invisibles":{path:"showInvisibles"},"Show Indent Guides":{path:"displayIndentGuides"},"Persistent HScrollbar":{path:"hScrollBarAlwaysVisible"},"Persistent VScrollbar":{path:"vScrollBarAlwaysVisible"},"Animate scrolling":{path:"animatedScroll"},"Show Gutter":{path:"showGutter"},"Show Line Numbers":{path:"showLineNumbers"},"Relative Line Numbers":{path:"relativeLineNumbers"},"Fixed Gutter Width":{path:"fixedWidthGutter"},"Show Print Margin":[{path:"showPrintMargin"},{ariaLabel:"Print Margin",type:"number",path:"printMarginColumn"}],"Indented Soft Wrap":{path:"indentedSoftWrap"},"Highlight selected word":{path:"highlightSelectedWord"},"Fade Fold Widgets":{path:"fadeFoldWidgets"},"Use textarea for IME":{path:"useTextareaForIME"},"Merge Undo Deltas":{path:"mergeUndoDeltas",items:[{caption:"Always",value:"always"},{caption:"Never",value:"false"},{caption:"Timed",value:"true"}]},"Elastic Tabstops":{path:"useElasticTabstops"},"Incremental Search":{path:"useIncrementalSearch"},"Read-only":{path:"readOnly"},"Copy without selection":{path:"copyWithEmptySelection"},"Live Autocompletion":{path:"enableLiveAutocompletion"}}},p=function(e,t){this.editor=e,this.container=t||document.createElement("div"),this.groups=[],this.options={}};(function(){i.implement(this,o),this.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},this.render=function(){this.container.innerHTML="",u(["table",{role:"presentation",id:"controls"},this.renderOptionGroup(h.Main),["tr",null,["td",{colspan:2},["table",{role:"presentation",id:"more-controls"},this.renderOptionGroup(h.More)]]],["tr",null,["td",{colspan:2},"version "+s.version]]],this.container)},this.renderOptionGroup=function(e){return Object.keys(e).map(function(t,n){var r=e[t];return r.position||(r.position=n/1e4),r.label||(r.label=t),r}).sort(function(e,t){return e.position-t.position}).map(function(e){return this.renderOption(e.label,e)},this)},this.renderOptionControl=function(e,t){var n=this;if(Array.isArray(t))return t.map(function(t){return n.renderOptionControl(e,t)});var r,i=n.getOption(t);t.values&&t.type!="checkbox"&&(typeof t.values=="string"&&(t.values=t.values.split("|")),t.items=t.values.map(function(e){return{value:e,name:e}}));if(t.type=="buttonBar")r=["div",{role:"group","aria-labelledby":t.path+"-label"},t.items.map(function(e){return["button",{value:e.value,ace_selected_button:i==e.value,"aria-pressed":i==e.value,onclick:function(){n.setOption(t,e.value);var r=this.parentNode.querySelectorAll("[ace_selected_button]");for(var i=0;i<r.length;i++)r[i].removeAttribute("ace_selected_button"),r[i].setAttribute("aria-pressed",!1);this.setAttribute("ace_selected_button",!0),this.setAttribute("aria-pressed",!0)}},e.desc||e.caption||e.name]})];else if(t.type=="number")r=["input",{type:"number",value:i||t.defaultValue,style:"width:3em",oninput:function(){n.setOption(t,parseInt(this.value))}}],t.ariaLabel?r[1]["aria-label"]=t.ariaLabel:r[1].id=e,t.defaults&&(r=[r,t.defaults.map(function(e){return["button",{onclick:function(){var t=this.parentNode.firstChild;t.value=e.value,t.oninput()}},e.caption]})]);else if(t.items){var s=function(e){return e.map(function(e){return["option",{value:e.value||e.name},e.desc||e.caption||e.name]})},o=Array.isArray(t.items)?s(t.items):Object.keys(t.items).map(function(e){return["optgroup",{label:e},s(t.items[e])]});r=["select",{id:e,value:i,onchange:function(){n.setOption(t,this.value)}},o]}else typeof t.values=="string"&&(t.values=t.values.split("|")),t.values&&(i=i==t.values[1]),r=["input",{type:"checkbox",id:e,checked:i||null,onchange:function(){var e=this.checked;t.values&&(e=t.values[e?1:0]),n.setOption(t,e)}}],t.type=="checkedNumber"&&(r=[r,[]]);return r},this.renderOption=function(e,t){if(t.path&&!t.onchange&&!this.editor.$options[t.path])return;var n=Array.isArray(t)?t[0].path:t.path;this.options[n]=t;var r="-"+n,i=n+"-label",s=this.renderOptionControl(r,t);return["tr",{"class":"ace_optionsMenuEntry"},["td",["label",{"for":r,id:i},e]],["td",s]]},this.setOption=function(e,t){typeof e=="string"&&(e=this.options[e]),t=="false"&&(t=!1),t=="true"&&(t=!0),t=="null"&&(t=null),t=="undefined"&&(t=undefined),typeof t=="string"&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal("setOption",{name:e.path,value:t})},this.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)}}).call(p.prototype),t.OptionPanel=p}); (function() {
window.require(["ace/ext/options"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(s,i),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=s}),define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";function a(){var e=o.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r=e.charAt(1)=="/"?2:1;if(r==1)t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++;else if(r==2&&t==this.nextState){n[1]--;if(!n[1]||n[1]<0)n.shift(),n.shift()}return[{type:"meta.tag.punctuation."+(r==1?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e+"",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),e.length==2&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,f("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function f(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,o="[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*",u=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),f("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+o+")(\\.)(prototype)(\\.)("+o+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+o+")(\\.)("+o+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+o+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+o+")(\\.)("+o+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+o+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+o+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:o},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+o+")(\\.)("+o+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:o},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),f("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:o},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]};if(!e||!e.noES6)this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){this.next=e=="{"?this.nextState:"";if(e=="{"&&n.length)n.unshift("start",t);else if(e=="}"&&n.length){n.shift(),this.next=n.shift();if(this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1)return"paren.quasi.end"}return e=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!e||e.jsx!=0)&&a.call(this);this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};r.inherits(u,s),t.JavaScriptHighlightRules=u}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,u=e("../worker/worker_client").WorkerClient,a=e("./behaviour/cstyle").CstyleBehaviour,f=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=new a,this.foldingRules=new f};r.inherits(l,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),s=i.tokens,o=i.state;if(s.length&&s[s.length-1].type=="comment")return r;if(e=="start"||e=="no_regex"){var u=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);u&&(r+=n)}else if(e=="doc-start"){if(o=="start"||o=="no_regex")return"";var u=t.match(/^\s*(\/?)\*/);u&&(u[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(l.prototype),t.Mode=l}); (function() {
window.require(["ace/mode/javascript"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(s,i),t.JsonHighlightRules=s}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./json_highlight_rules").JsonHighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,u=e("./behaviour/cstyle").CstyleBehaviour,a=e("./folding/cstyle").FoldMode,f=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=new u,this.foldingRules=new a};r.inherits(l,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if(e=="start"){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new f(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}.call(l.prototype),t.Mode=l}); (function() {
window.require(["ace/mode/json"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(s,i),t.JsonHighlightRules=s}),define("ace/mode/json5_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/json_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./json_highlight_rules").JsonHighlightRules,s=function(){i.call(this);var e=[{token:"variable",regex:/[a-zA-Z$_\u00a1-\uffff][\w$\u00a1-\uffff]*\s*(?=:)/},{token:"variable",regex:/['](?:(?:\\.)|(?:[^'\\]))*?[']\s*(?=:)/},{token:"constant.language.boolean",regex:/(?:null)\b/},{token:"string",regex:/'/,next:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,consumeLineEnd:!0},{token:"string",regex:/'|$/,next:"start"},{defaultToken:"string"}]},{token:"string",regex:/"(?![^"]*":)/,next:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,consumeLineEnd:!0},{token:"string",regex:/"|$/,next:"start"},{defaultToken:"string"}]},{token:"constant.numeric",regex:/[+-]?(?:Infinity|NaN)\b/}];for(var t in this.$rules)this.$rules[t].unshift.apply(this.$rules[t],e);this.normalizeRules()};r.inherits(s,i),t.Json5HighlightRules=s}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),define("ace/mode/json5",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json5_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./json5_highlight_rules").Json5HighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,u=e("./behaviour/cstyle").CstyleBehaviour,a=e("./folding/cstyle").FoldMode,f=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=new u,this.foldingRules=new a};r.inherits(f,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id="ace/mode/json5"}.call(f.prototype),t.Mode=f}); (function() {
window.require(["ace/mode/json5"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/snippets/javascript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n ${4:// body...}\n };\n# Function\nsnippet fun\n function ${1?:function_name}(${2:argument}) {\n ${3:// body...}\n }\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n function${M1?: ${1:functionName}}($2) {\n ${0:$TM_SELECTED_TEXT}\n }${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n (function(${1}) {\n ${0:${TM_SELECTED_TEXT:/* code */}}\n }(${1}));\n# if\nsnippet if\n if (${1:true}) {\n ${0}\n }\n# if ... else\nsnippet ife\n if (${1:true}) {\n ${2}\n } else {\n ${0}\n }\n# tertiary conditional\nsnippet ter\n ${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n switch (${1:expression}) {\n case \'${3:case}\':\n ${4:// code}\n break;\n ${5}\n default:\n ${2:// code}\n }\n# case\nsnippet case\n case \'${1:case}\':\n ${2:// code}\n break;\n ${3}\n\n# while (...) {...}\nsnippet wh\n while (${1:/* condition */}) {\n ${0:/* code */}\n }\n# try\nsnippet try\n try {\n ${0:/* code */}\n } catch (e) {}\n# do...while\nsnippet do\n do {\n ${2:/* code */}\n } while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n ${1:method_name}: function(${2:attribute}) {\n ${0}\n }${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n setTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n getElementsBy${1:TagName}(\'${2}\')${3}\n# Get Element\nsnippet get\n getElementBy${1:Id}(\'${2}\')${3}\n# console.log (Firebug)\nsnippet cl\n console.log(${1});\n# return\nsnippet ret\n return ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n for (var ${1:prop} in ${2:Things}) {\n ${0:$2[$1]}\n }\n# hasOwnProperty\nsnippet has\n hasOwnProperty(${1})\n# docstring\nsnippet /**\n /**\n * ${1:description}\n *\n */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n @param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n @return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n JSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n JSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n var ${1:function_name} = function(${2:argument}) {\n ${3:// initial code ...}\n\n $1 = function($2) {\n ${4:// main code}\n };\n }\n# singleton\nsnippet sing\n function ${1:Singleton} (${2:argument}) {\n // the cached instance\n var instance;\n\n // rewrite the constructor\n $1 = function $1($2) {\n return instance;\n };\n \n // carry over the prototype properties\n $1.prototype = this;\n\n // the instance\n instance = new $1();\n\n // reset the constructor pointer\n instance.constructor = $1;\n\n ${3:// code ...}\n\n return instance;\n }\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n var ${1:class} = function(${20}) {\n $40$0\n };\n \n (function() {\n ${60:this.prop = ""}\n }).call(${1:class}.prototype);\n \n exports.${1:class} = ${1:class};\n# \nsnippet for-\n for (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n ${0:${2:Things}[${1:i}];}\n }\n# for (...) {...}\nsnippet for\n for (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n ${3:$2[$1]}$0\n }\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n for (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n ${3:$2[$1]}$0\n }\n\n\n#modules\nsnippet def\n define(function(require, exports, module) {\n "use strict";\n var ${1/.*\\///} = require("${1}");\n \n $TM_SELECTED_TEXT\n });\nsnippet req\nguard ^\\s*\n var ${1/.*\\///} = require("${1}");\n $0\nsnippet requ\nguard ^\\s*\n var ${1/.*\\/(.)/\\u$1/} = require("${1}").${1/.*\\/(.)/\\u$1/};\n $0\n',t.scope="javascript"}); (function() {
window.require(["ace/snippets/javascript"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
; (function() {
window.require(["ace/snippets/json"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
; (function() {
window.require(["ace/snippets/json5"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/theme/chrome",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-chrome",t.cssText='.ace-chrome .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-chrome .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-chrome {background-color: #FFFFFF;color: black;}.ace-chrome .ace_cursor {color: black;}.ace-chrome .ace_invisible {color: rgb(191, 191, 191);}.ace-chrome .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-chrome .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-chrome .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-chrome .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-chrome .ace_fold {}.ace-chrome .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-chrome .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other {color: rgb(109, 121, 222);}.ace-chrome .ace_variable.ace_parameter {font-style:italic;color:#FD971F;}.ace-chrome .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-chrome .ace_comment {color: #236e24;}.ace-chrome .ace_comment.ace_doc {color: #236e24;}.ace-chrome .ace_comment.ace_doc.ace_tag {color: #236e24;}.ace-chrome .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-chrome .ace_variable {color: rgb(49, 132, 149);}.ace-chrome .ace_xml-pe {color: rgb(104, 104, 91);}.ace-chrome .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-chrome .ace_heading {color: rgb(12, 7, 255);}.ace-chrome .ace_list {color:rgb(185, 6, 144);}.ace-chrome .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-chrome .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-chrome .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-chrome .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-chrome .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-chrome .ace_gutter-active-line {background-color : #dcdcdc;}.ace-chrome .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag {color: rgb(147, 15, 128);}.ace-chrome .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-chrome .ace_string {color: #1A1AA6;}.ace-chrome .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-chrome .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass,!1)}); (function() {
window.require(["ace/theme/chrome"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
"no use strict";!function(e){function t(e,t){var n=e,r="";while(n){var i=t[n];if(typeof i=="string")return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(i===!1)return"";var s=n.lastIndexOf("/");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!="undefined"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:"error",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf("!")!==-1){var r=n.split("!");return e.normalizeModule(t,r[0])+"!"+e.normalizeModule(t,r[1])}if(n.charAt(0)=="."){var i=t.split("/").slice(0,-1).join("/");n=(i?i+"/":"")+n;while(n.indexOf(".")!==-1&&s!=n){var s=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log("unable to load "+i);var o=t(i,e.require.tlns);return o.slice(-3)!=".js"&&(o+=".js"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!="string"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!="function"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=["require","exports","module"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case"require":return i;case"exports":return e.exports;case"module":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require("ace/lib/event_emitter").EventEmitter,r=e.require("ace/lib/oop"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:"call",id:t,data:e})},this.emit=function(e,t){postMessage({type:"event",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define("ace/lib/oop",[],function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define("ace/range",[],function(e,t,n){"use strict";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e=="object"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e=="object"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define("ace/apply_delta",[],function(e,t,n){"use strict";function r(e,t){throw console.log("Invalid Delta:",e),"Invalid Delta: "+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!="insert"&&t.action!="remove"&&r(t,"delta.action must be 'insert' or 'remove'"),t.lines instanceof Array||r(t,"delta.lines must be an Array"),(!t.start||!t.end)&&r(t,"delta.start/end must be an present");var n=t.start;i(e,t.start)||r(t,"delta.start must be contained in document");var s=t.end;t.action=="remove"&&!i(e,s)&&r(t,"delta.end must contained in document for 'remove' actions");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,"delta.range must match delta lines")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||"";switch(t.action){case"insert":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case"remove":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define("ace/lib/event_emitter",[],function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!="object"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define("ace/anchor",[],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n=="undefined"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action=="insert",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define("ace/document",[],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,o=e("./range").Range,u=e("./anchor").Anchor,a=function(e){this.$lines=[""],e.length===0?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},"aaa".split(/a/).length===0?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal("changeNewLineMode")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e=="\r\n"||e=="\r"||e=="\n"},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:"remove",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action=="insert";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action=="remove"&&e.start.row<t&&e.end.row<t||e.action=="insert"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(""),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action=="insert"?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define("ace/lib/lang",[],function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){var n="";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]=="object"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!="object"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!=="[object Object]")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define("ace/worker/mirror",[],function(e,t,n){"use strict";var r=e("../range").Range,i=e("../document").Document,s=e("../lib/lang"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(""),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on("change",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:"insert",start:i[s],lines:i[s+1]};else var o={action:"remove",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define("ace/mode/json/json_parse",[],function(e,t,n){"use strict";var r,i,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},o,u=function(e){throw{name:"SyntaxError",message:e,at:r,text:o}},a=function(e){return e&&e!==i&&u("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(r),r+=1,i},f=function(){var e,t="";i==="-"&&(t="-",a("-"));while(i>="0"&&i<="9")t+=i,a();if(i==="."){t+=".";while(a()&&i>="0"&&i<="9")t+=i}if(i==="e"||i==="E"){t+=i,a();if(i==="-"||i==="+")t+=i,a();while(i>="0"&&i<="9")t+=i,a()}e=+t;if(!isNaN(e))return e;u("Bad number")},l=function(){var e,t,n="",r;if(i==='"')while(a()){if(i==='"')return a(),n;if(i==="\\"){a();if(i==="u"){r=0;for(t=0;t<4;t+=1){e=parseInt(a(),16);if(!isFinite(e))break;r=r*16+e}n+=String.fromCharCode(r)}else{if(typeof s[i]!="string")break;n+=s[i]}}else{if(i=="\n"||i=="\r")break;n+=i}}u("Bad string")},c=function(){while(i&&i<=" ")a()},h=function(){switch(i){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}u("Unexpected '"+i+"'")},p,d=function(){var e=[];if(i==="["){a("["),c();if(i==="]")return a("]"),e;while(i){e.push(p()),c();if(i==="]")return a("]"),e;a(","),c()}}u("Bad array")},v=function(){var e,t={};if(i==="{"){a("{"),c();if(i==="}")return a("}"),t;while(i){e=l(),c(),a(":"),Object.hasOwnProperty.call(t,e)&&u('Duplicate key "'+e+'"'),t[e]=p(),c();if(i==="}")return a("}"),t;a(","),c()}}u("Bad object")};return p=function(){c();switch(i){case"{":return v();case"[":return d();case'"':return l();case"-":return f();default:return i>="0"&&i<="9"?f():h()}},function(e,t){var n;return o=e,r=0,i=" ",n=p(),c(),i&&u("Syntax error"),typeof t=="function"?function s(e,n){var r,i,o=e[n];if(o&&typeof o=="object")for(r in o)Object.hasOwnProperty.call(o,r)&&(i=s(o,r),i!==undefined?o[r]=i:delete o[r]);return t.call(e,n,o)}({"":n},""):n}}),define("ace/mode/json_worker",[],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../worker/mirror").Mirror,s=e("./json/json_parse"),o=t.JsonWorker=function(e){i.call(this,e),this.setTimeout(200)};r.inherits(o,i),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{e&&s(e)}catch(n){var r=this.doc.indexToPosition(n.at-1);t.push({row:r.row,column:r.column,text:n.message,type:"error"})}this.sender.emit("annotate",t)}}.call(o.prototype)})
\ No newline at end of file
[data-v-5c385f59] .el-upload{height:80px}[data-v-5c385f59] .el-upload-dragger{height:80px;border:1px dashed #d9d9d9;border-radius:6px;color:#8c939d;font-size:14px;display:flex;justify-content:center;align-items:center}[data-v-5c385f59] .el-icon-upload{font-size:36px;color:#c0c4cc;margin:0 10px}.buttons[data-v-5c385f59]{text-align:center;position:absolute;right:0;top:0}.el-button[data-v-5c385f59]{padding:4px 12px;font-size:18px;margin:0;border-radius:0 0 0 20px}body,html{margin:0;padding:0;height:100%;overflow:hidden;background-color:#fff}#app{padding:10px}.btn{margin-left:10px;font-size:14px}.warn .el-form-item__label{background-color:#f56c6c;color:#fff}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!doctype html> <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>form_vue</title><script defer="defer" src="js/chunk-vendors.1cfae6a9.js"></script><script defer="defer" src="js/app.47a798ce.js"></script><link href="css/chunk-vendors.77489a8d.css" rel="stylesheet"><link href="css/app.328601d9.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but form_vue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script><script>if (document.domain.indexOf("iteachabc.com") > 0) {
<html lang="en"> document.domain = "iteachabc.com";
}</script><div id="app"></div></body></html>
<head> \ No newline at end of file
<meta charset="utf-8">
<title>NgOne</title>
<!-- <base href="/"> -->
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script>
<style>
#saveDataTextarea {
margin: 0;
position: absolute;
top: 0;
left: 0;
right: 180px;
height: 100%;
}
.upload-container {
width: 100px;
height: 40px;
position: absolute;
right: 40px;
border-radius: 2px;
border: 1px solid #dcdfe6;
line-height: 100px;
margin: 10px;
text-align: center;
display:flex;
align-items:center;
justify-content:center;
}
.hide-fileinput {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
</style>
</head>
<body onload="loadData();" style="background-color: white;">
<pre id="saveDataTextarea"></pre>
<div class="upload-container">
<div class="upload-file">上传文件</div>
<input class="hide-fileinput" type="file" name="file" onchange="uploadFile()">
</div>
</body>
<script>
var editor = ace.edit("saveDataTextarea");
editor.setTheme("ace/theme/chrome");
editor.session.setMode("ace/mode/json");
editor.session.on('change', function(delta) {
try {
const data = JSON.parse(editor.getValue());
window.courseware.setData(data, null, "cocos_001");
} catch (error) {}
});
let saveDataStr = '';
function loadData() {
window.courseware.getData((data) => {
try {
editor.setValue(JSON.stringify(data, null, 2));
editor.gotoLine(editor.session.getLength());
} catch (error) {}
}, "cocos_001");
}
function uploadFile(){
const dom = document.querySelector(".hide-fileinput");
const file = dom.files[0];
dom.setAttribute("disabled", true);
document.querySelector(".upload-file").innerHTML = "上传中...";
commonUploadFile(file, (data) => {
try {
const d = JSON.parse(data);
const protocolStr = document.location.protocol;
const url = d.url
.replace(/http:/g, protocolStr)
.replace(/https:/g, protocolStr);
editor.insert(url);
} catch (error) {}
dom.removeAttribute("disabled");
document.querySelector(".upload-file").innerHTML = "上传文件";
});
}
function commonUploadFile(file, callback) {
const uploadUrl = window.courseware.uploadUrl(); //上传文件的路径
const uploadData = window.courseware.uploadData(); //上传文件必须要的参数
const formData = new FormData();
formData.append("file", file);
for (const key in uploadData) {
formData.append(key, uploadData[key]);
}
var xhr = new XMLHttpRequest();
xhr.open("post",uploadUrl);
//回调
xhr.onreadystatechange = function () {
if (xhr.readyState==4 && xhr.status==200){
callback && callback(xhr.responseText);
}
}
//获取上传的进度
xhr.upload.onprogress = function (event) {
if(event.lengthComputable){
var percent = event.loaded/event.total *100;
document.querySelector(".upload-file").innerHTML = Math.floor(percent)+"%";
}
}
//将formdata上传
xhr.send(formData);
}
</script>
</html>
\ No newline at end of file
(function(){"use strict";var t={4878:function(t,e,i){var a=i(5471),n=i(1052),o=i.n(n),r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[e("div",{staticStyle:{width:"500px"}},[e("el-form",{attrs:{"label-width":"80px"}},[e("el-form-item",{attrs:{label:"音频"}},[e("AudioUploader",{ref:"refAudioUploader",on:{change:t.save},model:{value:t.itemData.url,callback:function(e){t.$set(t.itemData,"url",e)},expression:"itemData.url"}})],1),e("el-form-item",{attrs:{label:"时长(秒)"}},[e("div",{staticStyle:{display:"flex"}},[e("el-input",{model:{value:t.itemData.duration,callback:function(e){t.$set(t.itemData,"duration",e)},expression:"itemData.duration"}}),e("el-button",{staticClass:"btn",attrs:{type:"ghost",size:"mini"},on:{click:function(e){return t.updateDuration()}}},[t._v("更新")])],1)]),e("el-form-item",{attrs:{label:"大小"}},[e("el-input",{model:{value:t.itemData.size,callback:function(e){t.$set(t.itemData,"size",e)},expression:"itemData.size"}})],1),t._l(t.configArr,(function(i,a){return[e("el-form-item",{class:{warn:t.configArr[a]>t.itemData.duration},attrs:{label:`第${a+1}页`}},[e("div",{staticStyle:{display:"flex"}},[e("el-input",{model:{value:t.configArr[a],callback:function(e){t.$set(t.configArr,a,e)},expression:"configArr[index]"}}),e("el-button",{staticClass:"btn",attrs:{type:"ghost",size:"mini",icon:"el-icon-video-play"},on:{click:function(e){return t.playIndex(a)}}},[t._v("播放")]),e("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini",icon:"el-icon-place"},on:{click:function(e){return t.setTag(a)}}},[t._v("打点")]),e("el-button",{staticClass:"btn",attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(e){return t.deleteConf(a)}}},[t._v("删除")])],1)])]}))],2),e("el-button",{staticClass:"btn",attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(e){return t.addConfig()}}},[t._v("新建")])],1)])},s=[],l=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{position:"relative",width:"360px",height:"80px"}},[e("el-upload",{staticStyle:{height:"100px"},attrs:{data:t.uploadData,action:t.uploadUrl,drag:"",accept:".mp3","show-file-list":!1,"on-success":t.handleUploadSuccess}},[e("i",{directives:[{name:"show",rawName:"v-show",value:!t.audioUrl,expression:"!audioUrl"}],staticClass:"el-icon-upload"}),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.audioUrl,expression:"!audioUrl"}],staticClass:"el-upload__text"},[t._v("将MP3文件拖到此处,或"),e("em",[t._v("点击上传")])]),t.audioUrl?e("div",[e("audio",{attrs:{src:t.audioUrl,controls:""}})]):t._e()]),t.audioUrl?e("div",{staticClass:"buttons"},[e("el-button",{attrs:{type:"ghost",size:"mini",icon:"el-icon-delete"},on:{click:t.deleteAudio}})],1):t._e()],1)},u=[],c=(i(5735),{name:"ImageUploader",props:{value:{type:String,default:""}},watch:{value:function(t,e){this.audioUrl=t}},data(){return{uploadUrl:"",uploadData:"",audioUrl:""}},created(){this.uploadUrl=window.courseware.uploadUrl(),this.uploadData=window.courseware.uploadData(),window["air"].getUploadCallback=(t,e)=>{this.uploadUrl=t,this.uploadData=e}},methods:{handleUploadSuccess(t){this.audioUrl=t.url,this.$emit("input",this.audioUrl),this.$emit("change",{url:this.audioUrl})},async download(){const t=this.audioUrl,e=t.split("/").pop(),i=await fetch(t);if(i.ok){const t=await i.blob(),a=window.URL.createObjectURL(t),n=document.createElement("a");n.href=a,n.download=e,document.body.appendChild(n),n.click(),this.$message({type:"success",message:"下载完成"})}else this.$message({type:"error",message:"下载失败"})},deleteAudio(){this.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.audioUrl="",this.$emit("input",""),this.$emit("change",{url:this.audioUrl})})).catch((()=>{}))}}}),d=c,f=i(1656),p=(0,f.A)(d,l,u,!1,null,"5c385f59",null),h=p.exports,m={name:"App",components:{AudioUploader:h},data(){return{itemData:{url:"",duration:0,size:0,splitConfig:""},configArr:[],endConf:0}},async mounted(){this.getData()},methods:{async getData(){const t=await this.$getData();t?(this.itemData=t,this.itemData.splitConfig&&(this.configArr=this.itemData.splitConfig.split(","))):(this.itemData={url:"https://teach.cdn.ireadabc.com/066e70f0278240e000fd0b4e39d12ef9.mp3",duration:127.08,size:2033900,splitConfig:"23.361281,31.816778,40.853425,49.199478,57.893614,66.694963,75.30565,84.465703,93.306864,127.08"},this.itemData.splitConfig&&(this.configArr=this.itemData.splitConfig.split(",")))},playScopeCallback(){const t=this.$refs.refAudioUploader.getAudioRef(),e=t.currentTime;e>=this.endConf&&(console.log("end"),t.pause(),t.removeEventListener("timeupdate",this.playScopeCallback))},playIndex(t){const e=t-1<0?0:this.configArr[t-1],i=this.configArr[t],a=this.$refs.refAudioUploader.getAudioRef();a.currentTime=e,this.endConf=i,a.removeEventListener("timeupdate",this.playScopeCallback),a.addEventListener("timeupdate",this.playScopeCallback),a.play()},setTag(t){const e=this.$refs.refAudioUploader.getAudioRef();this.configArr[t]=e.currentTime,this.save()},deleteConf(t){this.$confirm("确认删除该页吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.configArr.splice(t,1),this.save()})).catch((()=>{this.$message({type:"info",message:"已取消删除"})}))},updateDuration(){this.itemData.duration=this.$refs.refAudioUploader.getAudioRef().duration,this.save()},addConfig(){const t=this.$refs.refAudioUploader.getAudioRef();this.configArr.push(t.currentTime),this.save()},save(){this.itemData.splitConfig=this.configArr.join(","),this.$setData(this.itemData)},handleUploading(t){}}},g=m,v=(0,f.A)(g,r,s,!1,null,null,null),w=v.exports,y=i(9393);const b="getDPEData",D=function(t){const e={...t,urlParams:window.location.search,origin:"template"};window.parent.postMessage(e,"*")},U=async function(){return new Promise(((t,e)=>{let i=!1,a=setTimeout((()=>{i||(window.removeEventListener("message",n),e("timeout"))}),5e3);const n=e=>{if(e.data.action===b){i=!0,window.removeEventListener("message",n),clearTimeout(a);try{const i=JSON.parse(e.data.data);t(i.data)}catch(o){console.error("Error parsing DPE data",o),t(null)}}};D({action:b,data:window.location.search}),window.addEventListener("message",n)}))};a["default"].use(o()),a["default"].config.productionTip=!1,a["default"].prototype.$getData=()=>(console.log("===== getData ====="),new Promise(((t,e)=>{window.courseware.getData((e=>{console.log(e),t(e)}),"default_key")}))),a["default"].prototype.$getDPEData=U,a["default"].prototype.$setData=t=>{console.log("===== setData ====="),console.log(t),window.courseware.setData(t,null,"default_key")},a["default"].prototype.$echarts=y,new a["default"]({render:function(t){return t(w)}}).$mount("#app")}},e={};function i(a){var n=e[a];if(void 0!==n)return n.exports;var o=e[a]={id:a,loaded:!1,exports:{}};return t[a](o,o.exports,i),o.loaded=!0,o.exports}i.m=t,function(){i.amdO={}}(),function(){var t=[];i.O=function(e,a,n,o){if(!a){var r=1/0;for(c=0;c<t.length;c++){a=t[c][0],n=t[c][1],o=t[c][2];for(var s=!0,l=0;l<a.length;l++)(!1&o||r>=o)&&Object.keys(i.O).every((function(t){return i.O[t](a[l])}))?a.splice(l--,1):(s=!1,o<r&&(r=o));if(s){t.splice(c--,1);var u=n();void 0!==u&&(e=u)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[a,n,o]}}(),function(){i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,{a:e}),e}}(),function(){i.d=function(t,e){for(var a in e)i.o(e,a)&&!i.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){var t={524:0};i.O.j=function(e){return 0===t[e]};var e=function(e,a){var n,o,r=a[0],s=a[1],l=a[2],u=0;if(r.some((function(e){return 0!==t[e]}))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(l)var c=l(i)}for(e&&e(a);u<r.length;u++)o=r[u],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(c)},a=self["webpackChunkform_vue"]=self["webpackChunkform_vue"]||[];a.forEach(e.bind(null,0)),a.push=e.bind(null,a.push.bind(a))}();var a=i.O(void 0,[504],(function(){return i(4878)}));a=i.O(a)})();
//# sourceMappingURL=app.47a798ce.js.map
\ No newline at end of file
{"version":3,"file":"js/app.47a798ce.js","mappings":"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","sources":["webpack://form_vue/./src/App.vue?edf2","webpack://form_vue/./src/components/AudioUploader.vue?f0ff","webpack://form_vue/src/components/AudioUploader.vue","webpack://form_vue/./src/components/AudioUploader.vue?3abd","webpack://form_vue/./src/components/AudioUploader.vue","webpack://form_vue/src/App.vue","webpack://form_vue/./src/App.vue?6a4a","webpack://form_vue/./src/App.vue","webpack://form_vue/./src/api/dep.js","webpack://form_vue/./src/main.js","webpack://form_vue/webpack/bootstrap","webpack://form_vue/webpack/runtime/amd options","webpack://form_vue/webpack/runtime/chunk loaded","webpack://form_vue/webpack/runtime/compat get default export","webpack://form_vue/webpack/runtime/define property getters","webpack://form_vue/webpack/runtime/global","webpack://form_vue/webpack/runtime/hasOwnProperty shorthand","webpack://form_vue/webpack/runtime/make namespace object","webpack://form_vue/webpack/runtime/node module decorator","webpack://form_vue/webpack/runtime/jsonp chunk loading","webpack://form_vue/webpack/startup"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"app\"}},[_c('div',{staticStyle:{\"width\":\"500px\"}},[_c('el-form',{attrs:{\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"音频\"}},[_c('AudioUploader',{ref:\"refAudioUploader\",on:{\"change\":_vm.save},model:{value:(_vm.itemData.url),callback:function ($$v) {_vm.$set(_vm.itemData, \"url\", $$v)},expression:\"itemData.url\"}})],1),_c('el-form-item',{attrs:{\"label\":\"时长(秒)\"}},[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('el-input',{model:{value:(_vm.itemData.duration),callback:function ($$v) {_vm.$set(_vm.itemData, \"duration\", $$v)},expression:\"itemData.duration\"}}),_c('el-button',{staticClass:\"btn\",attrs:{\"type\":\"ghost\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.updateDuration()}}},[_vm._v(\"更新\")])],1)]),_c('el-form-item',{attrs:{\"label\":\"大小\"}},[_c('el-input',{model:{value:(_vm.itemData.size),callback:function ($$v) {_vm.$set(_vm.itemData, \"size\", $$v)},expression:\"itemData.size\"}})],1),_vm._l((_vm.configArr),function(conf,index){return [_c('el-form-item',{class:{'warn': _vm.configArr[index] > _vm.itemData.duration},attrs:{\"label\":`第${index+1}页`}},[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('el-input',{model:{value:(_vm.configArr[index]),callback:function ($$v) {_vm.$set(_vm.configArr, index, $$v)},expression:\"configArr[index]\"}}),_c('el-button',{staticClass:\"btn\",attrs:{\"type\":\"ghost\",\"size\":\"mini\",\"icon\":\"el-icon-video-play\"},on:{\"click\":function($event){return _vm.playIndex(index)}}},[_vm._v(\"播放\")]),_c('el-button',{staticClass:\"btn\",attrs:{\"type\":\"primary\",\"size\":\"mini\",\"icon\":\"el-icon-place\"},on:{\"click\":function($event){return _vm.setTag(index)}}},[_vm._v(\"打点\")]),_c('el-button',{staticClass:\"btn\",attrs:{\"type\":\"danger\",\"size\":\"mini\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return _vm.deleteConf(index)}}},[_vm._v(\"删除\")])],1)])]})],2),_c('el-button',{staticClass:\"btn\",attrs:{\"type\":\"danger\",\"size\":\"mini\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return _vm.addConfig()}}},[_vm._v(\"新建\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{\"position\":\"relative\",\"width\":\"360px\",\"height\":\"80px\"}},[_c('el-upload',{staticStyle:{\"height\":\"100px\"},attrs:{\"data\":_vm.uploadData,\"action\":_vm.uploadUrl,\"drag\":\"\",\"accept\":\".mp3\",\"show-file-list\":false,\"on-success\":_vm.handleUploadSuccess}},[_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.audioUrl),expression:\"!audioUrl\"}],staticClass:\"el-icon-upload\"}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.audioUrl),expression:\"!audioUrl\"}],staticClass:\"el-upload__text\"},[_vm._v(\"将MP3文件拖到此处,或\"),_c('em',[_vm._v(\"点击上传\")])]),(_vm.audioUrl)?_c('div',[_c('audio',{attrs:{\"src\":_vm.audioUrl,\"controls\":\"\"}})]):_vm._e()]),(_vm.audioUrl)?_c('div',{staticClass:\"buttons\"},[_c('el-button',{attrs:{\"type\":\"ghost\",\"size\":\"mini\",\"icon\":\"el-icon-delete\"},on:{\"click\":_vm.deleteAudio}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 视频上传组件 -->\n<template>\n <div style=\"position: relative; width: 360px; height: 80px;\">\n <el-upload style=\"height: 100px;\" :data=\"uploadData\" :action=\"uploadUrl\" drag accept=\".mp3\" :show-file-list=\"false\" :on-success=\"handleUploadSuccess\">\n <!-- 上传提示 -->\n <i v-show=\"!audioUrl\" class=\"el-icon-upload\"></i>\n <div v-show=\"!audioUrl\" class=\"el-upload__text\">将MP3文件拖到此处,或<em>点击上传</em></div>\n\n <!-- 音频预览 -->\n <div v-if=\"audioUrl\" >\n <audio :src=\"audioUrl\" controls></audio>\n </div>\n </el-upload>\n\n <!-- 下载 删除按钮 -->\n <div v-if=\"audioUrl\" class=\"buttons\">\n <!-- <el-button type=\"ghost\" size=\"mini\" icon=\"el-icon-download\" @click=\"download\"></el-button> -->\n <el-button type=\"ghost\" size=\"mini\" icon=\"el-icon-delete\" @click=\"deleteAudio\"></el-button>\n </div>\n </div>\n</template>\n\n<script>\nimport SparkMD5 from 'spark-md5';\n\nexport default {\n name: 'ImageUploader',\n props: {\n value: {\n type: String,\n default: ''\n },\n },\n watch: {\n value: function (val, oldVal) {\n this.audioUrl = val\n }\n },\n data() {\n return {\n // 上传地址\n uploadUrl: \"\",\n // 上传附带的DATA\n uploadData: \"\",\n // 图片地址\n audioUrl: \"\",\n }\n },\n\n created() {\n // 获取上传地址\n this.uploadUrl = window.courseware.uploadUrl();\n this.uploadData = window.courseware.uploadData();\n window['air'].getUploadCallback = (url, data) => {\n this.uploadUrl = url;\n this.uploadData = data;\n };\n },\n\n methods: {\n handleUploadSuccess(e) {\n this.audioUrl = e.url;\n this.$emit(\"input\", this.audioUrl);\n this.$emit('change', { url: this.audioUrl});\n },\n\n async download() {\n const url = this.audioUrl\n const fileName = url.split('/').pop()\n const response = await fetch(url) //发送GET请求\n if (response.ok) {\n const blob = await response.blob() //获取Blob对象\n const url = window.URL.createObjectURL(blob) //创建Blob对象的URL\n const link = document.createElement('a') //创建一个新的<a>元素\n link.href = url //设置<a>元素的href属性为Blob对象的URL\n link.download = fileName //设置下载文件的文件名\n document.body.appendChild(link) //将<a>元素添加到文档中\n link.click() //模拟点击<a>元素以触发文件下载\n this.$message({\n type: 'success',\n message: '下载完成'\n });\n } else {\n //处理API响应失败的情况,例如显示错误消息\n this.$message({\n type: 'error',\n message: '下载失败'\n });\n }\n },\n\n\n deleteAudio() {\n this.$confirm('确定要删除吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n this.audioUrl = \"\";\n this.$emit(\"input\", \"\");\n this.$emit('change', { url: this.audioUrl});\n }).catch(() => {\n // this.$message({\n // type: 'info',\n // message: '已取消删除'\n // });\n });\n },\n\n },\n\n}\n</script>\n\n<style scoped>\n::v-deep .el-upload {\n height: 80px;\n}\n\n::v-deep .el-upload-dragger {\n height: 80px;\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n /* background-color: #f7f7f7; */\n color: #8c939d;\n font-size: 14px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n::v-deep .el-icon-upload {\n font-size: 36px;\n color: #c0c4cc;\n margin: 0 10px;\n}\n\n.buttons {\n text-align: center;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.el-button {\n padding: 4px 12px;\n font-size: 18px;\n margin: 0;\n border-radius: 0 0 0 20px;\n}\n</style>","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AudioUploader.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AudioUploader.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AudioUploader.vue?vue&type=template&id=5c385f59&scoped=true\"\nimport script from \"./AudioUploader.vue?vue&type=script&lang=js\"\nexport * from \"./AudioUploader.vue?vue&type=script&lang=js\"\nimport style0 from \"./AudioUploader.vue?vue&type=style&index=0&id=5c385f59&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5c385f59\",\n null\n \n)\n\nexport default component.exports","<template>\n <div id=\"app\">\n <div style=\"width: 500px;\">\n <el-form label-width=\"80px\"> \n <el-form-item label=\"音频\">\n <AudioUploader ref=\"refAudioUploader\" v-model=\"itemData.url\" @change=\"save\"/>\n </el-form-item>\n\n <el-form-item label=\"时长(秒)\">\n <div style=\"display: flex;\">\n <el-input v-model=\"itemData.duration\"></el-input>\n <el-button class=\"btn\" type=\"ghost\" size=\"mini\" @click=\"updateDuration()\">更新</el-button>\n </div>\n </el-form-item>\n\n <el-form-item label=\"大小\">\n <el-input v-model=\"itemData.size\"></el-input>\n </el-form-item>\n\n <template v-for=\"conf,index in configArr\">\n <el-form-item :class=\"{'warn': configArr[index] > itemData.duration}\" :label=\"`第${index+1}页`\">\n <div style=\"display: flex;\">\n <el-input v-model=\"configArr[index]\"></el-input>\n <el-button class=\"btn\" type=\"ghost\" size=\"mini\" @click=\"playIndex(index)\" icon=\"el-icon-video-play\">播放</el-button>\n <el-button class=\"btn\" type=\"primary\" size=\"mini\" @click=\"setTag(index)\" icon=\"el-icon-place\">打点</el-button>\n <el-button class=\"btn\" type=\"danger\" size=\"mini\" @click=\"deleteConf(index)\" icon=\"el-icon-delete\">删除</el-button>\n </div>\n </el-form-item>\n </template>\n </el-form>\n <el-button class=\"btn\" type=\"danger\" size=\"mini\" @click=\"addConfig()\" icon=\"el-icon-delete\">新建</el-button>\n </div>\n </div>\n</template>\n\n<script>\nimport AudioUploader from './components/AudioUploader.vue'\n\nexport default {\n name: 'App',\n components: {\n AudioUploader\n },\n data() {\n return {\n itemData: {\n \"url\": \"\",\n \"duration\": 0,\n \"size\": 0,\n \"splitConfig\": \"\"\n },\n configArr: [],\n // 结束时间点\n endConf: 0\n };\n },\n async mounted() {\n this.getData();\n },\n methods: {\n async getData() {\n const res = await this.$getData();\n if(!res) {\n // 默认数据\n this.itemData = {\n \"url\": \"https://teach.cdn.ireadabc.com/066e70f0278240e000fd0b4e39d12ef9.mp3\",\n \"duration\": 127.08,\n \"size\": 2033900,\n \"splitConfig\": \"23.361281,31.816778,40.853425,49.199478,57.893614,66.694963,75.30565,84.465703,93.306864,127.08\"\n }\n if(this.itemData.splitConfig) {\n this.configArr = this.itemData.splitConfig.split(',')\n }\n } else {\n this.itemData = res\n if(this.itemData.splitConfig) {\n this.configArr = this.itemData.splitConfig.split(',')\n }\n }\n },\n\n // 播放区间\n playScopeCallback() {\n const refAudio = this.$refs.refAudioUploader.getAudioRef();\n const currentTime = refAudio.currentTime;\n if (currentTime >= this.endConf) {\n console.log(\"end\")\n refAudio.pause();\n refAudio.removeEventListener(\"timeupdate\", this.playScopeCallback);\n }\n },\n\n // 播放单页音频\n playIndex(index) {\n const strConf = index - 1 < 0 ? 0 : this.configArr[index - 1]\n const endConf = this.configArr[index]\n const refAudio = this.$refs.refAudioUploader.getAudioRef();\n\n refAudio.currentTime = strConf;\n this.endConf = endConf;\n refAudio.removeEventListener(\"timeupdate\", this.playScopeCallback);\n refAudio.addEventListener(\"timeupdate\", this.playScopeCallback);\n\n refAudio.play();\n },\n\n // 打点\n setTag(index) {\n const refAudio = this.$refs.refAudioUploader.getAudioRef();\n this.configArr[index] = refAudio.currentTime;\n \n this.save()\n },\n\n // 删除\n deleteConf(index) {\n this.$confirm('确认删除该页吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n this.configArr.splice(index, 1)\n this.save()\n }).catch(() => {\n this.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n },\n\n // 更新时长\n updateDuration() {\n this.itemData.duration = this.$refs.refAudioUploader.getAudioRef().duration\n this.save()\n },\n\n // 添加新的配置\n addConfig() {\n const refAudio = this.$refs.refAudioUploader.getAudioRef();\n this.configArr.push(refAudio.currentTime)\n this.save()\n },\n\n // 保存数据\n save() {\n this.itemData.splitConfig = this.configArr.join(',')\n this.$setData(this.itemData)\n },\n\n handleUploading(progress) {\n\n }\n }\n}\n</script>\n\n<style>\nbody,\nhtml {\n margin: 0;\n padding: 0;\n height: 100%;\n overflow: hidden;\n background-color: #FFFFFF;\n}\n\n#app {\n padding: 10px;\n}\n\n.btn {\n margin-left: 10px;\n font-size: 14px;\n}\n\n.warn .el-form-item__label {\n background-color: #F56C6C;\n color: #FFFFFF;\n}\n</style>\n","import mod from \"-!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=a2b71000\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=a2b71000&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","const actionName = \"getDPEData\";\n\nconst commonPostMessage = function (messageObj) {\n const obj = { ...messageObj, urlParams: window.location.search, origin: \"template\" }\n window.parent.postMessage(obj, '*');\n};\n\nexport const getDPEData = async function () {\n return new Promise((resolve, reject) => {\n let processed = false;\n let timeoutId = setTimeout(() => {\n if (!processed) {\n window.removeEventListener(\"message\", eventCallback);\n reject(\"timeout\")\n }\n }, 5000);\n\n const eventCallback = (e) => {\n if(e.data.action !== actionName) {\n return;\n }\n processed = true;\n window.removeEventListener(\"message\", eventCallback);\n clearTimeout(timeoutId);\n try {\n const data = JSON.parse(e.data.data);\n resolve(data.data)\n } catch (error) {\n console.error(\"Error parsing DPE data\", error);\n resolve(null)\n }\n }\n commonPostMessage({ action: actionName, data: window.location.search }); \n window.addEventListener(\"message\", eventCallback)\n })\n}","import Vue from 'vue'\nimport ElementUI from 'element-ui';\nimport 'element-ui/lib/theme-chalk/index.css';\nimport App from './App.vue'\nimport * as echarts from 'echarts';\nimport { getDPEData } from './api/dep'\n\nVue.use(ElementUI);\n\nVue.config.productionTip = false\nVue.prototype.$getData = () => {\n console.log(\"===== getData =====\");\n return new Promise((resolve, reject) => {\n (window).courseware.getData((data) => {\n console.log(data);\n resolve(data)\n }, \"default_key\")\n })\n}\n\nVue.prototype.$getDPEData = getDPEData;\n\nVue.prototype.$setData = (data) => {\n console.log(\"===== setData =====\");\n console.log(data);\n (window).courseware.setData(data, null, \"default_key\")\n}\n\nVue.prototype.$echarts = echarts\n\nnew Vue({\n render: function (h) { return h(App) },\n}).$mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkform_vue\"] = self[\"webpackChunkform_vue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(4878); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["render","_vm","this","_c","_self","attrs","staticStyle","ref","on","save","model","value","itemData","callback","$$v","$set","expression","staticClass","$event","updateDuration","_v","_l","conf","index","class","configArr","duration","playIndex","setTag","deleteConf","addConfig","staticRenderFns","uploadData","uploadUrl","handleUploadSuccess","directives","name","rawName","audioUrl","_e","deleteAudio","props","type","String","default","watch","val","oldVal","data","created","window","courseware","getUploadCallback","url","methods","e","$emit","download","fileName","split","pop","response","fetch","ok","blob","URL","createObjectURL","link","document","createElement","href","body","appendChild","click","$message","message","$confirm","confirmButtonText","cancelButtonText","then","catch","component","components","AudioUploader","endConf","mounted","getData","res","$getData","splitConfig","playScopeCallback","refAudio","$refs","refAudioUploader","getAudioRef","currentTime","console","log","pause","removeEventListener","strConf","addEventListener","play","splice","push","join","$setData","handleUploading","progress","actionName","commonPostMessage","messageObj","obj","urlParams","location","search","origin","parent","postMessage","getDPEData","async","Promise","resolve","reject","processed","timeoutId","setTimeout","eventCallback","action","clearTimeout","JSON","parse","error","use","config","productionTip","prototype","$getDPEData","setData","$echarts","echarts","h","App","$mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","m","amdO","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","prop","hasOwnProperty","call","Symbol","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# form_vue
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "form_vue",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --open",
"build": "vue-cli-service build"
},
"dependencies": {
"axios": "^1.7.2",
"crypto-js": "^4.2.0",
"echarts": "^5.5.0",
"element-ui": "^2.15.14",
"spark-md5": "^3.0.2",
"uuid": "^10.0.0",
"vue": "^2.6.14"
},
"devDependencies": {
"@vue/cli-service": "~5.0.0",
"vue-template-compiler": "^2.6.14"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script>
<script>
if (document.domain.indexOf("iteachabc.com") > 0) {
document.domain = "iteachabc.com";
}
</script>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
<template>
<div id="app">
<div style="width: 500px;">
<el-form label-width="80px">
<el-form-item label="音频">
<AudioUploader ref="refAudioUploader" v-model="itemData.url" @change="save"/>
</el-form-item>
<el-form-item label="时长(秒)">
<div style="display: flex;">
<el-input v-model="itemData.duration"></el-input>
<el-button class="btn" type="ghost" size="mini" @click="updateDuration()">更新</el-button>
</div>
</el-form-item>
<el-form-item label="大小">
<el-input v-model="itemData.size"></el-input>
</el-form-item>
<template v-for="conf,index in configArr">
<el-form-item :class="{'warn': configArr[index] > itemData.duration}" :label="`第${index+1}页`">
<div style="display: flex;">
<el-input v-model="configArr[index]"></el-input>
<el-button class="btn" type="ghost" size="mini" @click="playIndex(index)" icon="el-icon-video-play">播放</el-button>
<el-button class="btn" type="primary" size="mini" @click="setTag(index)" icon="el-icon-place">打点</el-button>
<el-button class="btn" type="danger" size="mini" @click="deleteConf(index)" icon="el-icon-delete">删除</el-button>
</div>
</el-form-item>
</template>
</el-form>
<el-button class="btn" type="danger" size="mini" @click="addConfig()" icon="el-icon-delete">新建</el-button>
</div>
</div>
</template>
<script>
import AudioUploader from './components/AudioUploader.vue'
export default {
name: 'App',
components: {
AudioUploader
},
data() {
return {
itemData: {
"url": "",
"duration": 0,
"size": 0,
"splitConfig": ""
},
configArr: [],
// 结束时间点
endConf: 0
};
},
async mounted() {
this.getData();
},
methods: {
async getData() {
const res = await this.$getData();
if(!res) {
// 默认数据
this.itemData = {
"url": "https://teach.cdn.ireadabc.com/066e70f0278240e000fd0b4e39d12ef9.mp3",
"duration": 127.08,
"size": 2033900,
"splitConfig": "23.361281,31.816778,40.853425,49.199478,57.893614,66.694963,75.30565,84.465703,93.306864,127.08"
}
if(this.itemData.splitConfig) {
this.configArr = this.itemData.splitConfig.split(',')
}
} else {
this.itemData = res
if(this.itemData.splitConfig) {
this.configArr = this.itemData.splitConfig.split(',')
}
}
},
// 播放区间
playScopeCallback() {
const refAudio = this.$refs.refAudioUploader.getAudioRef();
const currentTime = refAudio.currentTime;
if (currentTime >= this.endConf) {
console.log("end")
refAudio.pause();
refAudio.removeEventListener("timeupdate", this.playScopeCallback);
}
},
// 播放单页音频
playIndex(index) {
const strConf = index - 1 < 0 ? 0 : this.configArr[index - 1]
const endConf = this.configArr[index]
const refAudio = this.$refs.refAudioUploader.getAudioRef();
refAudio.currentTime = strConf;
this.endConf = endConf;
refAudio.removeEventListener("timeupdate", this.playScopeCallback);
refAudio.addEventListener("timeupdate", this.playScopeCallback);
refAudio.play();
},
// 打点
setTag(index) {
const refAudio = this.$refs.refAudioUploader.getAudioRef();
this.configArr[index] = refAudio.currentTime;
this.save()
},
// 删除
deleteConf(index) {
this.$confirm('确认删除该页吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.configArr.splice(index, 1)
this.save()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
// 更新时长
updateDuration() {
this.itemData.duration = this.$refs.refAudioUploader.getAudioRef().duration
this.save()
},
// 添加新的配置
addConfig() {
const refAudio = this.$refs.refAudioUploader.getAudioRef();
this.configArr.push(refAudio.currentTime)
this.save()
},
// 保存数据
save() {
this.itemData.splitConfig = this.configArr.join(',')
this.$setData(this.itemData)
},
handleUploading(progress) {
}
}
}
</script>
<style>
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
background-color: #FFFFFF;
}
#app {
padding: 10px;
}
.btn {
margin-left: 10px;
font-size: 14px;
}
.warn .el-form-item__label {
background-color: #F56C6C;
color: #FFFFFF;
}
</style>
const actionName = "getDPEData";
const commonPostMessage = function (messageObj) {
const obj = { ...messageObj, urlParams: window.location.search, origin: "template" }
window.parent.postMessage(obj, '*');
};
export const getDPEData = async function () {
return new Promise((resolve, reject) => {
let processed = false;
let timeoutId = setTimeout(() => {
if (!processed) {
window.removeEventListener("message", eventCallback);
reject("timeout")
}
}, 5000);
const eventCallback = (e) => {
if(e.data.action !== actionName) {
return;
}
processed = true;
window.removeEventListener("message", eventCallback);
clearTimeout(timeoutId);
try {
const data = JSON.parse(e.data.data);
resolve(data.data)
} catch (error) {
console.error("Error parsing DPE data", error);
resolve(null)
}
}
commonPostMessage({ action: actionName, data: window.location.search });
window.addEventListener("message", eventCallback)
})
}
\ No newline at end of file
import axios from "axios";
const org = 523;
const dpe_root = 275931;
const base_url = "https://ema.iteachabc.com/api/syllabus/v1";
export const getSyllabusListById = (syllabus_id) => {
return new Promise(async (resolve, reject) => {
const res = await axios.get(`${base_url}/list?orgid=${org}&pid=${syllabus_id?syllabus_id:dpe_root}`);
resolve(res.data);
})
}
export const getFirstCoursewareBySyllId = (syllabus_id) => {
return new Promise(async (resolve, reject) => {
const res = await axios.get(`${base_url}/getdata?syllabusid=${syllabus_id}`);
resolve(res.data);
})
}
export const getCoursewarePageBySyllId = (syllabus_id, page) => {
return new Promise(async (resolve, reject) => {
const res = await axios.get(`${base_url}/getpagedata?syllabusid=${syllabus_id}&page=${page}`);
resolve(res.data);
})
}
export const getAllCoursewareBySyllId = (syllabus_id) => {
return new Promise(async (resolve, reject) => {
const res = await axios.get(`${base_url}/getdatalist?syllabusids=${syllabus_id}`);
resolve(res.data);
})
}
export const getPidPathName = (pid_path) => {
return new Promise(async (resolve, reject) => {
const res = await axios.get(`${base_url}/pathname?pid_path=${pid_path}`);
resolve(res.data);
})
}
\ No newline at end of file
<!-- 视频上传组件 -->
<template>
<div style="position: relative; width: 360px; height: 80px;">
<el-upload style="height: 100px;" :data="uploadData" :action="uploadUrl" drag accept=".mp3" :show-file-list="false" :on-success="handleUploadSuccess">
<!-- 上传提示 -->
<i v-show="!audioUrl" class="el-icon-upload"></i>
<div v-show="!audioUrl" class="el-upload__text">将MP3文件拖到此处,或<em>点击上传</em></div>
<!-- 音频预览 -->
<div v-if="audioUrl" >
<audio :src="audioUrl" controls></audio>
</div>
</el-upload>
<!-- 下载 删除按钮 -->
<div v-if="audioUrl" class="buttons">
<!-- <el-button type="ghost" size="mini" icon="el-icon-download" @click="download"></el-button> -->
<el-button type="ghost" size="mini" icon="el-icon-delete" @click="deleteAudio"></el-button>
</div>
</div>
</template>
<script>
import SparkMD5 from 'spark-md5';
export default {
name: 'ImageUploader',
props: {
value: {
type: String,
default: ''
},
},
watch: {
value: function (val, oldVal) {
this.audioUrl = val
}
},
data() {
return {
// 上传地址
uploadUrl: "",
// 上传附带的DATA
uploadData: "",
// 图片地址
audioUrl: "",
}
},
created() {
// 获取上传地址
this.uploadUrl = window.courseware.uploadUrl();
this.uploadData = window.courseware.uploadData();
window['air'].getUploadCallback = (url, data) => {
this.uploadUrl = url;
this.uploadData = data;
};
},
methods: {
handleUploadSuccess(e) {
this.audioUrl = e.url;
this.$emit("input", this.audioUrl);
this.$emit('change', { url: this.audioUrl});
},
async download() {
const url = this.audioUrl
const fileName = url.split('/').pop()
const response = await fetch(url) //发送GET请求
if (response.ok) {
const blob = await response.blob() //获取Blob对象
const url = window.URL.createObjectURL(blob) //创建Blob对象的URL
const link = document.createElement('a') //创建一个新的<a>元素
link.href = url //设置<a>元素的href属性为Blob对象的URL
link.download = fileName //设置下载文件的文件名
document.body.appendChild(link) //将<a>元素添加到文档中
link.click() //模拟点击<a>元素以触发文件下载
this.$message({
type: 'success',
message: '下载完成'
});
} else {
//处理API响应失败的情况,例如显示错误消息
this.$message({
type: 'error',
message: '下载失败'
});
}
},
deleteAudio() {
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.audioUrl = "";
this.$emit("input", "");
this.$emit('change', { url: this.audioUrl});
}).catch(() => {
// this.$message({
// type: 'info',
// message: '已取消删除'
// });
});
},
},
}
</script>
<style scoped>
::v-deep .el-upload {
height: 80px;
}
::v-deep .el-upload-dragger {
height: 80px;
border: 1px dashed #d9d9d9;
border-radius: 6px;
/* background-color: #f7f7f7; */
color: #8c939d;
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
}
::v-deep .el-icon-upload {
font-size: 36px;
color: #c0c4cc;
margin: 0 10px;
}
.buttons {
text-align: center;
position: absolute;
right: 0;
top: 0;
}
.el-button {
padding: 4px 12px;
font-size: 18px;
margin: 0;
border-radius: 0 0 0 20px;
}
</style>
\ No newline at end of file
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<p>
For a guide and recipes on how to configure / customize this project,<br>
check out the
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
</p>
<h3>Installed CLI Plugins</h3>
<ul>
</ul>
<h3>Essential Links</h3>
<ul>
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
</ul>
<h3>Ecosystem</h3>
<ul>
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
</ul>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
<!-- 视频上传组件 -->
<template>
<div style="position: relative; width: 360px; height: 180px;">
<el-upload :data="uploadData" :action="uploadUrl" drag accept=".png,.jpg,.jpeg,.bmp,.gif" :show-file-list="false" :on-success="handleUploadSuccess">
<!-- 上传提示 -->
<i v-show="!imageUrl" class="el-icon-upload"></i>
<div v-show="!imageUrl" class="el-upload__text">将文件拖到此处,或<em>点击上传</em><br/><span style="font-size: 14px;">只能上传 <strong>jpg、png、jpeg、gif、bmp</strong> 文件</span></div>
<!-- 预览图片 -->
<div v-if="imageUrl" style="width: 100%; height: 100%;">
<el-image style="width: 100%; height: 100%" :src="imageUrl" fit="contain"></el-image>
</div>
</el-upload>
<!-- 下载 删除按钮 -->
<el-button-group v-if="imageUrl" class="buttons">
<el-button type="ghost" size="mini" icon="el-icon-download" @click="download"></el-button>
<el-button type="ghost" size="mini" icon="el-icon-delete" @click="deleteImg"></el-button>
</el-button-group>
</div>
</template>
<script>
import SparkMD5 from 'spark-md5';
export default {
name: 'ImageUploader',
props: {
value: {
type: String,
default: ''
},
},
watch: {
value: function (val, oldVal) {
this.imageUrl = val
}
},
data() {
return {
// 上传地址
uploadUrl: "",
// 上传附带的DATA
uploadData: "",
// 图片地址
imageUrl: "",
}
},
created() {
// 获取上传地址
this.uploadUrl = window.courseware.uploadUrl();
this.uploadData = window.courseware.uploadData();
window['air'].getUploadCallback = (url, data) => {
this.uploadUrl = url;
this.uploadData = data;
};
},
methods: {
handleUploadSuccess(e) {
this.imageUrl = e.url;
this.$emit("input", this.imageUrl);
this.$emit('change', { url: this.imageUrl});
},
async download() {
const url = this.imageUrl
const fileName = url.split('/').pop()
const response = await fetch(url) //发送GET请求
if (response.ok) {
const blob = await response.blob() //获取Blob对象
const url = window.URL.createObjectURL(blob) //创建Blob对象的URL
const link = document.createElement('a') //创建一个新的<a>元素
link.href = url //设置<a>元素的href属性为Blob对象的URL
link.download = fileName //设置下载文件的文件名
document.body.appendChild(link) //将<a>元素添加到文档中
link.click() //模拟点击<a>元素以触发文件下载
this.$message({
type: 'success',
message: '下载完成'
});
} else {
//处理API响应失败的情况,例如显示错误消息
this.$message({
type: 'error',
message: '下载失败'
});
}
},
deleteImg() {
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.imageUrl = "";
this.$emit("input", "");
this.$emit('change', { url: this.imageUrl});
}).catch(() => {
// this.$message({
// type: 'info',
// message: '已取消删除'
// });
});
},
},
}
</script>
<style scoped>
.buttons {
text-align: center;
position: absolute;
right: 0;
top: 0;
}
.buttons .el-button {
padding: 4px 12px;
font-size: 18px;
margin: 0;
border-radius: initial;
}
</style>
\ No newline at end of file
<template>
<div class="com-trs">
<div ref="refEcharts" class="chart-slider"></div>
</div>
</template>
<script>
export default {
name: 'TimeRangeSelector',
props: {
value: {
type: Object,
default: () => {
return {
start: 0,
end: 100
}
}
}
},
watch: {
value: {
handler(val) {
this.parentValueChange = true;
this.setTimeRange(val.start * 100, val.end * 100);
},
deep: true
}
},
data() {
return {
insECharts: null,
parentValueChange: false
}
},
mounted() {
this.initEcharts();
},
methods: {
initEcharts() {
if(!this.insECharts) {
this.insECharts = this.$echarts.init(this.$refs.refEcharts);
}
const option = {
grid: {
left: 10,
right: 10,
top: 10,
bottom: 10
},
tooltip: {},
dataZoom: [
{
type: 'slider'
},
],
xAxis: { show: false } ,
yAxis: { show: false },
};
this.insECharts.on('dataZoom', (evt) => {
if(this.parentValueChange) {
this.parentValueChange = false;
return;
}
this.$emit('change', {
start: evt.start / 100,
end: evt.end / 100
})
this.$emit('input', {
start: evt.start / 100,
end: evt.end / 100
})
})
this.insECharts.setOption(option);
},
setTimeRange(start, end) {
this.insECharts.dispatchAction({
type: 'dataZoom',
// 可选,dataZoom 组件的 index,多个 dataZoom 组件时有用,默认为 0
dataZoomIndex: 0,
// 开始位置的百分比,0 - 100
start: start,
// 结束位置的百分比,0 - 100
end: end,
// // 开始位置的数值
// startValue: number,
// // 结束位置的数值
// endValue: number
});
}
},
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.com-trs {
width: 100%;
height: 50px;
}
.chart-slider {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
<!-- 视频上传组件 -->
<template>
<div style="position: relative; width: 360px; height: 220px;">
<el-upload :data="uploadData" :disabled="uploading || transcoding" :action="uploadUrl" drag :before-upload="customReq" accept=".mp4" :show-file-list="false">
<!-- 上传提示 -->
<i v-show="!transcoding && !videoDone && !uploading" class="el-icon-upload"></i>
<div v-show="!transcoding && !videoDone && !uploading" class="el-upload__text">将MP4文件拖到此处,或<em>点击上传</em></div>
<div v-if="!transcoding && !videoDone && !uploading" style="text-align: center;" class="el-upload__tip" slot="tip">只能上传mp4文件</div>
<div v-if="transcoding" style="text-align: center;" class="el-upload__tip" slot="tip">视频后台转码中,请稍后...</div>
<!-- 进度条 -->
<div v-show="!transcoding && !videoDone && uploading"
style="position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);">
<el-progress type="circle" :percentage="uploadPercentage" :status="uploadStatus"></el-progress>
<div>{{ uploadSpeed }}</div>
</div>
<!-- 预览视频 -->
<div v-show="!transcoding && videoDone">
<video ref="refVideo" width="360px" height="180px" controls crossOrigin="anonymous">
<source :src="`${videoUrl}`" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<!-- 转换动画 -->
<div v-if="transcoding">
<div class="mesh-loader">
<div class="set-one">
<div class="circle"></div>
<div class="circle"></div>
</div>
<div class="set-two">
<div class="circle"></div>
<div class="circle"></div>
</div>
</div>
</div>
</el-upload>
<!-- 截图 下载 删除按钮 -->
<div v-if="videoDone" class="buttons">
<el-button type="primary" size="mini" icon="el-icon-camera" @click="captureVideo"></el-button>
<el-button type="primary" size="mini" icon="el-icon-download" @click="download"></el-button>
<el-button type="danger" size="mini" icon="el-icon-delete" @click="deleteVideo"></el-button>
</div>
</div>
</template>
<script>
import cryptoJs from 'crypto-js';
import axios from 'axios';
import SparkMD5 from 'spark-md5';
export default {
name: 'VideoUploader',
props: {
value: {
type: String,
default: ''
},
},
watch: {
value: function (val, oldVal) {
// 监测父组件的更新
if(val) {
// 查看是否资源已经存在
this.httpHeadCall(val, async (exist) => {
if (exist) {
// 存在,直接标记视频完成
this.videoDone = true
} else {
// 如果不存在则默认是正在后台转码状态
this.transcoding = true;
await this.checkResourceAvaliable();
this.$message({
type: 'success',
message: '转换完成'
});
this.videoDone = true;
this.transcoding = false;
// 刷新视频源
this.$refs.refVideo.load()
}
})
}
this.videoUrl = val
},
videoUrl: function() {
this.$refs.refVideo.load()
}
},
data() {
return {
// 上传地址
uploadUrl: "",
// 上传附带的DATA
uploadData: "",
// 上传中标记位
uploading: false,
// 转码中
transcoding: false,
// 视频是否上传完成
videoDone: false,
// 上传进度
uploadPercentage: 0,
// 上传进度条状态 null success
uploadStatus: null,
// 上传速度
uploadSpeed: "0KB/s",
// 上传开始时间
startTime: null,
// 上传结束时间
endTime: null,
// 已经上传的文件大小
loaded: 0,
// 视频地址
videoUrl: "",
// 定时器ID
setIntervalIds: [],
setTimeoutIds: [],
}
},
created() {
// 获取上传地址
this.uploadUrl = window.courseware.uploadVideoUrl();
this.uploadData = window.courseware.uploadData();
window['air'].getUploadVideoCallback = (url, data) => {
this.uploadUrl = url;
this.uploadData = data;
};
},
mounted() {
// 添加点击事件监听,防止点击视频画面自动播放。(点击视频画面可以重新上传视频)
this.$refs.refVideo.addEventListener('click', () => {
const stop = () => {
this.$refs.refVideo.pause();
this.$refs.refVideo.removeEventListener("play", stop)
}
this.$refs.refVideo.addEventListener("play", stop)
});
},
methods: {
// 解析文件名
parseFileName(fileName) {
const lastDotIndex = fileName.lastIndexOf('.');
const name = fileName.substring(0, lastDotIndex);
const ext = fileName.substring(lastDotIndex);
return { name, ext };
},
// 重置上传变量
resetUploadVars() {
this.uploadPercentage = 0;
this.uploadStatus = null;
this.uploadSpeed = "0KB/s";
this.startTime = null;
this.endTime = null;
this.loaded = 0;
},
// 发送HEAD请求 测试资源是否存在
httpHeadCall(requsetUrl, callback) {
let xhr = new XMLHttpRequest();
try {
xhr.onreadystatechange = () => {
try {
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 400)) {
callback(true);
} else {
callback(false);
}
}
} catch (e) {
callback(false);
}
};
xhr.open("HEAD", requsetUrl, true);
xhr.send();
xhr.timeout = 15000;
xhr.onerror = (e) => {
callback(false);
};
xhr.ontimeout = (e) => {
callback(false);
};
} catch (e) {
callback(false);
}
},
// 上传文件
async customReq(item) {
const { name, ext } = this.parseFileName(item.name)
if (ext !== '.mp4') {
this.$message({
type: 'error',
message: '只能上传mp4文件'
});
return false
}
// 获取文件MD5
const fileName = await this.getFileMD5(item);
const protocolStr = document.location.protocol;
const baseCDN = `${protocolStr}//teach.cdn.ireadabc.com`;
const baseAPI = `${protocolStr}//openapi.iteachabc.com`;
// 如果当前视频和新上传的视频是同一个,则不变。
if(this.videoUrl == `${baseCDN}/${fileName}_h.mp4`) {
this.$refs.refVideo.pause();
this.$refs.refVideo.currentTime = 0;
this.$message({
type: 'success',
message: '极速上传完成'
})
return
}
// 重置上传变量,并设置状态为上传中
this.resetUploadVars();
this.videoUrl = "";
this.uploading = true;
this.transcoding = false;
this.videoDone = false;
// 测试文件是否在服务上存在
this.httpHeadCall(`${baseCDN}/${fileName}_h.mp4`, (exit) => {
if(exit) {
// 文件存在,极速上传完成。并标记为完成状态。
this.uploadStatus = "success";
this.videoUrl = `${baseCDN}/${fileName}_h.mp4`;
this.$emit("input", this.videoUrl);
this.$emit('change', { url: this.videoUrl, file: item });
this.$emit('success', { url: this.videoUrl, file: item });
this.uploading = false;
this.$message({
type: 'success',
message: '极速上传完成'
})
return
}
// 开始上传到OSS
axios.get(`${baseAPI}/oss/timestamp`, {}).then(tmps => {
const sign = cryptoJs.MD5(tmps + "iplayABC2019").toString();
axios.get(`${baseAPI}/oss/signature`, { sign, tmps }).then((res) => {
const serve = res.data.data;
const formData = new FormData();
formData.append('key', fileName + `.mp4`);
formData.append('bucket', `iplayabc-worker-queue-videolmh`);
formData.append('OSSAccessKeyId', serve.OSSAccessKeyId);
formData.append('policy', serve.policy);
formData.append('Signature', serve.signature);
formData.append('success_action_status', '200');
formData.append('file', item);
item.action = `${protocolStr}//iplayabc-worker-queue-videolmh.oss-cn-beijing.aliyuncs.com`;
// 标记开始时间
this.startTime = new Date().getTime();
this.uploadStatus = null
axios({
method: 'post',
url: item.action,
headers: { 'Access-Control-Allow-Origin': '*' },
onUploadProgress: (progressEvent) => {
// 更新上传进度
this.uploadPercentage = Math.ceil(progressEvent.progress * 100);
// 计算上传速率
this.endTime = new Date().getTime();
const timeDiff = this.endTime - this.startTime;
this.startTime = new Date().getTime();
if (timeDiff === 0) return;
const sent = progressEvent.loaded - this.loaded;
this.loaded = progressEvent.loaded;
const speed = (sent / timeDiff) * 1000; // Convert to KB/s
const spNum = Math.round(speed / 1024);
if (spNum > 1024) {
this.uploadSpeed = `${(spNum / 1024).toFixed(2)}MB/s`;
} else {
this.uploadSpeed = `${spNum}KB/s`;
}
this.$emit('onProgress', progressEvent);
},
data: formData
}).then(async event => {
// 上传完成,延迟隐藏状态
const tid = setTimeout(() => {
this.resetUploadVars();
this.uploading = false;
this.transcoding = true;
this.videoDone = false;
const idIndex = this.setTimeoutIds.indexOf(tid);
if (idIndex > -1) {
this.setTimeoutIds.splice(idIndex, 1);
}
}, 1000);
// 编辑为成功状态
this.uploadStatus = "success";
this.videoUrl = `${baseCDN}/${fileName}_h.mp4`;
this.$emit("input", this.videoUrl);
this.$emit('change', { url: this.videoUrl, file: item });
this.$emit('success', { url: this.videoUrl, file: item });
this.setTimeoutIds.push(tid);
this.uploading = false;
this.$message({
type: 'info',
message: '上传成功,开始转码...'
});
}).catch(err => {
// 报错
const tid = setTimeout(() => {
this.uploading = false;
this.transcoding = false;
this.videoDone = false;
const idIndex = this.setTimeoutIds.indexOf(tid);
if (idIndex > -1) {
this.setTimeoutIds.splice(idIndex, 1);
}
}, 1000);
this.uploadStatus = "error";
this.$emit('error', err);
this.setTimeoutIds.push(tid);
})
});
});
})
return false
},
// 检查资源是否可用
checkResourceAvaliable() {
return new Promise(resovle => {
let intervalId = null;
intervalId = setInterval(() => {
this.httpHeadCall(this.videoUrl, (isSuccess) => {
if (isSuccess) {
if (intervalId) {
const index = this.setIntervalIds.indexOf(intervalId)
clearInterval(intervalId)
this.setIntervalIds.splice(index, 1)
}
resovle(true)
}
});
}, 800)
this.setIntervalIds.push(intervalId)
})
},
async download() {
const url = this.videoUrl
const fileName = url.split('/').pop()
const response = await fetch(url) //发送GET请求
if (response.ok) {
const blob = await response.blob() //获取Blob对象
const url = window.URL.createObjectURL(blob) //创建Blob对象的URL
const link = document.createElement('a') //创建一个新的<a>元素
link.href = url //设置<a>元素的href属性为Blob对象的URL
link.download = fileName //设置下载文件的文件名
document.body.appendChild(link) //将<a>元素添加到文档中
link.click() //模拟点击<a>元素以触发文件下载
this.$message({
type: 'success',
message: '下载完成'
});
} else {
//处理API响应失败的情况,例如显示错误消息
this.$message({
type: 'error',
message: '下载失败'
});
}
},
captureVideo() {
const fullFileName = this.videoUrl.split('/').pop();
const { name, ext } = this.parseFileName(fullFileName)
const video = this.$refs.refVideo;
const cvs = document.createElement('canvas');
const ctx = cvs.getContext("2d");
cvs.width = video.videoWidth;
cvs.height = video.videoHeight;
ctx.drawImage(video, 0, 0, cvs.width, cvs.height);
const screenshotDataUrl = cvs.toDataURL('image/png');
const link = document.createElement('a') //创建一个新的<a>元素
link.href = screenshotDataUrl //设置<a>元素的href属性为Blob对象的URL
link.download = name + "_" + Math.floor(video.currentTime * 1000) + ".png"//设置下载文件的文件名
document.body.appendChild(link) //将<a>元素添加到文档中
link.click() //模拟点击<a>元素以触发文件下载
this.$message({
type: 'success',
message: '截图成功'
});
},
deleteVideo() {
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.videoUrl = "";
this.videoDone = false;
this.$emit("input", "");
this.$emit('change', { url: this.videoUrl, file: null });
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
// 计算文件MD5
getFileMD5(file) {
return new Promise(resovle => {
let fileReader = new FileReader();
let Spark = new SparkMD5.ArrayBuffer();
fileReader.readAsArrayBuffer(file);
fileReader.onload = function (e) {
Spark.append(e.target.result);
let md5 = Spark.end();
resovle(md5);
}
})
},
},
// 组件销毁时清除定时器
beforeDestroy() {
this.setTimeoutIds.forEach(tid => {
clearTimeout(tid);
});
this.setIntervalIds.forEach(iid => {
clearInterval(iid)
})
}
}
</script>
<style scoped>
.buttons {
text-align: center
}
.buttons .el-button {
padding: 4px 12px;
font-size: 18px;
}
/* MESH LOADER */
.mesh-loader {
overflow: hidden;
height: inherit;
width: inherit;
}
.mesh-loader .circle {
width: 10px;
height: 10px;
position: absolute;
background: #f44336;
border-radius: 50%;
margin: -5px;
-webkit-animation: mesh 3s ease-in-out infinite -1.5s;
animation: mesh 3s ease-in-out infinite -1.5s;
}
.mesh-loader>div .circle:last-child {
-webkit-animation-delay: 0s;
animation-delay: 0s;
}
.mesh-loader>div {
position: absolute;
top: 50%;
left: 50%;
}
.mesh-loader>div:last-child {
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
@keyframes mesh {
0% {
-webkit-transform-origin: 50% -100%;
transform-origin: 50% -100%;
-webkit-transform: rotate(0);
transform: rotate(0);
}
50% {
-webkit-transform-origin: 50% -100%;
transform-origin: 50% -100%;
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
50.1% {
-webkit-transform-origin: 50% 200%;
transform-origin: 50% 200%;
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform-origin: 50% 200%;
transform-origin: 50% 200%;
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
\ No newline at end of file
import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import * as echarts from 'echarts';
import { getDPEData } from './api/dep'
Vue.use(ElementUI);
Vue.config.productionTip = false
Vue.prototype.$getData = () => {
console.log("===== getData =====");
return new Promise((resolve, reject) => {
(window).courseware.getData((data) => {
console.log(data);
resolve(data)
}, "default_key")
})
}
Vue.prototype.$getDPEData = getDPEData;
Vue.prototype.$setData = (data) => {
console.log("===== setData =====");
console.log(data);
(window).courseware.setData(data, null, "default_key")
}
Vue.prototype.$echarts = echarts
new Vue({
render: function (h) { return h(App) },
}).$mount('#app')
module.exports = {
publicPath: './',
// 其他配置...
};
\ No newline at end of file
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
"name": "play", "name": "play",
"id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231", "id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231",
"version": "2.4.5", "version": "2.4.5",
"isNew": false "isNew": false,
"description": ""
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment