From 4a25262ce596dbc9709b21d5c24e09486138efee Mon Sep 17 00:00:00 2001 From: Chris Normansell Date: Wed, 29 May 2024 14:29:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Sorted=20being=20able=20to=20ins?= =?UTF-8?q?tall=20npm=20and=20build=20grunt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/sass/gathercontent-importer.scss | 15 ++++++++----- includes/classes/admin/mapping-wizard.php | 9 -------- package.json | 24 ++++++++++----------- tasks/options/uglify.js | 6 +++--- 4 files changed, 24 insertions(+), 30 deletions(-) diff --git a/assets/css/sass/gathercontent-importer.scss b/assets/css/sass/gathercontent-importer.scss index 54c5c10a..d9daebe2 100644 --- a/assets/css/sass/gathercontent-importer.scss +++ b/assets/css/sass/gathercontent-importer.scss @@ -185,14 +185,14 @@ ul.gc-radio-desc li, ul.gc-reveal-items-list li { &.text{ option[data-type="text"], option[data-type="textarea"], - option[data-type="wysiwyg"]{ + option[data-type="wysiwyg"]{ display:block; } } &.attachment{ option[data-type="gallery"], - option[data-type="image"]{ - display:block; + option[data-type="image"]{ + display:block; } } &.choice_checkbox{ @@ -204,14 +204,14 @@ ul.gc-radio-desc li, ul.gc-reveal-items-list li { &.repeater{ option[data-type="text"], option[data-type="textarea"], - option[data-type="wysiwyg"]{ + option[data-type="wysiwyg"]{ display:none; } option[data-type="repeater"]{ display:block; } } } } - + .ajax-disabled{ opacity:0.75; pointer-events:none; @@ -391,6 +391,11 @@ ul.gc-radio-desc li, ul.gc-reveal-items-list li { background-color: #f5bfbf; } +.gc-component-disabled { + pointer-events: none; + opacity: 0.5; +} + @import 'sync'; @import 'modal'; @import 'single'; diff --git a/includes/classes/admin/mapping-wizard.php b/includes/classes/admin/mapping-wizard.php index 1a05cf36..fa2e41c5 100644 --- a/includes/classes/admin/mapping-wizard.php +++ b/includes/classes/admin/mapping-wizard.php @@ -541,15 +541,6 @@ public function map_template() { array('additionalClass' => 'gc-component-disabled'), false ); - - ?> - - =14.0.0 <15.0.0" + "node": ">=14.0.0 <16.20.3" }, "devDependencies": { "autoprefixer": "^6.7.7", @@ -23,24 +26,19 @@ "browserify-shim": "^3.8.14", "chai": "^3.5.0", "glob": "~5.0.15", - "grunt": "^1.4.1", + "grunt": "^1.6.1", "grunt-browserify": "^4.0.1", - "grunt-contrib-clean": "^0.6.0", "grunt-contrib-compress": "^2.0.0", - "grunt-contrib-concat": "^0.5.1", - "grunt-contrib-copy": "^0.8.0", - "grunt-contrib-cssmin": "^0.12.3", - "grunt-contrib-jshint": "^0.11.2", - "grunt-contrib-uglify": "^0.9.1", - "grunt-contrib-watch": "^0.6.1", - "grunt-mocha": "^1.0.4", - "grunt-phpunit": "^0.3.6", - "grunt-postcss": "^0.6.0", "grunt-sass": "^3.1.0", + "grunt-postcss": "^0.9.0", + "grunt-contrib-jshint": "^3.2.0", + "grunt-contrib-uglify": "^5.2.2", + "grunt-contrib-copy": "^1.0.0", + "grunt-contrib-cssmin": "^5.0.0", "grunt-wp-readme-to-markdown": "^0.9.0", "load-grunt-config": "~0.17.2", "load-grunt-tasks": "^3.5.2", - "node-sass": "^6.0.1" + "node-sass": "^9.0.0" }, "browserify-shim": { "jquery": "global:jQuery" diff --git a/tasks/options/uglify.js b/tasks/options/uglify.js index 3f371c71..3b036fdc 100644 --- a/tasks/options/uglify.js +++ b/tasks/options/uglify.js @@ -13,9 +13,9 @@ module.exports = { ' | Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>' + ' | Licensed <%= pkg.license %>' + ' */\n', - mangle: { - except: ['jQuery'] - } + // mangle: { + // except: ['jQuery'] + // } } } };