Compare commits
5 Commits
9414951370
...
9cfb974c27
Author | SHA1 | Date |
---|---|---|
Tykayn | 9cfb974c27 | |
Tykayn | e488b76a2d | |
Tykayn | 110ef9fc7a | |
Tykayn | 38fdbf8e85 | |
Tykayn | 46d6d21c6b |
|
@ -40,4 +40,5 @@ public/*
|
||||||
###< symfony/phpunit-bridge ###
|
###< symfony/phpunit-bridge ###
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
funky-framadate-front/*
|
||||||
funky-framadate-front
|
funky-framadate-front
|
90
README.md
90
README.md
|
@ -8,50 +8,52 @@ https://framagit.org/framasoft/framadate/funky-framadate-front
|
||||||
------------------------------------ --------------- -------- ------ --------------------------------------------------
|
------------------------------------ --------------- -------- ------ --------------------------------------------------
|
||||||
Name Method Scheme Host Path
|
Name Method Scheme Host Path
|
||||||
------------------------------------ --------------- -------- ------ --------------------------------------------------
|
------------------------------------ --------------- -------- ------ --------------------------------------------------
|
||||||
_preview_error ANY ANY ANY /_error/{code}.{_format}
|
_preview_error ANY ANY ANY /_error/{code}.{_format}
|
||||||
_wdt ANY ANY ANY /_wdt/{token}
|
_wdt ANY ANY ANY /_wdt/{token}
|
||||||
_profiler_home ANY ANY ANY /_profiler/
|
_profiler_home ANY ANY ANY /_profiler/
|
||||||
_profiler_search ANY ANY ANY /_profiler/search
|
_profiler_search ANY ANY ANY /_profiler/search
|
||||||
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
|
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
|
||||||
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
|
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
|
||||||
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
|
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
|
||||||
_profiler_open_file ANY ANY ANY /_profiler/open
|
_profiler_open_file ANY ANY ANY /_profiler/open
|
||||||
_profiler ANY ANY ANY /_profiler/{token}
|
_profiler ANY ANY ANY /_profiler/{token}
|
||||||
_profiler_router ANY ANY ANY /_profiler/{token}/router
|
_profiler_router ANY ANY ANY /_profiler/{token}/router
|
||||||
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
|
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
|
||||||
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
|
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
|
||||||
admin_homepage_get_default GET ANY ANY /admin/
|
admin_homepage_get_default GET ANY ANY /admin/
|
||||||
admin_homepage_clean_expired_polls GET ANY ANY /admin/polls/clean/{token}
|
admin_homepage_clean_expired_polls GET ANY ANY /admin/polls/clean/{token}
|
||||||
admin_homepage_migrate_framadate GET ANY ANY /admin/polls/migrate
|
admin_homepage_migrate_framadate GET ANY ANY /admin/polls/migrate
|
||||||
home_sweet_home GET ANY ANY /
|
home_sweet_home GET ANY ANY /
|
||||||
admin_homepage_migrate_from_v1 GET ANY ANY /migration-from-v1/{unique_key}
|
admin_homepage_migrate_from_v1 GET ANY ANY /migration-from-v1/{unique_key}
|
||||||
user_homepageget_default GET ANY ANY /user/
|
user_homepageget_default GET ANY ANY /user/
|
||||||
user_homepage_polls_send_by_email GET ANY ANY /user/{email}/polls/send-by-email
|
user_homepage_polls_send_by_email GET ANY ANY /user/{email}/polls/send-by-email
|
||||||
poll_index GET ANY ANY /poll/
|
poll_index GET ANY ANY /poll/
|
||||||
poll_new GET|POST ANY ANY /poll/new
|
poll_new POST ANY ANY /poll/new
|
||||||
poll_show GET ANY ANY /poll/{id}
|
poll_show GET ANY ANY /poll/id/{id}
|
||||||
poll_edit GET|POST ANY ANY /poll/{id}/edit
|
poll_edit GET|POST ANY ANY /poll/{id}/edit
|
||||||
poll_delete DELETE ANY ANY /poll/{id}
|
poll_delete DELETE ANY ANY /poll/{id}
|
||||||
api_get_poll_comment GET ANY ANY /api/v1/comment/poll/{id}/comments
|
api_get_poll_comment GET ANY ANY /api/v1/comment/poll/{id}/comments
|
||||||
api_new_comment POST ANY ANY /api/v1/comment/poll/{id}/comment
|
api_new_comment POST ANY ANY /api/v1/comment/poll/{id}/comment
|
||||||
api_poll_comments_delete DELETE ANY ANY /api/v1/comment/poll/{id}/comments
|
api_poll_comments_delete DELETE ANY ANY /api/v1/comment/poll/{id}/comments
|
||||||
api_get_all_polls GET ANY ANY /api/v1/poll/
|
api_essai GET ANY ANY /api/v1/poll/essai
|
||||||
api_get_poll GET ANY ANY /api/v1/poll/{customUrl}
|
api_get_all_polls GET ANY ANY /api/v1/poll/
|
||||||
api_get_owner_poll GET ANY ANY /api/v1/poll/owner/{owner_email}/
|
api_get_poll GET ANY ANY /api/v1/poll/{customUrl}
|
||||||
api_get_protected_poll GET ANY ANY /api/v1/poll/{customUrl}/pass/{md5}
|
api_get_owner_poll GET ANY ANY /api/v1/poll/owner/{owner_email}/
|
||||||
api_get_admin_poll GET ANY ANY /api/v1/polladmin/{admin_key}
|
api_get_protected_poll GET ANY ANY /api/v1/poll/{customUrl}/pass/{md5}
|
||||||
api_update_poll PUT ANY ANY /api/v1/poll/{customUrl}/update/{token}
|
api_get_admin_poll GET ANY ANY /api/v1/polladmin/{admin_key}
|
||||||
api_new_poll POST ANY ANY /api/v1/poll/
|
api_update_poll PUT ANY ANY /api/v1/poll/{customUrl}/update/{token}
|
||||||
api_test-mail-poll GET ANY ANY /api/v1/poll/mail/test-mail-poll/{emailChoice}
|
api_app_api_v1_poll_newpoll POST ANY ANY /api/v1/poll/
|
||||||
api_poll_delete DELETE ANY ANY /api/v1/poll/{admin_key}
|
api_app_api_v1_poll_newpoll.1 POST ANY ANY /api/v1/poll_new_poll
|
||||||
api_check_slug_is_unique GET ANY ANY /api/v1/poll/slug/{customUrl}
|
api_test-mail-poll GET ANY ANY /api/v1/poll/mail/test-mail-poll/{emailChoice}
|
||||||
api_get_admin_config GET ANY ANY /api/v1/poll/admin/{token}
|
api_poll_delete DELETE ANY ANY /api/v1/poll/{admin_key}
|
||||||
api_clean_expired_polls GET ANY ANY /api/v1/poll/admin/clean_expired_polls/{token}
|
api_check_slug_is_unique GET ANY ANY /api/v1/poll/slug/{customUrl}
|
||||||
api_new_vote_stack POST|OPTIONS ANY ANY /api/v1/vote-stack/
|
api_get_admin_config GET ANY ANY /api/v1/poll/admin/{token}
|
||||||
api_update_vote_stack PATCH|OPTIONS ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
|
api_clean_expired_polls GET ANY ANY /api/v1/poll/admin/clean_expired_polls/{token}
|
||||||
api_delete_vote_stack DELETE ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
|
api_new_vote_stack POST|OPTIONS ANY ANY /api/v1/vote-stack/
|
||||||
api_poll_votes_delete DELETE ANY ANY /api/v1/vote-stack/poll/{id}/votes/{accessToken}
|
api_update_vote_stack PATCH|OPTIONS ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
|
||||||
app.swagger GET ANY ANY /api/doc.json
|
api_delete_vote_stack DELETE ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
|
||||||
|
api_poll_votes_delete DELETE ANY ANY /api/v1/vote-stack/poll/{id}/votes/{accessToken}
|
||||||
|
app.swagger GET ANY ANY /api/doc.json
|
||||||
------------------------------------ --------------- -------- ------ --------------------------------------------------
|
------------------------------------ --------------- -------- ------ --------------------------------------------------
|
||||||
|
|
||||||
## TODO:
|
## TODO:
|
||||||
|
|
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 147 KiB |
|
@ -6,6 +6,7 @@ use App\Entity\Poll;
|
||||||
use App\Form\PollType;
|
use App\Form\PollType;
|
||||||
use App\Repository\PollRepository;
|
use App\Repository\PollRepository;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
|
@ -34,7 +35,7 @@ class PollController extends AbstractController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/new", name="poll_new", methods={"GET","POST"})
|
* @Route("/new", name="poll_new", methods={"POST"})
|
||||||
*/
|
*/
|
||||||
public function new( Request $request ): Response {
|
public function new( Request $request ): Response {
|
||||||
$poll = new Poll();
|
$poll = new Poll();
|
||||||
|
@ -58,7 +59,7 @@ class PollController extends AbstractController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* on cherche un sondage par son url personnalisée
|
* on cherche un sondage par son url personnalisée
|
||||||
* @Route("/{id}", name="poll_show", methods={"GET"})
|
* @Route("/id/{id}", name="poll_show", methods={"GET"})
|
||||||
*/
|
*/
|
||||||
public function show( $id ): Response {
|
public function show( $id ): Response {
|
||||||
$repository = $this->getDoctrine()->getRepository( Poll::class );
|
$repository = $this->getDoctrine()->getRepository( Poll::class );
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -306,8 +306,6 @@ class Poll
|
||||||
|
|
||||||
// handle sub time slices
|
// handle sub time slices
|
||||||
if (count($boom) == 2) {
|
if (count($boom) == 2) {
|
||||||
|
|
||||||
|
|
||||||
if (!isset($grouped_dates[$boom[0]])) {
|
if (!isset($grouped_dates[$boom[0]])) {
|
||||||
|
|
||||||
$grouped_dates[$boom[0]] = [
|
$grouped_dates[$boom[0]] = [
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue