Skip to content

Commit

Permalink
refactor: rm editor
Browse files Browse the repository at this point in the history
  • Loading branch information
0xzio committed Jul 2, 2024
1 parent 73d0fb4 commit ba94029
Show file tree
Hide file tree
Showing 1,162 changed files with 12,090 additions and 80,178 deletions.
24 changes: 0 additions & 24 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,68 +29,44 @@
"@penx/check-list",
"@penx/divider",
"@penx/image",
"@penx/paragraph",
"@penx/word-count",
"@penx/block-selector",
"@penx/code-block",
"@penx/file",
"@penx/link",
"@penx/storage-estimate",
"@penx/editor-shared",
"@penx/extension-dev-server",
"@penx/local-db",
"@penx/session",
"@penx/app",
"@penx/widget",
"@penx/mnemonic",
"@penx/math",
"@penx/sync-server-client",
"@penx/dnd-projection",
"@penx/editor-transforms",
"@penx/extension-list",
"@penx/model",
"@penx/shared",
"@penx/google-translate",
"@penx/unique-id",
"@penx/autoformat",
"@penx/editor",
"@penx/editor-types",
"@penx/extension-typings",
"@penx/model-types",
"@penx/slate-lists",
"@penx/worker",
"@penx/catalogue",
"@penx/editor-common",
"@penx/encryption",
"@penx/hooks",
"@penx/remark-slate",
"@penx/store",
"@penx/cmdk",
"@penx/editor-composition",
"@penx/eslint-config",
"@penx/icons",
"@penx/sdk",
"@penx/sync",
"@penx/constants",
"@penx/editor-leaf",
"eslint-config-custom",
"@penx/serializer",
"@penx/trpc-client",
"@penx/context-menu",
"@penx/editor-queries",
"@penx/event",
"@penx/loader",
"@penx/service",
"@penx/tsconfig",
"@penx/database-ui",
"@penx/cell-fields",
"@penx/types",
"@penx/table-search",
"@penx/database-context",
"@penx/storage",
"@penx/node-normalizer",
"@penx/node-hooks",
"@penx/extension-store",
"@penx/google-drive",
"uikit"
]
Expand Down
4 changes: 0 additions & 4 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@
"@octokit/auth-app": "^6.0.1",
"@octokit/oauth-app": "^6.0.0",
"@octokit/rest": "^20.0.2",
"@penx/app": "workspace:*",
"@penx/cell-fields": "workspace:*",
"@penx/cmdk": "workspace:*",
"@penx/constants": "workspace:*",
"@penx/database-context": "workspace:*",
"@penx/encryption": "workspace:*",
"@penx/event": "workspace:*",
"@penx/hooks": "workspace:*",
Expand All @@ -42,7 +39,6 @@
"@penx/trpc-client": "workspace:*",
"@penx/unique-id": "workspace:*",
"@penx/widget": "workspace:*",
"@penx/worker": "workspace:*",
"@penxio/api": "workspace:*",
"@penxio/preset-ui": "workspace:*",
"@tanstack/react-query": "^5.45.1",
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import { TrpcProvider } from '@penx/trpc-client'
import '@glideapps/glide-data-grid/dist/index.css'
import { Fomir } from 'fomir'
import { fixPathEnv } from 'tauri-plugin-shellx-api'
import { registerDefaultAppHotkey } from '@penx/app'
import { handleEscape } from './common/handleEscape'
import { initApplicationCommands } from './common/initApplicationCommands'
import { initFower } from './common/initFower'
import { initHotkeys } from './common/initHotkeys'
import { installBuiltinCreations } from './common/installBuiltinCreations'
import { watchCreationDevChange } from './common/watchCreationDevChange'
import { watchDesktopLogin } from './common/watchDesktopLogin'
import { watchCreationDevChange } from './common/watchExtensionDevChange'
import { useInitThemeMode } from './hooks/useInitThemeMode'
import { MainApp } from './MainApp'
import '~/styles/globals.css'
import '~/styles/command.scss'
import FomirUIkit from './fomir-uikit'
import { registerDefaultAppHotkey } from './components/BindAppHotkey'
import { config } from './config'

initFower()
Expand Down
10 changes: 2 additions & 8 deletions apps/desktop/src/MainApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,7 @@ export function MainApp() {
if (isLoading) return null

return (
<SessionProvider
value={{
data: session!,
loading: isSessionLoading,
}}
>
{session && <InitUserToStore userId={session?.userId} />}
<>
<SiweModal />

<Box
Expand All @@ -98,6 +92,6 @@ export function MainApp() {
)}
{isBoarded && <CommandPalette />}
</Box>
</SessionProvider>
</>
)
}
60 changes: 0 additions & 60 deletions apps/desktop/src/components/AuthProvider.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { commandLoadingAtom } from '~/hooks/useCommandAppLoading'
import { CommandAppUI } from '~/hooks/useCommandAppUI'
import { AboutApp } from './AboutApp'
import { ClipboardHistoryApp } from './ClipboardHistoryApp'
import { DatabaseApp } from './DatabaseApp/DatabaseApp'
import { FormApp } from './FormApp/FormApp'
import { GeneralSettings } from './GeneralSettings/GeneralSettings'
import { InstalledCreationsApp } from './InstalledCreationsApp/InstalledCreationsApp'
Expand Down Expand Up @@ -58,10 +57,6 @@ export const CommandApp = memo(
// return <TodayApp />
// }

// if (ui.type === 'database') {
// return <DatabaseApp />
// }

// if (ui.type === 'clipboard-history') {
// return <ClipboardHistoryApp />
// }
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit ba94029

Please sign in to comment.