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