diff --git a/public/build.json b/public/build.json index 40d1940661..c8a36e3e34 100644 --- a/public/build.json +++ b/public/build.json @@ -16,9 +16,10 @@ "lib/public/css/bootstrap.css", "lib/public/css/bootstrap-responsive.css", "lib/public/css/font-awesome.css", - "lib/public/css/legacy/forms.css", - "lib/public/css/ui/common.css", - "lib/public/css/views/tree_grid.css", + "lib/public/css/forms.css", + "lib/public/css/common.css", + "lib/public/css/tree_grid.css", + "lib/public/css/nprogress.css", ] }, @@ -35,6 +36,7 @@ "lib/public/js/lib/jquery/jquery.hotkeys.js", "lib/public/js/lib/center_image.js", "lib/public/js/lib/bootstrap.min.js", + "lib/public/js/lib/nprogress.js", "lib/public/js/wn/provide.js", "lib/public/js/wn/class.js", diff --git a/public/css/ui/common.css b/public/css/common.css similarity index 100% rename from public/css/ui/common.css rename to public/css/common.css diff --git a/public/css/legacy/forms.css b/public/css/forms.css similarity index 100% rename from public/css/legacy/forms.css rename to public/css/forms.css diff --git a/public/css/legacy/body.css b/public/css/legacy/body.css deleted file mode 100644 index 91596c9009..0000000000 --- a/public/css/legacy/body.css +++ /dev/null @@ -1,87 +0,0 @@ -html { - margin: 0px; - padding: 0px; -} - -footer { - color: inherit; - padding: 10px; - font-size: 12px; - line-height: 1.7; -} - -label { - padding-top: 15px; - color: #404040; -} - -.link_type { - padding:2px; - color: #0088cc; - cursor: pointer; -} - -.link_type:hover { - color: #005580; - text-decoration: underline; -} - -:focus { -moz-outline-style:none; } - -table.simpletable { border-collapse: collapse; margin-bottom: 10px;} -table.simpletable td {border: 1pt solid #000; vertical-align: top; padding: 2px; } - -div.fix_ff_cursor { overflow: auto; } - -/* --- Layout --- */ - -div.comment { color: #444; } - -.help { - margin-bottom: 3px; - color: #999; -} - -div#body_div { - padding-right: 7px; - min-height: 400px; -} - -.background-fade-in { - -webkit-transition: background 1s ease-in; /* property duration timing-function delay */ - -moz-transition: background 1s ease-in; - -o-transition: background 1s ease-in; - transition: background 1s ease-in; -} - -div.no_script { - display: none; -} - -div.loading_div { - background-color: #FFFFCC; - z-index: 1999; - right: 5px; - width: 90px; - display: none; - text-align: center; - padding: 2px; - border: 1px solid #FF4; -} - - -.shadow { - -moz-box-shadow: 0px 2px 2px #888; - -webkit-box-shadow: 0px 2px 2px #888; - box-shadow: 0px 2px 2px #888; -} - -.round { - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} - -.clear { - clear: both; -} \ No newline at end of file diff --git a/public/css/legacy/fields.css b/public/css/legacy/fields.css deleted file mode 100644 index 314513fc4a..0000000000 --- a/public/css/legacy/fields.css +++ /dev/null @@ -1,13 +0,0 @@ - -/* - * lib/public/css/legacy/fields.css - */ -/* Documents */ - - - - -.link-field .btn { - padding-left: 6px; - padding-right: 6px; -} diff --git a/public/css/legacy/grid.css b/public/css/legacy/grid.css deleted file mode 100644 index 0efb718280..0000000000 --- a/public/css/legacy/grid.css +++ /dev/null @@ -1,116 +0,0 @@ - -.grid_wrapper { - position: relative; - overflow: auto; - border: 1px solid #AAA; - width: 100%; - margin-bottom: 8px; - background-color: #f8f8f8; -} - -div.grid_tbarlinks { - border-bottom: 0px; - padding: 4px 4px 2px 4px; - width: 190px; - float: right; - margin-right: 12px; - - -webkit-border-top-left-radius: 5px; - -webkit-border-top-right-radius: 5px; - -moz-border-radius-topleft: 5px; - -moz-border-radius-topright: 5px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - - background: #dddddd; /* Old browsers */ - background: -moz-linear-gradient(top, #dddddd 0%, #bbbbbb 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dddddd), color-stop(100%,#bbbbbb)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #dddddd 0%,#bbbbbb 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #dddddd 0%,#bbbbbb 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(top, #dddddd 0%,#bbbbbb 100%); /* IE10+ */ - background: linear-gradient(to bottom, #dddddd 0%,#bbbbbb 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dddddd', endColorstr='#bbbbbb',GradientType=0 ); /* IE6-9 */ - -} - -.grid_tab_wrapper { - position: absolute; - top: 40px; - border-bottom: 1px solid #DDD; -} - -.grid_table, .grid_head_table { - table-layout: fixed; - border-collapse: collapse; - /*width: 100%;*/ -} - -.grid_cell { - border-right: 1px solid #ddd; - padding: 0px; - background-color: #fff; -} - -.grid_head_wrapper { - position: absolute; - z-index: 1; - height: 40px; - padding: 0px; - overflow: hidden; - /*background-color: #fff;*/ -} - -.grid_head_table td { - border-right: 1px solid #AAA; - border-bottom: 1px solid #AAA; - height: 40px; - padding: 0px; - vertical-align: middle; - font-weight: bold; - text-align: center; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - - background: #eeeeee; /* Old browsers */ - background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* IE10+ */ - background: linear-gradient(to bottom, #eeeeee 0%,#cccccc 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */ -} - -.grid_selector { - padding: 1px; - border-right: 1px solid #DDD; - width: 20px; - background-color: #fff; -} - -.grid_cell_div { - padding: 2px; - cursor: pointer; - overflow: hidden; - border: 2px solid #FFF; -} - -.grid_cell_div_selected { - border: 2px solid #88f; -} - -.grid_cell_div input, .grid_cell_div select, .grid_cell_div div input { - margin: 0px; - width: 90%; - } - -.grid_cell_div textarea { - border: 3px solid #abf; - height:200px; - width: 300px; - z-index: 1; - position:absolute; -} - -.gridDivSelected option { border: 0px; } \ No newline at end of file diff --git a/public/css/legacy/report.css b/public/css/legacy/report.css deleted file mode 100644 index 207e9eefeb..0000000000 --- a/public/css/legacy/report.css +++ /dev/null @@ -1,179 +0,0 @@ - -/* Reports */ - -div.report_grid_area { - position: relative; - padding: 8px; -} - - -div.report_tab { - border: 1px solid #AAA; - position: relative; - overflow: auto; -} - -div.report_no_data { - padding: 8px; - background-color: #EEE; - border: 1px solid #DDD; - position: absolute; - margin-left: 40%; - margin-top: 50px; - display: none; -} - -div.report_htitle { - float: left; - padding: 2px; - font-size: 14px; - font-weight: bold; - margin-left: 4px; - color: #665; - /*font-weight: bold;*/ -} - -div.report_tbar { - background-color: #EEF; - border: 1px solid #CCF; - border-bottom: 0px; - height: 28px; -} - -div.report_tbar table{ - width: 100%; -} -div.report_tbar table td { - -} -div.report_tbar table td div { - position: relative; -} -div.report_tbar button, div.report_tbar select, div.report_tbar img { - font-size: 11px; - margin: 0px; -} - -div.report_head_wrapper { - position: absolute; - height: 24px; - top: 0px; - z-index: 1; -} - -div.report_tab_wrapper { - position: absolute; - border-bottom: 1px solid #AAA; - border-top: 1px solid #AAA; -} - -div.report_tab_wrapper table, div.report_head_wrapper table { - table-layout: fixed; - border-collapse: collapse; - /*width: 100%;*/ -} - -div.report_tab_wrapper table td, div.report_head_wrapper table td { - border-left: 1px solid #AAA; - border-right: 1px solid #AAA; - border-bottom: 1px solid #AAA; - overflow: hidden; - padding: 0px; -} - -div.report_tab_wrapper table td div, div.report_head_wrapper table td div { - padding: 3px; - overflow: hidden; -} - -.report_head_cell { - background-color: #EEE; - border-bottom: 1px solid #AA9; - text-align: center; - font-weight: bold; -} -.report_head_cell div { - color:#222; - height: 18px; -} - - -/* FINDER */ - -div.finder_wrapper { -} - -div.finder_body_area { - margin: 16px; -} - -div.finder_body { - display: none; -} - -div.finder_advanced_area table { - width: 80%; -} - -div.finder_advanced_area textarea { - width: 80%; -} - -div.finder_filter_area { - position: relative; -} - -div.filter_head { - font-size: 14px; - margin-bottom: 2px; -} -div.filter_dt_head { - font-size: 14px; - font-weight: bold; - margin-bottom: 2px; -} -table.filter_tab { - width: 96%; - border-collapse: collapse; -} - -table.filter_tab td { - width: 50%; -} - -div.finder_picker_area { - -} -div.builder_field { - margin: 0px; -} -div.builder_dt_head { - font-size: 14px; - font-weight: bold; - margin-bottom: 2px; -} - -div.builder_field table { - width: 90%; - border-collapse: collapse; -} - -div.builder_label { - height: 20px; -} - -div.builder_head { - font-size: 16px; - font-weight: bold; - color: #AB6; -} - -table.builder_tab { - width: 96%; - border-collapse: collapse; -} - -table.builder_tab td { - width: 33%; - padding: 2px; -} \ No newline at end of file diff --git a/public/css/legacy/tabs.css b/public/css/legacy/tabs.css deleted file mode 100644 index c826a1ee30..0000000000 --- a/public/css/legacy/tabs.css +++ /dev/null @@ -1,54 +0,0 @@ - -/******* TABS ********/ - -div.box_label_wrapper { - border-bottom: 6px solid #777; -} - -div.box_label_body { - height: 22px; -} - -ul.box_tabs { - margin: 0px; - padding: 0px; - list-style: none; -} - -ul.box_tabs li { - height: 22px; - float:left; - font-size: 12px; - text-decoration: underline; - - background-color: #DDD; - - margin:0; - margin-left: 4px; - padding:0 0 0 9px; - cursor: pointer; -} - -ul.box_tabs li a { - display:block; - padding:3px 15px 3px 6px; - text-decoration: none; -} - -ul.box_tabs li.box_tab_mouseover { - background-color: #BBB; -} - -ul.box_tabs li.box_tab_selected { - background-color: #777; - - background: -webkit-gradient(linear, left top, left bottom, from(#999), to(#777)); - background: -moz-linear-gradient(top, #999, #777); - - color: #FFF; - font-weight:bold; - -} -ul.box_tabs li.box_tab_selected a { - color: #fff; -} \ No newline at end of file diff --git a/public/css/nprogress.css b/public/css/nprogress.css new file mode 100644 index 0000000000..31ac4023e2 --- /dev/null +++ b/public/css/nprogress.css @@ -0,0 +1,85 @@ +/* Make clicks pass-through */ +#nprogress { + pointer-events: none; + -webkit-pointer-events: none; +} + +/* Make the entire page show a busy cursor */ +.nprogress-busy body { + cursor: wait; +} + +#nprogress .bar { + background: #2ecc71; + + position: fixed; + z-index: 1050; + top: 0; + left: 0; + + width: 100%; + height: 2px; +} + +/* Fancy blur effect */ +#nprogress .peg { + display: block; + position: absolute; + right: 0px; + width: 100px; + height: 100%; + box-shadow: 0 0 10px #2ecc71, 0 0 5px #2ecc71; + opacity: 1.0; + + -webkit-transform: rotate(3deg) translate(0px, -4px); + -moz-transform: rotate(3deg) translate(0px, -4px); + -ms-transform: rotate(3deg) translate(0px, -4px); + -o-transform: rotate(3deg) translate(0px, -4px); + transform: rotate(3deg) translate(0px, -4px); +} + +/* Remove these to get rid of the spinner */ +#nprogress .spinner { + display: block; + position: fixed; + z-index: 1050; + top: 15px; + right: 15px; +} + +#nprogress .spinner-icon { + width: 14px; + height: 14px; + + border: solid 2px transparent; + border-top-color: #fff; + border-left-color: #fff; + border-radius: 10px; + + -webkit-animation: nprogress-spinner 400ms linear infinite; + -moz-animation: nprogress-spinner 400ms linear infinite; + -ms-animation: nprogress-spinner 400ms linear infinite; + -o-animation: nprogress-spinner 400ms linear infinite; + animation: nprogress-spinner 400ms linear infinite; +} + +@-webkit-keyframes nprogress-spinner { + 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } + 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } +} +@-moz-keyframes nprogress-spinner { + 0% { -moz-transform: rotate(0deg); transform: rotate(0deg); } + 100% { -moz-transform: rotate(360deg); transform: rotate(360deg); } +} +@-o-keyframes nprogress-spinner { + 0% { -o-transform: rotate(0deg); transform: rotate(0deg); } + 100% { -o-transform: rotate(360deg); transform: rotate(360deg); } +} +@-ms-keyframes nprogress-spinner { + 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); } + 100% { -ms-transform: rotate(360deg); transform: rotate(360deg); } +} +@keyframes nprogress-spinner { + 0% { transform: rotate(0deg); transform: rotate(0deg); } + 100% { transform: rotate(360deg); transform: rotate(360deg); } +} \ No newline at end of file diff --git a/public/css/views/tree_grid.css b/public/css/tree_grid.css similarity index 100% rename from public/css/views/tree_grid.css rename to public/css/tree_grid.css diff --git a/public/css/ui/ribbons.css b/public/css/ui/ribbons.css deleted file mode 100644 index 1b924c706a..0000000000 --- a/public/css/ui/ribbons.css +++ /dev/null @@ -1,105 +0,0 @@ -/* ribbons */ - -.ribbon-holder { - position: relative; - top: 0; - overflow: hidden; - height: 10em; - float: right; -} - -.ribbon, -.ribbon:hover { - text-decoration: none; -} - -.ribbon { - font-family: Arial, sans-serif; - letter-spacing: -.1px; - opacity: 0.95; - - padding: 0.25em 0; - position: relative; - top: 2.5em; - - /* Defaults friendly for white pages. */ - -moz-box-shadow: 0 0 13px #888; - -webkit-box-shadow: 0 0 13px #888; - color: #FFF; - display: block; - line-height: 1.35em; -} - -.ribbon .text { - padding: 0.1em 3em; -} - -.ribbon-right .ribbon { - -moz-transform: rotate(45deg); - -webkit-transform: rotate(45deg); - right: -2.6em; -} - -.ribbon-left .ribbon { - -moz-transform: rotate(-45deg); - -webkit-transform: rotate(-45deg); - left: -2.6em; -} - -.white.ribbon { - color: #111; - background-color: #F5F5F5; - background: -webkit-gradient(linear, left bottom, left top, from(#f3f3f3), to(#fff)); - -moz-box-shadow: 0 0 13px #999; - -webkit-box-shadow: 0 0 13px #999; - text-shadow: 0 0 .05em; -} - -.white.ribbon .text { - border: 1px solid #cecece; -} - -.red.ribbon { - background-color: #9a0000; - background: -webkit-gradient(linear, left bottom, left top, from(#9a0000), to(#a90000)); -} - -.red.ribbon .text { - border: 1px solid #bf6060; -} - -.green.ribbon { - background-color: #006e00; - background: -webkit-gradient(linear, left bottom, left top, from(#006e00), to(#007200)); -} - -.green.ribbon .text { - border: 1px solid #6bac6b; -} - -.darkblue.ribbon { - background-color: #121621; - color: #ecedee; -} - -.darkblue.ribbon .text { - border: 1px solid #53565e; -} - -.orange.ribbon { - background-color: #E57504; - background: -webkit-gradient(linear, left bottom, left top, from(#dc7202), to(#ee7906)); -} - -.orange.ribbon .text { - border: 1px solid #ebaa65; -} - -.gray.ribbon { - background-color: #6d6d6d; - background: -webkit-gradient(linear, left bottom, left top, from(#6a6a6a) to(#6d6d6d)); -} - -.gray.ribbon .text { - border: 1px solid #a4a4a4; -} diff --git a/public/js/lib/mustache.js b/public/js/lib/mustache.js deleted file mode 100644 index 641cebd574..0000000000 --- a/public/js/lib/mustache.js +++ /dev/null @@ -1,536 +0,0 @@ -/*! - * mustache.js - Logic-less {{mustache}} templates with JavaScript - * http://github.com/janl/mustache.js - */ -var Mustache = (typeof module !== "undefined" && module.exports) || {}; - -(function (exports) { - - exports.name = "mustache.js"; - exports.version = "0.5.0-dev"; - exports.tags = ["{{", "}}"]; - exports.parse = parse; - exports.compile = compile; - exports.render = render; - exports.clearCache = clearCache; - - // This is here for backwards compatibility with 0.4.x. - exports.to_html = function (template, view, partials, send) { - var result = render(template, view, partials); - - if (typeof send === "function") { - send(result); - } else { - return result; - } - }; - - var _toString = Object.prototype.toString; - var _isArray = Array.isArray; - var _forEach = Array.prototype.forEach; - var _trim = String.prototype.trim; - - var isArray; - if (_isArray) { - isArray = _isArray; - } else { - isArray = function (obj) { - return _toString.call(obj) === "[object Array]"; - }; - } - - var forEach; - if (_forEach) { - forEach = function (obj, callback, scope) { - return _forEach.call(obj, callback, scope); - }; - } else { - forEach = function (obj, callback, scope) { - for (var i = 0, len = obj.length; i < len; ++i) { - callback.call(scope, obj[i], i, obj); - } - }; - } - - var spaceRe = /^\s*$/; - - function isWhitespace(string) { - return spaceRe.test(string); - } - - var trim; - if (_trim) { - trim = function (string) { - return string == null ? "" : _trim.call(string); - }; - } else { - var trimLeft, trimRight; - - if (isWhitespace("\xA0")) { - trimLeft = /^\s+/; - trimRight = /\s+$/; - } else { - // IE doesn't match non-breaking spaces with \s, thanks jQuery. - trimLeft = /^[\s\xA0]+/; - trimRight = /[\s\xA0]+$/; - } - - trim = function (string) { - return string == null ? "" : - String(string).replace(trimLeft, "").replace(trimRight, ""); - }; - } - - var escapeMap = { - "&": "&", - "<": "<", - ">": ">", - '"': '"', - "'": ''' - }; - - function escapeHTML(string) { - return String(string).replace(/&(?!\w+;)|[<>"']/g, function (s) { - return escapeMap[s] || s; - }); - } - - /** - * Adds the `template`, `line`, and `file` properties to the given error - * object and alters the message to provide more useful debugging information. - */ - function debug(e, template, line, file) { - file = file || "