mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-02-01 14:51:50 +00:00
Patch http Url in build.func and /data/page.tsx (#1849)
This commit is contained in:
parent
ca7fb9b929
commit
6fa540f0da
@ -40,7 +40,7 @@ const DataFetcher: React.FC = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("http://api.htl-braunau.at/data/json");
|
const response = await fetch("https://api.htl-braunau.at/data/json");
|
||||||
if (!response.ok) throw new Error("Failed to fetch data: ${response.statusText}");
|
if (!response.ok) throw new Error("Failed to fetch data: ${response.statusText}");
|
||||||
const result: DataModel[] = await response.json();
|
const result: DataModel[] = await response.json();
|
||||||
setData(result);
|
setData(result);
|
||||||
|
@ -792,7 +792,7 @@ advanced_settings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_to_api() {
|
post_to_api() {
|
||||||
local API_URL="http://api.community-scripts.org/upload"
|
local API_URL="https://api.community-scripts.org/upload"
|
||||||
local pve_version="not found"
|
local pve_version="not found"
|
||||||
pve_version=$(pveversion | awk -F'[/ ]' '{print $2}')
|
pve_version=$(pveversion | awk -F'[/ ]' '{print $2}')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user