Autosave: 20260414-202123
This commit is contained in:
parent
bbda4d699c
commit
7fa9f5ed5f
@ -12,7 +12,6 @@ const { getFirecrawlScaffold, crawlSiteWithFirecrawl } = require('./firecrawl');
|
||||
|
||||
const REQUEST_TIMEOUT = 15000;
|
||||
const PREVIEW_LIMIT = 5;
|
||||
const PAGE_PREVIEW_LIMIT = 10;
|
||||
const NON_HTML_FILE_PATTERN = /\.(?:7z|avi|bmp|css|csv|docx?|eot|gif|ico|jpe?g|js|json|map|mov|mp3|mp4|pdf|png|pptx?|rar|svg|tar|tgz|txt|wav|webm|webp|woff2?|xlsx?|xml|zip)$/i;
|
||||
|
||||
function normalizeUrl(rawUrl) {
|
||||
@ -928,14 +927,14 @@ function buildAggregateAnalysis({
|
||||
failedPages: failedPages.length,
|
||||
discoveredInternalPages,
|
||||
},
|
||||
pages: pageAnalyses.slice(0, PAGE_PREVIEW_LIMIT).map((page) => ({
|
||||
pages: pageAnalyses.map((page) => ({
|
||||
url: page.analyzedUrl,
|
||||
title: page.pageTitle,
|
||||
statusCode: page.statusCode,
|
||||
hasStructuredData: Boolean(page.schema?.hasStructuredData),
|
||||
jsonLdTypes: page.schema?.jsonLd?.types || [],
|
||||
})),
|
||||
failedPages: failedPages.slice(0, PAGE_PREVIEW_LIMIT),
|
||||
failedPages,
|
||||
aggregateSignals,
|
||||
entitlements,
|
||||
firecrawl,
|
||||
|
||||
@ -5,9 +5,7 @@ import {
|
||||
import Head from 'next/head';
|
||||
import Image from 'next/image';
|
||||
import React, { ReactElement, useEffect, useState } from 'react';
|
||||
import { ToastContainer, toast } from 'react-toastify';
|
||||
import DatePicker from 'react-datepicker';
|
||||
import 'react-datepicker/dist/react-datepicker.css';
|
||||
import { toast } from 'react-toastify';
|
||||
|
||||
import CardBox from '../components/CardBox';
|
||||
import LayoutAuthenticated from '../layouts/Authenticated';
|
||||
@ -20,21 +18,17 @@ import FormField from '../components/FormField';
|
||||
import BaseDivider from '../components/BaseDivider';
|
||||
import BaseButtons from '../components/BaseButtons';
|
||||
import BaseButton from '../components/BaseButton';
|
||||
import FormCheckRadio from '../components/FormCheckRadio';
|
||||
import FormCheckRadioGroup from '../components/FormCheckRadioGroup';
|
||||
import FormImagePicker from '../components/FormImagePicker';
|
||||
import { SwitchField } from '../components/SwitchField';
|
||||
import { SelectField } from '../components/SelectField';
|
||||
|
||||
import { update, fetch } from '../stores/users/usersSlice';
|
||||
import { update } from '../stores/users/usersSlice';
|
||||
import { useAppDispatch, useAppSelector } from '../stores/hooks';
|
||||
import { useRouter } from 'next/router';
|
||||
import {findMe} from "../stores/authSlice";
|
||||
import { findMe } from '../stores/authSlice';
|
||||
|
||||
const EditUsers = () => {
|
||||
const { currentUser, isFetching, token } = useAppSelector(
|
||||
(state) => state.auth,
|
||||
);
|
||||
const { currentUser } = useAppSelector((state) => state.auth);
|
||||
const router = useRouter();
|
||||
const dispatch = useAppDispatch();
|
||||
const notify = (type, msg) => toast(msg, { type });
|
||||
@ -83,11 +77,11 @@ const EditUsers = () => {
|
||||
{''}
|
||||
</SectionTitleLineWithButton>
|
||||
<CardBox>
|
||||
{currentUser?.avatar[0]?.publicUrl && <div className={'grid grid-cols-6 gap-4 mb-4'}>
|
||||
{currentUser?.avatar?.[0]?.publicUrl && <div className={'grid grid-cols-6 gap-4 mb-4'}>
|
||||
<div className="col-span-1 w-80 h-80 overflow-hidden border-2 rounded-full inline-flex items-center justify-center mb-8">
|
||||
<Image
|
||||
className="w-80 h-80 max-w-full max-h-full object-cover object-center"
|
||||
src={`${currentUser?.avatar[0]?.publicUrl}`}
|
||||
src={`${currentUser?.avatar?.[0]?.publicUrl}`}
|
||||
alt="Avatar"
|
||||
width={320}
|
||||
height={320}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user