mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-06 07:49:17 +00:00
Compare commits
6 Commits
11244f0bf1
...
084fd890ea
Author | SHA1 | Date | |
---|---|---|---|
|
084fd890ea | ||
|
645972077e | ||
|
24dfa9590e | ||
|
cecf179b34 | ||
|
1f39208c1c | ||
|
63061942b9 |
@ -37,6 +37,10 @@ Do not break established syntax in this file, as it is automatically updated by
|
|||||||
- Update all Alpine LXC's to 3.21 (Docker, Grafana, Nextcloud, Vaultwarden, Zigbee2Mqtt, Alpine) [@MickLesk](https://github.com/MickLesk) ([#1803](https://github.com/community-scripts/ProxmoxVE/pull/1803))
|
- Update all Alpine LXC's to 3.21 (Docker, Grafana, Nextcloud, Vaultwarden, Zigbee2Mqtt, Alpine) [@MickLesk](https://github.com/MickLesk) ([#1803](https://github.com/community-scripts/ProxmoxVE/pull/1803))
|
||||||
- [Standardization] Fix Spelling for "Setup Python3" [@MickLesk](https://github.com/MickLesk) ([#1810](https://github.com/community-scripts/ProxmoxVE/pull/1810))
|
- [Standardization] Fix Spelling for "Setup Python3" [@MickLesk](https://github.com/MickLesk) ([#1810](https://github.com/community-scripts/ProxmoxVE/pull/1810))
|
||||||
|
|
||||||
|
### 🌐 Website
|
||||||
|
|
||||||
|
- Filter out duplicate scripts in LatestScripts component and sort by creation date [@BramSuurdje](https://github.com/BramSuurdje) ([#1828](https://github.com/community-scripts/ProxmoxVE/pull/1828))
|
||||||
|
|
||||||
### 🧰 Maintenance
|
### 🧰 Maintenance
|
||||||
|
|
||||||
- [core]: Remove Figlet | Get Headers by Repo & Store Local [@MickLesk](https://github.com/MickLesk) ([#1802](https://github.com/community-scripts/ProxmoxVE/pull/1802))
|
- [core]: Remove Figlet | Get Headers by Repo & Store Local [@MickLesk](https://github.com/MickLesk) ([#1802](https://github.com/community-scripts/ProxmoxVE/pull/1802))
|
||||||
|
@ -9,7 +9,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
|
|||||||
APP="Homarr"
|
APP="Homarr"
|
||||||
var_tags="arr;dashboard"
|
var_tags="arr;dashboard"
|
||||||
var_cpu="2"
|
var_cpu="2"
|
||||||
var_ram="2048"
|
var_ram="4096"
|
||||||
var_disk="8"
|
var_disk="8"
|
||||||
var_os="debian"
|
var_os="debian"
|
||||||
var_version="12"
|
var_version="12"
|
||||||
|
@ -35,8 +35,18 @@ export function LatestScripts({ items }: { items: Category[] }) {
|
|||||||
|
|
||||||
const latestScripts = useMemo(() => {
|
const latestScripts = useMemo(() => {
|
||||||
if (!items) return [];
|
if (!items) return [];
|
||||||
|
|
||||||
const scripts = items.flatMap((category) => category.scripts || []);
|
const scripts = items.flatMap((category) => category.scripts || []);
|
||||||
return scripts.sort(
|
|
||||||
|
// Filter out duplicates by slug
|
||||||
|
const uniqueScriptsMap = new Map<string, Script>();
|
||||||
|
scripts.forEach((script) => {
|
||||||
|
if (!uniqueScriptsMap.has(script.slug)) {
|
||||||
|
uniqueScriptsMap.set(script.slug, script);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return Array.from(uniqueScriptsMap.values()).sort(
|
||||||
(a, b) =>
|
(a, b) =>
|
||||||
new Date(b.date_created).getTime() - new Date(a.date_created).getTime(),
|
new Date(b.date_created).getTime() - new Date(a.date_created).getTime(),
|
||||||
);
|
);
|
||||||
@ -49,7 +59,7 @@ export function LatestScripts({ items }: { items: Category[] }) {
|
|||||||
const goToPreviousPage = () => {
|
const goToPreviousPage = () => {
|
||||||
setPage((prevPage) => prevPage - 1);
|
setPage((prevPage) => prevPage - 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
const startIndex = (page - 1) * ITEMS_PER_PAGE;
|
const startIndex = (page - 1) * ITEMS_PER_PAGE;
|
||||||
const endIndex = page * ITEMS_PER_PAGE;
|
const endIndex = page * ITEMS_PER_PAGE;
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ msg_ok "Set up Node.js Repository"
|
|||||||
msg_info "Installing Node.js/pnpm"
|
msg_info "Installing Node.js/pnpm"
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y nodejs
|
$STD apt-get install -y nodejs
|
||||||
$STD npm install -g pnpm
|
$STD npm install -g pnpm@latest
|
||||||
msg_ok "Installed Node.js/pnpm"
|
msg_ok "Installed Node.js/pnpm"
|
||||||
|
|
||||||
msg_info "Installing Homarr (Patience)"
|
msg_info "Installing Homarr (Patience)"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"script": "ct/homarr.sh",
|
"script": "ct/homarr.sh",
|
||||||
"resources": {
|
"resources": {
|
||||||
"cpu": 2,
|
"cpu": 2,
|
||||||
"ram": 2048,
|
"ram": 4096,
|
||||||
"hdd": 8,
|
"hdd": 8,
|
||||||
"os": "debian",
|
"os": "debian",
|
||||||
"version": "12"
|
"version": "12"
|
||||||
|
Loading…
Reference in New Issue
Block a user