tinymce-plugin-routes-legacy.js 3.3 KB
Newer Older
Five-菜鸟级's avatar
init  
Five-菜鸟级 已提交
1
!function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function n(n){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?e(Object(r),!0).forEach((function(e){t(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}System.register(["./pinia-legacy.js","./vue-legacy.js"],(function(e,t){"use strict";var o;return{setters:[function(){},function(e){o=e.J}],execute:function(){var r=e("_",(function(e,n){return e()}));e("g",(function(e,i,a){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{template:"<div>loading</div>"},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{template:"<div>err</div>"};e.addRoute({name:"404",path:"/:path(.*)",component:a["/assets/chunk/test.js"]||{template:"<div>404</div>"}}),i.routes.map((function(i){e.hasRoute(i.path)&&e.removeRoute(i.path),i.children&&i.children.length>0?(e.addRoute(n(n({},i),{},{component:{template:'<div class="'+i.name+' w1300" ><router-view></router-view></div>'}})),i.children.map((function(a){a.children&&a.children.length>0?(e.addRoute(i.name,n(n({},a),{},{component:{template:'<div class="'+a.name+' w1300" ><router-view></router-view></div>'}})),a.children.map((function(i){e.addRoute(a.name,n(n({},i),{},{component:o({loader:function(){return r((function(){return t.import("/assets/chunk/"+i.name+".js")}),void 0)},loadingComponent:u,errorComponent:c,delay:50,timeout:36e4})}))}))):e.addRoute(i.name,n(n({},a),{},{component:o({loader:function(){return r((function(){return t.import("/assets/chunk/"+a.name+".js")}),void 0)},loadingComponent:u,errorComponent:c,delay:50,timeout:36e4})}))}))):e.addRoute(n(n({},i),{},{component:o({loader:function(){return r((function(){return t.import("/assets/chunk/"+i.name+".js")}),void 0)},loadingComponent:u,errorComponent:c,delay:100,timeout:36e4})}))})),i.routes_en.map((function(i){e.hasRoute(i.path)&&e.removeRoute(i.path),i.children&&i.children.length>0?(e.addRoute(n(n({},i),{},{component:{template:'<div class="'+i.name+' w1300" ><router-view></router-view></div>'}})),i.children.map((function(a){a.children&&a.children.length>0?(e.addRoute(i.name,n(n({},a),{},{component:{template:'<div class="'+a.name+' w1300" ><router-view></router-view></div>'}})),a.children.map((function(i){e.addRoute(a.name,n(n({},i),{},{component:o({loader:function(){return r((function(){return t.import("/assets/chunk/"+i.name+".js")}),void 0)},loadingComponent:u,errorComponent:c,delay:50,timeout:36e4})}))}))):e.addRoute(i.name,n(n({},a),{},{component:o({loader:function(){return r((function(){return t.import("/assets/chunk/"+a.name+".js")}),void 0)},loadingComponent:u,errorComponent:c,delay:50,timeout:36e4})}))}))):e.addRoute(n(n({},i),{},{component:o({loader:function(){return r((function(){return t.import("/assets/chunk/"+i.name+".js")}),void 0)},loadingComponent:u,errorComponent:c,delay:100,timeout:36e4})}))}))}))}}}))}();