This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Deals with the sort icons using fontawesome | |
export default { | |
tableClass: 'table', | |
loadingClass: 'loading', | |
ascendingIcon: 'fas fa-arrow-down', | |
descendingIcon: 'fas fa-arrow-up', | |
detailRowClass: 'vuetable-detail-row', | |
handleIcon: 'fas fa-bars', | |
sortableIcon: '', //fas fa-sort-amount-up', // since v1.7 | |
ascendingClass: 'sorted-asc', // since v1.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\VueAuth; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use JWTAuth; | |
class AuthController extends Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const bodyParser = require('body-parser') | |
const gpio = require('gpio') | |
const app = express() | |
// Read the config from the .env file | |
require('dotenv').config() | |
// Setup the parameters using .env values or defaults | |
const port = process.env.PORT || 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Jobs\Gis; | |
use Log; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Queue\ShouldQueue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app-navbar" class="collapse navbar-collapse"> | |
<ul class="navbar-nav mr-auto"> | |
<li class="nav-item dropdown"><a href="" class="nav-link dropdown-toggle"> | |
<div class="dropdown-menu"> | |
<a href="" class="dropdown-item"></a> | |
<a href="" class="dropdown-item"></a> | |
<a href="" class="dropdown-item"></a> | |
<a href="" class="dropdown-item"></a> | |
<a href="" class="dropdown-item"></a> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<p class="alert alert-info"><i class="fa fa-info-circle"></i> Click on the contract for more detail.</p> | |
<b-table striped hover :items="contracts.data" :fields="fields" | |
:sort-by="sortBy" :sort-desc="sortDesc" no-local-sorting @sort-changed="sortChanged" /> | |
<b-pagination :total-rows="contracts.total" :per-page="contracts.per_page" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Provides data for a jquery DataTable call | |
*/ | |
public function jsonDataTables(Request $request) { | |
$draw = 0; | |
$recordsTotal = MODEL::count(); | |
$query = (new MODEL)->newQuery(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#form').on('submit', function(e) { | |
axios.put('/url', $(this).serialize()) | |
.then(function(response) { | |
console.log(response); | |
}) | |
.catch(function(error) { | |
console.log(error); | |
}); | |
e.preventDefault(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. | |
*/ | |
require('es6-promise').polyfill(); | |
window.axios = require('axios'); | |
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main role="main" class="container"> | |
<div class="card"> | |
<div class="card-header"> | |
<h4><i class="fa fa-upload"></i> Upload CSV Files <small>(drag and drop)</small></h4> | |
</div> | |
<div class="card-body"> | |
<form method="GET" action="http://testserver/upload" accept-charset="UTF-8" class="uploadform" enctype="multipart/form-data"> | |
<input class="form-control" name="_token" type="hidden" value="gHcZZlnXsPe3BZYns0u7CuSc8D51CE6gzHCflUhg"> | |
<div class="col-12 mb-2"> | |
<label for="file" class="control-label">Upload file</label> |
NewerOlder