fix bugs and add log viewer package

This commit is contained in:
F4ilji
2025-04-06 18:49:40 +05:00
parent 3e203484b6
commit a3b964c1ca
13 changed files with 432 additions and 42 deletions
@@ -105,17 +105,17 @@ class AcademicJournalResource extends Resource
TextInput::make('name')
->label('ФИО')
->required()
->maxLength(100)
->maxLength(255)
->placeholder('Иванов Иван Иванович'),
TextInput::make('academicTitle')
->label('Учёная степень')
->required()
->maxLength(50)
->maxLength(255)
->placeholder('д.т.н., профессор'),
TextInput::make('position')
->label('Должность')
->required()
->maxLength(100)
->maxLength(255)
->placeholder('Главный научный сотрудник'),
TextInput::make('institution')
->label('Учреждение')
@@ -137,17 +137,17 @@ class AcademicJournalResource extends Resource
TextInput::make('name')
->label('ФИО')
->required()
->maxLength(100)
->maxLength(255)
->placeholder('Петров Петр Петрович'),
TextInput::make('academicTitle')
->label('Учёная степень')
->required()
->maxLength(50)
->maxLength(255)
->placeholder('к.ф.-м.н., доцент'),
TextInput::make('position')
->label('Должность')
->required()
->maxLength(100)
->maxLength(255)
->placeholder('Доцент кафедры'),
TextInput::make('institution')
->label('Учреждение')
@@ -37,20 +37,18 @@ class JournalsRelationManager extends RelationManager
->label('Файл выпуска')
->required()
->acceptedFileTypes([
'application/pdf' => 'PDF',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'DOCX',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => 'XLSX',
'application/vnd.openxmlformats-officedocument.presentationml.presentation' => 'PPTX',
'application/zip' => 'ZIP',
'application/pdf',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/zip'
])
->maxSize(512000)
->disk('public')
->directory('journals/files')
->directory('files')
->downloadable()
->visibility('public')
->helperText('Максимальный размер файла: 512MB. Допустимые форматы: PDF, DOCX, XLSX, PPTX, ZIP')
->openable()
->previewable(false),
->openable(),
TextInput::make('year_publication')