chore(root): migrate to biome
This commit is contained in:
@@ -2,7 +2,7 @@ import type { IServiceProfile } from '@openpanel/db';
|
||||
|
||||
export function getProfileName(
|
||||
profile: IServiceProfile | undefined | null,
|
||||
short = true
|
||||
short = true,
|
||||
) {
|
||||
if (!profile) {
|
||||
return '';
|
||||
@@ -10,7 +10,7 @@ export function getProfileName(
|
||||
|
||||
if (!profile.isExternal) {
|
||||
if (short) {
|
||||
return profile.id.slice(0, 4) + '...' + profile.id.slice(-4);
|
||||
return `${profile.id.slice(0, 4)}...${profile.id.slice(-4)}`;
|
||||
}
|
||||
return profile.id;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * from '@openpanel/common/src/math'
|
||||
export * from '@openpanel/common/src/math';
|
||||
|
||||
@@ -2,5 +2,5 @@ export function truncate(str: string, len: number) {
|
||||
if (str.length <= len) {
|
||||
return str;
|
||||
}
|
||||
return str.slice(0, len) + '...';
|
||||
return `${str.slice(0, len)}...`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user