mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-03-21 18:04:46 -05:00
Merge branch 'feature-filemanager_history' into dev
This commit is contained in:
commit
24c8b4e42e
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
/** @var \Illuminate\Database\Eloquent\Collection<\App\Models\GameFile> $files */
|
||||
/** @var Patchline $patchline */
|
||||
|
||||
@endphp
|
||||
|
||||
<x-layouts.admin>
|
||||
|
|
@ -15,26 +16,16 @@
|
|||
<label for="patchlines" class="mr-4 font-medium text-gray-900 dark:text-white">
|
||||
Select a patchline:
|
||||
</label>
|
||||
<x-inputs.dropdown
|
||||
id="patchlines"
|
||||
name="patchline"
|
||||
:cases="Patchline::cases()"
|
||||
:selected="$patchline"
|
||||
onchange="this.form.submit()"
|
||||
required />
|
||||
<x-inputs.dropdown id="patchlines" name="patchline" :cases="Patchline::cases()" :selected="$patchline"
|
||||
onchange="this.form.submit()" required />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex flex-auto">
|
||||
<label for="additional_files">
|
||||
Show additional mods:
|
||||
</label>
|
||||
<x-inputs.checkbox
|
||||
class="w-6 h-6 ml-4"
|
||||
id="additional_files"
|
||||
name="additional_files"
|
||||
:checked="$showAdditionalFiles"
|
||||
value="1"
|
||||
onchange="this.form.submit()" />
|
||||
<x-inputs.checkbox class="w-6 h-6 ml-4" id="additional_files" name="additional_files"
|
||||
:checked="$showAdditionalFiles" value="1" onchange="this.form.submit()" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -195,24 +186,24 @@ class="w-1/12 rounded-md h-[41.43px] bg-gray-800/75 border border-gray-600 text-
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end mt-4">
|
||||
@if (!$showAdditionalFiles)
|
||||
<div class="flex justify-end mt-4">
|
||||
@if (!$showAdditionalFiles)
|
||||
<div class="w-auto mx-2">
|
||||
<x-inputs.button type="button" id="addFileInput">
|
||||
Add More Files
|
||||
</x-inputs.button>
|
||||
</div>
|
||||
@endif
|
||||
<div class="w-auto mx-2">
|
||||
<x-inputs.button type="button" id="addFileInput">
|
||||
Add More Files
|
||||
<x-inputs.button>
|
||||
Submit
|
||||
</x-inputs.button>
|
||||
</div>
|
||||
@endif
|
||||
<div class="w-auto mx-2">
|
||||
<x-inputs.button>
|
||||
Submit
|
||||
</x-inputs.button>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function toggleRow(id) {
|
||||
|
|
@ -243,29 +234,30 @@ function addFileInputEventListener(fileInput) {
|
|||
} else {
|
||||
textInput.value = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function examineFilePaths(fileName) {
|
||||
switch (fileName) {
|
||||
case 'TheExit_BE.exe':
|
||||
return './TheExit/Binaries/Win64/' + fileName;
|
||||
case 'BEClient_x64.dll':
|
||||
return './TheExit/Binaries/Win64/BattlEye/' + fileName;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
function examineFilePaths(fileName) {
|
||||
switch (fileName) {
|
||||
case 'TheExit_BE.exe':
|
||||
return './TheExit/Binaries/Win64/' + fileName;
|
||||
case 'BEClient_x64.dll':
|
||||
return './TheExit/Binaries/Win64/BattlEye/' + fileName;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
var extension = fileName.split('.').pop();
|
||||
switch (extension) {
|
||||
case 'pak':
|
||||
return './TheExit/Content/Paks/' + fileName;
|
||||
case 'sig':
|
||||
return './TheExit/Content/Paks/' + fileName;
|
||||
default:
|
||||
return './' + fileName;
|
||||
}
|
||||
var extension = fileName.split('.').pop();
|
||||
switch (extension) {
|
||||
case 'pak':
|
||||
return './TheExit/Content/Paks/' + fileName;
|
||||
case 'sig':
|
||||
return './TheExit/Content/Paks/' + fileName;
|
||||
default:
|
||||
return './' + fileName;
|
||||
}
|
||||
}
|
||||
|
||||
@if (!$showAdditionalFiles)
|
||||
document.getElementById('addFileInput').addEventListener('click', function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user