Compare commits
5 Commits
2aeeb0d87e
...
5505856982
Author | SHA1 | Date |
---|---|---|
tracer | 5505856982 | |
tracer | ee2a14a532 | |
tracer | a0627c89ab | |
tracer | 7b00897bc1 | |
tracer | 8794806e2c |
|
@ -3,11 +3,11 @@
|
|||
namespace App\Entity;
|
||||
|
||||
use App\Repository\UserRepository;
|
||||
use DateTime;
|
||||
use DateTimeImmutable;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Stringable;
|
||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
|
@ -15,7 +15,6 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
|
||||
#[ORM\Entity(repositoryClass: UserRepository::class), ORM\HasLifecycleCallbacks]
|
||||
#[UniqueEntity(fields: ['username', 'email'], message: 'There is already an account with this username or email.')]
|
||||
|
||||
class User implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
@ -45,22 +44,22 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
|||
private ?string $lastName = '';
|
||||
|
||||
#[ORM\ManyToMany(targetEntity: Projects::class, mappedBy: 'developer')]
|
||||
private $projects;
|
||||
private Collection $projects;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255, nullable: true)]
|
||||
private string $avatar;
|
||||
private ?string $avatar;
|
||||
|
||||
#[ORM\OneToMany(mappedBy: 'owner', targetEntity: Pages::class)]
|
||||
private $pages;
|
||||
private Collection $pages;
|
||||
|
||||
#[ORM\Column(type: 'datetime_immutable')]
|
||||
private $createdAt;
|
||||
private DateTimeImmutable $createdAt;
|
||||
|
||||
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
|
||||
private $modifiedAt;
|
||||
private DateTimeImmutable $modifiedAt;
|
||||
|
||||
#[ORM\Column(type: 'boolean')]
|
||||
private $isVerified = false;
|
||||
private bool $isVerified = false;
|
||||
|
||||
#[ORM\Column]
|
||||
private ?DateTimeImmutable $agreedTermsAt = null;
|
||||
|
@ -137,13 +136,6 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see UserInterface
|
||||
*/
|
||||
public function eraseCredentials()
|
||||
{
|
||||
$this->plainPassword = '';
|
||||
}
|
||||
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
|
@ -157,10 +149,6 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function setPlainPassword(string $plainPassword): void
|
||||
{
|
||||
$this->plainPassword = $plainPassword;
|
||||
}
|
||||
|
||||
public function getFirstName(): ?string
|
||||
{
|
||||
|
@ -278,14 +266,14 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAvatarUri()
|
||||
{
|
||||
return 'avatar';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAvatarUri(): string
|
||||
{
|
||||
return 'avatar';
|
||||
}
|
||||
|
||||
#[ORM\PrePersist]
|
||||
public function onPrePersist(): void
|
||||
|
@ -322,4 +310,9 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function eraseCredentials()
|
||||
{
|
||||
// TODO: Implement eraseCredentials() method.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
<footer class="footer">
|
||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-bottom navbar-bottom">
|
||||
<div class="d-flex justify-content-xl-around">
|
||||
<div>powered by
|
||||
<a href="#"><img src="{{ asset('build/images/Spookie/spookie_64x64.png') }}" alt="Spookie"></a>
|
||||
<div class="ms-5">powered by
|
||||
<a href="#">
|
||||
<img class="mx-1" src="{{ asset('build/images/Spookie/spookie_64x64.png') }}" alt="Spookie">
|
||||
</a>
|
||||
</div>
|
||||
<div id="legal">
|
||||
<a href="{{ path('app_imprint') }}">Imprint</a>
|
||||
<a href="{{ path('app_privacy') }}">Privacy Policy</a>
|
||||
<a href="{{ path('pages_display', { 'slug': 'imprint' }) }}">Imprint</a>
|
||||
<a href="{{ path('pages_display', { 'slug': 'privacy' }) }}">Privacy Policy</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
@ -82,14 +82,14 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="col m-3" id="main_content">
|
||||
{% block body %}
|
||||
<h1 class="q-title-show">Quote of the Moment</h1>
|
||||
<div class="q-display p-3">
|
||||
{# <i class="fa fa-quote-left"></i> #}
|
||||
<p class="d-inline">
|
||||
{{ quote | raw }}
|
||||
</p>
|
||||
|
||||
<h1 class="title-show">Quote of the Moment</h1>
|
||||
<div class="quote-box p-3">
|
||||
<i class="fa fa-quote-left"></i><br>
|
||||
{{ quote | raw | nl2br }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{% extends '@default/base.html.twig' %}
|
||||
|
||||
{% block title %}page_name{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{{ page_content | raw }}
|
||||
{% endblock %}
|
|
@ -17,12 +17,12 @@
|
|||
<a href="{{ path('app_projects', { name: project.name }) }}">
|
||||
{% if project.teaserImage %}
|
||||
<img
|
||||
class="blog-img"
|
||||
class="project-image"
|
||||
src="/uploads/projects/{{ project.teaserImage }}"
|
||||
alt="Teaser">
|
||||
{% else %}
|
||||
<img
|
||||
class="blog-img"
|
||||
class="project-image"
|
||||
src="{{ asset('build/images/24unix/24_logo_bg_96x96.png') }}"
|
||||
alt="Teaser">
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue