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();
$artist = auth()->user()->artists()->first();
$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)
. '-'
@ -143,17 +154,16 @@ public function store(Request $request): RedirectResponse
'overlay_id' => null,
'podcast_id' => $podcast->id,
'episode_id' => $episode->id,
//'approved_by' => 4,
'filename' => $filename,
'created_at' => now(),
'updated_at' => now(),
])->create();
$img = Image::make($rawFile)->resize(3000, null, function($constraint){
$img = Image::make($rawFile)->resize(3000, null, function($constraint) {
$constraint->aspectRatio();
})
->encode('jpg', 100)
->save(Storage::disk('static')->path('/artworks') . '/' . $artwork->filename);
$thumbImg = Image::make($request->file('file'))->resize(512, null, function($constraint){
$thumbImg = Image::make($request->file('file'))->resize(512, null, function($constraint) {
$constraint->aspectRatio();
})
->encode('jpg', 100)

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

View File

@ -25,7 +25,7 @@
<h4>Community</h4>
<ul class="footer-list-widget">
<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="http://listen.noagendastream.com/">Alternate Stream Link</a></li>
<li><a href="http://noagendanation.com/">No Agenda Nation</a></li>
@ -51,7 +51,7 @@
<ul class="footer-list-widget">
<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="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>
</div>
</div>

View File

@ -29,7 +29,7 @@
<x-input-error class="mt-2" :messages="$errors->get('alby')" />
</div>
<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-input-error class="mt-2" :messages="$errors->get('nasocial')" />
</div>