Skip to content

Commit

Permalink
Merge pull request #1232 from jembi/update-importmaps-constants
Browse files Browse the repository at this point in the history
update the default import map paths
  • Loading branch information
drizzentic authored Sep 2, 2024
2 parents 30469ef + b16a2a0 commit e686ddb
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ export const JWT_PATTERN =
export const CUSTOM_TOKEN_PATTERN =
/^ *(?:[Cc][Uu][Ss][Tt][Oo][Mm]) +([A-Za-z0-9\-._~+/]+=*) *$/

const OPENHIM_CONSOLE_BASE_URL = config.get('openhimConsoleBaseUrl')
const OPENHIM_CONSOLE_BASE_URL = config.get('openhimConsoleBaseUrl')

export const DEFAULT_IMPORT_MAP_PATHS = {
'@jembi/openhim-header':
`${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-header/dist/jembi-openhim-header.js`,
'@jembi/openhim-header': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-header/dist/jembi-openhim-header.js`,
'@jembi/legacy-console': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/legacy-console/dist/bundle.js`,
'@jembi/openhim-core-api':
`${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-core-api/dist/jembi-openhim-core-api.js`,
'@jembi/openhim-theme':
`${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-theme/dist/jembi-openhim-theme.js`,
'@jembi/portal-admin':
`${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/portal-admin/dist/jembi-portal-admin.js`,
'@jembi/openhim-portal':
`${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-portal/dist/jembi-openhim-portal.js`,
'@jembi/openhim-core-api': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-core-api/dist/jembi-openhim-core-api.js`,
'@jembi/openhim-theme': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-theme/dist/jembi-openhim-theme.js`,
'@jembi/portal-admin': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/portal-admin/dist/jembi-portal-admin.js`,
'@jembi/openhim-portal': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-portal/dist/jembi-openhim-portal.js`,
'@jembi/root-config': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/root-config/dist/jembi-root-config.js`,
'@jembi/openhim-sidebar':
`${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-sidebar/dist/jembi-openhim-sidebar.js`
'@jembi/openhim-sidebar': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/openhim-sidebar/dist/jembi-openhim-sidebar.js`,
'@jembi/clients-app': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/clients-app/dist/jembi-clients-app.js`,
'@jembi/dashboard-app': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/dashboard-app/dist/jembi-dashboard-app.js`,
'@jembi/rbac-app': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/rbac-app/dist/jembi-rbac-app.js`,
'@jembi/footer-app': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/footer-app/dist/jembi-footer-app.js`,
'@jembi/transaction-log': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/transaction-log/dist/jembi-transaction-log.js`,
'@jembi/channels-app': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/channels-app/dist/jembi-channels-app.js`,
'@jembi/users-app': `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/users-app/dist/jembi-users-app.js`,
"@jembi/client-roles-app": `${OPENHIM_CONSOLE_BASE_URL}/libs/@jembi/client-roles-app/dist/jembi-client-roles-app.js`
}

0 comments on commit e686ddb

Please sign in to comment.