Andrii Ilkiv
cb611e8274
fix: default timezone for export
...
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
2024-11-05 20:17:44 +02:00
Christian Hartmann
efa6bccc18
Update psalm workflow from template and rename file
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-10-27 22:29:37 +01:00
Chartman123
6963adb7cc
chore: use attributes to define routes ( #2353 )
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-10-21 12:51:43 +02:00
Christian Hartmann
80fa593094
chore: remove API v2
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-10-12 23:46:36 +02:00
Christian Hartmann
c732219ece
chore: remove legacy link support
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-10-11 23:54:08 +02:00
Thomas Citharel
7443df3b85
fix(export): remove new lines from form title in the exported filename
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-10-04 13:52:48 +02:00
Ferdinand Thiessen
7aba08d095
feat: Allow to reorder options for "multiple" question type
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-10-04 13:18:25 +02:00
Christian Hartmann
9ad8d3da4c
Refactor form creation and update logic
...
This commit refactors the form creation and update logic in the `ApiController` class. It removes the unnecessary setting of the `created` and `lastUpdated` timestamps in the `Form` entity, as these values are now automatically set in the `FormMapper` class. This improves code readability and reduces redundancy.
The changes also include updates to the `FormMapper` class, where the `insert` and `update` methods now automatically set the `created` and `lastUpdated` timestamps respectively.
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-09-26 23:18:27 +02:00
Chartman123
b40ef76d6c
Merge pull request #2335 from nextcloud/chore/refactor-formAccessChecking
...
chore: Refactor checking if user is allowed to edit the form
2024-09-24 16:58:17 +02:00
Chartman123
d179cd7f5c
Rename storage to rootFolder
...
Signed-off-by: GitHub <noreply@github.com>
2024-09-24 14:48:48 +00:00
Christian Hartmann
5267360c22
Refactor ApiController.php to improve code readability and maintainability
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-09-23 21:24:11 +02:00
Christian Hartmann
f756024b2a
Adjust php files to new CS
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-09-21 11:28:20 +02:00
Christian Hartmann
46141c4924
add API versions to Capabilities
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-09-20 13:25:01 +02:00
Christian Hartmann
83a14ff136
remove unused LoggerInterface dependencies
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-09-11 22:27:41 +02:00
Marcel Klehr
0005db604e
feat: Allow listening to form submissions via events and webhooks
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2024-09-03 12:56:30 +02:00
Chartman123
ee697ff50f
enh: make show to all users an admin setting
...
Signed-off-by: GitHub <noreply@github.com>
2024-08-31 18:34:42 +00:00
Christian Hartmann
5eb799f19e
feat: add API v3
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-08-31 00:01:30 +02:00
Christian Hartmann
176fc244f7
run cs:fix
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-08-24 10:52:10 +02:00
Ferdinand Thiessen
2906b7671b
fix: Adjust `ConfigService` for public forms (no logged-in user)
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-21 12:49:59 +02:00
Ferdinand Thiessen
0f40230ca7
fix: DI `userId` instead of `userSession`
...
The `ActivityManager` only needs the user ID so we just can inject the `userId`.
Also make sure that it can be null, because the `ActivityManager` is DI in the `FormsService`
and the `FormsService` is used also for public forms where no user is logged in.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-21 00:22:03 +02:00
Christian Hartmann
c22c515dbb
chore: unify __construct functions
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-08-14 14:47:53 +02:00
Rello
71b3185556
feat: Data source for the Analytics App
...
Signed-off-by: Rello <Rello@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: F. E Noel Nfebe <fenn25.fn@gmail.com>
Co-authored-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-07-29 08:57:09 +02:00
ailkiv
e98906d054
fix file types for question files
...
Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
2024-07-10 13:39:38 +03:00
ailkiv
a0b26dfdc5
Optimization method FormsService::canSubmit
...
Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
2024-07-10 09:52:28 +03:00
Konstantin Myakshin
6720298f0d
Add support for file question
...
Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
2024-06-03 17:10:56 +03:00
Ferdinand Thiessen
b7404cc443
feat: Allow to limit number of selected options for "multiple" question type
...
This allows setting a minimum and maximum of options.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-24 18:09:22 +02:00
Ferdinand Thiessen
21e7ac7cc4
feat(Question): Validate extra-settings parameter type
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-24 18:09:22 +02:00
Ferdinand Thiessen
ad711a9102
fix(refactor): Remove duplicated code from ApiController
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-23 22:28:04 +02:00
Christian Hartmann
55bc0cbc6d
Fix fetching shared forms and return array values in ApiController.php
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-04-16 18:28:23 +02:00
Ferdinand Thiessen
f4feedec2f
Merge pull request #2069 from nextcloud/fix/shared-forms
...
fix(DB): Correctly fetch shared forms
2024-04-15 23:28:43 +02:00
Ferdinand Thiessen
27faa9dc4f
fix(db): Correctly fetch shared forms from database
...
1. Let the database fully handle fetching the shared forms (no need to fetch shared IDs first and do a second query)
2. Correctly fetch all public forms if no filter was set
3. Do not require public access to show directly shared form
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-15 23:21:41 +02:00
Ferdinand Thiessen
639ace9b05
fix(Form): If `permitAllUsers` is not set then no public access is granted
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-15 23:11:03 +02:00
Ferdinand Thiessen
eadf4a4e2f
Merge pull request #2066 from nextcloud/fix/last-updated
...
Set lastUpdated on link/unlink file
2024-04-15 16:54:42 +02:00
Christian Hartmann
594c3f06d9
Set lastUpdated on link/unlink file
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-04-15 09:43:19 +02:00
Christian Hartmann
52916f6a08
fix access handling for legacyLink
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-04-14 22:01:37 +02:00
Christian Hartmann
26cebe1f3d
remove unused variable
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-04-13 09:40:50 +02:00
Christian Hartmann
b155fc0aeb
Get only forms shared with user from database
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-04-13 09:40:50 +02:00
Ferdinand Thiessen
b21dfab13d
feat: Add new permission `embedd` to limit public shares which can be embedded
...
Co-authored-by: Chartman123 <chris-hartmann@gmx.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 17:37:47 +01:00
Ferdinand Thiessen
1533d5253c
feat: Allow embedding forms within other websites
...
* Add embedded endpoint for page controller and allow
inserting submissions without CSFR as anonymous submissions
for public shares.
* Added submenu entry for copying the embedding code to the clipboard
and added documentation on how to use the embedded view.
* Switched to `vue-clipboard2` to allow copying to clipboard
from submenu entry (allows setting a container for the copy action).
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2024-03-22 17:37:47 +01:00
Ferdinand Thiessen
19d59846c6
fix: Do not require CSRF for the submission endpoint
...
`CORS` already enforces either basic auth or valid CSRF in case of a user session.
So for anonymous submissions we do not need to check the CSRF token which also will not work with embedding because the session cookies requires same site.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 17:37:47 +01:00
Ferdinand Thiessen
b81485a6e4
fix: Drop custom `PublicCorsMiddleware`
...
This was fixed in Nextcloud 26+, ref: https://github.com/nextcloud/server/pull/36396
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 17:37:47 +01:00
Ferdinand Thiessen
8660fce208
feat: Add form state handling (e.g. archived) to the frontend
...
Co-authored-by: Chartman123 <chris-hartmann@gmx.de>
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 14:34:37 +01:00
Ferdinand Thiessen
afbea98fd1
feat: Add `state` to forms to allow manually close or archive forms
...
Archived forms can not be changed (except from being un-archived).
Closed forms behave like expired forms and just do not allow new submissions.
By default forms are in state `active`.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 13:32:47 +01:00
Christian Hartmann
91d1cdba35
Show expired shared forms to users with results permission
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-03-18 18:12:58 +01:00
Christian Hartmann
e56b4a5667
Fix Psalm errors
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-03-17 22:42:42 +01:00
Chartman123
ae07f89af9
Rename Circles to Teams in UI/logging
...
Signed-off-by: GitHub <noreply@github.com>
2024-03-13 08:52:50 +00:00
Ferdinand Thiessen
76eac2cab9
fix: Load styles also for settings section
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-15 14:18:45 +01:00
Christian Hartmann
15a620844e
fix php-cs
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-02-05 10:48:19 +01:00
Konstantin Myakshin
4396fc36af
Hide linked file actions from users who have access to results view
...
Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
2024-02-01 15:04:19 +02:00
Konstantin Myakshin
8d2b52b4d6
enh: Added possibility to link spreadsheet for automatic submission export in multiple formats
...
Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
2024-01-23 23:45:23 +01:00