remove placeholders (for now), remove api logging

develop
Thomas Lynch 2 years ago
parent 3923b42d32
commit a3ab7ef1be
  1. 2
      api.js
  2. 27
      pages/account.js
  3. 27
      pages/domains.js

@ -9,11 +9,9 @@ export default async function ApiCall(route, method, body, stateCallback, finish
options.body = body;
options.headers = { 'Content-Type': 'application/json' };
}
console.log(options)
NProgress.start();
let response = await fetch(route, options)
.then(res => res.json());
console.log(response)
stateCallback && stateCallback(response);
} catch(e) {
console.error(e);

@ -16,32 +16,7 @@ const Account = (props) => {
}, []);
if (!accountData.user) {
return (
<>
<Head>
<title>Account</title>
</Head>
<h5 className="fw-bold">
Controls:
</h5>
<div className="list-group">
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
</div>
</>
);
return (<>Loading...</>);
}
const { user, maps, acls, globalAcl, csrf } = accountData;

@ -16,32 +16,7 @@ export default function Domains(props) {
}, []);
if (!accountData.user) {
return (
<>
<Head>
<title>Domains</title>
</Head>
<h5 className="fw-bold">
Available Domains:
</h5>
<div className="list-group">
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
<LoadingPlaceholder />
</div>
</>
);
return (<>Loading...</>);
}
const { user, csrf } = accountData;

Loading…
Cancel
Save