Commit 999a6ca9 by Cyril Vazquez

Moved dependency/public resources to web/public to remove the symlink

parent 1ca56705
......@@ -238,60 +238,60 @@ class Document extends \dependency\xml\Document
}
// add css
$this->addStyle("/public/dependency/html/css/bootstrap-toggle/bootstrap-toggle.css");
//$this->addStyle("/public/dependency/html/css/bootstrap-daterangepicker/daterangepicker.css");
$this->addStyle("/public/css/bootstrap-toggle/bootstrap-toggle.css");
//$this->addStyle("/public/css/bootstrap-daterangepicker/daterangepicker.css");
// Add js scripts
$this->addScript("/public/dependency/html/js/jQuery_1.11.0/jQuery.js");
$this->addScript("/public/dependency/html/js/jQueryUI_1.12.1/jquery-ui.min.js");
$this->addScript("/public/dependency/html/js/jQueryUI_touch-punch_0.2.3/jquery.ui.touch-punch.js");
$this->addScript("/public/js/jQuery_1.11.0/jQuery.js");
$this->addScript("/public/js/jQueryUI_1.12.1/jquery-ui.min.js");
$this->addScript("/public/js/jQueryUI_touch-punch_0.2.3/jquery.ui.touch-punch.js");
//less compiler
$this->addScript("/public/dependency/html/js/less_1.7.0/less.js");
$this->addScript("/public/js/less_1.7.0/less.js");
//bootstrap.affix
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/affix.js");
$this->addScript("/public/js/bootstrap_3.1.1/affix.js");
//bootstrap.alert
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/alert.js");
$this->addScript("/public/js/bootstrap_3.1.1/alert.js");
//bootstrap.button
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/button.js");
$this->addScript("/public/js/bootstrap_3.1.1/button.js");
//bootstrap.carousel
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/carousel.js");
$this->addScript("/public/js/bootstrap_3.1.1/carousel.js");
//bootstrap.collapse
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/collapse.js");
$this->addScript("/public/js/bootstrap_3.1.1/collapse.js");
//bootstrap.dropdown
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/dropdown.js");
$this->addScript("/public/js/bootstrap_3.1.1/dropdown.js");
//bootstrap.modal
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/modal.js");
$this->addScript("/public/js/bootstrap_3.1.1/modal.js");
//bootstrap.tooltip
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/tooltip.js");
$this->addScript("/public/js/bootstrap_3.1.1/tooltip.js");
//bootstrap.popover
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/popover.js");
$this->addScript("/public/js/bootstrap_3.1.1/popover.js");
//bootstrap.scrollspy
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/scrollspy.js");
$this->addScript("/public/js/bootstrap_3.1.1/scrollspy.js");
//bootstrap.tab
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/tab.js");
$this->addScript("/public/js/bootstrap_3.1.1/tab.js");
//bootstrap.transition
$this->addScript("/public/dependency/html/js/bootstrap_3.1.1/transition.js");
$this->addScript("/public/js/bootstrap_3.1.1/transition.js");
//metisMenu
$this->addScript("/public/dependency/html/js/metisMenu_1.0.1/metisMenu.js");
$this->addScript("/public/js/metisMenu_1.0.1/metisMenu.js");
//dataForm
$this->addScript("/public/dependency/html/js/dataForm_0.0.1/dataForm.js");
$this->addScript("/public/js/dataForm_0.0.1/dataForm.js");
//gritter
$this->addScript("/public/dependency/html/js/gritter_1.7.4/gritter.min.js");
$this->addScript("/public/dependency/html/js/gritter_1.7.4/gritter.js");
$this->addScript("/public/js/gritter_1.7.4/gritter.min.js");
$this->addScript("/public/js/gritter_1.7.4/gritter.js");
//typeahead
$this->addScript("/public/dependency/html/js/typeahead_0.10.2/typeahead.js");
$this->addScript("/public/js/typeahead_0.10.2/typeahead.js");
//$this->addScript("/public/dependency/html/js/bootstrap-daterangepicker/moment.min.js");
//$this->addScript("/public/dependency/html/js/bootstrap-daterangepicker/daterangepicker.js");
//$this->addScript("/public/js/bootstrap-daterangepicker/moment.min.js");
//$this->addScript("/public/js/bootstrap-daterangepicker/daterangepicker.js");
$this->addScript("/public/dependency/html/js/konami-code/jquery.raptorize.1.0.js");
$this->addScript("/public/js/konami-code/jquery.raptorize.1.0.js");
$this->addScript("/public/dependency/html/js/bootstrap-tree/bootstrap-tree.js");
$this->addScript("/public/dependency/html/js/dataList_0.0.1/dataList.js");
$this->addScript("/public/js/bootstrap-tree/bootstrap-tree.js");
$this->addScript("/public/js/dataList_0.0.1/dataList.js");
//$this->addScript("/public/dependency/html/js/webodf.js-0.5.8/webodf.js");
//$this->addScript("/public/js/webodf.js-0.5.8/webodf.js");
}
......
......@@ -44,7 +44,7 @@ class DataTable
$element->addHtmlClass("dataTable");
$this->element->ownerDocument->addScript('/public/dependency/html/js/dataTables_1.10.5/dataTables.min.js');
$this->element->ownerDocument->addScript('/public/js/dataTables_1.10.5/dataTables.min.js');
$this->parameters->sPaginationType = "full_numbers";
}
......@@ -248,7 +248,7 @@ EOS;
$this->columnFilter->sPlaceHolder = $placeHolder;
}
$this->element->ownerDocument->addScript('/public/dependency/html/js/dataTables_1.10.5/dataTables.columnFilter.js');
$this->element->ownerDocument->addScript('/public/js/dataTables_1.10.5/dataTables.columnFilter.js');
}
public function setColumnFilter($index, $type, $values=array())
......
......@@ -90,7 +90,7 @@ class datePicker
$format = str_replace('l', 'DD', $format); // Full day name
$this->parameters->format = $format;
$this->element->ownerDocument->addScript('/public/dependency/html/js/datePicker/bootstrap-datepicker.js');
$this->element->ownerDocument->addScript('/public/js/datePicker/bootstrap-datepicker.js');
}
/*
{
......@@ -108,8 +108,8 @@ class datePicker
$translator = $view->translator;
$this->parameters->language = $translator->lang;
if (\laabs::hasPublicResource('public/dependency/html/js/datePicker/locales/bootstrap-datepicker.' . $translator->lang . '.js')) {
$view->addScript('/public/dependency/html/js/datePicker/locales/bootstrap-datepicker.' . $translator->lang . '.js');
if (\laabs::hasPublicResource('public/js/datePicker/locales/bootstrap-datepicker.' . $translator->lang . '.js')) {
$view->addScript('/public/js/datePicker/locales/bootstrap-datepicker.' . $translator->lang . '.js');
}
}
......
......@@ -101,9 +101,9 @@ class dateRangePicker
$format = str_replace('l', 'DD', $format); // Full day name
$this->parameters->locale->format = $format;
$this->element->ownerDocument->addScript("/public/dependency/html/js/bootstrap-daterangepicker/moment.min.js");
$this->element->ownerDocument->addScript('/public/dependency/html/js/bootstrap-daterangepicker/daterangepicker.js');
$this->element->ownerDocument->addStyle('/public/dependency/html/css/bootstrap-daterangepicker/daterangepicker.css');
$this->element->ownerDocument->addScript("/public/js/bootstrap-daterangepicker/moment.min.js");
$this->element->ownerDocument->addScript('/public/js/bootstrap-daterangepicker/daterangepicker.js');
$this->element->ownerDocument->addStyle('/public/css/bootstrap-daterangepicker/daterangepicker.css');
}
/*
{
......
// Center-align a block level element
.center-block() {
display: block;
margin-left: auto;
margin-right: auto;
}
// Sizing shortcuts
.size(@width; @height) {
width: @width;
height: @height;
}
.square(@size) {
.size(@size; @size);
}
// Typography
.text-emphasis-variant(@color) {
color: @color;
a&:hover {
color: darken(@color, 10%);
}
}
//
// Scaffolding
// --------------------------------------------------
body {
margin-top: @navbar-height;
}
\ No newline at end of file
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
// Mixins
// --------------------------
.fa-icon() {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fa-icon-rotate(@degrees, @rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
-webkit-transform: rotate(@degrees);
-ms-transform: rotate(@degrees);
transform: rotate(@degrees);
}
.fa-icon-flip(@horiz, @vert, @rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
-webkit-transform: scale(@horiz, @vert);
-ms-transform: scale(@horiz, @vert);
transform: scale(@horiz, @vert);
}
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
}
// Animated Icons
// --------------------------
.@{fa-css-prefix}-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.@{fa-css-prefix}-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
// Mixins
// --------------------------
.fa-icon() {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fa-icon-rotate(@degrees, @rotation) {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
-webkit-transform: rotate(@degrees);
-ms-transform: rotate(@degrees);
transform: rotate(@degrees);
}
.fa-icon-flip(@horiz, @vert, @rotation) {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
-webkit-transform: scale(@horiz, @vert);
-ms-transform: scale(@horiz, @vert);
transform: scale(@horiz, @vert);
}
// Only display content to screen readers. A la Bootstrap 4.
//
// See: http://a11yproject.com/posts/how-to-hide-content/
.sr-only() {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}
// Use in conjunction with .sr-only to only display content when it's focused.
//
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
//
// Credit: HTML5 Boilerplate
.sr-only-focusable() {
&:active,
&:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
}
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
}
// Rotated & Flipped Icons
// -------------------------
.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
.@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }
// Hook for IE8-9
// -------------------------
:root .@{fa-css-prefix}-rotate-90,
:root .@{fa-css-prefix}-rotate-180,
:root .@{fa-css-prefix}-rotate-270,
:root .@{fa-css-prefix}-flip-horizontal,
:root .@{fa-css-prefix}-flip-vertical {
filter: none;
}
// Screen Readers
// -------------------------
.sr-only { .sr-only(); }
.sr-only-focusable { .sr-only-focusable(); }
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
// Mixins
// --------------------------
.fa-icon-rotate(@degrees, @rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
-webkit-transform: rotate(@degrees);
-moz-transform: rotate(@degrees);
-ms-transform: rotate(@degrees);
-o-transform: rotate(@degrees);
transform: rotate(@degrees);
}
.fa-icon-flip(@horiz, @vert, @rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
-webkit-transform: scale(@horiz, @vert);
-moz-transform: scale(@horiz, @vert);
-ms-transform: scale(@horiz, @vert);
-o-transform: scale(@horiz, @vert);
transform: scale(@horiz, @vert);
}
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: ~"url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}')";
src: ~"url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype')",
~"url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff')",
~"url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype')",
~"url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg')";
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
}
// Spinning Icons
// --------------------------
.@{fa-css-prefix}-spin {
-webkit-animation: spin 2s infinite linear;
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
}
@-moz-keyframes spin {
0% { -moz-transform: rotate(0deg); }
100% { -moz-transform: rotate(359deg); }
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(359deg); }
}
@-o-keyframes spin {
0% { -o-transform: rotate(0deg); }
100% { -o-transform: rotate(359deg); }
}
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
// Stacked Icons
// -------------------------
.@{fa-css-prefix}-stack {
position: relative;
display: inline-block;
width: 2em;
height: 2em;
line-height: 2em;
vertical-align: middle;
}
.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
position: absolute;
left: 0;
width: 100%;
text-align: center;
}
.@{fa-css-prefix}-stack-1x { line-height: inherit; }
.@{fa-css-prefix}-stack-2x { font-size: 2em; }
.@{fa-css-prefix}-inverse { color: @fa-inverse; }
/* the norm */
#gritter-notice-wrapper {
position:fixed;
top:20px;
right:20px;
width:301px;
z-index:9999;
}
#gritter-notice-wrapper.top-left {
left: 20px;
right: auto;
}
#gritter-notice-wrapper.bottom-right {
top: auto;
left: auto;
bottom: 20px;
right: 20px;
}
#gritter-notice-wrapper.bottom-left {
top: auto;
right: auto;
bottom: 20px;
left: 20px;
}
.gritter-item-wrapper {
position:relative;
margin:0 0 10px 0;
background:url('../../img/gritter_1.7.4/ie-spacer.gif'); /* ie7/8 fix */
}
.gritter-top {
/*background:url('../../img/gritter_1.7.4/gritter.png') no-repeat left -30px;*/
background:@light-clr-blue;
height:10px;
}
.hover .gritter-top {
background-position:right -30px;
}
.gritter-bottom {
/*background:url('../../img/gritter_1.7.4/gritter.png') no-repeat left bottom;*/
background:@light-clr-blue;
height:8px;
margin:0;
}
.hover .gritter-bottom {
background-position: bottom right;
}
.gritter-item {
display:block;
/*background:url('../../img/gritter_1.7.4/gritter.png') no-repeat left -40px;*/
background:@light-clr-blue;
color:#eee;
padding:2px 11px 8px 11px;
font-size: 11px;
font-family:verdana;
}
.hover .gritter-item {
background-position:right -40px;
}
.gritter-item p {
padding:0;
margin:0;
word-wrap:break-word;
}
.gritter-close {
display:none;