diff --git a/packages/frontend/component/src/ui/loading/styles.css.ts b/packages/frontend/component/src/ui/loading/styles.css.ts index 94f92627c4..11e4d366d9 100644 --- a/packages/frontend/component/src/ui/loading/styles.css.ts +++ b/packages/frontend/component/src/ui/loading/styles.css.ts @@ -12,7 +12,6 @@ export const loading = style({ [speedVar]: '1.5s', }, textRendering: 'optimizeLegibility', - WebkitFontSmoothing: 'antialiased', transform: 'rotate(-90deg)', animation: `${rotate} ${speedVar} infinite linear`, }); diff --git a/packages/frontend/core/src/components/affine/setting-modal/general-setting/index.tsx b/packages/frontend/core/src/components/affine/setting-modal/general-setting/index.tsx index 31e344396f..4c359206c2 100644 --- a/packages/frontend/core/src/components/affine/setting-modal/general-setting/index.tsx +++ b/packages/frontend/core/src/components/affine/setting-modal/general-setting/index.tsx @@ -3,7 +3,6 @@ import { AppearanceIcon, InformationIcon, KeyboardIcon, - PluginIcon, } from '@blocksuite/icons'; import type { ReactElement, SVGProps } from 'react'; @@ -14,13 +13,11 @@ import { AppearanceSettings } from './appearance'; import { BillingSettings } from './billing'; import { PaymentIcon, UpgradeIcon } from './icons'; import { AFFiNECloudPlans } from './plans'; -import { Plugins } from './plugins'; import { Shortcuts } from './shortcuts'; export type GeneralSettingKeys = | 'shortcuts' | 'appearance' - | 'plugins' | 'about' | 'plans' | 'billing'; @@ -52,12 +49,6 @@ export const useGeneralSettingList = (): GeneralSettingList => { icon: KeyboardIcon, testId: 'shortcuts-panel-trigger', }, - { - key: 'plugins', - title: 'Plugins', - icon: PluginIcon, - testId: 'plugins-panel-trigger', - }, { key: 'about', title: t['com.affine.aboutAFFiNE.title'](), @@ -96,8 +87,6 @@ export const GeneralSetting = ({ generalKey }: GeneralSettingProps) => { return ; case 'appearance': return ; - case 'plugins': - return ; case 'about': return ; case 'plans': diff --git a/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx b/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx index 8c0c3a8735..dab5785095 100644 --- a/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx +++ b/packages/frontend/core/src/components/affine/setting-modal/setting-sidebar/index.tsx @@ -127,9 +127,6 @@ export const SettingSidebar = ({
{generalSettingList.map(({ title, icon, key, testId }) => { - if (!runtimeConfig.enablePlugin && key === 'plugins') { - return null; - } return (
{ const canAdjustAvatar = !workspaceIsLoading && avatarUrl && isOwner; return ( -
+
{ -
{t['Workspace Name']()}
+
{t['Workspace Name']()}
{ - const t = useAFFiNEI18N(); - const loginStatus = useCurrentLoginStatus(); - - const onSignInClick = useAsyncCallback(async () => { - await signInCloud(); - }, []); - - if (loginStatus === 'authenticated') { - return ; - } - return ( - -
- -
{' '} - {t['Sign in']()} -
- ); -}; - -const UserCard = () => { - const user = useCurrentUser(); - return ( -
- -
-
{user.name}
-
{user.email}
-
-
- ); -}; diff --git a/tests/affine-local/e2e/settings.spec.ts b/tests/affine-local/e2e/settings.spec.ts index ba5e866aa2..6a0f2d0383 100644 --- a/tests/affine-local/e2e/settings.spec.ts +++ b/tests/affine-local/e2e/settings.spec.ts @@ -4,7 +4,6 @@ import { waitForEditorLoad } from '@affine-test/kit/utils/page-logic'; import { openAboutPanel, openAppearancePanel, - openPluginsPanel, openSettingModal, openShortcutsPanel, } from '@affine-test/kit/utils/setting'; @@ -79,15 +78,6 @@ test('Open shortcuts panel', async ({ page }) => { await expect(title).toBeVisible(); }); -test('Open plugins panel', async ({ page }) => { - await openHomePage(page); - await waitForEditorLoad(page); - await openSettingModal(page); - await openPluginsPanel(page); - const title = page.getByTestId('plugins-title'); - await expect(title).toBeVisible(); -}); - test('Open about panel', async ({ page }) => { await openHomePage(page); await waitForEditorLoad(page); diff --git a/tests/kit/utils/setting.ts b/tests/kit/utils/setting.ts index 94d1c2e598..07d709613d 100644 --- a/tests/kit/utils/setting.ts +++ b/tests/kit/utils/setting.ts @@ -19,9 +19,6 @@ export async function openAppearancePanel(page: Page) { export async function openShortcutsPanel(page: Page) { await page.getByTestId('shortcuts-panel-trigger').click(); } -export async function openPluginsPanel(page: Page) { - await page.getByTestId('plugins-panel-trigger').click(); -} export async function openAboutPanel(page: Page) { await page.getByTestId('about-panel-trigger').click();