[1, 2, 3, [4, 5, [6, 7]]].flat() // >> [1, 2, 3, 4, 5, [6, 7]]
[1, 2, 3, [4, 5, [6, 7]]].flat(Infinity) // >> [1, 2, 3, 4, 5, 6, 7]
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 id="service-page"> | |
<v-tabs v-model="active" color="blue" slider-color="grey lighten-2"> | |
<v-tab v-for="title in titles" :key="title.title" ripple> | |
{{ title.title }} | |
</v-tab> | |
<v-tab-item :key="1"> | |
<service-main-page | |
:main="currentServicePageState.main" | |
:isEditPage="isEditPage" |
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 _ from 'lodash'; | |
import { EmptySchemaException, DuplicateCodeBlockInStack } from '../exception/CodeBlockExceptions'; | |
import codeBlockPromiseFactory from '../factory/CodeBlockPromiseFactory.js'; | |
/** | |
* Дефолтный блок | |
* | |
* @type {{placeholder: string, active: boolean}} | |
*/ | |
const defaultCodeBlock = { |
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 _ from 'lodash'; | |
import { EmptySchemaException, DuplicateCodeBlockInStack } from '../exception/CodeBlockExceptions'; | |
import codeBlockPromiseFactory from '../factory/CodeBlockPromiseFactory.js'; | |
/** | |
* Дефолтный блок | |
* | |
* @type {{placeholder: string, active: boolean}} | |
*/ | |
const defaultCodeBlock = { |
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\Module\Sender\Factory; | |
use InvalidArgumentException; | |
use App\Module\Sender\ChannelServiceProvider\ChannelsServiceProvider; | |
use App\Module\Sender\Interfaces\IMessage; | |
use App\Module\Sender\Manager\EmailManagerService; | |
use App\Module\Sender\Manager\ViberManagerService; |
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\Models\CodeBlocks\Validator; | |
use LogicException; | |
use Symfony\Component\Validator\Constraints\Choice; | |
use Symfony\Component\Validator\Constraints\Collection; | |
use Symfony\Component\Validator\Constraints\Length; | |
use Symfony\Component\Validator\Constraints\NotBlank; | |
use Symfony\Component\Validator\Constraints\Regex; |
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\Models\CodeBlocks\Validator; | |
use App\Models\CodeBlocks\Decorator\CodeBlockTypesCIValidationContract; | |
use App\Models\Interfaces\ServiceValidable; | |
use App\ValueObject\Email; | |
use Components\Core\Container; | |
use App\Models\General\CI; | |
use Guzzle\Service\Description\ValidatorInterface; |
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 Components\Core; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\Config\FileLocator; | |
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; | |
class Container | |
{ | |
/** @var Container */ |
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
imports: | |
- { resource: database.yml } | |
- { resource: services.yml } | |
- { resource: types.yml } | |
- { resource: routes_config.yml } |