Commit 52b6368
committed
[change] Load leaflet from django-leaflet in dashboard map #709
The dashboard map was loading netjsongraph.min.js which bundled
both ECharts and Leaflet, while django-leaflet was already loading
Leaflet separately on device/location detail pages.
Switched to the ECharts-only build of netjsongraph.js and load
Leaflet JS from django-leaflet instead, avoiding bundling it twice
and reducing the page load size.
Closes #7091 parent f7d7945 commit 52b6368
File tree
6 files changed
+26
-15
lines changed- openwisp_monitoring
- device
- static/monitoring/js/lib
- tests
- tests
6 files changed
+26
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | 591 | | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | 381 | | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
904 | 903 | | |
| 904 | + | |
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | | - | |
1245 | 1244 | | |
| 1245 | + | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | 1248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
| 809 | + | |
| 810 | + | |
810 | 811 | | |
811 | 812 | | |
812 | 813 | | |
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
816 | 817 | | |
817 | | - | |
| 818 | + | |
| 819 | + | |
818 | 820 | | |
819 | 821 | | |
820 | 822 | | |
| |||
828 | 830 | | |
829 | 831 | | |
830 | 832 | | |
831 | | - | |
| 833 | + | |
| 834 | + | |
832 | 835 | | |
833 | 836 | | |
834 | 837 | | |
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
838 | 841 | | |
839 | | - | |
| 842 | + | |
| 843 | + | |
840 | 844 | | |
841 | 845 | | |
842 | 846 | | |
| |||
889 | 893 | | |
890 | 894 | | |
891 | 895 | | |
892 | | - | |
| 896 | + | |
| 897 | + | |
893 | 898 | | |
894 | 899 | | |
895 | 900 | | |
| |||
898 | 903 | | |
899 | 904 | | |
900 | 905 | | |
901 | | - | |
| 906 | + | |
| 907 | + | |
902 | 908 | | |
903 | 909 | | |
904 | 910 | | |
| |||
926 | 932 | | |
927 | 933 | | |
928 | 934 | | |
929 | | - | |
| 935 | + | |
| 936 | + | |
930 | 937 | | |
931 | 938 | | |
932 | 939 | | |
| |||
936 | 943 | | |
937 | 944 | | |
938 | 945 | | |
939 | | - | |
| 946 | + | |
| 947 | + | |
940 | 948 | | |
941 | 949 | | |
942 | 950 | | |
| |||
963 | 971 | | |
964 | 972 | | |
965 | 973 | | |
966 | | - | |
| 974 | + | |
| 975 | + | |
967 | 976 | | |
968 | 977 | | |
969 | 978 | | |
| |||
973 | 982 | | |
974 | 983 | | |
975 | 984 | | |
976 | | - | |
| 985 | + | |
| 986 | + | |
977 | 987 | | |
978 | 988 | | |
979 | 989 | | |
| |||
0 commit comments