From 33658e37a3e8df05702a7383fe220c0626c890f0 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 12 Dec 2017 16:28:49 +1100 Subject: [PATCH] WIP: Standard backend theme page and login Signed-off-by: Deon George --- .env.testing | 4 +- .gitignore | 1 + .gitlab-ci.yml | 2 + app/Http/Controllers/HomeController.php | 4 +- app/Models/Country.php | 26 + app/Models/Currency.php | 18 + app/Models/Old/Account.php | 18 + app/Models/Old/Country.php | 18 + app/Models/Old/Currency.php | 10 + app/Models/Site.php | 2 - app/User.php | 66 +- composer.json | 2 + composer.lock | 645 +++++++++++------- config/app.php | 3 + config/gravatar.php | 34 + ...24_create_performance_indicators_table.php | 36 - ...1_03_051725_create_announcements_table.php | 34 - .../2017_11_03_051727_create_users_table.php | 56 -- ...03_051730_create_password_resets_table.php | 31 - ...7_11_03_051734_create_api_tokens_table.php | 39 -- ...1_03_051739_create_subscriptions_table.php | 50 -- ...017_11_03_051745_create_invoices_table.php | 42 -- ...1_03_051752_create_notifications_table.php | 39 -- .../2017_11_03_051800_create_teams_table.php | 48 -- ...7_11_03_051809_create_team_users_table.php | 33 - ..._11_03_051819_create_invitations_table.php | 34 - ...=> 2017_12_05_015457_CreateTableSites.php} | 34 +- ...017_12_06_000000_CreateTableCurrencies.php | 49 ++ ...2017_12_06_000001_CreateTableCountries.php | 59 ++ .../2017_12_08_050712_CreateTableUsers.php | 86 +++ .../site/js/bootstrap3-typeahead.min.js | 1 + .../backend/adminlte/site/js/fastclick.min.js | 1 + .../adminlte/site/js/jquery.slimscroll.min.js | 16 + .../backend/adminlte/auth/login.blade.php | 74 +- .../theme/backend/adminlte/home.blade.php | 32 + .../backend/adminlte/layouts/app.blade.php | 41 ++ .../layouts/partials/contentheader.blade.php | 17 + .../layouts/partials/footer.blade.php | 8 + .../layouts/partials/mainheader.blade.php | 95 +++ .../layouts/partials/scripts.blade.php | 13 + .../layouts/partials/sidebar.blade.php | 108 +++ .../theme/frontend/metronic/welcome.blade.php | 1 - resources/views/home.blade.php | 20 - resources/views/welcome.blade.php | 94 --- routes/web.php | 2 +- 45 files changed, 1150 insertions(+), 896 deletions(-) create mode 100644 app/Models/Country.php create mode 100644 app/Models/Currency.php create mode 100644 app/Models/Old/Account.php create mode 100644 app/Models/Old/Country.php create mode 100644 app/Models/Old/Currency.php create mode 100644 config/gravatar.php delete mode 100644 database/migrations/2017_11_03_051724_create_performance_indicators_table.php delete mode 100644 database/migrations/2017_11_03_051725_create_announcements_table.php delete mode 100644 database/migrations/2017_11_03_051727_create_users_table.php delete mode 100644 database/migrations/2017_11_03_051730_create_password_resets_table.php delete mode 100644 database/migrations/2017_11_03_051734_create_api_tokens_table.php delete mode 100644 database/migrations/2017_11_03_051739_create_subscriptions_table.php delete mode 100644 database/migrations/2017_11_03_051745_create_invoices_table.php delete mode 100644 database/migrations/2017_11_03_051752_create_notifications_table.php delete mode 100644 database/migrations/2017_11_03_051800_create_teams_table.php delete mode 100644 database/migrations/2017_11_03_051809_create_team_users_table.php delete mode 100644 database/migrations/2017_11_03_051819_create_invitations_table.php rename database/migrations/{2017_12_05_015457_CreateTableSite.php => 2017_12_05_015457_CreateTableSites.php} (56%) create mode 100644 database/migrations/2017_12_06_000000_CreateTableCurrencies.php create mode 100644 database/migrations/2017_12_06_000001_CreateTableCountries.php create mode 100644 database/migrations/2017_12_08_050712_CreateTableUsers.php create mode 100644 public/theme/backend/adminlte/site/js/bootstrap3-typeahead.min.js create mode 100644 public/theme/backend/adminlte/site/js/fastclick.min.js create mode 100644 public/theme/backend/adminlte/site/js/jquery.slimscroll.min.js create mode 100644 resources/theme/backend/adminlte/home.blade.php create mode 100644 resources/theme/backend/adminlte/layouts/app.blade.php create mode 100644 resources/theme/backend/adminlte/layouts/partials/contentheader.blade.php create mode 100644 resources/theme/backend/adminlte/layouts/partials/footer.blade.php create mode 100644 resources/theme/backend/adminlte/layouts/partials/mainheader.blade.php create mode 100644 resources/theme/backend/adminlte/layouts/partials/scripts.blade.php create mode 100644 resources/theme/backend/adminlte/layouts/partials/sidebar.blade.php delete mode 100644 resources/views/home.blade.php delete mode 100644 resources/views/welcome.blade.php diff --git a/.env.testing b/.env.testing index e74d536..ff823c5 100644 --- a/.env.testing +++ b/.env.testing @@ -9,8 +9,8 @@ DB_CONNECTION=mysql DB_HOST=mariadb DB_PORT=3306 DB_DATABASE=testing -DB_USERNAME=root -DB_PASSWORD=secret +DB_USERNAME=test +DB_PASSWORD=test BROADCAST_DRIVER=log CACHE_DRIVER=file diff --git a/.gitignore b/.gitignore index 119866a..9b53300 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ npm-debug.log yarn-error.log .env .DS_Store +storage/debugbar diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7caee8c..dd8a1ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,8 @@ services: variables: MYSQL_DATABASE: testing MYSQL_ROOT_PASSWORD: test + MYSQL_USER: test + MYSQL_PASSWORD: test # This folder is cached between builds # http://docs.gitlab.com/ce/ci/yaml/README.html#cache diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index e326b48..05476f2 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -25,6 +25,8 @@ class HomeController extends Controller */ public function show() { - return view('home'); + return view('home',[ + 'page_title'=>'Dashboard', + ]); } } diff --git a/app/Models/Country.php b/app/Models/Country.php new file mode 100644 index 0000000..8d01214 --- /dev/null +++ b/app/Models/Country.php @@ -0,0 +1,26 @@ +belongsTo('App\Models\Currency'); + } + + /** + * The accounts in this country + */ + public function users() + { + return $this->hasMany('App\User'); + } +} \ No newline at end of file diff --git a/app/Models/Currency.php b/app/Models/Currency.php new file mode 100644 index 0000000..a3d12d1 --- /dev/null +++ b/app/Models/Currency.php @@ -0,0 +1,18 @@ +hasMany('App\Models\Country'); + } +} \ No newline at end of file diff --git a/app/Models/Old/Account.php b/app/Models/Old/Account.php new file mode 100644 index 0000000..d357c6a --- /dev/null +++ b/app/Models/Old/Account.php @@ -0,0 +1,18 @@ +belongsTo('App\Models\Old\Country'); + } +} \ No newline at end of file diff --git a/app/Models/Old/Country.php b/app/Models/Old/Country.php new file mode 100644 index 0000000..7df0688 --- /dev/null +++ b/app/Models/Old/Country.php @@ -0,0 +1,18 @@ +belongsTo('App\Models\Old\Currency'); + } +} \ No newline at end of file diff --git a/app/Models/Old/Currency.php b/app/Models/Old/Currency.php new file mode 100644 index 0000000..4fa9a90 --- /dev/null +++ b/app/Models/Old/Currency.php @@ -0,0 +1,10 @@ +'array', ]; diff --git a/app/User.php b/app/User.php index ccf7bde..bb13aab 100644 --- a/app/User.php +++ b/app/User.php @@ -2,49 +2,31 @@ namespace App; -use Laravel\Spark\User as SparkUser; +use Illuminate\Notifications\Notifiable; +use Illuminate\Foundation\Auth\User as Authenticatable; -class User extends SparkUser +class User extends Authenticatable { - /** - * The attributes that are mass assignable. - * - * @var array - */ - protected $fillable = [ - 'name', - 'email', - ]; + use Notifiable; - /** - * The attributes excluded from the model's JSON form. - * - * @var array - */ - protected $hidden = [ - 'password', - 'remember_token', - 'authy_id', - 'country_code', - 'phone', - 'card_brand', - 'card_last_four', - 'card_country', - 'billing_address', - 'billing_address_line_2', - 'billing_city', - 'billing_zip', - 'billing_country', - 'extra_billing_information', - ]; + /** + * The country this user belongs to + */ + public function country() + { + return $this->belongsTo('App\Models\Country'); + } - /** - * The attributes that should be cast to native types. - * - * @var array - */ - protected $casts = [ - 'trial_ends_at' => 'datetime', - 'uses_two_factor_auth' => 'boolean', - ]; -} + /** + * Only query active categories + */ + public function scopeActive() + { + return $this->where('active',TRUE); + } + + public function getNameAttribute($value) + { + return $this->firstname.' '.$this->lastname; + } +} \ No newline at end of file diff --git a/composer.json b/composer.json index 0598732..f4b756c 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,9 @@ "type": "project", "require": { "php": ">=7.0.0", + "acacha/user": "^0.2.2", "barryvdh/laravel-debugbar": "^3.1", + "creativeorange/gravatar": "^1.0", "fideloper/proxy": "~3.3", "igaster/laravel-theme": "^2.0", "intervention/image": "^2.4", diff --git a/composer.lock b/composer.lock index d103d26..2d05259 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,62 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "e20c5f1f23f2cff3422f17109a898629", + "content-hash": "9cdfda69d4dee872f0d47f562a8af37a", "packages": [ + { + "name": "acacha/user", + "version": "0.2.2", + "source": { + "type": "git", + "url": "https://github.com/acacha/user.git", + "reference": "4c70815d20ae5c5035e5cfa137bfab0a0a3b9922" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/acacha/user/zipball/4c70815d20ae5c5035e5cfa137bfab0a0a3b9922", + "reference": "4c70815d20ae5c5035e5cfa137bfab0a0a3b9922", + "shasum": "" + }, + "require": { + "laravel/framework": "^5.3", + "php": "~5.6|~7.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0||~5.0", + "scrutinizer/ocular": "~1.1", + "squizlabs/php_codesniffer": "~2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Acacha\\User\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sergi Tur Badenas", + "email": "sergiturbadenas@gmail.com", + "homepage": "https://github.com/acacha", + "role": "Developer" + } + ], + "description": "A boosted User for Laravel", + "homepage": "https://github.com/acacha/user", + "keywords": [ + "acacha", + "user" + ], + "time": "2016-12-05T13:39:37+00:00" + }, { "name": "barryvdh/laravel-debugbar", "version": "v3.1.0", @@ -74,6 +128,50 @@ ], "time": "2017-09-18T13:32:46+00:00" }, + { + "name": "creativeorange/gravatar", + "version": "1.0.10", + "source": { + "type": "git", + "url": "https://github.com/creativeorange/gravatar.git", + "reference": "a0e84f0c8e8922ad151168d6ebd8db6a1b2d8cd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/creativeorange/gravatar/zipball/a0e84f0c8e8922ad151168d6ebd8db6a1b2d8cd2", + "reference": "a0e84f0c8e8922ad151168d6ebd8db6a1b2d8cd2", + "shasum": "" + }, + "require": { + "illuminate/support": "5.*", + "php": ">=5.4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Creativeorange\\Gravatar\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaco Tijssen", + "email": "jaco@creativeorange.nl", + "homepage": "https://www.creativeorange.nl", + "role": "Developer" + } + ], + "description": "A Laravel 5.0, 5.1, 5.2 and 5.3 gravatar package for retrieving gravatar image URLs or checking the existance of an image.", + "keywords": [ + "avatar", + "gravatar", + "laravel" + ], + "time": "2017-02-15T22:07:40+00:00" + }, { "name": "dnoegel/php-xdg-base-dir", "version": "0.1", @@ -230,16 +328,16 @@ }, { "name": "dompdf/dompdf", - "version": "v0.8.1", + "version": "v0.8.2", "source": { "type": "git", "url": "https://github.com/dompdf/dompdf.git", - "reference": "9ea852c4bdc74fac5def165e6cd52353f7ca3b3f" + "reference": "5113accd9ae5d466077cce5208dcf3fb871bf8f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dompdf/dompdf/zipball/9ea852c4bdc74fac5def165e6cd52353f7ca3b3f", - "reference": "9ea852c4bdc74fac5def165e6cd52353f7ca3b3f", + "url": "https://api.github.com/repos/dompdf/dompdf/zipball/5113accd9ae5d466077cce5208dcf3fb871bf8f6", + "reference": "5113accd9ae5d466077cce5208dcf3fb871bf8f6", "shasum": "" }, "require": { @@ -248,7 +346,7 @@ "ext-mbstring": "*", "phenx/php-font-lib": "0.5.*", "phenx/php-svg-lib": "0.3.*", - "php": ">=5.3.0" + "php": ">=5.4.0" }, "require-dev": { "phpunit/phpunit": "4.8.*", @@ -288,20 +386,20 @@ ], "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", "homepage": "https://github.com/dompdf/dompdf", - "time": "2017-09-14T01:36:24+00:00" + "time": "2017-11-26T14:49:08+00:00" }, { "name": "egulias/email-validator", - "version": "2.1.2", + "version": "2.1.3", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "bc31baa11ea2883e017f0a10d9722ef9d50eac1c" + "reference": "1bec00a10039b823cc94eef4eddd47dcd3b2ca04" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/bc31baa11ea2883e017f0a10d9722ef9d50eac1c", - "reference": "bc31baa11ea2883e017f0a10d9722ef9d50eac1c", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/1bec00a10039b823cc94eef4eddd47dcd3b2ca04", + "reference": "1bec00a10039b823cc94eef4eddd47dcd3b2ca04", "shasum": "" }, "require": { @@ -310,8 +408,8 @@ }, "require-dev": { "dominicsayers/isemail": "dev-master", - "phpunit/phpunit": "^4.8.0", - "satooshi/php-coveralls": "dev-master" + "phpunit/phpunit": "^4.8.35", + "satooshi/php-coveralls": "^1.0.1" }, "suggest": { "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" @@ -345,25 +443,28 @@ "validation", "validator" ], - "time": "2017-01-30T22:07:36+00:00" + "time": "2017-11-15T23:40:40+00:00" }, { "name": "erusev/parsedown", - "version": "1.6.3", + "version": "1.6.4", "source": { "type": "git", "url": "https://github.com/erusev/parsedown.git", - "reference": "728952b90a333b5c6f77f06ea9422b94b585878d" + "reference": "fbe3fe878f4fe69048bb8a52783a09802004f548" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/erusev/parsedown/zipball/728952b90a333b5c6f77f06ea9422b94b585878d", - "reference": "728952b90a333b5c6f77f06ea9422b94b585878d", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/fbe3fe878f4fe69048bb8a52783a09802004f548", + "reference": "fbe3fe878f4fe69048bb8a52783a09802004f548", "shasum": "" }, "require": { "php": ">=5.3.0" }, + "require-dev": { + "phpunit/phpunit": "^4.8.35" + }, "type": "library", "autoload": { "psr-0": { @@ -387,7 +488,7 @@ "markdown", "parser" ], - "time": "2017-05-14T14:47:48+00:00" + "time": "2017-11-14T20:44:03+00:00" }, { "name": "fideloper/proxy", @@ -957,16 +1058,16 @@ }, { "name": "laravel/framework", - "version": "v5.5.19", + "version": "v5.5.25", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "c678100e84934ec85c9f8bc26bd0a60222682719" + "reference": "0a5b6112f325c56ae5a6679c08a0a10723153fe0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/c678100e84934ec85c9f8bc26bd0a60222682719", - "reference": "c678100e84934ec85c9f8bc26bd0a60222682719", + "url": "https://api.github.com/repos/laravel/framework/zipball/0a5b6112f325c56ae5a6679c08a0a10723153fe0", + "reference": "0a5b6112f325c56ae5a6679c08a0a10723153fe0", "shasum": "" }, "require": { @@ -1040,15 +1141,18 @@ "suggest": { "aws/aws-sdk-php": "Required to use the SQS queue driver and SES mail driver (~3.0).", "doctrine/dbal": "Required to rename columns and drop SQLite columns (~2.5).", + "ext-pcntl": "Required to use all features of the queue worker.", + "ext-posix": "Required to use all features of the queue worker.", "fzaninotto/faker": "Required to use the eloquent factory builder (~1.4).", "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~6.0).", "laravel/tinker": "Required to use the tinker console command (~1.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).", + "league/flysystem-cached-adapter": "Required to use Flysystem caching (~1.0).", "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).", "nexmo/client": "Required to use the Nexmo transport (~1.0).", "pda/pheanstalk": "Required to use the beanstalk queue driver (~3.0).", "predis/predis": "Required to use the redis cache and queue drivers (~1.0).", - "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (~2.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (~3.0).", "symfony/css-selector": "Required to use some of the crawler integration testing tools (~3.3).", "symfony/dom-crawler": "Required to use most of the crawler integration testing tools (~3.3).", "symfony/psr-http-message-bridge": "Required to psr7 bridging features (~1.0)." @@ -1084,7 +1188,7 @@ "framework", "laravel" ], - "time": "2017-10-25T19:10:45+00:00" + "time": "2017-12-11T14:59:28+00:00" }, { "name": "laravel/spark", @@ -1662,16 +1766,16 @@ }, { "name": "nikic/php-parser", - "version": "v3.1.1", + "version": "v3.1.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "a1e8e1a30e1352f118feff1a8481066ddc2f234a" + "reference": "08131e7ff29de6bb9f12275c7d35df71f25f4d89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a1e8e1a30e1352f118feff1a8481066ddc2f234a", - "reference": "a1e8e1a30e1352f118feff1a8481066ddc2f234a", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/08131e7ff29de6bb9f12275c7d35df71f25f4d89", + "reference": "08131e7ff29de6bb9f12275c7d35df71f25f4d89", "shasum": "" }, "require": { @@ -1709,7 +1813,7 @@ "parser", "php" ], - "time": "2017-09-02T17:10:46+00:00" + "time": "2017-11-04T11:48:34+00:00" }, { "name": "orchestra/asset", @@ -2190,16 +2294,16 @@ }, { "name": "psy/psysh", - "version": "v0.8.13", + "version": "v0.8.16", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "cdb5593c3684bab74e10fcfffe4a0c8d1c39695d" + "reference": "d4c8eab0683dc056f2ca54ca67f5388527c068b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/cdb5593c3684bab74e10fcfffe4a0c8d1c39695d", - "reference": "cdb5593c3684bab74e10fcfffe4a0c8d1c39695d", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/d4c8eab0683dc056f2ca54ca67f5388527c068b1", + "reference": "d4c8eab0683dc056f2ca54ca67f5388527c068b1", "shasum": "" }, "require": { @@ -2207,14 +2311,13 @@ "jakub-onderka/php-console-highlighter": "0.3.*", "nikic/php-parser": "~1.3|~2.0|~3.0", "php": ">=5.3.9", - "symfony/console": "~2.3.10|^2.4.2|~3.0", - "symfony/var-dumper": "~2.7|~3.0" + "symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0", + "symfony/var-dumper": "~2.7|~3.0|~4.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "~1.11", "hoa/console": "~3.16|~1.14", - "phpunit/phpunit": "~4.4|~5.0", - "symfony/finder": "~2.1|~3.0" + "phpunit/phpunit": "^4.8.35|^5.4.3", + "symfony/finder": "~2.1|~3.0|~4.0" }, "suggest": { "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", @@ -2259,7 +2362,7 @@ "interactive", "shell" ], - "time": "2017-10-19T06:13:20+00:00" + "time": "2017-12-10T21:49:27+00:00" }, { "name": "ramsey/uuid", @@ -2389,16 +2492,16 @@ }, { "name": "stripe/stripe-php", - "version": "v5.6.0", + "version": "v5.7.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "0922533c9db11292c7a0aeafc27638f8f31b7fb6" + "reference": "82228e4c9cc682219a234fa35cffa509793ecf9f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/0922533c9db11292c7a0aeafc27638f8f31b7fb6", - "reference": "0922533c9db11292c7a0aeafc27638f8f31b7fb6", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/82228e4c9cc682219a234fa35cffa509793ecf9f", + "reference": "82228e4c9cc682219a234fa35cffa509793ecf9f", "shasum": "" }, "require": { @@ -2440,7 +2543,7 @@ "payment processing", "stripe" ], - "time": "2017-10-31T18:52:25+00:00" + "time": "2017-11-28T17:22:06+00:00" }, { "name": "swiftmailer/swiftmailer", @@ -2499,44 +2602,45 @@ }, { "name": "symfony/console", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "116bc56e45a8e5572e51eb43ab58c769a352366c" + "reference": "2cdef78de8f54f68ff16a857e710e7302b47d4c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/116bc56e45a8e5572e51eb43ab58c769a352366c", - "reference": "116bc56e45a8e5572e51eb43ab58c769a352366c", + "url": "https://api.github.com/repos/symfony/console/zipball/2cdef78de8f54f68ff16a857e710e7302b47d4c7", + "reference": "2cdef78de8f54f68ff16a857e710e7302b47d4c7", "shasum": "" }, "require": { "php": "^5.5.9|>=7.0.8", - "symfony/debug": "~2.8|~3.0", + "symfony/debug": "~2.8|~3.0|~4.0", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/dependency-injection": "<3.3" + "symfony/dependency-injection": "<3.4", + "symfony/process": "<3.3" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~3.3", - "symfony/dependency-injection": "~3.3", - "symfony/event-dispatcher": "~2.8|~3.0", - "symfony/filesystem": "~2.8|~3.0", - "symfony/process": "~2.8|~3.0" + "symfony/config": "~3.3|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/event-dispatcher": "~2.8|~3.0|~4.0", + "symfony/lock": "~3.4|~4.0", + "symfony/process": "~3.3|~4.0" }, "suggest": { "psr/log": "For using the console logger", "symfony/event-dispatcher": "", - "symfony/filesystem": "", + "symfony/lock": "", "symfony/process": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -2563,20 +2667,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-12-02T18:20:11+00:00" }, { "name": "symfony/css-selector", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "07447650225ca9223bd5c97180fe7c8267f7d332" + "reference": "7134b93e90ea7e7881fcb2da006d21b4c5f31908" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/07447650225ca9223bd5c97180fe7c8267f7d332", - "reference": "07447650225ca9223bd5c97180fe7c8267f7d332", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/7134b93e90ea7e7881fcb2da006d21b4c5f31908", + "reference": "7134b93e90ea7e7881fcb2da006d21b4c5f31908", "shasum": "" }, "require": { @@ -2585,7 +2689,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -2616,20 +2720,20 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-11-05T16:10:10+00:00" }, { "name": "symfony/debug", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "eb95d9ce8f18dcc1b3dfff00cb624c402be78ffd" + "reference": "fb2001e5d85f95d8b6ab94ae3be5d2672df128fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/eb95d9ce8f18dcc1b3dfff00cb624c402be78ffd", - "reference": "eb95d9ce8f18dcc1b3dfff00cb624c402be78ffd", + "url": "https://api.github.com/repos/symfony/debug/zipball/fb2001e5d85f95d8b6ab94ae3be5d2672df128fd", + "reference": "fb2001e5d85f95d8b6ab94ae3be5d2672df128fd", "shasum": "" }, "require": { @@ -2640,12 +2744,12 @@ "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" }, "require-dev": { - "symfony/http-kernel": "~2.8|~3.0" + "symfony/http-kernel": "~2.8|~3.0|~4.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -2672,34 +2776,34 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-11-21T09:01:46+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v3.3.10", + "version": "v4.0.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "d7ba037e4b8221956ab1e221c73c9e27e05dd423" + "reference": "6223fb2b68e7059e8d5843c0103999a84e7275cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d7ba037e4b8221956ab1e221c73c9e27e05dd423", - "reference": "d7ba037e4b8221956ab1e221c73c9e27e05dd423", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/6223fb2b68e7059e8d5843c0103999a84e7275cf", + "reference": "6223fb2b68e7059e8d5843c0103999a84e7275cf", "shasum": "" }, "require": { - "php": "^5.5.9|>=7.0.8" + "php": "^7.1.3" }, "conflict": { - "symfony/dependency-injection": "<3.3" + "symfony/dependency-injection": "<3.4" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~2.8|~3.0", - "symfony/dependency-injection": "~3.3", - "symfony/expression-language": "~2.8|~3.0", - "symfony/stopwatch": "~2.8|~3.0" + "symfony/config": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/stopwatch": "~3.4|~4.0" }, "suggest": { "symfony/dependency-injection": "", @@ -2708,7 +2812,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -2735,20 +2839,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-11-09T17:30:28+00:00" }, { "name": "symfony/finder", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "773e19a491d97926f236942484cb541560ce862d" + "reference": "dac8d7db537bac7ad8143eb11360a8c2231f251a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/773e19a491d97926f236942484cb541560ce862d", - "reference": "773e19a491d97926f236942484cb541560ce862d", + "url": "https://api.github.com/repos/symfony/finder/zipball/dac8d7db537bac7ad8143eb11360a8c2231f251a", + "reference": "dac8d7db537bac7ad8143eb11360a8c2231f251a", "shasum": "" }, "require": { @@ -2757,7 +2861,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -2784,33 +2888,34 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-11-05T16:10:10+00:00" }, { "name": "symfony/http-foundation", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "22cf9c2b1d9f67cc8e75ae7f4eaa60e4c1eff1f8" + "reference": "d9625c8abb907e0ca2d7506afd7a719a572c766f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/22cf9c2b1d9f67cc8e75ae7f4eaa60e4c1eff1f8", - "reference": "22cf9c2b1d9f67cc8e75ae7f4eaa60e4c1eff1f8", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/d9625c8abb907e0ca2d7506afd7a719a572c766f", + "reference": "d9625c8abb907e0ca2d7506afd7a719a572c766f", "shasum": "" }, "require": { "php": "^5.5.9|>=7.0.8", - "symfony/polyfill-mbstring": "~1.1" + "symfony/polyfill-mbstring": "~1.1", + "symfony/polyfill-php70": "~1.6" }, "require-dev": { - "symfony/expression-language": "~2.8|~3.0" + "symfony/expression-language": "~2.8|~3.0|~4.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -2837,56 +2942,58 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2017-10-05T23:10:23+00:00" + "time": "2017-11-30T14:56:21+00:00" }, { "name": "symfony/http-kernel", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "654f047a78756964bf91b619554f956517394018" + "reference": "b101bb29071163563d4c8b537b35845eaf909235" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/654f047a78756964bf91b619554f956517394018", - "reference": "654f047a78756964bf91b619554f956517394018", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/b101bb29071163563d4c8b537b35845eaf909235", + "reference": "b101bb29071163563d4c8b537b35845eaf909235", "shasum": "" }, "require": { "php": "^5.5.9|>=7.0.8", "psr/log": "~1.0", - "symfony/debug": "~2.8|~3.0", - "symfony/event-dispatcher": "~2.8|~3.0", - "symfony/http-foundation": "~3.3" + "symfony/debug": "~2.8|~3.0|~4.0", + "symfony/event-dispatcher": "~2.8|~3.0|~4.0", + "symfony/http-foundation": "^3.3.11|~4.0" }, "conflict": { "symfony/config": "<2.8", - "symfony/dependency-injection": "<3.3", + "symfony/dependency-injection": "<3.4", "symfony/var-dumper": "<3.3", "twig/twig": "<1.34|<2.4,>=2" }, + "provide": { + "psr/log-implementation": "1.0" + }, "require-dev": { "psr/cache": "~1.0", - "symfony/browser-kit": "~2.8|~3.0", + "symfony/browser-kit": "~2.8|~3.0|~4.0", "symfony/class-loader": "~2.8|~3.0", - "symfony/config": "~2.8|~3.0", - "symfony/console": "~2.8|~3.0", - "symfony/css-selector": "~2.8|~3.0", - "symfony/dependency-injection": "~3.3", - "symfony/dom-crawler": "~2.8|~3.0", - "symfony/expression-language": "~2.8|~3.0", - "symfony/finder": "~2.8|~3.0", - "symfony/process": "~2.8|~3.0", - "symfony/routing": "~2.8|~3.0", - "symfony/stopwatch": "~2.8|~3.0", - "symfony/templating": "~2.8|~3.0", - "symfony/translation": "~2.8|~3.0", - "symfony/var-dumper": "~3.3" + "symfony/config": "~2.8|~3.0|~4.0", + "symfony/console": "~2.8|~3.0|~4.0", + "symfony/css-selector": "~2.8|~3.0|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/dom-crawler": "~2.8|~3.0|~4.0", + "symfony/expression-language": "~2.8|~3.0|~4.0", + "symfony/finder": "~2.8|~3.0|~4.0", + "symfony/process": "~2.8|~3.0|~4.0", + "symfony/routing": "~3.4|~4.0", + "symfony/stopwatch": "~2.8|~3.0|~4.0", + "symfony/templating": "~2.8|~3.0|~4.0", + "symfony/translation": "~2.8|~3.0|~4.0", + "symfony/var-dumper": "~3.3|~4.0" }, "suggest": { "symfony/browser-kit": "", - "symfony/class-loader": "", "symfony/config": "", "symfony/console": "", "symfony/dependency-injection": "", @@ -2896,7 +3003,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -2923,7 +3030,7 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2017-10-05T23:40:19+00:00" + "time": "2017-12-04T23:05:00+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -2985,17 +3092,76 @@ "time": "2017-10-11T12:05:26+00:00" }, { - "name": "symfony/process", - "version": "v3.3.10", + "name": "symfony/polyfill-php70", + "version": "v1.6.0", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "fdf89e57a723a29baf536e288d6e232c059697b1" + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/fdf89e57a723a29baf536e288d6e232c059697b1", - "reference": "fdf89e57a723a29baf536e288d6e232c059697b1", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", + "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "~1.0|~2.0", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php70\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/process", + "version": "v3.4.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "db25e810fd5e124085e3777257d0cf4ae533d0ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/db25e810fd5e124085e3777257d0cf4ae533d0ea", + "reference": "db25e810fd5e124085e3777257d0cf4ae533d0ea", "shasum": "" }, "require": { @@ -3004,7 +3170,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -3031,20 +3197,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-11-22T12:18:49+00:00" }, { "name": "symfony/routing", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "2e26fa63da029dab49bf9377b3b4f60a8fecb009" + "reference": "d768aa5b25d98188bae3fe4ce3eb2924c97aafac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/2e26fa63da029dab49bf9377b3b4f60a8fecb009", - "reference": "2e26fa63da029dab49bf9377b3b4f60a8fecb009", + "url": "https://api.github.com/repos/symfony/routing/zipball/d768aa5b25d98188bae3fe4ce3eb2924c97aafac", + "reference": "d768aa5b25d98188bae3fe4ce3eb2924c97aafac", "shasum": "" }, "require": { @@ -3053,17 +3219,17 @@ "conflict": { "symfony/config": "<2.8", "symfony/dependency-injection": "<3.3", - "symfony/yaml": "<3.3" + "symfony/yaml": "<3.4" }, "require-dev": { "doctrine/annotations": "~1.0", "doctrine/common": "~2.2", "psr/log": "~1.0", - "symfony/config": "~2.8|~3.0", - "symfony/dependency-injection": "~3.3", - "symfony/expression-language": "~2.8|~3.0", - "symfony/http-foundation": "~2.8|~3.0", - "symfony/yaml": "~3.3" + "symfony/config": "~2.8|~3.0|~4.0", + "symfony/dependency-injection": "~3.3|~4.0", + "symfony/expression-language": "~2.8|~3.0|~4.0", + "symfony/http-foundation": "~2.8|~3.0|~4.0", + "symfony/yaml": "~3.4|~4.0" }, "suggest": { "doctrine/annotations": "For using the annotation loader", @@ -3076,7 +3242,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -3109,20 +3275,20 @@ "uri", "url" ], - "time": "2017-10-02T07:25:00+00:00" + "time": "2017-11-24T14:13:49+00:00" }, { "name": "symfony/translation", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "409bf229cd552bf7e3faa8ab7e3980b07672073f" + "reference": "e05b0a5996ad7a35ba3a19ffad8b72c9daa64dfa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/409bf229cd552bf7e3faa8ab7e3980b07672073f", - "reference": "409bf229cd552bf7e3faa8ab7e3980b07672073f", + "url": "https://api.github.com/repos/symfony/translation/zipball/e05b0a5996ad7a35ba3a19ffad8b72c9daa64dfa", + "reference": "e05b0a5996ad7a35ba3a19ffad8b72c9daa64dfa", "shasum": "" }, "require": { @@ -3131,13 +3297,16 @@ }, "conflict": { "symfony/config": "<2.8", - "symfony/yaml": "<3.3" + "symfony/dependency-injection": "<3.4", + "symfony/yaml": "<3.4" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~2.8|~3.0", - "symfony/intl": "^2.8.18|^3.2.5", - "symfony/yaml": "~3.3" + "symfony/config": "~2.8|~3.0|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/finder": "~2.8|~3.0|~4.0", + "symfony/intl": "^2.8.18|^3.2.5|~4.0", + "symfony/yaml": "~3.4|~4.0" }, "suggest": { "psr/log": "To use logging capability in translator", @@ -3147,7 +3316,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -3174,20 +3343,20 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-11-27T14:23:00+00:00" }, { "name": "symfony/var-dumper", - "version": "v3.3.10", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "03e3693a36701f1c581dd24a6d6eea2eba2113f6" + "reference": "ec650a975a8e04e0c114d35eab732981243db3a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/03e3693a36701f1c581dd24a6d6eea2eba2113f6", - "reference": "03e3693a36701f1c581dd24a6d6eea2eba2113f6", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/ec650a975a8e04e0c114d35eab732981243db3a2", + "reference": "ec650a975a8e04e0c114d35eab732981243db3a2", "shasum": "" }, "require": { @@ -3203,12 +3372,13 @@ }, "suggest": { "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", + "ext-intl": "To show region name in time zone dump", "ext-symfony_debug": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -3242,7 +3412,7 @@ "debug", "dump" ], - "time": "2017-10-02T06:42:24+00:00" + "time": "2017-11-30T14:59:23+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -3345,32 +3515,32 @@ "packages-dev": [ { "name": "doctrine/instantiator", - "version": "1.0.5", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^7.1" }, "require-dev": { "athletic/athletic": "~0.1.8", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpunit/phpunit": "^6.2.3", + "squizlabs/php_codesniffer": "^3.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -3395,20 +3565,20 @@ "constructor", "instantiate" ], - "time": "2015-06-14T21:17:01+00:00" + "time": "2017-07-22T11:58:36+00:00" }, { "name": "filp/whoops", - "version": "2.1.12", + "version": "2.1.14", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "a99f0b151846021ba7a73b4e3cba3ebc9f14f03e" + "reference": "c6081b8838686aa04f1e83ba7e91f78b7b2a23e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a99f0b151846021ba7a73b4e3cba3ebc9f14f03e", - "reference": "a99f0b151846021ba7a73b4e3cba3ebc9f14f03e", + "url": "https://api.github.com/repos/filp/whoops/zipball/c6081b8838686aa04f1e83ba7e91f78b7b2a23e6", + "reference": "c6081b8838686aa04f1e83ba7e91f78b7b2a23e6", "shasum": "" }, "require": { @@ -3417,7 +3587,7 @@ }, "require-dev": { "mockery/mockery": "0.9.*", - "phpunit/phpunit": "^4.8 || ^5.0", + "phpunit/phpunit": "^4.8.35 || ^5.7", "symfony/var-dumper": "^2.6 || ^3.0" }, "suggest": { @@ -3456,7 +3626,7 @@ "throwable", "whoops" ], - "time": "2017-10-15T13:05:10+00:00" + "time": "2017-11-23T18:22:44+00:00" }, { "name": "fzaninotto/faker", @@ -3824,29 +3994,35 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.1.1", + "version": "4.2.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "2d3d238c433cf69caeb4842e97a3223a116f94b2" + "reference": "66465776cfc249844bde6d117abff1d22e06c2da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/2d3d238c433cf69caeb4842e97a3223a116f94b2", - "reference": "2d3d238c433cf69caeb4842e97a3223a116f94b2", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/66465776cfc249844bde6d117abff1d22e06c2da", + "reference": "66465776cfc249844bde6d117abff1d22e06c2da", "shasum": "" }, "require": { "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/reflection-common": "^1.0.0", "phpdocumentor/type-resolver": "^0.4.0", "webmozart/assert": "^1.0" }, "require-dev": { - "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^4.4" + "doctrine/instantiator": "~1.0.5", + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^6.4" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, "autoload": { "psr-4": { "phpDocumentor\\Reflection\\": [ @@ -3865,7 +4041,7 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2017-08-30T18:51:59+00:00" + "time": "2017-11-27T17:38:31+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -3916,16 +4092,16 @@ }, { "name": "phpspec/prophecy", - "version": "v1.7.2", + "version": "1.7.3", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6" + "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", - "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", + "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", "shasum": "" }, "require": { @@ -3937,7 +4113,7 @@ }, "require-dev": { "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8 || ^5.6.5" + "phpunit/phpunit": "^4.8.35 || ^5.7" }, "type": "library", "extra": { @@ -3975,20 +4151,20 @@ "spy", "stub" ], - "time": "2017-09-04T11:05:03+00:00" + "time": "2017-11-24T13:59:53+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "5.2.2", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "8ed1902a57849e117b5651fc1a5c48110946c06b" + "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/8ed1902a57849e117b5651fc1a5c48110946c06b", - "reference": "8ed1902a57849e117b5651fc1a5c48110946c06b", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/661f34d0bd3f1a7225ef491a70a020ad23a057a1", + "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1", "shasum": "" }, "require": { @@ -3997,14 +4173,13 @@ "php": "^7.0", "phpunit/php-file-iterator": "^1.4.2", "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^1.4.11 || ^2.0", + "phpunit/php-token-stream": "^2.0.1", "sebastian/code-unit-reverse-lookup": "^1.0.1", "sebastian/environment": "^3.0", "sebastian/version": "^2.0.1", "theseer/tokenizer": "^1.1" }, "require-dev": { - "ext-xdebug": "^2.5", "phpunit/phpunit": "^6.0" }, "suggest": { @@ -4013,7 +4188,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.2.x-dev" + "dev-master": "5.3.x-dev" } }, "autoload": { @@ -4028,7 +4203,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -4039,20 +4214,20 @@ "testing", "xunit" ], - "time": "2017-08-03T12:40:43+00:00" + "time": "2017-12-06T09:29:45+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "1.4.2", + "version": "1.4.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", "shasum": "" }, "require": { @@ -4086,7 +4261,7 @@ "filesystem", "iterator" ], - "time": "2016-10-03T07:40:28+00:00" + "time": "2017-11-27T13:52:08+00:00" }, { "name": "phpunit/php-text-template", @@ -4180,16 +4355,16 @@ }, { "name": "phpunit/php-token-stream", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0" + "reference": "791198a2c6254db10131eecfe8c06670700904db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9a02332089ac48e704c70f6cefed30c224e3c0b0", - "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", + "reference": "791198a2c6254db10131eecfe8c06670700904db", "shasum": "" }, "require": { @@ -4225,20 +4400,20 @@ "keywords": [ "tokenizer" ], - "time": "2017-08-20T05:47:52+00:00" + "time": "2017-11-27T05:48:46+00:00" }, { "name": "phpunit/phpunit", - "version": "6.4.3", + "version": "6.5.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "06b28548fd2b4a20c3cd6e247dc86331a7d4db13" + "reference": "1b2f933d5775f9237369deaa2d2bfbf9d652be4c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/06b28548fd2b4a20c3cd6e247dc86331a7d4db13", - "reference": "06b28548fd2b4a20c3cd6e247dc86331a7d4db13", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1b2f933d5775f9237369deaa2d2bfbf9d652be4c", + "reference": "1b2f933d5775f9237369deaa2d2bfbf9d652be4c", "shasum": "" }, "require": { @@ -4252,12 +4427,12 @@ "phar-io/version": "^1.0", "php": "^7.0", "phpspec/prophecy": "^1.7", - "phpunit/php-code-coverage": "^5.2.2", - "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-code-coverage": "^5.3", + "phpunit/php-file-iterator": "^1.4.3", "phpunit/php-text-template": "^1.2.1", "phpunit/php-timer": "^1.0.9", - "phpunit/phpunit-mock-objects": "^4.0.3", - "sebastian/comparator": "^2.0.2", + "phpunit/phpunit-mock-objects": "^5.0.5", + "sebastian/comparator": "^2.1", "sebastian/diff": "^2.0", "sebastian/environment": "^3.1", "sebastian/exporter": "^3.1", @@ -4283,7 +4458,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "6.4.x-dev" + "dev-master": "6.5.x-dev" } }, "autoload": { @@ -4309,33 +4484,33 @@ "testing", "xunit" ], - "time": "2017-10-16T13:18:59+00:00" + "time": "2017-12-10T08:06:19+00:00" }, { "name": "phpunit/phpunit-mock-objects", - "version": "4.0.4", + "version": "5.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "2f789b59ab89669015ad984afa350c4ec577ade0" + "reference": "283b9f4f670e3a6fd6c4ff95c51a952eb5c75933" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/2f789b59ab89669015ad984afa350c4ec577ade0", - "reference": "2f789b59ab89669015ad984afa350c4ec577ade0", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/283b9f4f670e3a6fd6c4ff95c51a952eb5c75933", + "reference": "283b9f4f670e3a6fd6c4ff95c51a952eb5c75933", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.5", "php": "^7.0", "phpunit/php-text-template": "^1.2.1", - "sebastian/exporter": "^3.0" + "sebastian/exporter": "^3.1" }, "conflict": { "phpunit/phpunit": "<6.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^6.5" }, "suggest": { "ext-soap": "*" @@ -4343,7 +4518,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0.x-dev" + "dev-master": "5.0.x-dev" } }, "autoload": { @@ -4358,7 +4533,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -4368,7 +4543,7 @@ "mock", "xunit" ], - "time": "2017-08-03T14:08:16+00:00" + "time": "2017-12-10T08:01:53+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -4417,30 +4592,30 @@ }, { "name": "sebastian/comparator", - "version": "2.0.2", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "ae068fede81d06e7bb9bb46a367210a3d3e1fe6a" + "reference": "1174d9018191e93cb9d719edec01257fc05f8158" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/ae068fede81d06e7bb9bb46a367210a3d3e1fe6a", - "reference": "ae068fede81d06e7bb9bb46a367210a3d3e1fe6a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1174d9018191e93cb9d719edec01257fc05f8158", + "reference": "1174d9018191e93cb9d719edec01257fc05f8158", "shasum": "" }, "require": { "php": "^7.0", "sebastian/diff": "^2.0", - "sebastian/exporter": "^3.0" + "sebastian/exporter": "^3.1" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^6.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "2.1.x-dev" } }, "autoload": { @@ -4471,13 +4646,13 @@ } ], "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", + "homepage": "https://github.com/sebastianbergmann/comparator", "keywords": [ "comparator", "compare", "equality" ], - "time": "2017-08-03T07:14:59+00:00" + "time": "2017-11-03T07:16:52+00:00" }, { "name": "sebastian/diff", diff --git a/config/app.php b/config/app.php index 8ce5332..2ea28f2 100644 --- a/config/app.php +++ b/config/app.php @@ -184,6 +184,8 @@ return [ Collective\Html\HtmlServiceProvider::class, Intervention\Image\ImageServiceProvider::class, Magyarjeti\LaravelLipsum\LipsumServiceProvider::class, + Creativeorange\Gravatar\GravatarServiceProvider::class, + Acacha\User\Providers\GuestUserServiceProvider::class, ], /* @@ -215,6 +217,7 @@ return [ 'Event' => Illuminate\Support\Facades\Event::class, 'File' => Illuminate\Support\Facades\File::class, 'Gate' => Illuminate\Support\Facades\Gate::class, + 'Gravatar' => Creativeorange\Gravatar\Facades\Gravatar::class, 'Hash' => Illuminate\Support\Facades\Hash::class, 'Image' => Intervention\Image\Facades\Image::class, 'Lang' => Illuminate\Support\Facades\Lang::class, diff --git a/config/gravatar.php b/config/gravatar.php new file mode 100644 index 0000000..8f4466b --- /dev/null +++ b/config/gravatar.php @@ -0,0 +1,34 @@ + array( + + // By default, images are presented at 80px by 80px if no size parameter is supplied. + // You may request a specific image size, which will be dynamically delivered from Gravatar + // by passing a single pixel dimension (since the images are square): + 'size' => 80, + + // the fallback image, can be a string or a url + // for more info, visit: http://en.gravatar.com/site/implement/images/#default-image + 'fallback' => 'mm', + + // would you like to return a https://... image + 'secure' => false, + + // Gravatar allows users to self-rate their images so that they can indicate if an image + // is appropriate for a certain audience. By default, only 'G' rated images are displayed + // unless you indicate that you would like to see higher ratings. + // Available options: + // g: suitable for display on all websites with any audience type. + // pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence. + // r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use. + // x: may contain hardcore sexual imagery or extremely disturbing violence. + 'maximumRating' => 'g', + + // If for some reason you wanted to force the default image to always load, you can do that setting this to true + 'forceDefault' => false, + + // If you require a file-type extension (some places do) then you may also add an (optional) .jpg extension to that URL + 'forceExtension' => 'jpg', + ) +); \ No newline at end of file diff --git a/database/migrations/2017_11_03_051724_create_performance_indicators_table.php b/database/migrations/2017_11_03_051724_create_performance_indicators_table.php deleted file mode 100644 index e4fc207..0000000 --- a/database/migrations/2017_11_03_051724_create_performance_indicators_table.php +++ /dev/null @@ -1,36 +0,0 @@ -increments('id'); - $table->decimal('monthly_recurring_revenue'); - $table->decimal('yearly_recurring_revenue'); - $table->decimal('daily_volume'); - $table->integer('new_users'); - $table->timestamps(); - - $table->index('created_at'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('performance_indicators'); - } -} diff --git a/database/migrations/2017_11_03_051725_create_announcements_table.php b/database/migrations/2017_11_03_051725_create_announcements_table.php deleted file mode 100644 index b5f9a74..0000000 --- a/database/migrations/2017_11_03_051725_create_announcements_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('id')->primary(); - $table->integer('user_id'); - $table->text('body'); - $table->string('action_text')->nullable(); - $table->text('action_url')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('announcements'); - } -} diff --git a/database/migrations/2017_11_03_051727_create_users_table.php b/database/migrations/2017_11_03_051727_create_users_table.php deleted file mode 100644 index 018ee53..0000000 --- a/database/migrations/2017_11_03_051727_create_users_table.php +++ /dev/null @@ -1,56 +0,0 @@ -increments('id'); - $table->string('name'); - $table->string('email')->unique(); - $table->string('password', 60); - $table->rememberToken(); - $table->text('photo_url')->nullable(); - $table->tinyInteger('uses_two_factor_auth')->default(0); - $table->string('authy_id')->nullable(); - $table->string('country_code', 10)->nullable(); - $table->string('phone', 25)->nullable(); - $table->string('two_factor_reset_code', 100)->nullable(); - $table->integer('current_team_id')->nullable(); - $table->string('stripe_id')->nullable(); - $table->string('current_billing_plan')->nullable(); - $table->string('card_brand')->nullable(); - $table->string('card_last_four')->nullable(); - $table->string('card_country')->nullable(); - $table->string('billing_address')->nullable(); - $table->string('billing_address_line_2')->nullable(); - $table->string('billing_city')->nullable(); - $table->string('billing_state')->nullable(); - $table->string('billing_zip', 25)->nullable(); - $table->string('billing_country', 2)->nullable(); - $table->string('vat_id', 50)->nullable(); - $table->text('extra_billing_information')->nullable(); - $table->timestamp('trial_ends_at')->nullable(); - $table->timestamp('last_read_announcements_at')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('users'); - } -} diff --git a/database/migrations/2017_11_03_051730_create_password_resets_table.php b/database/migrations/2017_11_03_051730_create_password_resets_table.php deleted file mode 100644 index 294c3ea..0000000 --- a/database/migrations/2017_11_03_051730_create_password_resets_table.php +++ /dev/null @@ -1,31 +0,0 @@ -string('email')->index(); - $table->string('token')->index(); - $table->timestamp('created_at')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('password_resets'); - } -} diff --git a/database/migrations/2017_11_03_051734_create_api_tokens_table.php b/database/migrations/2017_11_03_051734_create_api_tokens_table.php deleted file mode 100644 index 82718d2..0000000 --- a/database/migrations/2017_11_03_051734_create_api_tokens_table.php +++ /dev/null @@ -1,39 +0,0 @@ -string('id')->primary(); - $table->integer('user_id'); - $table->string('name'); - $table->string('token', 100)->unique(); - $table->text('metadata'); - $table->tinyInteger('transient')->default(0); - $table->timestamp('last_used_at')->nullable(); - $table->timestamp('expires_at')->nullable(); - $table->timestamps(); - - $table->index(['user_id', 'expires_at']); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('api_tokens'); - } -} diff --git a/database/migrations/2017_11_03_051739_create_subscriptions_table.php b/database/migrations/2017_11_03_051739_create_subscriptions_table.php deleted file mode 100644 index 39271f1..0000000 --- a/database/migrations/2017_11_03_051739_create_subscriptions_table.php +++ /dev/null @@ -1,50 +0,0 @@ -increments('id'); - $table->integer('user_id'); - $table->string('name'); - $table->string('stripe_id'); - $table->string('stripe_plan'); - $table->integer('quantity'); - $table->timestamp('trial_ends_at')->nullable(); - $table->timestamp('ends_at')->nullable(); - $table->timestamps(); - }); - - Schema::create('team_subscriptions', function ($table) { - $table->increments('id'); - $table->integer('team_id'); - $table->string('name'); - $table->string('stripe_id'); - $table->string('stripe_plan'); - $table->integer('quantity'); - $table->timestamp('trial_ends_at')->nullable(); - $table->timestamp('ends_at')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('subscriptions'); - Schema::drop('team_subscriptions'); - } -} diff --git a/database/migrations/2017_11_03_051745_create_invoices_table.php b/database/migrations/2017_11_03_051745_create_invoices_table.php deleted file mode 100644 index 7f2a1bb..0000000 --- a/database/migrations/2017_11_03_051745_create_invoices_table.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->integer('user_id')->nullable()->index(); - $table->integer('team_id')->nullable()->index(); - $table->string('provider_id'); - $table->decimal('total')->nullable(); - $table->decimal('tax')->nullable(); - $table->string('card_country')->nullable(); - $table->string('billing_state')->nullable(); - $table->string('billing_zip')->nullable(); - $table->string('billing_country')->nullable(); - $table->string('vat_id', 50)->nullable(); - $table->timestamps(); - - $table->index('created_at'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('invoices'); - } -} diff --git a/database/migrations/2017_11_03_051752_create_notifications_table.php b/database/migrations/2017_11_03_051752_create_notifications_table.php deleted file mode 100644 index fbadae1..0000000 --- a/database/migrations/2017_11_03_051752_create_notifications_table.php +++ /dev/null @@ -1,39 +0,0 @@ -string('id')->primary(); - $table->integer('user_id'); - $table->integer('created_by')->nullable(); - $table->string('icon', 50)->nullable(); - $table->text('body'); - $table->string('action_text')->nullable(); - $table->text('action_url')->nullable(); - $table->tinyInteger('read')->default(0); - $table->timestamps(); - - $table->index(['user_id', 'created_at']); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('notifications'); - } -} diff --git a/database/migrations/2017_11_03_051800_create_teams_table.php b/database/migrations/2017_11_03_051800_create_teams_table.php deleted file mode 100644 index b317945..0000000 --- a/database/migrations/2017_11_03_051800_create_teams_table.php +++ /dev/null @@ -1,48 +0,0 @@ -increments('id'); - $table->integer('owner_id')->index(); - $table->string('name'); - $table->string('slug')->nullable()->unique(); - $table->text('photo_url')->nullable(); - $table->string('stripe_id')->nullable(); - $table->string('current_billing_plan')->nullable(); - $table->string('card_brand')->nullable(); - $table->string('card_last_four')->nullable(); - $table->string('card_country')->nullable(); - $table->string('billing_address')->nullable(); - $table->string('billing_address_line_2')->nullable(); - $table->string('billing_city')->nullable(); - $table->string('billing_state')->nullable(); - $table->string('billing_zip', 25)->nullable(); - $table->string('billing_country', 2)->nullable(); - $table->string('vat_id', 50)->nullable(); - $table->text('extra_billing_information')->nullable(); - $table->timestamp('trial_ends_at')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('teams'); - } -} diff --git a/database/migrations/2017_11_03_051809_create_team_users_table.php b/database/migrations/2017_11_03_051809_create_team_users_table.php deleted file mode 100644 index 9d476e3..0000000 --- a/database/migrations/2017_11_03_051809_create_team_users_table.php +++ /dev/null @@ -1,33 +0,0 @@ -integer('team_id'); - $table->integer('user_id'); - $table->string('role', 20); - - $table->unique(['team_id', 'user_id']); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('team_users'); - } -} diff --git a/database/migrations/2017_11_03_051819_create_invitations_table.php b/database/migrations/2017_11_03_051819_create_invitations_table.php deleted file mode 100644 index fb0d92f..0000000 --- a/database/migrations/2017_11_03_051819_create_invitations_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('id')->primary(); - $table->integer('team_id')->index(); - $table->integer('user_id')->nullable()->index(); - $table->string('email'); - $table->string('token', 40)->unique(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('invitations'); - } -} diff --git a/database/migrations/2017_12_05_015457_CreateTableSite.php b/database/migrations/2017_12_05_015457_CreateTableSites.php similarity index 56% rename from database/migrations/2017_12_05_015457_CreateTableSite.php rename to database/migrations/2017_12_05_015457_CreateTableSites.php index b5752f2..5fc8812 100644 --- a/database/migrations/2017_12_05_015457_CreateTableSite.php +++ b/database/migrations/2017_12_05_015457_CreateTableSites.php @@ -5,7 +5,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use App\Models\Site; -class CreateTableSite extends Migration +class CreateTableSites extends Migration { private $convert = 'App\Models\Old\Setup'; @@ -16,8 +16,8 @@ class CreateTableSite extends Migration */ public function up() { - Schema::dropIfExists('site'); - Schema::create('site', function (Blueprint $table) { + Schema::dropIfExists('sites'); + Schema::create('sites', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->string('url'); @@ -37,20 +37,16 @@ class CreateTableSite extends Migration if ($this->convert) foreach (($this->convert)::all() as $o) { - $so = Site::where(['url'=>rtrim($o->url,'/')])->first(); - - if (! $so) - $so = new Site; - - $so->url = rtrim($o->url,'/'); - $so->name = $o->site_details['name']; - $so->email = $o->site_details['email']; - $so->address = ['address1'=>$o->site_details['address1'],'address2'=>$o->site_details['address2'],'city'=>$o->site_details['city'],'state'=>$o->site_details['state'],'postcode'=>$o->site_details['pcode']]; - $so->phone = $o->site_details['phone']; - $so->fax = $o->site_details['fax']; - $so->theme = 'metronic-fe'; - $so->devurl = 'http://graytech'; - $so->save(); + $oo = new Site; + $oo->url = rtrim($o->url,'/'); + $oo->name = $o->site_details['name']; + $oo->email = $o->site_details['email']; + $oo->address = ['address1'=>$o->site_details['address1'],'address2'=>$o->site_details['address2'],'city'=>$o->site_details['city'],'state'=>$o->site_details['state'],'postcode'=>$o->site_details['pcode']]; + $oo->phone = $o->site_details['phone']; + $oo->fax = $o->site_details['fax']; + $oo->theme = 'metronic-fe'; + $oo->devurl = 'http://graytech'; + $oo->save(); } } @@ -61,6 +57,6 @@ class CreateTableSite extends Migration */ public function down() { - Schema::dropIfExists('site'); + Schema::dropIfExists('sites'); } -} +} \ No newline at end of file diff --git a/database/migrations/2017_12_06_000000_CreateTableCurrencies.php b/database/migrations/2017_12_06_000000_CreateTableCurrencies.php new file mode 100644 index 0000000..01be5f4 --- /dev/null +++ b/database/migrations/2017_12_06_000000_CreateTableCurrencies.php @@ -0,0 +1,49 @@ +increments('id'); + $table->string('name'); + $table->string('symbol',2)->nullable(); + $table->string('threecode',3); + $table->boolean('active'); + }); + + if ($this->convert) + foreach (($this->convert)::all() as $o) + { + $oo = new Currency; + $oo->name = $o->name; + $oo->symbol = $o->symbol; + $oo->threecode = $o->three_digit; + $oo->active = $o->three_code == 'AUS' ? TRUE : FALSE; + $oo->save(); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('currencies'); + } +} diff --git a/database/migrations/2017_12_06_000001_CreateTableCountries.php b/database/migrations/2017_12_06_000001_CreateTableCountries.php new file mode 100644 index 0000000..563c613 --- /dev/null +++ b/database/migrations/2017_12_06_000001_CreateTableCountries.php @@ -0,0 +1,59 @@ +increments('id'); + $table->string('name'); + $table->string('twocode',2)->nullable(); + $table->string('threecode',3); + $table->integer('currency_id')->unsigned()->nullable(); + $table->boolean('active'); + + $table->foreign('currency_id')->references('id')->on('currencies'); + }); + + if ($this->convert) + foreach (($this->convert)::all() as $o) + { + if ($o->currency) + $co = Currency::where('name',$o->currency->name)->firstOrFail(); + + $oo = new Country; + $oo->name = $o->name; + $oo->twocode = $o->two_code; + $oo->threecode = $o->three_code; + $oo->active = $o->three_code == 'AUS' ? TRUE : FALSE; + + if ($o->currency) + $co->countries()->save($oo); + else + $oo->save(); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('countries'); + } +} diff --git a/database/migrations/2017_12_08_050712_CreateTableUsers.php b/database/migrations/2017_12_08_050712_CreateTableUsers.php new file mode 100644 index 0000000..b0e0bdd --- /dev/null +++ b/database/migrations/2017_12_08_050712_CreateTableUsers.php @@ -0,0 +1,86 @@ +increments('id'); + $table->timestamps(); + $table->integer('site_id'); + $table->string('email'); + $table->string('password')->nullable(); + $table->rememberToken(); + $table->boolean('active'); + $table->string('title')->nullable(); + $table->string('firstname'); + $table->string('lastname'); + $table->integer('country_id'); + $table->string('address1')->nullable(); + $table->string('address2')->nullable(); + $table->string('city')->nullable(); + $table->string('state')->nullable(); + $table->string('postcode')->nullable(); + $table->boolean('emailable')->default(TRUE); + + $table->unique(['site_id','email']); + }); + + if ($this->convert) + foreach (($this->convert)::where('id','>',0)->get() as $o) + { + $co = Country::where('name',$o->country->name)->firstOrFail(); + $oo = User::where('email',$o->email)->first(); + + if ($oo) { + if ($oo->updated_at > date('Y-m-d H:i:s',$o->date_last)) + continue; + + //printf("Updating user [%s]\n",$oo->email); + } else { + $oo = new User; + //printf("New user [%s]\n",$o->email); + } + + $oo->site_id = $o->site_id; + $oo->email = $o->email; + $oo->password = $o->password; + $oo->firstname = $o->first_name; + $oo->lastname = $o->last_name; + $oo->address1 = $o->address1; + $oo->address2 = $o->address2; + $oo->city = $o->city; + $oo->state = $o->state; + $oo->postcode = $o->zip; + $oo->active = $o->active; + $oo->created_at = date('Y-m-d H:i:s',$o->date_orig); + $oo->updated_at = $o->date_last ? date('Y-m-d H:i:s',$o->date_last) : NULL; + //$oo->country_id = $co->id; + $co->users()->save($oo); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('users'); + } +} diff --git a/public/theme/backend/adminlte/site/js/bootstrap3-typeahead.min.js b/public/theme/backend/adminlte/site/js/bootstrap3-typeahead.min.js new file mode 100644 index 0000000..169e51f --- /dev/null +++ b/public/theme/backend/adminlte/site/js/bootstrap3-typeahead.min.js @@ -0,0 +1 @@ +!function(a,b){"use strict";"undefined"!=typeof module&&module.exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):b(a.jQuery)}(this,function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.defaults,d),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.select=this.options.select||this.select,this.autoSelect="boolean"!=typeof this.options.autoSelect||this.options.autoSelect,this.highlighter=this.options.highlighter||this.highlighter,this.render=this.options.render||this.render,this.updater=this.options.updater||this.updater,this.displayText=this.options.displayText||this.displayText,this.source=this.options.source,this.delay=this.options.delay,this.$menu=a(this.options.menu),this.$appendTo=this.options.appendTo?a(this.options.appendTo):null,this.fitToElement="boolean"==typeof this.options.fitToElement&&this.options.fitToElement,this.shown=!1,this.listen(),this.showHintOnFocus=("boolean"==typeof this.options.showHintOnFocus||"all"===this.options.showHintOnFocus)&&this.options.showHintOnFocus,this.afterSelect=this.options.afterSelect,this.addItem=!1,this.value=this.$element.val()||this.$element.text()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").data("value");if(this.$element.data("active",a),this.autoSelect||a){var b=this.updater(a);b||(b=""),this.$element.val(this.displayText(b)||b).text(this.displayText(b)||b).change(),this.afterSelect(b)}return this.hide()},updater:function(a){return a},setSource:function(a){this.source=a},show:function(){var d,b=a.extend({},this.$element.position(),{height:this.$element[0].offsetHeight}),c="function"==typeof this.options.scrollHeight?this.options.scrollHeight.call():this.options.scrollHeight;if(this.shown?d=this.$menu:this.$appendTo?(d=this.$menu.appendTo(this.$appendTo),this.hasSameParent=this.$appendTo.is(this.$element.parent())):(d=this.$menu.insertAfter(this.$element),this.hasSameParent=!0),!this.hasSameParent){d.css("position","fixed");var e=this.$element.offset();b.top=e.top,b.left=e.left}var f=a(d).parent().hasClass("dropup"),g=f?"auto":b.top+b.height+c,h=a(d).hasClass("dropdown-menu-right"),i=h?"auto":b.left;return d.css({top:g,left:i}).show(),this.options.fitToElement===!0&&d.css("width",this.$element.outerWidth()+"px"),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){if("undefined"!=typeof b&&null!==b?this.query=b:this.query=this.$element.val()||this.$element.text()||"",this.query.length0?this.$element.data("active",b[0]):this.$element.data("active",null),this.options.addItem&&b.push(this.options.addItem),"all"==this.options.items?this.render(b).show():this.render(b.slice(0,this.options.items)).show()):this.shown?this.hide():this},matcher:function(a){var b=this.displayText(a);return~b.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){for(var e,b=[],c=[],d=[];e=a.shift();){var f=this.displayText(e);f.toLowerCase().indexOf(this.query.toLowerCase())?~f.indexOf(this.query)?c.push(e):d.push(e):b.push(e)}return b.concat(c,d)},highlighter:function(a){var b=this.query;if(""===b)return a;var f,c=a.match(/(>)([^<]*)(<)/g),d=[],e=[];if(c&&c.length)for(f=0;f2&&d.push(c[f]);else d=[],d.push(a);b = b.replace((/[\(\)\/\.\*\+\?\[\]]/g), function(m) {return '\\'+m;});var h,g=new RegExp(b,"g");for(f=0;f0&&e.push(d[f]);for(f=0;f$&"));return a},render:function(b){var c=this,d=this,e=!1,f=[],g=c.options.separator;return a.each(b,function(a,c){a>0&&c[g]!==b[a-1][g]&&f.push({__type:"divider"}),!c[g]||0!==a&&c[g]===b[a-1][g]||f.push({__type:"category",name:c[g]}),f.push(c)}),b=a(f).map(function(b,f){if("category"==(f.__type||!1))return a(c.options.headerHtml).text(f.name)[0];if("divider"==(f.__type||!1))return a(c.options.headerDivider)[0];var g=d.displayText(f);return b=a(c.options.item).data("value",f),b.find("a").html(c.highlighter(g,f)),g==d.$element.val()&&(b.addClass("active"),d.$element.data("active",f),e=!0),b[0]}),this.autoSelect&&!e&&(b.filter(":not(.dropdown-header)").first().addClass("active"),this.$element.data("active",b.first().data("value"))),this.$menu.html(b),this},displayText:function(a){return"undefined"!=typeof a&&"undefined"!=typeof a.name?a.name:a},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("focus",a.proxy(this.focus,this)).on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("input",a.proxy(this.input,this)).on("keyup",a.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",a.proxy(this.keydown,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this)).on("mouseleave","li",a.proxy(this.mouseleave,this)).on("mousedown",a.proxy(this.mousedown,this))},destroy:function(){this.$element.data("typeahead",null),this.$element.data("active",null),this.$element.off("focus").off("blur").off("keypress").off("input").off("keyup"),this.eventSupported("keydown")&&this.$element.off("keydown"),this.$menu.remove(),this.destroyed=!0},eventSupported:function(a){var b=a in this.$element;return b||(this.$element.setAttribute(a,"return;"),b="function"==typeof this.$element[a]),b},move:function(a){if(this.shown)switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:if(a.shiftKey)return;a.preventDefault(),this.prev();break;case 40:if(a.shiftKey)return;a.preventDefault(),this.next()}},keydown:function(b){this.suppressKeyPressRepeat=~a.inArray(b.keyCode,[40,38,9,13,27]),this.shown||40!=b.keyCode?this.move(b):this.lookup()},keypress:function(a){this.suppressKeyPressRepeat||this.move(a)},input:function(a){var b=this.$element.val()||this.$element.text();this.value!==b&&(this.value=b,this.lookup())},keyup:function(a){if(!this.destroyed)switch(a.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide()}},focus:function(a){this.focused||(this.focused=!0,this.options.showHintOnFocus&&this.skipShowHintOnFocus!==!0&&("all"===this.options.showHintOnFocus?this.lookup(""):this.lookup())),this.skipShowHintOnFocus&&(this.skipShowHintOnFocus=!1)},blur:function(a){this.mousedover||this.mouseddown||!this.shown?this.mouseddown&&(this.skipShowHintOnFocus=!0,this.$element.focus(),this.mouseddown=!1):(this.hide(),this.focused=!1)},click:function(a){a.preventDefault(),this.skipShowHintOnFocus=!0,this.select(),this.$element.focus(),this.hide()},mouseenter:function(b){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")},mouseleave:function(a){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},mousedown:function(a){this.mouseddown=!0,this.$menu.one("mouseup",function(a){this.mouseddown=!1}.bind(this))}};var c=a.fn.typeahead;a.fn.typeahead=function(c){var d=arguments;return"string"==typeof c&&"getActive"==c?this.data("active"):this.each(function(){var e=a(this),f=e.data("typeahead"),g="object"==typeof c&&c;f||e.data("typeahead",f=new b(this,g)),"string"==typeof c&&f[c]&&(d.length>1?f[c].apply(f,Array.prototype.slice.call(d,1)):f[c]())})},b.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1,scrollHeight:0,autoSelect:!0,afterSelect:a.noop,addItem:!1,delay:0,separator:"category",headerHtml:'',headerDivider:''},a.fn.typeahead.Constructor=b,a.fn.typeahead.noConflict=function(){return a.fn.typeahead=c,this},a(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);c.data("typeahead")||c.typeahead(c.data())})}); diff --git a/public/theme/backend/adminlte/site/js/fastclick.min.js b/public/theme/backend/adminlte/site/js/fastclick.min.js new file mode 100644 index 0000000..131e29e --- /dev/null +++ b/public/theme/backend/adminlte/site/js/fastclick.min.js @@ -0,0 +1 @@ +!function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return i(n?n:e)},u,u.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;sc;c++)a[s[c]]=i(a[s[c]],a);r&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,r){var i=Node.prototype.removeEventListener;"click"===e?i.call(t,e,n.hijacked||n,r):i.call(t,e,n,r)},t.addEventListener=function(e,n,r){var i=Node.prototype.addEventListener;"click"===e?i.call(t,e,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),r):i.call(t,e,n,r)}),"function"==typeof t.onclick&&(o=t.onclick,t.addEventListener("click",function(e){o(e)},!1),t.onclick=null)}}var n=navigator.userAgent.indexOf("Windows Phone")>=0,r=navigator.userAgent.indexOf("Android")>0&&!n,i=/iP(ad|hone|od)/.test(navigator.userAgent)&&!n,o=i&&/OS 4_\d(_\d)?/.test(navigator.userAgent),s=i&&/OS [6-7]_\d/.test(navigator.userAgent),a=navigator.userAgent.indexOf("BB10")>0;e.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(i&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},e.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!r;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},e.prototype.sendClick=function(e,t){var n,r;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),r=t.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(e),!0,!0,window,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},e.prototype.determineEventType=function(e){return r&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},e.prototype.focus=function(e){var t;i&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},e.prototype.updateScrollParent=function(e){var t,n;if(t=e.fastClickScrollParent,!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},e.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},e.prototype.onTouchStart=function(e){var t,n,r;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],i){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!o){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTimen||Math.abs(t.pageY-this.touchStartY)>n?!0:!1},e.prototype.onTouchMove=function(e){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},e.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},e.prototype.onTouchEnd=function(e){var t,n,a,c,l,u=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTimethis.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,s&&(l=e.changedTouches[0],u=document.elementFromPoint(l.pageX-window.pageXOffset,l.pageY-window.pageYOffset)||u,u.fastClickScrollParent=this.targetElement.fastClickScrollParent),a=u.tagName.toLowerCase(),"label"===a){if(t=this.findControl(u)){if(this.focus(u),r)return!1;u=t}}else if(this.needsFocus(u))return e.timeStamp-n>100||i&&window.top!==window&&"input"===a?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,e),i&&"select"===a||(this.targetElement=null,e.preventDefault()),!1);return i&&!o&&(c=u.fastClickScrollParent,c&&c.fastClickLastScrollTop!==c.scrollTop)?!0:(this.needsClick(u)||(e.preventDefault(),this.sendClick(u,e)),!1)},e.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},e.prototype.onMouse=function(e){return this.targetElement?e.forwardedTouchEvent?!0:e.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1):!0:!0},e.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail?!0:(t=this.onMouse(e),t||(this.targetElement=null),t)},e.prototype.destroy=function(){var e=this.layer;r&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},e.notNeeded=function(e){var t,n,i,o;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!r)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(a&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]")))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction?!0:(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],o>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))?!0:"none"===e.style.touchAction||"manipulation"===e.style.touchAction?!0:!1)},e.attach=function(t,n){return new e(t,n)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):"undefined"!=typeof t&&t.exports?(t.exports=e.attach,t.exports.FastClick=e):window.FastClick=e}()},{}],2:[function(e){window.Origami={fastclick:e("./bower_components/fastclick/lib/fastclick.js")}},{"./bower_components/fastclick/lib/fastclick.js":1}]},{},[2]);;(function() {function trigger(){document.dispatchEvent(new CustomEvent('o.load'))};document.addEventListener('load',trigger);if (document.readyState==='ready') trigger();}());(function() {function trigger(){document.dispatchEvent(new CustomEvent('o.DOMContentLoaded'))};document.addEventListener('DOMContentLoaded',trigger);if (document.readyState==='interactive') trigger();}()) \ No newline at end of file diff --git a/public/theme/backend/adminlte/site/js/jquery.slimscroll.min.js b/public/theme/backend/adminlte/site/js/jquery.slimscroll.min.js new file mode 100644 index 0000000..7531ab3 --- /dev/null +++ b/public/theme/backend/adminlte/site/js/jquery.slimscroll.min.js @@ -0,0 +1,16 @@ +/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) + * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. + * + * Version: 1.3.8 + * + */ +(function(e){e.fn.extend({slimScroll:function(f){var a=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},f);this.each(function(){function v(d){if(r){d=d||window.event; +var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);e(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&n(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}function n(d,g,e){k=!1;var f=b.outerHeight()-c.outerHeight();g&&(g=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),g=Math.min(Math.max(g,0),f),g=0=b.outerHeight()?k=!0:(c.stop(!0, +!0).fadeIn("fast"),a.railVisible&&m.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(B=setTimeout(function(){a.disableFadeOut&&r||y||z||(c.fadeOut("slow"),m.fadeOut("slow"))},1E3))}var r,y,z,B,A,u,l,C,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var q=b.scrollTop(),c=b.siblings("."+a.barClass),m=b.siblings("."+a.railClass);x();if(e.isPlainObject(f)){if("height"in f&&"auto"==f.height){b.parent().css("height","auto");b.css("height","auto");var h=b.parent().parent().height();b.parent().css("height", +h);b.css("height",h)}else"height"in f&&(h=f.height,b.parent().css("height",h),b.css("height",h));if("scrollTo"in f)q=parseInt(a.scrollTo);else if("scrollBy"in f)q+=parseInt(a.scrollBy);else if("destroy"in f){c.remove();m.remove();b.unwrap();return}n(q,!1,!0)}}else if(!(e.isPlainObject(f)&&"destroy"in f)){a.height="auto"==a.height?b.parent().height():a.height;q=e("
    ").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden", +width:a.width,height:a.height});var m=e("
    ").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("
    ").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius, +WebkitBorderRadius:a.borderRadius,zIndex:99}),h="right"==a.position?{right:a.distance}:{left:a.distance};m.css(h);c.css(h);b.wrap(q);b.parent().append(c);b.parent().append(m);a.railDraggable&&c.bind("mousedown",function(a){var b=e(document);z=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);n(0,c.position().top,!1)});b.bind("mouseup.slimscroll",function(a){z=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll", +function(a){a.stopPropagation();a.preventDefault();return!1});m.hover(function(){w()},function(){p()});c.hover(function(){y=!0},function(){y=!1});b.hover(function(){r=!0;w();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(A=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(n((A-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),A=b.originalEvent.touches[0].pageY)}); +x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"top"!==a.start&&(n(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery); \ No newline at end of file diff --git a/resources/theme/backend/adminlte/auth/login.blade.php b/resources/theme/backend/adminlte/auth/login.blade.php index fecc166..3a9e2e7 100644 --- a/resources/theme/backend/adminlte/auth/login.blade.php +++ b/resources/theme/backend/adminlte/auth/login.blade.php @@ -1,52 +1,52 @@ @extends('layouts.auth') @section('htmlheader_title') - Log in + Log in @endsection @section('content') -
    - +
    + @include('layouts.partials.scripts_auth') - + @endsection \ No newline at end of file diff --git a/resources/theme/backend/adminlte/home.blade.php b/resources/theme/backend/adminlte/home.blade.php new file mode 100644 index 0000000..1ff0ea8 --- /dev/null +++ b/resources/theme/backend/adminlte/home.blade.php @@ -0,0 +1,32 @@ +@extends('layouts.app') + +@section('htmlheader_title') + Page Title +@endsection + +@section('contentheader_title') + Home Page +@endsection +@section('contentheader_description') + Home +@endsection + +@section('main-content') +
    +
    +
    +

    Content

    +
    + + +
    +
    + +
    + Content Here +
    +
    +
    +@endsection \ No newline at end of file diff --git a/resources/theme/backend/adminlte/layouts/app.blade.php b/resources/theme/backend/adminlte/layouts/app.blade.php new file mode 100644 index 0000000..85ef689 --- /dev/null +++ b/resources/theme/backend/adminlte/layouts/app.blade.php @@ -0,0 +1,41 @@ + + + +@section('htmlheader') + @include('layouts.partials.htmlheader') +@show + + +
    +
    + @include('layouts.partials.mainheader') + + @include('layouts.partials.sidebar') + + +
    + + @include('layouts.partials.contentheader') + + +
    +
    + + @yield('main-content') +
    +
    + +
    + + + @include('layouts.partials.footer') +
    +
    + + @section('scripts') + @include('layouts.partials.scripts') + {{-- Scripts --}} + {!! Asset::scripts() !!} + @show + + \ No newline at end of file diff --git a/resources/theme/backend/adminlte/layouts/partials/contentheader.blade.php b/resources/theme/backend/adminlte/layouts/partials/contentheader.blade.php new file mode 100644 index 0000000..6cd5fd8 --- /dev/null +++ b/resources/theme/backend/adminlte/layouts/partials/contentheader.blade.php @@ -0,0 +1,17 @@ + +
    +
    +

    + @yield('contentheader_title', 'Software Deployment') + @yield('contentheader_description') +

    + + +
    \ No newline at end of file diff --git a/resources/theme/backend/adminlte/layouts/partials/footer.blade.php b/resources/theme/backend/adminlte/layouts/partials/footer.blade.php new file mode 100644 index 0000000..588a1f1 --- /dev/null +++ b/resources/theme/backend/adminlte/layouts/partials/footer.blade.php @@ -0,0 +1,8 @@ + +
    + + + © Leenooks +
    diff --git a/resources/theme/backend/adminlte/layouts/partials/mainheader.blade.php b/resources/theme/backend/adminlte/layouts/partials/mainheader.blade.php new file mode 100644 index 0000000..0637ec0 --- /dev/null +++ b/resources/theme/backend/adminlte/layouts/partials/mainheader.blade.php @@ -0,0 +1,95 @@ + +
    + + + + + + +
    diff --git a/resources/theme/backend/adminlte/layouts/partials/scripts.blade.php b/resources/theme/backend/adminlte/layouts/partials/scripts.blade.php new file mode 100644 index 0000000..f54677f --- /dev/null +++ b/resources/theme/backend/adminlte/layouts/partials/scripts.blade.php @@ -0,0 +1,13 @@ + + + + + + +@yield('page-scripts') + + @js('/site/js/jquery.slimscroll.min.js',jquery) + @js('/site/js/fastclick.min.js') diff --git a/resources/theme/backend/adminlte/layouts/partials/sidebar.blade.php b/resources/theme/backend/adminlte/layouts/partials/sidebar.blade.php new file mode 100644 index 0000000..4a4b4a7 --- /dev/null +++ b/resources/theme/backend/adminlte/layouts/partials/sidebar.blade.php @@ -0,0 +1,108 @@ + + + +@section('page-scripts') + @js('/site/js/bootstrap3-typeahead.min.js') + + +@append \ No newline at end of file diff --git a/resources/theme/frontend/metronic/welcome.blade.php b/resources/theme/frontend/metronic/welcome.blade.php index 2aa83df..f0b40e6 100644 --- a/resources/theme/frontend/metronic/welcome.blade.php +++ b/resources/theme/frontend/metronic/welcome.blade.php @@ -74,7 +74,6 @@ @endsection - @section('scripts')