mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
cleanup
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
"alpinejs": "^3.10.4",
|
||||
"async-alpine": "v1.2.1",
|
||||
"autoprefixer": "^10.4.0",
|
||||
"body-scroll-lock": "^4.0.0-beta.0",
|
||||
"chart.js": "^3.6.0",
|
||||
"chartjs-adapter-luxon": "^1.3.1",
|
||||
"choices.js": "^10.1.0",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import AlpineFloatingUI from '@awcodes/alpine-floating-ui'
|
||||
import AlpineLazyLoadAssets from 'alpine-lazy-load-assets'
|
||||
// import { clearAllBodyScrollLocks, disableBodyScroll } from 'body-scroll-lock'
|
||||
import { md5 } from 'js-md5'
|
||||
import Sortable from './sortable'
|
||||
import Tooltip from '@ryangjchandler/alpine-tooltip'
|
||||
@@ -17,10 +16,6 @@ document.addEventListener('alpine:init', () => {
|
||||
window.Alpine.plugin(Tooltip)
|
||||
})
|
||||
|
||||
// document.addEventListener('livewire:navigating', () => {
|
||||
// clearAllBodyScrollLocks()
|
||||
// })
|
||||
|
||||
// https://github.com/laravel/framework/blob/5299c22321c0f1ea8ff770b84a6c6469c4d6edec/src/Illuminate/Translation/MessageSelector.php#L15
|
||||
const pluralize = function (text, number, variables) {
|
||||
function extract(segments, number) {
|
||||
@@ -110,7 +105,5 @@ const pluralize = function (text, number, variables) {
|
||||
)
|
||||
}
|
||||
|
||||
// window.clearAllBodyScrollLocks = clearAllBodyScrollLocks
|
||||
// window.disableBodyScroll = disableBodyScroll
|
||||
window.jsMd5 = md5
|
||||
window.pluralize = pluralize
|
||||
|
||||
@@ -71,14 +71,6 @@
|
||||
this.$refs.modalContainer.dispatchEvent(
|
||||
new CustomEvent('modal-closed', { id: '{{ $id }}' }),
|
||||
)
|
||||
|
||||
{{-- this.$nextTick(() => {
|
||||
if (document.getElementsByClassName('fi-modal-open').length) {
|
||||
return
|
||||
}
|
||||
|
||||
window.clearAllBodyScrollLocks()
|
||||
}) --}}
|
||||
},
|
||||
|
||||
open: function () {
|
||||
@@ -89,9 +81,6 @@
|
||||
new CustomEvent('modal-opened', { id: '{{ $id }}' }),
|
||||
)
|
||||
})
|
||||
|
||||
{{-- window.clearAllBodyScrollLocks()
|
||||
window.disableBodyScroll(this.$root) --}}
|
||||
},
|
||||
}"
|
||||
@if ($id)
|
||||
|
||||
Reference in New Issue
Block a user