jonnitto/outdatedbrowser
Composer 安装命令:
composer require jonnitto/outdatedbrowser
包简介
Outdated Browser for Neos CMS
关键字:
README 文档
README
Jonnitto.OutdatedBrowser
This package includes a notification for outdated browsers into Neos CMS. You can configure in your Settings.yaml when the warning should be shown.
| Version | Neos | Maintained |
|---|---|---|
| 1.* | 3.3.* - 5.* | ✗ |
| 2.* | 4.* - 5.* | ✗ |
| 3.* | 4.3.* - 5.* | ✗ |
| 4.* | 4.3.* - 7.* | ✗ |
| 4.3.* | 5.3.* - 8.* | ✗ |
| 5.* | 5.3.* - 8.* | ✓ |
Installation
Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site packages located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:
composer require jonnitto/outdatedbrowser --no-update
The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilà! Your desired package is now installed correctly.
Configuration
Basicly you need to ajust the setting Jonnitto.OutdatedBrowser.lowerThan. The default value is AccentColor.
You can set the setting Jonnitto.OutdatedBrowser.lowerThan to different kind of values:
- Browser based
A23(Android 2.3)IE8IE9IE10IE11Edge
- Feature based
FlexboxoldGrid(The old css grid specification)GridAccentColorAspectRatio
- Property based
- Any CSS property, e. g.
transform
- Any CSS property, e. g.
Example:
Jonnitto: OutdatedBrowser: lowerThan: AspectRatio
If you want to check for multiple features, you can write lowerThan also an array, for example:
Jonnitto: OutdatedBrowser: lowerThan: - Edge - grid-auto-flow
To change the link to the website who helps the user to download a new browser, you can do it by alter the setting Jonnitto.OutdatedBrowser.href. {locale} gets replaced with the detected locale. The default value is https://browsehappy.com/?locale={locale}
Jonnitto: OutdatedBrowser: href: "https://browser-update.org/{locale}/"
Per default, the package checks if the visitor is a crawler or not. If it is a crawler, the warning doesn't get rendered at all. You can disable this behavior like this:
Jonnitto: OutdatedBrowser: disableForCrawler: false
To add a CSS class the the element you can do it by adding following setting:
Jonnitto: OutdatedBrowser: class: 'your-custom-css-class`
Credits
This package is based on Dotpulse.OutdatedBrowser, who was also written by me. As dotpulse is not a company with active developers anymore and I have no access to the repository on packagist, I refactored the package and published it here.
jonnitto/outdatedbrowser 适用场景与选型建议
jonnitto/outdatedbrowser 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 19.14k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「flow」 「Neos」 「outdated browser」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jonnitto/outdatedbrowser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jonnitto/outdatedbrowser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jonnitto/outdatedbrowser 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An improved history backend module for Neos
Put images nicley in a row
Create link to static resources with cache-breaking segment based on md5 of the file
Allows changing uploaded asset filenames in Neos CMS
Outdated Browser for Neos CMS
getting and sending flow
统计信息
- 总下载量: 19.14k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-09-23