Skip to content

Instantly share code, notes, and snippets.

View RobinRadic's full-sized avatar

Robin Radic RobinRadic

View GitHub Profile
Check comment
<?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;
<?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;
@RobinRadic
RobinRadic / Normalizer.php
Created January 9, 2020 15:47
Transforms a table structructure into array(able)
<?php
namespace Pyro\Platform\Ui;
use Anomaly\Streams\Platform\Ui\Table\Component\Row\Row;
use Anomaly\Streams\Platform\Ui\Table\Table;
use Anomaly\Streams\Platform\Ui\Table\TableBuilder;
use Crvs\ClientsModule\Ui\Input;
use Crvs\ClientsModule\Ui\Support\Decoder;
<?php
namespace Pyro\IdeHelper\Examples;
class FieldFullConfigsExamples
{
public static function full(){
return [
null => static::addon(),
null => static::blocks(),
{
"server": false,
"mode": "development",
"output": {
"path": "/home/radic/projects/streams/public/assets",
"filename": "js/[name].js",
"chunkFilename": "js/[entrypoint].chunk.[name].js",
"publicPath": "/assets",
"libraryTarget": "window",
"library": [
{
"server": true,
"mode": "development",
"output": {
"path": "/home/radic/projects/pyro/public/assets",
"filename": "js/[name].js",
"chunkFilename": "js/[name]_[addon:exportName].chunk.[id].js",
"publicPath": "http://pyro.local:8079/",
"libraryTarget": "window",
"library": [
APP_ENV=local
INSTALLED=false
APP_KEY=Xyn0dqY2y5t2YJ0kZbLNOQp5ctfeSqea
APP_DEBUG=true
DEBUG_BAR=false
DB_CONNECTION=mysql
DB_HOST=localhost
DB_DATABASE=pyrocms4
DB_USERNAME=root
DB_PASSWORD=test
{
"name": "pyrocms/pyrocms",
"description": "Build better Laravel websites and applications faster with Pyro.",
"type": "project",
"keywords": [
"cms",
"pyro",
"pyrocms",
"php cms",
"laravel cms"
@RobinRadic
RobinRadic / modal.js
Created December 11, 2019 13:11
untested example
class Modal extends app.tingle.modal {
constructor(options = {}) {
super({
closeMethods: ['overlay', 'button', 'escape'],
closeLabel : 'Close',
cssClass : ['modal'],
...options
});
this.loadingHtml = '<div class="modal-loading">Loading...</div>';