目录
Harrison Healey

MM-68247 Move user agent utilities into shared package and clean it up (#36033)

  • Start moving user agent utils into shared package

  • Remove inobounce and stop exporting isIosSafari

Based on some quick testing on my phone, inobounce is no longer needed. Both local and Community:

  1. Let you overscroll on the landing and login pages
  2. Don’t overscroll in a channel, a thread, or the LHS while fully zoomed out
  3. Do let you overscroll when zoomed in

That also lets me reduce the size of the interface for utils/user_agent.

  • Remove unneeded exports and unused functions

  • Remove outdated workarounds from FileUpload component

These were only needed to support a 10 year old version of iOS Chrome and the classic app.

  • Remove useOrientationHandler

This was added in https://github.com/mattermost/mattermost-webapp/pull/2504, but I don’t think the extra complexity is worth keeping it around when we mostly support mobile view for desktop accessibility reasons.

  • Replace isIosWeb/isAndroidWeb with isIos/isAndroid

These were previously needed to differentiate between the mobile web app and the classic app.

  • Replace isMobileApp with isMobile

Similar to the last commit, we used to need to differentiate between the mobile web and the classic app. For most places, I just replaced isMobileApp with isMobile, but I removed the check in ProductMenuList because we want to show that link on mobile web.

  • Move isInternetExplorer and isEdge out of the shared package

Those should be removed, so I don’t want to include them in the shared package at all. I also renamed isChromiumEdge to just isEdge since that should be its name once the old ones are removed.

  • Change how functions are re-exported to fix tests

  • Update web app code to use shared user agent utils directly

  • Removed useless mock

  • Fix how tests mock utils/user_agent now that it’s fully moved

  • Actually export user_agent utils from shared package

2天前22300次提交

Mattermost logo

Mattermost is an open core, self-hosted collaboration platform that offers chat, workflow automation, voice calling, screen sharing, and AI integration. This repo is the primary source for core development on the Mattermost platform; it’s written in Go and React, runs as a single Linux binary, and relies on PostgreSQL. A new compiled version is released under an MIT license every month on the 16th.

Deploy Mattermost on-premises, or try it for free in the cloud.

mattermost user interface

Learn more about the following use cases with Mattermost:

Other useful resources:

Table of contents

Install Mattermost

Other install guides:

Native mobile and desktop apps

In addition to the web interface, you can also download Mattermost clients for Android, iOS, Windows PC, macOS, and Linux.

Get Mattermost on Google Play Get Mattermost on the App Store Get Mattermost on Windows PC Get Mattermost on Mac OSX Get Mattermost on Linux

Get security bulletins

Receive notifications of critical security updates. The sophistication of online attackers is perpetually increasing. If you’re deploying Mattermost it’s highly recommended you subscribe to the Mattermost Security Bulletin mailing list for updates on critical security releases.

Subscribe here

Get involved

Learn more

License

See the LICENSE file for license rights and limitations.

Get the latest news

Contributing

Small Image

Please see CONTRIBUTING.md. Join the Mattermost Contributors server to join community discussions about contributions, development, and more.

关于

Mattermost is an open source, private cloud, Slack-alternative from https://mattermost.com. It's written in Golang and React and runs as a single Linux binary with MySQL or PostgreSQL.

1.2 GB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号