Use a js
or no-js
variant depending on the availability of JavaScript, e.g. no-js:hidden
or js:bg-blue-500
.
const plugin = require('tailwindcss/plugin');
module.exports = {
function isIE() { | |
var ua = window.navigator.userAgent; | |
var msie = ua.indexOf('MSIE '); | |
var trident = ua.indexOf('Trident/'); | |
return (msie > 0 || trident > 0); | |
} | |
if (isIE()) { | |
document.getElementById('ie-notice').style.display = 'block'; |
<?php | |
namespace App\Traits; | |
trait FormattedDate | |
{ | |
public function initializeFormattedDate() | |
{ | |
$this->append('formatted_created_at'); | |
$this->append('formatted_created_at_date'); |
axios.interceptors.response.use(response => { | |
return response; | |
}, error => { | |
if (error.response.status === 401) { | |
Swal.fire({ | |
title: 'Session expired', | |
text: 'Please sign in again!', | |
type: 'error', | |
}).then(result => { | |
if (result.value) { |
MIX_JS_DEBUG="${APP_DEBUG}" |
/* is not a touch device */ | |
@media (hover: hover) { | |
body { text-rendering: optimizeLegibility; } | |
} | |
/* is a touch device */ | |
@media (hover: none) { | |
body { text-rendering: optimizeSpeed; } | |
} |
{ | |
"rules": { | |
"@PSR2": true, | |
"ordered_imports": { | |
"sort_algorithm": "length" | |
}, | |
"array_syntax": { | |
"syntax": "short" | |
}, | |
"no_unused_imports": true, |
namespace App\Providers; | |
use DB; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. | |
* |
@layer utilities { | |
.pb-safe { | |
padding-bottom: env(safe-area-inset-bottom); | |
} | |
} |
<template> | |
<svg | |
v-bind="svgAttributes" | |
v-html="svgContent" | |
> | |
</svg> | |
</template> | |
<script> | |
export default { |