-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename epinio to
Application Engine
when embedded in Rancher
- Create a mixin to easicaly provide either `Epinio` or `Application Engine` Also - Remove app create wizard title and sub title (not needed) - Tweaked some text
- Loading branch information
1 parent
59c89a8
commit 16d0f12
Showing
11 changed files
with
85 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Vue from 'vue'; | ||
import { getProductName } from '../utils/utils'; | ||
|
||
export default Vue.extend({ | ||
computed: { | ||
productName() { | ||
return getProductName(this.t.bind(this)); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const STANDALONE_RANCHER_ENV = 'epinio'; | ||
|
||
export const isStandalone = (): boolean => { | ||
return process.env.rancherEnv === STANDALONE_RANCHER_ENV; | ||
}; | ||
|
||
/** | ||
* In standalone world it's Epinio, in embedded world Application Engine | ||
*/ | ||
export function getProductNameLabel(): string { | ||
if (isStandalone()) { | ||
return 'epinio.label'; | ||
} | ||
|
||
return 'product.epinio'; | ||
} | ||
|
||
/** | ||
* In standalone world it's Epinio, in embedded world Application Engine | ||
*/ | ||
export function getProductName(t: (label: string) => string): string { | ||
return t(getProductNameLabel()); | ||
} |