feat(crawler): fix async crawling
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
{
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
"extends": ["@commitlint/config-conventional"]
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
@@ -85,14 +83,8 @@
|
||||
"preset": "jest-expo"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.ts": [
|
||||
"prettier --write",
|
||||
"eslint --fix"
|
||||
],
|
||||
"*.tsx": [
|
||||
"prettier --write",
|
||||
"eslint --fix"
|
||||
]
|
||||
"*.ts": ["prettier --write", "eslint --fix"],
|
||||
"*.tsx": ["prettier --write", "eslint --fix"]
|
||||
},
|
||||
"main": "expo-router/entry",
|
||||
"name": "drc-news",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { endpoint } from "@/api/endpoint";
|
||||
import {
|
||||
Bookmark,
|
||||
BookmarkedArticle,
|
||||
BookmarkPayload,
|
||||
BookmarkedArticle,
|
||||
} from "@/api/schema/feed-management/bookmark";
|
||||
import {
|
||||
ArticleFilters,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { formatDistanceToNowStrict, Locale } from "date-fns";
|
||||
import { Locale, formatDistanceToNowStrict } from "date-fns";
|
||||
import { fr } from "date-fns/locale";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type React from "react";
|
||||
|
||||
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
||||
import { SafeAreaProvider } from "react-native-safe-area-context";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type React from "react";
|
||||
|
||||
import { TamaguiProvider } from "tamagui";
|
||||
|
||||
import { config } from "~/tamagui.config";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React, { useCallback } from "react";
|
||||
|
||||
import { ActivityIndicator, Dimensions, FlatList, FlatListProps } from "react-native";
|
||||
import { View, XStack, YStack } from "tamagui";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { useCallback } from "react";
|
||||
|
||||
import ContentLoader, { Circle, Rect } from "react-content-loader/native";
|
||||
import { Dimensions, FlatList } from "react-native";
|
||||
import { View } from "tamagui";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React, { useCallback } from "react";
|
||||
|
||||
import { ActivityIndicator, FlatList, FlatListProps } from "react-native";
|
||||
import { YStack } from "tamagui";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { useCallback, useState } from "react";
|
||||
|
||||
import { ActivityIndicator, Alert } from "react-native";
|
||||
import { Button, GetProps } from "tamagui";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React, { useCallback } from "react";
|
||||
|
||||
import { FlatList, FlatListProps } from "react-native";
|
||||
import { Paragraph, XStack, YStack } from "tamagui";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Link } from "expo-router";
|
||||
import { GetProps, styled, XStack, YStack } from "tamagui";
|
||||
import { GetProps, XStack, YStack, styled } from "tamagui";
|
||||
|
||||
import { SourceOverview } from "@/api/schema/feed-management/source";
|
||||
import { SourceFollowButton } from "@/ui/components/content/source/SourceFollowButton";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { useCallback } from "react";
|
||||
|
||||
import ContentLoader, { Circle, Rect } from "react-content-loader/native";
|
||||
import { FlatList } from "react-native";
|
||||
import { YStack } from "tamagui";
|
||||
|
||||
@@ -5,10 +5,10 @@ import {
|
||||
GetProps,
|
||||
Label,
|
||||
SizeTokens,
|
||||
styled,
|
||||
Input as TamaguiInput,
|
||||
XStack,
|
||||
YStack,
|
||||
styled,
|
||||
} from "tamagui";
|
||||
|
||||
import { Caption } from "@/ui/components/typography";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { GetProps, Label, styled, TextArea as TamaguiTextArea, XStack, YStack } from "tamagui";
|
||||
import { GetProps, Label, TextArea as TamaguiTextArea, XStack, YStack, styled } from "tamagui";
|
||||
|
||||
import { withController } from "@/ui/components/controls/forms/withController";
|
||||
import { Caption } from "@/ui/components/typography";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
|
||||
import { Controller, ControllerProps } from "react-hook-form";
|
||||
|
||||
type WithControllerProps = {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import React from "react";
|
||||
|
||||
import { styled, View, XStack } from "tamagui";
|
||||
import { View, XStack, styled } from "tamagui";
|
||||
|
||||
import { Text } from "@/ui/components/typography";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ArrowRight } from "@tamagui/lucide-icons";
|
||||
import { Href, Link } from "expo-router";
|
||||
import { GetProps, Paragraph, styled, XStack } from "tamagui";
|
||||
import { GetProps, Paragraph, XStack, styled } from "tamagui";
|
||||
|
||||
import { Text } from "@/ui/components/typography";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { StatusBar } from "expo-status-bar";
|
||||
import React from "react";
|
||||
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||
import { styled, YStack } from "tamagui";
|
||||
import { YStack, styled } from "tamagui";
|
||||
|
||||
import { ScreenHeading } from "@/ui/components/layout/ScreenHeading";
|
||||
import { ScreenSection } from "@/ui/components/layout/ScreenSection";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type React from "react";
|
||||
|
||||
import { Paragraph, ParagraphProps } from "tamagui";
|
||||
|
||||
export const Caption = (props: React.PropsWithChildren<ParagraphProps>) => {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type React from "react";
|
||||
|
||||
import { H2, ParagraphProps } from "tamagui";
|
||||
|
||||
export const Display = (props: React.PropsWithChildren<ParagraphProps>) => {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type React from "react";
|
||||
|
||||
import { H4, ParagraphProps } from "tamagui";
|
||||
|
||||
export const Heading = (props: React.PropsWithChildren<ParagraphProps>) => {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type React from "react";
|
||||
|
||||
import { Paragraph, ParagraphProps } from "tamagui";
|
||||
|
||||
export const Text = (props: React.PropsWithChildren<ParagraphProps>) => {
|
||||
|
||||
Reference in New Issue
Block a user