Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add globocom directional navigation #28

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build:index-js": "create-index-js -i \"\" src -c dirs.txt --filesConfig files.txt",
"build:logo": "node -r ts-node/register src/buildLogo",
"build:webpack": "webpack --progress",
"spelling": "cspell --gitignore \"**\" \".github/**\""
"spelling": "cspell --gitignore \"**\""
},
"dependencies": {
"@ant-design/colors": "^6.0.0",
Expand All @@ -32,6 +32,7 @@
"boolean-to-signed": "^1.0.1",
"classnames": "^2.3.1",
"detect-touch": "^1.1.2",
"directional-navigation": "github:globocom/directional-navigation",
"emitter2": "^1.0.0",
"favicons": "^6.2.2",
"favicons-webpack-plugin": "^5.0.2",
Expand Down Expand Up @@ -130,4 +131,4 @@
"name": "Rajas Paranjpe",
"url": "https://github.com/ChocolateLoverRaj"
}
}
}
7 changes: 7 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ import LazyCss from './LazyCss'
import { autorunCleanup } from 'mobx-autorun-cleanup'
import theme from './theme'
import never from 'never'
import Navigator from 'directional-navigation'

const navigator = new Navigator()

navigator.add({ id: 'app' })

navigator.init()

const themes: Record<DefaultThemes, LazyCss> = { light, dark }

Expand Down