Remove redundant tables and code
This commit is contained in:
36
resources/js/app.js
vendored
36
resources/js/app.js
vendored
@@ -1,36 +0,0 @@
|
||||
|
||||
/**
|
||||
* First we will load all of this project's JavaScript dependencies which
|
||||
* includes Vue and other libraries. It is a great starting point when
|
||||
* building robust, powerful web applications using Vue and Laravel.
|
||||
*/
|
||||
|
||||
require('./bootstrap');
|
||||
|
||||
window.Vue = require('vue');
|
||||
|
||||
/**
|
||||
* The following block of code may be used to automatically register your
|
||||
* Vue components. It will recursively scan this directory for the Vue
|
||||
* components and automatically register them with their "basename".
|
||||
*
|
||||
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
|
||||
*/
|
||||
|
||||
Vue.component('example-component', require('./components/ExampleComponent.vue'));
|
||||
|
||||
// const files = require.context('./', true, /\.vue$/i)
|
||||
|
||||
// files.keys().map(key => {
|
||||
// return Vue.component(_.last(key.split('/')).split('.')[0], files(key))
|
||||
// })
|
||||
|
||||
/**
|
||||
* Next, we will create a fresh Vue application instance and attach it to
|
||||
* the page. Then, you may begin adding components to this application
|
||||
* or customize the JavaScript scaffolding to fit your unique needs.
|
||||
*/
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app'
|
||||
});
|
28
resources/js/bootstrap.js
vendored
28
resources/js/bootstrap.js
vendored
@@ -1,28 +0,0 @@
|
||||
window._ = require('lodash');
|
||||
|
||||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
window.axios = require('axios');
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// window.Pusher = require('pusher-js');
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: process.env.MIX_PUSHER_APP_KEY,
|
||||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||||
// forceTLS: true
|
||||
// });
|
@@ -1,23 +0,0 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">Example Component</div>
|
||||
|
||||
<div class="card-body">
|
||||
I'm an example component.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
console.log('Component mounted.')
|
||||
}
|
||||
}
|
||||
</script>
|
20
resources/sass/_variables.scss
vendored
20
resources/sass/_variables.scss
vendored
@@ -1,20 +0,0 @@
|
||||
|
||||
// Body
|
||||
$body-bg: #f8fafc;
|
||||
|
||||
// Typography
|
||||
$font-family-sans-serif: "Nunito", sans-serif;
|
||||
$font-size-base: 0.9rem;
|
||||
$line-height-base: 1.6;
|
||||
|
||||
// Colors
|
||||
$blue: #3490dc;
|
||||
$indigo: #6574cd;
|
||||
$purple: #9561e2;
|
||||
$pink: #f66D9b;
|
||||
$red: #e3342f;
|
||||
$orange: #f6993f;
|
||||
$yellow: #ffed4a;
|
||||
$green: #38c172;
|
||||
$teal: #4dc0b5;
|
||||
$cyan: #6cb2eb;
|
14
resources/sass/app.scss
vendored
14
resources/sass/app.scss
vendored
@@ -1,14 +0,0 @@
|
||||
|
||||
// Fonts
|
||||
@import url('https://fonts.googleapis.com/css?family=Nunito');
|
||||
|
||||
// Variables
|
||||
@import 'variables';
|
||||
|
||||
// Bootstrap
|
||||
@import '~bootstrap/scss/bootstrap';
|
||||
|
||||
.navbar-laravel {
|
||||
background-color: #fff;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
|
||||
}
|
@@ -1,166 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('htmlheader_title')
|
||||
@if($o->exists) Update @else Add @endif Node
|
||||
@endsection
|
||||
|
||||
@section('main-content')
|
||||
<div class="pb-3">
|
||||
<h2>@if($o->exists) Update @else Add @endif Node</h2>
|
||||
<form method="POST">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<div class="bg-blue">
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="zone_id">Zone</label>
|
||||
<select class="col-9" name="zone_id">
|
||||
<option value=""> </option>
|
||||
@foreach (\App\Models\Zone::cursor() as $oo)
|
||||
<option value="{{ $oo->id }}" @if($o->zone_id==$oo->id)selected @endif>{{ $oo->zone_id }} ({{ $oo->name }})</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="host_id">Hub</label>
|
||||
<select class="col-9" name="hub_id">
|
||||
<option value="{{ $o->hub_id }}" disabled>{{ $o->hub_id }} ({{ $o->system }})</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="host_id">Host</label>
|
||||
<select class="col-9" name="host_id">
|
||||
<option value="{{ $o->host_id }}" selected>{{ $o->host_id }} ({{ $o->system }})</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="node_id">Node</label>
|
||||
<input class="col-9" type="text" name="node_id" value="{{ $o->node_id }}">
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="point_id">Point</label>
|
||||
<input class="col-9" type="text" name="point_id" value="{{ $o->point_id ?: 0 }}">
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="is_rc">Is ZC</label>
|
||||
<input class="col-3" type="checkbox" name="is_rc" value="1" @if($o->is_rc)checked @endif>
|
||||
</div>
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="is_rc">Is RC</label>
|
||||
<input class="col-3" type="checkbox" name="is_rc" value="1" @if($o->is_regis_rcion)checked @endif>
|
||||
</div>
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="is_hub">Is Hub</label>
|
||||
<input class="col-3" type="checkbox" name="is_hub" value="1" @if($o->is_hub)checked @endif>
|
||||
</div>
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="is_host">Is Host</label>
|
||||
<input class="col-3" type="checkbox" name="is_host" value="1" @if($o->is_host)checked @endif>
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="active">Active</label>
|
||||
<input class="col-3" type="checkbox" name="active" value="1" @if($o->active)checked @endif>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-9">
|
||||
<div class="bg-blue">
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="system">BBS Name:</label>
|
||||
<input class="col-9" type="text" name="system" value="{{ $o->system }}">
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="sysop">SYSOP Name:</label>
|
||||
<input class="col-9" type="text" name="sysop" value="{{ $o->sysop }}">
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="email">Email Address:</label>
|
||||
<input class="col-9" type="email" name="email" value="{{ $o->email }}">
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="location">System Location:</label>
|
||||
<input class="col-9" type="text" name="location" value="{{ $o->location }}">
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-2" for="protocol_id">Connection Method:</label>
|
||||
|
||||
<div class="form-group col-2">
|
||||
@foreach (\App\Models\Protocol::cursor() as $oo)
|
||||
<div class="custom-control custom-radio mb-3">
|
||||
<input type="radio" class="custom-control-input" name="protocol_id" id="{{ $oo->id }}" value="{{ $oo->id }}" required @if($o->protocol_id==$oo->id)checked @endif>
|
||||
<label class="custom-control-label" for="{{ $oo->id }}">{{ $oo->name }}</label>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="col-8">
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="address">Mailer Address:</label>
|
||||
<input class="col-8" type="text" name="address" value="{{ $o->address }}">
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="port">Mailer Port:</label>
|
||||
<input class="col-4" type="text" name="port" value="{{ $o->port }}">
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="software_id">Mailer Software:</label>
|
||||
<select class="col-8" name="software_id">
|
||||
<option value=""> </option>
|
||||
@foreach (\App\Models\Software::cursor() as $oo)
|
||||
<option value="{{ $oo->id }}" @if($o->protocol_id==$oo->id)selected @endif>{{ $oo->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="sespass">Session Password:</label>
|
||||
<input class="col-4" type="text" name="sespass" value="{{ $o->sespass }}">
|
||||
</div>
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="pktpass">Packet Password:</label>
|
||||
<input class="col-4" type="text" name="pktpass" value="{{ $o->pktpass }}">
|
||||
</div>
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="ticpass">TIC Password:</label>
|
||||
<input class="col-4" type="text" name="ticpass" value="{{ $o->ticpass }}">
|
||||
</div>
|
||||
<div class="row m-3">
|
||||
<label class="col-4" for="fixpass">Areafix Password:</label>
|
||||
<input class="col-4" type="text" name="fixpass" value="{{ $o->fixpass }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<label class="col-3" for="notes">Notes:</label>
|
||||
<textarea class="col-9" rows=3 cols=68 name="notes" placeholder="Notes...">{{ $o->notes }}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="row m-3">
|
||||
<div class="col-12">
|
||||
<button type="submit" name="submit" class="btn btn-lg btn-success mr-0 float-right">@if ($o->exists)Save @else Add @endif</button>
|
||||
<a href="{{ url('/') }}" class="btn btn-lg btn-primary float-right">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
@@ -1,49 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('main-content')
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<table class="table table-bordered m-5">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Domain</th>
|
||||
<th>Node</th>
|
||||
<th>Active</th>
|
||||
<th>System</th>
|
||||
<th>Sysop</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="4"><a href="{{ url('ftn/node/addedit') }}">Add New Node</a></td>
|
||||
</tr>
|
||||
@foreach (\App\Models\Node::with(['zone'])->cursor() as $oo)
|
||||
<tr>
|
||||
<td><a href="{{ url('ftn/node/addedit',[$oo->id]) }}">{{ $oo->id }}</a></td>
|
||||
<td>@if ($oo->zone_id){{ $oo->zone->name }}@else - @endif</td>
|
||||
<td>{{ $oo->ftn }}</td>
|
||||
<td>{{ $oo->active ? 'YES' : 'NO' }}</td>
|
||||
<td>{{ $oo->system }}</td>
|
||||
<td>{{ $oo->sysop }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('table tr').click(function() {
|
||||
var href = $(this).find("a").attr("href");
|
||||
if(href) {
|
||||
window.location = href;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@append
|
Reference in New Issue
Block a user