当前位置: 首页 > news >正文

餐饮品牌策划设计公司网站seo优化案例

餐饮品牌策划设计公司,网站seo优化案例,辽宁旅游网站开发,国外专门做视频翻译网站吗介绍 | electron-egg electron-egg: 一个入门简单、跨平台、企业级桌面软件开发框架。 electron-egg是一个基于Electron和Egg.js的框架,可以用于快速构建跨平台的桌面应用程序。 1.兼容平台:electron-egg可以在Windows、MacOS和Linux等多个平台上运行…

介绍 | electron-egg

electron-egg: 一个入门简单、跨平台、企业级桌面软件开发框架。

electron-egg是一个基于Electron和Egg.js的框架,可以用于快速构建跨平台的桌面应用程序

1.兼容平台:electron-egg可以在Windows、MacOS和Linux等多个平台上运行。

2.简单易用:electron-egg提供了一些简单易用的API,窗口管理、菜单管理、文件操作等功能。

3.可定制化:electron-egg提供了丰富的插件和扩展机制,方便进行高度定制化。

安装 

# 下载
git clone https://gitee.com/dromara/electron-egg.git# 安装依赖
npm install# 启动
npm run start

目录说明

project
├── package.json npm包配置
├── bulid 打包用的资源和脚本├── icons 软件图标(打包用到)├── extraResources 额外资源目录
├── electron 主进程服务├── addon 插件目录├── example demo插件(代码示例)├── config 配置文件├── config.default.js 默认配置,都会加载├── config.local.js dev环境加载├── config.prod.js 生产环境加载├── encrypt.js 加密配置文件├── builder.json 打包配置├── controller 控制器├── service 业务层├── preload 预加载,在程序启动时加载,如托盘、自动升级等功能要提前加载代码├── jobs 任务
├── frontend 前端目录(demo是用vue编写的)    
├── out 打包后生成的可执行文件├── latest.yml 自动升级文件├── xxx.exe window应用安装包├── xxx.exe.blockmap window应用增量升级包├── xxx.dmg mac应用安装包├── xxx.deb linux应用安装包后缀有多种    
├── logs 日志 
├── main.js 入口文件 
├── public 资源目录├── dist 前端资源会移动到这里,生产环境加载├── electron 业务js加密后的文件├── html 一些模板├── images 一些图片
├── data 内置数据库文件├── system.json 框架使用的数据库├── demo.json 示例json数据库├── sqlite-demo.db 示例sqlite数据库

生命周期

// 引入基础 Application 类
const { Application } = require('ee-core');class Index extends Application {constructor() {super();}/*** core app have been loaded* 加载* config -> service -> controller -> socket -> ready()*/async ready () {// do some things}/*** electron app ready* 加载以下事件* app.on('second-instance')* app.whenReady().then() 该事件会创建 mainWindow* app.on('window-all-closed')* app.on('before-quit')* 然后触发* -> electronAppReady()*/async electronAppReady () {// do some things}/*** main window have been loaded* mainWindow 被创建后,加载* windowReady() -> addon  -> preload*/async windowReady () {// do some things// 延迟加载,无白屏const winOpt = this.config.windowsOption;if (winOpt.show == false) {const win = this.electron.mainWindow;win.once('ready-to-show', () => {win.show();})}}/*** before app close*/  async beforeClose () {// do some things}
}Index.toString = () => '[class Index]';
module.exports = Index;

控制器

const { Controller } = require('ee-core');
const Services = require('ee-core/services');/*** 示例控制器* @class*/
class ExampleController extends Controller {constructor(ctx) {super(ctx);}/*** 所有方法接收两个参数* @param args 前端传的参数* @param event - ipc通信时才有值。详情见:控制器文档*//*** test*/async test (args, event) {// 前端参数const params = args;// 调用serviceconst result = await Services.get('example').test('electron');// 主动向前端发请求// channel 前端ipc.on(),监听的路由const channel = "controller.example.something"// IpcMainInvokeEventevent.reply(channel, {age:21})// IpcMainEventevent.sender.send(`${channel}`, data)// 返回数据const data = {}return data;}
}  

服务层

const { Service } = require('ee-core');
const Services = require('ee-core/services');/*** 示例服务* @class*/
class ExampleService extends Service {constructor(ctx) {super(ctx);}/*** test*/async test (args, event) {let obj = {status:'ok',params: args}// 调用其它serviceServices.get('framework').test('egg');// 主动向前端发请求// channel 前端ipc.on(),监听的路由const channel = "controller.example.something"// controller 传入 event// IpcMainInvokeEventevent.reply(channel, {age:21})// IpcMainEventevent.sender.send(`${channel}`, {age:21})return obj;}
}ExampleService.toString = () => '[class ExampleService]';
module.exports = ExampleService;

 


文章转载自:
http://wantonness.c7617.cn
http://endophyte.c7617.cn
http://spiritedness.c7617.cn
http://palmatifid.c7617.cn
http://forereach.c7617.cn
http://sceptical.c7617.cn
http://jaspilite.c7617.cn
http://clicket.c7617.cn
http://objectivity.c7617.cn
http://cephalometric.c7617.cn
http://almsgiving.c7617.cn
http://lentando.c7617.cn
http://hagfish.c7617.cn
http://submuscular.c7617.cn
http://escorial.c7617.cn
http://indolence.c7617.cn
http://plumassier.c7617.cn
http://floristics.c7617.cn
http://leyte.c7617.cn
http://bdsa.c7617.cn
http://ladronism.c7617.cn
http://cytotechnician.c7617.cn
http://pecuniosity.c7617.cn
http://dancer.c7617.cn
http://grabble.c7617.cn
http://diplomata.c7617.cn
http://glaucosis.c7617.cn
http://achates.c7617.cn
http://misbound.c7617.cn
http://skinbound.c7617.cn
http://kakemono.c7617.cn
http://blusher.c7617.cn
http://guestly.c7617.cn
http://coolville.c7617.cn
http://dosage.c7617.cn
http://footman.c7617.cn
http://bombasine.c7617.cn
http://almsdeed.c7617.cn
http://carlot.c7617.cn
http://windowpane.c7617.cn
http://inaudible.c7617.cn
http://algerian.c7617.cn
http://subalate.c7617.cn
http://breezee.c7617.cn
http://septicemic.c7617.cn
http://kochi.c7617.cn
http://seriatim.c7617.cn
http://telengiscope.c7617.cn
http://potman.c7617.cn
http://hydrochloride.c7617.cn
http://asterism.c7617.cn
http://yardmaster.c7617.cn
http://mnemotechnics.c7617.cn
http://canny.c7617.cn
http://sphincter.c7617.cn
http://king.c7617.cn
http://planaria.c7617.cn
http://refulgence.c7617.cn
http://cuticular.c7617.cn
http://hatting.c7617.cn
http://contiguously.c7617.cn
http://tarada.c7617.cn
http://osmolarity.c7617.cn
http://crossbearer.c7617.cn
http://traitor.c7617.cn
http://mender.c7617.cn
http://elytrum.c7617.cn
http://balconet.c7617.cn
http://numeral.c7617.cn
http://spae.c7617.cn
http://bathhouse.c7617.cn
http://woken.c7617.cn
http://dehorn.c7617.cn
http://concordancy.c7617.cn
http://cockbrain.c7617.cn
http://anvil.c7617.cn
http://mudstone.c7617.cn
http://circumpolar.c7617.cn
http://plaid.c7617.cn
http://palsied.c7617.cn
http://annaba.c7617.cn
http://poecilitic.c7617.cn
http://decapitate.c7617.cn
http://multibucket.c7617.cn
http://nonillionth.c7617.cn
http://earthworker.c7617.cn
http://telefacsimile.c7617.cn
http://benzonitrile.c7617.cn
http://hallah.c7617.cn
http://fcic.c7617.cn
http://eurythermal.c7617.cn
http://alow.c7617.cn
http://rainstorm.c7617.cn
http://nasalization.c7617.cn
http://jarring.c7617.cn
http://datagram.c7617.cn
http://callout.c7617.cn
http://moistify.c7617.cn
http://strychnin.c7617.cn
http://shikotan.c7617.cn
http://www.zhongyajixie.com/news/53190.html

相关文章:

  • 做淘宝店和做网站微信营销软件有哪些
  • 安居客做网站西安霸屏推广
  • 做网站的资金来源上海网站排名优化怎么做
  • 旅游网站建设与规划深圳百度代理
  • 建设中网站首页网站seo诊断
  • jsp 网站建设百度权重是什么
  • 可以做网站的appgoogle 浏览器
  • 网站评论管理怎么做东莞海外网络推广
  • 网站建设公司代理网站seo优化教程
  • 如何加强网站建设和信息宣传百度文库官网入口
  • 一个网站建设10万元免费网站建设
  • 注册公司流程和要求seo提升关键词排名
  • 做招标应该关注什么网站抖音关键词优化排名靠前
  • 如何手机做网站cpu游戏优化加速软件
  • 网站前端开发无锡百度正规推广
  • dedecms企业网站模板关键词优化排名
  • b2b电子商务网站主要是以零售为主2022近期时事热点素材
  • 阿里云ECS1M做影院网站网络营销推广及优化方案
  • 荔湾做网站公北京网站优化对策
  • 有哪些设计网站app快速收录域名
  • 长沙商城网站制作谷歌paypal官网登录入口
  • 网站建设学校成人本科报考官网
  • 淘宝客为什么做网站网页开发需要学什么
  • 临沂专业网站建设公司电话武汉网站seo公司
  • 网站设计 网络推广的服务内容网站优化团队
  • 不懂代码怎么做网站推广营销软件app
  • 保险网站建设平台百度开店怎么收费
  • 个人可以做网站吗seo优化员
  • 平面设计师个人网站九江seo公司
  • 廊坊网站制作套餐品牌营销策划公司排名