45 Commits

Author SHA1 Message Date
Martin Raifer
9469ee2e24 update deprecated html meta property, fixes #10425 2024-08-23 11:40:54 +02:00
Martin Raifer
c8a3cf154b make more cdn's and API urls/settings configurable
* CDNs for OCI, NSI, etc.
* OSM API (URL and oauth API settings)
* taginfo API
* nominatim API
2022-10-14 19:19:29 +02:00
Martin Raifer
280acfa661 Replace RapiD credentials with iD credentials 2022-06-02 14:46:11 +02:00
Bryan Housel
6058f89460 Upgrade to osm-auth v2 which uses OAuth2 to connect to OSM API 2022-06-02 13:07:50 +02:00
Martin Raifer
632e24137a drop legacy builds, unneeded polyfills, document drop of IE11 support 2022-02-03 13:07:28 +01:00
Bryan Housel
5040be45e9 Sync up RapiD and iD esbuild config (#8776)
* Sync up RapiD and iD esbuild config scripts

* Remove uglify too

* Remove babel/preset-react

* Just have `npm run start` start a modern build, remove `quickstart`

* Better setup for modern/legacy build
- much simpler babel config
- separate entry points for modern and legacy (ie11/phantom)
- explicitly import 'core-js' and 'regenerator-runtime' instead of using deprecated 'babel/polyfill' plugin
- still need 'core-js-bundle' for the test/index.html, so Mocha/PhantomJS combo will work.

* Revert "Better setup for modern/legacy build"

This reverts commit 4ce17defa8a3c6f4b3a9168bcd672235bfc651be.

Co-authored-by: Milos Brzakovic (E-Search) <mbrzakovic@microsoft.com>
2022-01-17 14:18:27 +01:00
Quincy Morgan
09592ccdcf Fix redundant instantiation of coreContext (close #7926) 2020-08-28 14:51:27 -04:00
Josh Lee
943ca85616 Fix capitalization error introduced in a refactor 2020-06-02 19:41:35 -04:00
Quincy Morgan
7f0db9f3bf Disable elastic scroll page bounce on standalone iD (close #7576) 2020-05-29 13:11:19 -04:00
Quincy Morgan
a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
36082a8119 Use ideditor as the container class instead of id-container
Scope all CSS to iD's container (close #7437)
Don't style html or body elements unless running standalone iD
2020-03-22 16:54:12 -07:00
Quincy Morgan
f625406ccc Convert some element ids to classes to avoid collisions when embedding iD
Clarify some footer class names
2020-03-20 13:43:07 -07:00
Bryan Housel
c0090929e0 Remove no longer needed substring - see dc7fba4bf 2020-02-21 10:32:27 -05:00
Bryan Housel
e19bcb77d5 Require init() call before coreContext starts doing things
(closes #7304)
2020-01-29 19:27:12 -05:00
Bryan Housel
6a4a1d57a7 Make a separate build:legacy target that runs buble
- `iD.js` for most browsers, `iD.legacy.js` for IE11/PhantomJS
- Skip buble plugin during normal development for faster builds
2020-01-21 15:25:10 -05:00
Bryan Housel
c548d0e216 Add ability to dynamically load a different bundle in IE11 2020-01-21 13:19:06 -05:00
Bryan Housel
ff1eea43a8 Remove Google Analytics, also actually export iD.utilDetect 2019-05-02 19:12:39 -04:00
Tobias
08b721c0e6 Remove crazyegg from the preview-index.html
It looks like it is more than 6 years old 372bb7d892/dist/index.html (L28) and the linked URL seems to be broken:
> $ curl http://dnn506yrbagrg.cloudfront.net/pages/scripts/0013/6714.js
> "undefined"==typeof CE2&&(CE2={}),CE2.uid=136714,CE2.status="no data available";
2019-05-02 21:38:29 +02:00
Tobias
ef8999b585 Use ' instead of " like everywhere else 2019-05-02 21:03:29 +02:00
Tobias
173836d548 Add an empty favicon
There are multiple calls to the favicon on the preview.ideditor.com system in one session:
 > GET http://preview.ideditor.com/favicon.ico 403 (Forbidden)

According to https://stackoverflow.com/questions/1321878/how-to-prevent-favicon-ico-requests#comment50777781_13416784 this should sho an empty favicon which will prevent the browser to try loading the missing icon.
2019-05-02 21:00:59 +02:00
Bryan Housel
2f81cd6729 Add source switcher to dist/index.html
(closes #4405)
2017-11-12 11:37:53 -05:00
Bryan Housel
30ff68348f Don't disable boundries when disable_features list is present
(also removed some unused functions)
2017-10-23 15:53:46 -04:00
Bryan Housel
7da27f2a16 Hide administrative boundaries by default
(closes #4292)
2017-09-18 22:31:11 -04:00
Bryan Housel
9b7d79a3fe Use live bound object for presets object, change context.presets() getter 2016-11-14 15:44:02 -05:00
Bryan Housel
93d50b4e87 Use live bound object for imagery array, remove context.imagery() accessor
Also update documentation, closes #3359
2016-11-14 11:16:45 -05: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
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
Bryan Housel
8b9a9e32f6 Remove reference to mapillary-js assets from dist/index.html
(This was a holdover from testing a while ago. Assets are loaded from CDN now)
2016-06-15 11:08:56 -04:00
Bryan Housel
4fd6b94973 Consistent single quotes in .html 2016-06-15 10:43:48 -04:00
Kushan Joshi
6b70cf3db8 temporary css fixup 2016-05-26 18:44:04 +05:30
Kushan Joshi
f81ff29645 Mapillary Js, second stab 2016-05-25 15:51:36 +05:30
Bryan Housel
2eca4da18c Change taginfo to service in dist/index.html 2016-02-17 11:45:30 -05:00
Bryan Housel
949935d846 Check iD.detect().support instead of relying on conditional IE comment 2015-12-01 14:25:32 -05:00
Bryan Housel
90bc645e44 Remove Raven code (closes #2769) 2015-09-03 22:14:22 -04:00
Sajjad Anwar
dab742a501 Make taginfo configurable and default to disabling taginfo related features 2014-10-24 16:26:37 -07:00
John Firebaugh
dd0e08b244 Write presets and imagery to standalone files 2014-10-23 15:52:29 -07:00
John Firebaugh
ce0b9b4633 Add IE standards incantations 2013-10-25 13:02:59 -07:00
John Firebaugh
5158782f34 Fix unsupported message (fixes #1720) 2013-08-22 12:57:31 -07:00
Tom MacWright
9a75ce95d4 Simplify conditional comment and reinstate. 2013-05-08 10:31:29 -04:00
Tom MacWright
ddd817a16c Hate conditional comments 2013-05-08 10:14:16 -04:00
Tom MacWright
1c7d0ebc66 Make conditional comment for IE stricter 2013-05-08 10:05:04 -04:00
John Firebaugh
19e21e1d26 Modify window.focus canary
I suspect whatever is doing the modification is swallowing
exceptions.
2013-04-23 13:45:10 -07:00
John Firebaugh
aedd5ee46e Create a dist directory
This directory will contain the built sources (iD.js, iD.css)
and images. On a release branch, we will check in the generated
files. For the osm.us/master deploy, it should run make and use
dist/ as the root.

Paths in css are relative, e.g. url(img/foo.png).
2013-04-22 10:50:36 -07:00