Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
0xzio committed Jan 13, 2025
1 parent 67898d2 commit a1aebea
Show file tree
Hide file tree
Showing 8 changed files with 1,331 additions and 849 deletions.
2 changes: 1 addition & 1 deletion apps/desktop-bak/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "desktop",
"name": "desktop-bak",
"private": true,
"version": "0.0.1",
"type": "module",
Expand Down
60 changes: 0 additions & 60 deletions apps/desktop-bak/src/components/AuthProvider.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions apps/desktop-bak/src/hooks/useReset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { commandUIAtom, useCommandAppUI } from './useCommandAppUI'
import { positionAtom } from './useCommandPosition'
import { currentCommandAtom } from './useCurrentCommand'
import { useCommands, useItems } from './useItems'
import { searchAtom, useSearch } from './useSearch'
import { searchAtom } from './useSearch'

export function useReset(setQ: (value: string) => void) {
const { setItems } = useItems()
Expand All @@ -22,7 +22,7 @@ export function useReset(setQ: (value: string) => void) {
store.set(positionAtom, 'ROOT')
store.set(currentCommandAtom, null as any)
store.set(commandUIAtom, {} as any)
store.set(searchAtom, '')
store.set(searchAtom, '' as any)
}

if (position === 'COMMAND_APP_DETAIL') {
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop-bak/src/hooks/useSearch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { atom, useAtom } from 'jotai'

export const searchAtom = atom('')
export const searchAtom = atom<string>('')
export function useSearch() {
const [search, setSearch] = useAtom(searchAtom)

Expand Down
89 changes: 81 additions & 8 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,90 @@
"build:verbose": "tauri build --verbose"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@fower/atomic-props": "^2.1.1",
"@fower/react": "^2.1.1",
"@glideapps/glide-data-grid": "^6.0.3",
"@iconify/react": "^5.0.1",
"@octokit/auth-app": "^6.0.1",
"@octokit/oauth-app": "^6.0.0",
"@octokit/rest": "^20.0.2",
"@penx/api": "workspace:*",
"@penx/app": "workspace:*",
"@penx/cmdk": "workspace:*",
"@penx/constants": "workspace:*",
"@penx/encryption": "workspace:*",
"@penx/event": "workspace:*",
"@penx/hooks": "workspace:*",
"@penx/icons": "workspace:*",
"@penx/local-db": "workspace:*",
"@penx/model": "workspace:*",
"@penx/model-types": "workspace:*",
"@penx/session": "workspace:*",
"@penx/shared": "workspace:*",
"@penx/storage": "workspace:*",
"@penx/store": "workspace:*",
"@penx/trpc-client": "workspace:*",
"@penx/unique-id": "workspace:*",
"@penx/wagmi": "workspace:*",
"@penx/widget": "workspace:*",
"@tauri-apps/api": "^2.2.0",
"@tauri-apps/plugin-opener": "^2.2.3"
"@tauri-apps/plugin-dialog": "^2.2.0",
"@tauri-apps/plugin-fs": "^2.2.0",
"@tauri-apps/plugin-global-shortcut": "^2.2.0",
"@tauri-apps/plugin-http": "^2.2.0",
"@tauri-apps/plugin-notification": "^2.2.0",
"@tauri-apps/plugin-os": "^2.2.0",
"@tauri-apps/plugin-shell": "^2.2.0",
"@tauri-apps/plugin-opener": "^2.2.3",
"@web3modal/wagmi": "^4.1.11",
"add": "^2.0.6",
"clsx": "^2.1.0",
"cmdk": "^1.0.0",
"idb-keyval": "^6.2.1",
"jotai": "^2.6.0",
"ky": "^1.1.3",
"lucide-react": "^0.344.0",
"next": "14.1.4",
"penx": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-fast-compare": "^3.2.2",
"react-inlinesvg": "^4.1.3",
"react-markdown": "^9.0.1",
"tauri-plugin-clipboard-api": "^2.0.0-beta.2",
"tauri-plugin-jarvis-api": "workspace:*",
"tauri-plugin-shellx-api": "^2.0.7",
"uikit": "workspace:*",
"wagmi": "^2.6.0"
},
"devDependencies": {
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@biomejs/biome": "^1.6.3",
"@penx/tsconfig": "workspace:*",
"@tauri-apps/cli": "^2",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.2",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.2",
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.23",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "~5.6.2",
"vite": "^6.0.3",
"@tauri-apps/cli": "^2"
"autoprefixer": "^10.4.19",
"cross-env": "^7.0.3",
"cssnano": "^6.1.2",
"eslint": "^8.57.0",
"eslint-config-next": "14.1.0",
"husky": "^9.0.11",
"internal-ip": "^7.0.0",
"lint-staged": "^15.2.2",
"postcss": "^8.4.38",
"postcss-import": "^16.1.0",
"postcss-nesting": "^12.1.1",
"tailwindcss": "^3.4.3",
"typescript": "^5.6.2",
"vite": "^6.0.3"
}
}
12 changes: 9 additions & 3 deletions apps/desktop/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"baseUrl": ".",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
Expand All @@ -16,9 +17,14 @@

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noUnusedLocals": false,
"noUnusedParameters": false,
"strictPropertyInitialization": false,
"noFallthroughCasesInSwitch": true,

"paths": {
"~/*": ["src/*"]
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down
2 changes: 1 addition & 1 deletion packages/uikit/src/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const Checkbox = forwardRef<HTMLLabelElement, CheckboxProps>(
{...inputProps}
/>

{render({ ...state, children, colorScheme })}
{render({ ...state, children, colorScheme } as any)}

{children && (
<Box className="uikit-checkbox-label" leading-1em>
Expand Down
Loading

0 comments on commit a1aebea

Please sign in to comment.