mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Added http_status in Entry entity
This commit is contained in:
parent
b060fbdfe7
commit
10b3509757
23 changed files with 172 additions and 0 deletions
|
@ -180,6 +180,15 @@ class Entry
|
|||
*/
|
||||
private $isPublic;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="http_status", type="integer", nullable=true)
|
||||
*
|
||||
* @Groups({"entries_for_user", "export_all"})
|
||||
*/
|
||||
private $httpStatus;
|
||||
|
||||
/**
|
||||
* @Exclude
|
||||
*
|
||||
|
@ -669,4 +678,24 @@ class Entry
|
|||
{
|
||||
$this->uuid = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getHttpStatus()
|
||||
{
|
||||
return $this->httpStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $httpStatus
|
||||
*
|
||||
* @return Entry
|
||||
*/
|
||||
public function setHttpStatus($httpStatus)
|
||||
{
|
||||
$this->httpStatus = $httpStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,6 +90,9 @@ class EntryFilterType extends AbstractType
|
|||
},
|
||||
'label' => 'entry.filters.domain_label',
|
||||
])
|
||||
->add('httpStatus', TextFilterType::class, [
|
||||
'label' => 'entry.filters.http_status_label',
|
||||
])
|
||||
->add('isArchived', CheckboxFilterType::class, [
|
||||
'label' => 'entry.filters.archived_label',
|
||||
])
|
||||
|
|
|
@ -66,6 +66,7 @@ class ContentProxy
|
|||
$entry->setUrl($content['url'] ?: $url);
|
||||
$entry->setTitle($title);
|
||||
$entry->setContent($html);
|
||||
$entry->setHttpStatus(isset($content['status']) ? $content['status'] : '');
|
||||
|
||||
$entry->setLanguage($content['language']);
|
||||
$entry->setMimetype($content['content_type']);
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Har et vist billede'
|
||||
preview_picture_help: 'Forhåndsvis billede'
|
||||
language_label: 'Sprog'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Læsetid i minutter'
|
||||
from: 'fra'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Vorschaubild vorhanden'
|
||||
preview_picture_help: 'Vorschaubild'
|
||||
language_label: 'Sprache'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Lesezeit in Minuten'
|
||||
from: 'von'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Has a preview picture'
|
||||
preview_picture_help: 'Preview picture'
|
||||
language_label: 'Language'
|
||||
http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Reading time in minutes'
|
||||
from: 'from'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Hay una foto'
|
||||
preview_picture_help: 'Foto de preview'
|
||||
language_label: 'Idioma'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Duración de lectura en minutos'
|
||||
from: 'de'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'دارای عکس پیشنمایش'
|
||||
preview_picture_help: 'پیشنمایش عکس'
|
||||
language_label: 'زبان'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'زمان خواندن به دقیقه'
|
||||
from: 'از'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: "A une photo"
|
||||
preview_picture_help: "Photo"
|
||||
language_label: "Langue"
|
||||
http_status_label: 'Statut HTTP'
|
||||
reading_time:
|
||||
label: "Durée de lecture en minutes"
|
||||
from: "de"
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: "Ha un'immagine di anteprima"
|
||||
preview_picture_help: 'Immagine di anteprima'
|
||||
language_label: 'Lingua'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Tempo di lettura in minuti'
|
||||
from: 'da'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'A una fotò'
|
||||
preview_picture_help: 'Fotò'
|
||||
language_label: 'Lenga'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Durada de lectura en minutas'
|
||||
from: 'de'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Posiada podgląd obrazu'
|
||||
preview_picture_help: 'Podgląd obrazu'
|
||||
language_label: 'Język'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Czas czytania w minutach'
|
||||
from: 'od'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Possui uma imagem de preview'
|
||||
preview_picture_help: 'Imagem de preview'
|
||||
language_label: 'Idioma'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Tempo de leitura em minutos'
|
||||
from: 'de'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Are o imagine de previzualizare'
|
||||
preview_picture_help: 'Previzualizare imagine'
|
||||
language_label: 'Limbă'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Timp de citire în minute'
|
||||
from: 'de la'
|
||||
|
|
|
@ -178,6 +178,7 @@ entry:
|
|||
preview_picture_label: 'Resim önizlemesi varsa'
|
||||
preview_picture_help: 'Resim önizlemesi'
|
||||
language_label: 'Dil'
|
||||
# http_status_label: 'HTTP status'
|
||||
reading_time:
|
||||
label: 'Dakika cinsinden okuma süresi'
|
||||
from: 'başlangıç'
|
||||
|
|
|
@ -112,6 +112,13 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="filter-http-status" class="filter-group">
|
||||
{{ form_label(form.httpStatus) }}
|
||||
<div class="input-field ">
|
||||
{{ form_widget(form.httpStatus) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="filter-reading-time" class="filter-group">
|
||||
<div class="">
|
||||
{{ form_label(form.readingTime) }}
|
||||
|
|
|
@ -162,6 +162,14 @@
|
|||
{{ form_widget(form.language) }}
|
||||
</div>
|
||||
|
||||
<div class="col s12">
|
||||
{{ form_label(form.httpStatus) }}
|
||||
</div>
|
||||
|
||||
<div class="input-field col s12">
|
||||
{{ form_widget(form.httpStatus) }}
|
||||
</div>
|
||||
|
||||
<div class="col s12">
|
||||
{{ form_label(form.readingTime) }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue