mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactoring
This commit is contained in:
parent
d2d56a3dac
commit
237f4cbc6c
@ -38,6 +38,10 @@ class Theme {
|
|||||||
this.loadThemeFiles.bind(this);
|
this.loadThemeFiles.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To load the theme files from the configuration file.
|
||||||
|
* @returns the http response.
|
||||||
|
*/
|
||||||
loadThemeProperties () {
|
loadThemeProperties () {
|
||||||
let httpClient = axios.create({
|
let httpClient = axios.create({
|
||||||
baseURL: this.baseURL + "/" + this.appContext + "/config.json",
|
baseURL: this.baseURL + "/" + this.appContext + "/config.json",
|
||||||
@ -47,14 +51,11 @@ class Theme {
|
|||||||
return httpClient.get();
|
return httpClient.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadTheme () {
|
/**
|
||||||
let httpClient = axios.create({
|
* To load the particular theme file from the path.
|
||||||
baseURL: this.baseURL + "/" + this.appContext + "/themes/custom-theme/theme.js",
|
* @param path Path to load the theme files
|
||||||
timeout: 2000
|
* @returns Http response from the particular file.
|
||||||
});
|
*/
|
||||||
return httpClient.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
loadThemeFiles (path) {
|
loadThemeFiles (path) {
|
||||||
let httpClient = axios.create({
|
let httpClient = axios.create({
|
||||||
baseURL: this.baseURL + "/" + this.appContext + path,
|
baseURL: this.baseURL + "/" + this.appContext + path,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user