Skip to content

Commit

Permalink
Replacement and Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
NordyVlasman committed Jun 20, 2021
1 parent 057a20f commit c93f86d
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 22 deletions.
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.
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
8 changes: 4 additions & 4 deletions pages/post/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@

<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'
Expand Down
4 changes: 2 additions & 2 deletions pages/post/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,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
2 changes: 1 addition & 1 deletion store/auth.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Cookies from 'js-cookie'
import GetUserQuery from '@/graphql/getUser.gql'
import GetUserQuery from '@/graphql/user/getUser.gql'

export const state = () => ({
currentUser: {},
Expand Down
6 changes: 3 additions & 3 deletions store/post/actions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import GetPostsQuery from '@/graphql/posts.gql'
import GetPostQuery from '@/graphql/post.gql'
import CreatePostMutation from '@/graphql/createPost.gql'
import GetPostsQuery from '@/graphql/post/posts.gql'
import GetPostQuery from '@/graphql/post/post.gql'
import CreatePostMutation from '@/graphql/post/createPost.gql'

export default {
async FETCH_POSTS({ commit }) {
Expand Down
4 changes: 2 additions & 2 deletions store/user/actions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GetUersQuery from '@/graphql/users.gql'
import GetPostQuery from '@/graphql/post.gql'
import GetUersQuery from '@/graphql/user/users.gql'
import GetPostQuery from '@/graphql/post/post.gql'

export default {
async FETCH_USERS({ commit }) {
Expand Down

0 comments on commit c93f86d

Please sign in to comment.