171239cb6SGreg Roach/** 271239cb6SGreg Roach * webtrees: online genealogy 3242a7862SGreg Roach * Copyright (C) 2019 webtrees development team 471239cb6SGreg Roach * This program is free software: you can redistribute it and/or modify 571239cb6SGreg Roach * it under the terms of the GNU General Public License as published by 671239cb6SGreg Roach * the Free Software Foundation, either version 3 of the License, or 771239cb6SGreg Roach * (at your option) any later version. 871239cb6SGreg Roach * This program is distributed in the hope that it will be useful, 971239cb6SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1071239cb6SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1171239cb6SGreg Roach * GNU General Public License for more details. 1271239cb6SGreg Roach * You should have received a copy of the GNU General Public License 1371239cb6SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 1471239cb6SGreg Roach */ 1571239cb6SGreg Roach 1671239cb6SGreg Roachimport $ from "jquery"; 1771239cb6SGreg Roachwindow.$ = window.jQuery = $; 1871239cb6SGreg Roach 1971239cb6SGreg Roachimport "popper.js"; 2071239cb6SGreg Roachimport "bootstrap"; 2171239cb6SGreg Roachimport "datatables.net"; 2271239cb6SGreg Roach 23*08362db4SGreg Roach// Just import the subset of icons that we use in resources/views/icons/ 24*08362db4SGreg Roachimport { dom, library } from "@fortawesome/fontawesome-svg-core"; 25*08362db4SGreg Roachimport { 26*08362db4SGreg Roach faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard, 27*08362db4SGreg Roach faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser 28*08362db4SGreg Roach} from "@fortawesome/free-regular-svg-icons"; 29*08362db4SGreg Roachlibrary.add( 30*08362db4SGreg Roach faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard, 31*08362db4SGreg Roach faMap, faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser 32*08362db4SGreg Roach); 33*08362db4SGreg Roachimport { 34*08362db4SGreg Roach faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars, 35*08362db4SGreg Roach faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless, 36*08362db4SGreg Roach faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList, 37*08362db4SGreg Roach faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt, 38*08362db4SGreg Roach faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faSearch, faSearchMinus, faSearchPlus, 39*08362db4SGreg Roach faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack, 40*08362db4SGreg Roach faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench 41*08362db4SGreg Roach} from "@fortawesome/free-solid-svg-icons"; 42*08362db4SGreg Roachlibrary.add( 43*08362db4SGreg Roach faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars, 44*08362db4SGreg Roach faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless, 45*08362db4SGreg Roach faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList, 46*08362db4SGreg Roach faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt, 47*08362db4SGreg Roach faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faSearch, faSearchMinus, faSearchPlus, 48*08362db4SGreg Roach faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack, 49*08362db4SGreg Roach faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench 50*08362db4SGreg Roach); 51*08362db4SGreg Roachdom.watch(); 52*08362db4SGreg Roach 5371239cb6SGreg Roachwindow.Bloodhound = require("corejs-typeahead/dist/bloodhound.min.js"); 5471239cb6SGreg Roachimport "corejs-typeahead"; 5571239cb6SGreg Roach 5671239cb6SGreg Roachimport "datatables.net-bs4"; 5771239cb6SGreg Roach 5871239cb6SGreg Roach// See https://github.com/RubaXa/Sortable/issues/1229 5975b444f7SGreg Roach//window.Sortable = require('sortablejs'); 6075b444f7SGreg Roachimport Sortable from 'sortablejs'; 6175b444f7SGreg Roachwindow.Sortable = Sortable; 6271239cb6SGreg Roach 6371239cb6SGreg Roachimport "select2"; 64bdbdb10cSGreg Roach//import "select2/dist/js/i18n/*.js"; 65bdbdb10cSGreg Roach 66bdbdb10cSGreg Roachimport "select2/dist/js/i18n/af.js"; 67bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ar.js"; 68bdbdb10cSGreg Roachimport "select2/dist/js/i18n/az.js"; 69bdbdb10cSGreg Roachimport "select2/dist/js/i18n/bg.js"; 70bdbdb10cSGreg Roachimport "select2/dist/js/i18n/bn.js"; 71bdbdb10cSGreg Roachimport "select2/dist/js/i18n/bs.js"; 72bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ca.js"; 73bdbdb10cSGreg Roachimport "select2/dist/js/i18n/cs.js"; 74bdbdb10cSGreg Roachimport "select2/dist/js/i18n/da.js"; 75bdbdb10cSGreg Roachimport "select2/dist/js/i18n/de.js"; 76bdbdb10cSGreg Roachimport "select2/dist/js/i18n/dsb.js"; 77bdbdb10cSGreg Roachimport "select2/dist/js/i18n/el.js"; 78bdbdb10cSGreg Roachimport "select2/dist/js/i18n/en.js"; 79bdbdb10cSGreg Roachimport "select2/dist/js/i18n/es.js"; 80bdbdb10cSGreg Roachimport "select2/dist/js/i18n/et.js"; 81bdbdb10cSGreg Roachimport "select2/dist/js/i18n/eu.js"; 82bdbdb10cSGreg Roachimport "select2/dist/js/i18n/fa.js"; 83bdbdb10cSGreg Roachimport "select2/dist/js/i18n/fi.js"; 84bdbdb10cSGreg Roachimport "select2/dist/js/i18n/fr.js"; 85bdbdb10cSGreg Roachimport "select2/dist/js/i18n/gl.js"; 86bdbdb10cSGreg Roachimport "select2/dist/js/i18n/he.js"; 87bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hi.js"; 88bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hr.js"; 89bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hsb.js"; 90bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hu.js"; 91bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hy.js"; 92bdbdb10cSGreg Roachimport "select2/dist/js/i18n/id.js"; 93bdbdb10cSGreg Roachimport "select2/dist/js/i18n/is.js"; 94bdbdb10cSGreg Roachimport "select2/dist/js/i18n/it.js"; 95bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ja.js"; 96bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ka.js"; 97bdbdb10cSGreg Roachimport "select2/dist/js/i18n/km.js"; 98bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ko.js"; 99bdbdb10cSGreg Roachimport "select2/dist/js/i18n/lt.js"; 100bdbdb10cSGreg Roachimport "select2/dist/js/i18n/lv.js"; 101bdbdb10cSGreg Roachimport "select2/dist/js/i18n/mk.js"; 102bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ms.js"; 103bdbdb10cSGreg Roachimport "select2/dist/js/i18n/nb.js"; 104bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ne.js"; 105bdbdb10cSGreg Roachimport "select2/dist/js/i18n/nl.js"; 106bdbdb10cSGreg Roachimport "select2/dist/js/i18n/pl.js"; 107bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ps.js"; 108bdbdb10cSGreg Roachimport "select2/dist/js/i18n/pt-BR.js"; 109bdbdb10cSGreg Roachimport "select2/dist/js/i18n/pt.js"; 110bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ro.js"; 111bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ru.js"; 112bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sk.js"; 113bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sl.js"; 114bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sq.js"; 115bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sr-Cyrl.js"; 116bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sr.js"; 117bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sv.js"; 118bdbdb10cSGreg Roachimport "select2/dist/js/i18n/th.js"; 119bdbdb10cSGreg Roachimport "select2/dist/js/i18n/tk.js"; 120bdbdb10cSGreg Roachimport "select2/dist/js/i18n/tr.js"; 121bdbdb10cSGreg Roachimport "select2/dist/js/i18n/uk.js"; 122bdbdb10cSGreg Roachimport "select2/dist/js/i18n/vi.js"; 123bdbdb10cSGreg Roachimport "select2/dist/js/i18n/zh-CN.js"; 124bdbdb10cSGreg Roachimport "select2/dist/js/i18n/zh-TW.js"; 12571239cb6SGreg Roach 126510d3f2fSGreg Roachimport "hideshowpassword"; 127510d3f2fSGreg Roach 12871239cb6SGreg Roachimport "moment"; 12971239cb6SGreg Roach 13071239cb6SGreg Roachimport "jquery-colorbox"; 13171239cb6SGreg Roach 13271239cb6SGreg Roachimport "wheelzoom"; 13371239cb6SGreg Roach 13471239cb6SGreg Roachimport "leaflet"; 13571239cb6SGreg Roachimport "leaflet-providers"; 13671239cb6SGreg Roachwindow.GeoSearch = require("leaflet-geosearch"); 13771239cb6SGreg Roachimport "leaflet.markercluster"; 13871239cb6SGreg Roachimport "beautifymarker"; 139