feat: Implement Trace page (#500)

This commit is contained in:
Fine0830
2025-09-29 17:36:31 +08:00
committed by GitHub
parent dd90ab5ea7
commit a834cdb2eb
19 changed files with 386 additions and 79 deletions

View File

@@ -18,7 +18,12 @@
import { ElNotification } from "element-plus";
export default (text: string): void => {
if (location.protocol === "http:") {
if (!text) {
return;
}
// Clipboard functionality is restricted in production HTTP environments for security reasons.
// In development, clipboard is allowed even over HTTP to ease testing.
if (process.env.NODE_ENV === "production" && location.protocol === "http:") {
ElNotification({
title: "Warning",
message: "Clipboard is not supported in HTTP environments",