-
Notifications
You must be signed in to change notification settings - Fork 16
Adrito-M #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Adrito-M #12
Conversation
</main> | ||
</template> | ||
|
||
<script lang> | ||
import { defineComponent } from '@nuxtjs/composition-api' | ||
import addTask from '~/components/addTask.vue' | ||
import axios from 'axios' | ||
import Search from '~/components/search.vue'; | ||
const API_BASE_URL = 'https://todo-app-csoc.herokuapp.com/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also create a configuration for the default request header since the base URL is being used all over the project.
}) | ||
</script> | ||
|
||
<style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good use of transitions :)
@@ -0,0 +1,51 @@ | |||
<template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Feature!
* @hints check what propeties context has | ||
*/ | ||
export default defineNuxtMiddleware(({store, route, redirect}) => { | ||
if (store.getters.auth && (route.path === '/login' || route.path === '/register')) return redirect('/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have used variables for path and auth token
CSOC Task 3 Vue Submission
Deployed Site
Repo Link
I have completed the following tasks
Extra Stuff:
Added a search functionality for the todos, for ease of finding and then deleting/updating todos