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
/*eslint no-new: 0*/ | |
/*eslint no-undef: 1*/ | |
/*eslint space-after-keywords: 0*/ | |
/*eslint keyword-spacing: 0*/ | |
/*eslint space-return-throw-case: 0*/ | |
/*eslint semi: [1, "always"]*/ |
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
/** | |
* One to many relation | |
* @param {Array} parents | |
* @param {Array} children | |
* @param {String} field field to merge | |
* @param {String} pKey | |
* @param {String} cKey | |
* @return {Boolean} | |
*/ | |
hasMany(parents = [], children = [], field = 'children', pKey = 'id', cKey = 'entry_id') { |
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
<? | |
Route::get('/authtest', array('before' => 'auth.basic', function() | |
{ | |
return Response::json(array('result' => 'success', 'reason' => 'Logged In' ), 200); | |
})); | |
Route::get('/api', array('before' => 'auth.basic', function() | |
{ | |
return Auth::getUser(); | |
})); | |
Route::get('/prop', array('before' => 'auth.basic', function() |
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="datetime-picker" :style="{ width: width }"> | |
<input type="text" :style="styleObj" | |
:readonly="readonly" :value.sync="value"> | |
<div class="picker-wrap" v-show="show"> | |
<table class="date-picker"> | |
<thead> | |
<tr class="date-head"> | |
<th colspan="3"> | |
<span class="btn-prev" @click="yearClick(-1)"> |
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
/** | |
* Добавляет элемент в начало массива, сдвигая все индексы. | |
* Возвращает сам массив, а не новую длинну, как в unshift() | |
* @param {Mixed} val Значение нового элемента | |
* @return {Array} | |
*/ | |
Array.prototype.addBefore = function(val) { | |
this.unshift(val); | |
return this; |
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 elixir = require('laravel-elixir'), | |
assetsPath = elixir.config.assetsPath, | |
publicPath = elixir.config.publicPath; | |
require('laravel-elixir-webpack-advanced') | |
require('laravel-elixir-imagemin') | |
elixir(function (mix) { | |
mix.styles( |
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
parser: babel-eslint | |
rules: | |
indent: | |
- 2 | |
- 2 | |
quotes: | |
- 2 | |
- single | |
linebreak-style: | |
- 2 |
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
root = true | |
[*] | |
indent_style = space | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
indent_size = 4 |