/**/ const attr = {} export default { template: `
关于

腾飞webos是一个商业化项目,希望在网络上复制Windows 11的桌面体验。

此项目仅采用开源项目win11React的样式

前后端逻辑和动画由阿范🎈完全从0写的,由前端Vue+后端Java共同实现

联系QQ : 185085781

联系微信 : O_o-T_T_o_O

此项目绝不附属于微软,且不应与微软操作系统或产品混淆。

这也不是 Windows 365 cloud PC.

本项目中微软、Windows和其他示范产品是微软公司组的商标。.

好的,我明白了
{{time.timeStr}}
{{time.dateStr}}
WLAN
蓝牙
飞行模式
节能模式
主题
护眼模式
{{battery.level}}%

{{calnPane.p1}}

{{calnPane.p2}}

`, props: ['wins'], data(){ return { user:{}, getLunar:function (date){ var res = webos.util.solar2lunar(date); return res.dayCn; }, pinneds:[], time:{ dateStr:"", timeStr:"", }, battery:{ charging:false, level:100 }, startMenu:{ show:false, shutDownShow:false }, sidePane:{ show:false }, settings:{ lightValue:100, theme:"light", wifi:true, bluetooth:false, airplane:false, saver:false, nightSun:false, volume:100 }, calnPane:{ show:false, val:new Date(), p1:"", p2:"" }, about:{ show:false, top:0, left:0 } } }, methods: { taskBarEleChange:function (e){ var target = e.target; this.startMenuChange(target); this.sidePanelChange(target); this.calnPanelChange(target); }, hasApp:async function (app){ if(!webos.context.get("hasInstall"+app)){ webos.context.set("hasInstall"+app,await webos.softUser.hasInstall(app)); } return webos.context.get("hasInstall"+app); }, init:async function (){ var that = this; that.user = await webos.user.info(); if(!that.user){ that.user = {}; } that.pinneds = []; that.pinneds.push({"app":"settings","name":"设置","type":3}); that.pinneds.push({"app":"fileExplorer","name":"文件管理器","icon":"modules/win11/imgs/icon/explorer.png","type":3}); that.pinneds.push({"app":"store","name":"应用商店","type":3}); if(await that.hasApp("webssh")){ that.pinneds.push({"app":"apps/webssh/index.html","name":"终端","type":4,"icon":"apps/webssh/icon.png"}); } that.timeAndBettery(); await that.initSettings(); }, timeAndBettery:function (){ var that = this; if(attr.hasInit){ return; } attr.hasInit = true; var count = 0; setInterval(function (){ if(count%2==0){ if(navigator.getBattery){ navigator.getBattery().then(function(res){ that.battery = { charging:res.charging, level:Math.floor(res.level*100) } }); } }; count++; if(count>10000){ count = 0; }; var date = new Date(); that.time = { dateStr:date.format("yyyy/MM/dd"), timeStr:date.format("dddddHH:mm:ss"), }; },500); setInterval(function (){ that.calnPane.val = new Date(); that.setTianQiColor(); },300*1000); }, showDesktop:function (){ console.log("展示桌面") }, barWidget:function (){ var that = this; that.about.top = -(176+window.innerHeight/2); that.about.left =(window.innerWidth - 448)/2; that.about.show = !that.about.show; }, showWindow:function (win){ var that = this; var desktop = webos.el.findParentComponent(that,"desktop-component"); var list = desktop.$refs['wins_dialog']; for(var i=0;i