diff --git a/.env b/.env
new file mode 100644
index 0000000..1cf9d80
--- /dev/null
+++ b/.env
@@ -0,0 +1,8 @@
+VUE_APP_CLIENT_ID=q2w45itLPXzlApDZyLgsoDGLO3HAArySZeQaQt40
+VUE_APP_REDIRECT_URI=https://readerbench.com/authorized
+VUE_APP_READERBENCH_API_BASE_URL=https://readerbench.com/api/v2
+VUE_APP_READERBENCH_API_LOGIN_URL=${VUE_APP_READERBENCH_API_BASE_URL}/accounts/login/?client_id=${VUE_APP_CLIENT_ID}&redirect_uri=${VUE_APP_REDIRECT_URI}
+VUE_APP_READERBENCH_API_LOGOUT_URL=${VUE_APP_READERBENCH_API_BASE_URL}/accounts/logout
+VUE_APP_READERBENCH_API_SIGNUP_URL=${VUE_APP_READERBENCH_API_BASE_URL}/accounts/signup/?client_id=${VUE_APP_CLIENT_ID}&redirect_uri=${VUE_APP_REDIRECT_URI}
+VUE_APP_READERBENCH_API_TOKEN_ENDPOINT=/oauth2/token/
+VUE_APP_READERBENCH_API_USER_DETAILS_ENDPOINT=/users/me
\ No newline at end of file
diff --git a/README.md b/README.md
index 244c80d..81a80bd 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,11 @@
# readerbench-vue
+### Local development
+
+```
+Please create a **.env.development.local** or **.env.local** file and overwrite the variables from .env to suit the local environment
+```
+
## Project setup
```
npm install
@@ -31,4 +37,4 @@ npm run lint
```
### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
+See [Configuration Reference](https://cli.vuejs.org/config/).
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 731d028..a286713 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,6 +23,7 @@
"core-js": "^3.8.3",
"dotenv": "^16.0.3",
"echarts": "^5.4.0",
+ "js-sha256": "^0.11.0",
"json-as-xlsx": "^2.5.4",
"lodash": "^4.17.21",
"primeicons": "^6.0.1",
@@ -10609,6 +10610,11 @@
"node": ">=0.6.0"
}
},
+ "node_modules/js-sha256": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.11.0.tgz",
+ "integrity": "sha512-6xNlKayMZvds9h1Y1VWc0fQHQ82BxTXizWPEtEeGvmOUYpBRy4gbWroHLpzowe6xiQhHpelCQiE7HEdznyBL9Q=="
+ },
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@@ -18510,4 +18516,4 @@
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
}
-}
\ No newline at end of file
+}
diff --git a/package.json b/package.json
index a6425e8..008eb2b 100644
--- a/package.json
+++ b/package.json
@@ -28,6 +28,7 @@
"core-js": "^3.8.3",
"dotenv": "^16.0.3",
"echarts": "^5.4.0",
+ "js-sha256": "^0.11.0",
"json-as-xlsx": "^2.5.4",
"lodash": "^4.17.21",
"primeicons": "^6.0.1",
diff --git a/public/index.html b/public/index.html
index 28fedb8..8b0f267 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,7 +4,7 @@
-
+
ReaderBench
diff --git a/src/components/partials/Nav.vue b/src/components/partials/Nav.vue
index 511ec6e..4d3a6ca 100644
--- a/src/components/partials/Nav.vue
+++ b/src/components/partials/Nav.vue
@@ -1,274 +1,392 @@
-