database migrations for help desk tickets, and queues
models for help desk tickets and queues model for EveMail modified app config for queues added new routes for jump bridges composer updated for autoloader modified JumpBridgeController added new controllers for HelpDesk and HelpDeskAdmin
This commit is contained in:
1
.env
1
.env
@@ -16,6 +16,7 @@ DB_PASSWORD=strtmage
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
QUEUE_CONNECTION=sync
|
||||
QUEUE_DRIVER=database
|
||||
SESSION_DRIVER=file
|
||||
SESSION_LIFETIME=120
|
||||
|
||||
|
||||
11
app/Http/Controllers/HelpDeskAdminController.php
Normal file
11
app/Http/Controllers/HelpDeskAdminController.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class HelpDeskAdminController extends Controller
|
||||
{
|
||||
//
|
||||
}
|
||||
34
app/Http/Controllers/HelpDeskController.php
Normal file
34
app/Http/Controllers/HelpDeskController.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class HelpDeskController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display form to submit a new ticket
|
||||
*/
|
||||
public function displayNewTicket() {
|
||||
|
||||
}
|
||||
|
||||
public function storeTicket() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Display current open tickets for the user
|
||||
*/
|
||||
public function displayMyTickets() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Modify currently open ticket for the user
|
||||
*/
|
||||
public function editTicket(Request $request) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,45 @@ namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
use App\Library\Finances\JumpBridgeTax;
|
||||
|
||||
class JumpBridgeController extends Controller
|
||||
{
|
||||
//
|
||||
/**
|
||||
* Displays all statistics on one page
|
||||
*/
|
||||
public function displayAll() {
|
||||
//Create a helper class variable
|
||||
$jbHelper30 = new JumpBridgeTax(30);
|
||||
$jbHelper60 = new JumpBridgeTax(60);
|
||||
$jbHelper90 = new JumpBridgeTax(90);
|
||||
|
||||
return view('jumpbridges.all');
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays overall jump bridge usage based corporation data
|
||||
*/
|
||||
public function displayCorpUsage() {
|
||||
return view('jumpbridges.corp.select');
|
||||
}
|
||||
|
||||
public function ajaxCorpUsage() {
|
||||
//Get the statistics for overall usage by corps and send back to webpage via ajax
|
||||
|
||||
return response()->json(array('data' => $data), 200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays jump bridge usage based on structure
|
||||
*/
|
||||
public function displayStructureUsage() {
|
||||
return view('jumpbridges.structure.select');
|
||||
}
|
||||
|
||||
public function ajaxStructureUsage() {
|
||||
//Get the statistics for overall usage by structure and send back to the webpage via ajax
|
||||
|
||||
return response()->json(array('data' => $data), 200);
|
||||
}
|
||||
}
|
||||
|
||||
73
app/Jobs/SendEveMail.php
Normal file
73
app/Jobs/SendEveMail.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
|
||||
use App\Library\Esi\Mail;
|
||||
|
||||
use App\Models\EveMail as EveMailModel;
|
||||
|
||||
class SendEveMail implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Class Variable for eve mail
|
||||
*/
|
||||
protected $eveMail;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(EveMailModel $mail) {
|
||||
$this->eveMail = $mail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
* Utilized by using SendEveMail::dispatch($mail);
|
||||
* The model is passed into the dispatch function, then added to the queue
|
||||
* for processing.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
//Access the model in the queue for processing
|
||||
$mail = $this->eveMail;
|
||||
|
||||
//Create a new Mail class variable
|
||||
$esi = new Mail();
|
||||
|
||||
//Process the mail from the model to send a new mail
|
||||
$esi->SendGeneralMail($mail->recepient, $mail->subject, $mail->body);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine the time the job should timeout
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function retryUntil() {
|
||||
return now()->addSeconds(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* The job failed to process.
|
||||
*
|
||||
* @param Exception $exception
|
||||
* @return void
|
||||
*/
|
||||
public function failed(Exception $exception)
|
||||
{
|
||||
// Send user notification of failure, etc...
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,33 @@ use Seat\Eseye\Exceptions\RequestFailedException;
|
||||
|
||||
class Mail {
|
||||
|
||||
public function SendGeneralMail($recipient, $subject, $body) {
|
||||
//Retrieve the token for main character to send mails from
|
||||
$token = EsiToken::where(['character_id' => 93738489])->get();
|
||||
//Create the ESI authentication container
|
||||
$config = config('esi');
|
||||
$authentication = new EsiAuthentication([
|
||||
'client_id' => $config['client_id'],
|
||||
'secret' => $config['secret'],
|
||||
'refresh_token' => $token[0]->refresh_token,
|
||||
]);
|
||||
$esi = new Eseye($authentication);
|
||||
try {
|
||||
$esi->setBody([
|
||||
'body' => $body,
|
||||
'receipients' => [
|
||||
'recipient_id'=> $recipient,
|
||||
'recipient_type' => 'character',
|
||||
],
|
||||
'subject' => $subject,
|
||||
])->invoke('post', '/characters/{character_id}/mail/', [
|
||||
'character_id' => 93738489,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public function SendMail($charId, $taxAmount, $subject, $body) {
|
||||
//Retrieve the token for Amund Risalo
|
||||
$token = DB::table('EsiTokens')->where('character_id', 93738489)->get();
|
||||
|
||||
14
app/Models/EveMail.php
Normal file
14
app/Models/EveMail.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EveMail extends Model
|
||||
{
|
||||
//Table Name
|
||||
protected $table = 'eve_mails';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = 'true';
|
||||
}
|
||||
31
app/Models/HelpDesk/HelpDeskTicket.php
Normal file
31
app/Models/HelpDesk/HelpDeskTicket.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class HelpDeskTicket extends Model
|
||||
{
|
||||
//Table Name
|
||||
protected $table = 'help_desk_tickets';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'ticket_id',
|
||||
'user_id',
|
||||
'assigned_id',
|
||||
'department',
|
||||
'subject',
|
||||
'body',
|
||||
];
|
||||
}
|
||||
28
app/Models/HelpDesk/HelpDeskTicketResponse.php
Normal file
28
app/Models/HelpDesk/HelpDeskTicketResponse.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class HelpDeskTicketResponse extends Model
|
||||
{
|
||||
//Table Name
|
||||
protected $table = 'help_desk_ticket_responses';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'ticket_id',
|
||||
'assigned_id',
|
||||
'body',
|
||||
];
|
||||
}
|
||||
@@ -13,7 +13,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('QUEUE_CONNECTION', 'sync'),
|
||||
'default' => env('QUEUE_CONNECTION', 'database'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_ticket');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('help_desk_tickets')) {
|
||||
Schema::create('help_desk_tickets', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('ticket_id');
|
||||
$table->string('user_id');
|
||||
$table->string('assigned_id');
|
||||
$table->string('department');
|
||||
$table->string('subject');
|
||||
$table->text('body');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_tickets');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketResponsesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('help_desk_ticket_responses')) {
|
||||
Schema::create('help_desk_ticket_responses', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('ticket_id');
|
||||
$table->string('assigned_id');
|
||||
$table->text('body');
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
}
|
||||
Schema::create('help_desk_ticket_responses', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_ticket_responses');
|
||||
}
|
||||
}
|
||||
39
database/migrations/2018_12_24_020905_create_jobs_table.php
Normal file
39
database/migrations/2018_12_24_020905_create_jobs_table.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateJobsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('jobs')) {
|
||||
Schema::create('jobs', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('queue')->index();
|
||||
$table->longText('payload');
|
||||
$table->unsignedTinyInteger('attempts');
|
||||
$table->unsignedInteger('reserved_at')->nullable();
|
||||
$table->unsignedInteger('available_at');
|
||||
$table->unsignedInteger('created_at');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jobs');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateEveMailsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('eve_mails')) {
|
||||
Schema::create('eve_mails', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('sender');
|
||||
$table->string('recipient');
|
||||
$table->string('subject');
|
||||
$table->string('body');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('eve_mails');
|
||||
}
|
||||
}
|
||||
@@ -18,5 +18,21 @@ class AvailableUserPermissions extends Seeder
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'logistics.minion',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.diplomat',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.moonadmin',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.fleetcommand',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.leadership',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
0
resources/views/jumpbridges/all.blade.php
Normal file
0
resources/views/jumpbridges/all.blade.php
Normal file
23
resources/views/jumpbridges/corp/ajax/script.blade.php
Normal file
23
resources/views/jumpbridges/corp/ajax/script.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<script>
|
||||
function getMessage(days){
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
type:'POST',
|
||||
url:'/jumpbridges/getoverall',
|
||||
data: {
|
||||
days: time
|
||||
},
|
||||
success:function(response){
|
||||
$("#overall").html(response);
|
||||
console.log('Ajax Call Successful');
|
||||
},
|
||||
fail:function(response) {
|
||||
alert('Unable to fulfill request.');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
31
resources/views/jumpbridges/corp/ajaxb4.blade.php
Normal file
31
resources/views/jumpbridges/corp/ajaxb4.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<title>{{ config('app.name', 'W4RP Services') }}</title>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<!-- Bootstrap CSS
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
|
||||
-->
|
||||
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
|
||||
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
@include('jumpbridges.corp.ajax.script')
|
||||
</head>
|
||||
<body>
|
||||
@include('layouts.navbar')
|
||||
<div class="container">
|
||||
@include('inc.messages')
|
||||
</div>
|
||||
@yield('content')
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
25
resources/views/jumpbridges/corp/select.blade.php
Normal file
25
resources/views/jumpbridges/corp/select.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
@include('jumpbridges.corp.ajaxb4')
|
||||
@section('content')
|
||||
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Overall Jump Bridge Usage for Warped Intentions</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['action' => 'getMessage()']) !!}
|
||||
<div class="form-group col-md-6">
|
||||
{{ Form::label('days', 'Time in Days') }}
|
||||
{{ Form::selct('days', [
|
||||
'30' => '30',
|
||||
'60' => '60',
|
||||
'90' => '90',
|
||||
], '30') }}
|
||||
</div>
|
||||
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
31
resources/views/jumpbridges/overall/ajaxb4.blade.php
Normal file
31
resources/views/jumpbridges/overall/ajaxb4.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<title>{{ config('app.name', 'W4RP Services') }}</title>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<!-- Bootstrap CSS
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
|
||||
-->
|
||||
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
|
||||
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
@include('jumpbridges.corp.ajax.script')
|
||||
</head>
|
||||
<body>
|
||||
@include('layouts.navbar')
|
||||
<div class="container">
|
||||
@include('inc.messages')
|
||||
</div>
|
||||
@yield('content')
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
42
resources/views/jumpbridges/structure/ajaxb4.blade.php
Normal file
42
resources/views/jumpbridges/structure/ajaxb4.blade.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<title>{{ config('app.name', 'W4RP Services') }}</title>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<!-- Bootstrap CSS
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
|
||||
-->
|
||||
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
|
||||
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
<script>
|
||||
function getMessage(){
|
||||
$.ajax({
|
||||
type:'POST',
|
||||
url:'/getmsg',
|
||||
data:'_token = <?php echo csrf_token() ?>',
|
||||
success:function(data){
|
||||
$("#msg").html(data.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@include('layouts.navbar')
|
||||
<div class="container">
|
||||
@include('inc.messages')
|
||||
</div>
|
||||
@yield('content')
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -73,15 +73,17 @@ Route::group(['middleware' => ['auth']], function(){
|
||||
//Scopes Controller display pages
|
||||
Route::get('/scopes/select', 'EsiScopeController@displayScopes');
|
||||
Route::post('redirectToProvider', 'EsiScopeController@redirectToProvider');
|
||||
|
||||
//Jump Bridge Controller display pages
|
||||
Route::get('/jumpbridges/overall', 'JumpBridgeController@displayOverallUsage');
|
||||
Route::post('/jumpbridges/getoverall', 'JumpBridgeController@ajaxOverallUsage');
|
||||
Route::get('/jumpbridges/corps', 'JumpBridgeController@displayCorpUsage');
|
||||
Route::post('/jumpbridges/getcorps', 'JumpBridgeController@ajaxCorpUsage');
|
||||
Route::get('/jumpbridges/structures', 'JumpBridgeController@displayStructureUsage');
|
||||
Route::get('/jumpbridges/getstructures', 'JumpBridgeController@ajaxStructureUsage');
|
||||
});
|
||||
|
||||
//Login display pages
|
||||
Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
|
||||
Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
|
||||
Route::get('/logout', 'Auth\LoginController@logout')->name('logout');
|
||||
|
||||
//AJAX Controller display pages
|
||||
Route::get('ajax',function() {
|
||||
return view('/ajax/message');
|
||||
});
|
||||
Route::post('/getmsg','AjaxController@index');
|
||||
9
vendor/composer/autoload_classmap.php
vendored
9
vendor/composer/autoload_classmap.php
vendored
@@ -6,7 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'App\\CharacterToCorporation' => $baseDir . '/app/Models/Charcter/CharacterToCorporation.php',
|
||||
'App\\Console\\Commands\\CalculateMarketTax' => $baseDir . '/app/Console/Commands/calculatemarkettax.php',
|
||||
'App\\Console\\Commands\\CorpJournal' => $baseDir . '/app/Console/Commands/corpJournal.php',
|
||||
'App\\Console\\Commands\\DumpFleets' => $baseDir . '/app/Console/Commands/dumpFleets.php',
|
||||
@@ -15,7 +14,10 @@ return array(
|
||||
'App\\Console\\Commands\\SendMail' => $baseDir . '/app/Console/Commands/sendmail.php',
|
||||
'App\\Console\\Commands\\UpdateMoonPricing' => $baseDir . '/app/Console/Commands/UpdateMoonPricing.php',
|
||||
'App\\Console\\Kernel' => $baseDir . '/app/Console/Kernel.php',
|
||||
'App\\EveMail' => $baseDir . '/app/EveMail.php',
|
||||
'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php',
|
||||
'App\\HelpDeskTicket' => $baseDir . '/app/Models/HelpDesk/HelpDeskTicket.php',
|
||||
'App\\HelpDeskTicketResponse' => $baseDir . '/app/Models/HelpDesk/HelpDeskTicketResponse.php',
|
||||
'App\\Http\\Controllers\\AdminController' => $baseDir . '/app/Http/Controllers/AdminController.php',
|
||||
'App\\Http\\Controllers\\AjaxController' => $baseDir . '/app/Http/Controllers/AjaxController.php',
|
||||
'App\\Http\\Controllers\\Auth\\ForgotPasswordController' => $baseDir . '/app/Http/Controllers/Auth/ForgotPasswordController.php',
|
||||
@@ -28,6 +30,8 @@ return array(
|
||||
'App\\Http\\Controllers\\EsiScopeController' => $baseDir . '/app/Http/Controllers/EsiScopeController.php',
|
||||
'App\\Http\\Controllers\\FinancesController' => $baseDir . '/app/Http/Controllers/FinancesController.php',
|
||||
'App\\Http\\Controllers\\FleetsController' => $baseDir . '/app/Http/Controllers/FleetsController.php',
|
||||
'App\\Http\\Controllers\\HelpDeskAdminController' => $baseDir . '/app/Http/Controllers/HelpDeskAdminController.php',
|
||||
'App\\Http\\Controllers\\HelpDeskController' => $baseDir . '/app/Http/Controllers/HelpDeskController.php',
|
||||
'App\\Http\\Controllers\\JumpBridgeController' => $baseDir . '/app/Http/Controllers/JumpBridgeController.php',
|
||||
'App\\Http\\Controllers\\LogisticsController' => $baseDir . '/app/Http/Controllers/LogisticsController.php',
|
||||
'App\\Http\\Controllers\\MoonsAdminController' => $baseDir . '/app/Http/Controllers/MoonsAdminController.php',
|
||||
@@ -46,6 +50,7 @@ return array(
|
||||
'App\\Http\\Middleware\\TrimStrings' => $baseDir . '/app/Http/Middleware/TrimStrings.php',
|
||||
'App\\Http\\Middleware\\TrustProxies' => $baseDir . '/app/Http/Middleware/TrustProxies.php',
|
||||
'App\\Http\\Middleware\\VerifyCsrfToken' => $baseDir . '/app/Http/Middleware/VerifyCsrfToken.php',
|
||||
'App\\Jobs\\SendEveMail' => $baseDir . '/app/Jobs/SendEveMail.php',
|
||||
'App\\Library\\Esi\\Esi' => $baseDir . '/app/Library/Esi/Esi.php',
|
||||
'App\\Library\\Esi\\Mail' => $baseDir . '/app/Library/Esi/Mail.php',
|
||||
'App\\Library\\Finances\\Helper\\FinanceHelper' => $baseDir . '/app/Library/Finances/Helper/FinanceHelper.php',
|
||||
@@ -59,10 +64,12 @@ return array(
|
||||
'App\\Library\\Moons\\MoonMine' => $baseDir . '/app/Library/Moons/MoonMine.php',
|
||||
'App\\Library\\SeatHelper' => $baseDir . '/app/Library/SeatHelper.php',
|
||||
'App\\Library\\Structures\\StructureTaxHelper' => $baseDir . '/app/Library/Structures/StructureTaxHelper.php',
|
||||
'App\\Models\\Character\\CharacterToCorporation' => $baseDir . '/app/Models/Charcter/CharacterToCorporation.php',
|
||||
'App\\Models\\Config' => $baseDir . '/app/Models/Config.php',
|
||||
'App\\Models\\Corporation\\AllianceCorp' => $baseDir . '/app/Models/Corporation/AllianceCorp.php',
|
||||
'App\\Models\\Corporation\\CorpJournal' => $baseDir . '/app/Models/Corporation/CorpJournal.php',
|
||||
'App\\Models\\Corporation\\CorpStructure' => $baseDir . '/app/Models/Corporation/CorpStructure.php',
|
||||
'App\\Models\\Corporation\\CorporationToAlliance' => $baseDir . '/app/Models/Corporation/CorporationToAlliance.php',
|
||||
'App\\Models\\Corporation\\HoldingCorpJournal' => $baseDir . '/app/Models/Corporation/HoldingCorpJournal.php',
|
||||
'App\\Models\\Corporation\\Structure' => $baseDir . '/app/Models/Corporation/Structure.php',
|
||||
'App\\Models\\Doku\\DokuGroupNames' => $baseDir . '/app/Models/Doku/DokuGroupNames.php',
|
||||
|
||||
9
vendor/composer/autoload_static.php
vendored
9
vendor/composer/autoload_static.php
vendored
@@ -460,7 +460,6 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
|
||||
);
|
||||
|
||||
public static $classMap = array (
|
||||
'App\\CharacterToCorporation' => __DIR__ . '/../..' . '/app/Models/Charcter/CharacterToCorporation.php',
|
||||
'App\\Console\\Commands\\CalculateMarketTax' => __DIR__ . '/../..' . '/app/Console/Commands/calculatemarkettax.php',
|
||||
'App\\Console\\Commands\\CorpJournal' => __DIR__ . '/../..' . '/app/Console/Commands/corpJournal.php',
|
||||
'App\\Console\\Commands\\DumpFleets' => __DIR__ . '/../..' . '/app/Console/Commands/dumpFleets.php',
|
||||
@@ -469,7 +468,10 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
|
||||
'App\\Console\\Commands\\SendMail' => __DIR__ . '/../..' . '/app/Console/Commands/sendmail.php',
|
||||
'App\\Console\\Commands\\UpdateMoonPricing' => __DIR__ . '/../..' . '/app/Console/Commands/UpdateMoonPricing.php',
|
||||
'App\\Console\\Kernel' => __DIR__ . '/../..' . '/app/Console/Kernel.php',
|
||||
'App\\EveMail' => __DIR__ . '/../..' . '/app/EveMail.php',
|
||||
'App\\Exceptions\\Handler' => __DIR__ . '/../..' . '/app/Exceptions/Handler.php',
|
||||
'App\\HelpDeskTicket' => __DIR__ . '/../..' . '/app/Models/HelpDesk/HelpDeskTicket.php',
|
||||
'App\\HelpDeskTicketResponse' => __DIR__ . '/../..' . '/app/Models/HelpDesk/HelpDeskTicketResponse.php',
|
||||
'App\\Http\\Controllers\\AdminController' => __DIR__ . '/../..' . '/app/Http/Controllers/AdminController.php',
|
||||
'App\\Http\\Controllers\\AjaxController' => __DIR__ . '/../..' . '/app/Http/Controllers/AjaxController.php',
|
||||
'App\\Http\\Controllers\\Auth\\ForgotPasswordController' => __DIR__ . '/../..' . '/app/Http/Controllers/Auth/ForgotPasswordController.php',
|
||||
@@ -482,6 +484,8 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
|
||||
'App\\Http\\Controllers\\EsiScopeController' => __DIR__ . '/../..' . '/app/Http/Controllers/EsiScopeController.php',
|
||||
'App\\Http\\Controllers\\FinancesController' => __DIR__ . '/../..' . '/app/Http/Controllers/FinancesController.php',
|
||||
'App\\Http\\Controllers\\FleetsController' => __DIR__ . '/../..' . '/app/Http/Controllers/FleetsController.php',
|
||||
'App\\Http\\Controllers\\HelpDeskAdminController' => __DIR__ . '/../..' . '/app/Http/Controllers/HelpDeskAdminController.php',
|
||||
'App\\Http\\Controllers\\HelpDeskController' => __DIR__ . '/../..' . '/app/Http/Controllers/HelpDeskController.php',
|
||||
'App\\Http\\Controllers\\JumpBridgeController' => __DIR__ . '/../..' . '/app/Http/Controllers/JumpBridgeController.php',
|
||||
'App\\Http\\Controllers\\LogisticsController' => __DIR__ . '/../..' . '/app/Http/Controllers/LogisticsController.php',
|
||||
'App\\Http\\Controllers\\MoonsAdminController' => __DIR__ . '/../..' . '/app/Http/Controllers/MoonsAdminController.php',
|
||||
@@ -500,6 +504,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
|
||||
'App\\Http\\Middleware\\TrimStrings' => __DIR__ . '/../..' . '/app/Http/Middleware/TrimStrings.php',
|
||||
'App\\Http\\Middleware\\TrustProxies' => __DIR__ . '/../..' . '/app/Http/Middleware/TrustProxies.php',
|
||||
'App\\Http\\Middleware\\VerifyCsrfToken' => __DIR__ . '/../..' . '/app/Http/Middleware/VerifyCsrfToken.php',
|
||||
'App\\Jobs\\SendEveMail' => __DIR__ . '/../..' . '/app/Jobs/SendEveMail.php',
|
||||
'App\\Library\\Esi\\Esi' => __DIR__ . '/../..' . '/app/Library/Esi/Esi.php',
|
||||
'App\\Library\\Esi\\Mail' => __DIR__ . '/../..' . '/app/Library/Esi/Mail.php',
|
||||
'App\\Library\\Finances\\Helper\\FinanceHelper' => __DIR__ . '/../..' . '/app/Library/Finances/Helper/FinanceHelper.php',
|
||||
@@ -513,10 +518,12 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
|
||||
'App\\Library\\Moons\\MoonMine' => __DIR__ . '/../..' . '/app/Library/Moons/MoonMine.php',
|
||||
'App\\Library\\SeatHelper' => __DIR__ . '/../..' . '/app/Library/SeatHelper.php',
|
||||
'App\\Library\\Structures\\StructureTaxHelper' => __DIR__ . '/../..' . '/app/Library/Structures/StructureTaxHelper.php',
|
||||
'App\\Models\\Character\\CharacterToCorporation' => __DIR__ . '/../..' . '/app/Models/Charcter/CharacterToCorporation.php',
|
||||
'App\\Models\\Config' => __DIR__ . '/../..' . '/app/Models/Config.php',
|
||||
'App\\Models\\Corporation\\AllianceCorp' => __DIR__ . '/../..' . '/app/Models/Corporation/AllianceCorp.php',
|
||||
'App\\Models\\Corporation\\CorpJournal' => __DIR__ . '/../..' . '/app/Models/Corporation/CorpJournal.php',
|
||||
'App\\Models\\Corporation\\CorpStructure' => __DIR__ . '/../..' . '/app/Models/Corporation/CorpStructure.php',
|
||||
'App\\Models\\Corporation\\CorporationToAlliance' => __DIR__ . '/../..' . '/app/Models/Corporation/CorporationToAlliance.php',
|
||||
'App\\Models\\Corporation\\HoldingCorpJournal' => __DIR__ . '/../..' . '/app/Models/Corporation/HoldingCorpJournal.php',
|
||||
'App\\Models\\Corporation\\Structure' => __DIR__ . '/../..' . '/app/Models/Corporation/Structure.php',
|
||||
'App\\Models\\Doku\\DokuGroupNames' => __DIR__ . '/../..' . '/app/Models/Doku/DokuGroupNames.php',
|
||||
|
||||
Reference in New Issue
Block a user