mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-14 07:41:57 +08:00
feat: Service routes are supported instead of individual ports. (#360)
This commit is contained in:
parent
29ef52a351
commit
99681b4e8c
@ -1,14 +1,11 @@
|
|||||||
|
|
||||||
export const ADDRESS_HOST = 'http://localhost'
|
export const ADDRESS_HOST = 'http://localhost'
|
||||||
|
export const PROXY_PORT = '8989'
|
||||||
|
|
||||||
export const PORT_DICTIONARY = '8990'
|
export const DICTIONARY_ADDRESS = `${ADDRESS_HOST}:${PROXY_PORT}/dictionary`
|
||||||
export const HOST_GRPC_DICTIONARY = ADDRESS_HOST + ':' + PORT_DICTIONARY
|
|
||||||
|
|
||||||
export const PORT_DATA = '8991'
|
export const BUSINESS_DATA_ADDRESS = `${ADDRESS_HOST}:${PROXY_PORT}/businessdata`
|
||||||
export const HOST_GRPC_DATA = ADDRESS_HOST + ':' + PORT_DATA
|
|
||||||
|
|
||||||
export const PORT_AUTHENTICATION = '8989'
|
export const ACCESS_ADDRESS = `${ADDRESS_HOST}:${PROXY_PORT}/access`
|
||||||
export const HOST_GRPC_AUTHENTICATION = ADDRESS_HOST + ':' + PORT_AUTHENTICATION
|
|
||||||
|
|
||||||
export const PORT_ENROLLMENT = '8992'
|
export const ENROLLMENT_ADDRESS = `${ADDRESS_HOST}:${PROXY_PORT}/enrollment`
|
||||||
export const HOST_GRPC_ENROLLMENT = ADDRESS_HOST + ':' + PORT_ENROLLMENT
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { getLanguage } from '@/lang/index'
|
import { getLanguage } from '@/lang/index'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import BusinessData from '@adempiere/grpc-data-client'
|
import BusinessData from '@adempiere/grpc-data-client'
|
||||||
import { HOST_GRPC_DATA } from '@/api/ADempiere/constants'
|
import { BUSINESS_DATA_ADDRESS } from '@/api/ADempiere/constants'
|
||||||
|
|
||||||
// Get Instance for connection
|
// Get Instance for connection
|
||||||
function Instance() {
|
function Instance() {
|
||||||
return new BusinessData(
|
return new BusinessData(
|
||||||
HOST_GRPC_DATA,
|
BUSINESS_DATA_ADDRESS,
|
||||||
getToken(),
|
getToken(),
|
||||||
getLanguage() || 'en_US'
|
getLanguage() || 'en_US'
|
||||||
)
|
)
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { getLanguage } from '@/lang/index'
|
import { getLanguage } from '@/lang/index'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import Dictionary from '@adempiere/grpc-dictionary-client'
|
import Dictionary from '@adempiere/grpc-dictionary-client'
|
||||||
import { HOST_GRPC_DICTIONARY } from '@/api/ADempiere/constants'
|
import { DICTIONARY_ADDRESS } from '@/api/ADempiere/constants'
|
||||||
|
|
||||||
// Get Instance for connection
|
// Get Instance for connection
|
||||||
function Instance() {
|
function Instance() {
|
||||||
return new Dictionary(
|
return new Dictionary(
|
||||||
HOST_GRPC_DICTIONARY,
|
DICTIONARY_ADDRESS,
|
||||||
getToken(),
|
getToken(),
|
||||||
getLanguage() || 'en_US'
|
getLanguage() || 'en_US'
|
||||||
)
|
)
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import Enrollment from '@adempiere/grpc-enrollment-client'
|
import Enrollment from '@adempiere/grpc-enrollment-client'
|
||||||
import { HOST_GRPC_ENROLLMENT } from '@/api/ADempiere/constants'
|
import { ENROLLMENT_ADDRESS } from '@/api/ADempiere/constants'
|
||||||
|
|
||||||
// Get Instance for connection
|
// Get Instance for connection
|
||||||
function Instance() {
|
function Instance() {
|
||||||
return new Enrollment(
|
return new Enrollment(
|
||||||
HOST_GRPC_ENROLLMENT,
|
ENROLLMENT_ADDRESS,
|
||||||
3.9,
|
3.9,
|
||||||
'ADempier-Vue'
|
'ADempiere-Vue'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { getLanguage } from '@/lang/index'
|
import { getLanguage } from '@/lang/index'
|
||||||
import Access from '@adempiere/grpc-access-client'
|
import Access from '@adempiere/grpc-access-client'
|
||||||
import { HOST_GRPC_AUTHENTICATION } from '@/api/ADempiere/constants'
|
import { ACCESS_ADDRESS } from '@/api/ADempiere/constants'
|
||||||
|
|
||||||
// Instance for connection
|
// Instance for connection
|
||||||
function Instance() {
|
function Instance() {
|
||||||
return new Access(
|
return new Access(
|
||||||
HOST_GRPC_AUTHENTICATION,
|
ACCESS_ADDRESS,
|
||||||
'Version Epale',
|
'Version Epale',
|
||||||
getLanguage() || 'en_US'
|
getLanguage() || 'en_US'
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user