From 6922fea076fda097e27f4e3249d0cc4f39cda1d5 Mon Sep 17 00:00:00 2001 From: yubaolee Date: Tue, 7 Feb 2017 12:29:11 +0800 Subject: [PATCH] routine update --- .../Content/scripts/utils/clientdata.js | 36 - OpenAuth.Mvc/Content/scripts/utils/ui.js | 18 +- OpenAuth.Mvc/Content/scripts/utils/webApp.js | 1656 ----------------- .../Content/scripts/utils/webAppData.js | 1340 ------------- OpenAuth.Mvc/Content/styles/webApp.css | 608 ------ OpenAuth.Mvc/OpenAuth.Mvc.csproj | 4 - 6 files changed, 1 insertion(+), 3661 deletions(-) delete mode 100644 OpenAuth.Mvc/Content/scripts/utils/clientdata.js delete mode 100644 OpenAuth.Mvc/Content/scripts/utils/webApp.js delete mode 100644 OpenAuth.Mvc/Content/scripts/utils/webAppData.js delete mode 100644 OpenAuth.Mvc/Content/styles/webApp.css diff --git a/OpenAuth.Mvc/Content/scripts/utils/clientdata.js b/OpenAuth.Mvc/Content/scripts/utils/clientdata.js deleted file mode 100644 index bdd4c8bd..00000000 --- a/OpenAuth.Mvc/Content/scripts/utils/clientdata.js +++ /dev/null @@ -1,36 +0,0 @@ -$(function () { - $.getclientdata(); -}) -var clientdataItem = []; -var clientorganizeData = []; -var clientdepartmentData = []; -var clientpostData = []; -var clientroleData = []; -var clientuserGroup = []; -var clientuserData = []; -var authorizeMenuData = []; -var authorizeButtonData = []; -var authorizeColumnData = []; -$.getclientdata = function () { - $.ajax({ - url: contentPath + "/ClientData/GetClientDataJson", - type: "post", - dataType: "json", - async: false, - success: function (data) { - clientdataItem = data.dataItem; - clientorganizeData = data.organize; - clientdepartmentData = data.department; - clientpostData = data.post; - clientroleData = data.role; - clientuserGroup = data.userGroup; - clientuserData = data.user; - authorizeMenuData = data.authorizeMenu; - authorizeButtonData = data.authorizeButton; - authorizeColumnData = data.authorizeColumn; - }, - error: function (XMLHttpRequest, textStatus, errorThrown) { - dialogMsg(errorThrown, -1); - } - }); -} \ No newline at end of file diff --git a/OpenAuth.Mvc/Content/scripts/utils/ui.js b/OpenAuth.Mvc/Content/scripts/utils/ui.js index d0849351..30622feb 100644 --- a/OpenAuth.Mvc/Content/scripts/utils/ui.js +++ b/OpenAuth.Mvc/Content/scripts/utils/ui.js @@ -801,23 +801,7 @@ dialogMsg = function (content, type) { } layer.msg(content, { icon: type, time: 4000, shift: 5 }); } -dialogClose = function () { - try { - var index = layer.getFrameIndex(window.name); //先得到当前iframe层的索引 - var $IsdialogClose = $("#layui-layer" + index).find('.layui-layer-btn').find("#IsdialogClose"); - var IsClose = $IsdialogClose.is(":checked"); - if ($IsdialogClose.length == 0) { - IsClose = true; - } - if (IsClose) { - layer.close(index); - } else { - location.reload(); - } - } catch (e) { - alert(e) - } -} + reload = function () { location.reload(); return false; diff --git a/OpenAuth.Mvc/Content/scripts/utils/webApp.js b/OpenAuth.Mvc/Content/scripts/utils/webApp.js deleted file mode 100644 index 045e428e..00000000 --- a/OpenAuth.Mvc/Content/scripts/utils/webApp.js +++ /dev/null @@ -1,1656 +0,0 @@ -var app = angular.module('webAppDesign', []) -.run(['$rootScope', '$lrfnRequest', '$lrmDesigner', function ($rootScope, $lrfnRequest, $lrmDesigner) { - $rootScope.windowWidth = $lrfnRequest("windowWidth"); - - $rootScope.windowHeight = $lrfnRequest("windowHeight") - 41; - var _projectId = $lrfnRequest("projectId"); - $rootScope.designer = $lrmDesigner.init(_projectId); -}]) -.controller('lrAppCtrl', ['$rootScope', '$scope', '$lrGetIframe', function ($rootScope, $scope, $lrGetIframe) { - $scope.pageTemplates = $rootScope.designer.templates.getPageTemps(); - $scope.addPage = $rootScope.designer.addPage; - $scope.btnSaveProject = $rootScope.designer.saveProject; - //$scope.isTabsAdded = true; - - - //加载完成开始初始化 - $rootScope.$on('iframeLoaded', function (event) { - $rootScope.designer.vm.isBeginView = true; - $lrGetIframe('phoneDIndex').doBroadcast('init', $rootScope.designer.currentPage); - $scope.$apply(); - }); -}]) -//用来设置窗口大小 -.controller('lrAppMidbarCtrl', ['$scope', '$rootScope', function ($scope, $rootScope) { - var phoneHeight = 765.284, phoneWidth = 387.578; - var iframeH = 568, iframeW = 320, iframeMT = 84.9764; - - $scope.phoneScale = '1'; - $scope.phoneHeight = phoneHeight + 'px'; - $scope.phoneWidth = +phoneWidth + 'px'; - - $scope.phoneIframeH = iframeH + 'px'; - $scope.phoneIframeW = iframeW + 'px'; - $scope.phoneIframeMT = iframeMT + 'px'; - - $scope.marginTop = (($rootScope.windowHeight - phoneHeight - 82) / 2 > 0 ? ($rootScope.windowHeight - phoneHeight - 82) / 2 : 0) + "px"; - $scope.changePhoneScale = function () { - var _height = parseFloat($scope.phoneScale) * phoneHeight; - $scope.phoneHeight = _height + 'px'; - $scope.phoneWidth = parseFloat($scope.phoneScale) * phoneWidth + 'px'; - $scope.marginTop = (($rootScope.windowHeight - _height - 82) / 2 > 0 ? ($rootScope.windowHeight - _height - 82) / 2 : 0) + "px"; - - $scope.phoneIframeH = parseFloat($scope.phoneScale) * iframeH + 'px'; - $scope.phoneIframeW = parseFloat($scope.phoneScale) * iframeW + 'px'; - $scope.phoneIframeMT = parseFloat($scope.phoneScale) * iframeMT + 'px'; - }; -}]) -/*扩展标签属性*/ -.directive("lrappComponents", ["$rootScope", "$lrmComponents", function ($rootScope, $lrmComponents) { - return { - restrict: "E", - replace: true, - template: '
{{component.text}}
', - link: function (scope, element, attr) { - $rootScope.componentGroups = $lrmComponents.all(); - } - } -}]) -.directive("lrappPagetree", ["$rootScope", function ($rootScope) { - return { - restrict: "E", - require: '?ngModel', - replace: true, - template: '
', - link: function (scope, element, attr, ngModel) { - if (!ngModel) - { - return; - } - ngModel.$render = function () { - ngModel.$viewValue(element); - } - } - } -}]) -.directive('lrappBox', function () { - return { - restrict: 'E', - replace: true, - transclude: true, - template: - '
' + - '

' + - '
' + - '
', - link: function (scope, element, attr) { - var toggle = element.find('.lr-box-toggle'); - element.find('h4').html('' + attr.name); - toggle.on('click', function () { - if (element.is('.expanded')) { - element.removeClass('expanded'); - } - else { - element.addClass('expanded'); - } - }); - } - }; -}) -.directive("lrappToggleb", ["$rootScope", function (e) { - return { - restrict: "E", - require: '?ngModel', - template: '
', - link: function (scope, element, attr, ngModel) { - ngModel.$render = function () { - if (ngModel.$viewValue) { - element.addClass("active"); - } - }; - element.on("click", function () { - scope.$apply(cgValue); - }); - - function cgValue() { - element.addClass("animate"); - var flag = element.is(".active"); - if (flag) { - element.removeClass("active"); - } - else { - element.addClass("active"); - } - ngModel.$setViewValue(!flag); - } - } - } -}]) -.directive('lrappColorPicker', function () { - return { - restrict: "E", - replace: true, - template: '
' + - '' + - '' + - '
', - link: function (scope, element, attr) { - - if (attr.value) { - attr.color = attr.value; - element.find('i').css('background-color', attr.value); - element.find('input').val(attr.value); - } - element.colorpicker(); - - } - } -}) -/*数据模型*/ -.factory('$lrmComponents', ['$rootScope', function ($rootScope) {//组件类型 - var _doRemove = function (data) { - var components = $rootScope.designer.currentPage.ChildNodes; - - components.splice(components.indexOf(data), 1); - $rootScope.designer.templates.fnPageTree.refresh(); - $rootScope.designer.currentPage = $rootScope.designer.templates.getHasTemps()[0]; - $rootScope.designer.currentFocus = $rootScope.designer.templates.getHasTemps()[0]; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgSelectTemplatePage, { "cmd": "removeComponent", object: $rootScope.designer.templates.getHasTemps()[0] }); - $.webappDesigner.attributes($rootScope.designer); - } - - var components = [ - { - id: "lrHeader", - text: "标题", - icon: "fa-header", - setValue: function (name, value, data) { - switch (name) { - case "text": - if (data.text != value) { - data.text = value; - data.attr.text = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": 'text', "object": data }); - $rootScope.designer.templates.fnPageTree.refreshNode(data.id, data.text); - } - break; - case "size": - if (data.attr.size != value) { - data.attr.size = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": 'size', "object": data }); - } - break; - case "weightSize": - if (data.attr.weight.size != value) { - data.attr.weight.size = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": 'weightSize', "object": data }); - } - case "italic": - if (data.attr.weight.isItalic != value) { - data.attr.weight.isItalic = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": 'isItalic', "object": data }); - } - break; - case "color": - if (data.attr.color != value) { - data.attr.color = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": 'color', "object": data }); - } - break; - case "align": - if (data.attr.align != value) { - data.attr.align = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": 'align', "object": data }); - } - break; - } - }, - }, - { - id: "lrParagraph", - text: "段落", - icon: "fa fa-align-left", - setValue: function (name, value, data) { - if (data.attr[name] != value) { - data.attr[name] = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": name, "object": data }); - } - } - }, - //{ id: "lrBtnBar", text: "按钮组", icon: "fa fa-th-large" }, - { - id: "lrBtn", - text: "按钮", - icon: "fa fa-square", - setValue: function (name, value, data) { - switch (name) { - case "link": - if (data.attr.link != value) - { - data.attr.link = value; - } - break; - case "text": - if (data.attr.text != value) { - data.attr.text = value; - data.text = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": 'text', "object": data }); - $rootScope.designer.templates.fnPageTree.refreshNode(data.id, data.text); - } - break; - case "weightSize": - case "italic": - if (data.attr.weight[name] != value) { - data.attr.weight[name] = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": name, "object": data }); - } - break; - case "size": - case "color": - case "align": - case "btnType": - case "btnTheme": - case "btnSize": - if (data.attr[name] != value) { - data.attr[name] = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": name, "object": data }); - } - break; - } - }, - }, - { - id: "lrInput", - text: "文本框", - icon: "fa fa-italic", - setValue: function (name, value, data) { - if (data.attr[name] != value) { - data.attr[name] = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": name, "object": data }); - } - } - }, - { - id: "lrList3", - text: "列表类型一", - icon: "fa fa-th-list", - setValue: function (name, value, data) { - if (data.attr[name] != value) { - data.attr[name] = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": name, "object": data }); - } - } - }, - { - id: "lrList4", - text: "列表类型二", - icon: "fa fa-list-ul", - setValue: function (name, value, data) { - if (data.attr[name] != value) { - data.attr[name] = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "componentAttr", "attrName": name, "object": data }); - } - } - } - //{ id: "lrTextarea", text: "文本区", icon: "fa fa-align-justify" } - ]; - return { - all: function () { - return components; - }, - getOne:function(id){ - for(var i in components) - { - if (components[i].id == id) - { - return components[i]; - } - } - }, - doRemove: _doRemove - }; -}]) -.factory('$lrmTemplates', ['$rootScope', '$lrfnGuid', '$lrdialogTop', function ($rootScope, $lrfnGuid, $lrdialogTop) {//模板类型(树形菜单) - /*设置空白页的属性的方法*/ - var setBlankPageValue = function (name, value, data) { - switch (name) { - case "text": - if (data.text != value) { - data.text = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "pageText", "value": value }); - refreshTreeNode(data.id, data.text); - } - break; - case "routing": - if (data.attr.routing != value) - { - data.attr.routing = value; - } - break; - case "bgColor": - if (data.attr.bgColor != value) - { - data.attr.bgColor = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "pageBgColor", "value": value }); - } - break; - case "isTabed": - if (data.attr.isTabed != value) { - data.attr.isTabed = value; - } - break; - case "isPadding": - if (data.attr.isPadding != value) { - data.attr.isPadding = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "pageIsPadding", "value": value }); - } - break; - case "isHeadHide": - if (data.attr.isHeadHide != value) { - data.attr.isHeadHide = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "pageIsHeadHide", "value": value }); - } - break; - } - }; - - var pageTemplates = [{//页面模板 - value: "lrPageBlank", - text: "页面", - png: "../../Content/webApp/img/template-blank.png", - img: "fa fa-file-o", - hasChildren: false, - isexpand: false, - parentnodes: "0", - attr: { - value: 'lrPageBlank', - type: 'page', - routing: '/', - bgColor: '#ffffff', - isTabed: 'true', - isPadding: 'true', - isHeadHide: 'false', - isFirst:false - }, - setValue: setBlankPageValue, - doButton: function (data) { - if (hasTemplates.length > 1) { - hasTemplates.splice(hasTemplates.indexOf(data), 1); - refreshTree(); - $rootScope.designer.currentPage = hasTemplates[0]; - $rootScope.designer.currentFocus = hasTemplates[0]; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgSelectTemplatePage, { "cmd": "removePage", object: hasTemplates[0] }); - $.webappDesigner.attributes($rootScope.designer); - } - else { - $lrdialogTop('必须保留一个页面', 'error'); - } - }, - type:"page" - }]; - var hasTemplates = []; - - /*刷新模板树*/ - function refreshTree(id) { - var _id = ""; - if ($rootScope.pageTree != undefined) { - $rootScope.pageTree.treeview({ - data: hasTemplates, - isTool: true, - nodeTools: [{ text: '删除', img: 'fa fa-trash-o' }, - { text: '复制', img: 'fa fa-clone' }, - { - text: '标记默认页', - img: 'fa fa-thumb-tack', - node:"page", - callback: function (id) { - for (var i in hasTemplates) - { - hasTemplates[i].attr.isFirst = false; - if (hasTemplates[i].id == id) - { - hasTemplates[i].attr.isFirst = true; - $rootScope.pageTree.refreshNodeIcon(id, "fa fa-yahoo", ".fa-yahoo"); - } - } - } - }], - onnodeclick: function (item) { - treeNotChecked(); - var _currentPage = $rootScope.designer.currentPage; - var _currentFocus = $rootScope.designer.currentFocus; - if (_currentFocus.id != item.id) { - $rootScope.designer.currentFocus = item; - if (item.parentnodes == "0")//说明是页面 - { - $rootScope.designer.currentPage = item; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgSelectTemplatePage, { "cmd": "selectPage", "object": item }); - } - else { - if (item.parentnodes != _currentPage.id) { - for (var i in hasTemplates) { - var _page = hasTemplates[i]; - if (_page.id == item.parentnodes) { - $rootScope.designer.currentPage = _page; - break; - } - } - } - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgSelectTemplatePage, { "cmd": "selectComponent", "object": item, "currentPage": $rootScope.designer.currentPage }); - } - $.webappDesigner.attributes($rootScope.designer); - } - } - }); - if (id == undefined) { - _id = hasTemplates[0].id - } - else { - _id = id; - } - $rootScope.pageTree.setNodeChecked(_id); - treeNotChecked(); - - for (var i in hasTemplates) { - if (hasTemplates[i].attr.isFirst == true) { - $rootScope.pageTree.refreshNodeIcon(hasTemplates[i].id, "fa fa-yahoo", ".fa-yahoo"); - break; - } - } - } - } - function refreshTreeNode(nodeId,text) - { - $rootScope.pageTree.refreshNode(nodeId, text); - } - - - /*设置tabs的属性的方法*/ - var setTabsValue = function (name, value, data) { - switch (name) { - case "bgColor": - if (data.attr.bgColor != value) { - data.attr.bgColor = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "tabsBgColor", "value": value }); - } - break; - case "iconColor": - if (data.attr.iconColor != value) { - data.attr.iconColor = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "tabsIconColor", "value": value }); - } - case "iconType": - if (data.attr.iconType != value) { - data.attr.iconType = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "tabsIconType", "value": value }); - } - break; - } - }; - /*设置tab属性*/ - var setTabValue = function (name, value, data) { - switch (name) - { - case "text": - if (data.attr.text != value) - { - data.attr.text = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "tabText", "value": value }); - $rootScope.tabsTree.refreshNode(data.id, value); - } - break; - case "iconOn": - if (data.attr.iconOn != value) { - data.attr.iconOn = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "tabIconOn", "value": value }); - } - break; - case "iconOff": - if (data.attr.iconOff != value) { - data.attr.iconOff = value; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgAttr, { "cmd": "tabIconOff", "value": value }); - } - break; - case "innerTabPage": - if (data.attr.lrInnerTabPage != value) { - data.attr.lrInnerTabPage = value; - } - break; - - } - } - /*删除tab*/ - var removeTab = function (data) - { - if (hasTabsTemplates[0].ChildNodes.length > 1) { - hasTabsTemplates[0].ChildNodes.splice(hasTabsTemplates[0].ChildNodes.indexOf(data), 1); - refreshTabsTree(); - focusTabsNode(hasTabsTemplates[0].ChildNodes[0].id); - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.doTabTemplate, { "cmd": "removeTab", id: hasTabsTemplates[0].ChildNodes[0].id }); - } - else { - $lrdialogTop('Tab不能全部删除', 'error'); - } - } - /*tabs树*/ - var tabTemplate = { - text: "Tab页", - img: "fa fa-cube", - hasChildren: false, - isexpand: false, - parentnodes: "lrTabs", - attr: { - value: "lrTab", - iconOn: "ion-ios-home", - iconOff: "ion-ios-home-outline", - innerTabPage: "DefaultPage", - }, - setValue: setTabValue, - doButton: removeTab - }; - - var hasTabsTemplates = [ - { - id:"lrTabs",//页面模板 - value: "lrTabs", - text: "Tabs控制器", - img: "fa fa-sitemap", - hasChildren: true, - isexpand: true, - parentnodes: "0", - attr: { - type: 'tabs', - value: 'lrTabs', - bgColor: 'stable', - iconColor: "dark", - iconType:"top" - }, - setValue: setTabsValue, - doButton: function () { - var _dst = angular.copy(tabTemplate); - _dst.id = $lrfnGuid(); - hasTabsTemplates[0].ChildNodes.push(_dst); - refreshTabsTree(); - focusTabsNode(_dst.id); - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.doTabTemplate, { "cmd": "addTab", id: _dst.id }); - } - }]; - function refreshTabsTree() - { - if ($rootScope.tabsTree != undefined) { - $rootScope.tabsTree.treeview({ - data: hasTabsTemplates, - onnodeclick: function (item) { - pTreeNotChecked(); - var _currentPage = $rootScope.designer.currentPage; - var _currentFocus = $rootScope.designer.currentFocus; - if (_currentFocus.id != item.id) - { - if (_currentPage.id != "lrTabs") { - $rootScope.designer.currentPage = hasTabsTemplates[0]; - } - - $rootScope.designer.currentFocus = item; - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.cgSelectTemplatePage, { "cmd": "lrTabs", "data": hasTabsTemplates[0].ChildNodes, "focus": item }); - $.webappDesigner.attributes($rootScope.designer); - } - } - }); - } - } - function focusTabsNode(id) - { - for (var i in hasTabsTemplates[0].ChildNodes) { - var item = hasTabsTemplates[0].ChildNodes[i]; - if (item.id == id) { - $rootScope.designer.currentFocus = item; - $.webappDesigner.attributes($rootScope.designer); - break; - } - } - pTreeNotChecked(); - $rootScope.tabsTree.setNodeChecked(id); - } - - /*取消选中*/ - function pTreeNotChecked() { - if ($rootScope.pageTree != undefined) { - $rootScope.pageTree.setNodeChecked(""); - } - } - function treeNotChecked() - { - if ($rootScope.tabsTree != undefined) - { - $rootScope.tabsTree.setNodeChecked(""); - } - } - - return { - init: function (data) { - hasTemplates = data; - }, - getPageTemps: function () { - return pageTemplates; - }, - getHasTemps: function () { - return hasTemplates; - }, - getHasTabsTemps: function () { - return hasTabsTemplates; - }, - getComponent: function (id, pageId) { - for (var i in hasTemplates) { - var item = hasTemplates[i]; - if (item.hasChildren && pageId == item.id) { - for (var j in item.ChildNodes) { - var _childone = item.ChildNodes[j]; - if (_childone.id == id) { - return _childone; - } - } - } - } - return null; - }, - addPage: function (data) { - var _id = ""; var _dst = {}; - if (data == undefined) { - _dst = angular.copy(pageTemplates[0]); - _dst.id = $lrfnGuid(); - _id = _dst.id; - hasTemplates.push(_dst); - } - else { - _dst = data; - _id = data.id; - hasTemplates.push(data); - } - refreshTree(_id); - return _dst; - }, - addComponent: function (obj) { - for (var i in hasTemplates) { - var item = hasTemplates[i]; - if (item.id == obj.parentnodes) { - hasTemplates[i].hasChildren = true; - hasTemplates[i].isexpand = true; - if (hasTemplates[i].ChildNodes == undefined) { - hasTemplates[i].ChildNodes = []; - } - hasTemplates[i].ChildNodes.push(obj); - } - } - }, - initTabs: function (data) { - var _data = [ - { - id: "lrtab0001", - text: "首页", - img: "fa fa-cube", - hasChildren: false, - isexpand: false, - parentnodes: "lrTabs", - attr: { - value: "lrTab", - iconOn: "ion-ios-home", - iconOff: "ion-ios-home-outline", - innerTabPage: "DefaultPage", - }, - setValue: setTabValue, - doButton: removeTab - }, - { - id: "lrtab0002", - text: "实例", - img: "fa fa-cube", - hasChildren: false, - isexpand: false, - parentnodes: "lrTabs", - attr: { - value: "lrTab", - iconOn: "ion-ios-book", - iconOff: "ion-ios-book-outline", - innerTabPage: "DefaultPage", - }, - setValue: setTabValue, - doButton: removeTab - }, - { - id: "lrtab0003", - text: "通知", - img: "fa fa-cube", - hasChildren: false, - isexpand: false, - parentnodes: "lrTabs", - attr: { - value: "lrTab", - iconOn: "ion-ios-bell", - iconOff: "ion-ios-bell-outline", - innerTabPage: "DefaultPage", - }, - setValue: setTabValue, - doButton: removeTab - }, - { - id: "lrtab0004", - text: "我的", - img: "fa fa-cube", - hasChildren: false, - isexpand: false, - parentnodes: "lrTabs", - attr: { - value: "lrTab", - iconOn: "ion-ios-person", - iconOff: "ion-ios-person-outline", - innerTabPage: "DefaultPage", - }, - setValue: setTabValue, - doButton: removeTab - } - ]; - if (data == undefined) - { - data = _data; - } - hasTabsTemplates[0].ChildNodes = data; - }, - fnPageTree: { - init: function (obj) { - $rootScope.pageTree = obj; - refreshTree(); - }, - refresh: refreshTree, - focusNode: function (id) { - treeNotChecked(); - $rootScope.pageTree.setNodeChecked(id); - }, - refreshNode: refreshTreeNode - }, - fnTabsTree: { - init: function (obj) { - $rootScope.tabsTree = obj; - refreshTabsTree(); - }, - refresh: refreshTabsTree, - focusNode: focusTabsNode - } - }; -}]) -.factory('$lrmDesigner', ['$rootScope', '$lrmComponents', '$lrmTemplates', '$http', '$lrdialogTop', '$lrGetIframe', '$lrfnGuid', function ($rootScope, $lrmComponents, $lrmTemplates, $http, $lrdialogTop, $lrGetIframe, $lrfnGuid) { - var designer = { - projectId: "", - projectName: "", - projectIcon: "icon-webApp.png", - currentPage: {}, - currentFocus: {}, - isTabsAdded:false, - templates: $lrmTemplates, - components:$lrmComponents, - api: { - saveProjectUrl: "../../AppManage/AppProjects/SaveForm", - getProjectUrl: "../../AppManage/AppProjects/GetFormJson" - }, - doPhoneBroadcast: function (cmd, data) { - $lrGetIframe('phoneDIndex').doBroadcast(cmd, data); - }, - vm: { - isBeginView: false - }, - addPage: function (pageTemplate) { - var _dst = angular.copy(pageTemplate); - _dst.id = $lrfnGuid(); - designer.currentPage = _dst; - designer.currentFocus = _dst; - designer.templates.addPage(_dst); - designer.doPhoneBroadcast(appBroadcastCode.cgSelectTemplatePage, { "cmd": "addPage", "object": _dst }); - $.webappDesigner.attributes(designer); - }, - saveProject: function () { - var _projectEntity = { - "F_Name": designer.projectName, - "F_Icon": designer.projectIcon, - }; - if (_projectEntity.F_Name == "") { - $lrdialogTop('请输入项目名称', 'error'); - return false; - } - - $http.post(designer.api.saveProjectUrl + "?keyValue=" + designer.projectId, _projectEntity) - .success(function (data) { - $lrdialogTop('保存成功', 'success'); - }) - .error(function () { - $lrdialogTop('保存失败', 'error'); - }); - } - }; - - - function onBroadcast() { - $rootScope.$on(appBroadcastCode.addComponent, function (event, data) {//添加组件 - try { - var treeOne = { - text: data.text, - img: data.img, - parentnodes: designer.currentPage.id, - id: data.id, - attr: data, - setValue: designer.components.getOne(data.value).setValue, - doButton: designer.components.doRemove - }; - designer.templates.addComponent(treeOne); - designer.templates.fnPageTree.refresh(treeOne.id); - designer.currentFocus = treeOne; - $.webappDesigner.attributes(designer); - } - catch (e) - { - console.log(e.message); - } - }); - - $rootScope.$on(appBroadcastCode.doTabTemplatePhone, function (event, data) {//对tab的操作 - - switch (data.cmd) - { - case "selectTab": - designer.templates.fnTabsTree.focusNode(data.id); - break; - case "duplicate": - var _dst = angular.copy(data.object); - _dst.id = $lrfnGuid(); - designer.templates.getHasTabsTemps()[0].ChildNodes.push(_dst); - designer.templates.fnTabsTree.refresh(); - designer.templates.fnTabsTree.focusNode(_dst.id); - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.doTabTemplate, { "cmd": "addTab", id: _dst.id }); - break; - case "remove": - var _lists = designer.templates.getHasTabsTemps()[0].ChildNodes; - - if (_lists.length > 1) { - _lists.splice(_lists.indexOf(data.object), 1); - designer.templates.fnTabsTree.refresh(); - designer.templates.fnTabsTree.focusNode(_lists[0].id); - $rootScope.designer.doPhoneBroadcast(appBroadcastCode.doTabTemplate, { "cmd": "removeTab", id: _lists[0].id }); - } - else { - $lrdialogTop('Tab不能全部删除', 'error'); - } - break; - } - }); - - $rootScope.$on(appBroadcastCode.doComponentPhone, function (event, data) {//对tab的操作 - designer.templates.fnPageTree.focusNode(data.id); - designer.currentFocus = designer.templates.getComponent(data.id, designer.currentPage.id); - $.webappDesigner.attributes(designer); - }); - } - - return { - init: function (projectId) { - designer.projectId = projectId; - if (designer.projectId == "") { - var tempData = designer.templates.addPage(); - designer.templates.initTabs(); - designer.currentPage = tempData; - designer.currentFocus = tempData; - $.webappDesigner.attributes(designer); - } - else { - $http.get(designer.api.getProjectUrl + "?keyValue=" + designer.projectId) - .success(function (data) { - designer.projectName = data.F_Name; - designer.projectIcon = data.F_Icon; - }) - .error(function () { - designer.projectId = ""; - $lrdialogTop('获取数据失败', 'error'); - }); - } - onBroadcast(); - return designer; - } - }; -}]) -/*方法*/ -.factory('$lrfnRequest', function () {//获取传递参数 - return function (keyValue) { - var search = location.search.slice(1); - var arr = search.split("&"); - for (var i = 0; i < arr.length; i++) { - var ar = arr[i].split("="); - if (ar[0] == keyValue) { - if (unescape(ar[1]) == 'undefined') { - return ""; - } else { - return unescape(ar[1]); - } - } - } - return ""; - } -}) -.factory('$lrfnGuid', function () { - return function () { - var guid = ""; - for (var i = 1; i <= 32; i++) { - var n = Math.floor(Math.random() * 16.0).toString(16); - guid += n; - if ((i == 8) || (i == 12) || (i == 16) || (i == 20)) guid += "-"; - } - return guid; - }; -}) -.factory('$lrdialogTop', function () { - return function (content, type) { - $(".tip_container").remove(); - var bid = parseInt(Math.random() * 100000); - $("body").prepend('
'); - var $this = $(this); - var $tip_container = $("#tip_container" + bid); - var $tip = $("#tip" + bid); - var $tipSpan = $("#tsc" + bid); - //先清楚定时器 - clearTimeout(window.timer); - //主体元素绑定事件 - $tip.attr("class", type).addClass("mtip"); - $tipSpan.html(content); - $tip_container.slideDown(300); - //提示层隐藏定时器 - window.timer = setTimeout(function () { - $tip_container.slideUp(300); - $(".tip_container").remove(); - }, 4000); - $("#tip_container" + bid).css("left", ($(window).width() - $("#tip_container" + bid).width()) / 2); - } -}) -.factory('$lrGetIframe', function () { - function isbrowsername() { - var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 - var isOpera = userAgent.indexOf("Opera") > -1; - if (isOpera) { - return "Opera" - }; //判断是否Opera浏览器 - if (userAgent.indexOf("Firefox") > -1) { - return "FF"; - } //判断是否Firefox浏览器 - if (userAgent.indexOf("Chrome") > -1) { - if (window.navigator.webkitPersistentStorage.toString().indexOf('DeprecatedStorageQuota') > -1) { - return "Chrome"; - } else { - return "360"; - } - }//判断是否Chrome浏览器//360浏览器 - if (userAgent.indexOf("Safari") > -1) { - return "Safari"; - } //判断是否Safari浏览器 - if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) { - return "IE"; - }; //判断是否IE浏览器 - } - return function (id) { - if (isbrowsername() == "Chrome" || isbrowsername() == "FF") { - return frames[id].contentWindow; - } - else { - return frames[id]; - } - } -}); - - - -/*Dom操作和给外部调用的方法*/ -(function ($) { - function lrAppBox(name, strhtml) { - var html = '
'; - html += '

' + name + '

'; - html += '
' + strhtml + '
'; - html += '
'; - return html; - } - function lrAppColorPicker(color, width, name) { - var html = '
' + - '' + - '' + - '
'; - return html; - } - function buttonGroup(name,data,value, style) { - var html = '
'; - - for (var i in data) { - var _item = data[i]; - var _icon = _item.icon == undefined ? '' + _item.text + '' : ''; - var _actived = ""; - if (_item.value == value) - { - _actived = "actived"; - } - html += '' + _icon + ''; - } - html += '
'; - - return html; - } - function lrAppToggle(name,value) { - var _active = ''; - if (value == 'true' ) - { - _active = 'active'; - } - var _html = '
'; - return _html; - } - function lrCombox(name, value, data, width) { - var _option = ''; - for (var i in data) - { - var item = data[i]; - _option += '
  • ' + item.text + '
  • '; - } - var _html = '
    ' + _option + '
    '; - return _html; - }; - - var _tempsAttr = {//模板属性设置 - lrTabs: function (data) { - var _html = ""; - var _boxHtml = ""; - var _color = [ - { text: "Light", value: "light", icon: "" }, - { text: "Stable", value: "stable", icon: "" }, - { text: "Dark", value: "dark", icon: "" }, - { text: "Positive", value: "positive", icon: "" }, - { text: "Balanced", value: "balanced", icon: "" }, - { text: "Assertive", value: "assertive", icon: "" }, - { text: "Calm", value: "calm", icon: "" }, - { text: "Energized", value: "energized", icon: "" }, - { text: "Royal", value: "royal", icon: "" } - ]; - var _types = [ - { text: "顶部图标", value: "top", icon: "" }, - { text: "只有图标", value: "only", icon: "" }, - { text: "左侧图标", value: "left", icon: "" }, - ]; - _html += '
    ' + data.text + '
    '; - - _boxHtml += '
    ' + lrCombox("bgColor", data.attr.bgColor, _color, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("iconColor", data.attr.iconColor, _color, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("iconType", data.attr.iconType, _types, 205) + '
    '; - - _html += lrAppBox('样式', _boxHtml); - - _html += '
    '; - return _html; - }, - lrTab: function (data,designer) { - var _html = ""; - var _boxHtml = ""; - - var _pages = designer.templates.getHasTemps(); - var _innerPages = []; - for (var i in _pages) - { - var _item = _pages[i]; - var _point = { text: _item.text, value: _item.id, icon: "" }; - _innerPages.push(_point); - } - - _html += '
    Tabs控制器/' + data.text + '
    '; - _boxHtml += '
    '; - _boxHtml += '
    ' + lrCombox("iconOff", data.attr.iconOff, webAppData.iconList, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("iconOn", data.attr.iconOn, webAppData.iconList, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("innerTabPage", data.attr.innerTabPage, _innerPages, 205) + '
    '; - - - _html += lrAppBox('设置', _boxHtml); - _html += '
    '; - return _html; - }, - lrPageBlank: function (data) { - - var _html = ""; - var _boxHtml = ""; - - _html += '
    ' + data.text + '
    '; - - _html += '
    '; - _html += '
    '; - _html += '
    '; - - _boxHtml = '
    ' + lrAppColorPicker(data.attr.bgColor, 205, "bgColor") + '
    '; - _html += lrAppBox('背景', _boxHtml); - - _boxHtml = '
    ' + lrAppToggle('isTabed', data.attr.isTabed) + '
    '; - _boxHtml += '
    ' + lrAppToggle('isPadding',data.attr.isPadding) + '
    '; - _boxHtml += '
    ' + lrAppToggle('isHeadHide', data.attr.isHeadHide) + '
    '; - - _html += lrAppBox('混合属性', _boxHtml); - - _html += '
    '; - - return _html; - }, - lrHeader: function (data, designer) { - - var _html = ''; - var _boxHtml = ''; - var _size = [{ text: "H1", value: "H1", icon: "" }, - { text: "H2", value: "H2", icon: "" }, - { text: "H3", value: "H3", icon: "" }, - { text: "H4", value: "H4", icon: "" }, - { text: "H5", value: "H5", icon: "" } - ]; - var _weightSize = [{ text: "200", value: "200", icon: "" }, - { text: "300", value: "300", icon: "" }, - { text: "400", value: "400", icon: "" }, - { text: "500", value: "500", icon: "" }, - { text: "600", value: "600", icon: "" } - ]; - - - _html += '
    ' + designer.currentPage.text + '/' + data.text + '
    '; - - _boxHtml = '
    '; - _boxHtml += '
    ' + lrCombox("size", data.attr.size, _size, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("weightSize", data.attr.weight.size, _weightSize, 100); - _boxHtml += buttonGroup("italic", [{ 'text': 'I', 'value': 'false' }, { 'icon': 'fa fa-italic', 'value': 'true' }], data.attr.weight.isItalic, "margin-left:5px;"); - _boxHtml += '
    '; - - _boxHtml += '
    ' + lrAppColorPicker(data.attr.color, 205, "color") + '
    '; - _boxHtml += '
    '; - _boxHtml += buttonGroup("align", [{ 'icon': 'fa fa-align-left', "value": "left" }, { 'icon': 'fa fa-align-center', "value": "center" }, { 'icon': 'fa fa-align-right', "value": "right" }, { 'icon': 'fa fa-align-justify', "value": "justify" }], data.attr.align); - _boxHtml += '
    '; - - _html += lrAppBox('Text', _boxHtml); - - _html += '
    '; - - return _html; - }, - lrParagraph: function (data, designer) { - var _html = ''; - var _boxHtml = ''; - var _size = [ - { text: "12px", value: "12px", icon: "" }, - { text: "13px", value: "13px", icon: "" }, - { text: "14px", value: "14px", icon: "" }, - { text: "15px", value: "15px", icon: "" }, - { text: "16px", value: "16px", icon: "" }, - { text: "17px", value: "17px", icon: "" }, - { text: "18px", value: "18px", icon: "" }, - { text: "19px", value: "19px", icon: "" }, - { text: "20px", value: "20px", icon: "" }, - { text: "21px", value: "21px", icon: "" }, - { text: "22px", value: "22px", icon: "" }, - { text: "23px", value: "23px", icon: "" }, - { text: "24px", value: "24px", icon: "" }, - { text: "25px", value: "25px", icon: "" } - ]; - - - _html += '
    ' + designer.currentPage.text + '/' + data.text + '
    '; - - _boxHtml += '
    ' + lrCombox("size", data.attr.size, _size, 205) + '
    '; - _boxHtml += '
    ' + lrAppColorPicker(data.attr.color, 205, "color") + '
    '; - _boxHtml += '
    '; - _boxHtml += buttonGroup("align", [{ 'icon': 'fa fa-align-left', "value": "left" }, { 'icon': 'fa fa-align-center', "value": "center" }, { 'icon': 'fa fa-align-right', "value": "right" }, { 'icon': 'fa fa-align-justify', "value": "justify" }], data.attr.align); - _boxHtml += '
    '; - _boxHtml += '
    '; - - - - _html += lrAppBox('Text', _boxHtml); - - _html += '
    '; - - return _html; - }, - lrBtn: function (data, designer) { - var _html = ''; - var _boxHtml = ''; - - var _pages = designer.templates.getHasTemps(); - var _innerPages = []; - for (var i in _pages) { - var _item = _pages[i]; - var _point = { text: _item.text, value: _item.id, icon: "" }; - _innerPages.push(_point); - } - var _size = [ - { text: "12px", value: "12px" }, - { text: "13px", value: "13px" }, - { text: "14px", value: "14px" }, - { text: "15px", value: "15px" }, - { text: "16px", value: "16px" }, - { text: "17px", value: "17px" }, - { text: "18px", value: "18px" }, - { text: "19px", value: "19px" }, - { text: "20px", value: "20px" }, - { text: "21px", value: "21px" }, - { text: "22px", value: "22px" }, - { text: "23px", value: "23px" }, - { text: "24px", value: "24px" }, - { text: "25px", value: "25px" } - ]; - var _weightSize = [{ text: "200", value: "200" }, - { text: "300", value: "300" }, - { text: "400", value: "400" }, - { text: "500", value: "500" }, - { text: "600", value: "600" } - ]; - var _color = [ - { text: "Light", value: "light", icon: "" }, - { text: "Stable", value: "stable", icon: "" }, - { text: "Dark", value: "dark", icon: "" }, - { text: "Positive", value: "positive", icon: "" }, - { text: "Balanced", value: "balanced", icon: "" }, - { text: "Assertive", value: "assertive", icon: "" }, - { text: "Calm", value: "calm", icon: "" }, - { text: "Energized", value: "energized", icon: "" }, - { text: "Royal", value: "royal", icon: "" } - ]; - - _html += '
    ' + designer.currentPage.text + '/' + data.text + '
    '; - - _boxHtml = '
    ' + lrCombox("link", data.attr.link, _innerPages, 205) + '
    '; - _html += lrAppBox('连接', _boxHtml); - - _boxHtml = '
    '; - _boxHtml += '
    ' + lrCombox("size", data.attr.size, _size, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("weightSize", data.attr.weight.size, _weightSize, 100); - _boxHtml += buttonGroup("italic", [{ 'text': 'I', 'value': 'false' }, { 'icon': 'fa fa-italic', 'value': 'true' }], data.attr.weight.isItalic, "margin-left:5px;"); - _boxHtml += '
    '; - _boxHtml += '
    ' + lrAppColorPicker(data.attr.color, 205, "color") + '
    '; - _boxHtml += '
    '; - _boxHtml += buttonGroup("align", [{ 'icon': 'fa fa-align-left', "value": "left" }, { 'icon': 'fa fa-align-center', "value": "center" }, { 'icon': 'fa fa-align-right', "value": "right" }, { 'icon': 'fa fa-align-justify', "value": "justify" }], data.attr.align); - _boxHtml += '
    '; - _html += lrAppBox('文本', _boxHtml); - - - _boxHtml = '
    ' + lrCombox("btnType", data.attr.btnType, [{ text: "Default", value: "default" }, { text: "Clear", value: "clear" }, { text: "Outline", value: "outline" }], 205) + '
    '; - _boxHtml += '
    ' + lrCombox("btnTheme", data.attr.btnTheme, _color, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("btnSize", data.attr.btnSize, [{ text: "Standard", value: "standard" }, { text: "Large", value: "large" }, { text: "Small", value: "small" }], 205) + '
    '; - - _html += lrAppBox('样式', _boxHtml); - - _html += '
    '; - return _html; - }, - lrInput: function (data, designer) { - var _html = ''; - var _boxHtml = ''; - - var _type = [{ text: "Text", value: "text" }, - { text: "Password", value: "password" } - ]; - - _html += '
    ' + designer.currentPage.text + '/' + data.text + '
    '; - - _boxHtml = '
    '; - _boxHtml += '
    ' + lrCombox("inputType", data.attr.inputType, _type, 205) + '
    '; - _boxHtml += '
    '; - _html += lrAppBox('输入框设置', _boxHtml); - - _html += '
    '; - return _html; - }, - lrList3: function (data, designer) { - var _html = ''; - var _boxHtml = ''; - - var _pages = designer.templates.getHasTemps(); - var _innerPages = []; - for (var i in _pages) { - var _item = _pages[i]; - var _point = { text: _item.text, value: _item.id, icon: "" }; - _innerPages.push(_point); - } - var _color = [ - { text: "Light", value: "light", icon: "" }, - { text: "Stable", value: "stable", icon: "" }, - { text: "Dark", value: "dark", icon: "" }, - { text: "Positive", value: "positive", icon: "" }, - { text: "Balanced", value: "balanced", icon: "" }, - { text: "Assertive", value: "assertive", icon: "" }, - { text: "Calm", value: "calm", icon: "" }, - { text: "Energized", value: "energized", icon: "" }, - { text: "Royal", value: "royal", icon: "" } - ]; - _html += '
    ' + designer.currentPage.text + '/' + data.text + '
    '; - - _boxHtml = '
    ' + lrCombox("link", data.attr.link, _innerPages, 205) + '
    '; - _html += lrAppBox('连接', _boxHtml); - - _boxHtml = '
    '; - _boxHtml += '
    ' + lrCombox("color", data.attr.color, _color, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("icon", data.attr.icon, webAppData.iconList, 205) + '
    '; - _html += lrAppBox('列表设置', _boxHtml); - - _html += '
    '; - return _html; - }, - lrList4: function (data, designer) { - var _html = ''; - var _boxHtml = ''; - - var _pages = designer.templates.getHasTemps(); - var _innerPages = []; - for (var i in _pages) { - var _item = _pages[i]; - var _point = { text: _item.text, value: _item.id, icon: "" }; - _innerPages.push(_point); - } - var _color = [ - { text: "a", value: "a", icon: "" }, - { text: "b", value: "b", icon: "" }, - { text: "c", value: "c", icon: "" }, - { text: "d", value: "d", icon: "" }, - { text: "e", value: "e", icon: "" }, - { text: "f", value: "f", icon: "" }, - { text: "g", value: "g", icon: "" }, - { text: "h", value: "h", icon: "" } - ]; - _html += '
    ' + designer.currentPage.text + '/' + data.text + '
    '; - - _boxHtml = '
    ' + lrCombox("link", data.attr.link, _innerPages, 205) + '
    '; - _html += lrAppBox('连接', _boxHtml); - - _boxHtml = '
    '; - _boxHtml += '
    ' + lrCombox("color", data.attr.color, _color, 205) + '
    '; - _boxHtml += '
    ' + lrCombox("icon", data.attr.icon, webAppData.iconList, 205) + '
    '; - _html += lrAppBox('列表设置', _boxHtml); - - _html += '
    '; - return _html; - }, - } - - $.webappDesigner = { - attributes: function (data) { - //console.log(data.currentFocus); - //var $webAppDesign = angular.element('#webAppDesign'); - //var $rootScope = $webAppDesign.scope().$root; - var _currentFocus = data.currentFocus; - var _attr = _currentFocus.attr; - var _currentPage = data.currentPage; - var strhtml = ''; - var strBoxHtml = ''; - - strhtml = _tempsAttr[_attr.value](_currentFocus, data); - - $('.lr-app-right-bar').html(strhtml).ready(function () { - $('.color').colorpicker(); - $('.ui-select').each(function (r) { - $(this).ComboBox({ - height: "400px", - }).bind('change', function () { - var $obj = $(this); - var _value = $obj.attr('data-value'); - var _name = $obj.attr("data-name"); - data.currentFocus.setValue(_name, _value, data.currentFocus); - }); - }); - $('.lr-app-right-bar input').unbind(); - $('.lr-app-right-bar input').bind('input propertychange', function () { - var $obj = $(this); - var _value = $obj.val(); - var _name = $obj.attr("data-name"); - if (_name == "routing") - { - if (_value.indexOf("/") < 0) - { - _value = "/" + _value; - $obj.val(_value); - } - } - data.currentFocus.setValue(_name, _value, data.currentFocus); - }); - $('.lr-app-right-bar textarea').unbind(); - $('.lr-app-right-bar textarea').bind('valuechange', function () { - var $obj = $(this); - var _value = $obj.val(); - var _name = $obj.attr("data-name"); - data.currentFocus.setValue(_name, _value, data.currentFocus); - }); - - $('button').on('click', function () { - data.currentFocus.doButton(data.currentFocus); - }); - }); - }, - doBroadcast: function (name, data) {//发送广播 - var $webAppDesign = angular.element('#webAppDesign'); - var $rootScope = $webAppDesign.scope().$root; - $rootScope.$broadcast(name, data);//iframeLoaded - } - }; - - $.event.special.valuechange = { - teardown: function (namespaces) { - $(this).unbind('.valuechange'); - }, - handler: function (e) { - $.event.special.valuechange.triggerChanged($(this)); - }, - add: function (obj) { - $(this) - .on( - 'keyup.valuechange cut.valuechange paste.valuechange input.valuechange', - obj.selector, $.event.special.valuechange.handler) - }, - triggerChanged: function (element) { - var current = element[0].contentEditable === 'true' ? element - .html() : element.val(), previous = typeof element - .data('previous') === 'undefined' ? element[0].defaultValue - : element.data('previous') - if (current !== previous) { - element.trigger('valuechange', [element.data('previous')]) - element.data('previous', current) - } - } - } - $.fn.ComboBox = function (options) { - //options参数:description,height,width,allowSearch,url,param,data - options.id = "key"; - options.text = "text"; - var $select = $(this); - var json = options.data = []; - var _description = $select.attr("data-value"); - $select.find('li').each(function (r) { - var $obj = $(this); - var _text = $obj.html(); - var _value = $obj.attr('data-value'); - var _icon = $obj.attr('data-icon'); - var _a = {}; - - _a[options.id] = _value; - _a[options.text] = _text; - _a["icon"] = (_icon == "undefined" ? "" : _icon); - if (_description == _value) - { - _description = _a["icon"] + _text; - } - json.push(_a); - }); - - var _name = $select.attr("data-name"); - - if (options) { - if ($select.find('.ui-select-text').length == 0) { - var $select_html = ""; - $select_html += "
    " + _description + "
    "; - $select_html += "
    "; - $select_html += "
    " + $select.html() + "
    "; - if (options.allowSearch) { - $select_html += "
    "; - } - $select_html += "
    "; - $select.html(''); - $select.append($select_html); - } - } - var $option_html = $($("

    ").append($select.find('.ui-select-option').clone()).html()); - $option_html.attr('id', $select.attr('id') + '-option'); - $select.find('.ui-select-option').remove(); - if ($option_html.length > 0) { - $('body').find('#' + $select.attr('id') + '-option').remove(); - } - $('body').prepend($option_html); - var $option = $("#" + $select.attr('id') + "-option"); - //var json = options.data; - - loadComboBoxView(json); - function loadComboBoxView(json, searchValue, m) { - if (json.length > 0) { - var $_html = $('

    '); - if (options.description) { - $_html.append('
  • ' + options.description + '
  • '); - } - $.each(json, function (i) { - var row = json[i]; - var title = row[options.title]; - if (title == undefined) { - title = ""; - } - if (searchValue != undefined) { - if (row[m.text].indexOf(searchValue) != -1) { - $_html.append('
  • ' + row.icon + row[options.text] + '
  • '); - } - } - else { - $_html.append('
  • ' + row.icon + row[options.text] + '
  • '); - } - }); - $option.find('.ui-select-option-content').html($_html); - $option.find('li').css('padding', "0 5px"); - $option.find('li').click(function (e) { - var data_text = $(this).html(); - var data_value = $(this).attr('data-value'); - $select.attr("data-value", data_value).attr("data-text", data_text); - $select.find('.ui-select-text').html(data_text).css('color', '#000'); - $option.slideUp(150); - $select.trigger("change"); - e.stopPropagation(); - }).hover(function (e) { - if (!$(this).hasClass('liactive')) { - $(this).toggleClass('on'); - } - e.stopPropagation(); - }); - } - } - //操作搜索事件 - if (options.allowSearch) { - $option.find('.ui-select-option-search').find('input').bind("keypress", function (e) { - if (event.keyCode == "13") { - var value = $(this).val(); - loadComboBoxView($(this)[0].options.data, value, $(this)[0].options); - } - }).focus(function () { - $(this).select(); - })[0]["options"] = options; - } - - $select.unbind('click'); - $select.bind("click", function (e) { - if ($select.attr('readonly') == 'readonly' || $select.attr('disabled') == 'disabled') { - return false; - } - $(this).addClass('ui-select-focus'); - if ($option.is(":hidden")) { - $select.find('.ui-select-option').hide(); - $('.ui-select-option').hide(); - var left = $select.offset().left; - var top = $select.offset().top + 35; - var width = $select.width(); - if (options.width) { - width = options.width; - } - if (($option.height() + top) < $(window).height()) { - $option.slideDown(150).css({ top: top, left: left, width: width }); - } else { - var _top = (top - $option.height() - 32) - $option.show().css({ top: _top, left: left, width: width }); - $option.attr('data-show', true); - } - $option.css('border-top', '1px solid #ccc'); - $option.find('li').removeClass('liactive'); - $option.find('[data-value=' + $select.attr('data-value') + ']').addClass('liactive'); - $option.find('.ui-select-option-search').find('input').select(); - } else { - if ($option.attr('data-show')) { - $option.hide(); - } else { - $option.slideUp(150); - } - } - e.stopPropagation(); - }); - $(document).click(function (e) { - var e = e ? e : window.event; - var tar = e.srcElement || e.target; - if (!$(tar).hasClass('form-control')) { - if ($option.attr('data-show')) { - $option.hide(); - } else { - $option.slideUp(150); - } - $select.removeClass('ui-select-focus'); - e.stopPropagation(); - } - }); - return $select; - } - $.fn.ComboBoxSetValue = function (value) { - if ($.isNullOrEmpty(value)) { - return; - } - var $select = $(this); - var $option = $("#" + $select.attr('id') + "-option"); - $select.attr('data-value', value); - var data_text = $option.find('ul').find('[data-value=' + value + ']').html(); - if (data_text) { - $select.attr('data-text', data_text); - $select.find('.ui-select-text').html(data_text).css('color', '#000'); - $option.find('ul').find('[data-value=' + value + ']').addClass('liactive') - } - return $select; - } - -})(window.jQuery); - -function lrappbox(a) { - var $obj = $(a).parent(); - if ($obj.is('.expanded')) { - $obj.removeClass('expanded'); - } - else { - $obj.addClass('expanded'); - } -} -function lrappBtnGroup(a) { - var $obj = $(a).parent(); - $input = $(a).find('input'); - $obj.find('.actived').removeClass('actived'); - $(a).addClass('actived'); - $input.trigger('propertychange'); -} -function lrappToggle(a) { - var $obj = $(a); - $input = $obj.find('input'); - $obj.addClass("animate"); - var flag = $obj.is(".active"); - if (flag) { - $input.val(false); - $obj.removeClass("active"); - } - else { - $input.val(true); - $obj.addClass("active"); - } - $input.trigger('propertychange'); -} diff --git a/OpenAuth.Mvc/Content/scripts/utils/webAppData.js b/OpenAuth.Mvc/Content/scripts/utils/webAppData.js deleted file mode 100644 index 34cda805..00000000 --- a/OpenAuth.Mvc/Content/scripts/utils/webAppData.js +++ /dev/null @@ -1,1340 +0,0 @@ -var webAppData = { - iconList: [ - { - "text": "ion-ios-ionic-outline", - "value": "ion-ios-ionic-outline", - "icon": "" - }, - { - "text": "ion-ios-arrow-back", - "value": "ion-ios-arrow-back", - "icon": "" - }, - { - "text": "ion-ios-arrow-forward", - "value": "ion-ios-arrow-forward", - "icon": "" - }, - { - "text": "ion-ios-arrow-up", - "value": "ion-ios-arrow-up", - "icon": "" - }, - { - "text": "ion-ios-arrow-right", - "value": "ion-ios-arrow-right", - "icon": "" - }, - { - "text": "ion-ios-arrow-down", - "value": "ion-ios-arrow-down", - "icon": "" - }, - { - "text": "ion-ios-arrow-left", - "value": "ion-ios-arrow-left", - "icon": "" - }, - { - "text": "ion-ios-arrow-thin-up", - "value": "ion-ios-arrow-thin-up", - "icon": "" - }, - { - "text": "ion-ios-arrow-thin-right", - "value": "ion-ios-arrow-thin-right", - "icon": "" - }, - { - "text": "ion-ios-arrow-thin-down", - "value": "ion-ios-arrow-thin-down", - "icon": "" - }, - { - "text": "ion-ios-arrow-thin-left", - "value": "ion-ios-arrow-thin-left", - "icon": "" - }, - { - "text": "ion-ios-circle-filled", - "value": "ion-ios-circle-filled", - "icon": "" - }, - { - "text": "ion-ios-circle-outline", - "value": "ion-ios-circle-outline", - "icon": "" - }, - { - "text": "ion-ios-checkmark-empty", - "value": "ion-ios-checkmark-empty", - "icon": "" - }, - { - "text": "ion-ios-checkmark-outline", - "value": "ion-ios-checkmark-outline", - "icon": "" - }, - { - "text": "ion-ios-checkmark", - "value": "ion-ios-checkmark", - "icon": "" - }, - { - "text": "ion-ios-plus-empty", - "value": "ion-ios-plus-empty", - "icon": "" - }, - { - "text": "ion-ios-plus-outline", - "value": "ion-ios-plus-outline", - "icon": "" - }, - { - "text": "ion-ios-plus", - "value": "ion-ios-plus", - "icon": "" - }, - { - "text": "ion-ios-close-empty", - "value": "ion-ios-close-empty", - "icon": "" - }, - { - "text": "ion-ios-close-outline", - "value": "ion-ios-close-outline", - "icon": "" - }, - { - "text": "ion-ios-close", - "value": "ion-ios-close", - "icon": "" - }, - { - "text": "ion-ios-minus-empty", - "value": "ion-ios-minus-empty", - "icon": "" - }, - { - "text": "ion-ios-minus-outline", - "value": "ion-ios-minus-outline", - "icon": "" - }, - { - "text": "ion-ios-minus", - "value": "ion-ios-minus", - "icon": "" - }, - { - "text": "ion-ios-information-empty", - "value": "ion-ios-information-empty", - "icon": "" - }, - { - "text": "ion-ios-information-outline", - "value": "ion-ios-information-outline", - "icon": "" - }, - { - "text": "ion-ios-information", - "value": "ion-ios-information", - "icon": "" - }, - { - "text": "ion-ios-help-empty", - "value": "ion-ios-help-empty", - "icon": "" - }, - { - "text": "ion-ios-help-outline", - "value": "ion-ios-help-outline", - "icon": "" - }, - { - "text": "ion-ios-help", - "value": "ion-ios-help", - "icon": "" - }, - { - "text": "ion-ios-search", - "value": "ion-ios-search", - "icon": "" - }, - { - "text": "ion-ios-search-strong", - "value": "ion-ios-search-strong", - "icon": "" - }, - { - "text": "ion-ios-star", - "value": "ion-ios-star", - "icon": "" - }, - { - "text": "ion-ios-star-half", - "value": "ion-ios-star-half", - "icon": "" - }, - { - "text": "ion-ios-star-outline", - "value": "ion-ios-star-outline", - "icon": "" - }, - { - "text": "ion-ios-heart", - "value": "ion-ios-heart", - "icon": "" - }, - { - "text": "ion-ios-heart-outline", - "value": "ion-ios-heart-outline", - "icon": "" - }, - { - "text": "ion-ios-more", - "value": "ion-ios-more", - "icon": "" - }, - { - "text": "ion-ios-more-outline", - "value": "ion-ios-more-outline", - "icon": "" - }, - { - "text": "ion-ios-home", - "value": "ion-ios-home", - "icon": "" - }, - { - "text": "ion-ios-home-outline", - "value": "ion-ios-home-outline", - "icon": "" - }, - { - "text": "ion-ios-cloud", - "value": "ion-ios-cloud", - "icon": "" - }, - { - "text": "ion-ios-cloud-outline", - "value": "ion-ios-cloud-outline", - "icon": "" - }, - { - "text": "ion-ios-cloud-upload", - "value": "ion-ios-cloud-upload", - "icon": "" - }, - { - "text": "ion-ios-cloud-upload-outline", - "value": "ion-ios-cloud-upload-outline", - "icon": "" - }, - { - "text": "ion-ios-cloud-download", - "value": "ion-ios-cloud-download", - "icon": "" - }, - { - "text": "ion-ios-cloud-download-outline", - "value": "ion-ios-cloud-download-outline", - "icon": "" - }, - { - "text": "ion-ios-upload", - "value": "ion-ios-upload", - "icon": "" - }, - { - "text": "ion-ios-upload-outline", - "value": "ion-ios-upload-outline", - "icon": "" - }, - { - "text": "ion-ios-download", - "value": "ion-ios-download", - "icon": "" - }, - { - "text": "ion-ios-download-outline", - "value": "ion-ios-download-outline", - "icon": "" - }, - { - "text": "ion-ios-refresh", - "value": "ion-ios-refresh", - "icon": "" - }, - { - "text": "ion-ios-refresh-outline", - "value": "ion-ios-refresh-outline", - "icon": "" - }, - { - "text": "ion-ios-refresh-empty", - "value": "ion-ios-refresh-empty", - "icon": "" - }, - { - "text": "ion-ios-reload", - "value": "ion-ios-reload", - "icon": "" - }, - { - "text": "ion-ios-loop-strong", - "value": "ion-ios-loop-strong", - "icon": "" - }, - { - "text": "ion-ios-loop", - "value": "ion-ios-loop", - "icon": "" - }, - { - "text": "ion-ios-bookmarks", - "value": "ion-ios-bookmarks", - "icon": "" - }, - { - "text": "ion-ios-bookmarks-outline", - "value": "ion-ios-bookmarks-outline", - "icon": "" - }, - { - "text": "ion-ios-book", - "value": "ion-ios-book", - "icon": "" - }, - { - "text": "ion-ios-book-outline", - "value": "ion-ios-book-outline", - "icon": "" - }, - { - "text": "ion-ios-flag", - "value": "ion-ios-flag", - "icon": "" - }, - { - "text": "ion-ios-flag-outline", - "value": "ion-ios-flag-outline", - "icon": "" - }, - { - "text": "ion-ios-glasses", - "value": "ion-ios-glasses", - "icon": "" - }, - { - "text": "ion-ios-glasses-outline", - "value": "ion-ios-glasses-outline", - "icon": "" - }, - { - "text": "ion-ios-browsers", - "value": "ion-ios-browsers", - "icon": "" - }, - { - "text": "ion-ios-browsers-outline", - "value": "ion-ios-browsers-outline", - "icon": "" - }, - { - "text": "ion-ios-at", - "value": "ion-ios-at", - "icon": "" - }, - { - "text": "ion-ios-at-outline", - "value": "ion-ios-at-outline", - "icon": "" - }, - { - "text": "ion-ios-pricetag", - "value": "ion-ios-pricetag", - "icon": "" - }, - { - "text": "ion-ios-pricetag-outline", - "value": "ion-ios-pricetag-outline", - "icon": "" - }, - { - "text": "ion-ios-pricetags", - "value": "ion-ios-pricetags", - "icon": "" - }, - { - "text": "ion-ios-pricetags-outline", - "value": "ion-ios-pricetags-outline", - "icon": "" - }, - { - "text": "ion-ios-cart", - "value": "ion-ios-cart", - "icon": "" - }, - { - "text": "ion-ios-cart-outline", - "value": "ion-ios-cart-outline", - "icon": "" - }, - { - "text": "ion-ios-chatboxes", - "value": "ion-ios-chatboxes", - "icon": "" - }, - { - "text": "ion-ios-chatboxes-outline", - "value": "ion-ios-chatboxes-outline", - "icon": "" - }, - { - "text": "ion-ios-chatbubble", - "value": "ion-ios-chatbubble", - "icon": "" - }, - { - "text": "ion-ios-chatbubble-outline", - "value": "ion-ios-chatbubble-outline", - "icon": "" - }, - { - "text": "ion-ios-cog", - "value": "ion-ios-cog", - "icon": "" - }, - { - "text": "ion-ios-cog-outline", - "value": "ion-ios-cog-outline", - "icon": "" - }, - { - "text": "ion-ios-gear", - "value": "ion-ios-gear", - "icon": "" - }, - { - "text": "ion-ios-gear-outline", - "value": "ion-ios-gear-outline", - "icon": "" - }, - { - "text": "ion-ios-settings", - "value": "ion-ios-settings", - "icon": "" - }, - { - "text": "ion-ios-settings-strong", - "value": "ion-ios-settings-strong", - "icon": "" - }, - { - "text": "ion-ios-toggle", - "value": "ion-ios-toggle", - "icon": "" - }, - { - "text": "ion-ios-toggle-outline", - "value": "ion-ios-toggle-outline", - "icon": "" - }, - { - "text": "ion-ios-analytics", - "value": "ion-ios-analytics", - "icon": "" - }, - { - "text": "ion-ios-analytics-outline", - "value": "ion-ios-analytics-outline", - "icon": "" - }, - { - "text": "ion-ios-pie", - "value": "ion-ios-pie", - "icon": "" - }, - { - "text": "ion-ios-pie-outline", - "value": "ion-ios-pie-outline", - "icon": "" - }, - { - "text": "ion-ios-pulse", - "value": "ion-ios-pulse", - "icon": "" - }, - { - "text": "ion-ios-pulse-strong", - "value": "ion-ios-pulse-strong", - "icon": "" - }, - { - "text": "ion-ios-filing", - "value": "ion-ios-filing", - "icon": "" - }, - { - "text": "ion-ios-filing-outline", - "value": "ion-ios-filing-outline", - "icon": "" - }, - { - "text": "ion-ios-box", - "value": "ion-ios-box", - "icon": "" - }, - { - "text": "ion-ios-box-outline", - "value": "ion-ios-box-outline", - "icon": "" - }, - { - "text": "ion-ios-compose", - "value": "ion-ios-compose", - "icon": "" - }, - { - "text": "ion-ios-compose-outline", - "value": "ion-ios-compose-outline", - "icon": "" - }, - { - "text": "ion-ios-trash", - "value": "ion-ios-trash", - "icon": "" - }, - { - "text": "ion-ios-trash-outline", - "value": "ion-ios-trash-outline", - "icon": "" - }, - { - "text": "ion-ios-copy", - "value": "ion-ios-copy", - "icon": "" - }, - { - "text": "ion-ios-copy-outline", - "value": "ion-ios-copy-outline", - "icon": "" - }, - { - "text": "ion-ios-email", - "value": "ion-ios-email", - "icon": "" - }, - { - "text": "ion-ios-email-outline", - "value": "ion-ios-email-outline", - "icon": "" - }, - { - "text": "ion-ios-undo", - "value": "ion-ios-undo", - "icon": "" - }, - { - "text": "ion-ios-undo-outline", - "value": "ion-ios-undo-outline", - "icon": "" - }, - { - "text": "ion-ios-redo", - "value": "ion-ios-redo", - "icon": "" - }, - { - "text": "ion-ios-redo-outline", - "value": "ion-ios-redo-outline", - "icon": "" - }, - { - "text": "ion-ios-paperplane", - "value": "ion-ios-paperplane", - "icon": "" - }, - { - "text": "ion-ios-paperplane-outline", - "value": "ion-ios-paperplane-outline", - "icon": "" - }, - { - "text": "ion-ios-folder", - "value": "ion-ios-folder", - "icon": "" - }, - { - "text": "ion-ios-folder-outline", - "value": "ion-ios-folder-outline", - "icon": "" - }, - { - "text": "ion-ios-paper", - "value": "ion-ios-paper", - "icon": "" - }, - { - "text": "ion-ios-paper-outline", - "value": "ion-ios-paper-outline", - "icon": "" - }, - { - "text": "ion-ios-list", - "value": "ion-ios-list", - "icon": "" - }, - { - "text": "ion-ios-list-outline", - "value": "ion-ios-list-outline", - "icon": "" - }, - { - "text": "ion-ios-world", - "value": "ion-ios-world", - "icon": "" - }, - { - "text": "ion-ios-world-outline", - "value": "ion-ios-world-outline", - "icon": "" - }, - { - "text": "ion-ios-alarm", - "value": "ion-ios-alarm", - "icon": "" - }, - { - "text": "ion-ios-alarm-outline", - "value": "ion-ios-alarm-outline", - "icon": "" - }, - { - "text": "ion-ios-speedometer", - "value": "ion-ios-speedometer", - "icon": "" - }, - { - "text": "ion-ios-speedometer-outline", - "value": "ion-ios-speedometer-outline", - "icon": "" - }, - { - "text": "ion-ios-stopwatch", - "value": "ion-ios-stopwatch", - "icon": "" - }, - { - "text": "ion-ios-stopwatch-outline", - "value": "ion-ios-stopwatch-outline", - "icon": "" - }, - { - "text": "ion-ios-timer", - "value": "ion-ios-timer", - "icon": "" - }, - { - "text": "ion-ios-timer-outline", - "value": "ion-ios-timer-outline", - "icon": "" - }, - { - "text": "ion-ios-clock", - "value": "ion-ios-clock", - "icon": "" - }, - { - "text": "ion-ios-clock-outline", - "value": "ion-ios-clock-outline", - "icon": "" - }, - { - "text": "ion-ios-time", - "value": "ion-ios-time", - "icon": "" - }, - { - "text": "ion-ios-time-outline", - "value": "ion-ios-time-outline", - "icon": "" - }, - { - "text": "ion-ios-calendar", - "value": "ion-ios-calendar", - "icon": "" - }, - { - "text": "ion-ios-calendar-outline", - "value": "ion-ios-calendar-outline", - "icon": "" - }, - { - "text": "ion-ios-photos", - "value": "ion-ios-photos", - "icon": "" - }, - { - "text": "ion-ios-photos-outline", - "value": "ion-ios-photos-outline", - "icon": "" - }, - { - "text": "ion-ios-albums", - "value": "ion-ios-albums", - "icon": "" - }, - { - "text": "ion-ios-albums-outline", - "value": "ion-ios-albums-outline", - "icon": "" - }, - { - "text": "ion-ios-camera", - "value": "ion-ios-camera", - "icon": "" - }, - { - "text": "ion-ios-camera-outline", - "value": "ion-ios-camera-outline", - "icon": "" - }, - { - "text": "ion-ios-reverse-camera", - "value": "ion-ios-reverse-camera", - "icon": "" - }, - { - "text": "ion-ios-reverse-camera-outline", - "value": "ion-ios-reverse-camera-outline", - "icon": "" - }, - { - "text": "ion-ios-eye", - "value": "ion-ios-eye", - "icon": "" - }, - { - "text": "ion-ios-eye-outline", - "value": "ion-ios-eye-outline", - "icon": "" - }, - { - "text": "ion-ios-bolt", - "value": "ion-ios-bolt", - "icon": "" - }, - { - "text": "ion-ios-bolt-outline", - "value": "ion-ios-bolt-outline", - "icon": "" - }, - { - "text": "ion-ios-color-wand", - "value": "ion-ios-color-wand", - "icon": "" - }, - { - "text": "ion-ios-color-wand-outline", - "value": "ion-ios-color-wand-outline", - "icon": "" - }, - { - "text": "ion-ios-color-filter", - "value": "ion-ios-color-filter", - "icon": "" - }, - { - "text": "ion-ios-color-filter-outline", - "value": "ion-ios-color-filter-outline", - "icon": "" - }, - { - "text": "ion-ios-grid-view", - "value": "ion-ios-grid-view", - "icon": "" - }, - { - "text": "ion-ios-grid-view-outline", - "value": "ion-ios-grid-view-outline", - "icon": "" - }, - { - "text": "ion-ios-crop-strong", - "value": "ion-ios-crop-strong", - "icon": "" - }, - { - "text": "ion-ios-crop", - "value": "ion-ios-crop", - "icon": "" - }, - { - "text": "ion-ios-barcode", - "value": "ion-ios-barcode", - "icon": "" - }, - { - "text": "ion-ios-barcode-outline", - "value": "ion-ios-barcode-outline", - "icon": "" - }, - { - "text": "ion-ios-briefcase", - "value": "ion-ios-briefcase", - "icon": "" - }, - { - "text": "ion-ios-briefcase-outline", - "value": "ion-ios-briefcase-outline", - "icon": "" - }, - { - "text": "ion-ios-medkit", - "value": "ion-ios-medkit", - "icon": "" - }, - { - "text": "ion-ios-medkit-outline", - "value": "ion-ios-medkit-outline", - "icon": "" - }, - { - "text": "ion-ios-medical", - "value": "ion-ios-medical", - "icon": "" - }, - { - "text": "ion-ios-medical-outline", - "value": "ion-ios-medical-outline", - "icon": "" - }, - { - "text": "ion-ios-infinite", - "value": "ion-ios-infinite", - "icon": "" - }, - { - "text": "ion-ios-infinite-outline", - "value": "ion-ios-infinite-outline", - "icon": "" - }, - { - "text": "ion-ios-calculator", - "value": "ion-ios-calculator", - "icon": "" - }, - { - "text": "ion-ios-calculator-outline", - "value": "ion-ios-calculator-outline", - "icon": "" - }, - { - "text": "ion-ios-keypad", - "value": "ion-ios-keypad", - "icon": "" - }, - { - "text": "ion-ios-keypad-outline", - "value": "ion-ios-keypad-outline", - "icon": "" - }, - { - "text": "ion-ios-telephone", - "value": "ion-ios-telephone", - "icon": "" - }, - { - "text": "ion-ios-telephone-outline", - "value": "ion-ios-telephone-outline", - "icon": "" - }, - { - "text": "ion-ios-drag", - "value": "ion-ios-drag", - "icon": "" - }, - { - "text": "ion-ios-location", - "value": "ion-ios-location", - "icon": "" - }, - { - "text": "ion-ios-location-outline", - "value": "ion-ios-location-outline", - "icon": "" - }, - { - "text": "ion-ios-navigate", - "value": "ion-ios-navigate", - "icon": "" - }, - { - "text": "ion-ios-navigate-outline", - "value": "ion-ios-navigate-outline", - "icon": "" - }, - { - "text": "ion-ios-locked", - "value": "ion-ios-locked", - "icon": "" - }, - { - "text": "ion-ios-locked-outline", - "value": "ion-ios-locked-outline", - "icon": "" - }, - { - "text": "ion-ios-unlocked", - "value": "ion-ios-unlocked", - "icon": "" - }, - { - "text": "ion-ios-unlocked-outline", - "value": "ion-ios-unlocked-outline", - "icon": "" - }, - { - "text": "ion-ios-monitor", - "value": "ion-ios-monitor", - "icon": "" - }, - { - "text": "ion-ios-monitor-outline", - "value": "ion-ios-monitor-outline", - "icon": "" - }, - { - "text": "ion-ios-printer", - "value": "ion-ios-printer", - "icon": "" - }, - { - "text": "ion-ios-printer-outline", - "value": "ion-ios-printer-outline", - "icon": "" - }, - { - "text": "ion-ios-game-controller-a", - "value": "ion-ios-game-controller-a", - "icon": "" - }, - { - "text": "ion-ios-game-controller-a-outline", - "value": "ion-ios-game-controller-a-outline", - "icon": "" - }, - { - "text": "ion-ios-game-controller-b", - "value": "ion-ios-game-controller-b", - "icon": "" - }, - { - "text": "ion-ios-game-controller-b-outline", - "value": "ion-ios-game-controller-b-outline", - "icon": "" - }, - { - "text": "ion-ios-americanfootball", - "value": "ion-ios-americanfootball", - "icon": "" - }, - { - "text": "ion-ios-americanfootball-outline", - "value": "ion-ios-americanfootball-outline", - "icon": "" - }, - { - "text": "ion-ios-baseball", - "value": "ion-ios-baseball", - "icon": "" - }, - { - "text": "ion-ios-baseball-outline", - "value": "ion-ios-baseball-outline", - "icon": "" - }, - { - "text": "ion-ios-basketball", - "value": "ion-ios-basketball", - "icon": "" - }, - { - "text": "ion-ios-basketball-outline", - "value": "ion-ios-basketball-outline", - "icon": "" - }, - { - "text": "ion-ios-tennisball", - "value": "ion-ios-tennisball", - "icon": "" - }, - { - "text": "ion-ios-tennisball-outline", - "value": "ion-ios-tennisball-outline", - "icon": "" - }, - { - "text": "ion-ios-football", - "value": "ion-ios-football", - "icon": "" - }, - { - "text": "ion-ios-football-outline", - "value": "ion-ios-football-outline", - "icon": "" - }, - { - "text": "ion-ios-body", - "value": "ion-ios-body", - "icon": "" - }, - { - "text": "ion-ios-body-outline", - "value": "ion-ios-body-outline", - "icon": "" - }, - { - "text": "ion-ios-person", - "value": "ion-ios-person", - "icon": "" - }, - { - "text": "ion-ios-person-outline", - "value": "ion-ios-person-outline", - "icon": "" - }, - { - "text": "ion-ios-personadd", - "value": "ion-ios-personadd", - "icon": "" - }, - { - "text": "ion-ios-personadd-outline", - "value": "ion-ios-personadd-outline", - "icon": "" - }, - { - "text": "ion-ios-people", - "value": "ion-ios-people", - "icon": "" - }, - { - "text": "ion-ios-people-outline", - "value": "ion-ios-people-outline", - "icon": "" - }, - { - "text": "ion-ios-musical-notes", - "value": "ion-ios-musical-notes", - "icon": "" - }, - { - "text": "ion-ios-musical-note", - "value": "ion-ios-musical-note", - "icon": "" - }, - { - "text": "ion-ios-bell", - "value": "ion-ios-bell", - "icon": "" - }, - { - "text": "ion-ios-bell-outline", - "value": "ion-ios-bell-outline", - "icon": "" - }, - { - "text": "ion-ios-mic", - "value": "ion-ios-mic", - "icon": "" - }, - { - "text": "ion-ios-mic-outline", - "value": "ion-ios-mic-outline", - "icon": "" - }, - { - "text": "ion-ios-mic-off", - "value": "ion-ios-mic-off", - "icon": "" - }, - { - "text": "ion-ios-volume-high", - "value": "ion-ios-volume-high", - "icon": "" - }, - { - "text": "ion-ios-volume-low", - "value": "ion-ios-volume-low", - "icon": "" - }, - { - "text": "ion-ios-play", - "value": "ion-ios-play", - "icon": "" - }, - { - "text": "ion-ios-play-outline", - "value": "ion-ios-play-outline", - "icon": "" - }, - { - "text": "ion-ios-pause", - "value": "ion-ios-pause", - "icon": "" - }, - { - "text": "ion-ios-pause-outline", - "value": "ion-ios-pause-outline", - "icon": "" - }, - { - "text": "ion-ios-recording", - "value": "ion-ios-recording", - "icon": "" - }, - { - "text": "ion-ios-recording-outline", - "value": "ion-ios-recording-outline", - "icon": "" - }, - { - "text": "ion-ios-fastforward", - "value": "ion-ios-fastforward", - "icon": "" - }, - { - "text": "ion-ios-fastforward-outline", - "value": "ion-ios-fastforward-outline", - "icon": "" - }, - { - "text": "ion-ios-rewind", - "value": "ion-ios-rewind", - "icon": "" - }, - { - "text": "ion-ios-rewind-outline", - "value": "ion-ios-rewind-outline", - "icon": "" - }, - { - "text": "ion-ios-skipbackward", - "value": "ion-ios-skipbackward", - "icon": "" - }, - { - "text": "ion-ios-skipbackward-outline", - "value": "ion-ios-skipbackward-outline", - "icon": "" - }, - { - "text": "ion-ios-skipforward", - "value": "ion-ios-skipforward", - "icon": "" - }, - { - "text": "ion-ios-skipforward-outline", - "value": "ion-ios-skipforward-outline", - "icon": "" - }, - { - "text": "ion-ios-shuffle-strong", - "value": "ion-ios-shuffle-strong", - "icon": "" - }, - { - "text": "ion-ios-shuffle", - "value": "ion-ios-shuffle", - "icon": "" - }, - { - "text": "ion-ios-videocam", - "value": "ion-ios-videocam", - "icon": "" - }, - { - "text": "ion-ios-videocam-outline", - "value": "ion-ios-videocam-outline", - "icon": "" - }, - { - "text": "ion-ios-film", - "value": "ion-ios-film", - "icon": "" - }, - { - "text": "ion-ios-film-outline", - "value": "ion-ios-film-outline", - "icon": "" - }, - { - "text": "ion-ios-flask", - "value": "ion-ios-flask", - "icon": "" - }, - { - "text": "ion-ios-flask-outline", - "value": "ion-ios-flask-outline", - "icon": "" - }, - { - "text": "ion-ios-lightbulb", - "value": "ion-ios-lightbulb", - "icon": "" - }, - { - "text": "ion-ios-lightbulb-outline", - "value": "ion-ios-lightbulb-outline", - "icon": "" - }, - { - "text": "ion-ios-wineglass", - "value": "ion-ios-wineglass", - "icon": "" - }, - { - "text": "ion-ios-wineglass-outline", - "value": "ion-ios-wineglass-outline", - "icon": "" - }, - { - "text": "ion-ios-pint", - "value": "ion-ios-pint", - "icon": "" - }, - { - "text": "ion-ios-pint-outline", - "value": "ion-ios-pint-outline", - "icon": "" - }, - { - "text": "ion-ios-nutrition", - "value": "ion-ios-nutrition", - "icon": "" - }, - { - "text": "ion-ios-nutrition-outline", - "value": "ion-ios-nutrition-outline", - "icon": "" - }, - { - "text": "ion-ios-flower", - "value": "ion-ios-flower", - "icon": "" - }, - { - "text": "ion-ios-flower-outline", - "value": "ion-ios-flower-outline", - "icon": "" - }, - { - "text": "ion-ios-rose", - "value": "ion-ios-rose", - "icon": "" - }, - { - "text": "ion-ios-rose-outline", - "value": "ion-ios-rose-outline", - "icon": "" - }, - { - "text": "ion-ios-paw", - "value": "ion-ios-paw", - "icon": "" - }, - { - "text": "ion-ios-paw-outline", - "value": "ion-ios-paw-outline", - "icon": "" - }, - { - "text": "ion-ios-flame", - "value": "ion-ios-flame", - "icon": "" - }, - { - "text": "ion-ios-flame-outline", - "value": "ion-ios-flame-outline", - "icon": "" - }, - { - "text": "ion-ios-sunny", - "value": "ion-ios-sunny", - "icon": "" - }, - { - "text": "ion-ios-sunny-outline", - "value": "ion-ios-sunny-outline", - "icon": "" - }, - { - "text": "ion-ios-partlysunny", - "value": "ion-ios-partlysunny", - "icon": "" - }, - { - "text": "ion-ios-partlysunny-outline", - "value": "ion-ios-partlysunny-outline", - "icon": "" - }, - { - "text": "ion-ios-cloudy", - "value": "ion-ios-cloudy", - "icon": "" - }, - { - "text": "ion-ios-cloudy-outline", - "value": "ion-ios-cloudy-outline", - "icon": "" - }, - { - "text": "ion-ios-rainy", - "value": "ion-ios-rainy", - "icon": "" - }, - { - "text": "ion-ios-rainy-outline", - "value": "ion-ios-rainy-outline", - "icon": "" - }, - { - "text": "ion-ios-thunderstorm", - "value": "ion-ios-thunderstorm", - "icon": "" - }, - { - "text": "ion-ios-thunderstorm-outline", - "value": "ion-ios-thunderstorm-outline", - "icon": "" - }, - { - "text": "ion-ios-snowy", - "value": "ion-ios-snowy", - "icon": "" - }, - { - "text": "ion-ios-moon", - "value": "ion-ios-moon", - "icon": "" - }, - { - "text": "ion-ios-moon-outline", - "value": "ion-ios-moon-outline", - "icon": "" - }, - { - "text": "ion-ios-cloudy-night", - "value": "ion-ios-cloudy-night", - "icon": "" - }, - { - "text": "ion-ios-cloudy-night-outline", - "value": "ion-ios-cloudy-night-outline", - "icon": "" - } - ], - -}; \ No newline at end of file diff --git a/OpenAuth.Mvc/Content/styles/webApp.css b/OpenAuth.Mvc/Content/styles/webApp.css deleted file mode 100644 index c71afd39..00000000 --- a/OpenAuth.Mvc/Content/styles/webApp.css +++ /dev/null @@ -1,608 +0,0 @@ -::-webkit-scrollbar-track{border-radius: 10px;-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);} -::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.05);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);} -::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.2);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);} -::-webkit-scrollbar{width: 16px;height: 16px;} -::-webkit-scrollbar-track, -::-webkit-scrollbar-thumb{border-radius: 999px;border: 5px solid transparent;} -::-webkit-scrollbar-track{box-shadow: 1px 1px 5px rgba(0,0,0,.2) inset;} -::-webkit-scrollbar-thumb{min-height: 20px;background-clip: content-box;box-shadow: 0 0 0 5px rgba(0,0,0,.2) inset;} -::-webkit-scrollbar-corner{background: transparent;} - -body{overflow:hidden;margin:0px;padding:0px;font-family:微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;color:#000000;} -img { - vertical-align: middle; - border:0; -} -.form-control:focus { - border-color: #4E8EF7; - outline: 0; - -webkit-box-shadow: none; - box-shadow: none; -} - -.lr-app-tool-bar { - border-bottom:1px solid #ccc; - height:50px; -} -.leftToolbar { - float:left; - margin-top:8px; - margin-left:8px; -} -.rightToolbar { - float:right; - margin-top:8px; - margin-right:8px; -} - - -.lr-app-left-bar { - border-right:1px solid #ccc; - width:300px; - float:left; -} - -.lr-app-tabctrl .lr-app-tabTool lrapp-toggleb { - margin: -3px -10px 0px 165px; -} -.lr-app-tabctrl .lr-app-tabContent { - height:100px; - border-bottom:1px solid #ccc; - overflow-y:auto; -} - -.lr-app-tabctrl .lr-app-tabTool, -.lr-app-pageDirectory .lr-app-pageTool, -.lr-app-component .lr-app-componentTool { - height:32px; - border-bottom:1px solid #ccc; -} -.lr-app-tabctrl .lr-app-tabTool span, -.lr-app-pageDirectory .lr-app-pageTool span, -.lr-app-component .lr-app-componentTool span{ - line-height:31px; - padding-left:10px; -} -.lr-app-pageTool .lrbtnAddPage { - float:right; - height:31px; - font-size: 13px; - color: #979797; - font-weight: 500; - padding-right:10px; -} -.lr-app-pageTool .lrbtnAddPage #addPhonePage:hover -{ - color:#4f8ef7 -} -.lr-app-pageTool .lrbtnAddPage span { - margin-right:5px; -} -.lr-app-pageTool ul li span{ - text-align: center; - display: block; - margin-top: 0px; -} -.lr-app-pageTool ul li img { - margin: auto; - text-align: center; - display: block; - box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2); -} -.lr-app-pageTool ul li a:focus, .lr-app-pageTool ul li a:hover { - color: #333; - text-decoration: none; - background-color: #fff; -} - -.lr-app-pageDirectory .lr-app-pageContent { - height:250px; - border-bottom:1px solid #ccc; - overflow-y:auto; -} - -.lr-app-component .lr-app-componentContent { - overflow-y:auto; - padding-top:15px; - padding-left:15px; -} -.lr-app-componentContent .lr-item-row { - width: 127px; - height: 30px; - line-height: 28px; - float: left; - margin-right: 14px; - margin-bottom: 15px; - border-radius: 5px; - cursor: pointer; - box-shadow: 0px 1px 3px rgba(0,0,0,.2); - color:#616774; - background-color:#F5F6F9; - z-index:100; -} -.lr-app-componentContent .lr-item-row:nth-child(even) { - margin-right: 0px; -} -.lr-app-componentContent .lr-item-row:hover { - box-shadow: 0px 8px 20px rgba(0,0,0,.2); - color:#2E3136; -} -.lr-app-componentContent .lr-item-row:hover i { - color:#4f8ef7; -} -.lr-app-componentContent .lr-item-row i -{ - padding-left: 10px; - padding-right: 8px; - color: #2c3849; - opacity: 0.9; -} - -/*右侧属性栏*/ -.lr-app-right-bar { - border-left:1px solid #ccc; - width:300px; - /*float:right;*/ - position:absolute; - right:0; -} -.lr-app-right-bar .lr-app-right-header { - height:32px; - border-bottom:1px solid #ccc; -} -.lr-app-right-bar .lr-app-right-header .lr-app-title { - line-height: 31px; - padding-left: 10px; -} - -.lr-app-right-bar .lr-app-right-header .lr-app-typePage a -{ - color: #c0c2c7; - text-decoration: none; - transition: 0.1s linear; - -webkit-transition: 0.1s linear; - cursor: pointer; - line-height: 31px; - padding-left: 10px; -} -.lr-app-right-bar .lr-app-right-header .lr-app-typePage a:hover -{ - color: #4084f6; -} - -.lr-app-right-bar .lr-app-right-header .lr-app-slash{ - display: inline-block; - margin-left: 5px; - margin-right: 5px; - color: #c0c2c7; -} -.lr-app-right-bar .btn-group { - margin-top:-2px; -} -.lr-app-right-bar .btn-group .btn { - border: 1px solid #ccc !important; - color:#ccc; - height:34.5px; -} -.lr-app-right-bar .btn-group .btn:hover { - color:#4F8DF6; - background-color:#fff; -} -.lr-app-right-bar .btn-group .btn:focus { - color:#ccc; - background-color:#fff; - outline-width:0px !important; -} -.lr-app-right-bar .btn-group .btn.actived { - background-color: #f1f3f6; - color:#4F8DF6; -} - -.lr-app-right-bar .btn-group .btn.b2 { - width:50px; -} -.lr-app-right-bar .btn-group .btn.b4 { - width:52px; -} - - - - -.lr-app-mid-bar { - background-color:#EFF1F5; - float:left; -} -.lr-app-mid-bar .lr-app-phoneTool { - height: 32px; - background-color:#fff; - text-align:right; - padding-top: 4px; - border-bottom:1px solid #ccc; -} -.lr-app-mid-bar .lr-app-phoneTool select { - background-color:rgba(0, 0, 0, 0.00); - border: 0; -} -.lr-app-mid-bar .lr-app-phone { - height: 765.284px; - overflow: hidden; - transition: out 0s ease; - margin-top: 58px; - margin-bottom: 63px; - margin-left: 0px; - background-image: url("../images/iphone-skin.png"); - background-size: 387.578px 765.284px; - background-position: 50% 0px; - background-repeat: no-repeat; - margin: auto; -} -.lr-app-iframe { - border-radius: 2px; - box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.05); - margin:auto; -} -.lr-app-iframe .iframe-content{ - background-color: white; - border: none; - float: left; -} - -/*手机状态栏*/ -.app-status { - position: absolute; - z-index: 0; - height: 20px; - box-sizing: border-box; - margin-bottom: -20px; - display: block; - pointer-events: none; - font-size: 12px; - font-family: Helvetica, arial, sans-serif; - background-size: 100%; - width:100%; - text-align: -webkit-center; - text-align: -moz-center; - width: -moz-available; -} - .app-status .connection { - line-height: 20px; - margin-left: 3px; } - - -/*树形插件样式*/ -.bbit-tree-node { - color: #4a4d55; -} -.bbit-tree-node a span { - color: #4a4d55; -} - -.bbit-tree-node-el { - line-height: 30px; - cursor: pointer; -} - -.bbit-tree-node .bbit-tree-selected { - background-color: #387EF5; - color: #fff; -} - -/*盒子*/ -.lr-box { - border-bottom:1px solid #ccc; -} -.lr-box .lr-box-toggle { - color: #979797; - position: relative; - margin-left: 10px; - font-size: 14px; - font-weight: 500; - transition: .2s color linear; - cursor: pointer; -} -.lr-box.expanded .lr-box-toggle { - color:#387EF5; -} -.caret { - display: inline-block; - width: 0; - height: 0; - margin-left: 2px; - vertical-align: middle; - border-top: 4px solid; - border-right: 4px solid transparent; - border-left: 4px solid transparent; -} -.lr-box .lr-box-toggle .caret { - margin-right: -2px; - margin-left: 10px; - border-bottom: 4px solid transparent; - border-top: 4px solid transparent; - border-left: 4px solid #222429; - display: inline-block; - height: 0; - vertical-align: middle; - width: 0; -} -.lr-box .lr-box-toggle .caret{ - position: absolute; - top: 4px; - right: 10px; - transition: .2s transform; - transform-origin: left; -} -.lr-box.expanded .lr-box-toggle .caret { - transform: rotate3d(0, 0, 1, 90deg); -} - -.lr-box .lr-box-content { - display:block; - transition: .2s max-height ease-in-out, .2s opacity; - max-height:0; - opacity:0; -} -.lr-box.expanded .lr-box-content { - display:block; - max-height:500px; - opacity:1; -} - -.lr-box .form-group { - margin:0px; - padding:0px 10px 10px; -} -.lr-box .control-label { - color:#a8aeb7; - width:74px; -} - -.lr-box .form-control { - display: inline-block; - width:205px; -} -.lr-box .form-control.W { - width:100%; -} - -.lr-box .form-control:focus { - border-color: #4E8EF7; - outline: 0; - -webkit-box-shadow: none; - box-shadow:none; - /*-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(78, 142, 247,.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(78, 142, 247,.6);*/ -} - -.lr-box .form-toggle { - height:34px; - padding:0px 10px 16px; -} -.lr-box lrapp-toggle { - margin: 0px -10px 0px 160px; -} - -/*toggle*/ - -lrapp-toggleb, -lrapp-toggle -{ - cursor: pointer; - display: inline-block; - vertical-align: middle; - height: 24px; - line-height: 22px; - margin: 0px 10px; - font-weight: 400; - font-size: 14px; - color: #ACAFB2; -} - - -lrapp-toggleb .handle, -lrapp-toggle .handle { - position: absolute; - top: 0; - vertical-align: middle; - left: 0; - width: 15px; - height: 15px; - border-radius: 32px; - background-color: #FFF; - box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2); -} -lrapp-toggleb.active .handle, -lrapp-toggle.active .handle { - left: 14px; -} -lrapp-toggleb.animate .handle, -lrapp-toggle.animate .handle { - -webkit-transition: 100ms left ease-in-out; - transition: 100ms left ease-in-out; -} -lrapp-toggleb.active .track, -lrapp-toggle.active .track { - background-color: #6795f5; -} -lrapp-toggleb.animate .track, -lrapp-toggle.animate .track { - -webkit-transition: 100ms background-color ease-in-out; - transition: 100ms background-color ease-in-out; -} -lrapp-toggleb .track, -lrapp-toggle .track { - display: inline-block; - vertical-align: middle; - position: relative; - background-color: #F0F1F5; - width: 27px; - height: 16px; - border-radius: 32px; -} -lrapp-toggleb span, -lrapp-toggle span { - display: inline-block; - vertical-align: middle; -} -lrapp-toggleb.active .left-text, -lrapp-toggle.active .left-text { - color: #ACAFB2; -} -lrapp-toggleb span:first-child, -lrapp-toggle span:first-child { - margin-right: 10px; -} -lrapp-toggleb .left-text, -lrapp-toggle .left-text { - color: #6795f5; -} -lrapp-toggleb.active .right-text, -lrapp-toggle.active .right-text { - color: #6795f5; -} -lrapp-toggleb span:last-child, -lrapp-toggle span:last-child { - margin-left: 10px; -} - -/*lr-app-splash*/ -.lr-app-splash { - position:absolute; - background-color:#fff; - top:0; - left:0; - text-align:center; -} -.lr-app-splash img { - height:120px; - width:120px; - background-color:#fff; - border-radius:10px; - box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2); -} -.lr-app-splash div { - margin-top:10px; - font-size:16px; - color:#444; -} - - -.mtip.success .mclose{background-position:-16px 0} -.mtip.error .mclose{background-position:-8px 0} -.mtip.warning .mclose{background-position:0 0} -.mtip.success .mclose:hover{background-position:-16px -8px} -.mtip.error .mclose:hover{background-position:-8px -8px} -.mtip.warning .mclose:hover{background-position:0 -8px} -.mtip .micon{background-image:url("../images/micon.png");background-repeat:no-repeat;display:inline-block;width:20px;height:16px;padding-right:10px;margin-top:0px;} -.mtip.error .micon{background-position:0 0;vertical-align:top} -.mtip.success .micon{background-position:0 -66px;vertical-align:top} -.mtip.warning .micon{background-position:0 -132px;vertical-align:top} -.mtip>span{vertical-align:3px;line-height:1;display:inline-block;width:auto;font-size:16px;} -.mtip{border-radius:0 0 4px 4px;padding-top:7px;padding-left:25px;padding-right:25px;padding-bottom:5px;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.2);box-shadow:0 4px 4px rgba(0,0,0,0.2)} -.mtip.error{background-color:#cd3237;background-image:-moz-linear-gradient(top,#e34447,#cd3237);background-image:-ms-linear-gradient(top,#e34447,#cd3237);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e34447),to(#cd3237));background-image:-webkit-linear-gradient(top,#e34447,#cd3237);background-image:-o-linear-gradient(top,#e34447,#cd3237);background-image:linear-gradient(top,#e34447,#cd3237);border:1px solid #ca3e3e} -.mtip.success{background-color:#43ab00;background-image:-moz-linear-gradient(top,#43ab00,#388e00);background-image:-ms-linear-gradient(top,#43ab00,#388e00);background-image:-webkit-gradient(linear,0 0,0 100%,from(#43ab00),to(#388e00));background-image:-webkit-linear-gradient(top,#43ab00,#388e00);background-image:-o-linear-gradient(top,#43ab00,#388e00);background-image:linear-gradient(top,#43ab00,#388e00);border:1px solid #338100} -.mtip.warning{background-color:#0f76cd;background-image:-moz-linear-gradient(top,#0f76cd,#086cc1);background-image:-ms-linear-gradient(top,#0f76cd,#086cc1);background-image:-webkit-gradient(linear,0 0,0 100%,from(#0f76cd),to(#086cc1));background-image:-webkit-linear-gradient(top,#0f76cd,#086cc1);background-image:-o-linear-gradient(top,#0f76cd,#086cc1);background-image:linear-gradient(top,#0f76cd,#086cc1);border:1px solid #006096} -.tip_container{display:none;z-index: 9999;position: fixed;top: 0;text-align: left;width: auto;_width: auto;} - - - -.ui-select[disabled],fieldset[disabled] .ui-select{background-color:#eee;opacity:1;cursor:default;background-image:none;opacity: 0.6;} -.ui-select{cursor:pointer;outline: 0;width: auto;height: 34px;line-height:32px;position: relative;background: #fff url(../images/a2.png) no-repeat right center;} -.ui-select-focus{border-color:#337ab7;} -.ui-select .ui-select-text{box-shadow:none;-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;border: 1px solid #ccc;padding-left:5px;height: 34px;line-height: 32px;border-radius:4px;} -.ui-select-option{margin:0px;padding:0px;width: 100%;display: none;position: absolute;left:0px;top: 34px;background-color: #fff;overflow:hidden;border: 1px solid #ccc;border-top: 0;z-index: 9999;} -.ui-select-option .ui-select-option-content{overflow-y: auto;} -.ui-select-option .ui-select-option-content ul { padding:0px;margin:0px;} -.ui-select-option li{min-height: 32px;line-height: 32px;overflow: hidden;cursor: pointer;} -.ui-select-option li.on{background-color: #eee;} -.ui-select-option li.liactive{background-color: #337ab7;color:#fff;} -.ui-select-option-search{position: relative;} -.ui-select-option-search .form-control{box-shadow:none;border-color:#ccc;border:none;border-top: 1px solid #ccc;height: 25px;margin:0px;} -.ui-select-option-search .input-query{position:absolute;right:4px;top:1px;color:#ccc;font-size: 16px;} -.ui-underline .ui-select-text{box-shadow: none;border-top: 0px;border-left: 0px;border-right: 0px;border-bottom: 1px solid #ccc;height:25px;} - - -.color-square { - display: inline-block; - width: 20px; - height: 20px; - border-width: 1px; - border-style: solid; - border-radius: 4px; - background: gray; - vertical-align: middle; } - .color-square.space-right { - margin-right: 5px; } - .color-square.light-bg { - background-color: #fff; } - .color-square.light-border { - border-color: #ddd; } - .color-square.stable-bg { - background-color: #f8f8f8; } - .color-square.stable-border { - border-color: #b2b2b2; } - .color-square.positive-bg { - background-color: #387ef5; } - .color-square.positive-border { - border-color: #0c60ee; } - .color-square.calm-bg { - background-color: #11c1f3; } - .color-square.calm-border { - border-color: #0a9dc7; } - .color-square.assertive-bg { - background-color: #ef473a; } - .color-square.assertive-border { - border-color: #e42112; } - .color-square.balanced-bg { - background-color: #33cd5f; } - .color-square.balanced-border { - border-color: #28a54c; } - .color-square.energized-bg { - background-color: #ffc900; } - .color-square.energized-border { - border-color: #e6b500; } - .color-square.royal-bg { - background-color: #886aea; } - .color-square.royal-border { - border-color: #6b46e5; } - .color-square.dark-bg { - background-color: #444; } - .color-square.dark-border { - border-color: #111; } - -.ui-select-text .ion, -.ui-select-option-content .ion -{ - font-size: 24px; - vertical-align: middle; - margin-right: 6px; -} - - - -/*扩展颜色*/ -.bgcolor_a { - background: #7E9DE7; -} -.bgcolor_b { - background: #F6C34C; -} -.bgcolor_c { - background: #46C6C8; -} -.bgcolor_d { - background: #FF6666; -} -.bgcolor_e { - background: #9CCC65; -} -.bgcolor_f { - background: #14c760; -} -.bgcolor_g { - background:#886aea; -} -.bgcolor_h { - background: #DCDCDC; -} - - diff --git a/OpenAuth.Mvc/OpenAuth.Mvc.csproj b/OpenAuth.Mvc/OpenAuth.Mvc.csproj index 3d27bef6..4d1067c8 100644 --- a/OpenAuth.Mvc/OpenAuth.Mvc.csproj +++ b/OpenAuth.Mvc/OpenAuth.Mvc.csproj @@ -914,12 +914,9 @@ - - - @@ -929,7 +926,6 @@ -