Skip to content

Commit

Permalink
🔨 Sorted being able to install npm and build grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
CWDN committed May 29, 2024
1 parent 47b5254 commit 4a25262
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 30 deletions.
15 changes: 10 additions & 5 deletions assets/css/sass/gathercontent-importer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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;
Expand Down Expand Up @@ -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';
9 changes: 0 additions & 9 deletions includes/classes/admin/mapping-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,15 +541,6 @@ public function map_template() {
array('additionalClass' => 'gc-component-disabled'),
false
);

?>
<style>
.gc-component-disabled {
pointer-events: none;
opacity: 0.5;
}
</style>
<?php
}

if ( ! $sync_items && $mapping_id ) {
Expand Down
24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "Imports items from Content Workflow to your wordpress site",
"version": "1.0.0",
"license": "GPLv2",
"scripts": {
"build": "grunt build"
},
"repository": {
"type": "git",
"url": "https://github.com/Bynder/cw-wordpress-plugin"
Expand All @@ -14,7 +17,7 @@
"url": "https://www.bynder.com/products/content-workflow/"
},
"engines": {
"node": ">=14.0.0 <15.0.0"
"node": ">=14.0.0 <16.20.3"
},
"devDependencies": {
"autoprefixer": "^6.7.7",
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions tasks/options/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
// }
}
}
};

0 comments on commit 4a25262

Please sign in to comment.