This file contains hidden or 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
// app/Livewire/Editor.php | |
<?php | |
namespace App\Livewire; | |
use Livewire\Attributes\Modelable; | |
use Livewire\Component; | |
class Editor extends Component | |
{ |
This file contains hidden or 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
//helpers/link.vue | |
<template> | |
<nuxt-link :to="href" v-if="isInternalLink"> <slot /></nuxt-link> | |
<a :href="href" v-else> <slot /></a> | |
</template> | |
<script setup> | |
const props = defineProps({ |
This file contains hidden or 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\Jobs; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\Dispatchable; | |
use App\Item; |
This file contains hidden or 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> | |
{{ text | truncate(isTruncated) }} <button class="text-blue" @click="isTruncated = !isTruncated">{{ isTruncated ? showMoreText : shotLessText }}</button> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: ['body'], | |
data () { |
This file contains hidden or 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 | |
/************************************************************************* | |
* Get File Information | |
*/ | |
// Assuming these come from some data source in your app | |
$s3FileKey = 's3/key/path/to/file.ext'; | |
$fileName = 'file.ext'; |
This file contains hidden or 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
<previewvacancy | |
name="Stillingsannonse" | |
description="Annonse aktiveres rett etter kjøp" | |
stripekey="{{ config('services.stripe.key') }}" | |
email="{{ $vacancy->user->email }}"> | |
</previewvacancy> | |
@section('stripe') |
This file contains hidden or 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> | |
<div class="items-center flex"> | |
<img itemprop="img" class="w-32 h-32 rounded-full mr-4 mr-auto ml-auto" :src="images[currentNumber]" alt="Produktbilder" /> | |
</div> | |
<div class="mt-4 text-center"> | |
<a href="#" @click="prev" class="text-grey">Forrige bilde</a> <a href="#" @click="next" class="ml-3 text-grey">Neste bilde</a> | |
</div> | |
</div> | |
</template> |
This file contains hidden or 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
@if ($paginator->hasPages()) | |
<ul class="flex list-reset w-auto justify-center"> | |
{{-- Previous Page Link --}} | |
@if ($paginator->onFirstPage()) | |
<li class="block hover:text-white hover:bg-blue text-grey border-r border-grey-light px-3 py-2 cursor-not-allowed"><span>«</span></li> | |
@else | |
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="block hover:text-white hover:bg-blue text-blue border-r border-grey-light px-3 py-2">«</a></li> | |
@endif | |
{{-- Pagination Elements --}} |
This file contains hidden or 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 id="trixJsEditor" type="hidden" name="content" value="init value"> | |
<trix-vue content="test"></trix-vue> | |
</div> | |
</div> | |
</template> | |
<script> | |
import TrixVue from './Trix.vue'; |
This file contains hidden or 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> | |
<div class="tabs"> | |
<ul> | |
<li v-for="tab in tabs" :key="tab.id" :class="{ 'is-active': isActivated(tab) }"><a @click="selectTab(tab)">{{ tab.name }}</a></li> | |
</ul> | |
</div> | |
</div> | |
</template> |
NewerOlder