* added static map field * leaflet draw plugin added to map control * Editable layer working no icons * Save and load data in form field * images and icons working * Locate plugin added, and loads on geolocation * organized map control code * loads layer as per form * new form clears editableLayers * update: leaflet 1.2.0 and leaflet-draw 0.4.2 * changed to ERPNext colors * Multiple map fields and fixes * fixes codacy suggestions * loaded geojson data editable * Map layers editable * add only one layer on draw:create * code organized with helper functions * Replaced Leaflet Draw with Leaflet Editable * read values from database * layers saved in db * Using Patched Leaflet Draw (mobile-friendly) * Working Map field with multiple forms open * Leaflet Draw css image path fix * Leaflet Draw Fixes Leaflet draw css image paths Fixes Circle marker and Circle * locate to geolocation or set featurecollection as center * [fix] leaflet fitBounds padding 50,50 * [Fix] Leaflet (auto) locate * Map field basic test * added refresh button on map * Mute map geojson in print format * renamed Map field to Geolocation * Suggested changes and fixes * eslint disable * csslint allow important
125 lines
2.1 KiB
Text
125 lines
2.1 KiB
Text
{
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"es6": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
"tab",
|
|
{ "SwitchCase": 1 }
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"off"
|
|
],
|
|
"semi": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"camelcase": [
|
|
"off"
|
|
],
|
|
"no-unused-vars": [
|
|
"warn"
|
|
],
|
|
"no-redeclare": [
|
|
"warn"
|
|
],
|
|
"no-console": [
|
|
"warn"
|
|
],
|
|
"no-extra-boolean-cast": [
|
|
"off"
|
|
],
|
|
"no-control-regex": [
|
|
"off"
|
|
]
|
|
},
|
|
"root": true,
|
|
"globals": {
|
|
"frappe": true,
|
|
"$": true,
|
|
"jQuery": true,
|
|
"moment": true,
|
|
"hljs": true,
|
|
"Awesomplete": true,
|
|
"Sortable": true,
|
|
"Showdown": true,
|
|
"Taggle": true,
|
|
"Gantt": true,
|
|
"Slick": true,
|
|
"Webcam": true,
|
|
"PhotoSwipe": true,
|
|
"PhotoSwipeUI_Default": true,
|
|
"fluxify": true,
|
|
"io": true,
|
|
"c3": true,
|
|
"__": true,
|
|
"_p": true,
|
|
"_f": true,
|
|
"repl": true,
|
|
"Class": true,
|
|
"locals": true,
|
|
"cint": true,
|
|
"cstr": true,
|
|
"cur_frm": true,
|
|
"cur_dialog": true,
|
|
"cur_page": true,
|
|
"cur_list": true,
|
|
"cur_tree": true,
|
|
"msg_dialog": true,
|
|
"is_null": true,
|
|
"in_list": true,
|
|
"has_common": true,
|
|
"has_words": true,
|
|
"validate_email": true,
|
|
"get_number_format": true,
|
|
"format_number": true,
|
|
"format_currency": true,
|
|
"comment_when": true,
|
|
"replace_newlines": true,
|
|
"open_url_post": true,
|
|
"toTitle": true,
|
|
"lstrip": true,
|
|
"strip": true,
|
|
"strip_html": true,
|
|
"replace_all": true,
|
|
"flt": true,
|
|
"precision": true,
|
|
"md5": true,
|
|
"CREATE": true,
|
|
"AMEND": true,
|
|
"CANCEL": true,
|
|
"copy_dict": true,
|
|
"get_number_format_info": true,
|
|
"print_table": true,
|
|
"Layout": true,
|
|
"web_form_settings": true,
|
|
"$c": true,
|
|
"$a": true,
|
|
"$i": true,
|
|
"$bg": true,
|
|
"$y": true,
|
|
"$c_obj": true,
|
|
"refresh_many": true,
|
|
"refresh_field": true,
|
|
"toggle_field": true,
|
|
"get_field_obj": true,
|
|
"get_query_params": true,
|
|
"unhide_field": true,
|
|
"hide_field": true,
|
|
"set_field_options": true,
|
|
"getCookie": true,
|
|
"getCookies": true,
|
|
"get_url_arg": true,
|
|
"QUnit": true,
|
|
"JsBarcode": true,
|
|
"L": true
|
|
}
|
|
}
|