Compare commits

..

No commits in common. "book_appCtr" and "main" have entirely different histories.

180 changed files with 19 additions and 2647 deletions

View File

@ -1,7 +1,5 @@
{
"deviceId":"A0-29-42-42-F6-3F",
"deviceType":1,
"deptId":101,
"pictureTime":"15000"
"deptId":101
}

View File

@ -23,27 +23,23 @@ module.exports = (appInfo) => {
* 主窗口
*/
config.windowsOption = {
title: 'book',
width: 1920,
height: 1200,
minWidth: 1920,
minHeight: 1200,
frame: false,
fullscreenable: true,
fullscreen: true,
simpleFullscreen: true,
// // 禁止缩小
// resizable: false,
// // 禁止最小化
// minimizable: false,
title: 'appCtr',
width: 980,
height: 650,
minWidth: 400,
minHeight: 300,
// 禁止缩小
resizable: false,
// 禁止最小化
minimizable: false,
webPreferences: {
//webSecurity: false,
contextIsolation: false, // false -> 可在渲染进程中使用electron的apitrue->需要bridge.js(contextBridge)
nodeIntegration: true,
//preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'),
},
show: true,
frame: true,
show: false,
icon: path.join(appInfo.home, 'public', 'images', 'logo-32.png'),
};

View File

@ -19,7 +19,7 @@ export default {
ipc.invoke(ipcApiRoute.getExResConfig, "config.json").then(res => {
const configJSON = JSON.parse(res);
updateConfgJson(configJSON)
// websocket.initWebSocket(configJSON);
websocket.initWebSocket(configJSON);
})
},

View File

@ -50,8 +50,6 @@ const ipcApiRoute = {
autoLaunch: 'controller.os.autoLaunch',
setTheme: 'controller.os.setTheme',
getTheme: 'controller.os.getTheme',
// 获取当前目录的配置文件, 入参为配置文件名
getCurrentDirectoryConfig: 'controller.os.getCurrentDirectoryConfig',
// 获取mac
getAllMac: 'controller.os.getAllMac',
// 获取系统信息

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 608 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 KiB

View File

@ -10,12 +10,6 @@ import Router from './router/index';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import jQuery from 'jquery';
// 将 jQuery 挂载到全局对象上
window.$ = window.jQuery = jQuery;
const app = createApp(App)
app.config.productionTip = false

View File

@ -6,7 +6,7 @@
const constantRouterMap = [
{
path: '/',
component: () => import('@/views/index/index.vue'),
component: () => import('@/layouts/AppSider.vue'),
children: [
{
path: '/framework',

File diff suppressed because it is too large Load Diff

View File

@ -1,47 +0,0 @@
/* turn.js r3 | turnjs.com/license.txt */
(function(h){var x,y="",G=Math.PI,E=G/2,q="Touch"in window,I=q?{start:"touchstart",move:"touchmove",end:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup"},J={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br"]},O=["single","double"],P={page:1,gradients:!0,duration:600,acceleration:!0,display:"double",when:null},Q={folding:null,corners:"forward",cornerSize:100,gradients:!0,duration:600,acceleration:!0},K={"0":{top:0,left:0,right:"auto",bottom:"auto"},1:{top:0,right:0,left:"auto",
bottom:"auto"}},l=function(a,b,c,d){return{css:{position:"absolute",top:a,left:b,overflow:d||"hidden","z-index":c||"auto"}}},L=function(a,b,c,d,e){var f=1-e,C=f*f*f,i=e*e*e;return j(Math.round(C*a.x+3*e*f*f*b.x+3*e*e*f*c.x+i*d.x),Math.round(C*a.y+3*e*f*f*b.y+3*e*e*f*c.y+i*d.y))},j=function(a,b){return{x:a,y:b}},s=function(a,b,c){return x&&c?" translate3d("+a+"px,"+b+"px, 0px) ":" translate("+a+"px, "+b+"px) "},t=function(a){return" rotate("+a+"deg) "},p=function(a,b){return Object.prototype.hasOwnProperty.call(b,
a)},R=function(){for(var a=["Moz","Webkit","Khtml","O","ms"],b=a.length,c="";b--;)a[b]+"Transform"in document.body.style&&(c="-"+a[b].toLowerCase()+"-");return c},M=function(a,b,c,d,e){var f,C=[];if("-webkit-"==y){for(f=0;f<e;f++)C.push("color-stop("+d[f][0]+", "+d[f][1]+")");a.css({"background-image":"-webkit-gradient(linear, "+b.x+"% "+b.y+"%, "+c.x+"% "+c.y+"%, "+C.join(",")+" )"})}else{var b={x:b.x/100*a.width(),y:b.y/100*a.height()},c={x:c.x/100*a.width(),y:c.y/100*a.height()},i=c.x-b.x;f=c.y-
b.y;var h=Math.atan2(f,i),g=h-Math.PI/2,g=Math.abs(a.width()*Math.sin(g))+Math.abs(a.height()*Math.cos(g)),i=Math.sqrt(f*f+i*i),c=j(c.x<b.x?a.width():0,c.y<b.y?a.height():0),n=Math.tan(h);f=-1/n;n=(f*c.x-c.y-n*b.x+b.y)/(f-n);c=f*n-f*c.x+c.y;b=Math.sqrt(Math.pow(n-b.x,2)+Math.pow(c-b.y,2));for(f=0;f<e;f++)C.push(" "+d[f][1]+" "+100*(b+i*d[f][0])/g+"%");a.css({"background-image":y+"linear-gradient("+-h+"rad,"+C.join(",")+")"})}},g={init:function(a){void 0===x&&(x="WebKitCSSMatrix"in window||"MozPerspective"in
document.body.style,y=R());var b,c=this.data(),d=this.children(),a=h.extend({width:this.width(),height:this.height()},P,a);c.opts=a;c.pageObjs={};c.pages={};c.pageWrap={};c.pagePlace={};c.pageMv=[];c.totalPages=a.pages||0;if(a.when)for(b in a.when)p(b,a.when)&&this.bind(b,a.when[b]);this.css({position:"relative",width:a.width,height:a.height});this.turn("display",a.display);x&&!q&&a.acceleration&&this.transform(s(0,0,!0));for(b=0;b<d.length;b++)this.turn("addPage",d[b],b+1);this.turn("page",a.page);
J=h.extend({},J,a.corners);h(this).bind(I.start,function(a){for(var b in c.pages)if(p(b,c.pages)&&i._eventStart.call(c.pages[b],a)===false)return false});h(document).bind(I.move,function(a){for(var b in c.pages)p(b,c.pages)&&i._eventMove.call(c.pages[b],a)}).bind(I.end,function(a){for(var b in c.pages)p(b,c.pages)&&i._eventEnd.call(c.pages[b],a)});c.done=!0;return this},addPage:function(a,b){var c=!1,d=this.data(),e=d.totalPages+1;if(b)if(b==e)b=e,c=!0;else{if(b>e)throw Error('It is impossible to add the page "'+
b+'", the maximum value is: "'+e+'"');}else b=e,c=!0;1<=b&&b<=e&&(d.done&&this.turn("stop"),b in d.pageObjs&&g._movePages.call(this,b,1),c&&(d.totalPages=e),d.pageObjs[b]=h(a).addClass("turn-page p"+b),g._addPage.call(this,b),d.done&&this.turn("update"),g._removeFromDOM.call(this));return this},_addPage:function(a){var b=this.data(),c=b.pageObjs[a];if(c)if(g._necessPage.call(this,a)){if(!b.pageWrap[a]){var d="double"==b.display?this.width()/2:this.width(),e=this.height();c.css({width:d,height:e});
b.pagePlace[a]=a;b.pageWrap[a]=h("<div/>",{"class":"turn-page-wrapper",page:a,css:{position:"absolute",overflow:"hidden",width:d,height:e}}).css(K["double"==b.display?a%2:0]);this.append(b.pageWrap[a]);b.pageWrap[a].prepend(b.pageObjs[a])}(!a||1==g._setPageLoc.call(this,a))&&g._makeFlip.call(this,a)}else b.pagePlace[a]=0,b.pageObjs[a]&&b.pageObjs[a].remove()},hasPage:function(a){return a in this.data().pageObjs},_makeFlip:function(a){var b=this.data();if(!b.pages[a]&&b.pagePlace[a]==a){var c="single"==
b.display,d=a%2;b.pages[a]=b.pageObjs[a].css({width:c?this.width():this.width()/2,height:this.height()}).flip({page:a,next:c&&a===b.totalPages?a-1:d||c?a+1:a-1,turn:this,duration:b.opts.duration,acceleration:b.opts.acceleration,corners:c?"all":d?"forward":"backward",backGradient:b.opts.gradients,frontGradient:b.opts.gradients}).flip("disable",b.disabled).bind("pressed",g._pressed).bind("released",g._released).bind("start",g._start).bind("end",g._end).bind("flip",g._flip)}return b.pages[a]},_makeRange:function(){var a;
this.data();var b=this.turn("range");for(a=b[0];a<=b[1];a++)g._addPage.call(this,a)},range:function(a){var b,c,d=this.data(),a=a||d.tpage||d.page,e=g._view.call(this,a);if(1>a||a>d.totalPages)throw Error('"'+a+'" is not a page for range');e[1]=e[1]||e[0];1<=e[0]&&e[1]<=d.totalPages?(a=Math.floor(2),d.totalPages-e[1]>e[0]?(b=Math.min(e[0]-1,a),c=2*a-b):(c=Math.min(d.totalPages-e[1],a),b=2*a-c)):c=b=5;return[Math.max(1,e[0]-b),Math.min(d.totalPages,e[1]+c)]},_necessPage:function(a){if(0===a)return!0;
var b=this.turn("range");return a>=b[0]&&a<=b[1]},_removeFromDOM:function(){var a,b=this.data();for(a in b.pageWrap)p(a,b.pageWrap)&&!g._necessPage.call(this,a)&&g._removePageFromDOM.call(this,a)},_removePageFromDOM:function(a){var b=this.data();if(b.pages[a]){var c=b.pages[a].data();c.f&&c.f.fwrapper&&c.f.fwrapper.remove();b.pages[a].remove();delete b.pages[a]}b.pageObjs[a]&&b.pageObjs[a].remove();b.pageWrap[a]&&(b.pageWrap[a].remove(),delete b.pageWrap[a]);delete b.pagePlace[a]},removePage:function(a){var b=
this.data();b.pageObjs[a]&&(this.turn("stop"),g._removePageFromDOM.call(this,a),delete b.pageObjs[a],g._movePages.call(this,a,-1),b.totalPages-=1,g._makeRange.call(this),b.page>b.totalPages&&this.turn("page",b.totalPages));return this},_movePages:function(a,b){var c,d=this.data(),e="single"==d.display,f=function(a){var c=a+b,f=c%2;d.pageObjs[a]&&(d.pageObjs[c]=d.pageObjs[a].removeClass("page"+a).addClass("page"+c));d.pagePlace[a]&&d.pageWrap[a]&&(d.pagePlace[c]=c,d.pageWrap[c]=d.pageWrap[a].css(K[e?
0:f]).attr("page",c),d.pages[a]&&(d.pages[c]=d.pages[a].flip("options",{page:c,next:e||f?c+1:c-1,corners:e?"all":f?"forward":"backward"})),b&&(delete d.pages[a],delete d.pagePlace[a],delete d.pageObjs[a],delete d.pageWrap[a],delete d.pageObjs[a]))};if(0<b)for(c=d.totalPages;c>=a;c--)f(c);else for(c=a;c<=d.totalPages;c++)f(c)},display:function(a){var b=this.data(),c=b.display;if(a){if(-1==h.inArray(a,O))throw Error('"'+a+'" is not a value for display');"single"==a?b.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),
b.pageObjs[0]=h("<div />",{"class":"turn-page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)):b.pageObjs[0]&&(this.turn("stop").css({overflow:""}),b.pageObjs[0].remove(),delete b.pageObjs[0]);b.display=a;c&&(a=this.turn("size"),g._movePages.call(this,1,0),this.turn("size",a.width,a.height).turn("update"));return this}return c},animating:function(){return 0<this.data().pageMv.length},disable:function(a){var b,c=this.data(),d=this.turn("view");c.disabled=void 0===a||!0===
a;for(b in c.pages)p(b,c.pages)&&c.pages[b].flip("disable",a?h.inArray(b,d):!1);return this},size:function(a,b){if(a&&b){var c=this.data(),d="double"==c.display?a/2:a,e;this.css({width:a,height:b});c.pageObjs[0]&&c.pageObjs[0].css({width:d,height:b});for(e in c.pageWrap)p(e,c.pageWrap)&&(c.pageObjs[e].css({width:d,height:b}),c.pageWrap[e].css({width:d,height:b}),c.pages[e]&&c.pages[e].css({width:d,height:b}));this.turn("resize");return this}return{width:this.width(),height:this.height()}},resize:function(){var a,
b=this.data();b.pages[0]&&(b.pageWrap[0].css({left:-this.width()}),b.pages[0].flip("resize",!0));for(a=1;a<=b.totalPages;a++)b.pages[a]&&b.pages[a].flip("resize",!0)},_removeMv:function(a){var b,c=this.data();for(b=0;b<c.pageMv.length;b++)if(c.pageMv[b]==a)return c.pageMv.splice(b,1),!0;return!1},_addMv:function(a){var b=this.data();g._removeMv.call(this,a);b.pageMv.push(a)},_view:function(a){var b=this.data(),a=a||b.page;return"double"==b.display?a%2?[a-1,a]:[a,a+1]:[a]},view:function(a){var b=this.data(),
a=g._view.call(this,a);return"double"==b.display?[0<a[0]?a[0]:0,a[1]<=b.totalPages?a[1]:0]:[0<a[0]&&a[0]<=b.totalPages?a[0]:0]},stop:function(){var a,b,c=this.data(),d=c.pageMv;c.pageMv=[];c.tpage&&(c.page=c.tpage,delete c.tpage);for(a in d)p(a,d)&&(b=c.pages[d[a]].data().f.opts,i._moveFoldingPage.call(c.pages[d[a]],null),c.pages[d[a]].flip("hideFoldedPage"),c.pagePlace[b.next]=b.next,b.force&&(b.next=0===b.page%2?b.page-1:b.page+1,delete b.force));this.turn("update");return this},pages:function(a){var b=
this.data();if(a){if(a<b.totalPages){for(var c=a+1;c<=b.totalPages;c++)this.turn("removePage",c);this.turn("page")>a&&this.turn("page",a)}b.totalPages=a;return this}return b.totalPages},_fitPage:function(a,b){var c=this.data(),d=this.turn("view",a);c.page!=a&&(this.trigger("turning",[a,d]),-1!=h.inArray(1,d)&&this.trigger("first"),-1!=h.inArray(c.totalPages,d)&&this.trigger("last"));c.pageObjs[a]&&(c.tpage=a,this.turn("stop",b),g._removeFromDOM.call(this),g._makeRange.call(this),this.trigger("turned",
[a,d]))},_turnPage:function(a){var b,c,d=this.data(),e=this.turn("view"),f=this.turn("view",a);d.page!=a&&(this.trigger("turning",[a,f]),-1!=h.inArray(1,f)&&this.trigger("first"),-1!=h.inArray(d.totalPages,f)&&this.trigger("last"));if(d.pageObjs[a]&&(d.tpage=a,this.turn("stop"),g._makeRange.call(this),"single"==d.display?(b=e[0],c=f[0]):e[1]&&a>e[1]?(b=e[1],c=f[0]):e[0]&&a<e[0]&&(b=e[0],c=f[1]),d.pages[b]))a=d.pages[b].data().f.opts,d.tpage=c,a.next!=c&&(a.next=c,d.pagePlace[c]=a.page,a.force=!0),
"single"==d.display?d.pages[b].flip("turnPage",f[0]>e[0]?"br":"bl"):d.pages[b].flip("turnPage")},page:function(a){var a=parseInt(a,10),b=this.data();return 0<a&&a<=b.totalPages?(!b.done||-1!=h.inArray(a,this.turn("view"))?g._fitPage.call(this,a):g._turnPage.call(this,a),this):b.page},next:function(){var a=this.data();return this.turn("page",g._view.call(this,a.page).pop()+1)},previous:function(){var a=this.data();return this.turn("page",g._view.call(this,a.page).shift()-1)},_addMotionPage:function(){var a=
h(this).data().f.opts,b=a.turn,c=b.data();a.pageMv=a.page;g._addMv.call(b,a.pageMv);c.pagePlace[a.next]=a.page;b.turn("update")},_start:function(a,b,c){var d=b.turn.data(),e=h.Event("start");a.stopPropagation();b.turn.trigger(e,[b,c]);e.isDefaultPrevented()?a.preventDefault():("single"==d.display&&(c="l"==c.charAt(1),1==b.page&&c||b.page==d.totalPages&&!c?a.preventDefault():c?(b.next=b.next<b.page?b.next:b.page-1,b.force=!0):b.next=b.next>b.page?b.next:b.page+1),g._addMotionPage.call(this))},_end:function(a,
b){var c=h(this).data().f.opts,d=c.turn,e=d.data();a.stopPropagation();if(b||e.tpage){if(e.tpage==c.next||e.tpage==c.page)delete e.tpage,g._fitPage.call(d,e.tpage||c.next,!0)}else g._removeMv.call(d,c.pageMv),d.turn("update")},_pressed:function(){var a,b=h(this).data().f,c=b.opts.turn.data().pages;for(a in c)a!=b.opts.page&&c[a].flip("disable",!0);return b.time=(new Date).getTime()},_released:function(a,b){var c=h(this),d=c.data().f;a.stopPropagation();if(200>(new Date).getTime()-d.time||0>b.x||b.x>
h(this).width())a.preventDefault(),d.opts.turn.data().tpage=d.opts.next,d.opts.turn.turn("update"),h(c).flip("turnPage")},_flip:function(){var a=h(this).data().f.opts;a.turn.trigger("turn",[a.next])},calculateZ:function(a){var b,c,d,e,f=this,i=this.data();b=this.turn("view");var h=b[0]||b[1],g={pageZ:{},partZ:{},pageV:{}},j=function(a){a=f.turn("view",a);a[0]&&(g.pageV[a[0]]=!0);a[1]&&(g.pageV[a[1]]=!0)};for(b=0;b<a.length;b++)c=a[b],d=i.pages[c].data().f.opts.next,e=i.pagePlace[c],j(c),j(d),c=i.pagePlace[d]==
d?d:c,g.pageZ[c]=i.totalPages-Math.abs(h-c),g.partZ[e]=2*i.totalPages+Math.abs(h-c);return g},update:function(){var a,b=this.data();if(b.pageMv.length&&0!==b.pageMv[0]){var c=this.turn("calculateZ",b.pageMv);this.turn("view",b.tpage);for(a in b.pageWrap)p(a,b.pageWrap)&&(b.pageWrap[a].css({display:c.pageV[a]?"":"none","z-index":c.pageZ[a]||0}),b.pages[a]&&(b.pages[a].flip("z",c.partZ[a]||null),c.pageV[a]&&b.pages[a].flip("resize"),b.tpage&&b.pages[a].flip("disable",!0)))}else for(a in b.pageWrap)p(a,
b.pageWrap)&&(c=g._setPageLoc.call(this,a),b.pages[a]&&b.pages[a].flip("disable",b.disabled||1!=c).flip("z",null))},_setPageLoc:function(a){var b=this.data(),c=this.turn("view");if(a==c[0]||a==c[1])return b.pageWrap[a].css({"z-index":b.totalPages,display:""}),1;if("single"==b.display&&a==c[0]+1||"double"==b.display&&a==c[0]-2||a==c[1]+2)return b.pageWrap[a].css({"z-index":b.totalPages-1,display:""}),2;b.pageWrap[a].css({"z-index":0,display:"none"});return 0}},i={init:function(a){a.gradients&&(a.frontGradient=
!0,a.backGradient=!0);this.data({f:{}});this.flip("options",a);i._addPageWrapper.call(this);return this},setData:function(a){var b=this.data();b.f=h.extend(b.f,a);return this},options:function(a){var b=this.data().f;return a?(i.setData.call(this,{opts:h.extend({},b.opts||Q,a)}),this):b.opts},z:function(a){var b=this.data().f;b.opts["z-index"]=a;b.fwrapper.css({"z-index":a||parseInt(b.parent.css("z-index"),10)||0});return this},_cAllowed:function(){return J[this.data().f.opts.corners]||this.data().f.opts.corners},
_cornerActivated:function(a){if(void 0===a.originalEvent)return!1;var a=q?a.originalEvent.touches:[a],b=this.data().f,c=b.parent.offset(),d=this.width(),e=this.height(),a={x:Math.max(0,a[0].pageX-c.left),y:Math.max(0,a[0].pageY-c.top)},b=b.opts.cornerSize,c=i._cAllowed.call(this);if(0>=a.x||0>=a.y||a.x>=d||a.y>=e)return!1;if(a.y<b)a.corner="t";else if(a.y>=e-b)a.corner="b";else return!1;if(a.x<=b)a.corner+="l";else if(a.x>=d-b)a.corner+="r";else return!1;return-1==h.inArray(a.corner,c)?!1:a},_c:function(a,
b){b=b||0;return{tl:j(b,b),tr:j(this.width()-b,b),bl:j(b,this.height()-b),br:j(this.width()-b,this.height()-b)}[a]},_c2:function(a){return{tl:j(2*this.width(),0),tr:j(-this.width(),0),bl:j(2*this.width(),this.height()),br:j(-this.width(),this.height())}[a]},_foldingPage:function(){var a=this.data().f.opts;if(a.folding)return a.folding;if(a.turn){var b=a.turn.data();return"single"==b.display?b.pageObjs[a.next]?b.pageObjs[0]:null:b.pageObjs[a.next]}},_backGradient:function(){var a=this.data().f,b=a.opts.turn;
if((b=a.opts.backGradient&&(!b||"single"==b.data().display||2!=a.opts.page&&a.opts.page!=b.data().totalPages-1))&&!a.bshadow)a.bshadow=h("<div/>",l(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(a.parent);return b},resize:function(a){var b=this.data().f,c=this.width(),d=this.height(),e=Math.round(Math.sqrt(Math.pow(c,2)+Math.pow(d,2)));a&&(b.wrapper.css({width:e,height:e}),b.fwrapper.css({width:e,height:e}).children(":first-child").css({width:c,height:d}),b.fpage.css({width:d,
height:c}),b.opts.frontGradient&&b.ashadow.css({width:d,height:c}),i._backGradient.call(this)&&b.bshadow.css({width:c,height:d}));b.parent.is(":visible")&&(b.fwrapper.css({top:b.parent.offset().top,left:b.parent.offset().left}),b.opts.turn&&b.fparent.css({top:-b.opts.turn.offset().top,left:-b.opts.turn.offset().left}));this.flip("z",b.opts["z-index"])},_addPageWrapper:function(){var a=this.data().f,b=this.parent();if(!a.wrapper){this.css("left");this.css("top");var c=this.width(),d=this.height();
Math.round(Math.sqrt(Math.pow(c,2)+Math.pow(d,2)));a.parent=b;a.fparent=a.opts.turn?a.opts.turn.data().fparent:h("#turn-fwrappers");a.fparent||(c=h("<div/>",{css:{"pointer-events":"none"}}).hide(),c.data().flips=0,a.opts.turn?(c.css(l(-a.opts.turn.offset().top,-a.opts.turn.offset().left,"auto","visible").css).appendTo(a.opts.turn),a.opts.turn.data().fparent=c):c.css(l(0,0,"auto","visible").css).attr("id","turn-fwrappers").appendTo(h("body")),a.fparent=c);this.css({position:"absolute",top:0,left:0,
bottom:"auto",right:"auto"});a.wrapper=h("<div/>",l(0,0,this.css("z-index"))).appendTo(b).prepend(this);a.fwrapper=h("<div/>",l(b.offset().top,b.offset().left)).hide().appendTo(a.fparent);a.fpage=h("<div/>",{css:{cursor:"default"}}).appendTo(h("<div/>",l(0,0,0,"visible")).appendTo(a.fwrapper));a.opts.frontGradient&&(a.ashadow=h("<div/>",l(0,0,1)).appendTo(a.fpage));i.setData.call(this,a);i.resize.call(this,!0)}},_fold:function(a){var b=this,c=0,d=0,e,f,h,g,v,H,n=j(0,0),p=j(0,0),k=j(0,0),r=this.width(),
u=this.height(),l=i._foldingPage.call(this);Math.tan(d);var o=this.data().f,w=o.opts.acceleration,y=o.wrapper.height(),q=i._c.call(this,a.corner),D="t"==a.corner.substr(0,1),A="l"==a.corner.substr(1,1),F=function(){var m=j(q.x?q.x-a.x:a.x,q.y?q.y-a.y:a.y),B=Math.atan2(m.y,m.x),z;d=E-B;c=180*(d/G);z=j(A?r-m.x/2:a.x+m.x/2,m.y/2);var l=d-Math.atan2(z.y,z.x),l=Math.max(0,Math.sin(l)*Math.sqrt(Math.pow(z.x,2)+Math.pow(z.y,2)));k=j(l*Math.sin(d),l*Math.cos(d));if(d>E&&(k.x+=Math.abs(k.y*Math.tan(B)),k.y=
0,Math.round(k.x*Math.tan(G-d))<u))return a.y=Math.sqrt(Math.pow(u,2)+2*z.x*m.x),D&&(a.y=u-a.y),F();if(d>E&&(m=G-d,B=y-u/Math.sin(m),n=j(Math.round(B*Math.cos(m)),Math.round(B*Math.sin(m))),A&&(n.x=-n.x),D))n.y=-n.y;e=Math.round(k.y/Math.tan(d)+k.x);m=r-e;B=m*Math.cos(2*d);z=m*Math.sin(2*d);p=j(Math.round(A?m-B:e+B),Math.round(D?z:u-z));v=m*Math.sin(d);m=i._c2.call(b,a.corner);m=Math.sqrt(Math.pow(m.x-a.x,2)+Math.pow(m.y-a.y,2));H=m<r?m/r:1;if(o.opts.frontGradient&&(g=100<v?(v-100)/v:0,f=j(100*(v*
Math.sin(E-d)/u),100*(v*Math.cos(E-d)/r)),D&&(f.y=100-f.y),A))f.x=100-f.x;if(i._backGradient.call(b)&&(h=j(100*(v*Math.sin(d)/r),100*(v*Math.cos(d)/u)),A||(h.x=100-h.x),!D))h.y=100-h.y;k.x=Math.round(k.x);k.y=Math.round(k.y);return!0},x=function(a,c,e,k){var l=["0","auto"],v=(r-y)*e[0]/100,q=(u-y)*e[1]/100,c={left:l[c[0]],top:l[c[1]],right:l[c[2]],bottom:l[c[3]]},l=90!=k&&-90!=k?A?-1:1:0,e=e[0]+"% "+e[1]+"%";b.css(c).transform(t(k)+s(a.x+l,a.y,w),e);o.fpage.parent().css(c);o.wrapper.transform(s(-a.x+
v-l,-a.y+q,w)+t(-k),e);o.fwrapper.transform(s(-a.x+n.x+v,-a.y+n.y+q,w)+t(-k),e);o.fpage.parent().transform(t(k)+s(a.x+p.x-n.x,a.y+p.y-n.y,w),e);o.opts.frontGradient&&M(o.ashadow,j(A?100:0,D?100:0),j(f.x,f.y),[[g,"rgba(0,0,0,0)"],[0.8*(1-g)+g,"rgba(0,0,0,"+0.2*H+")"],[1,"rgba(255,255,255,"+0.2*H+")"]],3,d);i._backGradient.call(b)&&M(o.bshadow,j(A?0:100,D?0:100),j(h.x,h.y),[[0.8,"rgba(0,0,0,0)"],[1,"rgba(0,0,0,"+0.3*H+")"],[1,"rgba(0,0,0,0)"]],3)};switch(a.corner){case "tl":a.x=Math.max(a.x,1);F();
x(k,[1,0,0,1],[100,0],c);o.fpage.transform(s(-u,-r,w)+t(90-2*c),"100% 100%");l.transform(t(90)+s(0,-u,w),"0% 0%");break;case "tr":a.x=Math.min(a.x,r-1);F();x(j(-k.x,k.y),[0,0,0,1],[0,0],-c);o.fpage.transform(s(0,-r,w)+t(-90+2*c),"0% 100%");l.transform(t(270)+s(-r,0,w),"0% 0%");break;case "bl":a.x=Math.max(a.x,1);F();x(j(k.x,-k.y),[1,1,0,0],[100,100],-c);o.fpage.transform(s(-u,0,w)+t(-90+2*c),"100% 0%");l.transform(t(270)+s(-r,0,w),"0% 0%");break;case "br":a.x=Math.min(a.x,r-1),F(),x(j(-k.x,-k.y),
[0,1,1,0],[0,100],c),o.fpage.transform(t(90-2*c),"0% 0%"),l.transform(t(90)+s(0,-u,w),"0% 0%")}o.point=a},_moveFoldingPage:function(a){var b=this.data().f,c=i._foldingPage.call(this);if(c)if(a){if(!b.fpage.children()[b.ashadow?"1":"0"])i.setData.call(this,{backParent:c.parent()}),b.fpage.prepend(c)}else b.backParent&&b.backParent.prepend(c)},_showFoldedPage:function(a,b){var c=i._foldingPage.call(this),d=this.data(),e=d.f;if(!e.point||e.point.corner!=a.corner){var f=h.Event("start");this.trigger(f,
[e.opts,a.corner]);if(f.isDefaultPrevented())return!1}if(c){if(b){var g=this,c=e.point&&e.point.corner==a.corner?e.point:i._c.call(this,a.corner,1);this.animatef({from:[c.x,c.y],to:[a.x,a.y],duration:500,frame:function(b){a.x=Math.round(b[0]);a.y=Math.round(b[1]);i._fold.call(g,a)}})}else i._fold.call(this,a),d.effect&&!d.effect.turning&&this.animatef(!1);e.fwrapper.is(":visible")||(e.fparent.show().data().flips++,i._moveFoldingPage.call(this,!0),e.fwrapper.show(),e.bshadow&&e.bshadow.show());return!0}return!1},
hide:function(){var a=this.data().f,b=i._foldingPage.call(this);0===--a.fparent.data().flips&&a.fparent.hide();this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform("","0% 100%");a.wrapper.transform("","0% 100%");a.fwrapper.hide();a.bshadow&&a.bshadow.hide();b.transform("","0% 0%");return this},hideFoldedPage:function(a){var b=this.data().f;if(b.point){var c=this,d=b.point,e=function(){b.point=null;c.flip("hide");c.trigger("end",[!1])};if(a){var f=i._c.call(this,d.corner),a="t"==d.corner.substr(0,
1)?Math.min(0,d.y-f.y)/2:Math.max(0,d.y-f.y)/2,h=j(d.x,d.y+a),g=j(f.x,f.y-a);this.animatef({from:0,to:1,frame:function(a){a=L(d,h,g,f,a);d.x=a.x;d.y=a.y;i._fold.call(c,d)},complete:e,duration:800,hiding:!0})}else this.animatef(!1),e()}},turnPage:function(a){var b=this,c=this.data().f,a={corner:c.corner?c.corner.corner:a||i._cAllowed.call(this)[0]},d=c.point||i._c.call(this,a.corner,c.opts.turn?c.opts.turn.data().opts.elevation:0),e=i._c2.call(this,a.corner);this.trigger("flip").animatef({from:0,to:1,
frame:function(c){c=L(d,d,e,e,c);a.x=c.x;a.y=c.y;i._showFoldedPage.call(b,a)},complete:function(){b.trigger("end",[!0])},duration:c.opts.duration,turning:!0});c.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},_eventStart:function(a){var b=this.data().f;if(!b.disabled&&!this.flip("isTurning")){b.corner=i._cornerActivated.call(this,a);if(b.corner&&i._foldingPage.call(this,b.corner))return i._moveFoldingPage.call(this,
!0),this.trigger("pressed",[b.point]),!1;b.corner=null}},_eventMove:function(a){var b=this.data().f;if(!b.disabled)if(a=q?a.originalEvent.touches:[a],b.corner){var c=b.parent.offset();b.corner.x=a[0].pageX-c.left;b.corner.y=a[0].pageY-c.top;i._showFoldedPage.call(this,b.corner)}else!this.data().effect&&this.is(":visible")&&((a=i._cornerActivated.call(this,a[0]))?(b=i._c.call(this,a.corner,b.opts.cornerSize/2),a.x=b.x,a.y=b.y,i._showFoldedPage.call(this,a,!0)):i.hideFoldedPage.call(this,!0))},_eventEnd:function(){var a=
this.data().f;if(!a.disabled&&a.point){var b=h.Event("released");this.trigger(b,[a.point]);b.isDefaultPrevented()||i.hideFoldedPage.call(this,!0)}a.corner=null},disable:function(a){i.setData.call(this,{disabled:a});return this}},N=function(a,b,c){if(!c[0]||"object"==typeof c[0])return b.init.apply(a,c);if(b[c[0]]&&"_"!=c[0].toString().substr(0,1))return b[c[0]].apply(a,Array.prototype.slice.call(c,1));throw c[0]+" is an invalid value";};h.extend(h.fn,{flip:function(a,b){return N(this,i,arguments)},
turn:function(a){return N(this,g,arguments)},transform:function(a,b){var c={};b&&(c[y+"transform-origin"]=b);c[y+"transform"]=a;return this.css(c)},animatef:function(a){var b=this.data();b.effect&&clearInterval(b.effect.handle);if(a){a.to.length||(a.to=[a.to]);a.from.length||(a.from=[a.from]);a.easing||(a.easing=function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c});var c,d=[],e=a.to.length,f=this,h=a.fps||30,i=-h,g=function(){var c,g=[];i=Math.min(a.duration,i+h);for(c=0;c<e;c++)g.push(a.easing(1,
i,a.from[c],d[c],a.duration));a.frame(e==1?g[0]:g);if(i==a.duration){clearInterval(b.effect.handle);delete b.effect;f.data(b);a.complete&&a.complete()}};for(c=0;c<e;c++)d.push(a.to[c]-a.from[c]);b.effect=a;b.effect.handle=setInterval(g,h);this.data(b);g()}else delete b.effect}});h.isTouch=q})(jQuery);

View File

@ -1,124 +0,0 @@
<template>
<div id="turnpage" class="turnpage">
<div v-for="(item,index) in imagesList" :key="index"
:style="` background:url(${item}) no-repeat 100% 100%; background-size:100% 100%;height:100px;`">
</div>
</div>
</template>
<script>
import turn from '@/utils/turn.js';
import image1 from '@/assets/1.png';
import image2 from '@/assets/2.png';
import image3 from '@/assets/3.png';
import image4 from '@/assets/4.png';
import image5 from '@/assets/5.png';
import image6 from '@/assets/6.png';
import image7 from '@/assets/7.png';
import image8 from '@/assets/8.png';
import image9 from '@/assets/9.png';
import image10 from '@/assets/10.png';
import image11 from '@/assets/11.png';
import image12 from '@/assets/12.png';
import image13 from '@/assets/13.png';
import image14 from '@/assets/14.png';
import image15 from '@/assets/15.png';
import image16 from '@/assets/16.png';
import image17 from '@/assets/17.png';
import image18 from '@/assets/18.png';
import image0 from '@/assets/封面.png';
import image19 from '@/assets/尾页.png';
import { ipcApiRoute } from "@/api/main";
import { ipc } from '@/utils/ipcRenderer';
export default {
name: 'Home',
data() {
return {
//
pictureTime:'10000',
autoTurnTimeout:null,
imagesList: [image0, image0, image1, image2, image3, image4, image5, image6, image7, image8, image9, image10, image11, image12, image13, image14, image15, image16, image17, image18, image19]
}
},
mounted() {
const self = this
ipc.invoke(ipcApiRoute.getCurrentDirectoryConfig, "config.json")
.then((result) => {
self.config = JSON.parse(result);
console.log("配置文件内容: " ,self.config);
self.pictureTime = self.config.pictureTime;
// ,
if (self.config.isDebug == true) {
self.updateConfig();
}
});
setTimeout(function() {
self.onTurn();
}, 1000)
},
methods: {
onTurn() {
this.$nextTick(() => {
$('#turnpage').turn({
acceleration: true, //,
display: 'double', //single=double=
duration: 800, //
page: 2, //
gradients: true, //
autoCenter: true, //
turnCorners: 'bl,br', // ( 4) bl,br tl,tr bl,tr
height: 1200, //
width: 1920 //
}).bind('turned', (event, page, view) => {
console.log("翻页事件: " + page);
console.log("总页数: " + $('#turnpage').turn('pages'))
if(page === $('#turnpage').turn('pages') || page === $('#turnpage').turn('pages') - 1){
this.setAutoTurnFirstPage(); //
}else{
//
this.resetAutoTurn();
console.log("重置定时翻页");
}
});
this.setAutoTurn();
console.log("定时翻页");
});
},
setAutoTurnFirstPage(){
clearTimeout(this.autoTurnTimeout);
this.autoTurnTimeout = setTimeout(() => {
$('#turnpage').turn('page',2);
this.setAutoTurn(); //
}, this.pictureTime);
},
setAutoTurn(){
this.autoTurnTimeout = setTimeout(() => {
$('#turnpage').turn('next');
this.setAutoTurn(); //
}, this.pictureTime);
},
resetAutoTurn(){
clearTimeout(this.autoTurnTimeout);
this.setAutoTurn();
},
//
updateConfig() {
const self = this;
ipc.invoke(ipcApiRoute.getCurrentDirectoryConfig, "config.json")
.then((result) => {
this.config = JSON.parse(result);
});
setTimeout(() => {
self.updateConfig();
}, 1000);
}
}
}
</script>

122
package-lock.json generated
View File

@ -46,9 +46,6 @@
"electron-updater": "^5.3.0",
"jquery": "^3.7.1",
"lodash": "^4.17.21",
@ -61,10 +58,7 @@
"moment": "^2.29.4",
"serialport": "^12.0.0",
"turn.js": "^1.0.5"
"serialport": "^12.0.0"
},
@ -15007,21 +15001,6 @@
},
"node_modules/jquery": {
"version": "3.7.1",
"resolved": "https://registry.npmmirror.com/jquery/-/jquery-3.7.1.tgz",
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
},
"node_modules/js-string-escape": {
@ -24178,45 +24157,6 @@
},
"node_modules/turn.js": {
"version": "1.0.5",
"resolved": "https://registry.npmmirror.com/turn.js/-/turn.js-1.0.5.tgz",
"integrity": "sha512-36XRk5f6pm02AaPDEomJwfd7huc5U3SHv/ROBiL+rHBRuh1hkdxuuEwHiMW934lOJAsR+ML6XksPNUgRk1lPTQ==",
"dependencies": {
"jquery": "1.12.0"
}
},
"node_modules/turn.js/node_modules/jquery": {
"version": "1.12.0",
"resolved": "https://registry.npmmirror.com/jquery/-/jquery-1.12.0.tgz",
"integrity": "sha512-fnEEC7ylFkIKfOGvEky9Odcth1VYo61dfkQLxlDHjtNoIY9ssxybvTSG5xLDbutWdKn+grAu4EUJfhSUZODktQ=="
},
"node_modules/type-check": {
@ -37171,21 +37111,6 @@
},
"jquery": {
"version": "3.7.1",
"resolved": "https://registry.npmmirror.com/jquery/-/jquery-3.7.1.tgz",
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
},
"js-string-escape": {
@ -44080,51 +44005,6 @@
},
"turn.js": {
"version": "1.0.5",
"resolved": "https://registry.npmmirror.com/turn.js/-/turn.js-1.0.5.tgz",
"integrity": "sha512-36XRk5f6pm02AaPDEomJwfd7huc5U3SHv/ROBiL+rHBRuh1hkdxuuEwHiMW934lOJAsR+ML6XksPNUgRk1lPTQ==",
"requires": {
"jquery": "1.12.0"
},
"dependencies": {
"jquery": {
"version": "1.12.0",
"resolved": "https://registry.npmmirror.com/jquery/-/jquery-1.12.0.tgz",
"integrity": "sha512-fnEEC7ylFkIKfOGvEky9Odcth1VYo61dfkQLxlDHjtNoIY9ssxybvTSG5xLDbutWdKn+grAu4EUJfhSUZODktQ=="
}
}
},
"type-check": {

View File

@ -2,236 +2,78 @@
"name": "appCtr",
"version": "3.9.0",
"description": "客户端控制程序",
"main": "main.js",
"scripts": {
"dev": "ee-bin dev",
"dev-frontend": "ee-bin dev --serve=frontend",
"dev-electron": "ee-bin dev --serve=electron",
"dev-go": "ee-bin dev --serve=go",
"dev-python": "ee-bin exec --cmds=python",
"build-frontend": "ee-bin build --cmds=frontend && ee-bin move --flag=frontend_dist",
"build-go-w": "ee-bin move --flag=go_static,go_config,go_package,go_images && ee-bin build --cmds=go_w",
"build-go-m": "ee-bin move --flag=go_static,go_config,go_package,go_images && ee-bin build --cmds=go_m",
"build-go-l": "ee-bin move --flag=go_static,go_config,go_package,go_images && ee-bin build --cmds=go_l",
"build-python": "ee-bin build --cmds=python && ee-bin move --flag=python_dist",
"start": "ee-bin start",
"move": "ee-bin move --flag=go_static,go_config,go_package,go_images",
"rd": "ee-bin move --flag=frontend_dist",
"encrypt": "ee-bin encrypt",
"clean": "ee-bin clean",
"icon": "ee-bin icon",
"reload": "nodemon --config ./electron/config/nodemon.json",
"rebuild": "electron-rebuild",
"re-sqlite": "electron-rebuild -f -w better-sqlite3",
"build-w": "electron-builder --config=./electron/config/builder.json -w=nsis --x64",
"build-w-32": "electron-builder --config=./electron/config/builder.json -w=nsis --ia32",
"build-w-64": "electron-builder --config=./electron/config/builder.json -w=nsis --x64",
"build-w-arm64": "electron-builder --config=./electron/config/builder.json -w=nsis --arm64",
"build-we": "electron-builder --config=./electron/config/builder.json -w=portable --x64",
"build-wz": "electron-builder --config=./electron/config/builder.json -w=7z --x64",
"build-wz-32": "electron-builder --config=./electron/config/builder.json -w=7z --ia32",
"build-wz-64": "electron-builder --config=./electron/config/builder.json -w=7z --x64",
"build-wz-arm64": "electron-builder --config=./electron/config/builder.json -w=7z --arm64",
"build-m": "electron-builder --config=./electron/config/builder.json -m",
"build-m-arm64": "electron-builder --config=./electron/config/builder.json -m --arm64",
"build-l": "electron-builder --config=./electron/config/builder.json -l=deb --x64",
"build-l-32": "electron-builder --config=./electron/config/builder.json -l=deb --ia32",
"build-l-64": "electron-builder --config=./electron/config/builder.json -l=deb --x64",
"build-l-arm64": "electron-builder --config=./electron/config/builder.json -l=deb --arm64",
"build-l-armv7l": "electron-builder --config=./electron/config/builder.json -l=deb --armv7l",
"build-lr-64": "electron-builder --config=./electron/config/builder.json -l=rpm --x64",
"build-lp-64": "electron-builder --config=./electron/config/builder.json -l=pacman --x64",
"test": "set DEBUG=* && electron . --env=local"
},
"repository": "https://github.com/dromara/electron-egg.git",
"keywords": [
"Electron",
"electron-egg",
"ElectronEgg"
],
"author": "安徽烁景智能科技有限公司, Inc <247023187@qq.com>",
"license": "Apache",
"devDependencies": {
"@electron/rebuild": "^3.2.13",
"debug": "^4.3.3",
"ee-bin": "^1.5.0",
"electron": "^21.4.4",
"electron-builder": "^23.6.0",
"eslint": "^5.13.0",
"eslint-plugin-prettier": "^3.0.1",
"icon-gen": "^4.0.0",
"nodemon": "^2.0.16"
},
"dependencies": {
"@lzwme/get-physical-address": "^1.0.5",
"dayjs": "^1.10.7",
"ee-core": "^2.9.2",
"electron-shutdown-command": "^2.0.1",
"ee-core": "^2.9.2",
"electron-updater": "^5.3.0",
"jquery": "^3.7.1",
"lodash": "^4.17.21",
"loudness": "^0.4.2",
"modbus-serial": "^8.0.13",
"moment": "^2.29.4",
"serialport": "^12.0.0",
"turn.js": "^1.0.5"
"serialport": "^12.0.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 608 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

View File

@ -1 +0,0 @@
import{_ as t,i as e,a as s,l as o,b as a,o as n,c as r,f as l,t as i,h as c,e as u,w as d,p,k as h}from"./index-f69ca7de.js";import{s as v}from"./store2-491cc7ac.js";const m={data:()=>({currentStatus:"关闭",servicAddress:"无"}),mounted(){this.init()},methods:{init(){e.invoke(s.checkHttpServer,{}).then((t=>{t.enable&&(this.currentStatus="开启",this.servicAddress=t.server,v.set("httpServiceConfig",t))}))},sendRequest(t){"关闭"!=this.currentStatus?this.requestHttp(s.doHttpRequest,{id:t}).then((t=>{})):this.$message.error("http服务未开启")},requestHttp(t,e){const s=v.get("httpServiceConfig").server||"http://localhost:7071";let a=t.split(".").join("/");return a=s+"/"+a,console.log("url:",a),o({url:a,method:"post",data:e,timeout:6e4})},backendRequest(){console.log("GO_URL:","http://www.test.com");o({baseURL:"http://www.test.com",method:"get",url:"/hello",timeout:6e4}).then((t=>{console.log("res:",t);const e=t.data||null;this.$message.info(`go服务返回: ${e}`)}))}}},b=t=>(p("data-v-3508e997"),t=t(),h(),t),k={id:"app-base-httpserver"},f=b((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 使用http与主进程通信 ")],-1))),g={class:"one-block-2"},w=b((()=>l("div",{class:"one-block-1"},[l("span",null," 2. 使用http与服务端通信 ")],-1))),q={class:"one-block-2"};const R=t(m,[["render",function(t,e,s,o,p,h){const v=a("a-button");return n(),r("div",k,[f,l("div",g,[l("p",null,"* 状态:"+i(p.currentStatus),1),l("p",null,"* 地址:"+i(p.servicAddress),1),l("p",null,[c("* 发送请求: "),u(v,{onClick:e[0]||(e[0]=t=>h.sendRequest("pictures"))},{default:d((()=>[c(" 打开【我的图片】 ")])),_:1})])]),w,l("div",q,[l("p",null,[u(v,{onClick:e[1]||(e[1]=t=>h.backendRequest())},{default:d((()=>[c(" 发送请求 ")])),_:1}),c(" (请自行创建服务) ")])])])}],["__scopeId","data-v-3508e997"]]);export{R as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as t,i as e,a as s,l as o,b as a,o as n,c as r,f as l,t as i,h as c,e as u,w as d,p,k as h}from"./index-4c6e30ca.js";import{s as v}from"./store2-2e77238e.js";const m={data:()=>({currentStatus:"关闭",servicAddress:"无"}),mounted(){this.init()},methods:{init(){e.invoke(s.checkHttpServer,{}).then((t=>{t.enable&&(this.currentStatus="开启",this.servicAddress=t.server,v.set("httpServiceConfig",t))}))},sendRequest(t){"关闭"!=this.currentStatus?this.requestHttp(s.doHttpRequest,{id:t}).then((t=>{})):this.$message.error("http服务未开启")},requestHttp(t,e){const s=v.get("httpServiceConfig").server||"http://localhost:7071";let a=t.split(".").join("/");return a=s+"/"+a,console.log("url:",a),o({url:a,method:"post",data:e,timeout:6e4})},backendRequest(){console.log("GO_URL:","http://www.test.com");o({baseURL:"http://www.test.com",method:"get",url:"/hello",timeout:6e4}).then((t=>{console.log("res:",t);const e=t.data||null;this.$message.info(`go服务返回: ${e}`)}))}}},b=t=>(p("data-v-3508e997"),t=t(),h(),t),k={id:"app-base-httpserver"},f=b((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 使用http与主进程通信 ")],-1))),g={class:"one-block-2"},w=b((()=>l("div",{class:"one-block-1"},[l("span",null," 2. 使用http与服务端通信 ")],-1))),q={class:"one-block-2"};const R=t(m,[["render",function(t,e,s,o,p,h){const v=a("a-button");return n(),r("div",k,[f,l("div",g,[l("p",null,"* 状态:"+i(p.currentStatus),1),l("p",null,"* 地址:"+i(p.servicAddress),1),l("p",null,[c("* 发送请求: "),u(v,{onClick:e[0]||(e[0]=t=>h.sendRequest("pictures"))},{default:d((()=>[c(" 打开【我的图片】 ")])),_:1})])]),w,l("div",q,[l("p",null,[u(v,{onClick:e[1]||(e[1]=t=>h.backendRequest())},{default:d((()=>[c(" 发送请求 ")])),_:1}),c(" (请自行创建服务) ")])])])}],["__scopeId","data-v-3508e997"]]);export{R as default};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,u as s,v as a,w as n,x as t,y as o,z as c,A as l,B as i,C as p,D as r,E as g,F as u,G as d,H as m,I as y,J as h,K as f,L as k,M as _}from"./尾页-4f4439fb.js";import{_ as v,i as x,a as b,m as j,q as S,b as C,o as O,c as M,f as N,e as z,w as P,h as w,u as E,v as L,p as U,k as R}from"./index-f69ca7de.js";const q=""+new URL("login-48da88de.png",import.meta.url).href,A=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),D=""+new URL("logo-abcaf0c2.png",import.meta.url).href,I=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),K=[{name:"对话框",type:"icon-duihuakuang"},{name:"闹钟",type:"icon-naozhong"},{name:"笑脸",type:"icon-xiaolian"},{name:"ok",type:"icon-ok"},{name:"风车",type:"icon-fengche"},{name:"汗颜",type:"icon-hanyan"},{name:"相机",type:"icon-xiangji"},{name:"礼物",type:"icon-liwu"},{name:"礼花",type:"icon-lihua"},{name:"扭蛋",type:"icon-niudan"},{name:"流星",type:"icon-liuxing"},{name:"风筝",type:"icon-fengzheng"},{name:"蛋糕",type:"icon-dangao"},{name:"泡泡",type:"icon-paopao"},{name:"购物",type:"icon-gouwu"},{name:"饮料",type:"icon-yinliao"},{name:"云彩",type:"icon-yuncai"},{name:"彩铅",type:"icon-caiqian"},{name:"纸飞机",type:"icon-zhifeiji"},{name:"点赞",type:"icon-dianzan"},{name:"煎蛋",type:"icon-jiandan"},{name:"小熊",type:"icon-xiaoxiong"},{name:"花",type:"icon-hua"},{name:"眼睛",type:"icon-yanjing"}],T=Object.assign({"/src/assets/1.png":e,"/src/assets/10.png":s,"/src/assets/11.png":a,"/src/assets/12.png":n,"/src/assets/13.png":t,"/src/assets/14.png":o,"/src/assets/15.png":c,"/src/assets/16.png":l,"/src/assets/17.png":i,"/src/assets/18.png":p,"/src/assets/2.png":r,"/src/assets/3.png":g,"/src/assets/4.png":u,"/src/assets/5.png":d,"/src/assets/6.png":m,"/src/assets/7.png":y,"/src/assets/8.png":h,"/src/assets/9.png":f,"/src/assets/login.png":A,"/src/assets/logo.png":I,"/src/assets/封面.png":k,"/src/assets/尾页.png":_});Object.values(T).map((e=>e.default));const V={data:()=>({type:1,iconData:K,progressName:"",exePath:""}),methods:{exec(e){console.log("process:",process);const s={id:e};x.invoke(b.test,s).then((e=>{console.log("res:",e)}))},exec2(e){},getMac(){x.invoke(b.getAllMac,{}).then((e=>{console.log("macs :",e)}))},getOSMessage(){x.invoke(b.getOSMessage,{}).then((e=>{console.log("OS :",e)}))},setSound(){x.invoke(b.deviceLoudness,{value:100}).then((e=>{console.log("设置后的声音 :",e)}))},restart(){x.invoke(b.deviceRestart,{}).then((e=>{console.log("重启 :",e)}))},kill(){console.log(this.progressName),x.invoke(b.deviceKillName,this.progressName).then((e=>{console.log("关闭进程结果 :",e)}))},starExe(){console.log(this.exePath),x.invoke(b.deviceStarExe,this.exePath).then((e=>{console.log("启动程序 :",e)}))},testNet(){console.log(j),S().then((e=>{console.log(e)})).catch((e=>{console.error(e)}))}}},B={id:"app-base-test-api"},F=(e=>(U("data-v-223ec398"),e=e(),R(),e))((()=>N("div",{class:"one-block-1"},[N("span",null," 1. 测试一些操作系统api ")],-1))),G={class:"one-block-2"};const H=v(V,[["render",function(e,s,a,n,t,o){const c=C("a-button"),l=C("a-space");return O(),M("div",B,[F,N("div",G,[z(l,null,{default:P((()=>[z(c,{onClick:s[0]||(s[0]=e=>o.exec(1))},{default:P((()=>[w(" 点击 ")])),_:1}),z(c,{onClick:s[1]||(s[1]=e=>o.exec2(1))},{default:P((()=>[w(" 点击2 ")])),_:1}),z(c,{onClick:s[2]||(s[2]=e=>o.getMac())},{default:P((()=>[w(" 获取mac 列表 ")])),_:1}),z(c,{onClick:s[3]||(s[3]=e=>o.getOSMessage())},{default:P((()=>[w(" 获取系统信息 ")])),_:1}),z(c,{onClick:s[4]||(s[4]=e=>o.setSound())},{default:P((()=>[w(" 设置声音50")])),_:1}),z(c,{onClick:s[5]||(s[5]=e=>o.restart())},{default:P((()=>[w("重启")])),_:1})])),_:1}),z(l,null,{default:P((()=>[E(N("input",{"onUpdate:modelValue":s[6]||(s[6]=e=>t.progressName=e),placeholder:"请输入进程名称"},null,512),[[L,t.progressName]]),z(c,{onClick:s[7]||(s[7]=e=>o.kill())},{default:P((()=>[w(" kill 指定进程 ")])),_:1})])),_:1}),z(l,null,{default:P((()=>[E(N("input",{"onUpdate:modelValue":s[8]||(s[8]=e=>t.exePath=e),placeholder:"请输入程序地址"},null,512),[[L,t.exePath]]),z(c,{onClick:s[9]||(s[9]=e=>o.starExe())},{default:P((()=>[w(" 启动 ")])),_:1})])),_:1}),z(l,null,{default:P((()=>[z(c,{onClick:s[10]||(s[10]=e=>o.testNet())},{default:P((()=>[w(" 测试网络请求 ")])),_:1})])),_:1})])])}],["__scopeId","data-v-223ec398"]]);export{H as default};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as s,i as e,s as a,a as t,b as o,o as n,c,f as r,e as d,w as l,h as p,t as i,p as u,k as h}from"./index-4c6e30ca.js";const f={data:()=>({status:0,progress:"",percentNumber:0}),mounted(){this.init()},methods:{init(){e.removeAllListeners(a.appUpdater),e.on(a.appUpdater,((s,e)=>{e=JSON.parse(e),this.status=e.status,3==e.status?(this.progress=e.desc,this.percentNumber=e.percentNumber):this.$message.info(e.desc)}))},checkForUpdater(){e.invoke(t.checkForUpdater).then((s=>{console.log(s)}))},download(){1===this.status?e.invoke(t.downloadApp).then((s=>{console.log(s)})):this.$message.info("没有可用版本")}}},k=s=>(u("data-v-88c3fe69"),s=s(),h(),s),m={id:"app-demo-window"},v=k((()=>r("div",{class:"one-block-1"},[r("span",null," 1. 自动更新 ")],-1))),b={class:"one-block-2"},g=k((()=>r("div",{class:"one-block-1"},[r("span",null," 2. 下载进度 ")],-1))),_={class:"one-block-2"};const w=s(f,[["render",function(s,e,a,t,u,h){const f=o("a-button"),k=o("a-space"),w=o("a-progress");return n(),c("div",m,[v,r("div",b,[d(k,null,{default:l((()=>[d(f,{onClick:e[0]||(e[0]=s=>h.checkForUpdater())},{default:l((()=>[p("检查更新")])),_:1}),d(f,{onClick:e[1]||(e[1]=s=>h.download())},{default:l((()=>[p("下载并安装")])),_:1})])),_:1})]),g,r("div",_,[d(w,{percent:u.percentNumber,status:"active"},null,8,["percent"]),d(k,null,{default:l((()=>[p(i(u.progress),1)])),_:1})])])}],["__scopeId","data-v-88c3fe69"]]);export{w as default};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as l,a as s,l as a,b as t,o,c as n,f as i,e as r,w as c,h as d,p as u,k}from"./index-4c6e30ca.js";const v={data:()=>({type:1,serverUrl:""}),methods:{info(){l.invoke(s.crossInfo,{}).then((e=>{console.log("res:",e)}))},getUrl(){l.invoke(s.getCrossUrl,{name:"javaapp"}).then((e=>{this.serverUrl=e,this.$message.info(`服务地址: ${e}`)}))},kill(){l.invoke(s.killCrossServer,{type:"one",name:"javaapp"})},killAll(){l.invoke(s.killCrossServer,{type:"all",name:"javaapp"})},create(){l.invoke(s.createCrossServer,{program:"java"})},request(e){if(1!=e||""!=this.serverUrl)if(1==e){const e=this.serverUrl+"/test1/get";a({method:"get",url:e,params:{id:"1111111"},timeout:1e3}).then((e=>{console.log("res:",e);const l=e.data||null;this.$message.info(`服务返回: ${l}`)}))}else l.invoke(s.requestApi,{name:"javaapp",urlPath:"/test1/get",params:{id:"1111111"}}).then((e=>{console.log("res:",e);const l=e||null;this.$message.info(`服务返回: ${l}`)}));else this.$message.info("请先获取服务地址")}}},p=e=>(u("data-v-5d226b2a"),e=e(),k(),e),f={id:"app-cross-java"},h=p((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 基础控制 ")],-1))),m={class:"one-block-2"},g=p((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 发送http请求 ")],-1))),_={class:"one-block-2"},C=p((()=>i("div",{class:"one-block-1"},[i("span",null," 3. 多个服务 ")],-1))),b={class:"one-block-2"};const j=e(v,[["render",function(e,l,s,a,u,k){const v=t("a-button"),p=t("a-space");return o(),n("div",f,[h,i("div",m,[r(p,null,{default:c((()=>[r(v,{onClick:l[0]||(l[0]=e=>k.create())},{default:c((()=>[d(" 启动 ")])),_:1}),r(v,{onClick:l[1]||(l[1]=e=>k.getUrl())},{default:c((()=>[d(" 获取地址 ")])),_:1}),r(v,{onClick:l[2]||(l[2]=e=>k.kill())},{default:c((()=>[d(" kill ")])),_:1}),r(v,{onClick:l[3]||(l[3]=e=>k.info())},{default:c((()=>[d(" 查看 ")])),_:1})])),_:1})]),g,i("div",_,[r(p,null,{default:c((()=>[r(v,{onClick:l[4]||(l[4]=e=>k.request(1))},{default:c((()=>[d(" 前端发送 ")])),_:1}),r(v,{onClick:l[5]||(l[5]=e=>k.request(2))},{default:c((()=>[d(" 主进程发送 ")])),_:1})])),_:1})]),C,i("div",b,[r(p,null,{default:c((()=>[r(v,{onClick:l[6]||(l[6]=e=>k.create())},{default:c((()=>[d(" 启动 ")])),_:1}),r(v,{onClick:l[7]||(l[7]=e=>k.killAll())},{default:c((()=>[d(" kill所有 ")])),_:1})])),_:1})])])}],["__scopeId","data-v-5d226b2a"]]);export{j as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as t,a as s,g as a,b as i,o as l,c as n,f as o,e as d,w as r,h as c,t as u,p as v,k as m}from"./index-f69ca7de.js";const p={data:()=>({defaultDeviceName:"",printerList:[],views:[{type:"html",content:"/public/html/view_example.html"}]}),mounted(){this.init()},methods:{init(){t.removeAllListeners(s.printStatus),t.on(s.printStatus,((e,t)=>{console.log("result",t),this.$message.info("打印中...")}))},getPrinter(){t.invoke(s.getPrinterList,{}).then((e=>{this.printerList=e}))},doPrint(e){console.log("defaultDeviceName:",this.defaultDeviceName);const i={view:a(this.views[e]),deviceName:this.defaultDeviceName};t.send(s.print,i)},defaultDevice(e){let t="";return e.isDefault&&(t="- 默认",this.defaultDeviceName=e.name),t}}},f=e=>(v("data-v-b732860b"),e=e(),m(),e),h={id:"app-hw-bluetooth"},b=f((()=>o("div",{class:"one-block-1"},[o("span",null," 1. 打印机设备 ")],-1))),k={class:"one-block-2"},D={class:"one-block-2"},_=f((()=>o("div",null,"设备列表",-1))),g=f((()=>o("div",{class:"one-block-1"},[o("span",null," 2. 打印内容 ")],-1))),N={class:"one-block-2"};const w=e(p,[["render",function(e,t,s,a,v,m){const p=i("a-button"),f=i("a-list-item"),w=i("a-list");return l(),n("div",h,[b,o("div",k,[d(p,{onClick:t[0]||(t[0]=e=>m.getPrinter())},{default:r((()=>[c(" 获取打印机列表 ")])),_:1})]),o("div",D,[d(w,{size:"small",bordered:"","data-source":v.printerList},{renderItem:r((({item:e})=>[d(f,null,{default:r((()=>[c(u(e.displayName)+" "+u(m.defaultDevice(e)),1)])),_:2},1024)])),header:r((()=>[_])),_:1},8,["data-source"])]),g,o("div",N,[d(p,{onClick:t[1]||(t[1]=e=>m.doPrint(0))},{default:r((()=>[c(" 打印一个页面 ")])),_:1})])])}],["__scopeId","data-v-b732860b"]]);export{w as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as l,a as s,l as a,b as o,o as t,c as n,f as i,e as r,w as c,h as p,p as d,k as u}from"./index-4c6e30ca.js";const k={data:()=>({type:1,serverUrl:""}),methods:{info(){l.invoke(s.crossInfo,{}).then((e=>{console.log("res:",e)}))},getUrl(){l.invoke(s.getCrossUrl,{name:"pyapp"}).then((e=>{this.serverUrl=e,this.$message.info(`服务地址: ${e}`)}))},kill(){l.invoke(s.killCrossServer,{type:"one",name:"pyapp"})},killAll(){l.invoke(s.killCrossServer,{type:"all",name:"pyapp"})},create(){l.invoke(s.createCrossServer,{program:"python"})},request(e){if(1!=e||""!=this.serverUrl)if(1==e){const e=this.serverUrl+"/api/hello";a({method:"get",url:e,params:{id:"111"},timeout:1e3}).then((e=>{console.log("res:",e);const l=e.data||null;this.$message.info(`服务返回: ${JSON.stringify(l)}`)}))}else l.invoke(s.requestApi,{name:"pyapp",urlPath:"/api/hello"}).then((e=>{console.log("res:",e);const l=e||null;this.$message.info(`服务返回: ${JSON.stringify(l)}`)}));else this.$message.info("请先获取服务地址")}}},f=e=>(d("data-v-89c3cb98"),e=e(),u(),e),v={id:"app-cross-python"},h=f((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 基础控制 ")],-1))),m={class:"one-block-2"},g=f((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 发送http请求 ")],-1))),_={class:"one-block-2"},C=f((()=>i("div",{class:"one-block-1"},[i("span",null," 3. 多个服务 ")],-1))),y={class:"one-block-2"};const b=e(k,[["render",function(e,l,s,a,d,u){const k=o("a-button"),f=o("a-space");return t(),n("div",v,[h,i("div",m,[r(f,null,{default:c((()=>[r(k,{onClick:l[0]||(l[0]=e=>u.create())},{default:c((()=>[p(" 启动 ")])),_:1}),r(k,{onClick:l[1]||(l[1]=e=>u.getUrl())},{default:c((()=>[p(" 获取地址 ")])),_:1}),r(k,{onClick:l[2]||(l[2]=e=>u.kill())},{default:c((()=>[p(" kill ")])),_:1}),r(k,{onClick:l[3]||(l[3]=e=>u.info())},{default:c((()=>[p(" test ")])),_:1})])),_:1})]),g,i("div",_,[r(f,null,{default:c((()=>[r(k,{onClick:l[4]||(l[4]=e=>u.request(1))},{default:c((()=>[p(" 前端发送 ")])),_:1}),r(k,{onClick:l[5]||(l[5]=e=>u.request(2))},{default:c((()=>[p(" 主进程发送 ")])),_:1})])),_:1})]),C,i("div",y,[r(f,null,{default:c((()=>[r(k,{onClick:l[6]||(l[6]=e=>u.create())},{default:c((()=>[p(" 启动 ")])),_:1}),r(k,{onClick:l[7]||(l[7]=e=>u.killAll())},{default:c((()=>[p(" kill all ")])),_:1})])),_:1})])])}],["__scopeId","data-v-89c3cb98"]]);export{b as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as s,a,b as l,o,c as t,f as i,e as n,w as d,h as c,p as r,k as u}from"./index-f69ca7de.js";import{s as p}from"./store2-491cc7ac.js";const f=[{content:"【下载】目录",id:"downloads"},{content:"【图片】目录",id:"pictures"},{content:"【文档】目录",id:"documents"},{content:"【音乐】目录",id:"music"}],h={data:()=>({file_list:f,action_url:"",image_info:[],num:0,servicAddress:"",dir_path:"D:\\www\\ee"}),mounted(){this.getHost()},methods:{getHost(){s.invoke(a.checkHttpServer,{}).then((e=>{if(e.enable){this.servicAddress=e.server,p.set("httpServiceConfig",e);const s=e.server||"http://localhost:7071";let l=a.uploadFile.split(".").join("/");this.action_url=s+"/"+l}}))},openDirectry(e){s.invoke(a.openDirectory,{id:e}).then((e=>{}))},selectDir(){s.invoke(a.selectFolder,"").then((e=>{this.dir_path=e,this.$message.info(e)}))},messageShow(){s.invoke(a.messageShow,"").then((e=>{this.$message.info(e)}))},messageShowConfirm(){s.invoke(a.messageShowConfirm,"").then((e=>{this.$message.info(e)}))},handleFileChange(e){if(console.log("handleFileChange-----"),""==this.action_url)return void this.$message.error("http服务未开启");const s=e.file.status;if("uploading"!==s&&console.log(e.file),"done"===s){const s=e.file.response;if(console.log("uploadRes:",s),"success"!==s.code)return this.$message.error(`file upload failed ${s.code} .`),!1;this.num++;const a=s.data;a.id=this.num,a.imageUrlText="image url",this.image_info.push(a),this.$message.success(`${e.file.name} file uploaded successfully.`)}else"error"===s&&this.$message.error(`${e.file.name} file upload failed.`)}}},m=e=>(r("data-v-d30dccef"),e=e(),u(),e),g={id:"app-base-file"},_=m((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 系统原生对话框 ")],-1))),v={class:"one-block-2"},k=m((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 选择保存目录 ")],-1))),C={class:"one-block-2"},b=m((()=>i("div",{class:"one-block-1"},[i("span",null," 3. 打开文件夹 ")],-1))),w={class:"one-block-2"},$=m((()=>i("div",{class:"one-block-1"},[i("span",null," 4. 上传文件到图床 ")],-1))),S={class:"one-block-2"},D=m((()=>i("p",{class:"ant-upload-drag-icon"},null,-1))),y=m((()=>i("p",{class:"ant-upload-text"}," 点击 或 拖拽文件到这里 ",-1))),F=m((()=>i("p",{class:"ant-upload-hint"}," 注意请使用您自己的图床token ",-1))),x=m((()=>i("div",{class:"footer"},null,-1)));const j=e(h,[["render",function(e,s,a,r,u,p){const f=l("a-button"),h=l("a-space"),m=l("a-input"),j=l("a-col"),H=l("a-row"),V=l("a-card"),A=l("a-list-item"),I=l("a-list"),U=l("a-upload-dragger");return o(),t("div",g,[_,i("div",v,[n(h,null,{default:d((()=>[n(f,{onClick:s[0]||(s[0]=e=>p.messageShow())},{default:d((()=>[c("消息提示(ipc)")])),_:1}),n(f,{onClick:s[1]||(s[1]=e=>p.messageShowConfirm())},{default:d((()=>[c("消息提示与确认(ipc)")])),_:1})])),_:1})]),k,i("div",C,[n(H,null,{default:d((()=>[n(j,{span:12},{default:d((()=>[n(m,{modelValue:u.dir_path,"onUpdate:modelValue":s[2]||(s[2]=e=>u.dir_path=e),value:u.dir_path,"addon-before":"保存目录"},null,8,["modelValue","value"])])),_:1}),n(j,{span:12},{default:d((()=>[n(f,{onClick:p.selectDir},{default:d((()=>[c(" 修改目录 ")])),_:1},8,["onClick"])])),_:1})])),_:1})]),b,i("div",w,[n(I,{grid:{gutter:16,column:4},"data-source":u.file_list},{renderItem:d((({item:e})=>[n(A,{onClick:s=>p.openDirectry(e.id)},{default:d((()=>[n(V,{title:e.content},{default:d((()=>[n(f,{type:"link"},{default:d((()=>[c(" 打开 ")])),_:1})])),_:2},1032,["title"])])),_:2},1032,["onClick"])])),_:1},8,["data-source"])]),$,i("div",S,[n(U,{name:"file",multiple:!0,action:u.action_url,onChange:p.handleFileChange},{default:d((()=>[D,y,F])),_:1},8,["action","onChange"])]),x])}],["__scopeId","data-v-d30dccef"]]);export{j as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as t,i,a as e,g as s,b as n,o as a,c as o,f as l,e as c,w as d,h as f,p as b,k as u}from"./index-f69ca7de.js";const p={data:()=>({views:[{type:"main",title:"通知标题",subtitle:"副标题",body:"这是通知内容-默认",silent:!0},{type:"main",title:"提示音",subtitle:"副标题-提示音",body:"这是通知内容-提示音",silent:!1},{type:"main",title:"点击通知事件",subtitle:"副标题-点击通知事件",body:"这是通知内容-点击通知事件",clickEvent:!0},{type:"main",title:"关闭通知事件",subtitle:"副标题-关闭通知事件",body:"这是通知内容-点击通知事件",closeEvent:!0}]}),mounted(){this.init()},methods:{init(){i.removeAllListeners(e.sendNotification),i.on(e.sendNotification,((t,i)=>{"[object Object]"==Object.prototype.toString.call(i)&&this.$message.info(i.msg)}))},sendNotification(t){i.send(e.sendNotification,s(this.views[t]))}}},m={id:"app-base-notification"},r=(t=>(b("data-v-6555f14e"),t=t(),u(),t))((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 弹出桌面通知 ")],-1))),v={class:"one-block-2"};const y=t(p,[["render",function(t,i,e,s,b,u){const p=n("a-button"),y=n("a-space");return a(),o("div",m,[r,l("div",v,[c(y,null,{default:d((()=>[c(p,{onClick:i[0]||(i[0]=t=>u.sendNotification(0))},{default:d((()=>[f("默认")])),_:1}),c(p,{onClick:i[1]||(i[1]=t=>u.sendNotification(1))},{default:d((()=>[f("发出提示音")])),_:1}),c(p,{onClick:i[2]||(i[2]=t=>u.sendNotification(2))},{default:d((()=>[f("点击通知触发事件")])),_:1}),c(p,{onClick:i[3]||(i[3]=t=>u.sendNotification(3))},{default:d((()=>[f("关闭通知触发事件")])),_:1})])),_:1})])])}],["__scopeId","data-v-6555f14e"]]);export{y as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as s,i as e,a as r,b as o,o as i,c as p,f as l,e as d,w as t,h as a,t as n,p as u,k as c}from"./index-4c6e30ca.js";const g={data:()=>({processPids:"",progress1:0,progress2:0,progress3:0,progress4:0,progress5:0,progress6:0,progress1_pid:0,progress2_pid:0,progress3_pid:0,progress4_pid:0,progress5_pid:0,progress6_pid:0}),mounted(){this.init()},methods:{init(){e.removeAllListeners(r.timerJobProgress),e.removeAllListeners(r.createPoolNotice),e.on(r.timerJobProgress,((s,e)=>{switch(e.jobId){case 1:this.progress1=e.number,this.progress1_pid=0==e.pid?e.pid:this.progress1_pid;break;case 2:this.progress2=e.number,this.progress2_pid=0==e.pid?e.pid:this.progress2_pid;break;case 3:this.progress3=e.number,this.progress3_pid=0==e.pid?e.pid:this.progress3_pid;break;case 4:this.progress4=e.number,this.progress4_pid=0==e.pid?e.pid:this.progress4_pid;break;case 5:this.progress5=e.number,this.progress5_pid=0==e.pid?e.pid:this.progress5_pid;break;case 6:this.progress6=e.number,this.progress6_pid=0==e.pid?e.pid:this.progress6_pid}})),e.on(r.createPoolNotice,((s,e)=>{let r=JSON.stringify(e);this.processPids=r}))},runJob(s,o){let i={id:s,type:"timer",action:o};e.invoke(r.someJob,i).then((s=>{if("close"!=o)switch(s.jobId){case 1:this.progress1_pid=s.result.pid;break;case 2:this.progress2_pid=s.result.pid}}))},createPool(){e.send(r.createPool,{number:3})},runJobByPool(s,o){let i={id:s,type:"timer",action:o};e.invoke(r.someJobByPool,i).then((s=>{switch(s.jobId){case 3:this.progress3_pid=s.result.pid;break;case 4:this.progress4_pid=s.result.pid;break;case 5:this.progress5_pid=s.result.pid;break;case 6:this.progress6_pid=s.result.pid}}))}}},_=s=>(u("data-v-71705fa7"),s=s(),c(),s),b={id:"app-base-jobs"},h=_((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 任务 / 并发任务 ")],-1))),k={class:"one-block-2"},f=_((()=>l("p",null,null,-1))),m=_((()=>l("div",{class:"one-block-1"},[l("span",null," 2. 任务池 / 并发任务 ")],-1))),P={class:"one-block-2"},J=_((()=>l("p",null,null,-1))),v=_((()=>l("p",null,null,-1))),y=_((()=>l("p",null,null,-1))),C=_((()=>l("p",null,null,-1)));const B=s(g,[["render",function(s,e,r,u,c,g){const _=o("a-button"),B=o("a-space");return i(),p("div",b,[h,l("div",k,[d(B,null,{default:t((()=>[d(_,{onClick:e[0]||(e[0]=s=>g.runJob(1,"create"))},{default:t((()=>[a("执行任务1")])),_:1}),a(" 进度:"+n(c.progress1)+" 进程pid"+n(c.progress1_pid)+" ",1),d(_,{onClick:e[1]||(e[1]=s=>g.runJob(1,"close"))},{default:t((()=>[a("关闭")])),_:1})])),_:1}),f,d(B,null,{default:t((()=>[d(_,{onClick:e[2]||(e[2]=s=>g.runJob(2,"create"))},{default:t((()=>[a("执行任务2")])),_:1}),a(" 进度:"+n(c.progress2)+" 进程pid"+n(c.progress2_pid)+" ",1),d(_,{onClick:e[3]||(e[3]=s=>g.runJob(2,"close"))},{default:t((()=>[a("关闭")])),_:1})])),_:1})]),m,l("div",P,[d(B,null,{default:t((()=>[d(_,{onClick:e[4]||(e[4]=s=>g.createPool())},{default:t((()=>[a("创建进程池")])),_:1}),a(" 进程pids"+n(c.processPids),1)])),_:1}),J,d(B,null,{default:t((()=>[d(_,{onClick:e[5]||(e[5]=s=>g.runJobByPool(3,"run"))},{default:t((()=>[a("执行任务3")])),_:1}),a(" 进度:"+n(c.progress3)+" 进程pid"+n(c.progress3_pid),1)])),_:1}),v,d(B,null,{default:t((()=>[d(_,{onClick:e[6]||(e[6]=s=>g.runJobByPool(4,"run"))},{default:t((()=>[a("执行任务4")])),_:1}),a(" 进度:"+n(c.progress4)+" 进程pid"+n(c.progress4_pid),1)])),_:1}),y,d(B,null,{default:t((()=>[d(_,{onClick:e[7]||(e[7]=s=>g.runJobByPool(5,"run"))},{default:t((()=>[a("执行任务5")])),_:1}),a(" 进度:"+n(c.progress5)+" 进程pid"+n(c.progress5_pid),1)])),_:1}),C,d(B,null,{default:t((()=>[d(_,{onClick:e[8]||(e[8]=s=>g.runJobByPool(6,"run"))},{default:t((()=>[a("执行任务6")])),_:1}),a(" 进度:"+n(c.progress6)+" 进程pid"+n(c.progress6_pid),1)])),_:1})])])}],["__scopeId","data-v-71705fa7"]]);export{B as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as t,a,b as s,o,c as l,f as n,e as d,w as u,t as h,h as r,p as m,k as c}from"./index-4c6e30ca.js";const i={data:()=>({currentThemeMode:"",themeList:["system","light","dark"]}),mounted(){},methods:{setTheme(e){this.currentThemeMode=e.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),t.invoke(a.setTheme,this.currentThemeMode).then((e=>{console.log("result:",e),this.currentThemeMode=e}))},getTheme(){t.invoke(a.getTheme).then((e=>{console.log("result:",e),this.currentThemeMode=e}))}}},T=e=>(m("data-v-5a0f8a17"),e=e(),c(),e),v={id:"app-base-screen"},f=T((()=>n("div",{class:"one-block-1"},[n("span",null," 1. 系统主题模式 ")],-1))),g={class:"one-block-2"},p=T((()=>n("div",{class:"one-block-1"}," 2. 设置主题模式请自行实现前端UI效果 ",-1))),M={class:"one-block-2"};const k=e(i,[["render",function(e,t,a,m,c,i){const T=s("a-button"),k=s("a-space"),_=s("a-radio"),b=s("a-radio-group");return o(),l("div",v,[f,n("div",g,[d(k,null,{default:u((()=>[d(T,{onClick:t[0]||(t[0]=e=>i.getTheme())},{default:u((()=>[r("获取模式")])),_:1})])),_:1}),n("span",null," 结果:"+h(c.currentThemeMode),1)]),p,n("div",M,[d(b,{modelValue:c.currentThemeMode,"onUpdate:modelValue":t[1]||(t[1]=e=>c.currentThemeMode=e),onChange:i.setTheme},{default:u((()=>[d(_,{value:c.themeList[0]},{default:u((()=>[r(h(c.themeList[0]),1)])),_:1},8,["value"]),d(_,{value:c.themeList[1]},{default:u((()=>[r(h(c.themeList[1]),1)])),_:1},8,["value"]),d(_,{value:c.themeList[2]},{default:u((()=>[r(h(c.themeList[2]),1)])),_:1},8,["value"])])),_:1},8,["modelValue","onChange"])])])}],["__scopeId","data-v-5a0f8a17"]]);export{k as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as a,i as e,a as t,b as n,o as s,c as o,f as u,e as c,w as l,p as h,k as i}from"./index-4c6e30ca.js";const d={data:()=>({autoLaunchChecked:!1}),mounted(){this.init()},methods:{init(){e.invoke(t.autoLaunch,"check").then((a=>{console.log("[ipcRenderer] [autoLaunch] result:",a),this.autoLaunchChecked=a.status}))},autoLaunchChange(a){console.log("[ipcRenderer] [autoLaunch] self.autoLaunchChecked:",this.autoLaunchChecked)}}},r=a=>(h("data-v-1b008e01"),a=a(),i(),a),k={id:"app-base-system-launch"},m={class:"one-block-2"},C=r((()=>u("a",null,"启动",-1))),L=r((()=>u("span",null," 开机自动启动 ",-1)));const p=a(d,[["render",function(a,e,t,h,i,d){const r=n("a-list-item-meta"),p=n("a-switch"),f=n("a-list-item"),g=n("a-list");return s(),o("div",k,[u("div",m,[c(g,{class:"set-auto",itemLayout:"horizontal"},{default:l((()=>[c(f,{style:{"text-align":"left"}},{actions:l((()=>[c(p,{modelValue:i.autoLaunchChecked,"onUpdate:modelValue":e[0]||(e[0]=a=>i.autoLaunchChecked=a),checkedChildren:"开",unCheckedChildren:"关",onChange:e[1]||(e[1]=a=>d.autoLaunchChange())},null,8,["modelValue"])])),default:l((()=>[c(r,null,{title:l((()=>[C])),description:l((()=>[L])),_:1})])),_:1})])),_:1})])])}],["__scopeId","data-v-1b008e01"]]);export{p as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as t,a,b as s,o,c as l,f as n,e as d,w as u,t as h,h as r,p as m,k as c}from"./index-f69ca7de.js";const i={data:()=>({currentThemeMode:"",themeList:["system","light","dark"]}),mounted(){},methods:{setTheme(e){this.currentThemeMode=e.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),t.invoke(a.setTheme,this.currentThemeMode).then((e=>{console.log("result:",e),this.currentThemeMode=e}))},getTheme(){t.invoke(a.getTheme).then((e=>{console.log("result:",e),this.currentThemeMode=e}))}}},T=e=>(m("data-v-5a0f8a17"),e=e(),c(),e),v={id:"app-base-screen"},f=T((()=>n("div",{class:"one-block-1"},[n("span",null," 1. 系统主题模式 ")],-1))),g={class:"one-block-2"},p=T((()=>n("div",{class:"one-block-1"}," 2. 设置主题模式请自行实现前端UI效果 ",-1))),M={class:"one-block-2"};const k=e(i,[["render",function(e,t,a,m,c,i){const T=s("a-button"),k=s("a-space"),_=s("a-radio"),b=s("a-radio-group");return o(),l("div",v,[f,n("div",g,[d(k,null,{default:u((()=>[d(T,{onClick:t[0]||(t[0]=e=>i.getTheme())},{default:u((()=>[r("获取模式")])),_:1})])),_:1}),n("span",null," 结果:"+h(c.currentThemeMode),1)]),p,n("div",M,[d(b,{modelValue:c.currentThemeMode,"onUpdate:modelValue":t[1]||(t[1]=e=>c.currentThemeMode=e),onChange:i.setTheme},{default:u((()=>[d(_,{value:c.themeList[0]},{default:u((()=>[r(h(c.themeList[0]),1)])),_:1},8,["value"]),d(_,{value:c.themeList[1]},{default:u((()=>[r(h(c.themeList[1]),1)])),_:1},8,["value"]),d(_,{value:c.themeList[2]},{default:u((()=>[r(h(c.themeList[2]),1)])),_:1},8,["value"])])),_:1},8,["modelValue","onChange"])])])}],["__scopeId","data-v-5a0f8a17"]]);export{k as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as a,i as e,a as s,b as t,o as l,c as n,f as c,e as d,w as o,h as i,F as r,r as u,d as f,t as b,p,k}from"./index-f69ca7de.js";const _={data:()=>({data:[]}),methods:{getScreen(a){e.invoke(s.getScreen,a).then((a=>{this.data=a}))}}},v=a=>(p("data-v-5c2facb0"),a=a(),k(),a),g={id:"app-base-screen"},S=v((()=>c("div",{class:"one-block-1"},[c("span",null," 1. 屏幕信息 ")],-1))),h={class:"one-block-2"},m=v((()=>c("div",{class:"one-block-1"},[c("span",null," 结果: ")],-1))),C={class:"one-block-2"};const x=a(_,[["render",function(a,e,s,p,k,_){const v=t("a-button"),x=t("a-space"),j=t("a-descriptions-item"),w=t("a-descriptions");return l(),n("div",g,[S,c("div",h,[d(x,null,{default:o((()=>[d(v,{onClick:e[0]||(e[0]=a=>_.getScreen(0))},{default:o((()=>[i("获取当前鼠标位置")])),_:1}),d(v,{onClick:e[1]||(e[1]=a=>_.getScreen(1))},{default:o((()=>[i("获取主屏幕")])),_:1}),d(v,{onClick:e[2]||(e[2]=a=>_.getScreen(2))},{default:o((()=>[i("获取所有屏幕")])),_:1})])),_:1})]),m,c("div",C,[d(w,{title:""},{default:o((()=>[(l(!0),n(r,null,u(k.data,((a,e)=>(l(),f(j,{key:e,label:a.title},{default:o((()=>[i(b(a.desc),1)])),_:2},1032,["label"])))),128))])),_:1})])])}],["__scopeId","data-v-5c2facb0"]]);export{x as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as s,a,l as t,b as r,o,c as n,f as i,e as v,w as c,h as d,p as l,k as m}from"./index-f69ca7de.js";import{s as u}from"./store2-491cc7ac.js";const f={data:()=>({server:""}),methods:{startServer(){s.invoke(a.startJavaServer,{}).then((e=>{0!=e.code?this.$message.error(e.msg):(this.$message.info("异步启动"),u.set("javaService",e.server))}))},closeServer(){s.invoke(a.closeJavaServer,{}).then((e=>{0!=e.code&&this.$message.error(e.msg),this.$message.info("异步关闭"),u.remove("javaService")}))},sendRequest(){const e=u.get("javaService")||"";if(""==e)return void this.$message.error("服务未开启 或 正在启动中");t({method:"get",url:e+"/test1/get",params:{id:"1111111"},timeout:6e4}).then((e=>{const s=e.data||null;this.$message.info(`java服务返回: ${s}`)}))}}},h={id:"app-other"},g=(e=>(l("data-v-c3213243"),e=e(),m(),e))((()=>i("div",{class:"one-block-1"},[i("span",null," 请求java服务接口(废弃,请使用跨语言服务) ")],-1))),p={class:"one-block-2"};const j=e(f,[["render",function(e,s,a,t,l,m){const u=r("a-button"),f=r("a-space");return o(),n("div",h,[g,i("div",p,[v(f,null,{default:c((()=>[v(u,{onClick:s[0]||(s[0]=e=>m.startServer())},{default:c((()=>[d(" 启动java项目 ")])),_:1}),v(u,{onClick:s[1]||(s[1]=e=>m.sendRequest())},{default:c((()=>[d(" 测试接口 ")])),_:1}),v(u,{onClick:s[2]||(s[2]=e=>m.closeServer())},{default:c((()=>[d(" 关闭java项目 ")])),_:1})])),_:1})])])}],["__scopeId","data-v-c3213243"]]);export{j as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as n,a as l,g as a,b as o,o as i,c as t,f as d,e as s,w,h as c,p as u,k as b}from"./index-4c6e30ca.js";const p={data:()=>({views:[{type:"web",content:"https://www.bilibili.com/",windowName:"window-web",windowTitle:"bilibili"},{type:"html",content:"/public/html/view_example.html",windowName:"window-html",windowTitle:"html window"},{type:"vue",content:"#/special/subwindow",windowName:"window-vue",windowTitle:"vue window"}]}),methods:{createWindow(e){n.invoke(l.createWindow,a(this.views[e])).then((e=>{console.log(e)}))}}},v=e=>(u("data-v-f82edd5f"),e=e(),b(),e),m={id:"app-base-window"},f=v((()=>d("div",{class:"one-block-1"},[d("span",null," 1. 新窗口中加载web内容 ")],-1))),h={class:"one-block-2"},r=v((()=>d("div",{class:"one-block-1"},[d("span",null," 2. 新窗口中加载html内容 ")],-1))),k={class:"one-block-2"},_=v((()=>d("div",{class:"one-block-1"},[d("span",null," 3. 新窗口中加载当前项目页面 ")],-1))),W={class:"one-block-2"};const x=e(p,[["render",function(e,n,l,a,u,b){const p=o("a-button"),v=o("a-space");return i(),t("div",m,[f,d("div",h,[s(v,null,{default:w((()=>[s(p,{onClick:n[0]||(n[0]=e=>b.createWindow(0))},{default:w((()=>[c("打开哔哩哔哩")])),_:1})])),_:1})]),r,d("div",k,[s(v,null,{default:w((()=>[s(p,{onClick:n[1]||(n[1]=e=>b.createWindow(1))},{default:w((()=>[c("打开html页面")])),_:1})])),_:1})]),_,d("div",W,[s(v,null,{default:w((()=>[s(p,{onClick:n[2]||(n[2]=e=>b.createWindow(2))},{default:w((()=>[c("打开vue页面")])),_:1})])),_:1})])])}],["__scopeId","data-v-f82edd5f"]]);export{x as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as s,i as e,s as a,a as t,b as o,o as n,c,f as r,e as d,w as l,h as p,t as i,p as u,k as h}from"./index-f69ca7de.js";const f={data:()=>({status:0,progress:"",percentNumber:0}),mounted(){this.init()},methods:{init(){e.removeAllListeners(a.appUpdater),e.on(a.appUpdater,((s,e)=>{e=JSON.parse(e),this.status=e.status,3==e.status?(this.progress=e.desc,this.percentNumber=e.percentNumber):this.$message.info(e.desc)}))},checkForUpdater(){e.invoke(t.checkForUpdater).then((s=>{console.log(s)}))},download(){1===this.status?e.invoke(t.downloadApp).then((s=>{console.log(s)})):this.$message.info("没有可用版本")}}},k=s=>(u("data-v-88c3fe69"),s=s(),h(),s),m={id:"app-demo-window"},v=k((()=>r("div",{class:"one-block-1"},[r("span",null," 1. 自动更新 ")],-1))),b={class:"one-block-2"},g=k((()=>r("div",{class:"one-block-1"},[r("span",null," 2. 下载进度 ")],-1))),_={class:"one-block-2"};const w=s(f,[["render",function(s,e,a,t,u,h){const f=o("a-button"),k=o("a-space"),w=o("a-progress");return n(),c("div",m,[v,r("div",b,[d(k,null,{default:l((()=>[d(f,{onClick:e[0]||(e[0]=s=>h.checkForUpdater())},{default:l((()=>[p("检查更新")])),_:1}),d(f,{onClick:e[1]||(e[1]=s=>h.download())},{default:l((()=>[p("下载并安装")])),_:1})])),_:1})]),g,r("div",_,[d(w,{percent:u.percentNumber,status:"active"},null,8,["percent"]),d(k,null,{default:l((()=>[p(i(u.progress),1)])),_:1})])])}],["__scopeId","data-v-88c3fe69"]]);export{w as default};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as s,a,b as l,o,c as t,f as i,e as n,w as d,h as c,p as r,k as u}from"./index-4c6e30ca.js";import{s as p}from"./store2-2e77238e.js";const f=[{content:"【下载】目录",id:"downloads"},{content:"【图片】目录",id:"pictures"},{content:"【文档】目录",id:"documents"},{content:"【音乐】目录",id:"music"}],h={data:()=>({file_list:f,action_url:"",image_info:[],num:0,servicAddress:"",dir_path:"D:\\www\\ee"}),mounted(){this.getHost()},methods:{getHost(){s.invoke(a.checkHttpServer,{}).then((e=>{if(e.enable){this.servicAddress=e.server,p.set("httpServiceConfig",e);const s=e.server||"http://localhost:7071";let l=a.uploadFile.split(".").join("/");this.action_url=s+"/"+l}}))},openDirectry(e){s.invoke(a.openDirectory,{id:e}).then((e=>{}))},selectDir(){s.invoke(a.selectFolder,"").then((e=>{this.dir_path=e,this.$message.info(e)}))},messageShow(){s.invoke(a.messageShow,"").then((e=>{this.$message.info(e)}))},messageShowConfirm(){s.invoke(a.messageShowConfirm,"").then((e=>{this.$message.info(e)}))},handleFileChange(e){if(console.log("handleFileChange-----"),""==this.action_url)return void this.$message.error("http服务未开启");const s=e.file.status;if("uploading"!==s&&console.log(e.file),"done"===s){const s=e.file.response;if(console.log("uploadRes:",s),"success"!==s.code)return this.$message.error(`file upload failed ${s.code} .`),!1;this.num++;const a=s.data;a.id=this.num,a.imageUrlText="image url",this.image_info.push(a),this.$message.success(`${e.file.name} file uploaded successfully.`)}else"error"===s&&this.$message.error(`${e.file.name} file upload failed.`)}}},m=e=>(r("data-v-d30dccef"),e=e(),u(),e),g={id:"app-base-file"},_=m((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 系统原生对话框 ")],-1))),v={class:"one-block-2"},k=m((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 选择保存目录 ")],-1))),C={class:"one-block-2"},b=m((()=>i("div",{class:"one-block-1"},[i("span",null," 3. 打开文件夹 ")],-1))),w={class:"one-block-2"},$=m((()=>i("div",{class:"one-block-1"},[i("span",null," 4. 上传文件到图床 ")],-1))),S={class:"one-block-2"},D=m((()=>i("p",{class:"ant-upload-drag-icon"},null,-1))),y=m((()=>i("p",{class:"ant-upload-text"}," 点击 或 拖拽文件到这里 ",-1))),F=m((()=>i("p",{class:"ant-upload-hint"}," 注意请使用您自己的图床token ",-1))),x=m((()=>i("div",{class:"footer"},null,-1)));const j=e(h,[["render",function(e,s,a,r,u,p){const f=l("a-button"),h=l("a-space"),m=l("a-input"),j=l("a-col"),H=l("a-row"),V=l("a-card"),A=l("a-list-item"),I=l("a-list"),U=l("a-upload-dragger");return o(),t("div",g,[_,i("div",v,[n(h,null,{default:d((()=>[n(f,{onClick:s[0]||(s[0]=e=>p.messageShow())},{default:d((()=>[c("消息提示(ipc)")])),_:1}),n(f,{onClick:s[1]||(s[1]=e=>p.messageShowConfirm())},{default:d((()=>[c("消息提示与确认(ipc)")])),_:1})])),_:1})]),k,i("div",C,[n(H,null,{default:d((()=>[n(j,{span:12},{default:d((()=>[n(m,{modelValue:u.dir_path,"onUpdate:modelValue":s[2]||(s[2]=e=>u.dir_path=e),value:u.dir_path,"addon-before":"保存目录"},null,8,["modelValue","value"])])),_:1}),n(j,{span:12},{default:d((()=>[n(f,{onClick:p.selectDir},{default:d((()=>[c(" 修改目录 ")])),_:1},8,["onClick"])])),_:1})])),_:1})]),b,i("div",w,[n(I,{grid:{gutter:16,column:4},"data-source":u.file_list},{renderItem:d((({item:e})=>[n(A,{onClick:s=>p.openDirectry(e.id)},{default:d((()=>[n(V,{title:e.content},{default:d((()=>[n(f,{type:"link"},{default:d((()=>[c(" 打开 ")])),_:1})])),_:2},1032,["title"])])),_:2},1032,["onClick"])])),_:1},8,["data-source"])]),$,i("div",S,[n(U,{name:"file",multiple:!0,action:u.action_url,onChange:p.handleFileChange},{default:d((()=>[D,y,F])),_:1},8,["action","onChange"])]),x])}],["__scopeId","data-v-d30dccef"]]);export{j as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as n,a as l,g as a,b as o,o as i,c as t,f as d,e as s,w,h as c,p as u,k as b}from"./index-f69ca7de.js";const p={data:()=>({views:[{type:"web",content:"https://www.bilibili.com/",windowName:"window-web",windowTitle:"bilibili"},{type:"html",content:"/public/html/view_example.html",windowName:"window-html",windowTitle:"html window"},{type:"vue",content:"#/special/subwindow",windowName:"window-vue",windowTitle:"vue window"}]}),methods:{createWindow(e){n.invoke(l.createWindow,a(this.views[e])).then((e=>{console.log(e)}))}}},v=e=>(u("data-v-f82edd5f"),e=e(),b(),e),m={id:"app-base-window"},f=v((()=>d("div",{class:"one-block-1"},[d("span",null," 1. 新窗口中加载web内容 ")],-1))),h={class:"one-block-2"},r=v((()=>d("div",{class:"one-block-1"},[d("span",null," 2. 新窗口中加载html内容 ")],-1))),k={class:"one-block-2"},_=v((()=>d("div",{class:"one-block-1"},[d("span",null," 3. 新窗口中加载当前项目页面 ")],-1))),W={class:"one-block-2"};const x=e(p,[["render",function(e,n,l,a,u,b){const p=o("a-button"),v=o("a-space");return i(),t("div",m,[f,d("div",h,[s(v,null,{default:w((()=>[s(p,{onClick:n[0]||(n[0]=e=>b.createWindow(0))},{default:w((()=>[c("打开哔哩哔哩")])),_:1})])),_:1})]),r,d("div",k,[s(v,null,{default:w((()=>[s(p,{onClick:n[1]||(n[1]=e=>b.createWindow(1))},{default:w((()=>[c("打开html页面")])),_:1})])),_:1})]),_,d("div",W,[s(v,null,{default:w((()=>[s(p,{onClick:n[2]||(n[2]=e=>b.createWindow(2))},{default:w((()=>[c("打开vue页面")])),_:1})])),_:1})])])}],["__scopeId","data-v-f82edd5f"]]);export{x as default};

Binary file not shown.

View File

@ -1 +0,0 @@
#app-base-test-api[data-v-223ec398]{padding:0 10px;text-align:left;width:100%}#app-base-test-api .one-block-1[data-v-223ec398]{font-size:16px;padding-top:10px}#app-base-test-api .one-block-2[data-v-223ec398]{padding-top:10px}

View File

@ -1 +0,0 @@
import{_ as a,i as e,a as s,b as t,o as l,c as n,f as c,e as d,w as o,h as i,F as r,r as u,d as f,t as b,p,k}from"./index-4c6e30ca.js";const _={data:()=>({data:[]}),methods:{getScreen(a){e.invoke(s.getScreen,a).then((a=>{this.data=a}))}}},v=a=>(p("data-v-5c2facb0"),a=a(),k(),a),g={id:"app-base-screen"},S=v((()=>c("div",{class:"one-block-1"},[c("span",null," 1. 屏幕信息 ")],-1))),h={class:"one-block-2"},m=v((()=>c("div",{class:"one-block-1"},[c("span",null," 结果: ")],-1))),C={class:"one-block-2"};const x=a(_,[["render",function(a,e,s,p,k,_){const v=t("a-button"),x=t("a-space"),j=t("a-descriptions-item"),w=t("a-descriptions");return l(),n("div",g,[S,c("div",h,[d(x,null,{default:o((()=>[d(v,{onClick:e[0]||(e[0]=a=>_.getScreen(0))},{default:o((()=>[i("获取当前鼠标位置")])),_:1}),d(v,{onClick:e[1]||(e[1]=a=>_.getScreen(1))},{default:o((()=>[i("获取主屏幕")])),_:1}),d(v,{onClick:e[2]||(e[2]=a=>_.getScreen(2))},{default:o((()=>[i("获取所有屏幕")])),_:1})])),_:1})]),m,c("div",C,[d(w,{title:""},{default:o((()=>[(l(!0),n(r,null,u(k.data,((a,e)=>(l(),f(j,{key:e,label:a.title},{default:o((()=>[i(b(a.desc),1)])),_:2},1032,["label"])))),128))])),_:1})])])}],["__scopeId","data-v-5c2facb0"]]);export{x as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as e,i as t,a as o,g as n,b as a,o as l,c as s,f as i,e as d,w as c,h as w,p as v,k as u}from"./index-f69ca7de.js";const m={data:()=>({views:[{type:"web",content:"https://www.baidu.com/"},{type:"html",content:"/public/html/view_example.html"}]}),methods:{loadViewContent(e){t.invoke(o.loadViewContent,n(this.views[e])).then((e=>{console.log(e)}))},removeViewContent(e){t.invoke(o.removeViewContent,n(this.views[e])).then((e=>{console.log(e)}))}}},p=e=>(v("data-v-792e445a"),e=e(),u(),e),h={id:"app-base-window-view"},C=p((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 嵌入web内容 ")],-1))),b={class:"one-block-2"},k=p((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 嵌入html内容 ")],-1))),r={class:"one-block-2"};const f=e(m,[["render",function(e,t,o,n,v,u){const m=a("a-button"),p=a("a-space");return l(),s("div",h,[C,i("div",b,[d(p,null,{default:c((()=>[d(m,{onClick:t[0]||(t[0]=e=>u.loadViewContent(0))},{default:c((()=>[w("加载百度页面")])),_:1}),d(m,{onClick:t[1]||(t[1]=e=>u.removeViewContent(0))},{default:c((()=>[w("移除百度页面")])),_:1})])),_:1})]),k,i("div",r,[d(p,null,{default:c((()=>[d(m,{onClick:t[2]||(t[2]=e=>u.loadViewContent(1))},{default:c((()=>[w("加载html页面")])),_:1}),d(m,{onClick:t[3]||(t[3]=e=>u.removeViewContent(1))},{default:c((()=>[w("移除html页面")])),_:1})])),_:1})])])}],["__scopeId","data-v-792e445a"]]);export{f as default};

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More