Skip to content

Commit

Permalink
Merge branch 'master' into integrated_poi_search
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Jun 4, 2024
2 parents b75c507 + 66077f0 commit 46bae86
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push_dist_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
node-version: lts/gallium
node-version: v20.14.0

- name: Build

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
node-version: lts/gallium
node-version: v20.14.0

- name: Test and Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ There is [an experimental `navi` branch](https://github.com/graphhopper/graphhop
## Start development:

* Clone this repository.
* Make sure node and npm are installed. We recommend using the gallium LTS (node v16.17.0 & npm v8.15.0).
* Make sure node and npm are installed. We recommend using the gallium LTS (node v20.14.0 and npm 10.7.0).
* npm install
* npm run serve
* Open your browser at http://0.0.0.0:3000/.
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ setApi(config.routingApi, config.geocodingApi, apiKey || '')

const initialCustomModelStr = url.searchParams.get('custom_model')
const queryStore = new QueryStore(getApi(), initialCustomModelStr)
const routeStore = new RouteStore(queryStore)
const routeStore = new RouteStore()

setStores({
settingsStore: new SettingsStore(),
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/SettingsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function SettingsToggle({ title, enabled, onClick }: { title: string; enabled: b
function SettingsCheckbox({ title, enabled, onClick }: { title: string; enabled: boolean; onClick: () => void }) {
return (
<div className={styles.settingsCheckbox} onClick={onClick}>
<input type="checkbox" checked={enabled}></input>
<input type="checkbox" checked={enabled} onChange={ignore => {}}></input>
<label style={{ color: enabled ? '#5b616a' : 'gray' }}>{title}</label>
</div>
)
Expand Down
5 changes: 1 addition & 4 deletions src/stores/RouteStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@ export default class RouteStore extends Store<RouteStoreState> {
}
}

private readonly queryStore: QueryStore

constructor(queryStore: QueryStore) {
constructor() {
super(RouteStore.getInitialState())
this.queryStore = queryStore
}

reduce(state: RouteStoreState, action: Action): RouteStoreState {
Expand Down
2 changes: 1 addition & 1 deletion test/stores/RouteStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('RouteStore', () => {
})

function createStore() {
const store = new RouteStore(new QueryStore(new DummyApi()))
const store = new RouteStore()
Dispatcher.register(store)
return store
}
Expand Down

0 comments on commit 46bae86

Please sign in to comment.