Change version handling; bump to 0.1.1-beta

This commit is contained in:
Dane Everitt 2016-01-23 21:42:56 -05:00
parent c81bc37865
commit 35de668622
5 changed files with 67 additions and 3 deletions

View file

@ -23,5 +23,3 @@ MAIL_FROM=you@example.com
API_PREFIX=api API_PREFIX=api
API_VERSION=v1 API_VERSION=v1
API_DEBUG=false API_DEBUG=false
APP_VERSION=0.1.0-beta

View file

@ -0,0 +1,63 @@
<?php
/**
* Pterodactyl - Panel
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
namespace Pterodactyl\Console\Commands;
use Illuminate\Console\Command;
class ShowVersion extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'pterodactyl:version';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Display current panel version.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('You are running Pterodactyl Panel ' . config('app.version'));
}
}

View file

@ -15,6 +15,7 @@ class Kernel extends ConsoleKernel
protected $commands = [ protected $commands = [
\Pterodactyl\Console\Commands\Inspire::class, \Pterodactyl\Console\Commands\Inspire::class,
\Pterodactyl\Console\Commands\MakeUser::class, \Pterodactyl\Console\Commands\MakeUser::class,
\Pterodactyl\Console\Commands\ShowVersion::class,
]; ];
/** /**

View file

@ -4,6 +4,8 @@ return [
'env' => env('APP_ENV', 'production'), 'env' => env('APP_ENV', 'production'),
'version' => env('APP_VERSION', 'v0.1.1-beta'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Debug Mode | Application Debug Mode

View file

@ -30,7 +30,7 @@
</ul> </ul>
<h3 class="nopad">Pterodactyl Admin Control Panel</h3><hr /> <h3 class="nopad">Pterodactyl Admin Control Panel</h3><hr />
<p>Welcome to the most advanced, lightweight, and user-friendly open source game server control panel.</p> <p>Welcome to the most advanced, lightweight, and user-friendly open source game server control panel.</p>
<p>You are running version <code>{{ env('APP_VERSION', 'unknown') }}</code>.</p> <p>You are running version <code>{{ config('app.version') }}</code>.</p>
</div> </div>
<script> <script>
$(document).ready(function () { $(document).ready(function () {