Skip to content

Instantly share code, notes, and snippets.

View RobinRadic's full-sized avatar

Robin Radic RobinRadic

View GitHub Profile
@RobinRadic
RobinRadic / Converter.php
Last active May 19, 2022 23:54
plugin functions converter
<?php
namespace App\Converter;
use Anomaly\Streams\Platform\Addon\Addon;
use Anomaly\Streams\Platform\Addon\AddonCollection;
use Anomaly\Streams\Platform\StreamsPlugin;
use Illuminate\Contracts\Container\Container;
use Illuminate\Support\Str;
use Twig\TwigFunction;
@RobinRadic
RobinRadic / streams.ts
Created November 1, 2021 14:32
generated
export namespace Streams.Core.Field {
export interface FieldType {
name: string;
description: string;
rules: any;
config: { [key: string]: any };
}
}
export namespace Streams.Core.Stream {
export interface Stream {
@RobinRadic
RobinRadic / extension.ts
Created October 22, 2021 20:37
mix extension
import { ClassComponent } from 'laravel-mix/types/component';
import { resolve } from 'path';
import { Options as TSConfig } from 'ts-loader';
import { ModuleKind, ScriptTarget } from 'typescript';
import * as webpack from 'webpack';
import { TransformOptions } from '@babel/core';
let isProd = mix.inProduction();
let isDev = !mix.inProduction();
Consider prioritizing writing better/usefull PHPDoc instead of the current way.
<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>
@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} {
<?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
{
"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",
<?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>
<?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>