chore: 移除 github star

This commit is contained in:
xiaojunnuo
2026-02-06 23:04:39 +08:00
parent 74400aacc6
commit cbd8699801
2 changed files with 24 additions and 21 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export function resetLogConfigure() {
});
}
resetLogConfigure();
export const logger = log4js.getLogger("default");
export const logger: ILogger = log4js.getLogger("default") as any;
export function resetLogFilePath(filePath: string) {
logFilePath = filePath;
@@ -161,27 +161,30 @@ function openStarModal(vipType: string) {
return;
}
Modal.destroyAll();
const goGithub = () => {
window.open("https://github.com/certd/certd/");
};
modal.confirm({
title: t("vip.get_7_day_pro_trial"),
okText: t("vip.star_now"),
onOk() {
goGithub();
openTrialModal(vipType);
},
width: 600,
content: () => {
return (
<div class="flex mt-10 mb-10">
<div>{t("vip.please_help_star")}</div>
<img class="ml-5" src="https://img.shields.io/github/stars/certd/certd?logo=github" />
</div>
);
},
});
openTrialModal(vipType);
// const goGithub = () => {
// window.open("https://github.com/certd/certd/");
// };
// modal.confirm({
// title: t("vip.get_7_day_pro_trial"),
// okText: t("vip.star_now"),
// onOk() {
// goGithub();
// openTrialModal(vipType);
// },
// width: 600,
// content: () => {
// return (
// <div class="flex mt-10 mb-10">
// <div>{t("vip.please_help_star")}</div>
// <img class="ml-5" src="https://img.shields.io/github/stars/certd/certd?logo=github" />
// </div>
// );
// },
// });
}
function openUpgrade() {