Skip to content

Instantly share code, notes, and snippets.

Avatar

Robin Radic RobinRadic

View GitHub Profile
View gist:eca6f7d37a75cba14ffc2a5561d9e93f
Consider prioritizing writing better/usefull PHPDoc instead of the current way.
View DepartmentPicker.vue
<template>
<div :class="classes" :style="style">
<div ref="container" :class="classNames.container">
<input type="hidden" name="department_id" id="department_id"/>
<div ref="header" :class="classNames.header">{{ headerText }}</div>
<div ref="content" :class="classNames.content">
<py-scroll ref="scroll" :ops="ops">
<slot>
View cp.scss
@import "~@pyro/admin-theme/lib/styling/base";
$table-background : #FFFFFF;
$table-striped-background : #F5F5F5;
@import '~foundation-sites/scss/components/_table.scss';
$cp-prefix : #{$prefix}-cp;
.#{$cp-prefix} {
View Translator.php
<?php namespace Anomaly\Streams\Platform\Support;
/**
* Class Translator
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <support@pyrocms.com>
* @author Ryan Thompson <ryan@pyrocms.com>
*/
class Translator
View composer.json
{
"name": "laravel-enso/enso",
"description": "Laravel Enso can be a solid start for any SPA based on Laravel 5.6, Vue and Bulma",
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.1.3",
"doctrine/dbal": "^2.8",
"fideloper/proxy": "~4.0",
"guzzlehttp/guzzle": "^6.3",
View LinkTypeInterface.php
<?php namespace Anomaly\NavigationModule\Link\Type\Contract;
use Anomaly\NavigationModule\Link\Contract\LinkInterface;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
/**
* Interface LinkTypeInterface
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <support@pyrocms.com>
View LinkTypeInterface.php
<?php namespace Anomaly\NavigationModule\Link\Type\Contract;
use Anomaly\NavigationModule\Link\Contract\LinkInterface;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
/**
* Interface LinkTypeInterface
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <support@pyrocms.com>
View AddonListCommand.php
<?php
use Anomaly\Streams\Platform\Addon\AddonCollection;
use Anomaly\Streams\Platform\Addon\Extension\ExtensionCollection;
use Anomaly\Streams\Platform\Addon\FieldType\FieldTypeCollection;
use Anomaly\Streams\Platform\Addon\Module\ModuleCollection;
use Anomaly\Streams\Platform\Addon\Theme\ThemeCollection;
use Illuminate\Console\Command;
View Decoder.php
<?php
namespace Crvs\ClientsModule\Ui\Support;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Encoder\XmlEncoder;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer as AN;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer;