-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from selankon/feature/fix_locate_view
Feature/fix locate view
- Loading branch information
Showing
18 changed files
with
329 additions
and
473 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
import * as constants from "./src/locateConstants"; | ||
import epics from "./src/locateEpics"; | ||
import { LocateMenu } from "./src/locateMenu"; | ||
import Locate from "./src/locatePage"; | ||
import { reducer } from "./src/locateReducer"; | ||
import * as selector from "./src/locateSelectors"; | ||
|
||
export default { | ||
name: "Locate", | ||
page: Locate, | ||
menu: LocateMenu, | ||
store: { | ||
name: "locate", | ||
epics, | ||
reducer, | ||
selector, | ||
constants, | ||
}, | ||
} as LimePlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
export const getLocation = (api) => api.call("lime-location", "get", {}); | ||
import api from "utils/uhttpd.service"; | ||
|
||
export const getNodesandlinks = (api) => | ||
export const getLocation = () => api.call("lime-location", "get", {}); | ||
|
||
export const getNodesandlinks = async () => | ||
api.call("lime-location", "all_nodes_and_links", {}); | ||
|
||
export const changeLocation = (api, location) => | ||
api.call("lime-location", "set", { | ||
export const changeLocation = async (location) => { | ||
return await api.call("lime-location", "set", { | ||
lat: location.lat.toFixed(5), | ||
lon: location.lon.toFixed(5), | ||
}); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.