snowtricks's Issues
feat: loadMore Comments Ajax button
feat(auth): User authentification, registration, security, front-page
admin: users
auth: login by username
feat: images and video upload in Ajax
[hotfix] Contraint violation, 'post' FK 'user_id' on delete - in UserController line 101
hotfix: Logo missing in navbar
Add tricks, upload images
[Insight] Text files should end with a valid new line character. - in config/routes/framework.yaml, line 5
in config/routes/framework.yaml, line 5
This file ends with no newline character, or with a different newline character than other files in your project. It won't render properly on a terminal, and it's considered a bad practice.
when@dev:
_errors:
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
prefix: /_error
Posted from SymfonyInsight
List tricks, trick page, insert comments.
Entity, Migration, Fixtures
doc: README
[hotfix] Wrong upload directory path - in src/Controller/ImageController.php line 108
doc: update UML diagrams
admin: users roles and logo
feat: ajax pagination
doc: class headers
[Insight] Your project should not contain commented code - in src/Controller/ImageController.php, line 46
in src/Controller/ImageController.php, line 46
Commented out code reduces readability and lowers the code confidence for other developers. If it's common usage for debug, it should not be committed. Using a version control system, such code can be safely removed.
public function add(User $user, $image, $upload_directory, Post $post = null)
{
$image = $this->fileUploader->upload($image, $upload_directory, $this->slugger);
//$user->setAvatar($image);
$image->setOwner($user);
if($post)
{
$post->addImage($image);
Posted from SymfonyInsight
[hotfix] Wrong attribute - in CommentVoter line 44
feat: set featured image inAjax
hotfix: security
Update 404 templates
feat: edit and delete comments
front: hide images and videos on small screen
feat: admin site configuration
[doc] Update exam folder and README
Symfony insight and codacy reports links
[Insight] Your project database queries must use safety features such as bindings - in src/Controller/ImageController.php, line 72
in src/Controller/ImageController.php, line 72
If provided by the user, the value of
$image->getId()
may allow an SQL injection attack. Avoid concatenating parameters to SQL query strings, and use parameter binding instead.
#[Route('/supprimer-figure-image/{id}', name: 'post_image_delete', methods: ["DELETE"])]
public function deleteImage(Image $image, Request $request): JsonResponse
{
$this->denyAccessUnlessGranted('EDIT', $image);
$data = json_decode($request->getContent(), true);
if ($this->isCsrfTokenValid('delete' . $image->getId(), $data['_token'])) {
$this->delete($this->getuser(), $image, '/post');
$this->entityManager->remove($image);
$this->entityManager->flush();
Posted from SymfonyInsight
hotfix: Usercontroller/change_password, can't find the UserInterface
hotfix: field Owner into Image and Video entities
hotfix: locale fr into twig date format
hotfix: post collection in Image entity
refactor: SOLID principles, Front, Symfonyinsight
hotfix: sql injection into PostController
hotfix: cascade persist on images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.