Skip to content

Commit ee3a55f

Browse files
committed
WIP
1 parent 1017533 commit ee3a55f

File tree

129 files changed

+212
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+212
-334
lines changed

app/Http/Controllers/PresetController.php

+9
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public function create(Campaign $campaign, PresetType $presetType)
4747
public function store(StorePreset $request, Campaign $campaign, PresetType $presetType)
4848
{
4949
$this->authorize('mapPresets', $campaign);
50+
if ($request->ajax()) {
51+
return response()->json(['success' => true]);
52+
}
5053

5154
$data = $request->only('name', 'config', 'visibility_id');
5255
$data['type_id'] = $presetType->id;
@@ -81,6 +84,9 @@ public function edit(Campaign $campaign, PresetType $presetType, Preset $preset)
8184
public function update(StorePreset $request, Campaign $campaign, PresetType $presetType, Preset $preset)
8285
{
8386
$this->authorize('mapPresets', $campaign);
87+
if ($request->ajax()) {
88+
return response()->json(['success' => true]);
89+
}
8490

8591
$data = $request->only('name', 'config', 'visibility_id');
8692
$preset->update($data);
@@ -99,6 +105,9 @@ public function update(StorePreset $request, Campaign $campaign, PresetType $pre
99105
public function destroy(Request $request, Campaign $campaign, PresetType $presetType, Preset $preset)
100106
{
101107
$this->authorize('mapPresets', $campaign);
108+
if ($request->ajax()) {
109+
return response()->json(['success' => true]);
110+
}
102111
$preset->delete();
103112

104113
[$route, $params] = $this->parseFrom($request);

resources/js/components/attributes/Manager.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
</optgroup>
106106
</select>
107107
</article>
108-
<footer class="bg-base-200 flex flex-wrap gap-3 justify-end items-center p-3 md:rounded-b">
108+
<footer class="flex flex-wrap gap-3 justify-end items-center p-4 md:px-6">
109109
<menu class="flex flex-wrap gap-3 ps-0">
110110
<div class="submit-group">
111111
<a role="button" class="btn2 btn-primary" @click="loadTemplate()" v-html="trans('templates.load')">

resources/js/components/families/FamilyTree.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
</div>
147147
</div>
148148
</article>
149-
<footer class="bg-base-200 flex flex-wrap gap-3 justify-end items-center p-3 md:rounded-b">
149+
<footer class="flex flex-wrap gap-3 justify-end items-center p-4 md:px-6">
150150
<menu class="flex flex-wrap gap-3 ps-0">
151151
<div class="submit-group">
152152
<button class="btn2 btn-primary" @click="saveModal()">

resources/js/components/subscription/BillingManagement.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<p class="help-block text-neutral-content grow">
3030
{{ translate('add_one') }}
3131
</p>
32-
<a href="#" v-on:click.close="toggleShowNewPaymentMethod" class="btn2 btn-sm">
32+
<a href="#" v-on:click.close="toggleShowNewPaymentMethod" class="btn2 btn-outline">
3333
<i class="fa-regular fa-credit-card" aria-hidden="true"></i> {{ translate('actions.add_new') }}
3434
</a>
3535
</div>

resources/js/entities/Entity.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div v-if="stacked()" class="stack inline-grid items-center align-items-end w-[47%] xs:w-[25%] sm:w-48" v-bind:data-stack="entity.children">
33
<div
4-
class="entity overflow-hidden rounded shadow-sm hover:shadow-md aspect-square w-full flex flex-col bg-box"
4+
class="entity overflow-hidden rounded shadow-xs hover:shadow aspect-square w-full flex flex-col bg-box"
55
v-bind="dataAttributes()">
66
<a
77
:href="entity.urls.children"
@@ -30,7 +30,7 @@
3030
</div>
3131
<div
3232
v-for="s in entity.children"
33-
class="entity entity-stack bg-base-300 w-full overflow-hidden rounded aspect-square flex flex-col shadow-sm" title="{{ __('datagrids.tooltips.nested') }}" v-bind:data-stack="s">
33+
class="entity entity-stack bg-base-300 w-full overflow-hidden rounded aspect-square flex flex-col shadow-xs" title="{{ __('datagrids.tooltips.nested') }}" v-bind:data-stack="s">
3434
<div class="block grow"></div>
3535
<div class="block h-12 p-4 bg-box"></div>
3636
</div>
@@ -76,7 +76,7 @@ const props = defineProps<{
7676
}>()
7777
7878
const entityClass = () => {
79-
let css = 'entity overflow-hidden rounded shadow-sm hover:shadow-md w-[47%] xs:w-[25%] sm:w-48 aspect-square flex flex-col bg-box';
79+
let css = 'entity overflow-hidden rounded shadow-xs hover:shadow w-[47%] xs:w-[25%] sm:w-48 aspect-square flex flex-col bg-box';
8080
8181
if (props.isParent) {
8282
css += 'shadow-lg stacking-parent font-bold'

resources/js/entities/Explorer.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</div>
1010
</div>
1111
<div class="flex gap-2 items-start">
12-
<div class="rounded shadow-sm w-[47%] xs:w-[25%] sm:w-48 aspect-square flex items-center justify-center text-xl text-neutral-content">
12+
<div class="rounded shadow-xs w-[47%] xs:w-[25%] sm:w-48 aspect-square flex items-center justify-center text-xl text-neutral-content">
1313
<i class="fa-solid fa-spinner fa-spin" aria-label="Loading"></i>
1414
</div>
1515
</div>
@@ -195,7 +195,7 @@
195195
</div>
196196
<div class="flex gap-1 items-start">
197197
<div class="entities-grid flex flex-wrap gap-3 lg:gap-5">
198-
<a v-if="parent" :href="parent.urls.parent" class="entity w-[47%] xs:w-[25%] sm:w-48 overflow-hidden rounded flex flex-col shadow-sm hover:shadow-md sm">
198+
<a v-if="parent" :href="parent.urls.parent" class="entity w-[47%] xs:w-[25%] sm:w-48 overflow-hidden rounded flex flex-col shadow-xs hover:shadow sm">
199199
<div class="w-46 flex items-center justify-center grow text-6xl">
200200
<i class="fa-solid fa-arrow-left" aria-hidden="true"></i>
201201
</div>

resources/js/gallery/Gallery.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
</div>
102102
<div v-else-if="hasPreview()" class="cover-background w-full h-full flex p-2" :style="{backgroundImage: 'url(\'' + imagePreview + '\')'}">
103103
<div class="progress h-1 w-full self-end">
104-
<div class="h-1 bg-accent shadow-sm" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" :style="{'width': progressPercentage()}">
104+
<div class="h-1 bg-accent shadow-xs" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" :style="{'width': progressPercentage()}">
105105
<span class="sr-only"></span>
106106
</div>
107107
</div>
@@ -147,7 +147,7 @@
147147
<span class="sr-only">Close</span>
148148
</button>
149149
</header>
150-
<article class="max-w-4xl flex flex-col gap-2 text-left">
150+
<article class="max-w-4xl flex flex-col gap-2 text-left p-4 md:px-6">
151151
<div class="flex flex-col gap-1 w-full">
152152
<label v-html="trans('name')"></label>
153153
<input type="text" class="w-full" v-model="folderName" ref="folderNameField" @keyup.enter="createFolder">
@@ -159,7 +159,7 @@
159159
</select>
160160
</div>
161161
</article>
162-
<footer class="bg-base-200 p-2">
162+
<footer class="bp-4 md:px-6">
163163
<menu class="">
164164
<button type="submit" class="btn2 btn-primary" @click="createFolder" v-html="trans('create')">
165165
</button>
@@ -175,7 +175,7 @@
175175
<span class="sr-only">Close</span>
176176
</button>
177177
</header>
178-
<article class="max-w-4xl flex flex-col gap-2 text-left">
178+
<article class="max-w-4xl flex flex-col gap-2 text-left p-4 md:px-6">
179179
<div class="flex flex-col gap-1 w-full">
180180
<label v-html="trans('visibility')"></label>
181181
<select class="w-full" v-model="bulkVisibility">

resources/js/gallery/Selection.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<div v-if="uploading" class="flex gap-2 flex-col w-full">
2121
<div class="progress h-1 w-full">
22-
<div class="h-1 bg-accent shadow-sm" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" :style="{'width': progressPercentage()}">
22+
<div class="h-1 bg-accent shadow-xs" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" :style="{'width': progressPercentage()}">
2323
<span class="sr-only"></span>
2424
</div>
2525
</div>
@@ -48,13 +48,13 @@
4848
<span class="sr-only">Close</span>
4949
</button>
5050
</header>
51-
<article class="max-w-4xl flex flex-col gap-2 text-left">
51+
<article class="max-w-4xl flex flex-col gap-2 text-left p-4 md:px-6">
5252
<div class="flex flex-col gap-1 w-full">
5353
<p v-html="storageFull"></p>
5454
<p v-html="trans.cta_helper" v-if="!hasPremium"></p>
5555
</div>
5656
</article>
57-
<footer class="bg-base-200 p-2" v-if="!hasPremium">
57+
<footer class="p-4 md:px-6" v-if="!hasPremium">
5858
<menu class="">
5959
<a v-bind:href="props.cta" class="btn2 btn-primary">
6060
<i class="fa-solid fa-gem" aria-hidden="true" />

resources/js/recovery/Element.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const click = () => {
4646
}
4747
4848
const modelClass = () => {
49-
let css = 'rounded shadow bg-base-100 flex flex-col gap-2 md:gap-4 p-4 hover:shadow-lg'
49+
let css = 'rounded-xl shadow-xs bg-base-100 flex flex-col gap-2 md:gap-4 p-4 hover:shadow'
5050
5151
if (!props.model.url) {
5252
css = css + ' cursor-pointer'

resources/js/recovery/Recovery.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565
<span class="sr-only">Close</span>
6666
</button>
6767
</header>
68-
<article class="max-w-4xl flex flex-col gap-2 text-left">
68+
<article class="max-w-4xl flex flex-col gap-2 text-left p-4 md:px-6">
6969
<div class="flex flex-col gap-1 w-full">
7070
<label v-html="trans('premium')"></label>
7171
</div>
7272
</article>
73-
<footer class="bg-base-200 p-2">
73+
<footer class="p-4 md:px-6">
7474
<menu class="">
7575
<a :href="upgradeLink" v-html="trans('upgrade')" class="btn2 btn-default"></a>
7676
</menu>

resources/sass/buttons.scss

+8-8
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@
182182
}
183183
.btn2.btn-outline:hover {
184184
--tw-border-opacity: 1;
185-
border-color:hsl(var(--bc)/var(--tw-border-opacity));
185+
border-color:hsl(var(--b2)/var(--tw-border-opacity));
186186
--tw-bg-opacity: 1;
187-
background-color:hsl(var(--bc)/var(--tw-bg-opacity));
187+
background-color:hsl(var(--b2)/var(--tw-bg-opacity));
188188
--tw-text-opacity: 1;
189-
color:hsl(var(--b1)/var(--tw-text-opacity))
189+
color:hsl(var(--bc)/var(--tw-text-opacity))
190190
}
191191
.btn2.btn-outline.btn-primary:hover {
192192
--tw-border-opacity: 1;
@@ -464,21 +464,21 @@
464464
outline-color:currentColor
465465
}
466466
.btn2.btn-outline {
467-
border-color:currentColor;
468467
background-color:transparent;
469468
--tw-text-opacity: 1;
470469
color:hsl(var(--bc)/var(--tw-text-opacity));
471470
--tw-shadow: 0 0 #0000;
472471
--tw-shadow-colored: 0 0 #0000;
473-
box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)
472+
box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
473+
--border-btn: 1px;
474474
}
475475
.btn2.btn-outline.btn-active {
476476
--tw-border-opacity: 1;
477-
border-color:hsl(var(--bc)/var(--tw-border-opacity));
477+
border-color:hsl(var(--b2)/var(--tw-border-opacity));
478478
--tw-bg-opacity: 1;
479-
background-color:hsl(var(--bc)/var(--tw-bg-opacity));
479+
background-color:hsl(var(--b2)/var(--tw-bg-opacity));
480480
--tw-text-opacity: 1;
481-
color:hsl(var(--b1)/var(--tw-text-opacity))
481+
color:hsl(var(--bc)/var(--tw-text-opacity))
482482
}
483483
.btn2.btn-outline.btn-primary {
484484
--tw-text-opacity: 1;

resources/sass/themes/light.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
--btn-focus-scale: 1;
7575

7676
// Button border width
77-
--border-btn: 1px;
77+
//--border-btn: 1px;
7878
// Button text transform
7979
--btn-text-case: inherit;
8080

resources/views/abilities/entities/create.blade.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010

1111
@section('content')
1212
<x-form :action="$formOptions">
13-
@include('partials.forms.form', [
13+
@include('partials.forms._dialog', [
1414
'title' => __('abilities.children.create.modal', ['name' => $model->name]),
1515
'content' => 'abilities.entities._form',
16-
'dialog' => true,
1716
])
1817
<input type="hidden" name="ability_id" value="{{ $model->entity->id }}" />
1918
</x-form>

resources/views/account/billing/information/form.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@include('partials.forms._dialog', [
33
'title' => __('billing/information.title'),
44
'content' => 'account.billing.information._form',
5-
'dialog' => true,
65
'submit' => __('settings.billing.save')
76
])
87
</x-form>

resources/views/account/email/form.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
@include('partials.forms._dialog', [
33
'title' => __('account/email.title'),
44
'content' => 'account.email._form',
5-
'dialog' => true,
65
])
76
</x-form>

resources/views/account/password/form.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
@include('partials.forms._dialog', [
33
'title' => __('account/password.title'),
44
'content' => 'account.password._form',
5-
'dialog' => true,
65
])
76
</x-form>

resources/views/account/social/form.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
@include('partials.forms._dialog', [
33
'title' => __('account/social.title'),
44
'content' => 'account.social._form',
5-
'dialog' => true,
65
])
76
</x-form>

resources/views/billing/payment-method.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@
7878

7979
<div class="flex flex-col gap-4">
8080
<div class="flex gap-2 justify-between">
81-
@if (\Illuminate\Support\Arr::exists($user->profile, 'billing'))
81+
@if (\Illuminate\Support\Arr::exists($user->profile ?? [], 'billing'))
8282
<x-helper>
8383
{!! nl2br($user->profile['billing']) !!}
8484
</x-helper>
8585
@else
8686
<x-helper>{{ __('billing/information.helper') }}</x-helper>
8787
@endif
8888
<div class="">
89-
<button class="btn2" data-toggle="dialog" data-target="primary-dialog" data-url="{{ route('account.billing.info') }}">
89+
<button class="btn2 btn-outline" data-toggle="dialog" data-target="primary-dialog" data-url="{{ route('account.billing.info') }}">
9090
{{ __('billing/information.actions.update') }}
9191
</button>
9292
</div>

resources/views/calendars/reminders/create.blade.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
@section('content')
1414
<x-form :action="['calendars.event.store', $campaign, $calendar->id]" class="entity-calendar-subform">
1515

16-
@include('partials.forms.form', [
16+
@include('partials.forms._dialog', [
1717
'title' => __('calendars.event.create.title', ['name' => $calendar->name]),
1818
'content' => 'calendars.reminders._form',
19-
'dialog' => true,
2019
'dropdownParent' => '#primary-dialog',
2120
])
2221

resources/views/calendars/reminders/create_from_entity.blade.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212

1313
<x-form :action="['entities.reminders.store', $campaign, $entity->id]" class="">
1414

15-
@include('partials.forms.form', [
15+
@include('partials.forms._dialog', [
1616
'title' => __('calendars.event.create.title', ['name' => $entity->name]),
1717
'content' => 'calendars.reminders._entity_form',
18-
'dialog' => true,
1918
'dropdownParent' => request()->ajax() ? '#primary-dialog' : null,
2019
])
2120

resources/views/calendars/reminders/edit.blade.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
@section('content')
1818
<x-form method="PATCH" :action="['entities.reminders.update', $campaign, $entity->id, $reminder->id]" class="entity-calendar-subform">
1919

20-
@include('partials.forms.form', [
20+
@include('partials.forms._dialog', [
2121
'title' => __('calendars.event.edit.title', ['name' => '<a href="' . $entity->url() . '">' . $entity->name . '</a>']),
2222
'content' => 'calendars.reminders._form',
2323
'deleteID' => '#delete-reminder-' . $reminder->id,
24-
'dialog' => true,
2524
'dropdownParent' => request()->ajax() ? '#primary-dialog' : null,
2625
])
2726

resources/views/calendars/weather/create.blade.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
@section('content')
1313
<x-form :action="['calendars.calendar_weather.store', $campaign, $calendar->id]">
1414

15-
@include('partials.forms.form', [
15+
@include('partials.forms._dialog', [
1616
'title' => __('calendars/weather.create.title', ['name' => $calendar->name]),
1717
'content' => 'calendars.weather._form',
18-
'dialog' => true,
1918
])
2019

2120
<input type="hidden" name="year" value="{{ $year }}" />

resources/views/calendars/weather/edit.blade.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
@section('content')
1414
<x-form method="PATCH" :action="['calendars.calendar_weather.update', $campaign, $weather->calendar->id, $weather->id]">
1515

16-
@include('partials.forms.form', [
16+
@include('partials.forms._dialog', [
1717
'title' => __('calendars/weather.edit.title'),
1818
'content' => 'calendars.weather._form',
1919
'deleteID' => '#delete-weather-' . $weather->id,
20-
'dialog' => true,
2120
])
2221

2322
<input type="hidden" name="year" value="{{ $weather->year }}" />

resources/views/campaigns/_overview.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
?>
44

55
<div class="grid grid-cols-1 md:grid-cols-2 gap-5">
6-
<x-box class="flex items-center gap-5">
6+
<x-box class="flex items-center gap-5 rounded-xl shadow-xs">
77
@if ($campaign->boosted())
88
@php
99
$booster = $campaign->boosts()->first();
@@ -34,16 +34,16 @@
3434
</div>
3535
@if (!$campaign->boosted() && auth()->check())
3636
@if (auth()->user()->hasBoosterNomenclature())
37-
<a class="rounded-full border h-12 w-12 gap-2 flex items-center justify-center cursor-pointer neutral-link" href="{{ route('settings.boost', ['campaign' => $campaign->id]) }}">
37+
<a class="rounded-full border h-12 w-12 gap-2 flex items-center justify-center cursor-pointer neutral-link hover:bg-base-200" href="{{ route('settings.boost', ['campaign' => $campaign->id]) }}">
3838
<x-icon class="fa-solid fa-angle-right" />
3939
</a>
4040
@else
41-
<a class="rounded-full border h-12 w-12 flex gap-2 items-center justify-center cursor-pointer neutral-link" href="{{ route('settings.premium', ['campaign' => $campaign->id]) }}" data-tooltip data-title="{{ __('campaigns/overview.premium.enable') }}">
41+
<a class="rounded-full border h-12 w-12 flex gap-2 items-center justify-center cursor-pointer neutral-link hover:bg-base-200" href="{{ route('settings.premium', ['campaign' => $campaign->id]) }}" data-tooltip data-title="{{ __('campaigns/overview.premium.enable') }}">
4242
<x-icon class="fa-solid fa-angle-right" />
4343
</a>
4444
@endif
4545
@elseif (auth()->check())
46-
<a class="rounded-full border h-12 w-12 flex items-center justify-center cursor-pointer neutral-link" href="{{ route('settings.premium') }}" >
46+
<a class="rounded-full border h-12 w-12 flex items-center justify-center cursor-pointer neutral-link hover:bg-base-200" href="{{ route('settings.premium') }}" >
4747
<x-icon class="fa-solid fa-angle-right" />
4848
</a>
4949
@endif

resources/views/campaigns/achievements/_finished.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@php
22
use \Illuminate\Support\Arr;
33
@endphp
4-
<div class="achievement shadow-xl rounded-xl bg-base-100 w-full sm:w-80 md:w-96 flex flex-col gap-2 md:gap-3 p-5 md:p-5 level-{{ $stat['level'] }}" data-achievement="{{ $key }}">
4+
<div class="achievement shadow-xs hover:shadow rounded-xl bg-base-100 w-full sm:w-80 md:w-96 flex flex-col gap-2 md:gap-3 p-5 md:p-5 level-{{ $stat['level'] }}" data-achievement="{{ $key }}">
55

66
<div class="flex gap-2 md:gap-5 items-center grow">
77
<div class="flex-none text-accent text-8xl border-accent border-opacity-20 rounded-full border-4 flex items-center justify-center w-36 h-36">

0 commit comments

Comments
 (0)