diff --git a/README.md b/README.md
index 30034bd..7d1bf16 100644
--- a/README.md
+++ b/README.md
@@ -1,23 +1,25 @@
# QUIZ APP
+https://squiz-app.netlify.app/
+
+Tested with:
+
+Node v12.13.1
+
+Npm 6.12.1
## Project setup
```
-yarn install
+npm install
```
### Compiles and hot-reloads for development
```
-yarn serve
+npm run serve
```
### Compiles and minifies for production
```
-yarn build
-```
-
-### Lints and fixes files
-```
-yarn lint
+npm run build
```
### Customize configuration
diff --git a/src/views/auth/user/Form.vue b/src/views/auth/user/Form.vue
deleted file mode 100644
index 0254a1a..0000000
--- a/src/views/auth/user/Form.vue
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue
index 55d9e4a..3361da7 100644
--- a/src/views/dashboard/Dashboard.vue
+++ b/src/views/dashboard/Dashboard.vue
@@ -80,6 +80,7 @@
methods: {
getSummary() {
this.loader = true
+ ApiService.setHeader()
ApiService.get(`/dashboard-summary`)
.then((resp) => {
this.loading = false;
diff --git a/src/views/dashboard/pages/MCQ/MCQs.vue b/src/views/dashboard/pages/MCQ/MCQs.vue
index 31c3e49..c3fb379 100644
--- a/src/views/dashboard/pages/MCQ/MCQs.vue
+++ b/src/views/dashboard/pages/MCQ/MCQs.vue
@@ -32,19 +32,20 @@
-
- #{{ mcq.id }} |
- {{ mcq.question }} |
- {{ mcq.correct_answer }} |
-
- {{moment(mcq.created_at).format('YYYY-MM-DD')}}
- |
-
-
- |
-
-
-
+
+
+ #{{ mcq.id }} |
+ {{ mcq.question }} |
+ {{ mcq.correct_answer }} |
+
+ {{moment(mcq.created_at).format('YYYY-MM-DD')}}
+ |
+ |
+
+
+
+ No data found |
+
@@ -89,6 +90,7 @@ export default {
if(searchQuery) {
searchQuery = `&${searchQuery}`;
}
+ ApiService.setHeader()
ApiService.get(`/mcq?page=${page}${searchQuery}&limit=${this.pagination.per_page}`).then(res => {
this.list = res.data;
this.pagination.current = res.data.meta.current_page;
diff --git a/src/views/dashboard/pages/Quiz/Attempts.vue b/src/views/dashboard/pages/Quiz/Attempts.vue
index 57f2473..5150bf2 100644
--- a/src/views/dashboard/pages/Quiz/Attempts.vue
+++ b/src/views/dashboard/pages/Quiz/Attempts.vue
@@ -27,22 +27,27 @@
-
-
- #{{ attempt.id }}
- |
- {{ attempt.quiz.title }} |
-
- {{ moment.utc(moment.duration(attempt.quiz.time_limit,'seconds').as('milliseconds')).format('HH:mm:ss') }}
- |
-
- {{ attempt.score + '%' }}
- |
- {{moment(attempt.created_at).format('YYYY-MM-DD')}} |
-
+
+
+
+ #{{ attempt.id }}
+ |
+ {{ attempt.quiz.title }} |
+
+ {{ moment.utc(moment.duration(attempt.quiz.time_limit,'seconds').as('milliseconds')).format('HH:mm:ss') }}
+ |
+
+ {{ attempt.score + '%' }}
+ |
+ {{moment(attempt.created_at).format('YYYY-MM-DD')}} |
+
- |
-
+ |
+
+
+
+ No data found |
+
diff --git a/src/views/dashboard/pages/Quiz/Quizzes.vue b/src/views/dashboard/pages/Quiz/Quizzes.vue
index a279dfd..aa4ce79 100644
--- a/src/views/dashboard/pages/Quiz/Quizzes.vue
+++ b/src/views/dashboard/pages/Quiz/Quizzes.vue
@@ -35,6 +35,7 @@
+
{{ quiz.id }} |
@@ -54,6 +55,10 @@
|
|
+
+
+ No data found |
+
diff --git a/src/views/guest/Login.vue b/src/views/guest/Login.vue
index 98f109d..d4a30a2 100644
--- a/src/views/guest/Login.vue
+++ b/src/views/guest/Login.vue
@@ -133,11 +133,11 @@ export default {
this.$store.dispatch(LOGIN, {
email: this.loginEmail, password: this.loginPassword
}).then((resp) => {
- // if (this.$route.query['redirect']) {
- // this.$router.push({ path: '/' + this.$route.query['redirect'] })
- // } else {
+ if (this.$route.query['redirect']) {
+ window.location.href = window.location.origin + this.$route.query['redirect'];
+ } else {
this.$router.push({ name: 'Dashboard' })
- // }
+ }
}).catch((err) =>{
this.$toastr.e('Wrong email or password!');