@extends ('layouts.admin') @section ('content')
Library list

Content type icon Details for {{ $library->runnable ? 'content type' : 'library' }} {{ $library->getLibraryString(true) }}

@if (count($info) > 0 || count($error) > 0) @foreach ($info as $msg)
{{ $msg }}
@endforeach @foreach ($error as $msg)
{{ $msg }}
@endforeach @endif @if (is_array($libData) === false)
Data from 'libary.json' and 'semantics.json' may not be displayed since the library failed validation
@else @if (array_key_exists('semantics', $libData) && trim($libData['semantics']) !== trim($library->semantics))
Semantics data in database does not match the 'semantics.json' file. Rebuild the library to update the database
@endif @endif patch_version !== $libData['patchVersion']) class="alert-danger"@endif>
Field Database library.json
Library id {{ $library->id }}
Machine name {{ $library->name }} {{ $libData['machineName'] ?? '' }}
Title {{ $library->title }} {{ $libData['title'] ?? '' }}
Description {{ $libData['description'] ?? '' }}
Major version {{ $library->major_version }} {{ $libData['majorVersion'] ?? '' }}
Minor version {{ $library->minor_version }} {{ $libData['minorVersion'] ?? '' }}
Patch version {{ $library->patch_version }} {{ $libData['patchVersion'] ?? '' }}
Author {{ $libData['author'] ?? '' }}
License {{ $libData['license'] ?? '' }}
Content type {{ $libData['contentType'] ?? '' }}
Embed types {{ $library->embed_types }} {{ implode(', ', $libData['embedTypes'] ?? [])}}
Created time {{ $library->created_at?->format('Y-m-d H:i:s e') }}
Updated time {{ $library->updated_at?->format('Y-m-d H:i:s e') }}
Runnable {{ $library->runnable }} {{ $libData['runnable'] ?? '' }}
Fullscreen {{ $library->fullscreen }} {{ $libData['fullscreen'] ?? '' }}
Patch version in folder name {{ $library?->patch_version_in_folder_name ? 'Yes' : 'No' }}
preloadedJs {!! str_replace(',', '
', $library->preloaded_js) !!}
@isset ($libData['preloadedJs']) @foreach ($libData['preloadedJs'] as $pjs) {{$pjs['path']}} @if (!$loop->last)
@endif @endforeach @endisset
preloadedCss {!! str_replace(',', '
', $library->preloaded_css) !!}
@isset ($libData['preloadedCss']) @foreach ($libData['preloadedCss'] as $pjs) {{$pjs['path']}} @if (!$loop->last)
@endif @endforeach @endisset
Translations in database ({{$languages->count()}}) @foreach($languages as $lang) {{ $lang }} @endforeach
Number of contents {{ $library->contents()->count() }}

Semantics

Database semantics.json
@if(!empty($library->semantics)) @endif @if(!empty($libData['semantics'])) @endif

Editor dependencies

@include ('admin.fragments.dependency-table', [ 'dependencies' => $libData['editorDependencies'] ?? [], 'extraDependencies' => $editorDeps, 'haveLibData' => $libData !== false, ])

Preload dependencies

@include ('admin.fragments.dependency-table', [ 'dependencies' => $libData['preloadedDependencies'] ?? [], 'extraDependencies' => $preloadDeps, 'haveLibData' => $libData !== false, ])

Referenced by

@foreach ($usedBy as $dep) @endforeach
DB id Machine name Type Version Dependency type
{{ $dep->library->id }} {{ $dep->library->name }} {{ $dep->library->runnable ? 'Content type' : 'Library' }} {{ $dep->library->major_version . '.' . $dep->library->minor_version . '.' . $dep->library->patch_version}} {{ $dep->dependency_type }}
@endsection