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
function apply_schema( schema, origin, iterate ) { | |
var out = iterate ? [] : {}; | |
schema.forEach(function( key ){ | |
if( key instanceof Array && origin instanceof Array ) { | |
return origin.forEach(function( item ){ out.push( apply_schema( key, item) ); }); | |
} |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
/* | |
Блок «Лот» | |
<article class="lot"> | |
<header class="lot__title">Классный лот</header> |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
/* | |
Блок «Лот» | |
<article class="au-lot"> | |
<header class="au-lot__title">Классный лот</header> |
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
Давайте про базы/работу с данными в браузере. Есть два (ну ок, три) варианта (на самом деле чуть больше): | |
1. LocalStorage, IndexedDB — «стандартные» возможности браузера для хранения данных. Too low level, стоит юзать (на мой взгляд) только c адаптерами для любимых фреймворков/библиотек. Гугл по запросу «my Favorite Lib + data, model, etc persistence» или «libname+indexeddb» adapter завалит ссылками на месяц вперед. | |
--- | |
2. Минибазы — клиенты для баз данных, которые работают в браузере c InMemory / LocalStorage / IndexedDB хранилищами, реализуют API взрослой версии и умеют прозрачно работать с серверной базой. | |
Mongo | |
https://github.com/mWater/minimongo |
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
{ | |
"Id": "5534220144", | |
"Vkladka": "Действующие", | |
"properties": { | |
"1": "Автомобиль ВАЗ 2101", | |
"2": "126263", | |
"4": "14", | |
"5": "1", | |
"8": "50000.0", | |
"9": "168", |
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
{ "1": "Название", | |
"2": "Категория", | |
"3": "Время начала", | |
"4": "Длительность аукциона", | |
"5": "Количество", | |
"6": "Начальная цена", | |
"8": "\"Купить Сейчас\"!", | |
"9": "Страна", | |
"10": "Регион", | |
"11": "Месторасположение", |
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\Forms; | |
use Kris\LaravelFormBuilder\Form; | |
class RolesForm extends Form | |
{ | |
protected $formOptions = [ |
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; | |
use App\User; | |
use App\Http\Requests; | |
use Illuminate\Http\Request; | |
use Kris\LaravelFormBuilder\FormBuilder; | |
class UsersController 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
@extends('layouts.master') | |
@section('content') | |
<h1>{{ $user->name }}</h1> | |
{!! form($form) !!} | |
@endsection |
OlderNewer