Procházet zdrojové kódy

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

Вадим Королёв před 1 rokem
rodič
revize
bdd3a1a945
3 změnil soubory, kde provedl 5 přidání a 97 odebrání
  1. 2 5
      src/composer.json
  2. 1 90
      src/composer.lock
  3. 2 2
      src/pockit.php

+ 2 - 5
src/composer.json

@@ -1,15 +1,12 @@
 {
     "require": {
         "vlucas/phpdotenv": "^5.6",
-        "components/jquery": "^3.7",
-        "components/jqueryui": "^1.12"
+        "components/jquery": "^3.7"
     },
     "scripts": {
         "post-update-cmd": [
             "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",
         "This file is @generated automatically"
     ],
-    "content-hash": "0a7b23981a3bb5ff5328f97a6b072cb7",
+    "content-hash": "09a1c10dbb684a8a74191f6de83945f6",
     "packages": [
         {
             "name": "components/jquery",
@@ -55,95 +55,6 @@
             },
             "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",
             "version": "v1.1.2",

+ 2 - 2
src/pockit.php

@@ -29,7 +29,7 @@ class Router {
 
 	// Выполняет маршрутизацию
 	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");
 			return false;
@@ -76,4 +76,4 @@ class Database {
         }
         return self::$db->connection;
     }
-}
+}