This file contains 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 class="container"> | |
<example-article v-for="article in articles" :article="article"></example-article> | |
<button @click="fixArticles()">Fix Articles</button> | |
<button @click="pushArticle({title: 'Third Title', content: 'Content of the third article'})">Push Article</button> | |
</div> | |
</template> | |
<script> |
This file contains 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
@import '../../public.less'; | |
.traders-container{ | |
margin-bottom:50px; | |
.trader-container{ | |
background: rgba(16, 11, 45, 0.7); | |
padding:20px; | |
@media (max-width: 768px) { | |
margin:50px 0; |
This file contains 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 class="catalog-root"> | |
<div class="row"> | |
<div class="col-lg-3 col-md-4 categories" v-if="$store.state.catalog.Game"> | |
<div class="text-center col-lg-8 col-lg-offset-2 server-select-root-wrapper" v-if="($store.state.catalog.Game && $store.state.catalog.Game.regions)"> | |
<server-select :regions="$store.state.catalog.Game.regions"></server-select> | |
</div> |
This file contains 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\Infrastructure\Policies; | |
use App\Infrastructure\Model\User; | |
use App\Infrastructure\Utility\ResourcePolicy; | |
class UserPolicy extends ResourcePolicy | |
{ |
This file contains 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\Core\Model; | |
/** | |
* FILTER QUERY PARAMS | |
* | |
* @param (boolean) active | |
* The returned resources active (deleted_at) status |
This file contains 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\Core\Routing; | |
use Illuminate\Routing\Router as LaravelRouter; | |
use App\Core\Routing\DisplayRegistrar; | |
use App\Core\Routing\ApiRegistrar; | |
use App\Core\Routing\PageRegistrar; | |
// Similar as Route::resource, I register 3 other route 'shortcuts'. Display, Api and Page. |
This file contains 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 | |
// A class extended by Model Observers to do some general automatic logging | |
// whenever a model has been touched. | |
namespace App\Infrastructure\Utility; | |
use App\Infrastructure\Model\Log; | |
use Auth; |
This file contains 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
/** | |
Takes an n-depth JSON resource structure and creates a css and a js file from each leaf. | |
In the JSON each leaf represents a page and each leaf must have a coresponding js and | |
less resource file. By each page having a separate resource file I can ensure that | |
no unnecessary front end code will be loaded. | |
In addition it is very easy to have a separate json file containing only one / few pages | |
to always build only the pages assets that I am working on. | |
*/ |