wip: component reorg, gathering js, css, images, ...

This commit is contained in:
Florian BLOUET
2015-11-17 16:23:04 +01:00
parent d729ac441b
commit f186091823
271 changed files with 466 additions and 1636 deletions

View File

@@ -45,7 +45,7 @@ class RootController extends Controller
return $this->app->redirectPath('logout');
}
$cssPath = $this->app['root.path'] . '/www/skins/prod/';
$cssPath = $this->app['root.path'] . '/www/assets/prod/';
$css = [];

View File

@@ -110,25 +110,25 @@ class PhraseaExceptionHandler extends SymfonyExceptionHandler
switch ($exception->getStatusCode()) {
case 403:
$errorImg = '/skins/error-pages/403.png';
$errorImg = '/assets/common/images/error-pages/403.png';
break;
case 404:
$errorImg = '/skins/error-pages/404.png';
$errorImg = '/assets/common/images/error-pages/404.png';
break;
case 500:
$errorImg = '/skins/error-pages/500.png';
$errorImg = '/assets/common/images/error-pages/500.png';
break;
case 503:
$errorImg = '/skins/error-pages/503.png';
$errorImg = '/assets/common/images/error-pages/503.png';
break;
default:
$errorImg = '/skins/error-pages/error.png';
$errorImg = '/assets/common/images/error-pages/error.png';
break;
}
return <<<EOF
html {
background-image:url("/skins/error-pages/background.png");
background-image:url("/assets/common/images/error-pages/background.png");
background-repeat:repeat;
padding-top:0px;
}

View File

@@ -17,11 +17,7 @@ gulp.task('build-admin', ['copy-admin-images', 'build-admin-css'], function(){
config.paths.vendors + 'underscore-amd/underscore.js',
config.paths.vendors + 'jquery.treeview/jquery.treeview.js',
config.paths.dist + 'include/jquery.kb-event.js',
config.paths.dist + 'skins/admin/template-dialogs.js',
// loaded via requirejs
// config.paths.vendors + 'blueimp-load-image/js/load-image.js',
// config.paths.vendors + 'jquery-file-upload/js/jquery.iframe-transport.js',
// config.paths.vendors + 'jquery-file-upload/js/jquery.fileupload.js',
config.paths.src + 'admin/js/template-dialogs.js',
config.paths.vendors + 'requirejs/require.js',
config.paths.dist + 'scripts/apps/admin/require.config.js',
config.paths.dist + 'scripts/apps/admin/main/main.js'

View File

@@ -38,7 +38,7 @@ gulp.task('build-common', ['copy-common-images', 'build-common-css'], function()
config.paths.dist + 'include/jslibs/jquery.contextmenu_scroll.js',
config.paths.dist + 'include/jquery.common.js',
config.paths.dist + 'include/jquery.tooltip.js',
config.paths.dist + 'skins/prod/jquery.Dialog.js',
config.paths.src + 'common/js/jquery.Dialog.js',
config.paths.vendors + 'swfobject/swfobject/swfobject.js', // @TODO: should be moved away (embed-bundle)
config.paths.dist + 'include/jslibs/flowplayer/flowplayer-3.2.13.min.js' // @TODO: should be moved away (embed-bundle)
];

View File

@@ -13,6 +13,13 @@ gulp.task('build-lightbox-mobile-css', function(){
], 'lightbox-mobile', 'lightbox/css/');
});
gulp.task('build-lightbox-mobile-js', function(){
return utils.buildJsGroup([
config.paths.src + 'lightbox/js/jquery.validator.mobile.js'
], 'lightbox-mobile', 'lightbox/js');
});
gulp.task('build-lightbox-ie6-css', function(){
return utils.buildCssGroup([
config.paths.src + 'lightbox/styles/main-ie6.scss'
@@ -25,13 +32,13 @@ gulp.task('build-lightbox-css', ['build-lightbox-mobile-css', 'build-lightbox-ie
], 'lightbox', 'lightbox/css/')
});
gulp.task('build-lightbox', ['copy-lightbox-images', 'build-lightbox-css'], function(){
gulp.task('build-lightbox', ['copy-lightbox-images', 'build-lightbox-css', 'build-lightbox-mobile-js'], function(){
var lightboxGroup = [
config.paths.dist + 'skins/lightbox/jquery.lightbox.js'
config.paths.src + 'lightbox/js/jquery.lightbox.js'
];
var lightboxIE6Group = [
config.paths.dist + 'skins/lightbox/jquery.lightbox.ie6.js'
config.paths.src + 'lightbox/js/jquery.lightbox.ie6.js'
];
utils.buildJsGroup(lightboxIE6Group, 'lightboxIe6', 'lightbox/js');
return utils.buildJsGroup(lightboxGroup, 'lightbox', 'lightbox/js');

View File

@@ -4,7 +4,7 @@ var utils = require('../utils.js');
gulp.task('copy-prod-images', function(){
// @TODO
return gulp.src([config.paths.src + 'prod/images/***'])
return gulp.src([config.paths.src + 'prod/images/**/*'])
.pipe(gulp.dest( config.paths.build + 'prod/images'));
});
@@ -40,19 +40,19 @@ gulp.task('build-prod', ['copy-prod-images', 'build-prod-css'], function(){
config.paths.dist + 'include/js/jquery.Selection.js',
config.paths.dist + 'include/js/jquery.Edit.js',
config.paths.dist + 'include/js/jquery.lists.js',
config.paths.dist + 'skins/prod/jquery.Prod.js',
config.paths.dist + 'skins/prod/jquery.Feedback.js',
config.paths.dist + 'skins/prod/jquery.Results.js',
config.paths.dist + 'skins/prod/jquery.main-prod.js',
config.paths.dist + 'skins/prod/jquery.WorkZone.js',
config.paths.dist + 'skins/prod/jquery.Alerts.js',
config.paths.dist + 'skins/prod/jquery.Upload.js',
config.paths.src + 'prod/js/jquery.Prod.js',
config.paths.src + 'prod/js/jquery.Feedback.js',
config.paths.src + 'prod/js/jquery.Results.js',
config.paths.src + 'prod/js/jquery.main-prod.js',
config.paths.src + 'prod/js/jquery.WorkZone.js',
config.paths.src + 'prod/js/jquery.Alerts.js',
config.paths.src + 'prod/js/jquery.Upload.js',
config.paths.dist + 'include/jslibs/pixastic.custom.js',
config.paths.dist + 'skins/prod/ThumbExtractor.js',
config.paths.dist + 'skins/prod/publicator.js',
config.paths.src + 'prod/js/ThumbExtractor.js',
config.paths.src + 'prod/js/publicator.js',
config.paths.dist + 'include/jslibs/jquery.sprintf.1.0.3.js',
config.paths.dist + 'include/jquery.p4.preview.js',
config.paths.dist + 'skins/prod/jquery.edit.js',
config.paths.src + 'prod/js/jquery.edit.js',
config.paths.dist + 'include/jslibs/jquery.color.animation.js',
config.paths.dist + 'include/jquery.image_enhancer.js',
config.paths.vendors + 'jquery.treeview/jquery.treeview.js',

View File

@@ -36,6 +36,7 @@ gulp.task('bootstrap-assets', function () {
});
gulp.task('build-bootstrap', ['bootstrap-assets', 'bootstrap-js'], function () {
// build standalone version (not used, see: Common Component)
gulp.src(config.paths.vendors + 'bootstrap-sass/vendor/assets/stylesheets/bootstrap.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest( config.paths.build + 'vendors/bootstrap/css/'))

View File

@@ -14,8 +14,8 @@
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $colorButton), color-stop(100%, hsl(hue($colorButton), saturation($colorButton), $colorHsl))); /*Safari 4+, Chrome 2+*/
background: -webkit-linear-gradient($colorButton, hsl(hue($colorButton), saturation($colorButton), $colorHsl)); /* Safari 5.1+, Chrome 10+ */
background: -o-linear-gradient($colorButton, hsl(hue($colorButton), saturation($colorButton), $colorHsl)); /* Opera 11.10 */
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#ffffff'); IE6 & IE7
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#ffffff')"; IE8+ */
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#ffffff'); IE6 & IE7
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#ffffff')"; IE8+ */
background: linear-gradient($colorButton, hsl(hue($colorButton), saturation($colorButton), $colorHsl)); /* the standard */
}
@@ -132,7 +132,7 @@ $btnBackgroundHighlight: darken($white, 10%);
$btnBorder: #bbb;
$btnPrimaryBackground: $linkColor;
$btnPrimaryBackgroundHighlight: spin($btnPrimaryBackground, 20%);
$btnPrimaryBackgroundHighlight: darken($btnPrimaryBackground, 20%);
$btnInfoBackground: #3d8fa8;
$btnInfoBackgroundHighlight: #0d4461;
@@ -194,8 +194,8 @@ $zindexModal: 1050;
// Sprite icons path
// -------------------------
$iconSpritePath: "/skins/build/bootstrap/img/glyphicons-halflings.png";
$iconWhiteSpritePath: "/skins/build/bootstrap/img/glyphicons-halflings-white.png";
$iconSpritePath: "/assets/vendors/bootstrap/img/glyphicons-halflings.png";
$iconWhiteSpritePath: "/assets/vendors/bootstrap/img/glyphicons-halflings-white.png";
// Input placeholder text color

View File

@@ -1,9 +1,10 @@
$fontAwesomePath: "../../common/font"; // dist path
$iconsPath: '../../../skins/icons/';
@import '../../../../www/bower_components/normalize-css/normalize'; // not extension for inline import
@import '../../shared/styles/bootstrap';
@import '../../vendors/bootstrap/bootstrap';
// @TODO enable importation of: @import "../../../../plugins/login.less";
@import 'variables';
@import 'skin';
@import '../../shared/styles/skin/geonames';
@import '../../../../www/bower_components/font-awesome/sass/font-awesome.scss';

View File

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 353 B

After

Width:  |  Height:  |  Size: 353 B

View File

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 371 B

View File

Before

Width:  |  Height:  |  Size: 146 B

After

Width:  |  Height:  |  Size: 146 B

View File

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 369 B

View File

Before

Width:  |  Height:  |  Size: 111 B

After

Width:  |  Height:  |  Size: 111 B

View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -1,8 +1,8 @@
/**
* Common stylesheet, builded into assets/common/styles/common.css
*/
@import '../../shared/styles/bootstrap.scss';
@import '../../shared/styles/bootstrap-responsive.scss';
@import '../../vendors/bootstrap/bootstrap';
@import '../../vendors/bootstrap/responsive';
$fontAwesomePath: "../font"; // dist path
$iconsPath: '../../../skins/icons/';
@import '../../../../www/bower_components/font-awesome/sass/font-awesome.scss';

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 509 B

After

Width:  |  Height:  |  Size: 509 B

View File

Before

Width:  |  Height:  |  Size: 595 B

After

Width:  |  Height:  |  Size: 595 B

View File

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 322 B

View File

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 153 B

View File

Before

Width:  |  Height:  |  Size: 58 B

After

Width:  |  Height:  |  Size: 58 B

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 625 B

After

Width:  |  Height:  |  Size: 625 B

View File

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 720 B

View File

Before

Width:  |  Height:  |  Size: 358 B

After

Width:  |  Height:  |  Size: 358 B

View File

Before

Width:  |  Height:  |  Size: 455 B

After

Width:  |  Height:  |  Size: 455 B

View File

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

View File

Before

Width:  |  Height:  |  Size: 84 B

After

Width:  |  Height:  |  Size: 84 B

View File

Before

Width:  |  Height:  |  Size: 147 B

After

Width:  |  Height:  |  Size: 147 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 161 B

After

Width:  |  Height:  |  Size: 161 B

View File

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 320 B

View File

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 310 B

View File

Before

Width:  |  Height:  |  Size: 446 B

After

Width:  |  Height:  |  Size: 446 B

View File

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 272 B

View File

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 272 B

View File

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 313 B

View File

Before

Width:  |  Height:  |  Size: 316 B

After

Width:  |  Height:  |  Size: 316 B

View File

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 327 B

View File

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View File

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 329 B

View File

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 390 B

View File

Before

Width:  |  Height:  |  Size: 148 B

After

Width:  |  Height:  |  Size: 148 B

View File

@@ -1,5 +1,5 @@
$iconsPath: '../../../skins/icons/';
$lightboxPath: '../../../skins/lightbox/';
$lightboxPath: '../images/';
@import '../../shared/styles/jquery.contextmenu';
body {

View File

@@ -1,5 +1,5 @@
$iconsPath: '../../../skins/icons/';
$lightboxPath: '../../../skins/lightbox/';
$lightboxPath: '../images/';
@import '../../shared/styles/jquery.contextmenu';
body {

View File

Before

Width:  |  Height:  |  Size: 76 B

After

Width:  |  Height:  |  Size: 76 B

View File

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 81 B

View File

Before

Width:  |  Height:  |  Size: 76 B

After

Width:  |  Height:  |  Size: 76 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 323 B

After

Width:  |  Height:  |  Size: 323 B

View File

Before

Width:  |  Height:  |  Size: 581 B

After

Width:  |  Height:  |  Size: 581 B

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

View File

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 601 B

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 61 B

After

Width:  |  Height:  |  Size: 61 B

View File

Before

Width:  |  Height:  |  Size: 300 B

After

Width:  |  Height:  |  Size: 300 B

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

View File

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 184 B

After

Width:  |  Height:  |  Size: 184 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

View File

Before

Width:  |  Height:  |  Size: 552 B

After

Width:  |  Height:  |  Size: 552 B

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 323 B

After

Width:  |  Height:  |  Size: 323 B

View File

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 574 B

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

View File

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 75 B

After

Width:  |  Height:  |  Size: 75 B

View File

Before

Width:  |  Height:  |  Size: 64 B

After

Width:  |  Height:  |  Size: 64 B

Some files were not shown because too many files have changed in this diff Show More