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
<script> | |
// an component | |
import { orderBy, isEmpty } from 'lodash'; | |
import filterByName from '../helpers/filters/by-name'; | |
// omit | |
computed: { | |
listOrdened() { | |
const { orderBy as by, order } = this.configs; |
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
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var bower = require('bower'); | |
var concat = require('gulp-concat'); | |
var sass = require('gulp-sass'); | |
var compass = require('gulp-compass'); | |
var minifyCss = require('gulp-minify-css'); | |
var rename = require('gulp-rename'); | |
var sh = require('shelljs'); | |
var path = require('path'); |
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 Core\Mail; | |
/** | |
* Class Imap | |
* @package Core\Mail | |
*/ | |
class Imap | |
{ |
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 | |
class Fillable | |
{ | |
/** | |
* @var array | |
*/ | |
protected $fields = []; | |
/** | |
* @var array |
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 http from './http'; | |
const api = { | |
auth: { | |
login (user) { | |
return http.post('/auth/login', user); | |
} | |
} | |
}; |
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 | |
define('__APP_ROOT__', dirname(__DIR__)); | |
require __APP_ROOT__ . '/vendor/autoload.php'; | |
use Hero\Core\Router; | |
use Hero\Http\Request; | |
use Hero\Http\Response; |
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
module.exports = { | |
root: true, | |
parserOptions: { | |
sourceType: 'module' | |
}, | |
env: { | |
browser: true | |
}, | |
globals: { | |
'__THEME': true, |
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 Hero\Http; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\StreamInterface; | |
use Psr\Http\Message\UriInterface; | |
/** | |
* Class Request |
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 Hero\Http; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\StreamInterface; | |
/** | |
* Class Response | |
* @package Hero\Http |
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 Hero\Core; | |
use Hero\Http\Request; | |
use Hero\Http\Response; | |
/** | |
* Class App | |
* @package Hero\Core |