mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-28 11:57:29 -04:00
50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
PHP
@php
|
|
$version = '?v=' . filemtime(module_path('StudioPlus', 'Public/js/creator-studio.js')) . md5_file(module_path('StudioPlus', 'Public/js/creator-studio.js'));
|
|
@endphp
|
|
|
|
@if(!Request::is('channel/*'))
|
|
<link rel="stylesheet" href="{{ asset('/Modules/StudioPlus/Public/css/primevue.css'.$version) }}">
|
|
<link rel="stylesheet" href="{{ asset('/Modules/StudioPlus/Public/css/primeicons.css'.$version) }}">
|
|
@endif
|
|
|
|
@include('studioplus::lang')
|
|
|
|
@if (permissionCheck('studio-plus.can_upload_video'))
|
|
<li id="studio-plus-uploader"></li>
|
|
@endif
|
|
|
|
@php
|
|
$is_vc_or_vcm = false;
|
|
$user = \Modules\StudioPlus\Entities\StudioPlusUser::find(auth()->id());
|
|
if ($user) {
|
|
$is_vc_or_vcm = $user->is_vc_or_vcm;
|
|
}
|
|
@endphp
|
|
|
|
|
|
@push('scripts')
|
|
@if(!Request::is('channel/*'))
|
|
<script>
|
|
(function(global) {
|
|
global.StudioPlus = {
|
|
user: {
|
|
id: "{{ auth()->id() }}",
|
|
token: "{{ csrf_token() }}",
|
|
isVCOrVCM: {{ $is_vc_or_vcm ? 'true' : 'false' }},
|
|
badges: "{{ auth()->user()->staff->badges }}"
|
|
},
|
|
routes: {
|
|
queue: {
|
|
deleteCompleted: "{{ route('studio.queue.job.delete-completed') }}",
|
|
delete: "{{ route('studio.queue.job.delete') }}",
|
|
}
|
|
}
|
|
};
|
|
})(window);
|
|
</script>
|
|
@endif
|
|
|
|
@if(!Request::is('channel/*'))
|
|
<script src="{{ asset('/Modules/StudioPlus/Public/js/creator-studio.js'.$version) }}"></script>
|
|
@endif
|
|
@endpush |