update style across the project
The eslint updates require style changes in all components.
This commit is contained in:
parent
7959f2a563
commit
4fa71cede8
56 changed files with 5973 additions and 5177 deletions
|
|
@ -1,15 +1,15 @@
|
|||
function getBaseName(pathname) {
|
||||
let release = '/';
|
||||
const pathName = pathname.split('/');
|
||||
let release = '/';
|
||||
const pathName = pathname.split('/');
|
||||
|
||||
pathName.shift();
|
||||
|
||||
if (pathName[0] === 'beta') {
|
||||
pathName.shift();
|
||||
release = `/beta/`;
|
||||
}
|
||||
|
||||
if (pathName[0] === 'beta') {
|
||||
pathName.shift();
|
||||
release = `/beta/`;
|
||||
}
|
||||
|
||||
return `${release}${pathName[0]}/${pathName[1] || ''}`;
|
||||
return `${release}${pathName[0]}/${pathName[1] || ''}`;
|
||||
}
|
||||
|
||||
export default getBaseName;
|
||||
|
|
|
|||
|
|
@ -1,16 +1,13 @@
|
|||
import {
|
||||
RHEL_8,
|
||||
RHEL_9,
|
||||
} from '../constants';
|
||||
import { RHEL_8, RHEL_9 } from '../constants';
|
||||
|
||||
function isRhel(distro) {
|
||||
switch (distro) {
|
||||
case RHEL_8:
|
||||
case RHEL_9:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
switch (distro) {
|
||||
case RHEL_8:
|
||||
case RHEL_9:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export default isRhel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue