More refactoring of the featurepipeline, introduction of fetching data from the OSM-API directly per tile, personal theme refactoring
This commit is contained in:
parent
0a9e7c0b36
commit
41a2a79fe9
48 changed files with 746 additions and 590 deletions
|
@ -1,8 +1,9 @@
|
|||
import {Utils} from "../Utils";
|
||||
import * as Assert from "assert";
|
||||
import T from "./TestHelper";
|
||||
import {BBox, GeoOperations} from "../Logic/GeoOperations";
|
||||
import {GeoOperations} from "../Logic/GeoOperations";
|
||||
import {equal} from "assert";
|
||||
import {BBox} from "../Logic/BBox";
|
||||
|
||||
Utils.runningFromConsole = true;
|
||||
|
||||
|
|
|
@ -2,6 +2,9 @@ import T from "./TestHelper";
|
|||
import UserDetails, {OsmConnection} from "../Logic/Osm/OsmConnection";
|
||||
import {UIEventSource} from "../Logic/UIEventSource";
|
||||
import ScriptUtils from "../scripts/ScriptUtils";
|
||||
import {AllKnownLayouts} from "../Customizations/AllKnownLayouts";
|
||||
import {ElementStorage} from "../Logic/ElementStorage";
|
||||
import {Changes} from "../Logic/Osm/Changes";
|
||||
|
||||
|
||||
export default class OsmConnectionSpec extends T {
|
||||
|
@ -15,12 +18,14 @@ export default class OsmConnectionSpec extends T {
|
|||
super("osmconnection", [
|
||||
["login on dev",
|
||||
() => {
|
||||
const osmConn = new OsmConnection(false, false,
|
||||
new UIEventSource<string>(undefined),
|
||||
"Unit test",
|
||||
true,
|
||||
"osm-test"
|
||||
)
|
||||
const osmConn = new OsmConnection({
|
||||
osmConfiguration: "osm-test",
|
||||
layoutName: "Unit test",
|
||||
allElements: new ElementStorage(),
|
||||
changes: new Changes(),
|
||||
oauth_token: new UIEventSource<string>(OsmConnectionSpec._osm_token)
|
||||
}
|
||||
);
|
||||
|
||||
osmConn.userDetails.map((userdetails: UserDetails) => {
|
||||
if (userdetails.loggedIn) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue