首页 文章 精选 留言 我的

精选列表

搜索[网站开发],共10000篇文章
优秀的个人博客,低调大师

Electron 8.4.0 发布,跨平台桌面应用开发工具

Electron 8.4.0现已发布,具体更新内容如下: 新特性 在应用上添加了新render-process-gone事件,以替换renderer-process-crashed事件。#24314 添加了新render-process-gone事件以替换crashed事件。#24308 添加了对 Windows 的挂起和恢复事件的支持。#24282 添加了对 macOS 的暂停和恢复事件的支持。#24295 向 WebContents IPC 方法添加了跟踪工具,可通过 contentTracing 类别“electron”获得。#24307 从调试器模块公开与目标关联的 sessionId。#24399 在 Windows 上实现systemPreferences.getMediaAccessStatus()。#24313 修复 扩展了 UAF 的反向移植修补程序(CVE-2020-6454 和 NOCVE)。#24419 修复了间歇性高 CPU 使用率问题,该问题在睡眠期间导致系统时钟问题。#24414 解决了无法从 macOS 的通知中心正确删除一些旧通知的问题。#24405 修复了 macOS 上的错误,该错误在禁用了 modal 后将主窗口作为 focus 事件的目标。#24353 更新说明:https://github.com/electron/electron/releases/tag/v8.4.0

优秀的个人博客,低调大师

打造超级舒适的Go开发环境之VIM配置

最近博主已经从VIM迁移到了EMACS作为主要生产工具,目的是为了学习Lisp和体验EMACS操作系统之美,哈哈,不要被我弄的技术焦虑,没错,我就是换了个吃饭的盘子。写下这篇博客也是为了纪念我顺利的“从VIM毕业了”。 在阅读本文之前,你需要: 准备一个UNIX like的操作系统 一个可以跨过山和大海的代-理 话不多说,开始吧~ (1)下载必要的Go工具链 go get -v github.com/mdempsky/gocode go get -v github.com/ramya-rao-a/go-outline go get -v github.com/acroca/go-symbols go get -v github.com/uudashr/gopkgs go get -v golang.org/x/tools/cmd/guru go get -v golang.org/x/tools/cmd/gorename go get -v github.com/sqs/goreturns go get -v github.com/rogpeppe/godef go get -v golang.org/x/tools/cmd/godoc go get -v golang.org/x/lint/golint go get -v github.com/derekparker/delve/tree/master/cmd/dlv go get -v github.com/fatih/gomodifytags go get -v github.com/haya14busa/goplay go get -v github.com/josharian/impl go get -v github.com/tylerb/gotype-live go get -v github.com/cweill/gotests go get -v github.com/sourcegraph/go-langserver go get -v github.com/davidrjenni/reftools/tree/master/cmd/fillstruct (2)安装VIM macOS用户可能需要安装一下macvim: brew install macvim (3)主题配置 为了实现类似于Atom的Onedark和Onelight模式,我们可能需要安装两个主题: onedark.vim(只支持黑暗模式):https://github.com/joshdick/onedark.vim.git one.vim(同时支持):https://github.com/rakr/vim-one.git 在.vim目录下创建三个目录:autoload,bundle,colors,将两个仓库克隆到本地,然后将autoload目录的one.vim或者onedark.vim拷贝到autoload目录,将colors目录的one.vim或者onedark.vim拷贝到colors目录。 配置主题,修改~/.vimrc文件: colorscheme one set background=dark 当你想要将主题更改为Onelight的时候,只要将dark替换为light即可。 (4)插件配置 首先要安装插件管理器Vundle: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 然后配置~/.vimrc文件: set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo Plugin 'tpope/vim-fugitive' " plugin from http://vim-scripts.org/vim/scripts.html " Plugin 'L9' " Git plugin not hosted on GitHub Plugin 'git://git.wincent.com/command-t.git' " git repos on your local machine (i.e. when working on your own plugin) Plugin 'file:///home/gmarik/path/to/plugin' " The sparkup vim script is in a subdirectory of this repo called vim. " Pass the path to set the runtimepath properly. Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} " Install L9 and avoid a Naming conflict if you've already installed a " different version somewhere else. " Plugin 'ascenator/L9', {'name': 'newL9'} " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line 为了支持多种编程语言,我们采用YouCompleteMe插件,macOS用户使用如下命令: brew install cmake python python3 mono go nodejs 如果你已经使用nvm作为Node.js版本管理器,或者已经通过PKG方式安装了Python3.x版本,那么只需要PATH可以识别到命令,另外nvm用户需要安装npm: brew install npm 接下来需要进行编译: cd ~/.vim/bundle/YouCompleteMe python3 install.py --all 由于YouCompleteMe插件使用Vundle安装可能导致失败,因此通过手动安装的方式实现,其他插件均可以通过Vundle安装: Plugin 'fatih/vim-go' Plugin 'Tagbar' Plugin 'scrooloose/nerdtree' Plugin 'Xuyuanp/nerdtree-git-plugin' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' 写到.vimrc文件中,然后打开vim,进入命令模式,使用如下命令安装: :PluginInstall vim-go插件需要下载一些工具包,如果使用Vundle安装失败,可以进入vim使用如下命令: :GoInstallBinaries 配置完成后的整个.vimrc文件如下: set nocompatible " be iMproved, required filetype off " required syntax on colorscheme one let g:one_allow_italics = 1 set background=dark set nu let NERDTreeWinSize=50 let NERDTreeShowLineNumbers=1 let NERDTreeAutoCenter=1 let NERDTreeShowHidden=1 let g:go_gopls_enabled = 0 set laststatus=2 "始终显示状态栏 set tabstop=2 "一个制表符的长度 set softtabstop=2 "一个制表符的长度(可以大于tabstop) set shiftwidth=2 "一个缩进的长度 set expandtab "使用空格替代制表符 set smarttab "智能制表符 set autoindent "自动缩进 set smartindent "只能缩进 set ruler "显示位置指示器 set ignorecase "检索时忽略大小写 set hls "检索时高亮显示匹配项 set helplang=cn "帮助系统设置为中文 set foldmethod=syntax "代码折叠 set guifont=PowerlineSymbols\ for\ Powerline set nocompatible set t_Co=256 let g:Powerline_symbols = 'fancy' " let g:nerdtree_tabs_open_on_console_startup=1 "Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. "If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support "(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) if (empty($TMUX)) if (has("nvim")) "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > let $NVIM_TUI_ENABLE_TRUE_COLOR=1 endif "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > if (has("termguicolors")) set termguicolors endif endif " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' Plugin 'fatih/vim-go' Plugin 'Valloric/YouCompleteMe',{'do':'python3 install.py --all'} Plugin 'Tagbar' Plugin 'scrooloose/nerdtree' Plugin 'Xuyuanp/nerdtree-git-plugin' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line let g:go_highlight_types = 1 let g:go_highlight_fields = 1 let g:go_highlight_functions = 1 let g:go_highlight_function_calls = 1 let g:go_highlight_operators = 1 let g:go_highlight_extra_types = 1

优秀的个人博客,低调大师

Electron 9.0.5 发布,跨平台桌面应用开发工具

Electron 9.0.5 发布了,更新内容如下: Fixes 修复了 macOS 上的“粘贴和匹配样式”快捷方式,以匹配操作系统的“Option-Shift-Command-V”。#24185 修复了当 Electron的路径包含空格或特殊字符时,测试应用程序中的“null path-to-app”。#24232 修复了在没有BrowserWindow的情况下调用dialog.showCertificateTrustDialog时的错误。#24121 修复了在 macOS 上应用程序和系统关闭都会发出shutdown的问题。24141 修复了 asar 下fs.readdir或fs.readdirSync的选项不支持withFileTypes的问题。#24108 修复了在某些情况下会导致 streaming协议响应停止的问题。#24082 解决了设置了上下文菜单的 macOS 托盘上未发出 click events的问题。#24236 修复了主进程中某些 Node.js 回调的延迟执行。#24178 修复了 Windows 任务栏中显示的任务栏菜单。#24193 修复了 Windows 标题栏在 Windows 10 上无法响应笔的问题。#24103 其他变化 修复了 Windows 中某些 IME(例如:Zhuyin)在按 shift 键后不会终止的问题。#24059 修复了捆绑软件中无效符号链接的 Mac App Store 拒绝通知。#24238 将 Chromium 更新为 83.0.4103.119。#24234 Documentation Documentation changes:#24177 更新说明:https://github.com/electron/electron/releases/tag/v9.0.5

优秀的个人博客,低调大师

Electron 8.3.3 发布,跨平台桌面应用开发工具

Electron 8.3.3 发布了,更新内容如下: 修复 复了 macOS 上的“粘贴和匹配样式”快捷方式,以匹配操作系统的 “Option-Shift-Command-V” 修复了 macOS 上的应用程序关闭和系统关闭都会shutdown的问题 修复了 asar 下 fs.readdir 或 fs.readdirSync 的选项不支持 withFileTypes 的问题 修复了在某些情况下会导致流协议响应停止的问题 修复了主进程中某些 Node.js 回调的延迟执行 修复了 Windows 任务栏中显示的任务栏菜单 修复了 Windows 标题栏对 Windows 10 上的笔无响应的问题 更新说明:https://github.com/electron/electron/releases/tag/v8.3.3

优秀的个人博客,低调大师

Electron 9.0.4 发布,跨平台桌面应用开发工具

Electron 9.0.4 发布了,更新内容如下: Fixes 添加了对isComposingKeyboardEvent 属性的 missing support。#23996 为 POSIX 平台启用 NTLM v2,并添加了--disable-ntlm-v2 开关以将其禁用。#23934 修复:如果“frame”为 false,则允许 macOS elements 后面的 windows。#24033 修复chrome://media-internals,chrome://webrtc-internals页面无法加载的问题。#24058 修复了 rmdir 和 rmdirSync 在 asar 上下文中与 original-fs 一起使用的问题。#23956 修复远程类型的 webContents 中 nosession的问题。#24065 Fixed:在某些 Windows machines 上,尤其是 Windows Insider 版本,Electron 在启动过程中会 crash silently。#24039 ... 其他变化 将 Chromium 更新为 83.0.4103.104。#24068 [a11y] 修复了 listbox 中报告的 grouped items 的错误位置和大小。#24060 [a11y] 修复带有 grouped items 的 listbox 的错误选择项目计数。#24061 更新说明:https://github.com/electron/electron/releases/tag/v9.0.4

优秀的个人博客,低调大师

Electron 9.0.3 发布,跨平台桌面应用开发工具

Electron 9.0.3 发布了,更新内容如下: 新特性 V8CacheOptions:新的 webpreference 选项,用于强制执行代码缓存策略 Bug 修复 修复了使用--disable-color-correct-rendering无法正确渲染颜色的问题 修复了session.setUserAgent() 中的acceptLanguages参数被忽略的问题 恢复了旧版 Linux 托盘图标的实现,以修复托盘图标不显示、尺寸错误或随机消失的问题 其他 Chromium 更新为 83.0.4103.99 更新说明:https://github.com/electron/electron/releases/tag/v9.0.3

优秀的个人博客,低调大师

Electron 9.0.0 发布,跨平台桌面应用开发工具

Electron 9.0.0 现已发布,主要更新内容包括有: Breaking Changes 将app.allowRendererProcessReuse的默认值更改为true。这将防止在渲染器进程中加载​​非上下文感知的本机模块。(有关此更改的更多信息,请参见#18397。)#22401 删除了不推荐使用的 <webview>.getWebContents()。#20986 删除了不推荐使用的“setLayoutZoomLevelLimits”method。#21383 主进程和渲染进程之间的IPC现在使用结构化克隆算法。#20214 将 shell.openItem(path) 拆分为同步和异步方法。#20682 Features 添加了对 BrowserWindows 的全屏属性支持。#23330 添加了 session.listWordsFromSpellCheckerDictionary API 以列出字典中的自定义单词。#22128 添加了 session.removeWordFromSpellCheckerDictionary API 以删除字典中的自定义单词。#22368 添加了 session.serviceWorkerContext API,以访问基本服务人员信息并接收来自服务人员的控制台日志。#22313 在 macOS 上的 app.focus() 中添加了一个新的 force 参数,以允许应用强制 take focus。#23447 添加了 chrome.i18nextensionAPI。#22570 为背景页面添加了chrome.tabs.connect extensionAPI。#22549 添加了对 BrowserWindow 上某些 getter/setter 对的属性访问的支持。#23208 使用 enable_electron_extensions 进行构建时,增加了对 chrome.extension.getBackgroundPage API 的支持。#22177 允许为WebFrame.executeJavaScript* methods使用可选的回调参数,除非目标上下文已暂停,否则将同步调用该参数。#22501 恢复了对基于 pdfium 的 PDF 查看器的支持。#22131 Fixes 在 Mac 上,不允许窗口位于菜单栏后面。#22828 修复了 webRequest 模块不能与 file:// 协议一起使用的问题。#22919 修复了 webRequest 不适用于 CORS 请求的问题。#22468 修复了 win.setMenuBarVisibility(false)不隐藏菜单栏的问题。#23263 修复了在 macOS 上更改主题会破坏窗口最大化状态的问题。#22724 修复了使用 protocol.registerSchemeAsPrivileged api 时网络服务进程崩溃的问题。#22917 ...... Performance 改进了Linux 上的窗口事件处理程序效率。#23260 在 Linux 上,设置窗口图标的速度稍快一些。#22736 发布说明:https://github.com/electron/electron/releases/tag/v9.0.0

优秀的个人博客,低调大师

Electron 8.3.0 发布,跨平台桌面应用开发工具

Electron 8.3.0现已发布,主要更新内容包括有: Features 在 macOS 上的 app.focus()中添加了一个新force参数,以允许应用强制 takefocus。#23574 EnableWebSQL 是用于 enable/disable websql api 的新的 webpreference 选项。#23581 Fixes 确保在 renderer 进程中为 Node.js 运行 exit callbacks。#23564 修复了页面导航期间可能发生的崩溃。#23396 修复了macOS不允许文件扩展名包含句点的问题。#23449 修复了 navigator.language/s 和 app.getLocale 使用 OS 语言环境的行为。#23407 修复了在某些窗口管理事件(如调整大小、滚动等)期间 webview 崩溃的问题#23397 ...... 详细信息可查看更新说明:https://github.com/electron/electron/releases/tag/v8.3.0

优秀的个人博客,低调大师

Electron 7.2.4 发布,跨平台桌面应用开发工具

Electron 7.2.4 发布了,主要更新内容包括: 修复 修复了将 Electron 作为节点运行时 Promise 超时的问题 修复了显示自定义上下文菜单时可能发生的use-after-free错误 修复了一个没有nativeWindowOpen: true的窗口可能调用非本地打开路径的问题 修复了将 contextBridge 与 sandbox=true 一起使用时的内存泄漏问题 MacOS VoiceOver 现在可以在“退出”应用程序后找到返回到 Web 内容的方式 更新说明:https://github.com/electron/electron/releases/tag/v7.2.4

优秀的个人博客,低调大师

Electron 8.2.4 发布,跨平台桌面应用开发工具

Electron 8.2.4现已发布,主要更新内容包括有: Fixes 修复了将 Electron 作为节点运行时 Promise 超时问题。#23234 修复了如果在显示自定义上下文菜单时托盘被破坏,则可能发生的使用后使用错误。#23181 修复了没有nativeWindowOpen: true的 windows 可以调用非本地打开路径的问题。#23225 修复了 Node.js 的script.runInNewContext()中contextCodeGeneration参数的错误使用。#23147 修复了将 contextBridge 与 sandbox=true 一起使用时的内存泄漏。#23231 Other Changes 将 Chromium 更新为 80.0.3987.165。#23217 更新说明:https://github.com/electron/electron/releases/tag/v8.2.4

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册