From 2af41519185476f0a82a5ba1f961afaf432bcda1 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Mon, 26 Aug 2019 17:09:24 +0200 Subject: [PATCH 1/2] Update to use instead of --- webapp/components/Comment.spec.js | 2 +- webapp/components/Comment.vue | 4 +- .../CommentList/CommentList.spec.js | 2 +- .../ContributionForm/ContributionForm.spec.js | 2 +- .../ContributionForm/ContributionForm.vue | 4 +- webapp/components/CountTo.vue | 4 +- .../EditCommentForm/EditCommentForm.vue | 2 +- webapp/components/PostCard/index.spec.js | 2 +- webapp/components/PostCard/index.vue | 8 ++-- webapp/components/User/index.vue | 4 +- .../Notification/Notification.spec.js | 2 +- .../Notification/Notification.vue | 4 +- .../NotificationList/NotificationList.spec.js | 2 +- webapp/layouts/default.vue | 20 +++++----- webapp/pages/admin/index.vue | 40 +++++++++---------- webapp/pages/index.spec.js | 2 +- webapp/pages/index.vue | 4 +- webapp/pages/login.vue | 4 +- webapp/pages/post/_id/_slug/index.spec.js | 2 +- webapp/pages/post/_id/_slug/index.vue | 4 +- webapp/pages/profile/_id/_slug.spec.js | 2 +- webapp/pages/profile/_id/_slug.vue | 32 +++++++-------- webapp/storybook/config.js | 2 +- webapp/yarn.lock | 6 +-- 24 files changed, 80 insertions(+), 80 deletions(-) diff --git a/webapp/components/Comment.spec.js b/webapp/components/Comment.spec.js index 4fdc48bbd..b9be448e4 100644 --- a/webapp/components/Comment.spec.js +++ b/webapp/components/Comment.spec.js @@ -8,7 +8,7 @@ const localVue = createLocalVue() localVue.use(Vuex) localVue.use(Styleguide) -config.stubs['no-ssr'] = '' +config.stubs['client-only'] = '' describe('Comment.vue', () => { let propsData diff --git a/webapp/components/Comment.vue b/webapp/components/Comment.vue index 6d3b05eff..16d717430 100644 --- a/webapp/components/Comment.vue +++ b/webapp/components/Comment.vue @@ -15,7 +15,7 @@ - + - +
diff --git a/webapp/components/CommentList/CommentList.spec.js b/webapp/components/CommentList/CommentList.spec.js index e1090475a..5551227a1 100644 --- a/webapp/components/CommentList/CommentList.spec.js +++ b/webapp/components/CommentList/CommentList.spec.js @@ -14,7 +14,7 @@ localVue.filter('truncate', string => string) config.stubs['v-popover'] = '' config.stubs['nuxt-link'] = '' -config.stubs['no-ssr'] = '' +config.stubs['client-only'] = '' describe('CommentList.vue', () => { let mocks diff --git a/webapp/components/ContributionForm/ContributionForm.spec.js b/webapp/components/ContributionForm/ContributionForm.spec.js index e1f293c77..90ed226ee 100644 --- a/webapp/components/ContributionForm/ContributionForm.spec.js +++ b/webapp/components/ContributionForm/ContributionForm.spec.js @@ -16,7 +16,7 @@ localVue.use(Vuex) localVue.use(Styleguide) localVue.use(Filters) -config.stubs['no-ssr'] = '' +config.stubs['client-only'] = '' config.stubs['nuxt-link'] = '' config.stubs['v-popover'] = '' diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index e3daf753d..b54cd4f37 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -14,7 +14,7 @@ {{ form.title.length }}/{{ formSchema.title.max }} - + {{ form.contentLength }}/{{ contentMax }} - + - + - + diff --git a/webapp/components/EditCommentForm/EditCommentForm.vue b/webapp/components/EditCommentForm/EditCommentForm.vue index e647131b8..0a5cd7d98 100644 --- a/webapp/components/EditCommentForm/EditCommentForm.vue +++ b/webapp/components/EditCommentForm/EditCommentForm.vue @@ -2,7 +2,7 @@ diff --git a/webapp/components/User/index.vue b/webapp/components/User/index.vue index 0fefe4eb3..684220f38 100644 --- a/webapp/components/User/index.vue +++ b/webapp/components/User/index.vue @@ -25,9 +25,9 @@
- + - +
diff --git a/webapp/components/notifications/Notification/Notification.spec.js b/webapp/components/notifications/Notification/Notification.spec.js index 8fbc524fb..fce2a94b2 100644 --- a/webapp/components/notifications/Notification/Notification.spec.js +++ b/webapp/components/notifications/Notification/Notification.spec.js @@ -8,7 +8,7 @@ const localVue = createLocalVue() localVue.use(Styleguide) localVue.use(Filters) -config.stubs['no-ssr'] = '' +config.stubs['client-only'] = '' describe('Notification', () => { let stubs diff --git a/webapp/components/notifications/Notification/Notification.vue b/webapp/components/notifications/Notification/Notification.vue index 6aa4a5eeb..686938a85 100644 --- a/webapp/components/notifications/Notification/Notification.vue +++ b/webapp/components/notifications/Notification/Notification.vue @@ -1,6 +1,6 @@ diff --git a/webapp/pages/admin/index.vue b/webapp/pages/admin/index.vue index ca8ce4df7..f764238e3 100644 --- a/webapp/pages/admin/index.vue +++ b/webapp/pages/admin/index.vue @@ -1,23 +1,23 @@ diff --git a/webapp/pages/index.spec.js b/webapp/pages/index.spec.js index 6dacd6069..3a97e3709 100644 --- a/webapp/pages/index.spec.js +++ b/webapp/pages/index.spec.js @@ -15,7 +15,7 @@ localVue.use(Filters) localVue.use(VTooltip) localVue.use(InfiniteScroll) -config.stubs['no-ssr'] = '' +config.stubs['client-only'] = '' config.stubs['router-link'] = '' config.stubs['nuxt-link'] = '' diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 910fa7a2f..1224f6f48 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -36,7 +36,7 @@ - + - +