Implement feature flags and update views

This commit implements feature flags using the "ylsideas/feature-flags" library and updates various frontend views to show or hide sections based on the feature flag. Additionally, a new migration file is created for the features database table and the LibraryItem model is updated with a new searchLibraryItems function. The composer.json and composer.lock files are updated to include the new dependencies.
This commit is contained in:
HolgerHatGarKeineNode
2023-12-08 21:40:48 +01:00
parent 245ebc9220
commit 0c820be43b
27 changed files with 377 additions and 98 deletions

View File

@@ -201,6 +201,7 @@
{{-- FOOTER --}}
<livewire:frontend.footer/>
@feature('nostr.groups')
@push('modals')
<div wire:ignore class="z-50 hidden md:block">
<script
@@ -213,4 +214,5 @@
<link rel="stylesheet" href="{{ asset('dist/einundzwanzig.chat.css') }}">
</div>
@endpush
@endfeature
</div>

View File

@@ -37,6 +37,7 @@
</div>
</div>
@feature('nostr.groups')
<div wire:ignore class="z-50 hidden md:block">
<script
src="{{ asset('dist/einundzwanzig.chat.js') }}"
@@ -47,4 +48,6 @@
></script>
<link rel="stylesheet" href="{{ asset('dist/einundzwanzig.chat.css') }}">
</div>
@endfeature
</div>

View File

@@ -340,6 +340,7 @@
});
}})"></div>
@feature('nostr.groups')
@push('modals')
<div wire:ignore class="z-50 hidden md:block">
<script src="https://cdn.jsdelivr.net/npm/party-js@latest/bundle/party.min.js"></script>
@@ -353,4 +354,6 @@
<link rel="stylesheet" href="{{ asset('dist/einundzwanzig.chat.css') }}">
</div>
@endpush
@endfeature
</div>