romegadigital/ie11compatibility 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

romegadigital/ie11compatibility

最新稳定版本:1.1.0

Composer 安装命令:

composer require romegadigital/ie11compatibility

包简介

Adds IE11 support for Laravel Nova.

README 文档

README

Adds IE11 support to Laravel Nova. Latest CSS build based on Nova 2.8.0.

Installation

composer require romegadigital/ie11compatibility

The following command will override the Nova published user.blade.php with an IE11 compatible version. Any customizations to user.blade.php will be lost

php artisan vendor:publish --tag=nova-ie11-views --force

The following command will override the Nova published /public/vendor/nova/app.css with an IE11 compatible version.

php artisan vendor:publish --tag=nova-ie11-styles --force

Overview

Out of the box, Laravel Nova will present an error message after logging in using IE11. The error message will read something like:

Unhandled promise rejection TypeError: Unable to get property 'start' of undefined or null reference

or

Unhandled promise rejection TypeError: Unable to get property 'finish' of undefined or null reference

or

Unhandled promise rejection ReferenceError: 'Promise' is undefined

The errors are due to IE not being capable of handling destructuring without going through something like Babel and therefore, cannot be included directly into your blade templates.

Published Nova partials come out of the box with destructuring requirements.

Additionally, IE11 does not have capability to process promises.

This package provides a new element for your user.blade.php to provide a work around for the destructuring limitation, and a polyfill for promises.

Additionally, some common Tailwind CSS styles are included. This is still a WIP and help getting this more fleshed out would be welcomed.

Extending

resources/views/vendor/nova/partials/user.blade.php can be updated with whatever you need.

统计信息

  • 总下载量: 27.17k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 4
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-11