Эх сурвалжийг харах

Из зависимостей удален jqueryui

Вадим Королёв 1 жил өмнө
parent
commit
bdd3a1a945

+ 2 - 5
src/composer.json

@@ -1,15 +1,12 @@
 {
 {
     "require": {
     "require": {
         "vlucas/phpdotenv": "^5.6",
         "vlucas/phpdotenv": "^5.6",
-        "components/jquery": "^3.7",
-        "components/jqueryui": "^1.12"
+        "components/jquery": "^3.7"
     },
     },
     "scripts": {
     "scripts": {
         "post-update-cmd": [
         "post-update-cmd": [
             "rm -rf jquery",
             "rm -rf jquery",
-            "rm -rf jqueryui",
-            "cp -R vendor/components/jquery/ jquery",
-            "cp -R vendor/components/jqueryui jqueryui"
+            "cp -R vendor/components/jquery/ jquery"
         ]
         ]
     }
     }
 }
 }

+ 1 - 90
src/composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
         "This file is @generated automatically"
     ],
     ],
-    "content-hash": "0a7b23981a3bb5ff5328f97a6b072cb7",
+    "content-hash": "09a1c10dbb684a8a74191f6de83945f6",
     "packages": [
     "packages": [
         {
         {
             "name": "components/jquery",
             "name": "components/jquery",
@@ -55,95 +55,6 @@
             },
             },
             "time": "2023-09-22T01:43:46+00:00"
             "time": "2023-09-22T01:43:46+00:00"
         },
         },
-        {
-            "name": "components/jqueryui",
-            "version": "1.12.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/components/jqueryui.git",
-                "reference": "44ecf3794cc56b65954cc19737234a3119d036cc"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/components/jqueryui/zipball/44ecf3794cc56b65954cc19737234a3119d036cc",
-                "reference": "44ecf3794cc56b65954cc19737234a3119d036cc",
-                "shasum": ""
-            },
-            "require": {
-                "components/jquery": ">=1.6"
-            },
-            "type": "component",
-            "extra": {
-                "component": {
-                    "name": "jquery-ui",
-                    "scripts": [
-                        "jquery-ui.js"
-                    ],
-                    "files": [
-                        "ui/**",
-                        "themes/**",
-                        "jquery-ui.min.js"
-                    ],
-                    "shim": {
-                        "deps": [
-                            "jquery"
-                        ],
-                        "exports": "jQuery"
-                    }
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "jQuery UI Team",
-                    "homepage": "http://jqueryui.com/about"
-                },
-                {
-                    "name": "Joern Zaefferer",
-                    "email": "joern.zaefferer@gmail.com",
-                    "homepage": "http://bassistance.de"
-                },
-                {
-                    "name": "Scott Gonzalez",
-                    "email": "scott.gonzalez@gmail.com",
-                    "homepage": "http://scottgonzalez.com"
-                },
-                {
-                    "name": "Kris Borchers",
-                    "email": "kris.borchers@gmail.com",
-                    "homepage": "http://krisborchers.com"
-                },
-                {
-                    "name": "Mike Sherov",
-                    "email": "mike.sherov@gmail.com",
-                    "homepage": "http://mike.sherov.com"
-                },
-                {
-                    "name": "TJ VanToll",
-                    "email": "tj.vantoll@gmail.com",
-                    "homepage": "http://tjvantoll.com"
-                },
-                {
-                    "name": "Corey Frang",
-                    "email": "gnarf37@gmail.com",
-                    "homepage": "http://gnarf.net"
-                },
-                {
-                    "name": "Felix Nagel",
-                    "email": "info@felixnagel.com",
-                    "homepage": "http://www.felixnagel.com"
-                }
-            ],
-            "description": "jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.",
-            "support": {
-                "issues": "https://github.com/components/jqueryui/issues",
-                "source": "https://github.com/components/jqueryui/tree/master"
-            },
-            "time": "2016-09-16T05:47:55+00:00"
-        },
         {
         {
             "name": "graham-campbell/result-type",
             "name": "graham-campbell/result-type",
             "version": "v1.1.2",
             "version": "v1.1.2",

+ 2 - 2
src/pockit.php

@@ -29,7 +29,7 @@ class Router {
 
 
 	// Выполняет маршрутизацию
 	// Выполняет маршрутизацию
 	public function handle(string $request_uri) {
 	public function handle(string $request_uri) {
-		if (preg_match('/^\/(?:css|fonts|img|jquery|jqueryui|js)\//', $request_uri)) {
+		if (preg_match('/^\/(?:css|fonts|img|jquery|js)\//', $request_uri)) {
 			// Подача как есть
 			// Подача как есть
 			header("Cache-Control: public, max-age=3600");
 			header("Cache-Control: public, max-age=3600");
 			return false;
 			return false;
@@ -76,4 +76,4 @@ class Database {
         }
         }
         return self::$db->connection;
         return self::$db->connection;
     }
     }
-}
+}