Skip to content

Commit

Permalink
Fixed pre-complie lib issue. (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 authored Mar 31, 2023
1 parent 0d4bd70 commit 401d593
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/lib.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/lib.umd.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fas-ui",
"version": "1.1.1",
"version": "1.1.2",
"private": true,
"main": "./lib/lib.umd.min.js",
"files": [
Expand Down
17 changes: 11 additions & 6 deletions src/util/config-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default class ConfigHelper {
static async fetchConfig () {
// sbc common components need the following keys
sessionStorage.setItem(SessionStorageKeys.AuthApiUrl, ConfigHelper.getAuthAPIUrl())
sessionStorage.setItem(SessionStorageKeys.PayApiUrl, ConfigHelper.getPayAPIURL())
sessionStorage.setItem(SessionStorageKeys.StatusApiUrl, ConfigHelper.getStatusAPIUrl())
sessionStorage.setItem(SessionStorageKeys.AuthWebUrl, ConfigHelper.getAuthWebUrl())
sessionStorage.setItem(SessionStorageKeys.FasWebUrl, ConfigHelper.getFasWebUrl())
Expand All @@ -25,31 +26,35 @@ export default class ConfigHelper {
}

static getPayAPIURL () {
return `${process.env.VUE_APP_PAY_API_URL}` + `${process.env.VUE_APP_PAY_API_VERSION}`
const payApiUrl = `${process.env.VUE_APP_PAY_API_URL}` + `${process.env.VUE_APP_PAY_API_VERSION}`
return sessionStorage.getItem(SessionStorageKeys.PayApiUrl) || payApiUrl
}

static getFasAPIURL () {
return `${ConfigHelper.getPayAPIURL()}/fas`
}

static getAuthAPIUrl () {
return `${process.env.VUE_APP_AUTH_API_URL}` + `${process.env.VUE_APP_AUTH_API_VERSION}`
const authApiUrl = `${process.env.VUE_APP_AUTH_API_URL}` + `${process.env.VUE_APP_AUTH_API_VERSION}`
return sessionStorage.getItem(SessionStorageKeys.AuthApiUrl) || authApiUrl
}

static getAuthWebUrl () {
return `${process.env.VUE_APP_AUTH_WEB_URL}`
return sessionStorage.getItem(SessionStorageKeys.AuthWebUrl) || `${process.env.VUE_APP_AUTH_WEB_URL}`
}

static getFasWebUrl () {
return `${process.env.VUE_APP_FAS_WEB_URL}`
return sessionStorage.getItem(SessionStorageKeys.FasWebUrl) || `${process.env.VUE_APP_FAS_WEB_URL}`
}

static getStatusAPIUrl () {
return `${process.env.VUE_APP_STATUS_API_URL}` + `${process.env.VUE_APP_STATUS_API_VERSION}`
const statusApiUrl = `${process.env.VUE_APP_STATUS_API_URL}` + `${process.env.VUE_APP_STATUS_API_VERSION}`
return sessionStorage.getItem(SessionStorageKeys.StatusApiUrl) || statusApiUrl
}

static getSiteminderLogoutUrl () {
return `${process.env.VUE_APP_SITEMINDER_LOGOUT_URL}`
const logoutUrl = `${process.env.VUE_APP_SITEMINDER_LOGOUT_URL}`
return sessionStorage.getItem(SessionStorageKeys.SiteminderLogoutUrl) || logoutUrl
}

static getKeycloakAuthUrl () {
Expand Down
1 change: 1 addition & 0 deletions src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export enum SessionStorageKeys {
SessionSynced = 'SESSION_SYNCED',
AuthApiUrl = 'AUTH_API_URL',
AuthWebUrl = 'AUTH_WEB_URL',
PayApiUrl = 'PAY_API_URL',
StatusApiUrl = 'STATUS_API_URL',
FasWebUrl = 'FAS_WEB_URL',
SiteminderLogoutUrl = 'SITEMINDER_LOGOUT_URL'
Expand Down

0 comments on commit 401d593

Please sign in to comment.