From 0f9ddf1e5dfe6d121144fd38206bc40e6d335e9b Mon Sep 17 00:00:00 2001 From: rbtprograms <37790245+rbtprograms@users.noreply.github.com> Date: Sun, 4 Aug 2019 13:31:13 -0700 Subject: [PATCH] fix: Switch converted to Object Literal (#940) * updating a switch into object literal and fixed a couple linter errors * added a comment about weird formatting * style: use lodash get * fix: pass eslint + puglint + jest --- .../admin/admin-groups-edit-permissions.vue | 3 +- .../admin/admin-groups-edit-rules.vue | 4 +- .../admin/admin-groups-edit-users.vue | 3 +- client/components/editor/editor-wysiwyg.vue | 4 +- client/modules/localization.js | 2 +- client/store/admin.js | 2 - client/store/index.js | 2 + package.json | 11 +- server/controllers/auth.js | 4 +- server/db/migrations/2.0.0-beta.148.js | 2 + server/db/migrations/2.0.0-beta.205.js | 2 + server/db/migrations/2.0.0-beta.99.js | 2 + server/db/migrator-source.js | 4 +- server/graph/resolvers/comment.js | 3 - server/graph/resolvers/folder.js | 3 - server/graph/resolvers/group.js | 2 +- server/graph/resolvers/system.js | 4 +- server/graph/resolvers/tag.js | 5 - server/helpers/asset.js | 2 - server/helpers/page.js | 11 +- server/middlewares/upload.js | 2 - server/models/analytics.js | 1 - .../authentication/discord/authentication.js | 1 - .../authentication/github/authentication.js | 2 +- server/modules/storage/disk/storage.js | 1 - server/test/helpers/page.test.js | 43 ++ server/views/error.pug | 2 +- yarn.lock | 633 +++++++++++++++++- 28 files changed, 701 insertions(+), 59 deletions(-) create mode 100644 server/test/helpers/page.test.js diff --git a/client/components/admin/admin-groups-edit-permissions.vue b/client/components/admin/admin-groups-edit-permissions.vue index e140b35a..52ca4ae1 100644 --- a/client/components/admin/admin-groups-edit-permissions.vue +++ b/client/components/admin/admin-groups-edit-permissions.vue @@ -42,7 +42,8 @@ export default { props: { value: { - type: Object + type: Object, + default: () => ({}) } }, data() { diff --git a/client/components/admin/admin-groups-edit-rules.vue b/client/components/admin/admin-groups-edit-rules.vue index 67baafc9..b15b8c57 100644 --- a/client/components/admin/admin-groups-edit-rules.vue +++ b/client/components/admin/admin-groups-edit-rules.vue @@ -186,7 +186,6 @@ v-subheader.pl-0 Regular Expressions span Expressions that are deemed unsafe or could result in exponential time processing will be rejected upon saving. -