Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev 1.5 #1038

Merged
merged 154 commits into from
Sep 14, 2020
Merged

Dev 1.5 #1038

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
8969047
experimental background style
dartcafe May 23, 2020
f3f3d67
Added user preferences backend and UI
dartcafe May 23, 2020
13d15f1
namespaced settings
dartcafe May 23, 2020
3856766
json fix
dartcafe May 23, 2020
a4a571a
avoid fetching foto fix #912
dartcafe Jun 11, 2020
825c7a2
fix #920
dartcafe Jun 11, 2020
9f5b0d9
minor fixes
dartcafe Jun 11, 2020
ca60c90
minor fixes
dartcafe Jun 11, 2020
7ed6fbe
Merge branch 'master' into vote-sequence
dartcafe Jul 7, 2020
93ef72a
avoid fetching foto fix #912
dartcafe Jun 11, 2020
ff1b161
minor fixes
dartcafe Jun 11, 2020
b0525cb
Merge branch 'sharee-fix' of http://github.com/nextcloud/polls into s…
dartcafe Jul 7, 2020
3e0c0ec
Merge branch 'master' into sharee-fix
dartcafe Jul 7, 2020
6e3792a
Update backend
dartcafe Jul 11, 2020
6fa543b
update API docs
dartcafe Jul 11, 2020
255a363
Update Frontend store
dartcafe Jul 11, 2020
cf4fe71
code fixes and bugs
dartcafe Jul 11, 2020
0cacb21
Scrutinizer Auto-Fixes
scrutinizer-auto-fixer Jul 11, 2020
4f0795c
Merge pull request #1017 from nextcloud/scrutinizer-patch-1
dartcafe Jul 11, 2020
a2197ad
reduced latency on option confirmation and enhanced error handling
dartcafe Jul 12, 2020
e110220
fix voting
dartcafe Jul 12, 2020
5151f1f
Avoid avatar errors and tidy acl model
dartcafe Jul 12, 2020
1a165ec
Drop support for NC16
dartcafe Jul 13, 2020
1f906b4
Code maintenance
dartcafe Jul 24, 2020
b04ebb5
Merge pull request #1026 from nextcloud/sharee-fix
dartcafe Jul 25, 2020
d74ad71
Merge pull request #1027 from nextcloud/vote-sequence
dartcafe Jul 25, 2020
53eabaa
Merge branch 'dev-1.5' into routes-afterwork
dartcafe Jul 25, 2020
64da364
Merge pull request #1025 from nextcloud/routes-afterwork
dartcafe Jul 25, 2020
f952943
dev updates
dartcafe Jul 25, 2020
1d8f6d7
Merge pull request #1029 from nextcloud/dev-1.5-dependencies-update
dartcafe Jul 25, 2020
b362d0a
remove php 7.4 from travis
dartcafe Jul 25, 2020
7dd22d2
Merge pull request #1028 from nextcloud/version-1.5
dartcafe Jul 25, 2020
e857f14
copy participants addresses to clipboard
dartcafe Jul 26, 2020
c145b5e
implement sending to a share's mail address
dartcafe Aug 1, 2020
d93709f
mobile view indicate votes via bar
dartcafe Aug 1, 2020
417d628
fix sidebar
dartcafe Aug 1, 2020
2cf16b3
Merge pull request #1030 from nextcloud/collect-email-addresses
dartcafe Aug 1, 2020
0b129f1
Merge branch 'master' into dev-1.5
dartcafe Aug 1, 2020
db579c7
set email address in external share
dartcafe Aug 2, 2020
8880f12
hack for hyphenating options in text polls
dartcafe Aug 5, 2020
dad6b97
public subscription for shares with mail address
dartcafe Aug 7, 2020
a7d9642
user can add own email address
dartcafe Aug 11, 2020
ab6c0fe
added sharing to contact groups
dartcafe Aug 12, 2020
b38e662
Merge pull request #1046 from nextcloud/public-subscription
dartcafe Aug 12, 2020
2e1eccb
add getDisplayName to groups
dartcafe Aug 12, 2020
32e81f7
Merge pull request #1047 from nextcloud/invite-contact-group
dartcafe Aug 12, 2020
a55108b
Merge branch 'dev-1.5' into 1.5-design-fixes
dartcafe Aug 12, 2020
a36377b
remove vote column width limitation
dartcafe Aug 12, 2020
afc30a1
Merge branch '1.5-design-fixes' of http://github.com/nextcloud/polls …
dartcafe Aug 12, 2020
c30ac7f
update dependencies
dartcafe Aug 12, 2020
081a116
catch error on getDisplayName for groups
dartcafe Aug 13, 2020
56d48b4
Adding time zone information
dartcafe Aug 15, 2020
c679210
find possible calender conflicts
dartcafe Aug 17, 2020
a9a9e61
updated CHANGELOG.md
dartcafe Aug 17, 2020
2778e29
1.5.0-beta1 Release
dartcafe Aug 17, 2020
2a1cfd2
removed loggings
dartcafe Aug 17, 2020
f293106
removed logging
dartcafe Aug 17, 2020
da6e04c
fix reroute share
dartcafe Aug 19, 2020
c7f111b
fixing cloneOptions
dartcafe Aug 20, 2020
6b73dea
migrate to @nextcloud/dialogs
dartcafe Aug 20, 2020
b0b220e
move option sequence to backend #1058
dartcafe Aug 22, 2020
6336be3
shortend transition on comment delete
dartcafe Aug 22, 2020
2b44489
Merge pull request #1037 from nextcloud/rank-indicator
dartcafe Aug 22, 2020
b29e6c9
Merge branch '1.5-design-fixes' of http://github.com/nextcloud/polls …
dartcafe Aug 22, 2020
aa3def3
adding some transitions
dartcafe Aug 22, 2020
2972131
sidebar toggle icon
dartcafe Aug 22, 2020
94dcdb5
Merge branch 'dev-1.5' into 1.5-design-fixes
dartcafe Aug 23, 2020
bdece59
Merge branch 'dev-1.5' into checkCalendar
dartcafe Aug 23, 2020
6b2496c
fix linter hints
dartcafe Aug 23, 2020
1590378
fix linter warnings
dartcafe Aug 23, 2020
7747ad8
calculate font color from background color
dartcafe Aug 23, 2020
b9a33f5
computed conflict level instead of method
dartcafe Aug 23, 2020
8b28e69
removed unused function
dartcafe Aug 23, 2020
e3f98d0
Merge pull request #1048 from nextcloud/1.5-design-fixes
dartcafe Aug 23, 2020
6331430
Update dependencies
dartcafe Aug 23, 2020
147e7f0
Merge branch 'dev-1.5' of http://github.com/nextcloud/polls into dev-1.5
dartcafe Aug 23, 2020
f57504f
Merge pull request #1056 from nextcloud/checkCalendar
dartcafe Aug 25, 2020
6f103d9
Merge branch 'dev-1.5' into backend-sequence
dartcafe Aug 25, 2020
41307fc
Merge pull request #1059 from nextcloud/backend-sequence
dartcafe Aug 25, 2020
355c0fa
experimental background style
dartcafe May 23, 2020
b6912b8
Added user preferences backend and UI
dartcafe May 23, 2020
eb37df2
namespaced settings
dartcafe May 23, 2020
82ab446
json fix
dartcafe May 23, 2020
e8c8723
Merge branch 'backgroundExperimental' of http://github.com/nextcloud/…
dartcafe May 23, 2020
d3f723d
improvements
dartcafe Aug 28, 2020
202fdc9
fix
dartcafe Aug 28, 2020
e2688ab
NC 20 compatibility and fix
dartcafe Aug 28, 2020
95a420d
styling calendar-peek
dartcafe Aug 28, 2020
8a5920b
experimental background style
dartcafe May 23, 2020
0ae9c8a
Added user preferences backend and UI
dartcafe May 23, 2020
fc0dad6
namespaced settings
dartcafe May 23, 2020
78358de
json fix
dartcafe May 23, 2020
4520ec6
improvements
dartcafe Aug 28, 2020
48d5596
Merge branch 'backgroundExperimental' of http://github.com/nextcloud/…
dartcafe Aug 28, 2020
7ca68ba
fix mobile view
dartcafe Aug 29, 2020
1554014
fix userItem
dartcafe Aug 29, 2020
34ef7ac
update @nextcloud/vue
dartcafe Aug 29, 2020
482d2db
update @nextcloud/dialogs
dartcafe Aug 29, 2020
9a6053f
design fixes and maintenance
dartcafe Aug 31, 2020
b0c49ec
experimental background style
dartcafe May 23, 2020
cc56251
Added user preferences backend and UI
dartcafe Aug 31, 2020
960bf5d
namespaced settings
dartcafe May 23, 2020
4833192
json fix
dartcafe May 23, 2020
dbb36a3
improvements
dartcafe Aug 28, 2020
1289959
Merge branch 'backgroundExperimental' of http://github.com/nextcloud/…
dartcafe Aug 31, 2020
6542bd6
Add settings
dartcafe Aug 31, 2020
7a8c71d
make stylint happy
dartcafe Aug 31, 2020
cd8c605
Merge pull request #1073 from nextcloud/backgroundExperimental
dartcafe Aug 31, 2020
6390e0f
update version
dartcafe Aug 31, 2020
70e7da4
update dependencies
dartcafe Aug 31, 2020
4667842
center background image
dartcafe Aug 31, 2020
cbff07d
Scrutinizer Auto-Fixes
scrutinizer-auto-fixer Aug 31, 2020
8106e1b
some fixes
dartcafe Aug 31, 2020
d1ebca4
Merge pull request #1074 from nextcloud/scrutinizer-patch-1
dartcafe Aug 31, 2020
089fd0b
Merge branch 'dev-1.5' of http://github.com/nextcloud/polls into dev-1.5
dartcafe Aug 31, 2020
31b1d73
more fixes
dartcafe Aug 31, 2020
7ea4501
fix
dartcafe Sep 1, 2020
e549a2d
Adding app-code-check to Github actions
dartcafe Sep 2, 2020
1da2829
try
dartcafe Sep 2, 2020
28fda0d
fix syntax
dartcafe Sep 2, 2020
89252b1
fix
dartcafe Sep 2, 2020
300200a
adding php versions
dartcafe Sep 2, 2020
474146e
Merge branch 'dev-1.5' of http://github.com/nextcloud/polls into dev-1.5
dartcafe Sep 2, 2020
9692c26
fix
dartcafe Sep 2, 2020
c8031f8
adding actions
dartcafe Sep 3, 2020
fa30cc5
fix workflow file
dartcafe Sep 3, 2020
3018352
php-cs fix
dartcafe Sep 3, 2020
e7700eb
progress
dartcafe Sep 3, 2020
4e46b49
minor changes
dartcafe Sep 3, 2020
0ba8347
remove AppCode check action
dartcafe Sep 3, 2020
9d857c9
fix
dartcafe Sep 3, 2020
c72e917
Merge pull request #1075 from nextcloud/php-cs-fixer
dartcafe Sep 3, 2020
7cfa3ac
Adding option for important polls
dartcafe Sep 3, 2020
85793d7
use linkifyjs for description
dartcafe Sep 3, 2020
2fa58f4
Merge pull request #1077 from nextcloud/important-poll
dartcafe Sep 4, 2020
5a47411
Merge pull request #1078 from nextcloud/description-linkify
dartcafe Sep 4, 2020
cf185ef
format link in description
dartcafe Sep 4, 2020
c3ba97d
fixing design bugs
dartcafe Sep 6, 2020
0a1afa8
load icons via url-loader
dartcafe Sep 8, 2020
bee163c
update changelog
dartcafe Sep 8, 2020
acf6d64
fix layout
dartcafe Sep 8, 2020
ebbdfe4
force linting actions to dev branches
dartcafe Sep 8, 2020
2467a2a
update dependencies
dartcafe Sep 8, 2020
bfaa1c9
update css-loader
dartcafe Sep 8, 2020
c0ebb54
Merge branch 'master' into dev-1.5
dartcafe Sep 8, 2020
2c97331
Delete .php_cs.cache
dartcafe Sep 13, 2020
d0ed628
Validate email address and improve register dialog
dartcafe Sep 13, 2020
7c00b79
stylelint ignore gif
dartcafe Sep 13, 2020
a457455
fixes after testing
dartcafe Sep 13, 2020
1ef26e2
Merge pull request #1101 from nextcloud/simple-mail-validation
dartcafe Sep 13, 2020
814b1b2
updated version to 1.5.2
dartcafe Sep 13, 2020
ab99e4c
sync package-lock.json
dartcafe Sep 13, 2020
348f41e
minor fixes
dartcafe Sep 13, 2020
2abaff4
fix #1089
dartcafe Sep 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 57 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,73 @@ on:
branches:
- master
- stable*
- dev*

jobs:
php-cs-fixer:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: [7.4]

name: php-cs

steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up php
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Install dependencies
run: composer i
- name: Run coding standards check
run: composer run cs:check

app-code-check:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4']
nextcloud-versions: ['master']

name: Nextcloud AppCode check

steps:
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: ctype,curl,dom,gd,iconv,intl,json,mbstring,openssl,posix,sqlite,xml,zip
coverage: xdebug
- name: Checkout Nextcloud ${{ matrix.nextcloud-versions }}
run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.nextcloud-versions }} nextcloud
- name: Run tests
run: php -f nextcloud/occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
- name: Checkout
uses: actions/checkout@master
with:
path: nextcloud/apps/mail
- name: Run tests
run: php -f nextcloud/occ app:check-code mail

node:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
node-versions: [12.x]

name: eslint node ${{ matrix.node-versions }}
steps:
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node-version }}
- name: Use node ${{ matrix.node-versions }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node-versions }}
- name: Install dependencies
run: npm ci
- name: ESLint
Expand All @@ -33,14 +85,14 @@ jobs:
matrix:
node-versions: [12.x]

name: stylelint node${{ matrix.node-versions }}
name: stylelint node ${{ matrix.node-versions }}
steps:
- uses: actions/checkout@v2

- name: Set up node ${{ matrix.node-versions }}
uses: actions/setup-node@v1
with:
node-versions: ${{ matrix.node-versions }}
node-version: ${{ matrix.node-versions }}

- name: Install dependencies
run: npm ci
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.sass-cache/
.php_cs.cache
.project/
.idea/
build/
Expand Down
20 changes: 20 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

require_once './vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

$config = new Config();
$config
->getFinder()
->ignoreVCSIgnored(true)
->notPath('build')
->notPath('l10n')
->notPath('lib/Vendor')
->notPath('src')
->notPath('vendor')
->notPath('tests')
->in(__DIR__);
return $config;
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.gif
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.5.0] - tbd
## [1.5.1 - beta2] - 2020-08-17
- Lookup calendars for conflict #1056 #747
- convert URIs in description into clickable links #1067
- added a poll to force poll appear under relevant polls navigation entry for all users #1072
- move cloning of options to backend #1058
- add user settings
- some style fixes
- updated dependencies
- load app icons via url-loader

## [1.5.0 - beta1] - 2020-08-17
- Drop support for Nextcloud 16
- Stop immediatley sending of invitation mails after adding a share #1007 #935
- Fix: Hide usernames in notification mail, if results in poll are hidden #990 #980
- Adding a REST-API #966
Expand All @@ -13,7 +24,8 @@ All notable changes to this project will be documented in this file.
- Changed some icons #862
- Added the ability to confirm options #939 #136
- A lot of refactoring

- Don't invite disabled users #997
- add time zone info to date polls #1076


## [1.4.3] - 2020-05-03
Expand Down
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Polls</name>
<summary>A polls app, similar to doodle/dudle with the possibility to restrict access.</summary>
<description>A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public).</description>
<version>1.5.0</version>
<version>1.5.2</version>
<licence>agpl</licence>
<author>Vinzenz Rosenkranz</author>
<author>René Gieling</author>
Expand All @@ -23,7 +23,7 @@
<screenshot>https://raw.githubusercontent.com/nextcloud/polls/master/screenshots/vote.png</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/polls/master/screenshots/edit-poll.png</screenshot>
<dependencies>
<nextcloud min-version="16" max-version="19" />
<nextcloud min-version="17" max-version="20" />
</dependencies>
<background-jobs>
<job>OCA\Polls\Cron\NotificationCron</job>
Expand Down
94 changes: 53 additions & 41 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,73 +27,79 @@
['name' => 'page#index', 'url' => '/not-found', 'verb' => 'GET', 'postfix' => 'notfound'],
['name' => 'page#index', 'url' => '/list/{id}', 'verb' => 'GET', 'postfix' => 'list'],
['name' => 'page#index', 'url' => '/vote/{id}', 'verb' => 'GET', 'postfix' => 'vote'],

['name' => 'page#vote_public', 'url' => '/s/{token}', 'verb' => 'GET', 'postfix' => 'public'],
['name' => 'page#vote_public', 'url' => '/poll/{token}', 'verb' => 'GET', 'postfix' => 'oldpublic'],

['name' => 'subscription#get', 'url' => '/subscription/{pollId}', 'verb' => 'GET'],
['name' => 'subscription#set', 'url' => '/subscription', 'verb' => 'POST'],

['name' => 'comment#getByToken', 'url' => '/comments/s/{token}', 'verb' => 'GET'],
['name' => 'comment#get', 'url' => '/comments/{pollId}', 'verb' => 'GET'],
['name' => 'comment#add', 'url' => '/comment/add', 'verb' => 'POST'],
['name' => 'comment#delete', 'url' => '/comment/delete', 'verb' => 'POST'],

['name' => 'vote#getByToken', 'url' => '/votes/get/s/{token}', 'verb' => 'GET'],
['name' => 'vote#setByToken', 'url' => '/vote/set/s', 'verb' => 'POST'],
['name' => 'vote#get', 'url' => '/votes/get/{pollId}', 'verb' => 'GET'],
['name' => 'vote#set', 'url' => '/vote/set', 'verb' => 'POST'],
// ['name' => 'vote#write', 'url' => '/vote/write/', 'verb' => 'POST'],
['name' => 'vote#delete', 'url' => '/votes/delete', 'verb' => 'POST'],

['name' => 'option#get', 'url' => '/options/get/{pollId}', 'verb' => 'GET'],
['name' => 'option#add', 'url' => '/option/add', 'verb' => 'POST'],
['name' => 'option#update', 'url' => '/option/update', 'verb' => 'POST'],
['name' => 'option#reorder', 'url' => '/option/reorder', 'verb' => 'POST'],
['name' => 'option#remove', 'url' => '/option/remove', 'verb' => 'POST'],
['name' => 'option#getByToken', 'url' => '/options/get/s/{token}', 'verb' => 'GET'],

['name' => 'poll#get', 'url' => '/polls/get/{pollId}', 'verb' => 'GET', 'postfix' => 'auth'],
['name' => 'poll#get', 'url' => '/polls/get/s/{token}', 'verb' => 'GET', 'postfix' => 'public'],
['name' => 'poll#add', 'url' => '/polls/add', 'verb' => 'POST'],
['name' => 'poll#update', 'url' => '/polls/update/{pollId}', 'verb' => 'PUT'],

['name' => 'poll#list', 'url' => '/polls/list', 'verb' => 'GET'],
['name' => 'poll#delete', 'url' => '/polls/delete/{pollId}', 'verb' => 'GET'],
['name' => 'poll#deletePermanently', 'url' => '/polls/delete/permanent/{pollId}', 'verb' => 'GET'],
['name' => 'poll#clone', 'url' => '/polls/clone/{pollId}', 'verb' => 'GET'],
['name' => 'poll#getParticipantsEmailAddresses', 'url' => '/polls/addresses/{pollId}', 'verb' => 'GET'],

['name' => 'option#list', 'url' => '/polls/{pollId}/options', 'verb' => 'GET'],
['name' => 'option#reorder', 'url' => '/polls/{pollId}/options/reorder', 'verb' => 'POST'],
['name' => 'option#add', 'url' => '/option', 'verb' => 'POST'],
['name' => 'option#update', 'url' => '/option/{optionId}', 'verb' => 'PUT'],
['name' => 'option#delete', 'url' => '/option/{optionId}', 'verb' => 'DELETE'],
['name' => 'option#confirm', 'url' => '/option/{optionId}/confirm', 'verb' => 'PUT'],
['name' => 'option#sequence', 'url' => '/option/{optionId}/sequence', 'verb' => 'POST'],
['name' => 'option#findCalendarEvents', 'url' => '/option/{optionId}/events', 'verb' => 'GET'],
// ['name' => 'option#listByToken', 'url' => '/options/get/s/{token}', 'verb' => 'GET'],

['name' => 'vote#set', 'url' => '/vote/set', 'verb' => 'POST'],
['name' => 'vote#setByToken', 'url' => '/vote/set/s', 'verb' => 'POST'],
['name' => 'vote#delete', 'url' => '/votes/delete', 'verb' => 'POST'],
// ['name' => 'vote#get', 'url' => '/votes/get/{pollId}', 'verb' => 'GET'],
// ['name' => 'vote#getByToken', 'url' => '/votes/get/s/{token}', 'verb' => 'GET'],

['name' => 'share#add', 'url' => '/share/add', 'verb' => 'POST'],
['name' => 'share#delete', 'url' => '/share/delete', 'verb' => 'POST'],
['name' => 'share#createPersonalShare', 'url' => '/share/create/s', 'verb' => 'POST'],
['name' => 'share#get', 'url' => '/share/{token}', 'verb' => 'GET'],
['name' => 'share#personal', 'url' => '/share/personal', 'verb' => 'POST'],
['name' => 'share#delete', 'url' => '/share/delete/{token}', 'verb' => 'DELETE'],
['name' => 'share#sendInvitation', 'url' => '/share/send/{token}', 'verb' => 'POST'],
['name' => 'share#resolveContactGroup', 'url' => '/share/resolveContactGroup/{token}', 'verb' => 'POST'],

// ['name' => 'share#getShares', 'url' => '/shares/get/{pollId}', 'verb' => 'GET'],
// ['name' => 'share#get', 'url' => '/share/get/{token}', 'verb' => 'GET'],
['name' => 'subscription#get', 'url' => '/subscription/{pollId}', 'verb' => 'GET', 'postfix' => 'auth'],
['name' => 'subscription#get', 'url' => '/subscription/s/{token}', 'verb' => 'GET', 'postfix' => 'public'],
['name' => 'subscription#set', 'url' => '/subscription', 'verb' => 'POST'],

['name' => 'acl#getByToken', 'url' => '/acl/get/s/{token}', 'verb' => 'GET'],
['name' => 'acl#get', 'url' => '/acl/get/{id}', 'verb' => 'GET'],
['name' => 'comment#add', 'url' => '/comment', 'verb' => 'POST'],
['name' => 'comment#delete', 'url' => '/comment/{commentId}', 'verb' => 'DELETE'],
// ['name' => 'comment#list', 'url' => '/comments/{pollId}', 'verb' => 'GET'],
// ['name' => 'comment#getByToken', 'url' => '/comments/s/{token}', 'verb' => 'GET'],

// ['name' => 'acl#getByToken', 'url' => '/acl/get/s/{token}', 'verb' => 'GET'],
// ['name' => 'acl#get', 'url' => '/acl/get/{id}', 'verb' => 'GET'],

['name' => 'system#get_site_users_and_groups', 'url' => '/siteusers/get', 'verb' => 'POST'],
['name' => 'system#validate_public_username', 'url' => '/check/username', 'verb' => 'POST'],
['name' => 'system#validate_email_address', 'url' => '/check/emailaddress/{emailAddress}', 'verb' => 'GET'],

// REST-API calls
['name' => 'poll_api#get', 'url' => '/api/v1.0/poll/{pollId}', 'verb' => 'GET'],
['name' => 'poll_api#list', 'url' => '/api/v1.0/polls', 'verb' => 'GET'],
['name' => 'poll_api#add', 'url' => '/api/v1.0/poll/add', 'verb' => 'POST'],
['name' => 'poll_api#clone', 'url' => '/api/v1.0/poll/clone/{pollId}', 'verb' => 'POST'],
['name' => 'poll_api#get', 'url' => '/api/v1.0/poll/{pollId}', 'verb' => 'GET'],
['name' => 'poll_api#add', 'url' => '/api/v1.0/poll', 'verb' => 'POST'],
['name' => 'poll_api#update', 'url' => '/api/v1.0/poll/{pollId}', 'verb' => 'PUT'],
['name' => 'poll_api#delete', 'url' => '/api/v1.0/poll/{pollId}', 'verb' => 'DELETE'],
['name' => 'poll_api#delete', 'url' => '/api/v1.0/poll/permanent/{pollId}', 'verb' => 'DELETE'],
['name' => 'poll_api#enum', 'url' => '/api/v1.0/poll/enum', 'verb' => 'GET'],
['name' => 'poll_api#clone', 'url' => '/api/v1.0/poll/{pollId}/clone', 'verb' => 'POST'],
['name' => 'poll_api#trash', 'url' => '/api/v1.0/poll/{pollId}/trash', 'verb' => 'POST'],
['name' => 'poll_api#getParticipantsEmailAddresses', 'url' => '/api/v1.0/poll/{pollId}/addresses', 'verb' => 'GET'],
['name' => 'poll_api#enum', 'url' => '/api/v1.0/enum/poll', 'verb' => 'GET'],

['name' => 'option_api#list', 'url' => '/api/v1.0/poll/{pollId}/options', 'verb' => 'GET'],
['name' => 'option_api#add', 'url' => '/api/v1.0/option', 'verb' => 'POST'],
['name' => 'option_api#update', 'url' => '/api/v1.0/option', 'verb' => 'PUT'],
['name' => 'option_api#add', 'url' => '/api/v1.0/poll/{pollId}/option', 'verb' => 'POST'],
['name' => 'option_api#update', 'url' => '/api/v1.0/option/{optionId}', 'verb' => 'PUT'],
['name' => 'option_api#delete', 'url' => '/api/v1.0/option/{optionId}', 'verb' => 'DELETE'],
['name' => 'option_api#setOrder', 'url' => '/api/v1.0/option/{optionId}/setorder/{order}', 'verb' => 'PUT'],
['name' => 'option_api#confirm', 'url' => '/api/v1.0/option/{optionId}/confirm', 'verb' => 'PUT'],

['name' => 'comment_api#list', 'url' => '/api/v1.0/poll/{pollId}/comments', 'verb' => 'GET'],
['name' => 'comment_api#add', 'url' => '/api/v1.0/comment', 'verb' => 'POST'],
['name' => 'comment_api#delete', 'url' => '/api/v1.0/comment/{commentId}', 'verb' => 'DELETE'],
['name' => 'vote_api#list', 'url' => '/api/v1.0/poll/{pollId}/votes', 'verb' => 'GET'],
['name' => 'vote_api#set', 'url' => '/api/v1.0/vote', 'verb' => 'POST'],

['name' => 'share_api#list', 'url' => '/api/v1.0/poll/{pollId}/shares', 'verb' => 'GET'],
['name' => 'share_api#get', 'url' => '/api/v1.0/share/{token}', 'verb' => 'GET'],
Expand All @@ -105,7 +111,13 @@
['name' => 'subscription_api#subscribe', 'url' => '/api/v1.0/poll/{pollId}/subscription', 'verb' => 'PUT'],
['name' => 'subscription_api#unsubscribe', 'url' => '/api/v1.0/poll/{pollId}/subscription', 'verb' => 'DELETE'],

['name' => 'vote_api#list', 'url' => '/api/v1.0/poll/{pollId}/votes', 'verb' => 'GET'],
['name' => 'vote_api#set', 'url' => '/api/v1.0/vote', 'verb' => 'POST'],
['name' => 'comment_api#list', 'url' => '/api/v1.0/poll/{pollId}/comments', 'verb' => 'GET'],
['name' => 'comment_api#add', 'url' => '/api/v1.0/comment', 'verb' => 'POST'],
['name' => 'comment_api#delete', 'url' => '/api/v1.0/comment/{commentId}', 'verb' => 'DELETE'],

['name' => 'preferences#write', 'url' => '/preferences/write/', 'verb' => 'POST'],
['name' => 'preferences#get', 'url' => '/preferences/get/', 'verb' => 'GET'],
['name' => 'system#get_site_users_and_groups', 'url' => '/siteusers/get/', 'verb' => 'POST'],
['name' => 'system#validate_public_username', 'url' => '/check/username', 'verb' => 'POST']
]
];
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"christophwurst/nextcloud": "^18.0",
"phpunit/phpunit": "^8.2",
"league/factory-muffin": "^3.0",
"league/factory-muffin-faker": "^2.0"
"league/factory-muffin-faker": "^2.0",
"nextcloud/coding-standard": "^0.3.0"
},
"scripts": {
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix"
}
}
Loading