Support multiple namespaces for Consul and ConsulCatalog providers
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
f352c34136
commit
f90e3817e8
28 changed files with 531 additions and 152 deletions
|
@ -1142,9 +1142,15 @@ export default {
|
|||
getProviderLogoPath (provider) {
|
||||
const name = provider.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
|
@ -66,9 +66,15 @@ export default {
|
|||
const provider = this.getProvider(service)
|
||||
const name = provider.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
|
@ -132,9 +132,15 @@ export default {
|
|||
getProviderLogoPath () {
|
||||
const name = this.data.provider.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
|
@ -146,9 +146,15 @@ export default {
|
|||
getProviderLogoPath () {
|
||||
const name = this.data.provider.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
|
@ -66,9 +66,15 @@ export default {
|
|||
const provider = this.getProvider(service)
|
||||
const name = provider.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
|
@ -11,9 +11,15 @@ export default {
|
|||
getLogoPath () {
|
||||
const name = this.name.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
|
@ -28,9 +28,15 @@ export default {
|
|||
getLogoPath () {
|
||||
const name = this.getName.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue