feat: panel

This commit is contained in:
bietiaop 2024-07-13 17:52:31 +08:00
parent 35c8c95b80
commit 27171c5727
77 changed files with 2126 additions and 312 deletions

14
lib/convert/rank.js Normal file
View file

@ -0,0 +1,14 @@
const RANK_MAP = {
4: 'S',
3: 'A',
2: 'B',
};
/**
* 获取星级对应的字母
* @param {string | number} id
* @returns {string}
*/
export function getRankChar(id) {
return RANK_MAP[id] || '';
}