Commit Graph

525 Commits

Author SHA1 Message Date
Bryan Housel
45d85e04c5 Make authenticated api calls if possible 2016-10-24 01:21:38 -04:00
Bryan Housel
053074d076 Export live binding for services in iD.services, fix init/reset
(closes #3324)

Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.

This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding.  `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel
aa2c4afd47 Flatten names, cleanups in index.html 2016-10-04 22:03:38 -04:00
Bryan Housel
87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -04:00
Tom MacWright
760c515c8a Fix source toggle, fix way drawing 2016-09-04 17:33:42 -04:00
Tom MacWright
b493c85399 Refactor away multi requirement 2016-09-03 15:13:20 -04:00
Bryan Housel
44d16b25b7 Restore the source switcher 2016-09-03 00:37:37 -04:00
Tom MacWright
cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Tom MacWright
6341d4e4b5 one-shot build (#3266)
* One-shot development

* Move jsonp to module
* Tooltip -> module
* Remove d3.jsonp
* Fix tooltip lint
* Load all libs but d3 itself with require
* Add top-level brfs

* Unformat intro graph
2016-08-10 15:25:19 -07:00
Tom MacWright
af776501d3 Require locale, second pass (#3259)
* Require locale, second pass

* Remove t global, remove t where it isn't needed
2016-07-21 16:20:13 -04:00
Tom MacWright
604d1e2719 import lodash (#3257) 2016-07-19 12:04:16 -04:00
Bryan Housel
7ca6d06254 Replace iD global with iD.Context() module (#3254) 2016-07-19 10:15:32 -04:00
Bryan Housel
cb71e90384 Module for iD.Detect() (#3243)
* convert iD.Detect() iife to a module

* iD.Detect() should return loaded locale (except for 'en')

(The previous code was a hack to replace the detected locale with the loaded
locale.  Now that Detect is a module, we can not replace the detected locale
from external code, but we can have Detect() return the locale we really want)
2016-07-13 09:15:47 -04:00
Kushan Joshi
fc680a2e9a external modules for services 2016-07-06 14:39:58 -04:00
Kushan Joshi
b3492b17a0 external modules for SVG 2016-07-06 14:39:14 -04:00
Tom MacWright
9c82bba6fb [wip] use diff3 like a module (#3228)
* [wip] use diff3 like a module

* Fix diff3 style, comment out diff3 test
2016-07-06 14:16:25 -04:00
Tom MacWright
b15338b964 Use local jxon 2016-07-05 19:00:12 -04:00
Tom MacWright
712d471a6b Use togeojson package 2016-07-05 18:29:15 -04:00
Tom MacWright
869725551f Use marked as a dependency 2016-07-05 18:22:43 -04:00
Tom MacWright
8f68221b9b Use osm-auth as a package. 2016-07-05 18:14:36 -04:00
Kushan Joshi
9f2a251d31 Fixing Interdependecy between ui.preset and ui.core 2016-07-02 16:00:52 +05:30
Bryan Housel
2e10c9e21e Eliminate vendored rbush library
(re: #3180)
2016-06-26 21:34:10 -04:00
Bryan Housel
448fa7aa0c Eliminate vendored sexagesimal library
(re: #3180)
2016-06-24 16:46:55 -04:00
Kushan Joshi
4083a0e29e adding a lanes() to return lane data 2016-06-22 16:11:46 -04:00
Kushan Joshi
2b4cb618b2 Remove svg and deal with it separately with ui 2016-06-22 12:34:43 +05:30
Kushan Joshi
6a56ad547c external modules for renderer 2016-06-22 12:34:43 +05:30
Kushan Joshi
68e0400332 Add external modules to validations 2016-06-22 12:34:43 +05:30
Kushan Joshi
25485c40fb external modules for presets 2016-06-22 12:34:43 +05:30
Kushan Joshi
52c466bc27 external modules for operations 2016-06-22 12:34:43 +05:30
Kushan Joshi
e79f8fb022 external modules for util 2016-06-22 12:34:43 +05:30
Kushan Joshi
33b2b1e6fd external modules for modes 2016-06-22 12:34:43 +05:30
Kushan Joshi
0939983515 external modules for behavior 2016-06-22 12:34:43 +05:30
Kushan Joshi
22a510c3f6 Add lib/id/index.js to index.html 2016-06-20 22:16:08 +05:30
Kushan Joshi
7267d05e3d external modules for "geo" 2016-06-18 20:38:39 +05:30
Kushan Joshi
b62f446045 final iD.ui changes 2016-06-17 17:09:45 +05:30
Kushan Joshi
5b10acc5c3 add iD.ui.preset 2016-06-17 17:04:26 +05:30
Kushan Joshi
07e5e908f2 making test run 2016-06-17 17:02:04 +05:30
Martin Raifer
447532900b refactor ui into ES6 modules for #3118 2016-06-17 17:01:32 +05:30
Kushan Joshi
6a4adb476c create submodule iD.ui.intro 2016-06-17 16:57:43 +05:30
Kushan Joshi
14f0d95e94 modularize iD.behavior 2016-06-17 12:53:19 +05:30
Kushan Joshi
46d68bca87 modularize iD.renderer 2016-06-17 12:53:19 +05:30
Beau Gunderson
fb838645ae refactor svg into ES6 modules for #3118 2016-06-16 11:58:23 -07:00
Bryan Housel
cdbca258af Cleanup scripts in index.html 2016-06-16 11:55:00 -04:00
Bryan Housel
7cad599052 Merge branch 'modules-core' of https://github.com/kepta/iD into kepta-modules-core 2016-06-16 11:47:25 -04:00
Bryan Housel
0c0642e321 Attempt to put services into module 2016-06-16 11:11:00 -04:00
Kushan Joshi
59e6581aa5 Modularize iD.core 2016-06-16 18:41:37 +05:30
Kushan Joshi
2db0f636b1 modularize iD.operations 2016-06-16 00:42:43 +05:30
Kushan Joshi
b2095a502a convert iD.geo to geo modules 2016-06-15 21:11:10 +05:30
Bryan Housel
528cb5fae0 Fix conflicts, reference js/lib/id for built modules 2016-06-15 11:01:46 -04:00
Bryan Housel
4fd6b94973 Consistent single quotes in .html 2016-06-15 10:43:48 -04:00