2017-01-24 22:57:08 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
2017-01-15 23:52:22 +00:00
|
|
|
|
|
|
|
{{-- 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. --}}
|
|
|
|
@extends('layouts.master')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
{{ trans('server.index.title', [ 'name' => $server->name]) }}
|
|
|
|
@endsection
|
|
|
|
|
2017-06-29 02:39:30 +00:00
|
|
|
@section('scripts')
|
|
|
|
@parent
|
|
|
|
{!! Theme::css('css/terminal.css') !!}
|
|
|
|
@endsection
|
|
|
|
|
2017-01-15 23:52:22 +00:00
|
|
|
@section('content-header')
|
2017-01-18 01:01:26 +00:00
|
|
|
<h1>@lang('server.index.header')<small>@lang('server.index.header_sub')</small></h1>
|
2017-01-15 23:52:22 +00:00
|
|
|
<ol class="breadcrumb">
|
2017-01-18 01:01:26 +00:00
|
|
|
<li><a href="{{ route('index') }}">@lang('strings.servers')</a></li>
|
2017-01-15 23:52:22 +00:00
|
|
|
<li class="active">{{ $server->name }}</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box">
|
2017-01-26 21:57:33 +00:00
|
|
|
<div class="box-body position-relative">
|
2017-01-15 23:52:22 +00:00
|
|
|
<div id="terminal" style="width:100%;"></div>
|
2017-07-01 01:41:16 +00:00
|
|
|
<div id="terminal_input" class="form-group no-margin">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-addon terminal_input--prompt">{{ $server->username }}:~$</div>
|
|
|
|
<input type="text" class="form-control terminal_input--input">
|
|
|
|
</div>
|
2017-06-27 03:36:09 +00:00
|
|
|
</div>
|
2017-01-26 21:57:33 +00:00
|
|
|
<div id="terminalNotify" class="terminal-notify hidden">
|
|
|
|
<i class="fa fa-bell"></i>
|
|
|
|
</div>
|
2017-01-15 23:52:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-footer text-center">
|
2017-01-19 02:12:58 +00:00
|
|
|
@can('power-start', $server)<button class="btn btn-success disabled" data-attr="power" data-action="start">Start</button>@endcan
|
2017-02-18 00:37:35 +00:00
|
|
|
@can('power-restart', $server)<button class="btn btn-primary disabled" data-attr="power" data-action="restart">Restart</button>@endcan
|
|
|
|
@can('power-stop', $server)<button class="btn btn-danger disabled" data-attr="power" data-action="stop">Stop</button>@endcan
|
2017-01-19 02:12:58 +00:00
|
|
|
@can('power-kill', $server)<button class="btn btn-danger disabled" data-attr="power" data-action="kill">Kill</button>@endcan
|
2017-01-15 23:52:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Memory Usage</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<canvas id="chart_memory" style="max-height:300px;"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">CPU Usage</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<canvas id="chart_cpu" style="max-height:300px;"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
2017-06-27 03:36:09 +00:00
|
|
|
{!! Theme::js('vendor/ansi/ansi_up.js') !!}
|
2017-01-15 23:52:22 +00:00
|
|
|
{!! Theme::js('js/frontend/server.socket.js') !!}
|
2017-03-18 23:03:25 +00:00
|
|
|
{!! Theme::js('vendor/mousewheel/jquery.mousewheel-min.js') !!}
|
2017-01-15 23:52:22 +00:00
|
|
|
{!! Theme::js('js/frontend/console.js') !!}
|
2017-03-18 23:03:25 +00:00
|
|
|
{!! Theme::js('vendor/chartjs/chart.min.js') !!}
|
|
|
|
{!! Theme::js('vendor/jquery/date-format.min.js') !!}
|
2017-03-18 21:21:49 +00:00
|
|
|
@if($server->service->folder === 'minecraft')
|
2017-01-15 23:52:22 +00:00
|
|
|
{!! Theme::js('js/plugins/minecraft/eula.js') !!}
|
|
|
|
@endif
|
|
|
|
@endsection
|