From 6bdf469f1f24e1af46211b2d619367553ef2ce82 Mon Sep 17 00:00:00 2001 From: Dan Rice Date: Tue, 10 May 2022 22:31:26 -0400 Subject: [PATCH] Remove unused JS --- js/app.js | 14 -------------- package-lock.json | 13 +------------ package.json | 3 +-- 3 files changed, 2 insertions(+), 28 deletions(-) diff --git a/js/app.js b/js/app.js index b648609..520ca00 100644 --- a/js/app.js +++ b/js/app.js @@ -1,19 +1,5 @@ import '../css/app.scss' -import 'bootstrap' -import '@popperjs/core' -import $ from 'jquery' import Josh from 'joshjs' new Josh() - -$(function () { - $('.custom-upload-input').on('change', function () { - let fileName = $(this).val().split('\\').pop() - $(this) - .siblings('.custom-upload-label') - .removeClass('not-selected') - .addClass('selected') - .html("Selected File:
" + fileName + '
') - }) -}) diff --git a/package-lock.json b/package-lock.json index 14ae97c..7950a1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,8 +8,7 @@ "dependencies": { "@popperjs/core": "^2.11.4", "bootstrap": "^5.1.3", - "joshjs": "^1.0.7", - "jquery": "^3.6.0" + "joshjs": "^1.0.7" }, "devDependencies": { "@babel/core": "^7.14.8", @@ -7981,11 +7980,6 @@ "animate.css": "^4.1.0" } }, - "node_modules/jquery": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", - "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" - }, "node_modules/js-base64": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", @@ -17903,11 +17897,6 @@ "animate.css": "^4.1.0" } }, - "jquery": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", - "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" - }, "js-base64": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", diff --git a/package.json b/package.json index 5817186..a362640 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ "dependencies": { "@popperjs/core": "^2.11.4", "bootstrap": "^5.1.3", - "joshjs": "^1.0.7", - "jquery": "^3.6.0" + "joshjs": "^1.0.7" }, "devDependencies": { "@babel/core": "^7.14.8",