From cd14eb8446022b0b503b9def8184c99726955214 Mon Sep 17 00:00:00 2001 From: Guido de Jong <35309288+guidojw@users.noreply.github.com> Date: Tue, 13 Jun 2023 23:03:59 +0200 Subject: [PATCH] refactor: remove `ember-crumbly` (#651) * refactor: rename breadCrumb to breadcrumb in routes * refactor: merge breadcrumb with route metadata * fix: edit article title * refactor: remove `ember-crumbly` and update BreadCrumbs component * refactor: static-pages routes to new structure static-pages.static-page.show doesn't work yet. * refactor: change static-pages routes to new structure * refactor(package): remove workerpool resolution * fix: optional chain on controller in breadcrumb * refactor: finishing touches on static pages controllers/routes * fix: skip breadcrumb when model not loaded * refactor: restructure activities controllers and routes * refactor: restructure articles controllers and routes * refactor: restructure books controllers and routes * refactor: restructure groups controllers and routes * Update changed controllers * Update changed controllers * refactor: restructure forum controllers and routes * fix: make some routes extend AuthenticatedRoute again * refactor: push changes * refactor: restructure debit collections controllers and routes * refactor: only import has-next in bundle * refactor: change some ENV imports to absolute * refactor: restructure debit mandates controllers and routes * refactor: restructure debit transactions controllers and routes * fix: transaction permission error * feat: implement profile route * refactor: restructure article and photo comments controllers and routes * refactor: restructure photo-albums controllers and routes * refactor: restructure users controllers and routes * refactor: restructure polls controllers and routes * refactor: restructure mail aliases controllers and routes * refactor: restructure mail moderations controllers and routes * refactor: restructure form responses controllers and routes * refactor: restructure vacancies controllers and routes * refactor: fix and implement missing tests * fix: lint * refactor: rename BreadCrumbs to Breadcrumbs * chore: change mailalias to mail alias * chore: reformat classes * add a folder for mail-moderation. Tested the reachability of the pages that belong to these routes, which was initially broken. * refactor: reorder params * refactor: simplify getter * fix: transaction-form title * fix: post-form/collection-form title --------- Co-authored-by: matteo --- app/abilities/article-comment.js | 4 + app/abilities/debit/transaction.js | 4 + app/abilities/photo.js | 2 +- app/adapters/application.js | 2 +- app/authenticators/oauth2.js | 2 +- app/components/bread-crumbs.hbs | 11 - app/components/bread-crumbs.js | 3 - app/components/breadcrumbs.hbs | 15 + app/components/cards/activity-card.hbs | 4 +- app/components/cards/article-card.hbs | 8 +- .../cards/frontpage-article-card.hbs | 6 +- app/components/cards/privacy-preference.hbs | 2 +- .../form/response/response-card.hbs | 2 +- .../response/response-completed-alert.hbs | 2 +- app/components/form/responses-table-row.hbs | 4 +- app/components/forms/photo-album-form.hbs | 6 +- app/components/forms/post-form.hbs | 2 +- app/components/forms/transaction-form.hbs | 2 +- app/components/forum/forum-post.hbs | 8 +- app/components/header-nav.hbs | 22 +- app/components/header-nav.js | 2 +- app/components/index/public/about-alpha.hbs | 2 +- .../index/public/action-buttons.hbs | 2 +- app/components/index/special-promo.hbs | 2 +- app/components/index/sponsorkliks-alert.hbs | 4 +- app/components/menu-sidebar.hbs | 4 +- app/components/model-form/file-input.js | 2 +- app/components/page-actions.hbs | 5 - app/components/photo-albums/photo.hbs | 2 +- app/components/quick-post.hbs | 14 +- app/components/tools/board-room-presence.hbs | 2 +- app/components/tools/closing-activities.hbs | 4 +- app/components/tools/forum-posts.hbs | 4 +- app/components/tools/recent-photos.hbs | 4 +- app/components/tools/recent-polls.hbs | 4 +- app/components/tools/upcoming-activities.hbs | 4 +- app/components/tools/upcoming-birthdays.hbs | 8 +- app/components/user-comment.hbs | 14 +- app/components/users/password-settings.js | 2 +- .../activities/{ => activity}/destroy.js | 4 +- .../activities/{ => activity}/edit.js | 12 +- .../{ => activity}/generate-alias.js | 10 +- .../activities/{show.js => activity/index.js} | 5 +- .../{ => activity}/print-enrolled.js | 5 +- app/controllers/activities/ical.js | 2 +- app/controllers/activities/index.js | 3 +- app/controllers/activities/new.js | 10 +- app/controllers/application.js | 14 +- app/controllers/application/destroy.js | 15 +- app/controllers/application/edit.js | 29 +- .../application/filterable-and-sortable.js | 1 + .../application/group-memberships.js | 49 ++-- app/controllers/application/new.js | 4 +- .../{ => article-comment}/destroy.js | 6 +- .../articles/{ => article}/destroy.js | 4 +- .../articles/{ => article}/edit.js | 8 +- .../articles/{show.js => article/index.js} | 10 +- app/controllers/articles/index.js | 3 +- app/controllers/articles/new.js | 10 +- app/controllers/books/{ => book}/destroy.js | 4 +- app/controllers/books/{ => book}/edit.js | 5 +- app/controllers/books/index.js | 5 +- app/controllers/books/new.js | 10 +- app/controllers/books/show.js | 3 - .../debit/collections/collection/destroy.js | 6 + .../collections/{ => collection}/edit.js | 6 +- .../{show.js => collection/index.js} | 2 +- app/controllers/debit/collections/destroy.js | 6 - app/controllers/debit/collections/index.js | 3 +- app/controllers/debit/collections/new.js | 13 +- app/controllers/debit/mandates/index.js | 3 +- .../debit/mandates/{ => mandate}/edit.js | 7 +- app/controllers/debit/mandates/new.js | 10 +- .../transactions/{ => transaction}/destroy.js | 6 +- .../transactions/{ => transaction}/edit.js | 17 +- app/controllers/error.js | 2 +- app/controllers/form/responses/destroy.js | 27 -- .../form/responses/response/destroy.js | 27 ++ .../forum/categories/category/destroy.js | 4 +- .../forum/categories/category/edit.js | 2 +- .../categories/category/threads/index.js | 3 +- .../forum/categories/category/threads/new.js | 7 +- .../category/threads/thread/destroy.js | 4 +- .../category/threads/thread/edit.js | 4 +- .../thread/posts/{ => post}/destroy.js | 6 +- .../threads/thread/posts/{ => post}/edit.js | 5 +- app/controllers/forum/categories/new.js | 6 +- app/controllers/groups/{ => group}/edit.js | 9 +- app/controllers/groups/{ => group}/export.js | 6 +- .../groups/{show.js => group/index.js} | 5 +- app/controllers/groups/index.js | 4 +- app/controllers/groups/new.js | 10 +- app/controllers/login.js | 6 +- app/controllers/mail-aliases/index.js | 3 +- .../mail-aliases/{ => mail-alias}/destroy.js | 4 +- .../mail-aliases/{ => mail-alias}/edit.js | 4 +- app/controllers/mail-aliases/new.js | 14 +- app/controllers/mail-moderations/index.js | 2 +- .../{ => mail-moderation}/accept.js | 10 +- .../{ => mail-moderation}/destroy.js | 4 +- .../{ => mail-moderation}/reject.js | 10 +- app/controllers/oauth/authorize.js | 6 +- app/controllers/photo-albums/index.js | 1 + app/controllers/photo-albums/new.js | 8 +- .../photo-albums/photo-album/destroy.js | 4 +- .../photo-albums/photo-album/edit.js | 16 +- .../photo-album/photos/destroy.js | 6 - .../photo-albums/photo-album/photos/index.js | 4 +- .../photo-album/photos/photo/destroy.js | 6 + .../photos/{show.js => photo/index.js} | 6 +- app/controllers/photo-comments/index.js | 5 +- .../{ => photo-comment}/destroy.js | 12 +- app/controllers/polls/index.js | 3 +- app/controllers/polls/new.js | 10 +- app/controllers/polls/{ => poll}/destroy.js | 4 +- app/controllers/polls/{ => poll}/edit.js | 8 +- .../polls/{show.js => poll/index.js} | 4 +- app/controllers/sog/name-trainer.js | 46 +-- app/controllers/static-pages/index.js | 7 +- app/controllers/static-pages/new.js | 10 +- .../static-pages/{ => static-page}/destroy.js | 4 +- .../static-pages/{ => static-page}/edit.js | 4 +- app/controllers/users/batch/new.js | 25 +- app/controllers/users/edit-permissions.js | 6 - app/controllers/users/edit-privacy.js | 3 - app/controllers/users/forgot-password.js | 15 +- app/controllers/users/index.js | 3 +- app/controllers/users/members.js | 3 +- app/controllers/users/new.js | 10 +- .../users/{ => user}/activate-account.js | 18 +- .../users/{edit.js => user/edit/index.js} | 8 +- .../users/user/edit/permissions.js | 6 + app/controllers/users/user/edit/privacy.js | 3 + .../users/{show-groups.js => user/groups.js} | 3 +- .../resend-activation-code.js} | 14 +- app/controllers/users/webdav.js | 9 +- app/controllers/vacancies/index.js | 7 +- app/controllers/vacancies/new.js | 10 +- app/controllers/vacancies/show.js | 3 - .../vacancies/{ => vacancy}/destroy.js | 4 +- .../vacancies/{ => vacancy}/edit.js | 10 +- app/initializers/service-worker.js | 2 +- app/router.js | 266 ++++++++++-------- app/routes/activities.js | 7 + app/routes/activities/activity.js | 17 ++ app/routes/activities/activity/destroy.js | 9 + app/routes/activities/{ => activity}/edit.js | 8 +- .../activities/activity/generate-alias.js | 15 + .../activities/{show.js => activity/index.js} | 30 +- .../activities/activity/print-enrolled.js | 9 + app/routes/activities/destroy.js | 13 - app/routes/activities/generate-alias.js | 15 - app/routes/activities/ical.js | 4 +- app/routes/activities/index.js | 6 +- app/routes/activities/new.js | 2 +- app/routes/activities/print-enrolled.js | 13 - app/routes/application.js | 2 +- app/routes/application/application.js | 6 + app/routes/article-comments.js | 7 + .../article-comments/article-comment.js | 13 + .../article-comment/destroy.js | 15 + app/routes/article-comments/destroy.js | 19 -- app/routes/articles.js | 15 + app/routes/articles/article.js | 13 + app/routes/articles/article/destroy.js | 9 + app/routes/articles/{ => article}/edit.js | 8 +- .../articles/{show.js => article/index.js} | 18 +- app/routes/articles/destroy.js | 13 - app/routes/articles/index.js | 14 - app/routes/articles/new.js | 4 +- app/routes/books.js | 7 + app/routes/books/book.js | 17 ++ app/routes/books/book/destroy.js | 9 + app/routes/books/{ => book}/edit.js | 8 +- app/routes/books/{show.js => book/index.js} | 14 +- app/routes/books/destroy.js | 13 - app/routes/books/index.js | 4 +- app/routes/books/new.js | 4 +- app/routes/debit.js | 5 - app/routes/debit/collections.js | 7 + app/routes/debit/collections/collection.js | 17 ++ .../debit/collections/collection/destroy.js | 9 + .../collections/{ => collection}/edit.js | 8 +- .../{show.js => collection/index.js} | 19 +- .../collections/{ => collection}/sepa.js | 16 +- app/routes/debit/collections/destroy.js | 13 - app/routes/debit/collections/index.js | 2 - app/routes/debit/collections/new.js | 4 +- app/routes/debit/mandates.js | 7 + app/routes/debit/mandates/index.js | 4 +- app/routes/debit/mandates/mandate.js | 17 ++ .../debit/mandates/{ => mandate}/edit.js | 8 +- .../mandates/{show.js => mandate/index.js} | 12 +- app/routes/debit/mandates/new.js | 4 +- app/routes/debit/transactions.js | 7 + .../{destroy.js => transaction.js} | 6 +- .../debit/transactions/transaction/destroy.js | 9 + .../transactions/{ => transaction}/edit.js | 8 +- app/routes/form.js | 5 - app/routes/form/responses.js | 5 - app/routes/form/responses/destroy.js | 13 - app/routes/form/responses/response.js | 13 + app/routes/form/responses/response/destroy.js | 9 + app/routes/forum.js | 7 + app/routes/forum/categories.js | 5 - app/routes/forum/categories/category.js | 4 +- .../forum/categories/category/destroy.js | 8 +- app/routes/forum/categories/category/edit.js | 8 +- app/routes/forum/categories/category/index.js | 7 + app/routes/forum/categories/category/show.js | 7 - .../forum/categories/category/threads.js | 5 - .../categories/category/threads/index.js | 4 +- .../forum/categories/category/threads/new.js | 4 +- .../categories/category/threads/thread.js | 4 +- .../category/threads/thread/destroy.js | 8 +- .../category/threads/thread/edit.js | 11 +- .../category/threads/thread/index.js | 7 + .../category/threads/thread/posts.js | 5 - .../category/threads/thread/posts/index.js | 66 ++--- .../thread/posts/{destroy.js => post.js} | 6 +- .../threads/thread/posts/post/destroy.js | 9 + .../threads/thread/posts/{ => post}/edit.js | 8 +- .../category/threads/thread/show.js | 7 - app/routes/forum/categories/index.js | 4 +- app/routes/forum/categories/new.js | 2 +- app/routes/forum/index.js | 8 +- app/routes/groups.js | 7 + app/routes/groups/group.js | 17 ++ app/routes/groups/{ => group}/edit.js | 8 +- app/routes/groups/{ => group}/export.js | 8 +- app/routes/groups/{show.js => group/index.js} | 16 +- app/routes/groups/index.js | 4 +- app/routes/groups/new.js | 4 +- app/routes/index.js | 4 - app/routes/mail-aliases.js | 7 + app/routes/mail-aliases/destroy.js | 13 - app/routes/mail-aliases/index.js | 10 +- app/routes/mail-aliases/mail-alias.js | 17 ++ app/routes/mail-aliases/mail-alias/destroy.js | 9 + .../mail-aliases/{ => mail-alias}/edit.js | 8 +- .../{show.js => mail-alias/index.js} | 14 +- app/routes/mail-aliases/new.js | 4 +- app/routes/mail-moderations.js | 7 + app/routes/mail-moderations/accept.js | 13 - app/routes/mail-moderations/destroy.js | 13 - app/routes/mail-moderations/index.js | 6 +- .../mail-moderations/mail-moderation.js | 17 ++ .../mail-moderation/accept.js | 9 + .../mail-moderation/destroy.js | 9 + .../{show.js => mail-moderation/index.js} | 16 +- .../mail-moderation/reject.js | 9 + app/routes/mail-moderations/reject.js | 13 - app/routes/oauth/authorize.js | 8 +- app/routes/photo-albums.js | 16 +- app/routes/photo-albums/index.js | 22 +- app/routes/photo-albums/new.js | 4 +- app/routes/photo-albums/photo-album.js | 17 +- .../photo-albums/photo-album/destroy.js | 8 +- app/routes/photo-albums/photo-album/edit.js | 8 +- .../photo-album/{show.js => index.js} | 6 +- app/routes/photo-albums/photo-album/photos.js | 5 - .../photo-album/photos/destroy.js | 13 - .../photo-albums/photo-album/photos/index.js | 12 - .../photo-albums/photo-album/photos/photo.js | 9 + .../photo-album/photos/photo/destroy.js | 9 + .../photos/{show.js => photo/index.js} | 46 ++- app/routes/photo-comments.js | 7 + app/routes/photo-comments/index.js | 2 - .../{destroy.js => photo-comment.js} | 6 +- .../photo-comments/photo-comment/destroy.js | 9 + app/routes/polls.js | 7 + app/routes/polls/destroy.js | 13 - app/routes/polls/index.js | 6 +- app/routes/polls/new.js | 4 +- app/routes/polls/poll.js | 17 ++ app/routes/polls/poll/destroy.js | 9 + app/routes/polls/{ => poll}/edit.js | 8 +- app/routes/polls/{show.js => poll/index.js} | 22 +- app/routes/profile.js | 14 + app/routes/quickpost.js | 2 +- app/routes/sog/index.js | 2 +- app/routes/sog/name-trainer.js | 2 +- app/routes/static-pages.js | 15 + app/routes/static-pages/destroy.js | 13 - app/routes/static-pages/index.js | 14 - app/routes/static-pages/new.js | 4 +- app/routes/static-pages/static-page.js | 13 + .../static-pages/static-page/destroy.js | 9 + .../static-pages/{ => static-page}/edit.js | 8 +- .../{show.js => static-page/index.js} | 18 +- app/routes/users.js | 7 + app/routes/users/activate-account.js | 3 - app/routes/users/batch.js | 5 - app/routes/users/batch/new.js | 4 +- app/routes/users/destroy.js | 13 - app/routes/users/edit-permissions.js | 7 - app/routes/users/edit-privacy.js | 3 - app/routes/users/edit-security.js | 3 - app/routes/users/forgot-password.js | 3 - app/routes/users/index.js | 4 +- app/routes/users/members.js | 4 +- app/routes/users/new.js | 4 +- app/routes/users/resend-activation.js | 13 - app/routes/users/show-groups.js | 5 - app/routes/users/show-mail.js | 9 - app/routes/users/show-mandates.js | 5 - app/routes/users/user.js | 17 ++ app/routes/users/user/destroy.js | 9 + app/routes/users/user/edit.js | 7 + .../users/{edit.js => user/edit/index.js} | 16 +- app/routes/users/user/edit/permissions.js | 7 + app/routes/users/user/edit/privacy.js | 3 + app/routes/users/user/edit/security.js | 3 + app/routes/users/user/groups.js | 5 + app/routes/users/{show.js => user/index.js} | 26 +- app/routes/users/user/mail.js | 9 + app/routes/users/user/mandates.js | 5 + .../permissions.js} | 6 +- .../users/user/resend-activation-code.js | 9 + .../{show-settings.js => user/settings.js} | 6 +- app/routes/users/webdav.js | 4 +- app/routes/vacancies.js | 7 + app/routes/vacancies/destroy.js | 13 - app/routes/vacancies/index.js | 4 +- app/routes/vacancies/new.js | 4 +- app/routes/vacancies/vacancy.js | 17 ++ app/routes/vacancies/vacancy/destroy.js | 9 + app/routes/vacancies/{ => vacancy}/edit.js | 8 +- .../vacancies/{show.js => vacancy/index.js} | 17 +- app/services/fetch.js | 2 +- app/services/flash-notice.js | 2 +- .../activities/{ => activity}/destroy.hbs | 6 +- .../activities/{ => activity}/edit.hbs | 0 .../{ => activity}/generate-alias.hbs | 0 .../{show.hbs => activity/index.hbs} | 0 .../{ => activity}/print-enrolled.hbs | 2 +- app/templates/activities/index.hbs | 2 +- app/templates/application.hbs | 2 +- .../{ => article-comment}/destroy.hbs | 0 .../articles/{ => article}/destroy.hbs | 0 app/templates/articles/{ => article}/edit.hbs | 0 .../articles/{show.hbs => article/index.hbs} | 0 app/templates/articles/index.hbs | 2 +- app/templates/books/{ => book}/destroy.hbs | 0 app/templates/books/{ => book}/edit.hbs | 0 .../books/{show.hbs => book/index.hbs} | 0 app/templates/books/index.hbs | 2 +- .../collections/{ => collection}/destroy.hbs | 2 +- .../collections/{ => collection}/edit.hbs | 2 +- .../{show.hbs => collection/index.hbs} | 6 +- .../collections/{ => collection}/sepa.hbs | 4 +- app/templates/debit/collections/index.hbs | 8 +- app/templates/debit/mandates/index.hbs | 4 +- .../debit/mandates/{ => mandate}/edit.hbs | 0 .../mandates/{show.hbs => mandate/index.hbs} | 2 +- .../{ => transaction}/destroy.hbs | 2 +- .../transactions/{ => transaction}/edit.hbs | 0 .../form/responses/{ => response}/destroy.hbs | 0 .../categories/category/threads/index.hbs | 4 +- .../thread/posts/{ => post}/destroy.hbs | 0 .../threads/thread/posts/{ => post}/edit.hbs | 0 app/templates/forum/categories/index.hbs | 4 +- app/templates/groups/{ => group}/edit.hbs | 0 app/templates/groups/{ => group}/export.hbs | 2 +- .../groups/{show.hbs => group/index.hbs} | 12 +- app/templates/groups/index.hbs | 2 +- app/templates/login.hbs | 2 +- app/templates/mail-aliases/index.hbs | 6 +- .../mail-aliases/{ => mail-alias}/destroy.hbs | 0 .../mail-aliases/{ => mail-alias}/edit.hbs | 0 .../{show.hbs => mail-alias/index.hbs} | 6 +- app/templates/mail-moderations/index.hbs | 25 +- .../{ => mail-moderation}/accept.hbs | 2 +- .../{ => mail-moderation}/destroy.hbs | 6 +- .../{show.hbs => mail-moderation/index.hbs} | 0 .../{ => mail-moderation}/reject.hbs | 2 +- app/templates/photo-albums/index.hbs | 2 +- .../photo-albums/photo-album/destroy.hbs | 8 +- .../photo-albums/photo-album/photos/index.hbs | 5 +- .../photos/{ => photo}/destroy.hbs | 2 +- .../photos/{show.hbs => photo/index.hbs} | 0 app/templates/photo-comments/index.hbs | 2 +- .../{ => photo-comment}/destroy.hbs | 0 app/templates/polls/index.hbs | 2 +- app/templates/polls/{ => poll}/destroy.hbs | 6 +- app/templates/polls/{ => poll}/edit.hbs | 0 .../polls/{show.hbs => poll/index.hbs} | 4 +- app/templates/static-pages/index.hbs | 2 +- .../{ => static-page}/destroy.hbs | 0 .../static-pages/{ => static-page}/edit.hbs | 0 .../{show.hbs => static-page/index.hbs} | 0 app/templates/users/index.hbs | 2 +- app/templates/users/members.hbs | 2 +- .../users/{ => user}/activate-account.hbs | 0 app/templates/users/{ => user}/destroy.hbs | 0 .../users/{edit.hbs => user/edit/index.hbs} | 0 .../edit/permissions.hbs} | 0 .../edit/privacy.hbs} | 0 .../edit/security.hbs} | 0 .../{show-groups.hbs => user/groups.hbs} | 2 +- .../users/{show.hbs => user/index.hbs} | 0 .../users/{show-mail.hbs => user/mail.hbs} | 6 +- .../{show-mandates.hbs => user/mandates.hbs} | 2 +- .../permissions.hbs} | 0 .../users/{ => user}/resend-activation.hbs | 4 +- .../{show-settings.hbs => user/settings.hbs} | 0 app/templates/vacancies/index.hbs | 20 +- .../vacancies/{ => vacancy}/destroy.hbs | 0 .../vacancies/{ => vacancy}/edit.hbs | 0 .../vacancies/{show.hbs => vacancy/index.hbs} | 67 +++-- ember-cli-build.js | 32 ++- package.json | 5 +- .../groups/{ => group}/edit-test.js | 4 +- .../show-test.js => activities-test.js} | 4 +- tests/unit/routes/activities/activity-test.js | 11 + .../activities/activity/destroy-test.js | 11 + .../routes/activities/activity/edit-test.js | 11 + .../activity/generate-alias-test.js | 11 + .../index-test.js} | 4 +- .../activity/print-enrolled-test.js | 11 + tests/unit/routes/activities/ical-test.js | 11 + tests/unit/routes/activities/index-test.js | 11 + .../new-test.js} | 4 +- tests/unit/routes/article-comments-test.js | 11 + .../article-comments/article-comment-test.js | 11 + .../article-comment/destroy-test.js | 16 ++ .../article-comments/article-comment/index.js | 16 ++ tests/unit/routes/article-comments/index.js | 11 + .../{polls/show-test.js => articles-test.js} | 4 +- tests/unit/routes/articles/article-test.js | 11 + .../unit/routes/articles/article/edit-test.js | 11 + .../routes/articles/article/index-test.js | 11 + .../{books/edit-test.js => books-tests.js} | 4 +- .../edit-test.js => books/book-test.js} | 4 +- .../{polls => books/book}/destroy-test.js | 4 +- tests/unit/routes/books/book/edit-test.js | 11 + tests/unit/routes/books/book/index-test.js | 11 + tests/unit/routes/debit/collections-test.js | 11 + .../debit/collections/collection-test.js | 11 + .../collections/collection/destroy-test.js | 13 + .../debit/collections/collection/edit-test.js | 11 + .../collections/collection/index-test.js | 11 + .../debit/collections/collection/sepa-test.js | 11 + .../routes/debit/collections/index-test.js | 11 + .../unit/routes/debit/collections/new-test.js | 11 + .../edit-test.js => debit/mandates-test.js} | 4 +- .../unit/routes/debit/mandates/index-test.js | 11 + .../routes/debit/mandates/mandate-test.js | 11 + .../debit/mandates/mandate/edit-test.js | 11 + .../debit/mandates/mandate/index-test.js | 11 + tests/unit/routes/debit/mandates/new-test.js | 11 + tests/unit/routes/debit/transactions-test.js | 11 + .../debit/transactions/transaction-test.js | 11 + .../transactions/transaction/destroy-test.js | 16 ++ .../transactions/transaction/edit-test.js | 13 + .../routes/form/responses/response-test.js | 11 + .../form/responses/response/destroy-test.js | 11 + tests/unit/routes/forum-test.js | 11 + .../routes/forum/categories/category-test.js | 11 + .../forum/categories/category/destroy-test.js | 11 + .../forum/categories/category/edit-test.js | 11 + .../forum/categories/category/index-test.js | 11 + .../categories/category/threads/index-test.js | 16 ++ .../categories/category/threads/new-test.js | 16 ++ .../category/threads/thread-test.js | 16 ++ .../category/threads/thread/destroy-test.js | 16 ++ .../category/threads/thread/edit-test.js | 16 ++ .../category/threads/thread/index-test.js | 16 ++ .../threads/thread/posts/index-test.js | 16 ++ .../threads/thread/posts/post-test.js | 16 ++ .../threads/thread/posts/post/destroy-test.js | 16 ++ .../threads/thread/posts/post/edit-test.js | 16 ++ .../routes/forum/categories/index-test.js | 11 + .../unit/routes/forum/categories/new-test.js | 11 + .../edit-test.js => forum/index-test.js} | 4 +- tests/unit/routes/groups-test.js | 11 + tests/unit/routes/groups/group-test.js | 11 + tests/unit/routes/groups/group/edit-test.js | 11 + tests/unit/routes/groups/group/export-test.js | 11 + tests/unit/routes/groups/group/index-test.js | 11 + tests/unit/routes/groups/index-test.js | 11 + tests/unit/routes/login-test.js | 11 + tests/unit/routes/mail-aliases-test.js | 11 + tests/unit/routes/mail-aliases/index-test.js | 11 + .../routes/mail-aliases/mail-alias-test.js | 11 + .../mail-aliases/mail-alias/destroy-test.js | 11 + .../mail-aliases/mail-alias/edit-test.js | 11 + .../mail-aliases/mail-alias/index-test.js | 11 + tests/unit/routes/mail-aliases/new-test.js | 11 + tests/unit/routes/mail-moderations-test.js | 11 + .../routes/mail-moderations/index-test.js | 11 + .../mail-moderations/mail-moderation-test.js | 11 + .../mail-moderation/accept-test.js | 16 ++ .../mail-moderation/destroy-test.js | 16 ++ .../mail-moderation/index-test.js | 16 ++ .../mail-moderation/reject-test.js | 16 ++ tests/unit/routes/oauth/authorize-test.js | 11 + tests/unit/routes/photo-albums-test.js | 11 + tests/unit/routes/photo-albums/index-test.js | 11 + tests/unit/routes/photo-albums/new-test.js | 11 + .../routes/photo-albums/photo-album-test.js | 11 + .../photo-albums/photo-album/destroy-test.js | 11 + .../photo-albums/photo-album/edit-test.js | 11 + .../photo-albums/photo-album/index-test.js | 11 + .../photo-album/photos/index-test.js | 16 ++ .../photo-album/photos/photo-test.js | 16 ++ .../photo-album/photos/photo/destroy-test.js | 16 ++ .../photo-album/photos/photo/index-test.js | 16 ++ tests/unit/routes/photo-comments-test.js | 11 + .../unit/routes/photo-comments/index-test.js | 11 + .../photo-comments/photo-comment-test.js | 11 + .../photo-comment/destroy-test.js | 13 + tests/unit/routes/polls/poll-test.js | 11 + .../{vacancies => polls/poll}/destroy-test.js | 4 +- tests/unit/routes/polls/poll/edit-test.js | 11 + tests/unit/routes/polls/poll/index.js | 11 + tests/unit/routes/profile-test.js | 11 + tests/unit/routes/quickpost-test.js | 11 + tests/unit/routes/sponsorkliks-test.js | 11 + tests/unit/routes/static-pages-test.js | 11 + tests/unit/routes/static-pages/index-test.js | 11 + tests/unit/routes/static-pages/new-test.js | 11 + .../routes/static-pages/static-page-test.js | 11 + .../static-pages/static-page/destroy-test.js | 11 + .../static-pages/static-page/edit-test.js | 11 + .../static-pages/static-page/index-test.js | 11 + tests/unit/routes/users-test.js | 11 + tests/unit/routes/users/batch/new-test.js | 11 + tests/unit/routes/users/edit-test.js | 11 - .../show-test.js => users/members-test.js} | 4 +- tests/unit/routes/users/user-test.js | 11 + tests/unit/routes/users/user/destroy-test.js | 11 + tests/unit/routes/users/user/edit-test.js | 11 + .../unit/routes/users/user/edit/index-test.js | 11 + .../users/user/edit/permissions-test.js | 11 + .../routes/users/user/edit/privacy-test.js | 11 + .../routes/users/user/edit/security-test.js | 11 + tests/unit/routes/users/user/groups-test.js | 11 + tests/unit/routes/users/user/index-test.js | 11 + tests/unit/routes/users/user/mail-test.js | 11 + tests/unit/routes/users/user/mandates-test.js | 11 + .../routes/users/user/permissions-test.js | 11 + .../users/user/resend-activation-code-test.js | 11 + tests/unit/routes/users/user/settings-test.js | 11 + tests/unit/routes/users/webdav-test.js | 11 + tests/unit/routes/vacancies.js | 11 + tests/unit/routes/vacancies/edit-test.js | 11 - tests/unit/routes/vacancies/show-test.js | 11 - tests/unit/routes/vacancies/vacancy-test.js | 11 + .../routes/vacancies/vacancy/destroy-test.js | 11 + .../routes/vacancies/vacancy/edit-test.js | 11 + .../routes/vacancies/vacancy/index-test.js | 11 + translations/en.yaml | 12 +- translations/nl.yaml | 20 +- yarn.lock | 121 ++++---- 555 files changed, 3344 insertions(+), 1753 deletions(-) delete mode 100644 app/components/bread-crumbs.hbs delete mode 100644 app/components/bread-crumbs.js create mode 100644 app/components/breadcrumbs.hbs rename app/controllers/activities/{ => activity}/destroy.js (61%) rename app/controllers/activities/{ => activity}/edit.js (81%) rename app/controllers/activities/{ => activity}/generate-alias.js (84%) rename app/controllers/activities/{show.js => activity/index.js} (81%) rename app/controllers/activities/{ => activity}/print-enrolled.js (95%) rename app/controllers/article-comments/{ => article-comment}/destroy.js (78%) rename app/controllers/articles/{ => article}/destroy.js (62%) rename app/controllers/articles/{ => article}/edit.js (89%) rename app/controllers/articles/{show.js => article/index.js} (92%) rename app/controllers/books/{ => book}/destroy.js (63%) rename app/controllers/books/{ => book}/edit.js (93%) delete mode 100644 app/controllers/books/show.js create mode 100644 app/controllers/debit/collections/collection/destroy.js rename app/controllers/debit/collections/{ => collection}/edit.js (87%) rename app/controllers/debit/collections/{show.js => collection/index.js} (92%) delete mode 100644 app/controllers/debit/collections/destroy.js rename app/controllers/debit/mandates/{ => mandate}/edit.js (52%) rename app/controllers/debit/transactions/{ => transaction}/destroy.js (70%) rename app/controllers/debit/transactions/{ => transaction}/edit.js (84%) delete mode 100644 app/controllers/form/responses/destroy.js create mode 100644 app/controllers/form/responses/response/destroy.js rename app/controllers/forum/categories/category/threads/thread/posts/{ => post}/destroy.js (86%) rename app/controllers/forum/categories/category/threads/thread/posts/{ => post}/edit.js (89%) rename app/controllers/groups/{ => group}/edit.js (93%) rename app/controllers/groups/{ => group}/export.js (96%) rename app/controllers/groups/{show.js => group/index.js} (89%) rename app/controllers/mail-aliases/{ => mail-alias}/destroy.js (60%) rename app/controllers/mail-aliases/{ => mail-alias}/edit.js (85%) rename app/controllers/mail-moderations/{ => mail-moderation}/accept.js (83%) rename app/controllers/mail-moderations/{ => mail-moderation}/destroy.js (68%) rename app/controllers/mail-moderations/{ => mail-moderation}/reject.js (85%) delete mode 100644 app/controllers/photo-albums/photo-album/photos/destroy.js create mode 100644 app/controllers/photo-albums/photo-album/photos/photo/destroy.js rename app/controllers/photo-albums/photo-album/photos/{show.js => photo/index.js} (86%) rename app/controllers/photo-comments/{ => photo-comment}/destroy.js (64%) rename app/controllers/polls/{ => poll}/destroy.js (73%) rename app/controllers/polls/{ => poll}/edit.js (61%) rename app/controllers/polls/{show.js => poll/index.js} (97%) rename app/controllers/static-pages/{ => static-page}/destroy.js (60%) rename app/controllers/static-pages/{ => static-page}/edit.js (81%) delete mode 100644 app/controllers/users/edit-permissions.js delete mode 100644 app/controllers/users/edit-privacy.js rename app/controllers/users/{ => user}/activate-account.js (94%) rename app/controllers/users/{edit.js => user/edit/index.js} (90%) create mode 100644 app/controllers/users/user/edit/permissions.js create mode 100644 app/controllers/users/user/edit/privacy.js rename app/controllers/users/{show-groups.js => user/groups.js} (97%) rename app/controllers/users/{resend-activation.js => user/resend-activation-code.js} (75%) delete mode 100644 app/controllers/vacancies/show.js rename app/controllers/vacancies/{ => vacancy}/destroy.js (62%) rename app/controllers/vacancies/{ => vacancy}/edit.js (83%) create mode 100644 app/routes/activities.js create mode 100644 app/routes/activities/activity.js create mode 100644 app/routes/activities/activity/destroy.js rename app/routes/activities/{ => activity}/edit.js (58%) create mode 100644 app/routes/activities/activity/generate-alias.js rename app/routes/activities/{show.js => activity/index.js} (79%) create mode 100644 app/routes/activities/activity/print-enrolled.js delete mode 100644 app/routes/activities/destroy.js delete mode 100644 app/routes/activities/generate-alias.js delete mode 100644 app/routes/activities/print-enrolled.js create mode 100644 app/routes/article-comments.js create mode 100644 app/routes/article-comments/article-comment.js create mode 100644 app/routes/article-comments/article-comment/destroy.js delete mode 100644 app/routes/article-comments/destroy.js create mode 100644 app/routes/articles.js create mode 100644 app/routes/articles/article.js create mode 100644 app/routes/articles/article/destroy.js rename app/routes/articles/{ => article}/edit.js (56%) rename app/routes/articles/{show.js => article/index.js} (58%) delete mode 100644 app/routes/articles/destroy.js create mode 100644 app/routes/books.js create mode 100644 app/routes/books/book.js create mode 100644 app/routes/books/book/destroy.js rename app/routes/books/{ => book}/edit.js (56%) rename app/routes/books/{show.js => book/index.js} (73%) delete mode 100644 app/routes/books/destroy.js delete mode 100644 app/routes/debit.js create mode 100644 app/routes/debit/collections.js create mode 100644 app/routes/debit/collections/collection.js create mode 100644 app/routes/debit/collections/collection/destroy.js rename app/routes/debit/collections/{ => collection}/edit.js (55%) rename app/routes/debit/collections/{show.js => collection/index.js} (70%) rename app/routes/debit/collections/{ => collection}/sepa.js (66%) delete mode 100644 app/routes/debit/collections/destroy.js create mode 100644 app/routes/debit/mandates.js create mode 100644 app/routes/debit/mandates/mandate.js rename app/routes/debit/mandates/{ => mandate}/edit.js (55%) rename app/routes/debit/mandates/{show.js => mandate/index.js} (57%) create mode 100644 app/routes/debit/transactions.js rename app/routes/debit/transactions/{destroy.js => transaction.js} (51%) create mode 100644 app/routes/debit/transactions/transaction/destroy.js rename app/routes/debit/transactions/{ => transaction}/edit.js (55%) delete mode 100644 app/routes/form.js delete mode 100644 app/routes/form/responses.js delete mode 100644 app/routes/form/responses/destroy.js create mode 100644 app/routes/form/responses/response.js create mode 100644 app/routes/form/responses/response/destroy.js create mode 100644 app/routes/forum.js delete mode 100644 app/routes/forum/categories.js create mode 100644 app/routes/forum/categories/category/index.js delete mode 100644 app/routes/forum/categories/category/show.js delete mode 100644 app/routes/forum/categories/category/threads.js create mode 100644 app/routes/forum/categories/category/threads/thread/index.js delete mode 100644 app/routes/forum/categories/category/threads/thread/posts.js rename app/routes/forum/categories/category/threads/thread/posts/{destroy.js => post.js} (52%) create mode 100644 app/routes/forum/categories/category/threads/thread/posts/post/destroy.js rename app/routes/forum/categories/category/threads/thread/posts/{ => post}/edit.js (55%) delete mode 100644 app/routes/forum/categories/category/threads/thread/show.js create mode 100644 app/routes/groups.js create mode 100644 app/routes/groups/group.js rename app/routes/groups/{ => group}/edit.js (58%) rename app/routes/groups/{ => group}/export.js (57%) rename app/routes/groups/{show.js => group/index.js} (74%) create mode 100644 app/routes/mail-aliases.js delete mode 100644 app/routes/mail-aliases/destroy.js create mode 100644 app/routes/mail-aliases/mail-alias.js create mode 100644 app/routes/mail-aliases/mail-alias/destroy.js rename app/routes/mail-aliases/{ => mail-alias}/edit.js (56%) rename app/routes/mail-aliases/{show.js => mail-alias/index.js} (64%) create mode 100644 app/routes/mail-moderations.js delete mode 100644 app/routes/mail-moderations/accept.js delete mode 100644 app/routes/mail-moderations/destroy.js create mode 100644 app/routes/mail-moderations/mail-moderation.js create mode 100644 app/routes/mail-moderations/mail-moderation/accept.js create mode 100644 app/routes/mail-moderations/mail-moderation/destroy.js rename app/routes/mail-moderations/{show.js => mail-moderation/index.js} (67%) create mode 100644 app/routes/mail-moderations/mail-moderation/reject.js delete mode 100644 app/routes/mail-moderations/reject.js rename app/routes/photo-albums/photo-album/{show.js => index.js} (53%) delete mode 100644 app/routes/photo-albums/photo-album/photos.js delete mode 100644 app/routes/photo-albums/photo-album/photos/destroy.js create mode 100644 app/routes/photo-albums/photo-album/photos/photo.js create mode 100644 app/routes/photo-albums/photo-album/photos/photo/destroy.js rename app/routes/photo-albums/photo-album/photos/{show.js => photo/index.js} (80%) create mode 100644 app/routes/photo-comments.js rename app/routes/photo-comments/{destroy.js => photo-comment.js} (52%) create mode 100644 app/routes/photo-comments/photo-comment/destroy.js create mode 100644 app/routes/polls.js delete mode 100644 app/routes/polls/destroy.js create mode 100644 app/routes/polls/poll.js create mode 100644 app/routes/polls/poll/destroy.js rename app/routes/polls/{ => poll}/edit.js (56%) rename app/routes/polls/{show.js => poll/index.js} (77%) create mode 100644 app/routes/profile.js create mode 100644 app/routes/static-pages.js delete mode 100644 app/routes/static-pages/destroy.js create mode 100644 app/routes/static-pages/static-page.js create mode 100644 app/routes/static-pages/static-page/destroy.js rename app/routes/static-pages/{ => static-page}/edit.js (54%) rename app/routes/static-pages/{show.js => static-page/index.js} (55%) create mode 100644 app/routes/users.js delete mode 100644 app/routes/users/activate-account.js delete mode 100644 app/routes/users/batch.js delete mode 100644 app/routes/users/destroy.js delete mode 100644 app/routes/users/edit-permissions.js delete mode 100644 app/routes/users/edit-privacy.js delete mode 100644 app/routes/users/edit-security.js delete mode 100644 app/routes/users/forgot-password.js delete mode 100644 app/routes/users/resend-activation.js delete mode 100644 app/routes/users/show-groups.js delete mode 100644 app/routes/users/show-mail.js delete mode 100644 app/routes/users/show-mandates.js create mode 100644 app/routes/users/user.js create mode 100644 app/routes/users/user/destroy.js create mode 100644 app/routes/users/user/edit.js rename app/routes/users/{edit.js => user/edit/index.js} (70%) create mode 100644 app/routes/users/user/edit/permissions.js create mode 100644 app/routes/users/user/edit/privacy.js create mode 100644 app/routes/users/user/edit/security.js create mode 100644 app/routes/users/user/groups.js rename app/routes/users/{show.js => user/index.js} (74%) create mode 100644 app/routes/users/user/mail.js create mode 100644 app/routes/users/user/mandates.js rename app/routes/users/{show-permissions.js => user/permissions.js} (66%) create mode 100644 app/routes/users/user/resend-activation-code.js rename app/routes/users/{show-settings.js => user/settings.js} (67%) create mode 100644 app/routes/vacancies.js delete mode 100644 app/routes/vacancies/destroy.js create mode 100644 app/routes/vacancies/vacancy.js create mode 100644 app/routes/vacancies/vacancy/destroy.js rename app/routes/vacancies/{ => vacancy}/edit.js (56%) rename app/routes/vacancies/{show.js => vacancy/index.js} (60%) rename app/templates/activities/{ => activity}/destroy.hbs (83%) rename app/templates/activities/{ => activity}/edit.hbs (100%) rename app/templates/activities/{ => activity}/generate-alias.hbs (100%) rename app/templates/activities/{show.hbs => activity/index.hbs} (100%) rename app/templates/activities/{ => activity}/print-enrolled.hbs (99%) rename app/templates/article-comments/{ => article-comment}/destroy.hbs (100%) rename app/templates/articles/{ => article}/destroy.hbs (100%) rename app/templates/articles/{ => article}/edit.hbs (100%) rename app/templates/articles/{show.hbs => article/index.hbs} (100%) rename app/templates/books/{ => book}/destroy.hbs (100%) rename app/templates/books/{ => book}/edit.hbs (100%) rename app/templates/books/{show.hbs => book/index.hbs} (100%) rename app/templates/debit/collections/{ => collection}/destroy.hbs (92%) rename app/templates/debit/collections/{ => collection}/edit.hbs (97%) rename app/templates/debit/collections/{show.hbs => collection/index.hbs} (91%) rename app/templates/debit/collections/{ => collection}/sepa.hbs (70%) rename app/templates/debit/mandates/{ => mandate}/edit.hbs (100%) rename app/templates/debit/mandates/{show.hbs => mandate/index.hbs} (95%) rename app/templates/debit/transactions/{ => transaction}/destroy.hbs (93%) rename app/templates/debit/transactions/{ => transaction}/edit.hbs (100%) rename app/templates/form/responses/{ => response}/destroy.hbs (100%) rename app/templates/forum/categories/category/threads/thread/posts/{ => post}/destroy.hbs (100%) rename app/templates/forum/categories/category/threads/thread/posts/{ => post}/edit.hbs (100%) rename app/templates/groups/{ => group}/edit.hbs (100%) rename app/templates/groups/{ => group}/export.hbs (97%) rename app/templates/groups/{show.hbs => group/index.hbs} (95%) rename app/templates/mail-aliases/{ => mail-alias}/destroy.hbs (100%) rename app/templates/mail-aliases/{ => mail-alias}/edit.hbs (100%) rename app/templates/mail-aliases/{show.hbs => mail-alias/index.hbs} (92%) rename app/templates/mail-moderations/{ => mail-moderation}/accept.hbs (91%) rename app/templates/mail-moderations/{ => mail-moderation}/destroy.hbs (83%) rename app/templates/mail-moderations/{show.hbs => mail-moderation/index.hbs} (100%) rename app/templates/mail-moderations/{ => mail-moderation}/reject.hbs (90%) rename app/templates/photo-albums/photo-album/photos/{ => photo}/destroy.hbs (92%) rename app/templates/photo-albums/photo-album/photos/{show.hbs => photo/index.hbs} (100%) rename app/templates/photo-comments/{ => photo-comment}/destroy.hbs (100%) rename app/templates/polls/{ => poll}/destroy.hbs (81%) rename app/templates/polls/{ => poll}/edit.hbs (100%) rename app/templates/polls/{show.hbs => poll/index.hbs} (97%) rename app/templates/static-pages/{ => static-page}/destroy.hbs (100%) rename app/templates/static-pages/{ => static-page}/edit.hbs (100%) rename app/templates/static-pages/{show.hbs => static-page/index.hbs} (100%) rename app/templates/users/{ => user}/activate-account.hbs (100%) rename app/templates/users/{ => user}/destroy.hbs (100%) rename app/templates/users/{edit.hbs => user/edit/index.hbs} (100%) rename app/templates/users/{edit-permissions.hbs => user/edit/permissions.hbs} (100%) rename app/templates/users/{edit-privacy.hbs => user/edit/privacy.hbs} (100%) rename app/templates/users/{edit-security.hbs => user/edit/security.hbs} (100%) rename app/templates/users/{show-groups.hbs => user/groups.hbs} (98%) rename app/templates/users/{show.hbs => user/index.hbs} (100%) rename app/templates/users/{show-mail.hbs => user/mail.hbs} (84%) rename app/templates/users/{show-mandates.hbs => user/mandates.hbs} (92%) rename app/templates/users/{show-permissions.hbs => user/permissions.hbs} (100%) rename app/templates/users/{ => user}/resend-activation.hbs (66%) rename app/templates/users/{show-settings.hbs => user/settings.hbs} (100%) rename app/templates/vacancies/{ => vacancy}/destroy.hbs (100%) rename app/templates/vacancies/{ => vacancy}/edit.hbs (100%) rename app/templates/vacancies/{show.hbs => vacancy/index.hbs} (64%) rename tests/unit/controllers/groups/{ => group}/edit-test.js (79%) rename tests/unit/routes/{books/show-test.js => activities-test.js} (60%) create mode 100644 tests/unit/routes/activities/activity-test.js create mode 100644 tests/unit/routes/activities/activity/destroy-test.js create mode 100644 tests/unit/routes/activities/activity/edit-test.js create mode 100644 tests/unit/routes/activities/activity/generate-alias-test.js rename tests/unit/routes/activities/{print-enrolled-test.js => activity/index-test.js} (56%) create mode 100644 tests/unit/routes/activities/activity/print-enrolled-test.js create mode 100644 tests/unit/routes/activities/ical-test.js create mode 100644 tests/unit/routes/activities/index-test.js rename tests/unit/routes/{books/destroy-test.js => activities/new-test.js} (59%) create mode 100644 tests/unit/routes/article-comments-test.js create mode 100644 tests/unit/routes/article-comments/article-comment-test.js create mode 100644 tests/unit/routes/article-comments/article-comment/destroy-test.js create mode 100644 tests/unit/routes/article-comments/article-comment/index.js create mode 100644 tests/unit/routes/article-comments/index.js rename tests/unit/routes/{polls/show-test.js => articles-test.js} (60%) create mode 100644 tests/unit/routes/articles/article-test.js create mode 100644 tests/unit/routes/articles/article/edit-test.js create mode 100644 tests/unit/routes/articles/article/index-test.js rename tests/unit/routes/{books/edit-test.js => books-tests.js} (60%) rename tests/unit/routes/{polls/edit-test.js => books/book-test.js} (60%) rename tests/unit/routes/{polls => books/book}/destroy-test.js (57%) create mode 100644 tests/unit/routes/books/book/edit-test.js create mode 100644 tests/unit/routes/books/book/index-test.js create mode 100644 tests/unit/routes/debit/collections-test.js create mode 100644 tests/unit/routes/debit/collections/collection-test.js create mode 100644 tests/unit/routes/debit/collections/collection/destroy-test.js create mode 100644 tests/unit/routes/debit/collections/collection/edit-test.js create mode 100644 tests/unit/routes/debit/collections/collection/index-test.js create mode 100644 tests/unit/routes/debit/collections/collection/sepa-test.js create mode 100644 tests/unit/routes/debit/collections/index-test.js create mode 100644 tests/unit/routes/debit/collections/new-test.js rename tests/unit/routes/{articles/edit-test.js => debit/mandates-test.js} (59%) create mode 100644 tests/unit/routes/debit/mandates/index-test.js create mode 100644 tests/unit/routes/debit/mandates/mandate-test.js create mode 100644 tests/unit/routes/debit/mandates/mandate/edit-test.js create mode 100644 tests/unit/routes/debit/mandates/mandate/index-test.js create mode 100644 tests/unit/routes/debit/mandates/new-test.js create mode 100644 tests/unit/routes/debit/transactions-test.js create mode 100644 tests/unit/routes/debit/transactions/transaction-test.js create mode 100644 tests/unit/routes/debit/transactions/transaction/destroy-test.js create mode 100644 tests/unit/routes/debit/transactions/transaction/edit-test.js create mode 100644 tests/unit/routes/form/responses/response-test.js create mode 100644 tests/unit/routes/form/responses/response/destroy-test.js create mode 100644 tests/unit/routes/forum-test.js create mode 100644 tests/unit/routes/forum/categories/category-test.js create mode 100644 tests/unit/routes/forum/categories/category/destroy-test.js create mode 100644 tests/unit/routes/forum/categories/category/edit-test.js create mode 100644 tests/unit/routes/forum/categories/category/index-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/index-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/new-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread/destroy-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread/edit-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread/index-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread/posts/index-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread/posts/post-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread/posts/post/destroy-test.js create mode 100644 tests/unit/routes/forum/categories/category/threads/thread/posts/post/edit-test.js create mode 100644 tests/unit/routes/forum/categories/index-test.js create mode 100644 tests/unit/routes/forum/categories/new-test.js rename tests/unit/routes/{groups/edit-test.js => forum/index-test.js} (60%) create mode 100644 tests/unit/routes/groups-test.js create mode 100644 tests/unit/routes/groups/group-test.js create mode 100644 tests/unit/routes/groups/group/edit-test.js create mode 100644 tests/unit/routes/groups/group/export-test.js create mode 100644 tests/unit/routes/groups/group/index-test.js create mode 100644 tests/unit/routes/groups/index-test.js create mode 100644 tests/unit/routes/login-test.js create mode 100644 tests/unit/routes/mail-aliases-test.js create mode 100644 tests/unit/routes/mail-aliases/index-test.js create mode 100644 tests/unit/routes/mail-aliases/mail-alias-test.js create mode 100644 tests/unit/routes/mail-aliases/mail-alias/destroy-test.js create mode 100644 tests/unit/routes/mail-aliases/mail-alias/edit-test.js create mode 100644 tests/unit/routes/mail-aliases/mail-alias/index-test.js create mode 100644 tests/unit/routes/mail-aliases/new-test.js create mode 100644 tests/unit/routes/mail-moderations-test.js create mode 100644 tests/unit/routes/mail-moderations/index-test.js create mode 100644 tests/unit/routes/mail-moderations/mail-moderation-test.js create mode 100644 tests/unit/routes/mail-moderations/mail-moderation/accept-test.js create mode 100644 tests/unit/routes/mail-moderations/mail-moderation/destroy-test.js create mode 100644 tests/unit/routes/mail-moderations/mail-moderation/index-test.js create mode 100644 tests/unit/routes/mail-moderations/mail-moderation/reject-test.js create mode 100644 tests/unit/routes/oauth/authorize-test.js create mode 100644 tests/unit/routes/photo-albums-test.js create mode 100644 tests/unit/routes/photo-albums/index-test.js create mode 100644 tests/unit/routes/photo-albums/new-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album/destroy-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album/edit-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album/index-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album/photos/index-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album/photos/photo-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album/photos/photo/destroy-test.js create mode 100644 tests/unit/routes/photo-albums/photo-album/photos/photo/index-test.js create mode 100644 tests/unit/routes/photo-comments-test.js create mode 100644 tests/unit/routes/photo-comments/index-test.js create mode 100644 tests/unit/routes/photo-comments/photo-comment-test.js create mode 100644 tests/unit/routes/photo-comments/photo-comment/destroy-test.js create mode 100644 tests/unit/routes/polls/poll-test.js rename tests/unit/routes/{vacancies => polls/poll}/destroy-test.js (57%) create mode 100644 tests/unit/routes/polls/poll/edit-test.js create mode 100644 tests/unit/routes/polls/poll/index.js create mode 100644 tests/unit/routes/profile-test.js create mode 100644 tests/unit/routes/quickpost-test.js create mode 100644 tests/unit/routes/sponsorkliks-test.js create mode 100644 tests/unit/routes/static-pages-test.js create mode 100644 tests/unit/routes/static-pages/index-test.js create mode 100644 tests/unit/routes/static-pages/new-test.js create mode 100644 tests/unit/routes/static-pages/static-page-test.js create mode 100644 tests/unit/routes/static-pages/static-page/destroy-test.js create mode 100644 tests/unit/routes/static-pages/static-page/edit-test.js create mode 100644 tests/unit/routes/static-pages/static-page/index-test.js create mode 100644 tests/unit/routes/users-test.js create mode 100644 tests/unit/routes/users/batch/new-test.js delete mode 100644 tests/unit/routes/users/edit-test.js rename tests/unit/routes/{articles/show-test.js => users/members-test.js} (59%) create mode 100644 tests/unit/routes/users/user-test.js create mode 100644 tests/unit/routes/users/user/destroy-test.js create mode 100644 tests/unit/routes/users/user/edit-test.js create mode 100644 tests/unit/routes/users/user/edit/index-test.js create mode 100644 tests/unit/routes/users/user/edit/permissions-test.js create mode 100644 tests/unit/routes/users/user/edit/privacy-test.js create mode 100644 tests/unit/routes/users/user/edit/security-test.js create mode 100644 tests/unit/routes/users/user/groups-test.js create mode 100644 tests/unit/routes/users/user/index-test.js create mode 100644 tests/unit/routes/users/user/mail-test.js create mode 100644 tests/unit/routes/users/user/mandates-test.js create mode 100644 tests/unit/routes/users/user/permissions-test.js create mode 100644 tests/unit/routes/users/user/resend-activation-code-test.js create mode 100644 tests/unit/routes/users/user/settings-test.js create mode 100644 tests/unit/routes/users/webdav-test.js create mode 100644 tests/unit/routes/vacancies.js delete mode 100644 tests/unit/routes/vacancies/edit-test.js delete mode 100644 tests/unit/routes/vacancies/show-test.js create mode 100644 tests/unit/routes/vacancies/vacancy-test.js create mode 100644 tests/unit/routes/vacancies/vacancy/destroy-test.js create mode 100644 tests/unit/routes/vacancies/vacancy/edit-test.js create mode 100644 tests/unit/routes/vacancies/vacancy/index-test.js diff --git a/app/abilities/article-comment.js b/app/abilities/article-comment.js index 3fbd1882f..38a7c4ade 100644 --- a/app/abilities/article-comment.js +++ b/app/abilities/article-comment.js @@ -1,6 +1,10 @@ import { Ability } from 'ember-can'; export default class ArticleComment extends Ability { + get canShow() { + return this.session.hasPermission('article-comment.read'); + } + get canCreate() { return this.session.hasPermission('article-comment.create'); } diff --git a/app/abilities/debit/transaction.js b/app/abilities/debit/transaction.js index 1798fa3e2..35fbfd359 100644 --- a/app/abilities/debit/transaction.js +++ b/app/abilities/debit/transaction.js @@ -1,6 +1,10 @@ import { Ability } from 'ember-can'; export default class Transaction extends Ability { + get canShow() { + return this.session.hasPermission('debit/transaction.read'); + } + get canEdit() { return this.session.hasPermission('debit/transaction.update'); } diff --git a/app/abilities/photo.js b/app/abilities/photo.js index 047f0b269..141478220 100644 --- a/app/abilities/photo.js +++ b/app/abilities/photo.js @@ -8,7 +8,7 @@ export default class Photo extends Ability { get canShowPhotoComments() { return ( this.session.hasPermission('photo-comment.read') || - this.model.photoAlbum.publiclyVisible + this.model.photoAlbum.get('publiclyVisible') ); } } diff --git a/app/adapters/application.js b/app/adapters/application.js index ae37a35a0..d605adac7 100644 --- a/app/adapters/application.js +++ b/app/adapters/application.js @@ -1,7 +1,7 @@ import JSONAPIAdapter from '@ember-data/adapter/json-api'; import { underscore } from '@ember/string'; import { inject as service } from '@ember/service'; -import ENV from '../config/environment'; +import ENV from 'amber-ui/config/environment'; import { pluralize } from 'ember-inflector'; diff --git a/app/authenticators/oauth2.js b/app/authenticators/oauth2.js index b4c4cdca6..949a736fc 100644 --- a/app/authenticators/oauth2.js +++ b/app/authenticators/oauth2.js @@ -1,5 +1,5 @@ import OAuth2PasswordGrant from 'ember-simple-auth/authenticators/oauth2-password-grant'; -import ENV from '../config/environment'; +import ENV from 'amber-ui/config/environment'; export default class OAuth2Authenticator extends OAuth2PasswordGrant { serverTokenEndpoint = `${ENV.api.hostname}/oauth/token`; diff --git a/app/components/bread-crumbs.hbs b/app/components/bread-crumbs.hbs deleted file mode 100644 index 3a22524c6..000000000 --- a/app/components/bread-crumbs.hbs +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/app/components/bread-crumbs.js b/app/components/bread-crumbs.js deleted file mode 100644 index 057907951..000000000 --- a/app/components/bread-crumbs.js +++ /dev/null @@ -1,3 +0,0 @@ -import BreadCrumbs from 'ember-crumbly/components/bread-crumbs'; - -export default class CustomBreadCrumbs extends BreadCrumbs {} diff --git a/app/components/breadcrumbs.hbs b/app/components/breadcrumbs.hbs new file mode 100644 index 000000000..83175c79a --- /dev/null +++ b/app/components/breadcrumbs.hbs @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/app/components/cards/activity-card.hbs b/app/components/cards/activity-card.hbs index 4c6887d60..2af52e4ed 100644 --- a/app/components/cards/activity-card.hbs +++ b/app/components/cards/activity-card.hbs @@ -41,7 +41,7 @@ {{#if activity.group}} @@ -49,7 +49,7 @@ {{else}} diff --git a/app/components/cards/article-card.hbs b/app/components/cards/article-card.hbs index ce2d70cd6..a126dae8c 100644 --- a/app/components/cards/article-card.hbs +++ b/app/components/cards/article-card.hbs @@ -23,7 +23,7 @@
- +

{{#if article.pinned}}{{/if}} {{article.title}} @@ -32,7 +32,7 @@

{{#if article.group}} @@ -46,7 +46,7 @@ {{else}} @@ -101,7 +101,7 @@ }} {{#if useMaxHeight}} -