Giter Site home page Giter Site logo

ericwyn / electron-lark Goto Github PK

View Code? Open in Web Editor NEW
157.0 6.0 34.0 6.13 MB

使用 electron 封装的网页版飞书 Feishu (原 Lark )客户端, linux 下可用, 提供 ubuntu deb 安装包

License: MIT License

JavaScript 67.56% HTML 32.44%
lark electron-lark electron-feishu linux electron

electron-lark's Introduction

Electron-Lark

release-download-count

下载地址: Release

electron 版的飞书 Feishu (原 Lark),对网页版本进行封装

相比起普通网页版,功能如下

  • 独立的运行窗口,不容易误关闭
  • 关闭程序时后台运行,隐藏到通知栏小图标,双击可重新打开界面
  • 新消息提醒,状态栏小图标闪烁
  • 解除浏览器限制,避免因浏览器版本不对而提示无法使用

已知问题

  • 部分功能无法使用(工作台/会议等)
    • 飞书网页版缺陷,请向官方反馈

历史问题

  • ubuntu18.04 Gnome 桌面,锁屏之后,系统通知栏图标 Tray 会消失, 当前规避方案如下
    • 当有新消息提醒的时候,会重置通知栏图标 tray,保证哪怕因为锁屏导致 tray 消失,在收到新消息之后也会重新出现并闪烁
    • 使用 alt + shift + m 的快捷键,重新显示界面以及 dock 图标
    • V1.0.3 版本已修复,添加了一个 linux 锁屏监听,自动 reset appTray
      • V1.1.1 版本升级了 electron 依赖,问题解决~

(另外有一说一, 飞书的技术架构就是基于 Electron 的, Windows 和 Mac 客户端也都是使用 Electron 打包, 既然如此为什么不顺便为 Linux 也提供支持呢 ?)

  • 2021-04-26更新:后知后觉 deepin 商店已经有 wine 版本的飞书了,详情可看这个 deepin官方帖子

    如果公司使用的并不是自己部署版本的飞书的话,可以尝试一下,ubuntu 上面可以再加一个 deepin-wine-ubuntu

  • 2021-10-11更新:飞书在大概 9 月份时候就已发布了 Linux 客户端(当前还是 Beta),大家可以下载一下官方的看看 ~

    但如果公司使用的是自己部署版本的飞书的话~ 现在看来好像还是只能用网页版套壳 🤷‍♂️

运行截图

screen-shot

版本记录

V1.1.6

  • electron 版本升级为 15.2.0
  • 添加右键菜单,支持图片另存为和复制

V1.1.5

  • electron 版本升级为 15.0.0
  • 修复某些时候设置页面无法关闭的问题

V1.1.4

  • 程序菜单修改,新增 “操作->浏览器打开”,可在浏览器打开当前窗口页面

V1.1.3

  • 修复通知消息点击后跳转聊天窗口失败的问题

V1.1.2

  • electron 版本升级为 13.0.1
  • 点击消息通知打开应用时候会跳转到具体的聊天窗口, 感谢 ttys3 的分享

V1.1.1

抄了 ttys3 大佬的作业,感谢大佬!

  • 禁用硬件加速来修复 CPU 占用过高的问题 issue12
  • 升级 electron 到 13.0.0-bate 解决 appTray 消失问题,不再使用 dbus-monitor 方案
  • 支持点击通知打开应用,使用拦截网页消息通知并使用 electron 来重新发送的方式实现

v1.1.0

  • 咕咕咕了很久的设置界面终于加上了 (又不是不能用)

    在顶部菜单栏: 设置 -> 功能设置处进入,当前支持自定义以下设置项

    • 外链设置
      • 可设置哪些链接直接 electron 内部打开
      • 默认所有链接都通过浏览器打开
    • 水印设置
      • 是否显示页面水印
      • 默认为关闭
    • 服务器设置
      • 如果公司使用的是内部部署飞书服务,可由此自定义登录入口
      • 默认为飞书官方登录页面
  • electron 依赖升级到 12.0.5

  • screen-shot

v1.0.3

  • 修复 ubuntu 下锁屏后 appTray 消失的问题

v1.0.2

  • 修复已关闭提醒的聊天仍然会闪烁 tray icon 的问题

v1.0.1

  • 去除页面水印
  • 修改了应用菜单,去除无用按钮

v1.0.0

  • 初始版本

安装方法 (二进制安装)

  • 请从 Release 页面直接下载及安装 (ubuntu 18.04 上测试通过)

安装方法 (从源码安装)

0. 安装 NodeJs

请先按照官网教程安装 NodeJs,确保以下命令可以成功运行

node -v
npm -v

1. 安装 Electron

参考 https://qii404.me/2019/07/10/electron.html

# 墙内的话安装过程中会下载失败,需要首先设置electron的源为淘宝源即可
npm config set ELECTRON_MIRROR http://npm.taobao.org/mirrors/electron/

# 全局安装 需要的话追加上 --registry='http://registry.npm.taobao.org' 使用淘宝npm源安装
sudo npm install electron -g --allow-root -unsafe-perm=true
# Windows使用下面语句 64位32位机器都是--win32
npm install electron -g --platform=win32

# 验证安装
electron -v

2.运行

工程目录下使用下面命令运行

electron .

electron-lark's People

Contributors

ericwyn avatar ttys3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

electron-lark's Issues

Feishu vs Lark

Hello!

This is not really an issue, it is more of a question about electron-lark (sorry, I am very new to Github, and haven't found how to post comments otherwise).

First of all, thank you for creating this app, it's incredibly helpful! My question was based on the fact that my colleagues are based in China and use Feishu, while I use electron-lark. As confirmed by Bytedance support, Lark and Feishu are two different apps that do not interact well with each other.
For instance, when I am sent a link to a Feishu Drive, I cannot download any image or even display them, as an error message pops up (not to mention that Feishu actually has more options than Lark).

So my question would be: Will you create an electron-feishu specific app or branch in the future?

Thank you in advance for reading my message!

Keep up the great work!

图片无法下载

如果是其它格式的文件,像文本、压缩包、excel这些,都可以正常打开,但接收到的是png/jpeg这些图片的话,只能点击查看,无法下载,我都是打开开发者工具找到图片地址后,在浏览器下载的。

系统:archlinux
浏览器:firefox

[请求] 为本项目添加合适的 License

阁下的项目完成度较高,我想将项目编译打包给 Arch Linux,但是阁下没有写明适用什么协议,给打包工作带来点困难。 MIT License 是个不错的选择,希望采纳。

无法下载文件

点击其他人发给的文件,弹出chrome浏览器,无法下载文件,显示
{"message":"session key not found","status":"error"}

Linux 无法使用板栗看板

这只是网页版套壳吗,Linux 下也能使用网页版呀,而板栗看板等无法在网页中使用的,还是无法使用

appTray 在manjaro系统下无法显示

本机信息如下:

██████████████████ ████████ OS: Manjaro 20.2 Nibia
██████████████████ ████████ Kernel: x86_64 Linux 5.4.77-1-MANJARO
██████████████████ ████████ Uptime: 4d 6h 47m
████████ ████████ Packages: 1742
████████ ████████ ████████ Shell: zsh 5.8
████████ ████████ ████████ Resolution: 3840x1080
████████ ████████ ████████ DE: Xfce4
████████ ████████ ████████ WM: Xfwm4
████████ ████████ ████████ WM Theme: PRO-dark-XFCE-edition II
████████ ████████ ████████ GTK Theme: PRO-dark-XFCE-edition II [GTK2]
████████ ████████ ████████ Icon Theme: Vibrancy-NonMono-Dark-Teal
████████ ████████ ████████ Font: Noto Sans CJK HK Light 10
████████ ████████ ████████ Disk: 185G / 386G (51%)
CPU: Intel Core i7-10510U @ 8x 4.9GHz [59.0°C]
GPU: Mesa Intel(R) UHD Graphics (CML GT2)
RAM: 21380MiB / 23894MiB

无法显示 appTray

希望能支持飞书的审批功能

我的系统是deepin v2.0社区版,目前飞书的审批功能无法使用,未来随着头条的壮大,很多企业都会选飞书作为协同办公工具,如果咱们版本的飞书可以支持审批功能的话,那受益的用户会很感激你们的贡献的。

浏览器打开链接

目前聊天记录有链接的话是又打开一个窗口,能否调用默认浏览器打开,或者chrome 打开呢

ubuntu 16.04 间歇性自动退出

版本是electron-lark-1.1.1.AppImage
查看下kern.log
kernel: [ 6585.730940] electron-lark[4583]: segfault at 29340046b000 ip 00007f85e077675c sp 00007ffd6caabe10 error 4 in libappindicator3.so.1.0.0[7f85e076f000+c000]

tray没有显示图标

Version: v1.0.2
OS:Linux Mint 19.3 Tricia
Desktop: Cinnamon

通知栏没有显示图标,但关闭窗口后alt+shift+m可以正常呼出界面

CPU占用率100%

如下图,cpu占用率经常到100%,然后点一下要5/6秒才有反应
image
系统信息截图
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.