changed domain
parent
105ab057c8
commit
a26f998385
|
@ -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';
|
||||
}
|
||||
|
|
25
src/App.js
25
src/App.js
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue