Skip to content

Commit

Permalink
chore: test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
0xzio committed Jun 24, 2024
1 parent fcac393 commit b4073ff
Show file tree
Hide file tree
Showing 151 changed files with 1 addition and 2,760 deletions.
59 changes: 1 addition & 58 deletions apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,62 +1,5 @@
import { useEffect } from 'react'
import { ToastContainer } from 'uikit'
import { appEmitter } from '@penx/event'
import { StoreProvider } from '@penx/store'
import { TrpcProvider } from '@penx/trpc-client'
import '@glideapps/glide-data-grid/dist/index.css'
import { initFower } from './common/initFower'
import { MainApp } from './MainApp'
import '~/styles/globals.css'
import '~/styles/command.scss'
import { fixPathEnv } from 'tauri-plugin-shellx-api'
import { registerDefaultAppHotkey } from '@penx/app'
import { handleEscape } from './common/handleEscape'
import { watchDesktopLogin } from './common/watchDesktopLogin'
import { watchExtensionDevChange } from './common/watchExtensionDevChange'
import { useInitThemeMode } from './hooks/useInitThemeMode'

initFower()

async function init() {
handleEscape()
watchExtensionDevChange()
watchDesktopLogin()
registerDefaultAppHotkey()
}

init()

function MyApp() {
useEffect(() => {
fixPathEnv() // without this, PATH variable may not be loaded and thus non-system shell commands may fail
const handleSignOut = async () => {
// const user = store.user.getUser()
// await setMnemonicToLocal(user.id, '')
// await clearAuthorizedUser()
// await setLocalSession(null as any)
// store.setToken(null as any)
// store.user.setUser(null as any)
// store.user.setMnemonic('')
// appEmitter.emit('SIGN_OUT_SUCCESSFULLY')
}
appEmitter.on('SIGN_OUT', handleSignOut)
return () => {
appEmitter.off('SIGN_OUT', handleSignOut)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

useInitThemeMode()

return (
<StoreProvider>
<TrpcProvider>
<ToastContainer position="bottom-right" />
<MainApp />
<div id="portal" />
</TrpcProvider>
</StoreProvider>
)
return <div>Test</div>
}

export default MyApp

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b4073ff

Please sign in to comment.