Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:OpenBankProject/API-Explorer-II …
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
simonredfern committed Dec 3, 2024
2 parents ed2317b + 0dcc35d commit cee9d60
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
1 change: 1 addition & 0 deletions Dockerfiles/frontend_build.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VITE_OBP_API_HOST=VITE_OBP_API_HOST
VITE_OBP_API_PORTAL_HOST=VITE_OBP_API_PORTAL_HOST
VITE_OBP_API_MANAGER_HOST=VITE_OBP_API_MANAGER_HOST
VITE_OBP_API_VERSION=v5.1.0

2 changes: 1 addition & 1 deletion Dockerfiles/prestart.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func main() {
config := []string{"VITE_OBP_API_HOST", "VITE_OBP_API_MANAGER_HOST"}
config := []string{"VITE_OBP_API_HOST", "VITE_OBP_API_MANAGER_HOST", "VITE_OBP_API_PORTAL_HOST"}
configMap := make(map[string]string)

for _, key := range config {
Expand Down
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-explorer",
"version": "1.0.24",
"version": "1.0.26",
"private": true,
"scripts": {
"dev": "vite & ts-node server/app.ts",
Expand All @@ -17,14 +17,14 @@
"@element-plus/icons-vue": "^2.1.0",
"@fontsource/roboto": "^5.0.0",
"@highlightjs/vue-plugin": "^2.1.0",
"axios": "^1.7.2",
"axios": "^1.7.4",
"cheerio": "^1.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"connect-redis": "^7.1.1",
"dotenv": "^16.3.1",
"element-plus": "^2.3.9",
"express": "^4.18.2",
"express": "^4.21.0",
"express-session": "^1.17.3",
"highlight.js": "^11.8.0",
"jsonwebtoken": "^9.0.2",
Expand All @@ -40,40 +40,39 @@
"socket.io-client": "^4.7.5",
"typedi": "^0.10.0",
"uuid": "^9.0.1",
"vue": "^3.2.47",
"vue": "^3.5.1",
"vue-i18n": "^9.4.0",
"vue-markdown-renderer": "^0.2.7",
"vue-router": "^4.2.2",
"vue-socket.io": "^3.0.10",
"ws": "^8.18.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.4.0",
"@types/jsdom": "^21.1.0",
"@types/jsdom": "^21.1.7",
"@types/jsonwebtoken": "^9.0.6",
"@types/markdown-it": "^14.1.1",
"@types/node": "^20.5.7",
"@vitejs/plugin-vue": "^4.3.0",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/eslint-config-typescript": "^14.0.0",
"@vue/test-utils": "^2.4.0",
"@vue/tsconfig": "^0.1.3",
"eslint": "^8.51.0",
"eslint": "^9.15.0",
"eslint-plugin-vue": "^9.12.0",
"jsdom": "^22.1.0",
"npm-run-all": "^4.1.5",
"jsdom": "^25.0.1",
"npm-run-all2": "^7.0.1",
"prettier": "^3.0.1",
"superagent": "^8.1.2",
"superagent": "^9.0.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2",
"unplugin-auto-import": "^0.18.0",
"unplugin-element-plus": "^0.8.0",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-components": "^0.27.0",
"vite": "^4.4.0",
"vite-plugin-node-polyfills": "^0.10.0",
"vite-plugin-rewrite-all": "^1.0.2",
"vitest": "^0.34.0",
"vue-tsc": "^1.6.5"
"vue-tsc": "^2.0.0"
}
}
4 changes: 2 additions & 2 deletions server/middlewares/OauthRequestTokenMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export default class OauthRequestTokenMiddleware implements ExpressMiddlewareInt
constructor(private oauthInjectedService: OauthInjectedService) {}

use(request: Request, response: Response): any {
const apiHost = process.env.VITE_OBP_API_PORTAL_HOST || process.env.VITE_OBP_API_HOST;
console.debug('OauthRequestTokenMiddleware - API Host:', apiHost);
const apiHost = process.env.VITE_OBP_API_PORTAL_HOST ? process.env.VITE_OBP_API_PORTAL_HOST : process.env.VITE_OBP_API_HOST
console.debug('process.env.VITE_OBP_API_PORTAL_HOST:', process.env.VITE_OBP_API_PORTAL_HOST)
const oauthService = this.oauthInjectedService
const consumer = oauthService.getConsumer()
consumer.getOAuthRequestToken((error: any, oauthTokenKey: string, oauthTokenSecret: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeaderNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const route = useRoute()
const router = useRouter()
const obpApiHost = ref(import.meta.env.VITE_OBP_API_HOST)
const obpApiPortalHost = ref(import.meta.env.VITE_OBP_API_PORTAL_HOST)
const obpApiHybridPost = computed(() => obpApiPortalHost.value || obpApiHost.value)
const obpApiHybridPost = computed(() => obpApiPortalHost.value ? obpApiPortalHost.value : obpApiHost.value)
const obpApiManagerHost = ref(import.meta.env.VITE_OBP_API_MANAGER_HOST)
const loginUsername = ref('')
const logoffurl = ref('')
Expand Down

0 comments on commit cee9d60

Please sign in to comment.