diff --git a/demos/assets/index-ac13974b.js b/demos/assets/index-d9868488.js similarity index 99% rename from demos/assets/index-ac13974b.js rename to demos/assets/index-d9868488.js index 205cc5e..58f2347 100644 --- a/demos/assets/index-ac13974b.js +++ b/demos/assets/index-d9868488.js @@ -1228,4 +1228,4 @@ ${M.join(` data-dom-id="fileInput" class="hidden fileInput" /> -`;let r;function a(){if(!r){const E=document.createElement("template");E.innerHTML=m,r=E.content}return document.importNode(r,!0)}var T=a;_.default=T}],n={};function f(k){var _=n[k];if(_!==void 0)return _.exports;var m=n[k]={exports:{}};return l[k](m,m.exports,f),m.exports}var I={};return(()=>{var m;var k=I;Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(k,"createViewerApp",{enumerable:!0,get:function(){return _.createViewerApp}}),Object.defineProperty(k,"getViewerConfiguration",{enumerable:!0,get:function(){return _.getViewerConfiguration}});var _=f(1);(m=document.blockUnblockOnload)==null||m.call(document,!0)})(),I})())})(app$1);var appExports=app$1.exports;const viewer="";let src$1="./document-viewer/web/compressed.tracemonkey-pldi-09.pdf";const appOptions$1={src:src$1,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApp(e){return console.log("injectApp",e),appExports.createViewerApp({parent:e,...appOptions$1})}const CustomToolbar_vue_vue_type_style_index_0_scoped_e7dda392_lang="",_withScopeId=e=>(pushScopeId("data-v-e7dda392"),e=e(),popScopeId(),e),_hoisted_1$1={class:"pdf-viewer"},_hoisted_2$1={class:"viewer-header"},_hoisted_3$1=_withScopeId(()=>createBaseVNode("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M4 6H20V8H4V6ZM4 11H20V13H4V11ZM4 16H20V18H4V16Z",fill:"black"})],-1)),_hoisted_4$1=[_hoisted_3$1],_hoisted_5={class:"header-item"},_hoisted_6=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M7.5,2l-4,4,4,4,1-1-3-3,3-3Z"})],-1)),_hoisted_7=[_hoisted_6],_hoisted_8=["value"],_hoisted_9=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M4.5,10l4-4-4-4-1,1,3,3-3,3Z"})],-1)),_hoisted_10=[_hoisted_9],_sfc_main$1={__name:"CustomToolbar",setup(e){const t=ref(null),l=shallowRef(null),n=ref(1);onMounted(function(){l.value=injectApp(t.value),l.value.initializedPromise.then(function(){l.value.eventBus.on("pagechanging",function(m){n.value=m.pageNumber})})});function f(){l.value.pdfSidebar.toggle()}function I(){l.value.eventBus.dispatch("previouspage")}function k(){l.value.eventBus.dispatch("nextpage")}function _(m){const r=parseInt(m.target.value,10);l.value.pdfViewer.currentPageNumber=r}return(m,r)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",{class:"header-item"},[createBaseVNode("button",{onClick:f,class:"menu-outline header-icon"},_hoisted_4$1)]),createBaseVNode("div",_hoisted_5,[createBaseVNode("button",{onClick:I,class:"prev-page header-icon"},_hoisted_7),createBaseVNode("input",{class:"page-input",type:"text",value:n.value,onChange:_},null,40,_hoisted_8),createBaseVNode("button",{onClick:k,class:"next-page header-icon"},_hoisted_10)])]),createBaseVNode("div",{ref_key:"el$",ref:t,class:"viewer-content"},null,512)]))}},CustomToolbar=_export_sfc(_sfc_main$1,[["__scopeId","data-v-e7dda392"]]);let src="./document-viewer/web/compressed.tracemonkey-pldi-09.pdf";const appOptions={src,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApps(){appExports.createViewerApp({parent:document.getElementById("app1"),...appOptions}),appExports.createViewerApp({parent:document.getElementById("app2"),...appOptions})}const MultipleFiles_vue_vue_type_style_index_0_lang="",_hoisted_1={class:"main"},_hoisted_2=createBaseVNode("div",{id:"app1"},null,-1),_hoisted_3=createBaseVNode("div",{id:"app2"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3],_sfc_main={__name:"MultipleFiles",setup(e){return onMounted(function(){injectApps()}),(t,l)=>(openBlock(),createElementBlock("div",_hoisted_1,_hoisted_4))}},router=createRouter({history:createWebHashHistory("/document-viewer/demos/"),routes:[{path:"/",name:"home",redirect:"/custom-toolbar"},{path:"/custom-toolbar",name:"customToolbar",component:CustomToolbar},{path:"/multiple-pdf-files",name:"multiplePDFFiles",component:_sfc_main}]}),app=createApp(App);app.use(router);app.mount("#app"); +`;let r;function a(){if(!r){const E=document.createElement("template");E.innerHTML=m,r=E.content}return document.importNode(r,!0)}var T=a;_.default=T}],n={};function f(k){var _=n[k];if(_!==void 0)return _.exports;var m=n[k]={exports:{}};return l[k](m,m.exports,f),m.exports}var I={};return(()=>{var m;var k=I;Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(k,"createViewerApp",{enumerable:!0,get:function(){return _.createViewerApp}}),Object.defineProperty(k,"getViewerConfiguration",{enumerable:!0,get:function(){return _.getViewerConfiguration}});var _=f(1);(m=document.blockUnblockOnload)==null||m.call(document,!0)})(),I})())})(app$1);var appExports=app$1.exports;const viewer="";let src="./document-viewer/web/compressed.tracemonkey-pldi-09.pdf";const appOptions={src,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApp(e){return console.log("injectApp",e),appExports.createViewerApp({parent:e,...appOptions})}const CustomToolbar_vue_vue_type_style_index_0_scoped_e7dda392_lang="",_withScopeId=e=>(pushScopeId("data-v-e7dda392"),e=e(),popScopeId(),e),_hoisted_1$1={class:"pdf-viewer"},_hoisted_2$1={class:"viewer-header"},_hoisted_3$1=_withScopeId(()=>createBaseVNode("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M4 6H20V8H4V6ZM4 11H20V13H4V11ZM4 16H20V18H4V16Z",fill:"black"})],-1)),_hoisted_4$1=[_hoisted_3$1],_hoisted_5={class:"header-item"},_hoisted_6=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M7.5,2l-4,4,4,4,1-1-3-3,3-3Z"})],-1)),_hoisted_7=[_hoisted_6],_hoisted_8=["value"],_hoisted_9=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M4.5,10l4-4-4-4-1,1,3,3-3,3Z"})],-1)),_hoisted_10=[_hoisted_9],_sfc_main$1={__name:"CustomToolbar",setup(e){const t=ref(null),l=shallowRef(null),n=ref(1);onMounted(function(){l.value=injectApp(t.value),l.value.initializedPromise.then(function(){l.value.eventBus.on("pagechanging",function(m){n.value=m.pageNumber})})});function f(){l.value.pdfSidebar.toggle()}function I(){l.value.eventBus.dispatch("previouspage")}function k(){l.value.eventBus.dispatch("nextpage")}function _(m){const r=parseInt(m.target.value,10);l.value.pdfViewer.currentPageNumber=r}return(m,r)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",{class:"header-item"},[createBaseVNode("button",{onClick:f,class:"menu-outline header-icon"},_hoisted_4$1)]),createBaseVNode("div",_hoisted_5,[createBaseVNode("button",{onClick:I,class:"prev-page header-icon"},_hoisted_7),createBaseVNode("input",{class:"page-input",type:"text",value:n.value,onChange:_},null,40,_hoisted_8),createBaseVNode("button",{onClick:k,class:"next-page header-icon"},_hoisted_10)])]),createBaseVNode("div",{ref_key:"el$",ref:t,class:"viewer-content"},null,512)]))}},CustomToolbar=_export_sfc(_sfc_main$1,[["__scopeId","data-v-e7dda392"]]);let src1="./lc_pdf_overview_format.pdf",src2="./recognizing_malformed_pdf_f.pdf";const options1={src:src1,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0},options2={src:src2,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApps(){appExports.createViewerApp({parent:document.getElementById("app1"),...options1}),appExports.createViewerApp({parent:document.getElementById("app2"),...options2})}const MultipleFiles_vue_vue_type_style_index_0_lang="",_hoisted_1={class:"main"},_hoisted_2=createBaseVNode("div",{id:"app1"},null,-1),_hoisted_3=createBaseVNode("div",{id:"app2"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3],_sfc_main={__name:"MultipleFiles",setup(e){return onMounted(function(){injectApps()}),(t,l)=>(openBlock(),createElementBlock("div",_hoisted_1,_hoisted_4))}},router=createRouter({history:createWebHashHistory("/document-viewer/demos/"),routes:[{path:"/",name:"home",redirect:"/custom-toolbar"},{path:"/custom-toolbar",name:"customToolbar",component:CustomToolbar},{path:"/multiple-pdf-files",name:"multiplePDFFiles",component:_sfc_main}]}),app=createApp(App);app.use(router);app.mount("#app"); diff --git a/demos/index.html b/demos/index.html index d44b22e..e8753f2 100644 --- a/demos/index.html +++ b/demos/index.html @@ -5,7 +5,7 @@
404
But if you don't change your direction, and if you keep looking, you may end up where you are heading.