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

View File

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