diff --git a/control/settings/app.js b/control/settings/app.js
deleted file mode 100644
index 1259a64..0000000
--- a/control/settings/app.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-// Declare app level module which depends on views, and components
-var app = angular.module('socialPluginSettings', [
- 'ngRoute',
- 'ngTagsInput'
-]).config(['$locationProvider', '$routeProvider', 'tagsInputConfigProvider', function ($locationProvider, $routeProvider, tagsInputConfigProvider) {
- //config for tag-input plugin
- tagsInputConfigProvider.setActiveInterpolation('tagsInput', { minTags: true });
-
- $routeProvider.when('/', {
- templateUrl: 'views/mainSettings.html',
- controller: 'MainSettingsCtrl'
- }).otherwise({redirectTo: '/'});
-}]);
diff --git a/control/settings/assets/lib/input-tags/css/ng-tags-input.bootstrap.min.css b/control/settings/assets/lib/input-tags/css/ng-tags-input.bootstrap.min.css
deleted file mode 100644
index ad6210a..0000000
--- a/control/settings/assets/lib/input-tags/css/ng-tags-input.bootstrap.min.css
+++ /dev/null
@@ -1 +0,0 @@
-tags-input .autocomplete,tags-input .tags{border-radius:4px}tags-input{box-shadow:none;border:none;padding:0;min-height:34px}tags-input .host{margin:0}tags-input .tags{-moz-appearance:none;-webkit-appearance:none;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);-webkit-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;-moz-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s}tags-input .tags .tag-item{color:#fff;background:#09a3ee;border:1px solid #09a3ee;border-radius:4px}tags-input .tags .tag-item.selected{color:#fff;background:#d9534f;border:1px solid #d43f3a}tags-input .tags .tag-item .remove-button:hover{text-decoration:none}tags-input .tags.focused{border:1px solid #66afe9;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6)}tags-input .autocomplete .suggestion-item.selected,tags-input .autocomplete .suggestion-item.selected em{color:#262626;background-color:#f5f5f5}tags-input .autocomplete .suggestion-item em{color:#000;background-color:#fff}tags-input.ng-invalid .tags{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483}tags-input[disabled] .tags{background-color:#eee}tags-input[disabled] .tags .tag-item{background:#337ab7;opacity:.65}tags-input[disabled] .tags .input{background-color:#eee}.input-group tags-input{padding:0;display:table-cell}.input-group tags-input:not(:first-child) .tags{border-top-left-radius:0;border-bottom-left-radius:0}.input-group tags-input:not(:last-child) .tags{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-lg tags-input:first-child .tags{border-top-left-radius:6px;border-bottom-left-radius:6px}.input-group-lg tags-input:last-child .tags{border-top-right-radius:6px;border-bottom-right-radius:6px}.input-group-sm tags-input:first-child .tags{border-top-left-radius:3px;border-bottom-left-radius:3px}.input-group-sm tags-input:last-child .tags{border-top-right-radius:3px;border-bottom-right-radius:3px}.input-group-lg tags-input,tags-input.ti-input-lg{min-height:46px}.input-group-lg tags-input .tags,tags-input.ti-input-lg .tags{border-radius:6px}.input-group-lg tags-input .tags .tag-item,tags-input.ti-input-lg .tags .tag-item{height:38px;line-height:37px;font-size:18px;border-radius:6px}.input-group-lg tags-input .tags .tag-item .remove-button,tags-input.ti-input-lg .tags .tag-item .remove-button{font-size:20px}.input-group-lg tags-input .tags .input,tags-input.ti-input-lg .tags .input{height:38px;font-size:18px}.input-group-sm tags-input,tags-input.ti-input-sm{min-height:30px}.input-group-sm tags-input .tags,tags-input.ti-input-sm .tags{border-radius:3px}.input-group-sm tags-input .tags .tag-item,tags-input.ti-input-sm .tags .tag-item{height:22px;line-height:21px;font-size:12px;border-radius:3px}.input-group-sm tags-input .tags .tag-item .remove-button,tags-input.ti-input-sm .tags .tag-item .remove-button{font-size:16px}.input-group-sm tags-input .tags .input,tags-input.ti-input-sm .tags .input{height:22px;font-size:12px}.has-feedback tags-input .tags{padding-right:30px}.has-success tags-input .tags{border-color:#3c763d}.has-success tags-input .tags.focused{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168}.has-error tags-input .tags{border-color:#a94442}.has-error tags-input .tags.focused{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483}.has-warning tags-input .tags{border-color:#8a6d3b}.has-warning tags-input .tags.focused{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b}
\ No newline at end of file
diff --git a/control/settings/assets/lib/input-tags/css/ng-tags-input.min.css b/control/settings/assets/lib/input-tags/css/ng-tags-input.min.css
deleted file mode 100644
index 2c0abf6..0000000
--- a/control/settings/assets/lib/input-tags/css/ng-tags-input.min.css
+++ /dev/null
@@ -1 +0,0 @@
-tags-input{display:block}tags-input *,tags-input :after,tags-input :before{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}tags-input span{text-transform: lowercase;}tags-input .host{position:relative;margin-top:5px;margin-bottom:5px;height:100%}tags-input .host:active{outline:0}tags-input .tags{-moz-appearance:textfield;-webkit-appearance:textfield;padding:1px;overflow:hidden;word-wrap:break-word;cursor:text;background-color:#fff;border:1px solid #a9a9a9;box-shadow:1px 1px 1px 0 #d3d3d3 inset;height:100%}tags-input .tags.focused{outline:0;-webkit-box-shadow:0 0 3px 1px rgba(5,139,242,.6);-moz-box-shadow:0 0 3px 1px rgba(5,139,242,.6);box-shadow:0 0 3px 1px rgba(5,139,242,.6)}tags-input .tags .tag-list{margin:0;padding:0;list-style-type:none}tags-input .tags .tag-item{margin:2px;padding:0 5px;display:inline-block;float:left;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif;height:26px;line-height:25px;border:1px solid #acacac;border-radius:3px;background:-webkit-linear-gradient(top,#f0f9ff 0,#cbebff 47%,#a1dbff 100%);background:linear-gradient(to bottom,#f0f9ff 0,#cbebff 47%,#a1dbff 100%)}tags-input .tags .tag-item.selected{background:-webkit-linear-gradient(top,#febbbb 0,#fe9090 45%,#ff5c5c 100%);background:linear-gradient(to bottom,#febbbb 0,#fe9090 45%,#ff5c5c 100%)}tags-input .tags .tag-item .remove-button{margin:0 0 0 5px;padding:0;border:none;background:0 0;cursor:pointer;vertical-align:middle;font:700 16px Arial,sans-serif;color:#585858}tags-input .tags .input.invalid-tag,tags-input .tags .tag-item .remove-button:active{color:red}tags-input .tags .input{border:0;outline:0;margin:2px;padding:0 0 0 5px;float:left;height:26px;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif}tags-input .tags .input::-ms-clear{display:none}tags-input.ng-invalid .tags{-webkit-box-shadow:0 0 3px 1px rgba(255,0,0,.6);-moz-box-shadow:0 0 3px 1px rgba(255,0,0,.6);box-shadow:0 0 3px 1px rgba(255,0,0,.6)}tags-input[disabled] .host:focus{outline:0}tags-input[disabled] .tags{background-color:#eee;cursor:default}tags-input[disabled] .tags .tag-item{opacity:.65;background:-webkit-linear-gradient(top,#f0f9ff 0,rgba(203,235,255,.75)47%,rgba(161,219,255,.62)100%);background:linear-gradient(to bottom,#f0f9ff 0,rgba(203,235,255,.75)47%,rgba(161,219,255,.62)100%)}tags-input[disabled] .tags .tag-item .remove-button{cursor:default}tags-input[disabled] .tags .tag-item .remove-button:active{color:#585858}tags-input[disabled] .tags .input{background-color:#eee;cursor:default}tags-input .autocomplete{margin-top:5px;position:absolute;padding:5px 0;z-index:999;width:100%;background-color:#fff;border:1px solid rgba(0,0,0,.2);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}tags-input .autocomplete .suggestion-list{margin:0;padding:0;list-style-type:none;max-height:280px;overflow-y:auto;position:relative}tags-input .autocomplete .suggestion-item{padding:5px 10px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:16px "Helvetica Neue",Helvetica,Arial,sans-serif;color:#000;background-color:#fff}tags-input .autocomplete .suggestion-item.selected,tags-input .autocomplete .suggestion-item.selected em{color:#fff;background-color:#0097cf}tags-input .autocomplete .suggestion-item em{font:normal bold 16px "Helvetica Neue",Helvetica,Arial,sans-serif;color:#000;background-color:#fff}tags-input.ng-invalid .tags,tags-input .tags{border:1px solid #ddd;box-shadow:none}tags-input .tags.focused{box-shadow:none;border:1px solid #66afe9}tags-input .tags .tag-item{font-family:"Muli", Helvetica, Arial;font-size:13px;line-height:23px;font-weight:100;background:#09a3ee;border:1px solid #09a3ee}tags-input .tags .tag-item .remove-button{color:#fff;font-size:18px;position:relative;font-weight:500;top:-1px}tags-input .tags .tag-item .remove-button:active{color:#fff}tags-input .tags .input{font-family:"Muli", Helvetica, Arial;padding:0 0 0 8px;font-size:13px;font-weight:100}tags-input .autocomplete{padding:0;overflow:hidden;box-shadow:none;border:1px solid #ddd;font-family:"Muli", Helvetica, Arial}tags-input .autocomplete .suggestion-item{font-family:"Muli", Helvetica, Arial;font-size:14px;font-weight:100;color:#5f5f5f;padding:6px 10px}tags-input .autocomplete .suggestion-item.selected,tags-input .autocomplete .suggestion-item.selected em{background:#09a3ee}tags-input .autocomplete .suggestion-item em{font-size:14px;font-weight:700;color:#5f5f5f;font-family:"Muli", Helvetica, Arial}tags-input .tags .input.invalid-tag{color:#ed4b4b}
\ No newline at end of file
diff --git a/control/settings/assets/lib/input-tags/js/ng-tags-input.min.js b/control/settings/assets/lib/input-tags/js/ng-tags-input.min.js
deleted file mode 100644
index e898722..0000000
--- a/control/settings/assets/lib/input-tags/js/ng-tags-input.min.js
+++ /dev/null
@@ -1 +0,0 @@
-/*! ngTagsInput v3.1.1 License: MIT */!function(){"use strict";var a={backspace:8,tab:9,enter:13,escape:27,space:32,up:38,down:40,left:37,right:39,"delete":46,comma:188},b=9007199254740991,c=["text","email","url"],d=angular.module("ngTagsInput",[]);d.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(d,e,f,g,h,i){function j(a,b,c,d){var e,f,h,j,k={};return e=function(b){return i.safeToString(b[a.displayProperty])},f=function(b,c){b[a.displayProperty]=c},h=function(b){var d=e(b),f=d&&d.length>=a.minLength&&d.length<=a.maxLength&&a.allowedTagsPattern.test(d)&&!i.findInObjectArray(k.items,b,a.keyProperty||a.displayProperty);return g.when(f&&c({$tag:b})).then(i.promisifyValue)},j=function(a){return g.when(d({$tag:a})).then(i.promisifyValue)},k.items=[],k.addText=function(a){var b={};return f(b,a),k.add(b)},k.add=function(c){var d=e(c);return a.replaceSpacesWithDashes&&(d=i.replaceSpacesWithDashes(d)),f(c,d),h(c).then(function(){k.items.push(c),b.trigger("tag-added",{$tag:c})})["catch"](function(){d&&b.trigger("invalid-tag",{$tag:c})})},k.remove=function(a){var c=k.items[a];return j(c).then(function(){return k.items.splice(a,1),k.clearSelection(),b.trigger("tag-removed",{$tag:c}),c})},k.select=function(a){0>a?a=k.items.length-1:a>=k.items.length&&(a=0),k.index=a,k.selected=k.items[a]},k.selectPrior=function(){k.select(--k.index)},k.selectNext=function(){k.select(++k.index)},k.removeSelected=function(){return k.remove(k.index)},k.clearSelection=function(){k.selected=null,k.index=-1},k.clearSelection(),k}function k(a){return-1!==c.indexOf(a)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(a,c,d){a.events=i.simplePubSub(),h.load("tagsInput",a,c,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",k],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,b],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,b],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0]}),a.tagList=new j(a.options,a.events,i.handleUndefinedResult(a.onTagAdding,!0),i.handleUndefinedResult(a.onTagRemoving,!0)),this.registerAutocomplete=function(){d.find("input");return{addTag:function(b){return a.tagList.add(b)},getTags:function(){return a.tagList.items},getCurrentTagText:function(){return a.newTag.text()},getOptions:function(){return a.options},getTemplateScope:function(){return a.templateScope},on:function(b,c){return a.events.on(b,c,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return a.options},removeTag:function(b){a.disabled||a.tagList.remove(b)}}}}],link:function(b,c,g,h){var j,k,l=[a.enter,a.comma,a.space,a.backspace,a["delete"],a.left,a.right],m=b.tagList,n=b.events,o=b.options,p=c.find("input"),q=["minTags","maxTags","allowLeftoverText"];j=function(){h.$setValidity("maxTags",m.items.length<=o.maxTags),h.$setValidity("minTags",m.items.length>=o.minTags),h.$setValidity("leftoverText",b.hasFocus||o.allowLeftoverText?!0:!b.newTag.text())},k=function(){d(function(){p[0].focus()})},h.$isEmpty=function(a){return!a||!a.length},b.newTag={text:function(a){return angular.isDefined(a)?(b.text=a,void n.trigger("input-change",a)):b.text||""},invalid:null},b.track=function(a){return a[o.keyProperty||o.displayProperty]},b.getTagClass=function(a,c){var d=a===m.selected;return[b.tagClass({$tag:a,$index:c,$selected:d}),{selected:d}]},b.$watch("tags",function(a){a?(m.items=i.makeObjectArray(a,o.displayProperty),b.tags=m.items):m.items=[]}),b.$watch("tags.length",function(){j(),h.$validate()}),g.$observe("disabled",function(a){b.disabled=a}),b.eventHandlers={input:{keydown:function(a){n.trigger("input-keydown",a)},focus:function(){b.hasFocus||(b.hasFocus=!0,n.trigger("input-focus"))},blur:function(){d(function(){var a=e.prop("activeElement"),d=a===p[0],f=c[0].contains(a);!d&&f||(b.hasFocus=!1,n.trigger("input-blur"))})},paste:function(a){a.getTextData=function(){var b=a.clipboardData||a.originalEvent&&a.originalEvent.clipboardData;return b?b.getData("text/plain"):f.clipboardData.getData("Text")},n.trigger("input-paste",a)}},host:{click:function(){b.disabled||k()}},tag:{click:function(a){n.trigger("tag-clicked",{$tag:a})}}},n.on("tag-added",b.onTagAdded).on("invalid-tag",b.onInvalidTag).on("tag-removed",b.onTagRemoved).on("tag-clicked",b.onTagClicked).on("tag-added",function(){b.newTag.text("")}).on("tag-added tag-removed",function(){b.tags=m.items,h.$setDirty(),k()}).on("invalid-tag",function(){b.newTag.invalid=!0}).on("option-change",function(a){-1!==q.indexOf(a.name)&&j()}).on("input-change",function(){m.clearSelection(),b.newTag.invalid=null}).on("input-focus",function(){c.triggerHandler("focus"),h.$setValidity("leftoverText",!0)}).on("input-blur",function(){o.addOnBlur&&!o.addFromAutocompleteOnly&&m.addText(b.newTag.text()),c.triggerHandler("blur"),j()}).on("input-keydown",function(c){var d,e,f,g,h=c.keyCode,j={};i.isModifierOn(c)||-1===l.indexOf(h)||(j[a.enter]=o.addOnEnter,j[a.comma]=o.addOnComma,j[a.space]=o.addOnSpace,d=!o.addFromAutocompleteOnly&&j[h],e=(h===a.backspace||h===a["delete"])&&m.selected,g=h===a.backspace&&0===b.newTag.text().length&&o.enableEditingLastTag,f=(h===a.backspace||h===a.left||h===a.right)&&0===b.newTag.text().length&&!o.enableEditingLastTag,d?m.addText(b.newTag.text()):g?(m.selectPrior(),m.removeSelected().then(function(a){a&&b.newTag.text(a[o.displayProperty])})):e?m.removeSelected():f&&(h===a.left||h===a.backspace?m.selectPrior():h===a.right&&m.selectNext()),(d||f||e||g)&&c.preventDefault())}).on("input-paste",function(a){if(o.addOnPaste){var b=a.getTextData(),c=b.split(o.pasteSplitPattern);c.length>1&&(c.forEach(function(a){m.addText(a)}),a.preventDefault())}})}}}]),d.directive("tiTagItem",["tiUtil",function(a){return{restrict:"E",require:"^tagsInput",template:'',scope:{$scope:"=scope",data:"="},link:function(b,c,d,e){var f=e.registerTagItem(),g=f.getOptions();b.$$template=g.template,b.$$removeTagSymbol=g.removeTagSymbol,b.$getDisplayText=function(){return a.safeToString(b.data[g.displayProperty])},b.$removeTag=function(){f.removeTag(b.$index)},b.$watch("$parent.$index",function(a){b.$index=a})}}}]),d.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(b,c,d,e,f,g){function h(a,b,c){var d,f,h,i={};return h=function(){return b.tagsInput.keyProperty||b.tagsInput.displayProperty},d=function(a,c){return a.filter(function(a){return!g.findInObjectArray(c,a,h(),function(a,c){return b.tagsInput.replaceSpacesWithDashes&&(a=g.replaceSpacesWithDashes(a),c=g.replaceSpacesWithDashes(c)),g.defaultComparer(a,c)})})},i.reset=function(){f=null,i.items=[],i.visible=!1,i.index=-1,i.selected=null,i.query=null},i.show=function(){b.selectFirstMatch?i.select(0):i.selected=null,i.visible=!0},i.load=g.debounce(function(c,j){i.query=c;var k=e.when(a({$query:c}));f=k,k.then(function(a){k===f&&(a=g.makeObjectArray(a.data||a,h()),a=d(a,j),i.items=a.slice(0,b.maxResultsToShow),i.items.length>0?i.show():i.reset())})},b.debounceDelay),i.selectNext=function(){i.select(++i.index)},i.selectPrior=function(){i.select(--i.index)},i.select=function(a){0>a?a=i.items.length-1:a>=i.items.length&&(a=0),i.index=a,i.selected=i.items[a],c.trigger("suggestion-selected",a)},i.reset(),i}function i(a,b){var c=a.find("li").eq(b),d=c.parent(),e=c.prop("offsetTop"),f=c.prop("offsetHeight"),g=d.prop("clientHeight"),h=d.prop("scrollTop");h>e?d.prop("scrollTop",e):e+f>g+h&&d.prop("scrollTop",e+f-g)}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(a,b,c){a.events=g.simplePubSub(),f.load("autoComplete",a,c,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),a.suggestionList=new h(a.source,a.options,a.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return a.options},getQuery:function(){return a.suggestionList.query}}}}],link:function(b,c,d,e){var f,h=[a.enter,a.tab,a.escape,a.up,a.down],j=b.suggestionList,k=e.registerAutocomplete(),l=b.options,m=b.events;l.tagsInput=k.getOptions(),f=function(a){return a&&a.length>=l.minLength||!a&&l.loadOnEmpty},b.templateScope=k.getTemplateScope(),b.addSuggestionByIndex=function(a){j.select(a),b.addSuggestion()},b.addSuggestion=function(){var a=!1;return j.selected&&(k.addTag(angular.copy(j.selected)),j.reset(),a=!0),a},b.track=function(a){return a[l.tagsInput.keyProperty||l.tagsInput.displayProperty]},b.getSuggestionClass=function(a,c){var d=a===j.selected;return[b.matchClass({$match:a,$index:c,$selected:d}),{selected:d}]},k.on("tag-added tag-removed invalid-tag input-blur",function(){j.reset()}).on("input-change",function(a){f(a)?j.load(a,k.getTags()):j.reset()}).on("input-focus",function(){var a=k.getCurrentTagText();l.loadOnFocus&&f(a)&&j.load(a,k.getTags())}).on("input-keydown",function(c){var d=c.keyCode,e=!1;if(!g.isModifierOn(c)&&-1!==h.indexOf(d))return j.visible?d===a.down?(j.selectNext(),e=!0):d===a.up?(j.selectPrior(),e=!0):d===a.escape?(j.reset(),e=!0):d!==a.enter&&d!==a.tab||(e=b.addSuggestion()):d===a.down&&b.options.loadOnDownArrow&&(j.load(k.getCurrentTagText(),k.getTags()),e=!0),e?(c.preventDefault(),c.stopImmediatePropagation(),!1):void 0}),m.on("suggestion-selected",function(a){i(c,a)})}}}]),d.directive("tiAutocompleteMatch",["$sce","tiUtil",function(a,b){return{restrict:"E",require:"^autoComplete",template:'',scope:{$scope:"=scope",data:"="},link:function(c,d,e,f){var g=f.registerAutocompleteMatch(),h=g.getOptions();c.$$template=h.template,c.$index=c.$parent.$index,c.$highlight=function(c){return h.highlightMatchedText&&(c=b.safeHighlight(c,g.getQuery())),a.trustAsHtml(c)},c.$getDisplayText=function(){return b.safeToString(c.data[h.displayProperty||h.tagsInput.displayProperty])}}}}]),d.directive("tiTranscludeAppend",function(){return function(a,b,c,d,e){e(function(a){b.append(a)})}}),d.directive("tiAutosize",["tagsInputConfig",function(a){return{restrict:"A",require:"ngModel",link:function(b,c,d,e){var f,g,h=a.getTextAutosizeThreshold();f=angular.element(''),f.css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),c.parent().append(f),g=function(a){var b,e=a;return angular.isString(e)&&0===e.length&&(e=d.placeholder),e&&(f.text(e),f.css("display",""),b=f.prop("offsetWidth"),f.css("display","none")),c.css("width",b?b+h+"px":""),a},e.$parsers.unshift(g),e.$formatters.unshift(g),d.$observe("placeholder",function(a){e.$modelValue||g(a)})}}}]),d.directive("tiBindAttrs",function(){return function(a,b,c){a.$watch(c.tiBindAttrs,function(a){angular.forEach(a,function(a,b){c.$set(b,a)})},!0)}}),d.provider("tagsInputConfig",function(){var a={},b={},c=3;this.setDefaults=function(b,c){return a[b]=c,this},this.setActiveInterpolation=function(a,c){return b[a]=c,this},this.setTextAutosizeThreshold=function(a){return c=a,this},this.$get=["$interpolate",function(d){var e={};return e[String]=function(a){return a},e[Number]=function(a){return parseInt(a,10)},e[Boolean]=function(a){return"true"===a.toLowerCase()},e[RegExp]=function(a){return new RegExp(a)},{load:function(c,f,g,h){var i=function(){return!0};f.options={},angular.forEach(h,function(h,j){var k,l,m,n,o,p;k=h[0],l=h[1],m=h[2]||i,n=e[k],o=function(){var b=a[c]&&a[c][j];return angular.isDefined(b)?b:l},p=function(a){f.options[j]=a&&m(a)?n(a):o()},b[c]&&b[c][j]?g.$observe(j,function(a){p(a),f.events.trigger("option-change",{name:j,newValue:a})}):p(g[j]&&d(g[j])(f.$parent))})},getTextAutosizeThreshold:function(){return c}}}]}),d.factory("tiUtil",["$timeout","$q",function(a,b){var c={};return c.debounce=function(b,c){var d;return function(){var e=arguments;a.cancel(d),d=a(function(){b.apply(null,e)},c)}},c.makeObjectArray=function(a,b){if(!angular.isArray(a)||0===a.length||angular.isObject(a[0]))return a;var c=[];return a.forEach(function(a){var d={};d[b]=a,c.push(d)}),c},c.findInObjectArray=function(a,b,d,e){var f=null;return e=e||c.defaultComparer,a.some(function(a){return e(a[d],b[d])?(f=a,!0):void 0}),f},c.defaultComparer=function(a,b){return c.safeToString(a).toLowerCase()===c.safeToString(b).toLowerCase()},c.safeHighlight=function(a,b){function d(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}if(!b)return a;a=c.encodeHTML(a),b=c.encodeHTML(b);var e=new RegExp("&[^;]+;|"+d(b),"gi");return a.replace(e,function(a){return a.toLowerCase()===b.toLowerCase()?""+a+"":a})},c.safeToString=function(a){return angular.isUndefined(a)||null==a?"":a.toString().trim()},c.encodeHTML=function(a){return c.safeToString(a).replace(/&/g,"&").replace(//g,">")},c.handleUndefinedResult=function(a,b){return function(){var c=a.apply(null,arguments);return angular.isUndefined(c)?b:c}},c.replaceSpacesWithDashes=function(a){return c.safeToString(a).replace(/\s/g,"-")},c.isModifierOn=function(a){return a.shiftKey||a.ctrlKey||a.altKey||a.metaKey},c.promisifyValue=function(a){return a=angular.isUndefined(a)?!0:a,b[a?"when":"reject"]()},c.simplePubSub=function(){var a={};return{on:function(b,c,d){return b.split(" ").forEach(function(b){a[b]||(a[b]=[]);var e=d?[].unshift:[].push;e.call(a[b],c)}),this},trigger:function(b,d){var e=a[b]||[];return e.every(function(a){return c.handleUndefinedResult(a,!0)(d)}),this}}},c}]),d.run(["$templateCache",function(a){a.put("ngTagsInput/tags-input.html",'
'),a.put("ngTagsInput/tag-item.html",' '),a.put("ngTagsInput/auto-complete.html",''),a.put("ngTagsInput/auto-complete-match.html",'')}])}();
\ No newline at end of file
diff --git a/control/settings/controllers/mainSettingsCtrl.js b/control/settings/controllers/mainSettingsCtrl.js
deleted file mode 100644
index e02e679..0000000
--- a/control/settings/controllers/mainSettingsCtrl.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * Created by ahmadfhamed on 2/5/2017.
- */
-app.controller('MainSettingsCtrl', function ($scope) {
- var _pluginData = {
- data: {}
- };
-
- //init tags = [] to avoid on-tag-added bug https://github.com/mbenford/ngTagsInput/issues/622
- $scope.data = {
- mainThreadUserTags: [],
- sideThreadUserTags: []
- };
-
- $scope.init = function () {
- buildfire.spinner.show();
- buildfire.datastore.get('Social', function (err, result) {
- if (err) {
- console.error('App settings -- ', err);
- } else {
- if (result && result.data) {
- _pluginData = result;
- if (result.data.appSettings) {
- if (!result.data.appSettings.mainThreadUserTags) {
- result.data.appSettings.mainThreadUserTags = [];
- }
- if (!result.data.appSettings.sideThreadUserTags) {
- result.data.appSettings.sideThreadUserTags = [];
- }
- $scope.data = result.data.appSettings;
- }
- }
- }
- buildfire.spinner.hide();
- $scope.$digest();
- });
- };
-
- $scope.save = function () {
- buildfire.spinner.show();
- _pluginData.data.appSettings = $scope.data;
- buildfire.datastore.save(_pluginData.data, 'Social', function (err, data) {
- if (err) {
- console.error('App settings -- ', err);
- } else {
- console.log('Data saved using datastore-------------', data);
- }
- buildfire.spinner.hide();
- $scope.$digest();
- });
- };
- $scope.init();
-});
\ No newline at end of file
diff --git a/control/settings/index.html b/control/settings/index.html
index e605b45..8a77677 100644
--- a/control/settings/index.html
+++ b/control/settings/index.html
@@ -1,30 +1,23 @@
-
+
-
-
-
+ -->
-
-
-
-
-
-
-
+
+
+
+
+ -->
-
-
+
+Settings - Hello world!
\ No newline at end of file
diff --git a/control/settings/views/mainSettings.html b/control/settings/views/mainSettings.html
deleted file mode 100644
index 956afd3..0000000
--- a/control/settings/views/mainSettings.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
\ No newline at end of file
diff --git a/plugin.json b/plugin.json
index c0129f9..86c42e1 100644
--- a/plugin.json
+++ b/plugin.json
@@ -13,7 +13,7 @@
"enabled": false
},
"settings": {
- "enabled": true
+ "enabled": false
}
},
"widget": {
diff --git a/test/control/settings/app.specs.js b/test/control/settings/app.specs.js
deleted file mode 100644
index a5c3726..0000000
--- a/test/control/settings/app.specs.js
+++ /dev/null
@@ -1,27 +0,0 @@
-describe('socialPluginSettings: App', function () {
- beforeEach(module('socialPluginSettings'));
- var location, route, rootScope;
-
- beforeEach(inject(
- function (_$location_, _$route_, _$rootScope_) {
- location = _$location_;
- route = _$route_;
- rootScope = _$rootScope_;
- }));
- describe('main settings route', function () {
- beforeEach(inject(
- function ($httpBackend) {
- $httpBackend.expectGET('views/mainSettings.html')
- .respond(200);
- $httpBackend.expectGET('/')
- .respond(200);
- }));
-
- it('should load the main settings page as default page on successful load of /', function () {
- location.path('/');
- rootScope.$digest();
- expect(route.current.controller).toBe('MainSettingsCtrl');
- });
-
- });
-});
diff --git a/test/control/settings/controller/settings.mainSettings.controller.specs.js b/test/control/settings/controller/settings.mainSettings.controller.specs.js
deleted file mode 100644
index 1f713f5..0000000
--- a/test/control/settings/controller/settings.mainSettings.controller.specs.js
+++ /dev/null
@@ -1,41 +0,0 @@
-"use strict";
-describe('Unit : Controller - MainSettingsCtrl', function () {
-
-// load the controller's module
- var $scope, $controller;
-
- beforeEach(module('socialPluginSettings'));
- beforeEach(inject(function (_$controller_) {
- $controller = _$controller_;
- }));
-
- beforeEach(inject(function ($rootScope) {
- //new a $scope
- $scope = $rootScope.$new();
- $controller = $controller('MainSettingsCtrl', {$scope: $scope});
- }));
-
- it('it should pass if MainSettingsCtrl is defined', function () {
- expect($controller).not.toBeNull();
- });
-
- it('it should pass if $scope.data is defined', function () {
- expect($scope.data).not.toBeUndefined();
- });
-
- it('it should pass if $scope.data.mainThreadUserTags is defined', function () {
- expect(typeof $scope.data.mainThreadUserTags).toBe('object');
- });
-
- it('it should pass if $scope.data.sideThreadUserTags is defined', function () {
- expect(typeof $scope.data.sideThreadUserTags).toBe('object');
- });
-
- it('it should pass if $scope.init is function', function () {
- expect(typeof $scope.init).toBe('function');
- });
-
- it('it should pass if $scope.save is function', function () {
- expect(typeof $scope.save).toBe('function');
- });
-});
\ No newline at end of file
diff --git a/widget/controllers/widget.thread.controller.js b/widget/controllers/widget.thread.controller.js
index 8e92b8a..7eb33db 100644
--- a/widget/controllers/widget.thread.controller.js
+++ b/widget/controllers/widget.thread.controller.js
@@ -13,7 +13,6 @@
Thread.buildfire = Buildfire;
Thread.SocialItems = SocialItems.getInstance();
Thread.SocialItems.comments = [];
- Thread.createThreadPermission = false;
Thread.imageSelected = false;
Thread.imageName = '';
Thread.post = {};
@@ -25,41 +24,6 @@
return (typeof _receivePushNotification !== 'undefined') ? (_receivePushNotification ? THREAD_STATUS.FOLLOWING : THREAD_STATUS.FOLLOW) : '';
};
- Thread.showHideCommentBox = function () {
- if (Thread.SocialItems &&
- Thread.SocialItems.appSettings &&
- Thread.SocialItems.appSettings.allowSideThreadTags &&
- Thread.SocialItems.appSettings.sideThreadUserTags &&
- Thread.SocialItems.appSettings.sideThreadUserTags.length > 0
- ) {
- var _userTagsObj = Thread.userDetails.userTags;
- var _userTags = [];
- if (_userTagsObj) {
- _userTags = _userTagsObj[Object.keys(_userTagsObj)[0]];
- }
-
- if (_userTags) {
- var _hasPermission = false;
- for (var i = 0; i < Thread.SocialItems.appSettings.sideThreadUserTags.length; i++) {
- var _sideThreadTag = Thread.SocialItems.appSettings.sideThreadUserTags[i].text;
- for (var x = 0; x < _userTags.length; x++) {
- if (_sideThreadTag.toLowerCase() == _userTags[x].tagName.toLowerCase()) {
- _hasPermission = true;
- break;
- }
- }
- }
- Thread.createThreadPermission = _hasPermission;
- } else {
- Thread.createThreadPermission = false;
- }
- } else {
- Thread.createThreadPermission = true;
- }
-
- $scope.$digest();
- };
-
var getUserData = function (userId) {
if(userId){
if (userIds.indexOf(userId.toString()) == -1) {
@@ -172,7 +136,6 @@
console.error('Side Thread Get Social settings', err);
} else {
Thread.SocialItems.appSettings = SocialData && SocialData.data && SocialData.data.appSettings;
- Thread.showHideCommentBox();
deferred.resolve();
SocialDataStore.getUserSettings({
threadId: Thread.post._id,
@@ -811,8 +774,6 @@
Thread.userDetails.userToken = user.userToken;
Thread.userDetails.userId = user._id;
getUserData(user._id);
- //check user if has permission to create thread
- Thread.showHideCommentBox();
$scope.$digest();
}
});
diff --git a/widget/controllers/widget.wall.controller.js b/widget/controllers/widget.wall.controller.js
index 5f5159f..82c00a3 100644
--- a/widget/controllers/widget.wall.controller.js
+++ b/widget/controllers/widget.wall.controller.js
@@ -23,43 +23,10 @@
WidgetWall.showImageLoader = true;
WidgetWall.modalPopupThreadId;
$rootScope.showThread = true;
- WidgetWall.createThreadPermission = false;
WidgetWall.util = util;
WidgetWall.SocialItems = SocialItems.getInstance();
var masterItems = WidgetWall.SocialItems && WidgetWall.SocialItems.items && WidgetWall.SocialItems.items.slice(0, WidgetWall.SocialItems.items.length);
console.log('SocialItems------------------Wall Controller-------------------- this---------------333333333333----', WidgetWall.SocialItems);
- WidgetWall.showHideCommentBox = function () {
- if (WidgetWall.SocialItems &&
- WidgetWall.SocialItems.appSettings &&
- WidgetWall.SocialItems.appSettings.allowMainThreadTags &&
- WidgetWall.SocialItems.appSettings.mainThreadUserTags &&
- WidgetWall.SocialItems.appSettings.mainThreadUserTags.length > 0
- ) {
- var _userTagsObj = WidgetWall.SocialItems.userDetails.userTags;
- var _userTags = [];
- if (_userTagsObj) {
- _userTags = _userTagsObj[Object.keys(_userTagsObj)[0]];
- }
-
- if (_userTags) {
- var _hasPermission = false;
- for (var i = 0; i < WidgetWall.SocialItems.appSettings.mainThreadUserTags.length; i++) {
- var _mainThreadTag = WidgetWall.SocialItems.appSettings.mainThreadUserTags[i].text;
- for (var x = 0; x < _userTags.length; x++) {
- if (_mainThreadTag.toLowerCase() == _userTags[x].tagName.toLowerCase()) {
- _hasPermission = true;
- break;
- }
- }
- }
- WidgetWall.createThreadPermission = _hasPermission;
- } else {
- WidgetWall.createThreadPermission = false;
- }
- } else {
- WidgetWall.createThreadPermission = true;
- }
- };
var getUserData = function (userId) {
if (userIds.indexOf(userId.toString()) == -1) {
@@ -92,8 +59,6 @@
//check if user logged in
if (WidgetWall.SocialItems.userDetails.userId != null) {
getUserData(WidgetWall.SocialItems.userDetails.userId);
- //check user if has permission to create thread
- WidgetWall.showHideCommentBox();
}
}
});
@@ -761,8 +726,6 @@
WidgetWall.SocialItems.userDetails.userToken = user.userToken;
WidgetWall.SocialItems.userDetails.userId = user._id;
getUserData(user._id);
- //check user if has permission to create thread
- WidgetWall.showHideCommentBox();
$scope.$digest();
}
});
diff --git a/widget/index.html b/widget/index.html
index a7c3249..20ef67b 100644
--- a/widget/index.html
+++ b/widget/index.html
@@ -45,8 +45,7 @@
You do not have any posts yet.