fix: updated, added filament, misc hotfixes.

This commit is contained in:
Paul Couture 2024-05-26 02:12:32 +00:00
parent e25b617327
commit 346193983f
20 changed files with 1136 additions and 982 deletions

View File

@ -126,9 +126,20 @@ public function store(Request $request): RedirectResponse
$episode = $podcast->episodes->first(); $episode = $podcast->episodes->first();
$artist = auth()->user()->artists()->first(); $artist = auth()->user()->artists()->first();
$rawFile = $request->file('file'); $rawFile = $request->file('file');
$filename = now()->format('Y') $yearDirectory = now()->format('Y');
$monthDirectory = now()->format('m');
$indexPath = $yearDirectory . '/' . $monthDirectory . '/index.htm';
$imgDirExists = Storage::disk('static')->exists('artworks/' . $indexPath);
$thumbDirExists = Storage::disk('static')->exists('thumbnails/' . $indexPath);
if (!$imgDirExists) {
Storage::disk('static')->put('artworks/' . $indexPath, '');
}
if (!$thumbDirExists) {
Storage::disk('static')->put('thumbnails/' . $indexPath, '');
}
$filename = $yearDirectory
. '/' . '/'
. now()->format('m') . $monthDirectory
. '/' . '/'
. Str::slug($artist->name) . Str::slug($artist->name)
. '-' . '-'
@ -143,7 +154,6 @@ public function store(Request $request): RedirectResponse
'overlay_id' => null, 'overlay_id' => null,
'podcast_id' => $podcast->id, 'podcast_id' => $podcast->id,
'episode_id' => $episode->id, 'episode_id' => $episode->id,
//'approved_by' => 4,
'filename' => $filename, 'filename' => $filename,
'created_at' => now(), 'created_at' => now(),
'updated_at' => now(), 'updated_at' => now(),

1754
site/composer.lock generated

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
function c(){return{collapsedGroups:[],isLoading:!1,selectedRecords:[],shouldCheckUniqueSelection:!0,init:function(){this.$wire.$on("deselectAllTableRecords",()=>this.deselectAllRecords()),this.$watch("selectedRecords",()=>{if(!this.shouldCheckUniqueSelection){this.shouldCheckUniqueSelection=!0;return}this.selectedRecords=[...new Set(this.selectedRecords)],this.shouldCheckUniqueSelection=!1})},mountBulkAction:function(e){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableBulkAction(e)},toggleSelectRecordsOnPage:function(){let e=this.getRecordsOnPage();if(this.areRecordsSelected(e)){this.deselectRecords(e);return}this.selectRecords(e)},toggleSelectRecordsInGroup:async function(e){if(this.isLoading=!0,this.areRecordsSelected(this.getRecordsInGroupOnPage(e))){this.deselectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e));return}this.selectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e)),this.isLoading=!1},getRecordsInGroupOnPage:function(e){let s=[];for(let t of this.$root.getElementsByClassName("fi-ta-record-checkbox"))t.dataset.group===e&&s.push(t.value);return s},getRecordsOnPage:function(){let e=[];for(let s of this.$root.getElementsByClassName("fi-ta-record-checkbox"))e.push(s.value);return e},selectRecords:function(e){for(let s of e)this.isRecordSelected(s)||this.selectedRecords.push(s)},deselectRecords:function(e){for(let s of e){let t=this.selectedRecords.indexOf(s);t!==-1&&this.selectedRecords.splice(t,1)}},selectAllRecords:async function(){this.isLoading=!0,this.selectedRecords=await this.$wire.getAllSelectableTableRecordKeys(),this.isLoading=!1},deselectAllRecords:function(){this.selectedRecords=[]},isRecordSelected:function(e){return this.selectedRecords.includes(e)},areRecordsSelected:function(e){return e.every(s=>this.isRecordSelected(s))},toggleCollapseGroup:function(e){if(this.isGroupCollapsed(e)){this.collapsedGroups.splice(this.collapsedGroups.indexOf(e),1);return}this.collapsedGroups.push(e)},isGroupCollapsed:function(e){return this.collapsedGroups.includes(e)},resetCollapsedGroups:function(){this.collapsedGroups=[]}}}export{c as default}; function c(){return{collapsedGroups:[],isLoading:!1,selectedRecords:[],shouldCheckUniqueSelection:!0,init:function(){this.$wire.$on("deselectAllTableRecords",()=>this.deselectAllRecords()),this.$watch("selectedRecords",()=>{if(!this.shouldCheckUniqueSelection){this.shouldCheckUniqueSelection=!0;return}this.selectedRecords=[...new Set(this.selectedRecords)],this.shouldCheckUniqueSelection=!1})},mountAction:function(e,s=null){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableAction(e,s)},mountBulkAction:function(e){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableBulkAction(e)},toggleSelectRecordsOnPage:function(){let e=this.getRecordsOnPage();if(this.areRecordsSelected(e)){this.deselectRecords(e);return}this.selectRecords(e)},toggleSelectRecordsInGroup:async function(e){if(this.isLoading=!0,this.areRecordsSelected(this.getRecordsInGroupOnPage(e))){this.deselectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e));return}this.selectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e)),this.isLoading=!1},getRecordsInGroupOnPage:function(e){let s=[];for(let t of this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[])t.dataset.group===e&&s.push(t.value);return s},getRecordsOnPage:function(){let e=[];for(let s of this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[])e.push(s.value);return e},selectRecords:function(e){for(let s of e)this.isRecordSelected(s)||this.selectedRecords.push(s)},deselectRecords:function(e){for(let s of e){let t=this.selectedRecords.indexOf(s);t!==-1&&this.selectedRecords.splice(t,1)}},selectAllRecords:async function(){this.isLoading=!0,this.selectedRecords=await this.$wire.getAllSelectableTableRecordKeys(),this.isLoading=!1},deselectAllRecords:function(){this.selectedRecords=[]},isRecordSelected:function(e){return this.selectedRecords.includes(e)},areRecordsSelected:function(e){return e.every(s=>this.isRecordSelected(s))},toggleCollapseGroup:function(e){if(this.isGroupCollapsed(e)){this.collapsedGroups.splice(this.collapsedGroups.indexOf(e),1);return}this.collapsedGroups.push(e)},isGroupCollapsed:function(e){return this.collapsedGroups.includes(e)},resetCollapsedGroups:function(){this.collapsedGroups=[]}}}export{c as default};

File diff suppressed because one or more lines are too long

View File

@ -4,8 +4,8 @@
</h1> </h1>
<p data-aos="fade-up" data-aos-delay="100"> <p data-aos="fade-up" data-aos-delay="100">
A community collaboration producing the best podcast album art in the universe!<br> A community collaboration producing the best podcast album art in the universe!<br>
Once discussed on <em>The Joe Rogan Experience</em>, sadly,<br> Once discussed on <em>The Joe Rogan Experience</em>, sadly, young Jamie was not<br>
Young Jamie was not asked to pull this up. asked to pull this up.
</p> </p>
<div class="group-btn mt-8" data-aos="fade-up" data-aos-delay="200"> <div class="group-btn mt-8" data-aos="fade-up" data-aos-delay="200">
<a href="/artworks" class="btn btn-gradient"> <a href="/artworks" class="btn btn-gradient">

View File

@ -25,7 +25,7 @@
<h4>Community</h4> <h4>Community</h4>
<ul class="footer-list-widget"> <ul class="footer-list-widget">
<li><a href="https://noagendashow.net">No Agenda Show</a></li> <li><a href="https://noagendashow.net">No Agenda Show</a></li>
<li><a href="https://noagendasocial.com/">No Agenda Social</a></li> <li><a href="https://noauthority.social/">No Authority Social</a></li>
<li><a href="https://noagendastream.com">No Agenda Stream</a></li> <li><a href="https://noagendastream.com">No Agenda Stream</a></li>
<li><a href="http://listen.noagendastream.com/">Alternate Stream Link</a></li> <li><a href="http://listen.noagendastream.com/">Alternate Stream Link</a></li>
<li><a href="http://noagendanation.com/">No Agenda Nation</a></li> <li><a href="http://noagendanation.com/">No Agenda Nation</a></li>
@ -51,7 +51,7 @@
<ul class="footer-list-widget"> <ul class="footer-list-widget">
<li><a href="https://dvorak.org/na">Donate to the No Agenda Podcast</a></li> <li><a href="https://dvorak.org/na">Donate to the No Agenda Podcast</a></li>
<li><a rel="me" href="/support-development">Support The Generator</a></li> <li><a rel="me" href="/support-development">Support The Generator</a></li>
<li><a rel="me" href="https://noagendasocial.com/@SirPaulCouture">Argue with me on NA Social</a></li> <li><a rel="me" href="https://noauthority.social/@SirPaulCouture">Argue with me on NA Social</a></li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -29,7 +29,7 @@
<x-input-error class="mt-2" :messages="$errors->get('alby')" /> <x-input-error class="mt-2" :messages="$errors->get('alby')" />
</div> </div>
<div class="mt-1"> <div class="mt-1">
<x-input-label for="nasocial" :value="__('No Agenda Social Account')" /> <x-input-label for="nasocial" :value="__('No Authority Social Account')" />
<x-text-input id="nasocial" name="nasocial" type="text" class="mt-1 block w-full" :value="old('nasocial', $user->artists->first()->nasocial)" required autocomplete="naasocial" /> <x-text-input id="nasocial" name="nasocial" type="text" class="mt-1 block w-full" :value="old('nasocial', $user->artists->first()->nasocial)" required autocomplete="naasocial" />
<x-input-error class="mt-2" :messages="$errors->get('nasocial')" /> <x-input-error class="mt-2" :messages="$errors->get('nasocial')" />
</div> </div>