Skip to content

Commit

Permalink
Merge pull request #53 from NordyVlasman/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
NordyVlasman authored Jun 20, 2021
2 parents 2f04b02 + bd054c0 commit 802c0c9
Show file tree
Hide file tree
Showing 40 changed files with 52 additions and 195 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BASE_URL=
SENTRY_DSN=
7 changes: 0 additions & 7 deletions assets/README.md

This file was deleted.

72 changes: 0 additions & 72 deletions components/Logo.vue

This file was deleted.

7 changes: 0 additions & 7 deletions components/README.md

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion components/PostCard.vue → components/post/PostCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</template>

<script>
import SkillTag from '~/components/SkillTag'
import SkillTag from '~/components/skill/SkillTag'
export default {
components: { SkillTag },
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions layouts/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions middleware/README.md

This file was deleted.

10 changes: 2 additions & 8 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export default {
'@nuxtjs/moment',
],

modules: ['@nuxtjs/axios', '@nuxtjs/pwa', '@nuxtjs/apollo', '@nuxtjs/sentry'],

axios: {},
modules: ['@nuxtjs/pwa', '@nuxtjs/apollo', '@nuxtjs/sentry'],

loading: {
color: 'black',
Expand All @@ -52,11 +50,7 @@ export default {
},

sentry: {
dsn: 'https://[email protected]/5803851',
config: {
// Add native Sentry config here
// https://docs.sentry.io/platforms/javascript/guides/vue/configuration/options/
},
dsn: process.env.SENTRY_DSN,
},

pwa: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"jest": "^26.6.3",
"postcss": "^8.2.8",
"prettier": "^2.2.1",
"vue-jest": "^3.0.4"
"vue-jest": "^3.0.4",
"vuex": "^3.6.2"
}
}
6 changes: 0 additions & 6 deletions pages/README.md

This file was deleted.

14 changes: 6 additions & 8 deletions pages/auth/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
rounded-md
shadow-sm
appearance-none
focus:outline-none
focus:ring-gray-900
focus:border-gray-900
focus:outline-none focus:ring-gray-900 focus:border-gray-900
sm:text-sm
"
/>
Expand Down Expand Up @@ -54,9 +52,7 @@
rounded-md
shadow-sm
appearance-none
focus:outline-none
focus:ring-gray-900
focus:border-gray-900
focus:outline-none focus:ring-gray-900 focus:border-gray-900
sm:text-sm
"
/>
Expand Down Expand Up @@ -107,7 +103,9 @@
shadow-sm
hover:bg-gray-700
focus:outline-none
focus:ring-2 focus:ring-offset-2 focus:ring-gray-900
focus:ring-2
focus:ring-offset-2
focus:ring-gray-900
"
@click="login"
>
Expand All @@ -118,7 +116,7 @@
</div>
</template>
<script>
import LoginMutation from '@/graphql/login.gql'
import LoginMutation from '@/graphql/auth/login.gql'
export default {
layout: 'auth',
Expand Down
4 changes: 2 additions & 2 deletions pages/auth/register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@
</div>
</template>
<script>
import RolesQuery from '@/graphql/roles.gql'
import RegisterMutation from '@/graphql/register.gql'
import RolesQuery from '@/graphql/user/roles.gql'
import RegisterMutation from '@/graphql/auth/register.gql'
export default {
layout: 'auth',
Expand Down
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

<script>
import { mapState } from 'vuex'
import PostCard from '~/components/PostCard'
import PostCard from '~/components/post/PostCard'
export default {
components: { PostCard },
middleware: 'authenticated',
async fetch({ store, params }) {
async fetch({ store }) {
await store.dispatch('post/FETCH_POSTS')
},
computed: {
Expand Down
13 changes: 6 additions & 7 deletions pages/post/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,17 @@

<script>
import { mapState } from 'vuex'
import LikeMutation from '@/graphql/likePost.gql'
import DislikeMutation from '@/graphql/dislikePost.gql'
import UpvoteCommentMutation from '@/graphql/upvoteCommentMutation.gql'
import CommentMutation from '@/graphql/createCommentMutation.gql'
import LikeMutation from '@/graphql/post/likePost.gql'
import DislikeMutation from '@/graphql/post/dislikePost.gql'
import UpvoteCommentMutation from '@/graphql/comment/upvoteCommentMutation.gql'
import CommentMutation from '@/graphql/comment/createCommentMutation.gql'
import HeartIcon from '~/components/HeartIcon'
import UpvoteIcon from '~/components/UpvoteIcon'
import DownvoteIcon from '~/components/DownvoteIcon'
import BlockRenderer from '~/components/Block'
import SkillTag from '~/components/SkillTag'
import BlockRenderer from '~/components/post/BlockRenderer'
import SkillTag from '~/components/skill/SkillTag'
export default {
// eslint-disable-next-line vue/no-unused-components
components: { BlockRenderer, HeartIcon, UpvoteIcon, DownvoteIcon, SkillTag },
data() {
return {
Expand Down
16 changes: 7 additions & 9 deletions pages/post/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
<img
v-if="image"
:src="image"
alt="cover"
class="
filter
group
Expand All @@ -88,10 +89,8 @@
z-0
cursor-pointer
"
placeholder="Verwijderen"
@click="image = null"
/>
<!-- <div class="absolute inset-0 bg-cover bg-center z-0 filter hover:blur-sm" style="background-image: url('https://upload.wikimedia.org/wikipedia/en/3/3c/JumanjiTheNextLevelTeaserPoster.jpg')"></div>-->
</div>
<div v-if="!image" class="space-y-1 text-center">
<div
Expand Down Expand Up @@ -120,10 +119,10 @@
focus-within:ring-indigo-500
"
>
<div class="flex items-center gap-x-1.5">
<span class="flex items-center gap-x-1.5">
<UploadIcon />
<span>Upload cover afbeelding</span>
</div>
</span>
<input
id="file-upload"
name="file-upload"
Expand Down Expand Up @@ -201,7 +200,7 @@
:max="3"
:options="options.map((option) => option.id)"
:custom-label="
(opt) => options.find((x) => x.id == opt).name
(opt) => options.find((x) => x.id === opt).name
"
:taggable="true"
></multiselect>
Expand Down Expand Up @@ -234,7 +233,7 @@
:options="productOptions.map((option) => option.id)"
:custom-label="
(opt) =>
productOptions.find((x) => x.id == opt).name
productOptions.find((x) => x.id === opt).name
"
:taggable="true"
></multiselect>
Expand Down Expand Up @@ -312,8 +311,8 @@
</div>
</template>
<script>
import SkillQuery from '@/graphql/getSkillForDropdown.gql'
import ProductQuery from '@/graphql/getProductsForDropdown.gql'
import SkillQuery from '@/graphql/skill/getSkillForDropdown.gql'
import ProductQuery from '@/graphql/product/getProductsForDropdown.gql'
import EditorJS from '@editorjs/editorjs'
import Header from '@editorjs/header'
import Paragraph from 'editorjs-paragraph-with-alignment'
Expand Down Expand Up @@ -429,7 +428,6 @@ export default {
// eslint-disable-next-line no-undef
editor.save().then((savedData) => {
payload.body = JSON.stringify(savedData)
console.log(payload.body)
payload.slug = this.slug
this.$store.dispatch('post/CREATE_POST', payload).then(() => {
this.$router.push('/')
Expand Down
4 changes: 2 additions & 2 deletions pages/user/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@

<script>
import { mapState } from 'vuex'
import SkillTag from '~/components/SkillTag'
import SkillTag from '~/components/skill/SkillTag'
export default {
components: { SkillTag },
middleware: 'authenticated',
async fetch({ store, params }) {
async fetch({ store }) {
await store.dispatch('user/FETCH_USERS')
},
computed: {
Expand Down
11 changes: 7 additions & 4 deletions pages/user/profile.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>

<div class="mt-1">
<h1 class="text-2xl font-light text-black dark:text-gray-300">
<span class="font-bold">Sorry!</span> Deze pagina is nog niet klaar
</h1>
</div>
</template>

<script>
</script>
export default {}
</script>
17 changes: 7 additions & 10 deletions pages/user/settings.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<template>
<div>

</div>
<div class="mt-1">
<h1 class="text-2xl font-light text-black dark:text-gray-300">
<span class="font-bold">Sorry!</span> Deze pagina is nog niet klaar
</h1>
</div>
</template>

<script>
export default {
}
</script>
export default {}
</script>
7 changes: 0 additions & 7 deletions plugins/README.md

This file was deleted.

Loading

1 comment on commit 802c0c9

@vercel
Copy link

@vercel vercel bot commented on 802c0c9 Jun 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.