Skip to content

Commit

Permalink
#20
Browse files Browse the repository at this point in the history
  • Loading branch information
Huỳnh Đức Duy committed Jul 1, 2016
1 parent b1a74ec commit 7007191
Show file tree
Hide file tree
Showing 87 changed files with 193 additions and 84,691 deletions.
24 changes: 12 additions & 12 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@

use SmartBots\Events\VerifyServerSentEvents;

// Route::group([
// 'middleware' => [],
// 'as' => 'comingsoon'
// ], function() {
// Route::get('','ComingSoonController@index')->name('::index');
// Route::post('/subscribe','ComingSoonController@subscribe')->name('::subscribe');
// });

Route::group([
'as' => 'landing'
'middleware' => [],
'as' => 'comingsoon'
], function() {
Route::get('/','LandingController@index')->name('::index');
Route::post('/contact','LandingController@contact')->name('::contact');
Route::post('/subscribe','LandingController@subscribe')->name('::subscribe');
Route::get('','ComingSoonController@index')->name('::index');
Route::post('/subscribe','ComingSoonController@subscribe')->name('::subscribe');
});

// Route::group([
// 'as' => 'landing'
// ], function() {
// Route::get('/','LandingController@index')->name('::index');
// Route::post('/contact','LandingController@contact')->name('::contact');
// Route::post('/subscribe','LandingController@subscribe')->name('::subscribe');
// });

Route::group([
'middleware' => [],
'prefix' => 'api',
Expand Down
131 changes: 73 additions & 58 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,84 +1,86 @@
var app_url = 'http://dev.env/smartbots';

var
elixir = require('laravel-elixir'),
gulp = require('gulp'),
htmlmin = require('gulp-htmlmin'),
gulpif = require('gulp-if');
elixir = require('laravel-elixir'),
gulp = require('gulp'),
htmlmin = require('gulp-htmlmin'),
imagemin = require('gulp-imagemin');

var vendor_dir = 'resources/assets/vendor/',
libs_dir = 'public/libs/',
js_dir = 'public/js/',
css_dir = 'public/css/';
var
vendor_dir = 'resources/assets/vendor/',
libs_dir = 'public/libs/',
js_dir = 'public/js/',
css_dir = 'public/css/';

var less = { // LESS file to compile => css
var
less = { // LESS file to compile => css
'components.less' : 'components.css',
'core.less' : 'core.css',
'libs.less' : 'libs.css',
'core.less' : 'core.css',
'libs.less' : 'libs.css',
'responsive.less' : 'responsive.css'
},

js = { // JS file vendored => libs
'jquery/dist/jquery.js' : 'jquery/jquery.js', // 2
'jquery-legacy/dist/jquery.js' : 'jquery-legacy/jquery.js', // 1
'jquery-modern/dist/jquery.js' : 'jquery-modern/jquery.js', // 3
'bootstrap/dist/js/bootstrap.js' : 'bootstrap/js/bootstrap.js',
'jquery.scrollTo/jquery.scrollTo.js' : 'jquery.scrollTo/jquery.scrollTo.js',
'jquery.nicescroll/jquery.nicescroll.min.js' : 'jquery.nicescroll/jquery.nicescroll.js',
'slimscroll/jquery.slimscroll.js' : 'slimscroll/jquery.slimscroll.js',
'fastclick/lib/fastclick.js' : 'fastclick/fastclick.js',
'blockUI/jquery.blockUI.js' : 'blockUI/jquery.blockUI.js',
'Waves/dist/waves.js' : 'Waves/waves.js',
'wow/dist/wow.js' : 'wow/wow.js',
'sweetalert/dist/sweetalert.min.js' : 'sweetalert/sweetalert.js',
'multiselect/js/jquery.multi-select.js' : 'multiselect/js/jquery.multi-select.js',
'typeahead.js/dist/typeahead.bundle.js' : 'typeahead.js/typeahead.bundle.js',
'handlebars/handlebars.js' : 'handlebars/handlebars.js',
'moment/moment.js' : 'moment/moment.js',
'moment/locale/vi.js' : 'moment/vi.js',
'quicksearch/jquery.quicksearch.js' : 'quicksearch/jquery.quicksearch.js',
'jquery/dist/jquery.js' : 'jquery/jquery.js', // 2
'jquery-legacy/dist/jquery.js' : 'jquery-legacy/jquery.js', // 1
'jquery-modern/dist/jquery.js' : 'jquery-modern/jquery.js', // 3
'bootstrap/dist/js/bootstrap.js' : 'bootstrap/js/bootstrap.js',
'jquery.scrollTo/jquery.scrollTo.js' : 'jquery.scrollTo/jquery.scrollTo.js',
'jquery.nicescroll/jquery.nicescroll.min.js' : 'jquery.nicescroll/jquery.nicescroll.js',
'slimscroll/jquery.slimscroll.js' : 'slimscroll/jquery.slimscroll.js',
'fastclick/lib/fastclick.js' : 'fastclick/fastclick.js',
'blockUI/jquery.blockUI.js' : 'blockUI/jquery.blockUI.js',
'Waves/dist/waves.js' : 'Waves/waves.js',
'wow/dist/wow.js' : 'wow/wow.js',
'sweetalert/dist/sweetalert.min.js' : 'sweetalert/sweetalert.js',
'multiselect/js/jquery.multi-select.js' : 'multiselect/js/jquery.multi-select.js',
'typeahead.js/dist/typeahead.bundle.js' : 'typeahead.js/typeahead.bundle.js',
'handlebars/handlebars.js' : 'handlebars/handlebars.js',
'moment/moment.js' : 'moment/moment.js',
'moment/locale/vi.js' : 'moment/vi.js',
'quicksearch/jquery.quicksearch.js' : 'quicksearch/jquery.quicksearch.js',
'eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js' : 'bootstrap-datetimepicker/bootstrap-datetimepicker.js',
'bootstrap-select/dist/js/bootstrap-select.js' : 'bootstrap-select/bootstrap-select.js',
'raven-js/dist/raven.js' : 'raven-js/raven.js',
'amcharts3/amcharts/amcharts.js' : 'amcharts/amcharts.js',
'amcharts3/amcharts/serial.js' : 'amcharts/serial.js',
'socket.io-client/socket.io.js' : 'socket.io/socket.io.js',
'intl-tel-input/build/js/intlTelInput.js' : 'intl-tel-input/js/intlTelInput.js',
'notifyjs/dist/notify.js' : 'notifyjs/js/notify.js',
'tinycon/tinycon.js' : 'tinycon/tinycon.js'
'bootstrap-select/dist/js/bootstrap-select.js' : 'bootstrap-select/bootstrap-select.js',
'raven-js/dist/raven.js' : 'raven-js/raven.js',
'amcharts3/amcharts/amcharts.js' : 'amcharts/amcharts.js',
'amcharts3/amcharts/serial.js' : 'amcharts/serial.js',
'socket.io-client/socket.io.js' : 'socket.io/socket.io.js',
'intl-tel-input/build/js/intlTelInput.js' : 'intl-tel-input/js/intlTelInput.js',
'notifyjs/dist/notify.js' : 'notifyjs/js/notify.js',
'tinycon/tinycon.js' : 'tinycon/tinycon.js'

},

css = { // CSS file vendored => libs
'bootstrap/dist/css/bootstrap.css' : 'bootstrap/css/bootstrap.css',
'font-awesome/css/font-awesome.css' : 'font-awesome/css/font-awesome.css',
'themify-icons/css/themify-icons.css' : 'themify-icons/css/themify-icons.css',
'Waves/dist/waves.css' : 'Waves/waves.css',
'sweetalert/dist/sweetalert.css' : 'sweetalert/sweetalert.css',
'animate.css/animate.css' : 'animate.css/animate.css',
'multiselect/css/multi-select.css' : 'multiselect/css/multi-select.css',
'bootstrap/dist/css/bootstrap.css' : 'bootstrap/css/bootstrap.css',
'font-awesome/css/font-awesome.css' : 'font-awesome/css/font-awesome.css',
'themify-icons/css/themify-icons.css' : 'themify-icons/css/themify-icons.css',
'Waves/dist/waves.css' : 'Waves/waves.css',
'sweetalert/dist/sweetalert.css' : 'sweetalert/sweetalert.css',
'animate.css/animate.css' : 'animate.css/animate.css',
'multiselect/css/multi-select.css' : 'multiselect/css/multi-select.css',
'eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css' : 'bootstrap-datetimepicker/bootstrap-datetimepicker.css',
'bootstrap-select/dist/css/bootstrap-select.css' : 'bootstrap-select/bootstrap-select.css',
'intl-tel-input/build/css/intlTelInput.css' : 'intl-tel-input/css/intlTelInput.css',
'notifyjs/dist/styles/metro/notify-metro.css' : 'notifyjs/css/notify-metro.css',
'bootstrap-select/dist/css/bootstrap-select.css' : 'bootstrap-select/bootstrap-select.css',
'intl-tel-input/build/css/intlTelInput.css' : 'intl-tel-input/css/intlTelInput.css',
'notifyjs/dist/styles/metro/notify-metro.css' : 'notifyjs/css/notify-metro.css',
},

assets = { // Assets file & folder vendored => libs
'bootstrap/dist/fonts' : 'bootstrap/fonts',
'font-awesome/fonts' : 'font-awesome/fonts',
'themify-icons/fonts' : 'themify-icons/fonts',
'multiselect/img' : 'multiselect/img',
'bootstrap/dist/fonts' : 'bootstrap/fonts',
'font-awesome/fonts' : 'font-awesome/fonts',
'themify-icons/fonts' : 'themify-icons/fonts',
'multiselect/img' : 'multiselect/img',
'intl-tel-input/build/img' : 'intl-tel-input/img'
},

jsx = { // JS (not vendored) files => js
'jquery.core.js' : 'jquery.core.js',
'jquery.app.js' : 'jquery.app.js',
'jquery.custom.js' : 'jquery.custom.js'
'jquery.core.js' : 'jquery.core.js',
'jquery.app.js' : 'jquery.app.js',
// 'jquery.custom.js' : 'jquery.custom.js'
};

elixir.extend('compress', function() {
new elixir.Task('compress', function() {
elixir.extend('htmlmin', function () {
new elixir.Task('htmlmin', function () {
return gulp.src('./storage/framework/views/*')
.pipe(htmlmin({
collapseWhitespace: true,
Expand All @@ -91,9 +93,22 @@ elixir.extend('compress', function() {
.watch('./storage/framework/views/*');
});

elixir.extend('imagemin', function () {
new elixir.Task('imagemin', function () {
return gulp.src('./public/images/*')
.pipe(imagemin({
progressive: true
}))
.pipe(gulp.dest('./public/images/'));
})
.watch('./public/images/*');
});

elixir(function(mix) {

// mix.compress();
mix.htmlmin();

mix.imagemin();

for(var key in less) {
mix.less(key, css_dir+less[key], vendor_dir);
Expand All @@ -116,7 +131,7 @@ elixir(function(mix) {
}

mix.browserSync({
// online: false,
online: false,
notify: false,
open: false,
proxy: app_url,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"crypto-js": "^3.1.6",
"dotenv": "^2.0.0",
"express": "^4.14.0",
"gulp-imagemin": "^3.0.1",
"ioredis": "^2.1.0",
"jQuery": "^1.7.4",
"php-unserialize": "0.0.1",
Expand Down
1 change: 1 addition & 0 deletions public/comingsoon/css/reset.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/comingsoon/css/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/comingsoon/js/countdown.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7007191

Please sign in to comment.