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
Dockerfile | |
.dockerignore | |
node_modules | |
npm-debug.log | |
README.md | |
.git | |
dist |
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
<div x-data="setupEditor(@entangle($attributes->wire('model')).defer)" x-init="() => init($refs.editor)" wire:ignore | |
{{ $attributes->whereDoesntStartWith('wire:model')->merge(['class' => 'editor !w-full !max-w-full']) }}> | |
<template x-if="editor"> | |
<div class="flex space-x-4 items-center dark:text-neutral-100 fill-current py-2"> | |
<button @click.prevent="Alpine.raw(editor).chain().toggleBold().focus().run()"> | |
<x-icon-bold class="w-4 h-4" /> | |
</button> | |
<button @click.prevent="Alpine.raw(editor).chain().toggleItalic().focus().run()"> | |
<x-icon-italic class="w-4 h-4" /> | |
</button> |
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\Traits; | |
use Spatie\Color\Hex; | |
use Spatie\Color\Rgb; | |
trait SetupColors | |
{ | |
protected function darken(Hex $hex, float $intensity): Rgb |
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
@props([ | |
'id' => null, | |
'value' => null, | |
'text' => null, | |
'name' => null, | |
'default' => null, | |
]) | |
<div |
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\Traits; | |
trait SetupEditor | |
{ | |
public function exceedsCharacterCount($delta): bool | |
{ | |
$renderedHtml = (new \ProseMirrorToHtml\Renderer)->render($delta); |
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\Drivers; | |
use Illuminate\Database\Connection; | |
use Illuminate\Support\Facades\DB; | |
use Stancl\Tenancy\Contracts\TenantDatabaseManager; | |
use Stancl\Tenancy\Contracts\TenantWithDatabase; | |
use Stancl\Tenancy\Exceptions\NoConnectionSetException; |
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 | |
/** | |
* Strips the json from a tiptap body. | |
* | |
* @param array $body | |
* @return string | |
*/ | |
function strip_json_body(array $body): string | |
{ | |
$string = ''; |
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> | |
<input type="hidden" name="color" v-model="color"> | |
<div class="flex flex-row items-center"> | |
<div class="color-picker h-16 w-16 rounded shadow"></div> | |
<div class="ml-2 text-neutral-200"> | |
<div class="flex flex-col text-sm"> | |
<span>Color:</span> |
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\Traits\Models; | |
trait CachesMediaUrl | |
{ | |
/** | |
* Caches Media urls to avoid duplicate calls |
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 | |
if (! function_exists('generate_slug')) { | |
/** | |
* @param array $data | |
* @param string $key | |
* @param bool $unqiue | |
* @return array | |
* @throws Exception | |
*/ |
NewerOlder