Compare commits

...

5 Commits

Author SHA1 Message Date
Tykayn 9cfb974c27 handle creation of mixed subset of datechoice 2022-02-10 11:02:03 +01:00
Tykayn e488b76a2d up essai 2022-02-10 10:41:31 +01:00
Tykayn 110ef9fc7a hop up script 2022-02-10 10:32:13 +01:00
Tykayn 38fdbf8e85 add essai route 2022-02-10 10:23:06 +01:00
Tykayn 46d6d21c6b up debug message in poll creation 2022-02-10 09:53:24 +01:00
109 changed files with 623 additions and 569 deletions

0
.env.test Normal file → Executable file
View File

3
.gitignore vendored
View File

@ -40,4 +40,5 @@ public/*
###< symfony/phpunit-bridge ###
node_modules
funky-framadate-front
funky-framadate-front/*
funky-framadate-front

0
.gitlab-ci.yml Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

View File

@ -8,50 +8,52 @@ https://framagit.org/framasoft/framadate/funky-framadate-front
------------------------------------ --------------- -------- ------ --------------------------------------------------
Name Method Scheme Host Path
------------------------------------ --------------- -------- ------ --------------------------------------------------
_preview_error ANY ANY ANY /_error/{code}.{_format}
_wdt ANY ANY ANY /_wdt/{token}
_profiler_home ANY ANY ANY /_profiler/
_profiler_search ANY ANY ANY /_profiler/search
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
_profiler_open_file ANY ANY ANY /_profiler/open
_profiler ANY ANY ANY /_profiler/{token}
_profiler_router ANY ANY ANY /_profiler/{token}/router
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
admin_homepage_get_default GET ANY ANY /admin/
admin_homepage_clean_expired_polls GET ANY ANY /admin/polls/clean/{token}
admin_homepage_migrate_framadate GET ANY ANY /admin/polls/migrate
home_sweet_home GET ANY ANY /
admin_homepage_migrate_from_v1 GET ANY ANY /migration-from-v1/{unique_key}
user_homepageget_default GET ANY ANY /user/
user_homepage_polls_send_by_email GET ANY ANY /user/{email}/polls/send-by-email
poll_index GET ANY ANY /poll/
poll_new GET|POST ANY ANY /poll/new
poll_show GET ANY ANY /poll/{id}
poll_edit GET|POST ANY ANY /poll/{id}/edit
poll_delete DELETE ANY ANY /poll/{id}
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_poll_comments_delete DELETE ANY ANY /api/v1/comment/poll/{id}/comments
api_get_all_polls GET ANY ANY /api/v1/poll/
api_get_poll GET ANY ANY /api/v1/poll/{customUrl}
api_get_owner_poll GET ANY ANY /api/v1/poll/owner/{owner_email}/
api_get_protected_poll GET ANY ANY /api/v1/poll/{customUrl}/pass/{md5}
api_get_admin_poll GET ANY ANY /api/v1/polladmin/{admin_key}
api_update_poll PUT ANY ANY /api/v1/poll/{customUrl}/update/{token}
api_new_poll POST ANY ANY /api/v1/poll/
api_test-mail-poll GET ANY ANY /api/v1/poll/mail/test-mail-poll/{emailChoice}
api_poll_delete DELETE ANY ANY /api/v1/poll/{admin_key}
api_check_slug_is_unique GET ANY ANY /api/v1/poll/slug/{customUrl}
api_get_admin_config GET ANY ANY /api/v1/poll/admin/{token}
api_clean_expired_polls GET ANY ANY /api/v1/poll/admin/clean_expired_polls/{token}
api_new_vote_stack POST|OPTIONS ANY ANY /api/v1/vote-stack/
api_update_vote_stack PATCH|OPTIONS ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
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
_preview_error ANY ANY ANY /_error/{code}.{_format}
_wdt ANY ANY ANY /_wdt/{token}
_profiler_home ANY ANY ANY /_profiler/
_profiler_search ANY ANY ANY /_profiler/search
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
_profiler_open_file ANY ANY ANY /_profiler/open
_profiler ANY ANY ANY /_profiler/{token}
_profiler_router ANY ANY ANY /_profiler/{token}/router
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
admin_homepage_get_default GET ANY ANY /admin/
admin_homepage_clean_expired_polls GET ANY ANY /admin/polls/clean/{token}
admin_homepage_migrate_framadate GET ANY ANY /admin/polls/migrate
home_sweet_home GET ANY ANY /
admin_homepage_migrate_from_v1 GET ANY ANY /migration-from-v1/{unique_key}
user_homepageget_default GET ANY ANY /user/
user_homepage_polls_send_by_email GET ANY ANY /user/{email}/polls/send-by-email
poll_index GET ANY ANY /poll/
poll_new POST ANY ANY /poll/new
poll_show GET ANY ANY /poll/id/{id}
poll_edit GET|POST ANY ANY /poll/{id}/edit
poll_delete DELETE ANY ANY /poll/{id}
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_poll_comments_delete DELETE ANY ANY /api/v1/comment/poll/{id}/comments
api_essai GET ANY ANY /api/v1/poll/essai
api_get_all_polls GET ANY ANY /api/v1/poll/
api_get_poll GET ANY ANY /api/v1/poll/{customUrl}
api_get_owner_poll GET ANY ANY /api/v1/poll/owner/{owner_email}/
api_get_protected_poll GET ANY ANY /api/v1/poll/{customUrl}/pass/{md5}
api_get_admin_poll GET ANY ANY /api/v1/polladmin/{admin_key}
api_update_poll PUT ANY ANY /api/v1/poll/{customUrl}/update/{token}
api_app_api_v1_poll_newpoll POST ANY ANY /api/v1/poll/
api_app_api_v1_poll_newpoll.1 POST ANY ANY /api/v1/poll_new_poll
api_test-mail-poll GET ANY ANY /api/v1/poll/mail/test-mail-poll/{emailChoice}
api_poll_delete DELETE ANY ANY /api/v1/poll/{admin_key}
api_check_slug_is_unique GET ANY ANY /api/v1/poll/slug/{customUrl}
api_get_admin_config GET ANY ANY /api/v1/poll/admin/{token}
api_clean_expired_polls GET ANY ANY /api/v1/poll/admin/clean_expired_polls/{token}
api_new_vote_stack POST|OPTIONS ANY ANY /api/v1/vote-stack/
api_update_vote_stack PATCH|OPTIONS ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
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:

0
assets/styles/app.scss Normal file → Executable file
View File

0
assets/styles/pages/_global.scss Normal file → Executable file
View File

0
assets/styles/pages/_home.scss Normal file → Executable file
View File

0
assets/styles/pages/libs.scss Normal file → Executable file
View File

0
composer-setup.php Normal file → Executable file
View File

0
composer.json Normal file → Executable file
View File

0
composer.lock generated Normal file → Executable file
View File

0
config/bundles.php Normal file → Executable file
View File

0
config/graphql/types/Apartment.types.yaml Normal file → Executable file
View File

0
config/graphql/types/Query.types.yaml Normal file → Executable file
View File

0
config/packages/cache.yaml Normal file → Executable file
View File

0
config/packages/dev/debug.yaml Normal file → Executable file
View File

0
config/packages/dev/jms_serializer.yaml Normal file → Executable file
View File

0
config/packages/dev/mailer.yaml Normal file → Executable file
View File

0
config/packages/dev/swiftmailer.yaml Normal file → Executable file
View File

0
config/packages/dev/web_profiler.yaml Normal file → Executable file
View File

0
config/packages/doctrine.yaml Normal file → Executable file
View File

0
config/packages/doctrine_migrations.yaml Normal file → Executable file
View File

0
config/packages/fos_rest.yaml Normal file → Executable file
View File

0
config/packages/framework.yaml Normal file → Executable file
View File

0
config/packages/jms_serializer.yaml Normal file → Executable file
View File

0
config/packages/mailer.yaml Normal file → Executable file
View File

0
config/packages/nelmio_api_doc.yaml Normal file → Executable file
View File

0
config/packages/nelmio_cors.yaml Normal file → Executable file
View File

0
config/packages/prod/doctrine.yaml Normal file → Executable file
View File

0
config/packages/prod/jms_serializer.yaml Normal file → Executable file
View File

0
config/packages/prod/mailer.yml Normal file → Executable file
View File

0
config/packages/prod/monolog.yaml Normal file → Executable file
View File

0
config/packages/prod/routing.yaml Normal file → Executable file
View File

0
config/packages/routing.yaml Normal file → Executable file
View File

0
config/packages/sensio_framework_extra.yaml Normal file → Executable file
View File

0
config/packages/swiftmailer.yaml Normal file → Executable file
View File

0
config/packages/test/doctrine.yaml Normal file → Executable file
View File

0
config/packages/test/framework.yaml Normal file → Executable file
View File

0
config/packages/test/swiftmailer.yaml Normal file → Executable file
View File

0
config/packages/test/twig.yaml Normal file → Executable file
View File

0
config/packages/test/web_profiler.yaml Normal file → Executable file
View File

0
config/packages/twig.yaml Normal file → Executable file
View File

0
config/preload.php Normal file → Executable file
View File

0
config/routes.yaml Normal file → Executable file
View File

0
config/routes/annotations.yaml Normal file → Executable file
View File

0
config/routes/dev/framework.yaml Normal file → Executable file
View File

0
config/routes/dev/web_profiler.yaml Normal file → Executable file
View File

0
config/routes/nelmio_api_doc.yaml Normal file → Executable file
View File

0
config/services.yaml Normal file → Executable file
View File

0
doc/SCHEMA:framadate_api.uml Normal file → Executable file
View File

0
doc/apache2/dev.conf Normal file → Executable file
View File

0
doc/apache2/dev_php_fpm.conf Normal file → Executable file
View File

0
doc/database_creation.md Normal file → Executable file
View File

0
doc/framadate_api.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 192 KiB

0
doc/framadate_api.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

0
doc/migration.md Normal file → Executable file
View File

0
doc/php-8-install.md Normal file → Executable file
View File

0
front_update.sh Normal file → Executable file
View File

0
migrations/.gitignore vendored Normal file → Executable file
View File

0
migrations/Version20210419202522.php Normal file → Executable file
View File

0
migrations/Version20210518212646.php Normal file → Executable file
View File

0
phpunit.xml.dist Normal file → Executable file
View File

0
public/index.php Normal file → Executable file
View File

0
src/Controller/.gitignore vendored Normal file → Executable file
View File

0
src/Controller/EmailsController.php Normal file → Executable file
View File

5
src/Controller/PollController.php Normal file → Executable file
View File

@ -6,6 +6,7 @@ use App\Entity\Poll;
use App\Form\PollType;
use App\Repository\PollRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
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 {
$poll = new Poll();
@ -58,7 +59,7 @@ class PollController extends AbstractController {
/**
* 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 {
$repository = $this->getDoctrine()->getRepository( Poll::class );

0
src/Controller/api/v1/CommentController.php Normal file → Executable file
View File

1090
src/Controller/api/v1/PollController.php Normal file → Executable file

File diff suppressed because it is too large Load Diff

0
src/Controller/api/v1/VoteController.php Normal file → Executable file
View File

0
src/DataFixtures/CommentFixtures.php Normal file → Executable file
View File

0
src/DataFixtures/VotesStacksFixtures.php Normal file → Executable file
View File

0
src/Entity/.gitignore vendored Normal file → Executable file
View File

View File

@ -306,8 +306,6 @@ class Poll
// handle sub time slices
if (count($boom) == 2) {
if (!isset($grouped_dates[$boom[0]])) {
$grouped_dates[$boom[0]] = [

0
src/Form/PollType.php Normal file → Executable file
View File

0
src/GraphQL/Resolver/ApartmentResolver.php Normal file → Executable file
View File

0
src/Kernel.php Normal file → Executable file
View File

0
src/Repository/.gitignore vendored Normal file → Executable file
View File

0
src/Service/MailService.php Normal file → Executable file
View File

0
symfony.lock Normal file → Executable file
View File

0
templates/admin/index.html.twig Normal file → Executable file
View File

0
templates/default/index.html.twig Normal file → Executable file
View File

0
templates/email-base-plaintext.html.twig Normal file → Executable file
View File

0
templates/email-base.html.twig Normal file → Executable file
View File

0
templates/emails/comment-notification.html.twig Normal file → Executable file
View File

0
templates/emails/partial/admin_link.html.twig Normal file → Executable file
View File

0
templates/emails/partial/poll.html.twig Normal file → Executable file
View File

0
templates/emails/partial/public_link.html.twig Normal file → Executable file
View File

0
templates/emails/vote-notification.html.twig Normal file → Executable file
View File

0
templates/migration/index.html.twig Normal file → Executable file
View File

0
templates/owner/index.html.twig Normal file → Executable file
View File

0
templates/pages/funky.html.twig Normal file → Executable file
View File

0
templates/pages/home.html.twig Normal file → Executable file
View File

0
templates/pages/migration.html.twig Normal file → Executable file
View File

0
templates/poll/_delete_form.html.twig Normal file → Executable file
View File

0
templates/poll/_form.html.twig Normal file → Executable file
View File

0
templates/poll/edit.html.twig Normal file → Executable file
View File

0
templates/poll/index.html.twig Normal file → Executable file
View File

0
templates/poll/new.html.twig Normal file → Executable file
View File

0
templates/poll/show.html.twig Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More