Skip to content

Commit

Permalink
V 1.5
Browse files Browse the repository at this point in the history
* Bump `inputmask` from `5.0.3` to `5.0.5`
* Bump `@simonwep/pickr` from `1.6.0` to `1.8.0` #65
* Bump `flatpickr` from `4.6.3` to `4.6.9` #73
* Bump `@babel/plugin-proposal-class-properties` from `7.8.3` to `7.13.0` #81
* [Security] Bump `marked` from `0.6.2` to `2.0.1` #82
* [Security] Bump `node-sass` from `4.12.0` to `4.14.1` #54
* [Security] Bump `ini` from `1.3.5` to `1.3.8` #68
* [Security] Bump `jquery-validation` from `1.19.2` to `1.19.3` #74
* [Security] Bump `elliptic` from `6.5.0` to `6.5.4` #76
* [Security] Bump `highlight.js` from `9.15.6` to `10.6.0` #80
  • Loading branch information
varunsridharan committed Mar 3, 2021
1 parent cbfe5e0 commit d81d707
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 27 deletions.
9 changes: 0 additions & 9 deletions class-vendor-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,16 @@ final class WPOnion_Vendor_Support {
* Stores All Script Informations.
*
* @var array
* @access
* @static
*/
protected static $scripts = array();

/**
* @var array
* @access
* @static
*/
protected static $styles = array();

/**
* Stores All Basic Information.
*
* @static
*/
public static function init() {
/**
Expand Down Expand Up @@ -55,7 +49,6 @@ public static function init() {
*
* @param $extra
*
* @static
* @return string
*/
protected static function url( $extra ) {
Expand All @@ -67,7 +60,6 @@ protected static function url( $extra ) {
*
* @param $key
*
* @static
* @return bool|mixed
*/
public static function script( $key ) {
Expand All @@ -79,7 +71,6 @@ public static function script( $key ) {
*
* @param $key
*
* @static
* @return bool|mixed
*/
public static function style( $key ) {
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Plugin Name: WPOnion Vendor Support
* Plugin URI: https://github.com/wponion/vendor-support
* Description: This plugin (or extension) acts as a backup and/or replacement for the CDN based files within WPOnion Framework.
* Version: 1.4
* Version: 1.5
* Author: varunsridharan
* Author URI: https://varunsridharan.in
* Text Domain: wponion-vendor-support
* Domain Path: /i18n/
*/

add_action( 'wponion/addon/before/load', function () {
wponion_register_addon( __( 'WPOnion Vendor Support' ), '1.4', __DIR__ . '/class-vendor-support.php' );
wponion_register_addon( __( 'WPOnion Vendor Support' ), '1.5', __DIR__ . '/class-vendor-support.php' );
} );
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"scripts": {
"postinstall": "gulp compile && gulp copy"
"postinstall": "gulp compile && gulp copy",
"build": "rollup -c",
"watch": "sofy --compile",
"dev": "rollup -c --watch"
},
"devDependencies": {
"chosen-js": "1.8.7",
"easy-gulp-tasker": "1.0.15",
"sofy": "^1.0.7",
"flatpickr": "4.6.9",
"geocomplete": "1.7.0",
"inputmask": "5.0.5",
Expand Down
19 changes: 19 additions & 0 deletions sofy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
files: {
'src/js/flatpickr.js': {
dist: 'vendors/flatpickr/',
rename: 'script.js',
combine_files: false,
webpack: true,
uglify: true,
watch: true
}
},
config: {
combine_files: {
append: 'wponion-append',
prepend: 'wponion-prepend',
inline: 'wponion-inline',
}
}
};
28 changes: 18 additions & 10 deletions src/js/flatpickr.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
//@wponion-append ../../node_modules/flatpickr/dist/flatpickr.js
// @ wponion-append ../../node_modules/flatpickr/dist/l10n/*.js
// @ wponion-append ../../node_modules/flatpickr/dist/plugins/*.js
import flatpickr from "flatpickr";
import rangePlugin from "flatpickr/dist/esm/plugins/rangePlugin";
import scrollPlugin from "flatpickr/dist/esm/plugins/scrollPlugin";
import minMaxTimePlugin from "flatpickr/dist/esm/plugins/minMaxTimePlugin";
import confirmDate from "flatpickr/dist/esm/plugins/confirmDate/confirmDate";
import monthSelect from "flatpickr/dist/esm/plugins/monthSelect/index";
import labelPlugin from "flatpickr/dist/esm/plugins/labelPlugin/labelPlugin";
import weekSelect from "flatpickr/dist/esm/plugins/weekSelect/weekSelect";

//@wponion-append ../../node_modules/flatpickr/dist/plugins/minMaxTimePlugin.js
//@wponion-append ../../node_modules/flatpickr/dist/plugins/rangePlugin.js
//@wponion-append ../../node_modules/flatpickr/dist/plugins/scrollPlugin.js
//@wponion-append ../../node_modules/flatpickr/dist/plugins/confirmDate/confirmDate.js
//@wponion-append ../../node_modules/flatpickr/dist/plugins/monthSelect/index.js
//@wponion-append ../../node_modules/flatpickr/dist/plugins/labelPlugin/labelPlugin.js
//@wponion-append ../../node_modules/flatpickr/dist/plugins/weekSelect/weekSelect.js
( ( window ) => {
window.flatpickr = flatpickr;
window.scrollPlugin = scrollPlugin;
window.rangePlugin = rangePlugin;
window.minMaxTimePlugin = minMaxTimePlugin;
window.confirmDate = confirmDate;
window.monthSelect = monthSelect;
window.labelPlugin = labelPlugin;
window.weekSelect = weekSelect;
} )( window );
2 changes: 1 addition & 1 deletion vendors/flatpickr/script.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendors/flatpickr/style.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions vendors/pickr/pickr.es5.min.js

Large diffs are not rendered by default.

0 comments on commit d81d707

Please sign in to comment.