Archived
1
0
Fork 0

initial commit

This commit is contained in:
Henrik Hautakoski 2021-06-28 17:33:29 +01:00
commit 1e1aa7d461
215 changed files with 35140 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<x-layout name="app">
<x-slot name="title">{{ __('Add character') }}</x-slot>
<div class="p-6 mx-auto max-w-xl">
<livewire:form.create-character-form>
</div>
</x-layout>

View file

@ -0,0 +1,11 @@
<x-layout name="app">
<x-slot name="title">{{ __('Roster') }}</x-slot>
<div class="grid sm:grid-cols-2 lg:grid-cols-3 p-4 gap-4">
@foreach($items as $item)
<x-character-card :character="$item" />
@endforeach
</div>
</x-layout>

View file

@ -0,0 +1,27 @@
<x-layout name="app">
<x-slot name="title">
<div class="flex">
<x-class-icon class="w-8 h-8 mr-2" :name="$character->class" />
{{ $character->name }}
-
{{ __('Import Profession') }}
</div>
</x-slot>
<div class="mx-auto max-w-sm p-4">
<p>Download this <x-link href="https://www.curseforge.com/wow/addons/professions-exporter" target="_blank">exporter addon</x-link>
<x-form action="{{ route('character.profession.store', [ 'character' => $character->slug ]) }}">
<div class="mb-2">
<x-form.label for="data">{{ __('Import string') }}</x-form.label>
<x-textarea class="h-64" name="data" />
</div>
<div class="mt-2">
<x-button element="input" type="submit" value="{{ __('Import') }}" />
</div>
</x-form>
</div>
</x-layout>

View file

@ -0,0 +1,46 @@
<x-layout name="app">
<x-slot name="title">
<div class="flex">
{{ __('Character') }} -
<x-class-icon class="w-8 h-8 mx-2" :name="$ch_prof->character->class" />
{{ $ch_prof->character->level }} {{ $ch_prof->character->name }}
</div>
</x-slot>
<div class="p-4">
<x-section-heading>
<div class="flex items-end">
<x-profession-icon :name="$ch_prof->profession->name" class="h-8 w-8 mr-2"/>
<h2 class="text-3xl">{{ $ch_prof->profession->name }}</h2>
<h3 class="text-xl ml-2">{{ $ch_prof->skill }}</h3>
</div>
</x-section-heading>
@php
$recipes = $ch_prof->recipes
->sortBy('craft.name')
->groupBy('category.name')
->sortKeys();
@endphp
@foreach($recipes as $category => $recipes)
<span x-data="{ open: true }">
<h2 class="flex items-center my-2 text-2xl cursor-pointer hover:text-gray-600" @click="open = ! open">
<x-icon name="chevron-right" class="h-6 w-6" x-show="!open" x-cloak />
<x-icon name="chevron-down" class="h-6 w-6" x-show="open" />
{{ $category }}
</h2>
<ul class="ml-2 space-y-2" x-show="open" x-transition>
@foreach($recipes as $recipe)
<li><x-link href="{{ route('recipe.show', [ 'recipe' => $recipe ]) }}">{{ $recipe->name }}</x-link></li>
@endforeach
</ul>
</span>
@endforeach
</div>
</x-layout>

View file

@ -0,0 +1,37 @@
<x-layout name="app">
<x-slot name="title">
<div class="flex">
{{ __('Character') }} -
<x-class-icon class="w-8 h-8 mx-2" :name="$character->class" />
{{ $character->level }} {{ $character->name }}
</div>
</x-slot>
<div class="p-4">
<x-section-heading>
<h2 class="text-3xl">Professions</h2>
<div>
@can('import_profession', $character)
<x-button element="a" class="flex items-center" href="{{ route('character.profession.create', [ 'character' => $character->slug ]) }}">
<x-icon name="plus" class="h-6 h-6 mr-1"/> {{ __('Import') }}
</x-button>
@endcan
</div>
</x-section-heading>
<ul class="space-y-2">
@foreach($character->professions as $profession)
<li class="flex items-center">
<x-profession-icon :name="$profession->name" class="h-8 w-8 mr-2"/>
<x-link href="{{ route('character.profession.show', [ 'character' => $character->slug, 'profession' => $profession->slug ]) }}">
{{ $profession->name }}
</x-link>
<span class="ml-1">@ {{ $profession->skill }}</span>
</li>
@endforeach
</ul>
</div>
</x-layout>