README change and fixing Opey env.example and some debug messages at API Days with Nemo

This commit is contained in:
simonredfern 2024-12-03 15:24:37 +01:00
parent d79e18b0cb
commit ed2317bbf9
7 changed files with 4769 additions and 4741 deletions

View File

@ -21,8 +21,10 @@ VITE_OPB_SERVER_SESSION_PASSWORD=very secret
VITE_OBP_REDIS_URL = redis://127.0.0.1:6379 VITE_OBP_REDIS_URL = redis://127.0.0.1:6379
# Enable the chatbot interface "Opey" # Enable the chatbot interface "Opey"
# Note: For Opey to be connected you will need to create a public key for API Explorer II
# To do this:
VITE_CHATBOT_ENABLED=false VITE_CHATBOT_ENABLED=false
VITE_CHATBOT_ENDPOINT_URL=http://localhost:5000 VITE_CHATBOT_URL=http://localhost:5000
# Product styling setting # Product styling setting
#VITE_OBP_LINKS_COLOR="#52b165" #VITE_OBP_LINKS_COLOR="#52b165"

View File

@ -37,6 +37,16 @@ or
npm run dev npm run dev
``` ```
##### Get a Consumer Key for the OBP-API
API Explorer needs a Consumer Key / Secret to access the Open Bank Project API with OAuth.
To get this Consumer, go to the Portal of OBP-API, login and "Get a Consumer Key".
The callback URL (if running locally) should be http://localhost:5173/api/callback
Copy and paste the Consumer Key and Consumer Secret and add it to your .env file here.
You can use .env.example as a basis of your .env file.
##### ~~Run Unit Tests with [Vitest](https://vitest.dev/)~~ ##### ~~Run Unit Tests with [Vitest](https://vitest.dev/)~~
<strike> <strike>

2
auto-imports.d.ts vendored
View File

@ -1,7 +1,9 @@
/* eslint-disable */ /* eslint-disable */
/* prettier-ignore */ /* prettier-ignore */
// @ts-nocheck // @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import // Generated by unplugin-auto-import
// biome-ignore lint: disable
export {} export {}
declare global { declare global {

4
components.d.ts vendored
View File

@ -3,11 +3,9 @@
// @ts-nocheck // @ts-nocheck
// Generated by unplugin-vue-components // Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399 // Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'
export {} export {}
declare module '@vue/runtime-core' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ChatWidget: typeof import('./src/components/ChatWidget.vue')['default'] ChatWidget: typeof import('./src/components/ChatWidget.vue')['default']
Collections: typeof import('./src/components/Collections.vue')['default'] Collections: typeof import('./src/components/Collections.vue')['default']

View File

@ -85,6 +85,7 @@
}, },
created() { created() {
this.chatBotUrl = import.meta.env.VITE_CHATBOT_URL this.chatBotUrl = import.meta.env.VITE_CHATBOT_URL
console.log('here is this.chatBotUrl: ', this.chatBotUrl)
this.obpApiHost = inject(obpApiHostKey); this.obpApiHost = inject(obpApiHostKey);
this.checkLoginStatus(); this.checkLoginStatus();
}, },

View File

@ -44,6 +44,7 @@ export const useConnectionStore = defineStore("connection", {
*/ */
bindEvents() { bindEvents() {
socket.on("connect", () => { socket.on("connect", () => {
console.log("websocket connection established")
this.isConnected = true; this.isConnected = true;
}); });

9488
yarn.lock

File diff suppressed because it is too large Load Diff