Skip to content

Commit

Permalink
Remove ~/* path from tsconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Rak <[email protected]>
  • Loading branch information
rak-phillip committed Sep 20, 2023
1 parent 4b681e3 commit 6c3067c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
21 changes: 0 additions & 21 deletions pkg/rancher-desktop/store/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,27 +423,6 @@ export const actions = {

return dispatch('set', { key: THEME, value });
},

setBrandStyle({ rootState, rootGetters }, dark = false) {
if (rootState.managementReady) {
try {
const brandSetting = rootGetters['management/byId'](MANAGEMENT.SETTING, SETTING.BRAND);

if (brandSetting && brandSetting.value && brandSetting.value !== '') {
const brand = brandSetting.value;

const brandMeta = require(`~/assets/brand/${ brand }/metadata.json`);
const hasStylesheet = brandMeta.hasStylesheet === 'true';

if (hasStylesheet) {
document.body.classList.add(brand);
} else {
// TODO option apply color at runtime
}
}
} catch {}
}
},
};

function getLoginRoute(route) {
Expand Down
3 changes: 0 additions & 3 deletions pkg/rancher-desktop/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {
"~/*": [
"./*"
],
"@pkg/*": [
"./*"
]
Expand Down
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {
"~/*": [
"pkg/rancher-desktop/*"
],
"@pkg/*": [
"pkg/rancher-desktop/*"
],
Expand Down

0 comments on commit 6c3067c

Please sign in to comment.