changed domain

main
alex 2024-05-30 23:32:35 +02:00
parent 105ab057c8
commit a26f998385
2 changed files with 12 additions and 17 deletions

View File

@ -9,13 +9,13 @@
<iframe
id="shx-product-pipeline"
style="width: 100%; border: none; height: 1257px"
src="https://shxproductpipeline.ex.umbach.dev/"
src="https://pp.shinnex.de/"
title="Produkt Pipeline"
scrolling="no"
onload="
(function() {
function resizeIframe(event) {
if (event.origin == 'https://shxproductpipeline.ex.umbach.dev') {
if (event.origin == 'https://pp.shinnex.de') {
const iframe = document.getElementById('shx-product-pipeline');
iframe.style.height = event.data + 'px';
}

View File

@ -114,20 +114,15 @@ function Card({
}
function VoteRequest(name, up) {
fetch(
`https://devdash.ex.umbach.dev/api/v1/productpipeline/vote?t=${
up === true ? "u" : "d"
}`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
name: name,
}),
}
).catch(() => {});
fetch(`${process.env.REACT_APP_API_URL}/vote?t=${up === true ? "u" : "d"}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
name: name,
}),
}).catch(() => {});
}
function App() {
@ -158,7 +153,7 @@ function App() {
useEffect(() => {
const fetchProducts = () =>
fetch("https://devdash.ex.umbach.dev/api/v1/productpipeline")
fetch(process.env.REACT_APP_API_URL)
.then((res) => res.json())
.then((data) => {
setProducts(data);