remove logging
This commit is contained in:
parent
4a0db151d4
commit
d0acb97e36
5 changed files with 8 additions and 10 deletions
|
@ -14,7 +14,7 @@ export default function Preview(props) {
|
|||
(item) => parseInt(item.id) === parseInt(selected)
|
||||
)?.[0];
|
||||
|
||||
console.log(currentItem, selectedItem, session);
|
||||
// console.log(currentItem, selectedItem, session);
|
||||
|
||||
return (
|
||||
<div className={styles.preview}>
|
||||
|
|
|
@ -7,7 +7,7 @@ const pageSize = 48;
|
|||
|
||||
export default function Select(props) {
|
||||
const { data, total, onSelect, selected = {} } = props;
|
||||
console.log("data", data, "selected", selected, total);
|
||||
// console.log("data", data, "selected", selected, total);
|
||||
|
||||
const [scrollIndex, setScrollIndex] = useState(36);
|
||||
const [scrollData, setScrollData] = useState([]);
|
||||
|
|
|
@ -13,7 +13,7 @@ export default NextAuth({
|
|||
],
|
||||
callbacks: {
|
||||
async signIn({ user, account, profile, email, credentials }) {
|
||||
console.log(user, account, profile, email, credentials);
|
||||
// console.log(user, account, profile, email, credentials);
|
||||
if (user.image != profile.image_url) {
|
||||
await prisma.user.update({
|
||||
data: {
|
||||
|
|
|
@ -29,11 +29,11 @@ export default function Home() {
|
|||
// };
|
||||
|
||||
const applyBorder = () => {
|
||||
console.log("apply");
|
||||
// console.log("apply");
|
||||
fetch("api/user/border/@me", { method: "POST", body: selected })
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
if (res.error) {
|
||||
alertService.error(`error: ${res.error}`);
|
||||
} else {
|
||||
|
@ -46,7 +46,7 @@ export default function Home() {
|
|||
fetch("api/user/border/@me")
|
||||
.then((res) => res.json())
|
||||
.then((dat) => {
|
||||
console.log("border data", dat);
|
||||
// console.log("border data", dat);
|
||||
setBorderData(dat);
|
||||
setSelected(dat?.borderId || 0);
|
||||
});
|
||||
|
@ -73,7 +73,7 @@ export default function Home() {
|
|||
const timer = setTimeout(() => {
|
||||
// if data has not loaded in 5 seconds
|
||||
if (!data || !borderData) {
|
||||
console.log(data, borderData);
|
||||
// console.log(data, borderData);
|
||||
Router.reload();
|
||||
} else {
|
||||
console.log("data loaded properly, not reloading.");
|
||||
|
|
|
@ -73,9 +73,7 @@ async function main() {
|
|||
const community_item_type = border.community_item_type;
|
||||
|
||||
const filename_large = border.community_item_data.item_image_large;
|
||||
if (filename_large == "c05c0155855b74c28e0f6e9417d4afa3c99d76ef.png") {
|
||||
console.log(border);
|
||||
}
|
||||
|
||||
const filename_small = border.community_item_data.item_image_small;
|
||||
|
||||
const appInfo = await getAppInfo(appid);
|
||||
|
|
Loading…
Reference in a new issue