mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 20:41:50 +08:00
chore: sort imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { styled, ListItem, Divider, Switch } from '@toeverything/components/ui';
|
||||
import { Divider, ListItem, styled, Switch } from '@toeverything/components/ui';
|
||||
import { useSettings } from './use-settings';
|
||||
|
||||
export const SettingsList = () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { styled } from '@toeverything/components/ui';
|
||||
import { SettingsList } from './SettingsList';
|
||||
import { Footer } from './footer';
|
||||
import { SettingsList } from './SettingsList';
|
||||
|
||||
export const SettingsPanel = () => {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import format from 'date-fns/format';
|
||||
import { Typography, styled } from '@toeverything/components/ui';
|
||||
import { styled, Typography } from '@toeverything/components/ui';
|
||||
import { useUserAndSpaces } from '@toeverything/datasource/state';
|
||||
import format from 'date-fns/format';
|
||||
import { usePageLastUpdated, useWorkspaceAndPageId } from '../util';
|
||||
|
||||
export const LastModified = () => {
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { MoveToIcon } from '@toeverything/components/icons';
|
||||
import {
|
||||
ListItem,
|
||||
ListIcon,
|
||||
styled,
|
||||
Typography,
|
||||
} from '@toeverything/components/ui';
|
||||
import { ListItem, styled, Typography } from '@toeverything/components/ui';
|
||||
import { LOGOUT_COOKIES, LOGOUT_LOCAL_STORAGE } from '@toeverything/utils';
|
||||
import { getAuth, signOut } from 'firebase/auth';
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { message } from '@toeverything/components/ui';
|
||||
import { useSettingFlags, type SettingFlags } from './use-setting-flags';
|
||||
import { copyToClipboard } from '@toeverything/utils';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useSettingFlags, type SettingFlags } from './use-setting-flags';
|
||||
import {
|
||||
duplicatePage,
|
||||
getPageTitle,
|
||||
exportHtml,
|
||||
exportMarkdown,
|
||||
importWorkspace,
|
||||
exportWorkspace,
|
||||
useWorkspaceAndPageId,
|
||||
// useReadingMode,
|
||||
clearWorkspace,
|
||||
duplicatePage,
|
||||
exportHtml,
|
||||
exportMarkdown,
|
||||
exportWorkspace,
|
||||
getPageTitle,
|
||||
importWorkspace,
|
||||
useWorkspaceAndPageId,
|
||||
} from './util';
|
||||
|
||||
interface BaseSettingItem {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { services } from '@toeverything/datasource/db-service';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
const UNTITLED = 'untitled';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ClipboardParse } from '@toeverything/components/editor-core';
|
||||
import { createEditor } from '@toeverything/components/affine-editor';
|
||||
import { ClipboardParse } from '@toeverything/components/editor-core';
|
||||
import { fileExporter } from './file-exporter';
|
||||
|
||||
interface CreateClipboardParseProps {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
export { duplicatePage } from './duplicate-page';
|
||||
export { exportHtml, exportMarkdown } from './handle-export';
|
||||
export { getPageTitle, usePageLastUpdated } from './get-page-info';
|
||||
export { exportHtml, exportMarkdown } from './handle-export';
|
||||
export {
|
||||
importWorkspace,
|
||||
exportWorkspace,
|
||||
clearWorkspace,
|
||||
exportWorkspace,
|
||||
importWorkspace,
|
||||
} from './inspector-workspace';
|
||||
export { useWorkspaceAndPageId } from './use-workspace-page';
|
||||
export { useReadingMode } from './use-reading-mode';
|
||||
export { useWorkspaceAndPageId } from './use-workspace-page';
|
||||
|
||||
Reference in New Issue
Block a user