1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-03-21 09:13:10 +00:00
This commit is contained in:
Sunwuyuan 2026-03-03 19:53:33 +08:00
commit 97c70f6706
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64
4 changed files with 74 additions and 7 deletions

View File

@ -8,7 +8,7 @@
适用于班级大屏的作业板小工具 适用于班级大屏的作业板小工具
请打开 [https://cs.houlangs.com](https://cs.houlangs.com) 立刻使用 请打开 [https://cs.houlangs.com](https://cs.houlang.cloud) 立刻使用
## 交流 ## 交流
@ -61,5 +61,4 @@ ZeroCat 的项目 遵循 [Contributor Covenant](http://contributor-covenant.org/
ZeroCat 社区项目遵循 [AGPL-3.0 许可证](LICENSE)。 ZeroCat 社区项目遵循 [AGPL-3.0 许可证](LICENSE)。
版权所有 (C) 2020-2024 孙悟元。 Copyright (C) 2020-2026 Sunwuyuan.
Copyright (C) 2020-2024 Sun Wuyuan.

View File

@ -1782,7 +1782,7 @@ export default {
if (result.success && result.url) { if (result.success && result.url) {
// URL // URL
const examUrl = `https://es.examaware.tech/exam/?configUrl=${encodeURIComponent(result.url)}`; const examUrl = `https://es.examaware.cn/exam/?configUrl=${encodeURIComponent(result.url)}`;
// //
window.open(examUrl, '_blank'); window.open(examUrl, '_blank');
@ -1867,7 +1867,7 @@ export default {
const base64Data = btoa(unescape(encodeURIComponent(jsonString))); const base64Data = btoa(unescape(encodeURIComponent(jsonString)));
// examaware://URL // examaware://URL
const ea2Url = `examaware://player?data=${base64Data}`; const ea2Url = `examaware://player?data=${encodeURIComponent(base64Data)}`;
// //
window.location.href = ea2Url; window.location.href = ea2Url;

View File

@ -10,6 +10,45 @@
<v-card-text> <v-card-text>
<v-row> <v-row>
<v-col class="mx-auto" cols="12" md="8"> <v-col class="mx-auto" cols="12" md="8">
<!-- 捐赠卡片 -->
<v-card
border
class="donation-card gradient-donation clickable mb-6"
color="pink-lighten-4"
elevation="8"
hover
rounded="xl"
variant="tonal"
@click="openDonationLink"
>
<v-card-item>
<div class="card-content">
<div>
<div class="text-h6 font-weight-bold">请支持我们 Classworks</div>
</div>
</div>
</v-card-item>
<v-card-text>
<p class="text-body-2 mb-3">
我是Classworks的开发者孙悟元是一名高二的中国在校学生Classworks 是一个完全开源免费的项目如果可以欢迎打赏
</p>
<div class="mt-4">
<v-btn
append-icon="mdi-heart"
aria-label="Support Classworks on Aifadian"
class="text-none"
color="pink"
rounded="xl"
variant="elevated"
@click="openDonationLink"
>
爱发电
</v-btn>
</div>
</v-card-text>
</v-card>
<div class="d-flex flex-column align-start"> <div class="d-flex flex-column align-start">
<v-avatar class="mb-4" size="120"> <v-avatar class="mb-4" size="120">
<v-img <v-img
@ -378,6 +417,10 @@ export default {
} }
}; };
const openDonationLink = () => {
window.open('https://afdian.com/a/wydev', '_blank');
};
onMounted(() => { onMounted(() => {
loadDependencies(); loadDependencies();
}); });
@ -396,6 +439,7 @@ export default {
openReportDialog, openReportDialog,
copyEnvInfo, copyEnvInfo,
openFeedback, openFeedback,
openDonationLink,
envBoxText, envBoxText,
envInfo, envInfo,
reportBody, reportBody,
@ -405,3 +449,27 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
.gradient-donation {
background: linear-gradient(135deg, rgba(236, 64, 122, 0.15), rgba(233, 30, 99, 0.08) 60%);
border: 2px solid rgba(236, 64, 122, 0.25);
transition: all 0.3s ease;
cursor: pointer;
}
.gradient-donation:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(236, 64, 122, 0.3) !important;
}
.gradient-donation:active {
transform: translateY(-2px);
}
.card-content {
display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@ -34,7 +34,7 @@ let feedbackIntegration = null;
// 初始化 Sentry但暂不启用 Replay // 初始化 Sentry但暂不启用 Replay
Sentry.init({ Sentry.init({
app, app,
dsn: "https://2f8e5e4ec986c6077d3798ba9f683fdd@o4510762489151488.ingest.us.sentry.io/4510762503438336", dsn: "https://dc34ab47426f49c0925445f0d87b7007@report.houlang.cloud/6",
// Setting this option to true will send default PII data to Sentry. // Setting this option to true will send default PII data to Sentry.
// For example, automatic IP address collection on events // For example, automatic IP address collection on events
sendDefaultPii: true, sendDefaultPii: true,
@ -71,7 +71,7 @@ Sentry.init({
// Tracing // Tracing
tracesSampleRate: 1.0, // Capture 100% of the transactions tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", /^https:\/\/kv-service\.(houlang\.cloud|wuyuan\.dev)/], tracePropagationTargets: ["localhost", /^https?:\/\/cs\.(houlang\.cloud|houlangs\.com)/],
// Session Replay - 关闭自动录制 // Session Replay - 关闭自动录制
replaysSessionSampleRate: 0, // 不自动录制会话 replaysSessionSampleRate: 0, // 不自动录制会话
replaysOnErrorSampleRate: 0, // 不在错误时自动录制(改为手动触发) replaysOnErrorSampleRate: 0, // 不在错误时自动录制(改为手动触发)