Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Tests\VO;
use App\ValueObject\Domain;
use InvalidArgumentException;
use PHPUnit_Framework_TestCase;
/**
* Class DomainTest тестирует VO Domain
window.Vue = require("vue");
window.axios = require("axios");
window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
window.qs = require("qs");
window.mainLocationPath = window.location.origin;
import Vuetify from "vuetify";
import router from "./router";
import VeeValidate from 'vee-validate';
import colors from "vuetify/es5/util/colors";
(function() {
$('input[name=client-sort-famemark]').blur(function (e) {
e.stopPropagation();
var self = $(this);
var domainId = self.data('domain-id');
var clientId = self.data('client-id');
var mark = +self.val();
if (mark < +self.attr('min') || mark > +self.attr('max')) {
self.addClass('client-sort-input-error');
return false;
<template>
<div id="associate-role">
<md-input-container>
<md-autocomplete v-model="selectedProfile" :fetch="test()" md-dense>
<label>Профили</label>
</md-autocomplete>
</md-input-container>
</div>
</template>
<template>
<div id="associate-role">
<md-input-container>
<md-autocomplete v-model="selectedProfile" :fetch="profiles" md-dense>
<label>Профили</label>
</md-autocomplete>
</md-input-container>
</div>
</template>
<template>
<div id="service-page">
{{ currentServicePageState.main }}
<ServicePageForm
:dataForm="currentServicePageState"
:initialSeoPageData="initialSeoPageData"
@back="backButtonClick"
></ServicePageForm>
</div>
</template>
<?php
namespace App\Models\Page\ServicePage\Entity;
use App\Models\Page\Page;
use App\Models\Page\Sitemap;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\OneToOne;
<?php
namespace App\Models\Page\ServicePage\Entity;
use App\Models\Page\Page;
use App\Models\Page\Seo;
use App\Models\Page\Sitemap;
use App\Models\Page\Social;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\OneToOne;
<?php
use App\Libraries\Doctrine;
use App\Models\Page\Builder\ServicePageBuilder;
use App\Models\Page\PageManager;
use App\Models\Page\ServicePage\Entity\ServicePage;
use App\Models\Page\ServicePage\Entity\ServicePageSeo;
use App\Models\Page\ServicePage\Entity\ServicePageSitemap;
use App\Models\Page\ServicePage\Entity\ServicePageSocial;
use App\Models\Page\ServicePage\Repository\ServicePageRepository;
<template>
<div id="service-tabs">
<v-layout align-center justify-space-between row fill-height>
<v-flex xs10>
<v-btn :exact="true" :to="link" color="success" class="_no_padding">Добавить страницу</v-btn>
</v-flex>
<v-flex xs2>
<a href="/admin/services_categories/" class="_no_padding btn btn--flat btn--small primary--text">
<span class="btn__content">
Настройки категорий