diff --git a/.gitignore b/.gitignore index f953e07..b86feb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ /docs/ /node_modules/ /vendor/ +/src/OnDemandSuiteWP/Assets/less/dist/ +/src/OnDemandSuiteWP/Assets/js/dist/ .brackets.json composer.lock diff --git a/README.md b/README.md index b7d394a..7e08787 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # HP IDOL OnDemand Suite For WP -[![Build Status](https://travis-ci.org/mtserve/IDOL-OnDemand-Suite-WP.svg)](https://travis-ci.org/mtserve/IDOL-OnDemand-Suite-WP) +[![Build Status](https://travis-ci.org/mtserve/IDOL-OnDemand-Suite-WP.svg)](https://travis-ci.org/mtserve/IDOL-OnDemand-Suite-WP) [![Latest Stable Version](https://poser.pugx.org/mtserve/hp-idol-on-demand-suite-for-wp/v/stable.svg)](https://packagist.org/packages/mtserve/hp-idol-on-demand-suite-for-wp) [![License](https://poser.pugx.org/mtserve/hp-idol-on-demand-suite-for-wp/license.svg)](https://packagist.org/packages/mtserve/hp-idol-on-demand-suite-for-wp) [![Total Downloads](https://poser.pugx.org/mtserve/hp-idol-on-demand-suite-for-wp/downloads.svg)](https://packagist.org/packages/mtserve/hp-idol-on-demand-suite-for-wp) **WP plugin** bundling a collection of tools which ease the workflow when working with the **HP IDOL OnDemand API**. diff --git a/bower.json b/bower.json index b51059f..2b463f3 100644 --- a/bower.json +++ b/bower.json @@ -5,6 +5,7 @@ "Kiril Kartunov " ], "description": "HP IDOL OnDemand Suite For WP is a plugin for working with the IDOL OnDemand API", + "homepage": "https://github.com/mtserve/IDOL-OnDemand-Suite-WP", "keywords": [ "HP", "IDOL", diff --git a/composer.json b/composer.json index b256295..47dd012 100644 --- a/composer.json +++ b/composer.json @@ -1,15 +1,19 @@ { - "name": "kiril/hp_idol_on_demand_suite_for_wp", + "name": "mtserve/hp-idol-on-demand-suite-for-wp", "description": "HP IDOL OnDemand Suite For WP is a plugin for working with the IDOL OnDemand API", "version": "0.1.0", + "type": "wordpress-plugin", "license": "GPLv2", + "homepage": "https://github.com/mtserve/IDOL-OnDemand-Suite-WP", "authors": [ { "name": "Kiril Kartunov", "email": "kiri4a@gmail.com" } ], - "require": {}, + "require": { + "php": ">=5.3.0" + }, "require-dev": { "sami/sami": "2.0.*@dev", "phpspec/phpspec": "~2.0" @@ -18,5 +22,9 @@ "psr-0": { "OnDemandSuiteWP": ["src/"] } + }, + "keywords": ["wordpress", "API", "HP IDOL OnDemand"], + "support": { + "issues": "https://github.com/mtserve/IDOL-OnDemand-Suite-WP/issues" } } diff --git a/dist/HP_IDOL_OnDemand_Suite_For_WP.zip b/dist/HP_IDOL_OnDemand_Suite_For_WP.zip index 8a29a15..de3f7ba 100755 Binary files a/dist/HP_IDOL_OnDemand_Suite_For_WP.zip and b/dist/HP_IDOL_OnDemand_Suite_For_WP.zip differ diff --git a/package.json b/package.json index 4f4c589..5274ab4 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "HP_IDOL_OnDemand_Suite_For_WP", "version": "0.1.0", "description": "HP IDOL OnDemand Suite For WP is a plugin for working with the IDOL OnDemand API", + "homepage": "https://github.com/mtserve/IDOL-OnDemand-Suite-WP", "author": "Kiril Kartunov", "license": "GPLv2", "devDependencies": { diff --git a/src/OnDemandSuiteWP/Assets/js/dist/ContentEditWidget.js b/src/OnDemandSuiteWP/Assets/js/dist/ContentEditWidget.js deleted file mode 100644 index 55dcb06..0000000 --- a/src/OnDemandSuiteWP/Assets/js/dist/ContentEditWidget.js +++ /dev/null @@ -1 +0,0 @@ -!function(angular,_){angular.element(document).ready(function(){var app_container=document.getElementById("ContentEditWidget_GUI");0==ODSWP_ContentEditWidget.error?angular.bootstrap(app_container,["ODSWP_ContentEditWidget"]):angular.element(document.getElementById("ODSWP_Root")).addClass("ODSWP_Error").html(ODSWP_ContentEditWidget.error_txt)});var app=angular.module("ODSWP_ContentEditWidget",["ngModal","ngAnimate","angularFileUpload"]);app.config(function(ngModalDefaultsProvider){ngModalDefaultsProvider.set("closeButtonHtml",'')}),app.directive("tabs",function(){return{restrict:"E",transclude:!0,scope:{publishTo:"=",name:"@"},controller:function($scope){var panes=$scope.panes=[];$scope.select=function(pane){angular.forEach(panes,function(pane){pane.selected=!1}),pane.selected=!0,$scope.publishTo&&angular.isObject($scope.publishTo)&&$scope.name&&($scope.publishTo.tabs=$scope.publishTo.tabs||{},$scope.publishTo.tabs[$scope.name]=$scope.publishTo.tabs[$scope.name]||{},$scope.publishTo.tabs[$scope.name].selected=pane.title)},$scope.$watch("publishTo",function(newVal,oldVal){newVal&&angular.isObject(newVal)&&!oldVal&&$scope.name&&(newVal.tabs={},newVal.tabs[$scope.name]={},$scope.select($scope.panes[0]))}),this.addPane=function(pane){0==panes.length&&$scope.select(pane),panes.push(pane)}},template:'
',replace:!0}}).directive("pane",function(){return{require:"^tabs",restrict:"E",transclude:!0,scope:{title:"@"},link:function(scope,element,attrs,tabsCtrl){tabsCtrl.addPane(scope)},template:'
',replace:!0}}),app.controller("ODSWP_Root",["$scope","$http","$upload",function($scope,$http){window.OCRDoc=$scope,$scope.modal={set:function(p,v){this[p]=v}},$scope.modal_pop=angular.bind($scope.modal,function(name,e){e&&(e.stopPropagation(),e.preventDefault()),this.currentTpl=name,this.show=!0,this.preventClose=!1,this.resetOnClose=!0}),$scope.OCRDoc={},$scope.OCR_image=angular.bind($scope.OCRDoc,function(){if(!this.ctask){switch(this.tabs.src.selected){case"Reference":if(!this[this.tabs.src.selected])return alert("Please, provide some HP IDOL OnDemand reference..."),void 0;break;case"Url":if(!/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/.test(this[this.tabs.src.selected]))return alert("Invalid URL!"),void 0}this.res=null,this.error=null;var _this=this;this.ctask=$scope.ctask="OCR Image is executing...",$http.post("admin-ajax.php",{task:"OCRImage",src:this.tabs.src.selected,value:this[this.tabs.src.selected],mode:this.mode},{params:{action:"ODSWP_ContentEditWidget",nonce:ODSWP_ContentEditWidget.nonce}}).then(function(data){_this.ctask=$scope.ctask=null,_this.res=data.data,$scope.modal_pop("ok.ocrimage.html"),_this.useIt=_this.useIt||function(how){var result=_.chain(_this.res.text_block).pluck("text").join().value();switch(how){case"append":tinyMCE.activeEditor.dom.add(tinyMCE.activeEditor.getBody(),"p",null,result);break;case"prepend":tinyMCE.activeEditor.setContent(result+tinyMCE.activeEditor.getContent());break;case"replace":tinyMCE.activeEditor.setContent(result)}$scope.modal.set("show",!1)}},function(error){_this.ctask=$scope.ctask=null,_this.error=error.data.errorTxt,$scope.modal_pop("ok.ocrimage.html")})}}),$scope.Sntm={},$scope.SntmGo=angular.bind($scope.Sntm,function(){if(!this.ctask){switch(this.tabs.src.selected){case"Text":if(this.fromEditor&&!tinyMCE.activeEditor.getContent())return alert("Please, type something into the editor to analize..."),void 0;if(!this.fromEditor&&!this[this.tabs.src.selected])return alert("Please, provide some text to analize..."),void 0;break;case"Reference":if(!this[this.tabs.src.selected])return alert("Please, provide some HP IDOL OnDemand reference..."),void 0;break;case"Url":if(!/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/.test(this[this.tabs.src.selected]))return alert("Invalid URL!"),void 0}this.res=null,this.error=null;var _this=this;this.ctask=$scope.ctask="Sentiment is executing...",$http.post("admin-ajax.php",{task:"SntmText",src:this.tabs.src.selected,value:"Text"==this.tabs.src.selected&&this.fromEditor?tinyMCE.activeEditor.getContent():this[this.tabs.src.selected],language:this.language},{params:{action:"ODSWP_ContentEditWidget",nonce:ODSWP_ContentEditWidget.nonce}}).then(function(data){_this.ctask=$scope.ctask=null,_this.res=data.data,$scope.modal_pop("ok.sentiment.html")},function(error){_this.ctask=$scope.ctask=null,_this.error=error.data.errorTxt,$scope.modal_pop("ok.sentiment.html")})}}),$scope.HghLig={start_tag:''},$scope.HghLigGo=angular.bind($scope.HghLig,function(){if(!this.ctask){switch(this.tabs.src.selected){case"Text":if(this.fromEditor&&!tinyMCE.activeEditor.getContent())return alert("Please, type something into the editor to get it highlighted..."),void 0;if(!this.fromEditor&&!this[this.tabs.src.selected])return alert("Please, provide some text to highlight..."),void 0;break;case"Reference":if(!this[this.tabs.src.selected])return alert("Please, provide some HP IDOL OnDemand reference..."),void 0;break;case"Url":if(!/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/.test(this[this.tabs.src.selected]))return alert("Invalid URL!"),void 0}if(!this.highlight_expression)return alert("Please, provide some expression to use for highlight..."),void 0;this.res=null,this.error=null;var _this=this;this.ctask=$scope.ctask="Highlight is executing...",$http.post("admin-ajax.php",{task:"HghLigText",src:this.tabs.src.selected,value:"Text"==this.tabs.src.selected&&this.fromEditor?tinyMCE.activeEditor.getContent():this[this.tabs.src.selected],highlight_expression:this.highlight_expression,start_tag:this.start_tag},{params:{action:"ODSWP_ContentEditWidget",nonce:ODSWP_ContentEditWidget.nonce}}).then(function(data){_this.ctask=$scope.ctask=null,_this.res=data.data.text,$scope.modal_pop("ok.highlight.html"),_this.useIt=_this.useIt||function(how){var result=_this.res;switch(how){case"append":tinyMCE.activeEditor.dom.add(tinyMCE.activeEditor.getBody(),"p",null,result);break;case"prepend":tinyMCE.activeEditor.setContent(result+tinyMCE.activeEditor.getContent());break;case"replace":tinyMCE.activeEditor.setContent(result)}$scope.modal.set("show",!1)}},function(error){_this.ctask=$scope.ctask=null,_this.error=error.data.errorTxt,$scope.modal_pop("ok.highlight.html")})}})}])}(angular,_); diff --git a/src/OnDemandSuiteWP/Assets/js/dist/DashboardWidget.js b/src/OnDemandSuiteWP/Assets/js/dist/DashboardWidget.js deleted file mode 100644 index 92e54ad..0000000 --- a/src/OnDemandSuiteWP/Assets/js/dist/DashboardWidget.js +++ /dev/null @@ -1 +0,0 @@ -!function(angular,_){angular.element(document).ready(function(){var app_container=document.getElementById("ODSWP_DashboardWidget");0==ODSWP_DashboardWidget.error?angular.bootstrap(app_container,["ODSWP_DashboardWidget"]):angular.element(document.getElementById("ODSWP_Root")).addClass("ODSWP_Error").html(ODSWP_DashboardWidget.error_txt)});var app=angular.module("ODSWP_DashboardWidget",["ngModal","ngAnimate"]);app.config(function(ngModalDefaultsProvider){ngModalDefaultsProvider.set("closeButtonHtml",'')}),app.controller("ODSWP_Root",["$scope","$http",function($scope,$http){$scope.remote_indexes=angular.copy(ODSWP_DashboardWidget.data),$scope.$on("uindex_created",function(e,data){$scope.remote_indexes.index.push(data)}),$scope.$on("uindex_deleted",function(e,data){_.remove($scope.remote_indexes.index,{index:data.index})}),$scope.toDate=function(str){return new Date(str)},$scope.modal={set:function(p,v){this[p]=v}},$scope.modal_pop=angular.bind($scope.modal,function(name,e){e&&(e.stopPropagation(),e.preventDefault()),this.currentTpl=name,this.show=!0,this.preventClose=!1,this.resetOnClose=!0}),$scope.uindex_task=function(task,click_data){if(!$scope.ctask)switch(task){case"status":$scope.ctask="Getting status of `"+click_data.uindex+"` index...",$http.post("admin-ajax.php",{task:task,uindex:click_data.uindex},{params:{action:"ODSWP_DashboardWidget",nonce:ODSWP_DashboardWidget.nonce}}).then(function(data){$scope.ctask=null,$scope.modal.data=data.data,$scope.modal.data.uindex=click_data.uindex,$scope.modal_pop("uindex.status.html")},function(error){$scope.ctask=null,$scope.modal.data=error.data,$scope.modal.data.title="`"+click_data.uindex+"` get status error",$scope.modal_pop("dashboard.widget.error.html")});break;case"add_doc":alert("Comming soon...");break;case"drop_doc":alert("Comming soon...");break;case"uindex_drop":$scope.ctask="Marking index `"+click_data.uindex+"` for delete...",$http.post("admin-ajax.php",{task:task,uindex:click_data.uindex},{params:{action:"ODSWP_DashboardWidget",nonce:ODSWP_DashboardWidget.nonce}}).then(function(data){$scope.ctask=null,$scope.modal.data=data.data,$scope.modal.data.uindex=click_data.uindex,$scope.modal_pop("uindex.delete.html"),console.log(data)},function(error){$scope.ctask=null,$scope.modal.data=error.data,$scope.modal.data.title="`"+click_data.uindex+"` delete error",$scope.modal_pop("dashboard.widget.error.html")})}},$scope.uindex_delete=function(){$scope.modal.set("preventClose",!0),$scope.modal.data.dropping=!0,$http.post("admin-ajax.php",{task:"uindex_drop_confirm",confirm:$scope.modal.data.confirm,uindex:$scope.modal.data.uindex},{params:{action:"ODSWP_DashboardWidget",nonce:ODSWP_DashboardWidget.nonce}}).then(function(data){console.log(data),$scope.modal.data.deleted="Success.",$scope.modal.set("preventClose",!1),$scope.$emit("uindex_deleted",{index:$scope.modal.data.uindex})},function(error){$scope.modal.data.errored=error.data.errorTxt,$scope.modal.set("preventClose",!1)})}}]),app.controller("uindex_create_form",["$scope","$http",function($scope,$http){$scope.checkForMatch=function(){$scope.uindex_match=-1!=_.findIndex(ODSWP_DashboardWidget.data.index,{index:$scope.index})?!0:!1},$scope.uindex_create=function(){$scope.uindex_match||$scope.working||($scope.working=!0,$scope.$parent.modal.set("preventClose",!0),$http.post("admin-ajax.php",{task:"uindex_create",uindex:$scope.index,flavor:$scope.flavor,desc:$scope.desc},{params:{action:"ODSWP_DashboardWidget",nonce:ODSWP_DashboardWidget.nonce}}).then(function(data){$scope.working=!1,$scope.$parent.modal.set("preventClose",!1),$scope.created="`"+data.data.index+"` created successfully.",$scope.$emit("uindex_created",{index:$scope.index,flavor:$scope.flavor,desc:$scope.desc,date_created:_.now(),type:"unknown"})},function(error){$scope.working=!1,$scope.$parent.modal.set("preventClose",!1),$scope.errored=error.data.errorTxt}))}}])}(angular,_); diff --git a/src/OnDemandSuiteWP/Assets/less/dist/ContentEditWidget.css b/src/OnDemandSuiteWP/Assets/less/dist/ContentEditWidget.css deleted file mode 100644 index e66e28b..0000000 --- a/src/OnDemandSuiteWP/Assets/less/dist/ContentEditWidget.css +++ /dev/null @@ -1 +0,0 @@ -#ContentEditWidget_GUI .ODSWP_Error{color:rgba(239,32,32,.74)}#ContentEditWidget_GUI .ODSWP_tabbable{margin-top:1em}#ContentEditWidget_GUI .ODSWP_tabbable .tabs{margin:0 0 -1px;position:relative;z-index:1}#ContentEditWidget_GUI .ODSWP_tabbable .tabs li{display:inline-block;padding:.5em;margin:0}#ContentEditWidget_GUI .ODSWP_tabbable .tabs li a{text-decoration:none}#ContentEditWidget_GUI .ODSWP_tabbable .tabs .tab_active{background-color:#fff;border:1px solid #f0f0f0;border-bottom:none}#ContentEditWidget_GUI .ODSWP_tabbable .tabs .tab_active a{font-weight:700}#ContentEditWidget_GUI .ODSWP_tabbable .tab-content{background-color:#fff;border:1px solid #f0f0f0;padding:.5em;position:relative;z-index:0}#ContentEditWidget_GUI .ODSWP_tabbable .tab-content .tab-pane{display:none}#ContentEditWidget_GUI .ODSWP_tabbable .tab-content .tab-pane.pane_active{display:block}#ContentEditWidget_GUI .ODSWP_collapsible input,#ContentEditWidget_GUI .ODSWP_collapsible select,#ContentEditWidget_GUI .ODSWP_collapsible textarea{width:100%}#ContentEditWidget_GUI .ODSWP_collapsible input[type=checkbox]{width:auto}#ContentEditWidget_GUI .ODSWP_collapsible_title{cursor:pointer;margin:0 0 .5em;border-bottom:1px solid #f0f0f0}#ContentEditWidget_GUI .ODSWP_modal_nav li{display:inline-block}#ContentEditWidget_GUI .ODSWP_num-label{font-size:2em;font-weight:700}#ContentEditWidget_GUI .ODSWP_value_label_wrap{margin:0 1em;display:inline-block;text-align:center}#ContentEditWidget_GUI ::-webkit-scrollbar{width:7px;height:7px}#ContentEditWidget_GUI ::-webkit-scrollbar-track{background:#fff}#ContentEditWidget_GUI ::-webkit-scrollbar-thumb{background:#ccc}#ContentEditWidget_GUI .OCRImageRes textarea{width:100%}#ContentEditWidget_GUI .animate-shiny.ng-hide-add,#ContentEditWidget_GUI .animate-shiny.ng-hide-remove{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;display:block!important;opacity:1}#ContentEditWidget_GUI .animate-shiny.ng-hide{opacity:0}#ContentEditWidget_GUI .animate-repeat-filter.ng-enter,#ContentEditWidget_GUI .animate-repeat-filter.ng-leave,#ContentEditWidget_GUI .animate-repeat-filter.ng-move{-webkit-transition:.5s linear all;transition:.5s linear all;position:relative}#ContentEditWidget_GUI .animate-repeat-filter.ng-enter{left:-10px;opacity:0}#ContentEditWidget_GUI .animate-repeat-filter.ng-enter.ng-enter-active,#ContentEditWidget_GUI .animate-repeat-filter.ng-leave{left:0;opacity:1}#ContentEditWidget_GUI .animate-repeat-filter.ng-leave.ng-leave-active{left:-10px;opacity:0}#ContentEditWidget_GUI .animate-repeat-filter.ng-move{opacity:.5}#ContentEditWidget_GUI .animate-repeat-filter.ng-move.ng-move-active{opacity:1} diff --git a/src/OnDemandSuiteWP/Assets/less/dist/ContentEditWidgetListings.css b/src/OnDemandSuiteWP/Assets/less/dist/ContentEditWidgetListings.css deleted file mode 100644 index db2e3ef..0000000 --- a/src/OnDemandSuiteWP/Assets/less/dist/ContentEditWidgetListings.css +++ /dev/null @@ -1 +0,0 @@ -#ODSWP_sentiment{width:10px}.ODSWP_sentiment i{color:#be9999;cursor:help}.ODSWP_sentiment .positive{color:#d2e257}.ODSWP_sentiment .negative{color:#f6adfa}.ODSWP_sentiment .neutral{color:#e8e8e8} diff --git a/src/OnDemandSuiteWP/Assets/less/dist/DashboardWidget.css b/src/OnDemandSuiteWP/Assets/less/dist/DashboardWidget.css deleted file mode 100644 index f39ba7b..0000000 --- a/src/OnDemandSuiteWP/Assets/less/dist/DashboardWidget.css +++ /dev/null @@ -1 +0,0 @@ -#ODSWP_DashboardWidget .ODSWP_Error{color:rgba(239,32,32,.74)}#ODSWP_DashboardWidget .ODSWP_Notice{color:rgba(172,58,222,.78)}#ODSWP_DashboardWidget .ODSWP_desc{font-style:italic;font-size:.85em;opacity:.6;margin:0}#ODSWP_DashboardWidget .ODSWP_collapsible{max-height:200px;overflow:auto;overflow-x:hidden}#ODSWP_DashboardWidget .ODSWP_collapsible_title{cursor:pointer;margin:0 0 .5em;border-bottom:1px solid #f0f0f0}#ODSWP_DashboardWidget .ODSWP_search{text-align:center}#ODSWP_DashboardWidget .ODSWP_search input[type=search]{margin-top:.5em;width:90%}#ODSWP_DashboardWidget .ODSWP_button{cursor:pointer}#ODSWP_DashboardWidget .ODSWP_required{font-weight:700}#ODSWP_DashboardWidget .ODSWP_required_error{border:1px solid rgba(239,32,32,.74)}#ODSWP_DashboardWidget .ODSWP_sub-menu-wrap{display:inline-block}#ODSWP_DashboardWidget .ODSWP_sub-info-wrap span{margin-right:.5em;color:rgba(172,58,222,.78);font-size:.85em}#ODSWP_DashboardWidget .ODSWP_sub-info-wrap span i{margin-right:.2em}#ODSWP_DashboardWidget .ODSWP_num-label{font-size:2em;font-weight:700}#ODSWP_DashboardWidget .ODSWP_value_label_wrap{margin:0 1em;display:inline-block;text-align:center}#ODSWP_DashboardWidget .ODSWP_table{margin:1.5em}#ODSWP_DashboardWidget .ODSWP_table thead tr{background-color:rgba(0,0,0,.05)}#ODSWP_DashboardWidget .ODSWP_table thead th{text-align:left;padding:.5em}#ODSWP_DashboardWidget .ODSWP_table tbody tr:nth-child(even){background-color:rgba(0,0,0,.03)}#ODSWP_DashboardWidget .fa-ul li{padding:.3em}#ODSWP_DashboardWidget .fa-ul li:nth-child(even){background-color:rgba(0,0,0,.03)}#ODSWP_DashboardWidget ::-webkit-scrollbar{width:7px;height:7px}#ODSWP_DashboardWidget ::-webkit-scrollbar-track{background:#fff}#ODSWP_DashboardWidget ::-webkit-scrollbar-thumb{background:#ccc}#ODSWP_DashboardWidget .animate-shiny.ng-hide-add,#ODSWP_DashboardWidget .animate-shiny.ng-hide-remove{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;display:block!important;opacity:1}#ODSWP_DashboardWidget .animate-shiny.ng-hide{opacity:0}#ODSWP_DashboardWidget .animate-repeat-filter.ng-enter,#ODSWP_DashboardWidget .animate-repeat-filter.ng-leave,#ODSWP_DashboardWidget .animate-repeat-filter.ng-move{-webkit-transition:.5s linear all;transition:.5s linear all;position:relative}#ODSWP_DashboardWidget .animate-repeat-filter.ng-enter{left:-10px;opacity:0}#ODSWP_DashboardWidget .animate-repeat-filter.ng-enter.ng-enter-active,#ODSWP_DashboardWidget .animate-repeat-filter.ng-leave{left:0;opacity:1}#ODSWP_DashboardWidget .animate-repeat-filter.ng-leave.ng-leave-active{left:-10px;opacity:0}#ODSWP_DashboardWidget .animate-repeat-filter.ng-move{opacity:.5}#ODSWP_DashboardWidget .animate-repeat-filter.ng-move.ng-move-active{opacity:1} diff --git a/src/OnDemandSuiteWP/Services/ContentEditWidget.php b/src/OnDemandSuiteWP/Services/ContentEditWidget.php index fbedbbd..f6c3ee5 100644 --- a/src/OnDemandSuiteWP/Services/ContentEditWidget.php +++ b/src/OnDemandSuiteWP/Services/ContentEditWidget.php @@ -281,7 +281,7 @@ private function admin_init() // Load ngModal wp_register_script( 'ngModal', - plugin_dir_url(OnDemandSuiteWP_BASE_FILE).'vendor/ngModal/dist/ng-modal.js', + plugin_dir_url(OnDemandSuiteWP_BASE_FILE).'vendor/ngModal/dist/ng-modal.min.js', array('angular') ); wp_enqueue_script('ngModal'); diff --git a/src/OnDemandSuiteWP/Services/DashboardWidget.php b/src/OnDemandSuiteWP/Services/DashboardWidget.php index 602041b..d778c85 100644 --- a/src/OnDemandSuiteWP/Services/DashboardWidget.php +++ b/src/OnDemandSuiteWP/Services/DashboardWidget.php @@ -226,7 +226,7 @@ private function prepareAssets() // Load ngModal wp_register_script( 'ngModal', - plugin_dir_url(OnDemandSuiteWP_BASE_FILE).'vendor/ngModal/dist/ng-modal.js', + plugin_dir_url(OnDemandSuiteWP_BASE_FILE).'vendor/ngModal/dist/ng-modal.min.js', array('angular') ); wp_enqueue_script('ngModal');