Browse Source

Fix menu drag&drop

pull/978/head
Timothée Jaussoin 5 years ago
parent
commit
f6948dc064
  1. 205
      composer.lock
  2. 5
      public/scripts/movim_tpl.js

205
composer.lock

@ -8,7 +8,7 @@
"packages": [
{
"name": "cakephp/core",
"version": "4.2.0",
"version": "4.2.1",
"source": {
"type": "git",
"url": "https://github.com/cakephp/core.git",
@ -55,17 +55,11 @@
"core",
"framework"
],
"support": {
"forum": "https://stackoverflow.com/tags/cakephp",
"irc": "irc://irc.freenode.org/cakephp",
"issues": "https://github.com/cakephp/cakephp/issues",
"source": "https://github.com/cakephp/core"
},
"time": "2020-12-03T14:30:58+00:00"
},
{
"name": "cakephp/database",
"version": "4.2.0",
"version": "4.2.1",
"source": {
"type": "git",
"url": "https://github.com/cakephp/database.git",
@ -110,17 +104,11 @@
"database abstraction",
"pdo"
],
"support": {
"forum": "https://stackoverflow.com/tags/cakephp",
"irc": "irc://irc.freenode.org/cakephp",
"issues": "https://github.com/cakephp/cakephp/issues",
"source": "https://github.com/cakephp/database"
},
"time": "2020-12-14T09:13:32+00:00"
},
{
"name": "cakephp/datasource",
"version": "4.2.0",
"version": "4.2.1",
"source": {
"type": "git",
"url": "https://github.com/cakephp/datasource.git",
@ -168,17 +156,11 @@
"entity",
"query"
],
"support": {
"forum": "https://stackoverflow.com/tags/cakephp",
"irc": "irc://irc.freenode.org/cakephp",
"issues": "https://github.com/cakephp/cakephp/issues",
"source": "https://github.com/cakephp/datasource"
},
"time": "2020-12-09T02:44:24+00:00"
},
{
"name": "cakephp/utility",
"version": "4.2.0",
"version": "4.2.1",
"source": {
"type": "git",
"url": "https://github.com/cakephp/utility.git",
@ -227,12 +209,6 @@
"string",
"utility"
],
"support": {
"forum": "https://stackoverflow.com/tags/cakephp",
"irc": "irc://irc.freenode.org/cakephp",
"issues": "https://github.com/cakephp/cakephp/issues",
"source": "https://github.com/cakephp/utility"
},
"time": "2020-12-04T14:13:14+00:00"
},
{
@ -290,11 +266,6 @@
"sockets",
"websocket"
],
"support": {
"chat": "https://gitter.im/reactphp/reactphp",
"issues": "https://github.com/ratchetphp/Ratchet/issues",
"source": "https://github.com/ratchetphp/Ratchet/tree/master"
},
"time": "2020-07-07T15:50:14+00:00"
},
{
@ -365,10 +336,6 @@
"slug",
"slugify"
],
"support": {
"issues": "https://github.com/cocur/slugify/issues",
"source": "https://github.com/cocur/slugify/tree/master"
},
"time": "2019-12-14T13:04:14+00:00"
},
{
@ -425,11 +392,6 @@
"ssl",
"tls"
],
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/ca-bundle/issues",
"source": "https://github.com/composer/ca-bundle/tree/1.2.8"
},
"funding": [
{
"url": "https://packagist.com",
@ -507,10 +469,6 @@
"security",
"symmetric key cryptography"
],
"support": {
"issues": "https://github.com/defuse/php-encryption/issues",
"source": "https://github.com/defuse/php-encryption/tree/master"
},
"time": "2018-07-24T23:27:56+00:00"
},
{
@ -651,10 +609,6 @@
"redis",
"xcache"
],
"support": {
"issues": "https://github.com/doctrine/cache/issues",
"source": "https://github.com/doctrine/cache/tree/1.10.x"
},
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
@ -856,10 +810,6 @@
"event system",
"events"
],
"support": {
"issues": "https://github.com/doctrine/event-manager/issues",
"source": "https://github.com/doctrine/event-manager/tree/1.1.x"
},
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
@ -951,10 +901,6 @@
"uppercase",
"words"
],
"support": {
"issues": "https://github.com/doctrine/inflector/issues",
"source": "https://github.com/doctrine/inflector/tree/2.0.x"
},
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
@ -1071,10 +1017,6 @@
"event-dispatcher",
"event-emitter"
],
"support": {
"issues": "https://github.com/igorw/evenement/issues",
"source": "https://github.com/igorw/evenement/tree/master"
},
"time": "2017-07-23T21:35:13+00:00"
},
{
@ -1125,10 +1067,6 @@
"keywords": [
"html"
],
"support": {
"issues": "https://github.com/ezyang/htmlpurifier/issues",
"source": "https://github.com/ezyang/htmlpurifier/tree/master"
},
"time": "2020-06-29T00:56:53+00:00"
},
{
@ -1196,10 +1134,6 @@
"sasl",
"scram"
],
"support": {
"issues": "https://github.com/fabiang/sasl/issues",
"source": "https://github.com/fabiang/sasl/tree/v1.0.1"
},
"time": "2019-12-03T15:31:45+00:00"
},
{
@ -1271,10 +1205,6 @@
"uri",
"url"
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
"source": "https://github.com/guzzle/psr7/tree/1.7.0"
},
"time": "2020-09-30T07:37:11+00:00"
},
{
@ -1814,10 +1744,6 @@
"keywords": [
"markdown"
],
"support": {
"issues": "https://github.com/michelf/php-markdown/issues",
"source": "https://github.com/michelf/php-markdown/tree/1.9.0"
},
"time": "2019-12-02T02:32:27+00:00"
},
{
@ -1900,10 +1826,6 @@
"logging",
"psr-3"
],
"support": {
"issues": "https://github.com/Seldaek/monolog/issues",
"source": "https://github.com/Seldaek/monolog/tree/2.2.0"
},
"funding": [
{
"url": "https://github.com/Seldaek",
@ -2052,11 +1974,6 @@
"pseudorandom",
"random"
],
"support": {
"email": "info@paragonie.com",
"issues": "https://github.com/paragonie/random_compat/issues",
"source": "https://github.com/paragonie/random_compat"
},
"time": "2020-10-15T08:29:30+00:00"
},
{
@ -2106,10 +2023,6 @@
"container-interop",
"psr"
],
"support": {
"issues": "https://github.com/php-fig/container/issues",
"source": "https://github.com/php-fig/container/tree/master"
},
"time": "2017-02-14T16:28:37+00:00"
},
{
@ -2160,9 +2073,6 @@
"request",
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/master"
},
"time": "2016-08-06T14:39:51+00:00"
},
{
@ -2210,9 +2120,6 @@
"psr",
"psr-3"
],
"support": {
"source": "https://github.com/php-fig/log/tree/1.1.3"
},
"time": "2020-03-23T09:12:05+00:00"
},
{
@ -2261,9 +2168,6 @@
"psr-16",
"simple-cache"
],
"support": {
"source": "https://github.com/php-fig/simple-cache/tree/master"
},
"time": "2017-10-23T01:57:42+00:00"
},
{
@ -2307,10 +2211,6 @@
],
"description": "easy and fast template engine",
"homepage": "http://raintpl.com",
"support": {
"issues": "https://github.com/feulf/raintpl3/issues",
"source": "https://github.com/feulf/raintpl3/tree/master"
},
"time": "2018-06-08T21:19:55+00:00"
},
{
@ -2351,10 +2251,6 @@
}
],
"description": "A polyfill for getallheaders.",
"support": {
"issues": "https://github.com/ralouphie/getallheaders/issues",
"source": "https://github.com/ralouphie/getallheaders/tree/develop"
},
"time": "2019-03-08T08:55:37+00:00"
},
{
@ -2404,10 +2300,6 @@
"websocket",
"websocket client"
],
"support": {
"issues": "https://github.com/ratchetphp/Pawl/issues",
"source": "https://github.com/ratchetphp/Pawl/tree/master"
},
"time": "2020-07-17T15:32:47+00:00"
},
{
@ -2460,11 +2352,6 @@
"rfc6455",
"websocket"
],
"support": {
"chat": "https://gitter.im/reactphp/reactphp",
"issues": "https://github.com/ratchetphp/RFC6455/issues",
"source": "https://github.com/ratchetphp/RFC6455/tree/v0.3"
},
"time": "2020-05-15T18:31:24+00:00"
},
{
@ -2527,10 +2414,6 @@
"promise",
"reactphp"
],
"support": {
"issues": "https://github.com/reactphp/cache/issues",
"source": "https://github.com/reactphp/cache/tree/v1.1.0"
},
"funding": [
{
"url": "https://github.com/WyriHaximus",
@ -2584,10 +2467,6 @@
"process",
"reactphp"
],
"support": {
"issues": "https://github.com/reactphp/child-process/issues",
"source": "https://github.com/reactphp/child-process/tree/v0.6.1"
},
"time": "2019-02-15T13:48:16+00:00"
},
{
@ -2654,10 +2533,6 @@
"dns-resolver",
"reactphp"
],
"support": {
"issues": "https://github.com/reactphp/dns/issues",
"source": "https://github.com/reactphp/dns/tree/v1.4.0"
},
"funding": [
{
"url": "https://github.com/WyriHaximus",
@ -2710,10 +2585,6 @@
"asynchronous",
"event-loop"
],
"support": {
"issues": "https://github.com/reactphp/event-loop/issues",
"source": "https://github.com/reactphp/event-loop/tree/v1.1.1"
},
"time": "2020-01-01T18:39:52+00:00"
},
{
@ -2854,10 +2725,6 @@
"promise",
"promises"
],
"support": {
"issues": "https://github.com/reactphp/promise/issues",
"source": "https://github.com/reactphp/promise/tree/v2.8.0"
},
"time": "2020-05-12T15:16:56+00:00"
},
{
@ -2914,10 +2781,6 @@
"stream",
"unwrap"
],
"support": {
"issues": "https://github.com/reactphp/promise-stream/issues",
"source": "https://github.com/reactphp/promise-stream/tree/v1.2.0"
},
"time": "2019-07-03T12:29:10+00:00"
},
{
@ -2971,10 +2834,6 @@
"timeout",
"timer"
],
"support": {
"issues": "https://github.com/reactphp/promise-timer/issues",
"source": "https://github.com/reactphp/promise-timer/tree/v1.6.0"
},
"time": "2020-07-10T12:18:06+00:00"
},
{
@ -3045,10 +2904,6 @@
"reactphp",
"stream"
],
"support": {
"issues": "https://github.com/reactphp/socket/issues",
"source": "https://github.com/reactphp/socket/tree/v1.6.0"
},
"funding": [
{
"url": "https://github.com/WyriHaximus",
@ -3105,10 +2960,6 @@
"stream",
"writable"
],
"support": {
"issues": "https://github.com/reactphp/stream/issues",
"source": "https://github.com/reactphp/stream/tree/v1.1.1"
},
"time": "2020-05-04T10:17:57+00:00"
},
{
@ -3159,10 +3010,6 @@
"stringifier",
"stringify"
],
"support": {
"issues": "https://github.com/Respect/Stringifier/issues",
"source": "https://github.com/Respect/Stringifier/tree/0.2.0"
},
"time": "2017-12-29T19:39:25+00:00"
},
{
@ -3229,10 +3076,6 @@
"validation",
"validator"
],
"support": {
"issues": "https://github.com/Respect/Validation/issues",
"source": "https://github.com/Respect/Validation/tree/2.1.0"
},
"time": "2020-10-04T12:09:34+00:00"
},
{
@ -3291,9 +3134,6 @@
"stream",
"uri"
],
"support": {
"source": "https://github.com/ringcentral/psr7/tree/master"
},
"time": "2018-05-29T20:21:04+00:00"
},
{
@ -3376,10 +3216,6 @@
"migrations",
"phinx"
],
"support": {
"issues": "https://github.com/cakephp/phinx/issues",
"source": "https://github.com/cakephp/phinx/tree/master"
},
"time": "2020-08-15T07:42:40+00:00"
},
{
@ -3605,9 +3441,6 @@
],
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/deprecation-contracts/tree/master"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -3819,9 +3652,6 @@
"polyfill",
"portable"
],
"support": {
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -3900,9 +3730,6 @@
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.20.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -3984,9 +3811,6 @@
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.20.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -4064,9 +3888,6 @@
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.20.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -4143,9 +3964,6 @@
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php73/tree/v1.20.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -4226,9 +4044,6 @@
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php80/tree/v1.20.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -4395,9 +4210,6 @@
"interoperability",
"standards"
],
"support": {
"source": "https://github.com/symfony/service-contracts/tree/master"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -4649,9 +4461,6 @@
"interoperability",
"standards"
],
"support": {
"source": "https://github.com/symfony/translation-contracts/tree/v2.3.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -4714,10 +4523,6 @@
"clean",
"php"
],
"support": {
"issues": "https://github.com/voku/portable-ascii/issues",
"source": "https://github.com/voku/portable-ascii/tree/1.5.6"
},
"funding": [
{
"url": "https://www.paypal.me/moelleken",
@ -4762,5 +4567,5 @@
"platform-overrides": {
"php": "7.3"
},
"plugin-api-version": "2.0.0"
"plugin-api-version": "1.1.0"
}

5
public/scripts/movim_tpl.js

@ -134,14 +134,15 @@ var MovimTpl = {
MovimTpl.translateX = parseInt(moveX - MovimTpl.startX);
if (!nav.classList.contains('active')
&& MovimTpl.startX < clientWidth/20
&& MovimTpl.startX < 28
&& MovimTpl.startY > 56
&& MovimTpl.translateX < (clientWidth/2) + delay
&& MovimTpl.translateX > delay) {
MovimTpl.menuDragged = true;
event.stopPropagation();
nav.style.transform = 'matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, '
+ (MovimTpl.translateX - clientWidth - delay)
+ (MovimTpl.translateX - (clientWidth/2) - delay)
+', 0, 0, 1)';
}
}, true);

Loading…
Cancel
Save