mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Remove @hotwired/turbo integration and Turbo loader demo (#2735)
This commit is contained in:
1 parent
ced821db1d
commit
bea97f81b3
8 files changed
+9
-137
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": major
|
||||||
|
"@tabler/preview": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Removed `@hotwired/turbo` integration, including `.turbo-progress-bar` styles and the Turbo loader preview demo.
|
||||||
@@ -160,13 +160,6 @@
|
|||||||
"index.global.min.js"
|
"index.global.min.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"turbo": {
|
|
||||||
"npm": "@hotwired/turbo",
|
|
||||||
"js": [
|
|
||||||
"dist/turbo.es2017-umd.js"
|
|
||||||
],
|
|
||||||
"head": true
|
|
||||||
},
|
|
||||||
"driver.js": {
|
"driver.js": {
|
||||||
"npm": "driver.js",
|
"npm": "driver.js",
|
||||||
"js": [
|
"js": [
|
||||||
|
|||||||
@@ -156,7 +156,6 @@
|
|||||||
"@popperjs/core": "^2.11.8"
|
"@popperjs/core": "^2.11.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@hotwired/turbo": "^8.0.23",
|
|
||||||
"@melloware/coloris": "^0.25.0",
|
"@melloware/coloris": "^0.25.0",
|
||||||
"@types/node": "^26.1.1",
|
"@types/node": "^26.1.1",
|
||||||
"@vitest/browser-playwright": "4.1.10",
|
"@vitest/browser-playwright": "4.1.10",
|
||||||
|
|||||||
@@ -12,5 +12,4 @@
|
|||||||
@forward 'vendor/stars-rating';
|
@forward 'vendor/stars-rating';
|
||||||
@forward 'vendor/coloris';
|
@forward 'vendor/coloris';
|
||||||
@forward 'vendor/typed';
|
@forward 'vendor/typed';
|
||||||
@forward 'vendor/turbo';
|
|
||||||
@forward 'vendor/fullcalendar';
|
@forward 'vendor/fullcalendar';
|
||||||
Vendored
-5
@@ -1,5 +0,0 @@
|
|||||||
@use '../config' as *;
|
|
||||||
|
|
||||||
.turbo-progress-bar {
|
|
||||||
background: var(--#{$prefix}primary);
|
|
||||||
}
|
|
||||||
Generated
+3
-54
@@ -94,9 +94,6 @@ importers:
|
|||||||
specifier: ^2.11.8
|
specifier: ^2.11.8
|
||||||
version: 2.11.8
|
version: 2.11.8
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@hotwired/turbo':
|
|
||||||
specifier: ^8.0.23
|
|
||||||
version: 8.0.23
|
|
||||||
'@melloware/coloris':
|
'@melloware/coloris':
|
||||||
specifier: ^0.25.0
|
specifier: ^0.25.0
|
||||||
version: 0.25.0
|
version: 0.25.0
|
||||||
@@ -770,10 +767,6 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@fullcalendar/core': ~6.1.21
|
'@fullcalendar/core': ~6.1.21
|
||||||
|
|
||||||
'@hotwired/turbo@8.0.23':
|
|
||||||
resolution: {integrity: sha512-GZ7cijxEZ6Ig71u7rD6LHaRv/wcE/hNsc+nEfiWOkLNqUgLOwo5MNGWOy5ZV9ZUDSiQx1no7YxjTNnT4O6//cQ==}
|
|
||||||
engines: {node: '>= 18'}
|
|
||||||
|
|
||||||
'@img/colour@1.1.0':
|
'@img/colour@1.1.0':
|
||||||
resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
|
resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
@@ -1788,11 +1781,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}
|
resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}
|
||||||
engines: {node: 18 || 20 || >=22}
|
engines: {node: 18 || 20 || >=22}
|
||||||
|
|
||||||
baseline-browser-mapping@2.10.42:
|
|
||||||
resolution: {integrity: sha512-c/jurFrDLyui7o1J86yLkRu4LMsTYcBohveus7/I2Hzdn9KIP2bdJPTue/lR1KH46enoPbD77GKeSYNdyPoD3Q==}
|
|
||||||
engines: {node: '>=6.0.0'}
|
|
||||||
hasBin: true
|
|
||||||
|
|
||||||
baseline-browser-mapping@2.11.6:
|
baseline-browser-mapping@2.11.6:
|
||||||
resolution: {integrity: sha512-69D/imtToCsIcAl8WBS2YaRwA4jO/j0HhU+hELqMEu9f54MoUtI6+XH5mrKU8rEFNEk/Ui1I2MK4/JkWacclGw==}
|
resolution: {integrity: sha512-69D/imtToCsIcAl8WBS2YaRwA4jO/j0HhU+hELqMEu9f54MoUtI6+XH5mrKU8rEFNEk/Ui1I2MK4/JkWacclGw==}
|
||||||
engines: {node: '>=6.0.0'}
|
engines: {node: '>=6.0.0'}
|
||||||
@@ -1820,11 +1808,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
|
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
browserslist@4.28.5:
|
|
||||||
resolution: {integrity: sha512-Cu2E6QejHWzuDMTkuwgpABFgDfZrXLQq5V13YOACZx4mFAG4IwGTbTfHPMr4WtxlHoXSM8FIuRwYYCz5XiabaQ==}
|
|
||||||
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
|
||||||
hasBin: true
|
|
||||||
|
|
||||||
browserslist@4.28.7:
|
browserslist@4.28.7:
|
||||||
resolution: {integrity: sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw==}
|
resolution: {integrity: sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw==}
|
||||||
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
||||||
@@ -1846,9 +1829,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
|
resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
caniuse-lite@1.0.30001800:
|
|
||||||
resolution: {integrity: sha512-MMHtuAz9Ys840zAY5F4k6fV5GaivZ9sPk+nz0mY+GYVzRBnYkN0mpqkSR92oWRQ19yQWo4HvBV/FnC16AJX8MA==}
|
|
||||||
|
|
||||||
caniuse-lite@1.0.30001806:
|
caniuse-lite@1.0.30001806:
|
||||||
resolution: {integrity: sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw==}
|
resolution: {integrity: sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw==}
|
||||||
|
|
||||||
@@ -2151,9 +2131,6 @@ packages:
|
|||||||
engines: {node: '>=20'}
|
engines: {node: '>=20'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
electron-to-chromium@1.5.387:
|
|
||||||
resolution: {integrity: sha512-TaxwufTFDufvPEoXdhwVrA3UdFWBeWGkYoJ1K8ldF1xe6gKfth6iRNS5lTQ5JPNOHdGQm8PT1QYKUqFLCiUefQ==}
|
|
||||||
|
|
||||||
electron-to-chromium@1.5.397:
|
electron-to-chromium@1.5.397:
|
||||||
resolution: {integrity: sha512-khGTy9U9x02KEtsKM8vx5A62BsRmcOsIgDpWr1ImE32Ax8GxHGPHZf+Eu9H8zOOyHJnB0jTbseyTHbq2XCT8yw==}
|
resolution: {integrity: sha512-khGTy9U9x02KEtsKM8vx5A62BsRmcOsIgDpWr1ImE32Ax8GxHGPHZf+Eu9H8zOOyHJnB0jTbseyTHbq2XCT8yw==}
|
||||||
|
|
||||||
@@ -3148,10 +3125,6 @@ packages:
|
|||||||
node-mock-http@1.0.4:
|
node-mock-http@1.0.4:
|
||||||
resolution: {integrity: sha512-8DY+kFsDkNXy1sJglUfuODx1/opAGJGyrTuFqEoN90oRc2Vk0ZbD4K2qmKXBBEhZQzdKHIVfEJpDU8Ak2NJEvQ==}
|
resolution: {integrity: sha512-8DY+kFsDkNXy1sJglUfuODx1/opAGJGyrTuFqEoN90oRc2Vk0ZbD4K2qmKXBBEhZQzdKHIVfEJpDU8Ak2NJEvQ==}
|
||||||
|
|
||||||
node-releases@2.0.50:
|
|
||||||
resolution: {integrity: sha512-J6l92tKHX6w8Jy5nO1Vuc01NoIiRGi/d6qBKVxh+IQ8Cr3b6HbVNfKiF8ZpFKufTwpwxMmce2W3iQZ861ZRyTg==}
|
|
||||||
engines: {node: '>=18'}
|
|
||||||
|
|
||||||
node-releases@2.0.51:
|
node-releases@2.0.51:
|
||||||
resolution: {integrity: sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==}
|
resolution: {integrity: sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
@@ -4509,7 +4482,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/compat-data': 7.29.7
|
'@babel/compat-data': 7.29.7
|
||||||
'@babel/helper-validator-option': 7.29.7
|
'@babel/helper-validator-option': 7.29.7
|
||||||
browserslist: 4.28.5
|
browserslist: 4.28.7
|
||||||
lru-cache: 5.1.1
|
lru-cache: 5.1.1
|
||||||
semver: 6.3.1
|
semver: 6.3.1
|
||||||
|
|
||||||
@@ -4904,8 +4877,6 @@ snapshots:
|
|||||||
'@fullcalendar/core': 6.1.21
|
'@fullcalendar/core': 6.1.21
|
||||||
'@fullcalendar/daygrid': 6.1.21(@fullcalendar/core@6.1.21)
|
'@fullcalendar/daygrid': 6.1.21(@fullcalendar/core@6.1.21)
|
||||||
|
|
||||||
'@hotwired/turbo@8.0.23': {}
|
|
||||||
|
|
||||||
'@img/colour@1.1.0':
|
'@img/colour@1.1.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -5770,8 +5741,6 @@ snapshots:
|
|||||||
|
|
||||||
balanced-match@4.0.4: {}
|
balanced-match@4.0.4: {}
|
||||||
|
|
||||||
baseline-browser-mapping@2.10.42: {}
|
|
||||||
|
|
||||||
baseline-browser-mapping@2.11.6: {}
|
baseline-browser-mapping@2.11.6: {}
|
||||||
|
|
||||||
better-path-resolve@1.0.0:
|
better-path-resolve@1.0.0:
|
||||||
@@ -5795,14 +5764,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
fill-range: 7.1.1
|
fill-range: 7.1.1
|
||||||
|
|
||||||
browserslist@4.28.5:
|
|
||||||
dependencies:
|
|
||||||
baseline-browser-mapping: 2.10.42
|
|
||||||
caniuse-lite: 1.0.30001800
|
|
||||||
electron-to-chromium: 1.5.387
|
|
||||||
node-releases: 2.0.50
|
|
||||||
update-browserslist-db: 1.2.3(browserslist@4.28.5)
|
|
||||||
|
|
||||||
browserslist@4.28.7:
|
browserslist@4.28.7:
|
||||||
dependencies:
|
dependencies:
|
||||||
baseline-browser-mapping: 2.11.6
|
baseline-browser-mapping: 2.11.6
|
||||||
@@ -5835,8 +5796,6 @@ snapshots:
|
|||||||
es-errors: 1.3.0
|
es-errors: 1.3.0
|
||||||
function-bind: 1.1.2
|
function-bind: 1.1.2
|
||||||
|
|
||||||
caniuse-lite@1.0.30001800: {}
|
|
||||||
|
|
||||||
caniuse-lite@1.0.30001806: {}
|
caniuse-lite@1.0.30001806: {}
|
||||||
|
|
||||||
ccount@2.0.1: {}
|
ccount@2.0.1: {}
|
||||||
@@ -6120,8 +6079,6 @@ snapshots:
|
|||||||
minimatch: 10.2.5
|
minimatch: 10.2.5
|
||||||
semver: 7.8.5
|
semver: 7.8.5
|
||||||
|
|
||||||
electron-to-chromium@1.5.387: {}
|
|
||||||
|
|
||||||
electron-to-chromium@1.5.397: {}
|
electron-to-chromium@1.5.397: {}
|
||||||
|
|
||||||
emoji-regex@10.6.0: {}
|
emoji-regex@10.6.0: {}
|
||||||
@@ -7441,8 +7398,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@next/env': 16.2.10
|
'@next/env': 16.2.10
|
||||||
'@swc/helpers': 0.5.15
|
'@swc/helpers': 0.5.15
|
||||||
baseline-browser-mapping: 2.10.42
|
baseline-browser-mapping: 2.11.6
|
||||||
caniuse-lite: 1.0.30001800
|
caniuse-lite: 1.0.30001806
|
||||||
postcss: 8.4.31
|
postcss: 8.4.31
|
||||||
react: 19.2.7
|
react: 19.2.7
|
||||||
react-dom: 19.2.7(react@19.2.7)
|
react-dom: 19.2.7(react@19.2.7)
|
||||||
@@ -7479,8 +7436,6 @@ snapshots:
|
|||||||
|
|
||||||
node-mock-http@1.0.4: {}
|
node-mock-http@1.0.4: {}
|
||||||
|
|
||||||
node-releases@2.0.50: {}
|
|
||||||
|
|
||||||
node-releases@2.0.51: {}
|
node-releases@2.0.51: {}
|
||||||
|
|
||||||
nodemon@3.1.14:
|
nodemon@3.1.14:
|
||||||
@@ -8472,12 +8427,6 @@ snapshots:
|
|||||||
ofetch: 1.5.1
|
ofetch: 1.5.1
|
||||||
ufo: 1.6.4
|
ufo: 1.6.4
|
||||||
|
|
||||||
update-browserslist-db@1.2.3(browserslist@4.28.5):
|
|
||||||
dependencies:
|
|
||||||
browserslist: 4.28.5
|
|
||||||
escalade: 3.2.0
|
|
||||||
picocolors: 1.1.1
|
|
||||||
|
|
||||||
update-browserslist-db@1.2.3(browserslist@4.28.7):
|
update-browserslist-db@1.2.3(browserslist@4.28.7):
|
||||||
dependencies:
|
dependencies:
|
||||||
browserslist: 4.28.7
|
browserslist: 4.28.7
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
---
|
|
||||||
// The {% capture_script %} block is registered synchronously (before any await).
|
|
||||||
import DefaultLayout from '@shared/layouts/DefaultLayout.astro';
|
|
||||||
import ButtonList from '@shared/components/ui/ButtonList.astro';
|
|
||||||
import Card from '@shared/components/ui/Card.astro';
|
|
||||||
import CardBody from '@shared/components/ui/CardBody.astro';
|
|
||||||
import { addPageScript } from '@shared/lib/page-scripts';
|
|
||||||
|
|
||||||
addPageScript(`<script>
|
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
|
||||||
Turbo.session.drive = false
|
|
||||||
|
|
||||||
if(window.Turbo) {
|
|
||||||
var loader = Turbo.navigator.delegate.adapter.progressBar
|
|
||||||
|
|
||||||
console.log(loader);
|
|
||||||
|
|
||||||
document.getElementById("show-loader").addEventListener("click", function(e) {
|
|
||||||
loader.show()
|
|
||||||
e.preventDefault()
|
|
||||||
})
|
|
||||||
|
|
||||||
document.getElementById("hide-loader").addEventListener("click", function(e) {
|
|
||||||
loader.hide()
|
|
||||||
e.preventDefault()
|
|
||||||
})
|
|
||||||
|
|
||||||
document.getElementById("set-10").addEventListener("click", function(e) {
|
|
||||||
loader.show()
|
|
||||||
loader.setValue(.1)
|
|
||||||
e.preventDefault()
|
|
||||||
})
|
|
||||||
|
|
||||||
document.getElementById("set-50").addEventListener("click", function(e) {
|
|
||||||
loader.show()
|
|
||||||
loader.setValue(.5)
|
|
||||||
e.preventDefault()
|
|
||||||
})
|
|
||||||
|
|
||||||
document.getElementById("set-100").addEventListener("click", function(e) {
|
|
||||||
loader.show()
|
|
||||||
loader.setValue(1)
|
|
||||||
setTimeout(function() {
|
|
||||||
loader.hide()
|
|
||||||
}, 1000)
|
|
||||||
e.preventDefault()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>`);
|
|
||||||
---
|
|
||||||
|
|
||||||
<DefaultLayout pageMenu="plugins.turbo" pageLibs={['turbo']}>
|
|
||||||
<Card>
|
|
||||||
<CardBody>
|
|
||||||
<ButtonList>
|
|
||||||
<button class="btn" id="show-loader">Show loader</button>
|
|
||||||
<button class="btn" id="hide-loader">Hide loader</button>
|
|
||||||
<button class="btn" id="set-10">Set 10%</button>
|
|
||||||
<button class="btn" id="set-50">Set 50%</button>
|
|
||||||
<button class="btn" id="set-100">Set 100%</button>
|
|
||||||
</ButtonList>
|
|
||||||
</CardBody>
|
|
||||||
</Card>
|
|
||||||
</DefaultLayout>
|
|
||||||
@@ -494,10 +494,6 @@
|
|||||||
"url": "tour.html",
|
"url": "tour.html",
|
||||||
"title": "Tour"
|
"title": "Tour"
|
||||||
},
|
},
|
||||||
"turbo": {
|
|
||||||
"url": "turbo-loader.html",
|
|
||||||
"title": "Turbo loader"
|
|
||||||
},
|
|
||||||
"wysiwyg": {
|
"wysiwyg": {
|
||||||
"url": "wysiwyg.html",
|
"url": "wysiwyg.html",
|
||||||
"title": "WYSIWYG editor"
|
"title": "WYSIWYG editor"
|
||||||
|
|||||||
Reference in new issue
Block a user