mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-10 05:14:58 +00:00
Compare commits
4 Commits
add-copyca
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
064e440d00 | ||
|
|
129b85a8cf | ||
|
|
586154d4e1 | ||
|
|
b819231a01 |
@@ -420,6 +420,8 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-03-10
|
||||
|
||||
## 2026-03-09
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
@@ -451,6 +453,12 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
- tools: add Alpine (apk) support to ensure_dependencies and is_package_installed [@MickLesk](https://github.com/MickLesk) ([#12703](https://github.com/community-scripts/ProxmoxVE/pull/12703))
|
||||
- tools.func: extend hwaccel with ROCm [@MickLesk](https://github.com/MickLesk) ([#12707](https://github.com/community-scripts/ProxmoxVE/pull/12707))
|
||||
|
||||
### 🌐 Website
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- feat: add CopycatWarningToast component for user warnings [@BramSuurdje](https://github.com/BramSuurdje) ([#12733](https://github.com/community-scripts/ProxmoxVE/pull/12733))
|
||||
|
||||
## 2026-03-08
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"generated": "2026-03-09T18:17:48Z",
|
||||
"generated": "2026-03-10T00:18:38Z",
|
||||
"versions": [
|
||||
{
|
||||
"slug": "2fauth",
|
||||
@@ -557,9 +557,9 @@
|
||||
{
|
||||
"slug": "homebox",
|
||||
"repo": "sysadminsmedia/homebox",
|
||||
"version": "v0.24.1",
|
||||
"version": "v0.24.2",
|
||||
"pinned": false,
|
||||
"date": "2026-03-07T15:41:21Z"
|
||||
"date": "2026-03-09T19:54:02Z"
|
||||
},
|
||||
{
|
||||
"slug": "homepage",
|
||||
@@ -1236,9 +1236,9 @@
|
||||
{
|
||||
"slug": "pulse",
|
||||
"repo": "rcourtman/Pulse",
|
||||
"version": "v5.1.22",
|
||||
"version": "v5.1.23",
|
||||
"pinned": false,
|
||||
"date": "2026-03-08T12:24:34Z"
|
||||
"date": "2026-03-09T22:22:12Z"
|
||||
},
|
||||
{
|
||||
"slug": "pve-scripts-local",
|
||||
@@ -1516,9 +1516,9 @@
|
||||
{
|
||||
"slug": "tasmoadmin",
|
||||
"repo": "TasmoAdmin/TasmoAdmin",
|
||||
"version": "v4.3.4",
|
||||
"version": "v5.0.0",
|
||||
"pinned": false,
|
||||
"date": "2026-01-25T22:16:41Z"
|
||||
"date": "2026-03-09T20:51:03Z"
|
||||
},
|
||||
{
|
||||
"slug": "tautulli",
|
||||
|
||||
@@ -5,6 +5,7 @@ import { Inter } from "next/font/google";
|
||||
import Script from "next/script";
|
||||
import React from "react";
|
||||
|
||||
import { CopycatWarningToast } from "@/components/copycat-warning-toast";
|
||||
import { ThemeProvider } from "@/components/theme-provider";
|
||||
import { analytics, basePath } from "@/config/site-config";
|
||||
import QueryProvider from "@/components/query-provider";
|
||||
@@ -116,6 +117,7 @@ export default function RootLayout({
|
||||
<div className="w-full max-w-[1440px] ">
|
||||
{children}
|
||||
<Toaster richColors />
|
||||
<CopycatWarningToast />
|
||||
</div>
|
||||
</div>
|
||||
<Footer />
|
||||
|
||||
24
frontend/src/components/copycat-warning-toast.tsx
Normal file
24
frontend/src/components/copycat-warning-toast.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { toast } from "sonner";
|
||||
|
||||
const STORAGE_KEY = "copycat-warning-dismissed";
|
||||
|
||||
export function CopycatWarningToast() {
|
||||
useEffect(() => {
|
||||
if (typeof window === "undefined")
|
||||
return;
|
||||
if (localStorage.getItem(STORAGE_KEY) === "true")
|
||||
return;
|
||||
|
||||
toast.warning("Beware of copycat sites. Always verify the URL is correct before trusting or running scripts.", {
|
||||
position: "top-center",
|
||||
duration: Number.POSITIVE_INFINITY,
|
||||
closeButton: true,
|
||||
onDismiss: () => localStorage.setItem(STORAGE_KEY, "true"),
|
||||
});
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user