xref: /webtrees/resources/js/vendor.js (revision 809934232ce646e492b261284a0f85a51156a50c)
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
2308362db4SGreg Roach// Just import the subset of icons that we use in resources/views/icons/
2408362db4SGreg Roachimport { dom, library } from "@fortawesome/fontawesome-svg-core";
2508362db4SGreg Roachimport {
26*80993423SGreg Roach    // For resources/views/icons/*
2708362db4SGreg Roach    faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
28*80993423SGreg Roach    faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser,
2908362db4SGreg Roach} from "@fortawesome/free-regular-svg-icons";
3008362db4SGreg Roachlibrary.add(
31*80993423SGreg Roach    // For resources/views/icons/*
3208362db4SGreg Roach    faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
33*80993423SGreg Roach    faMap, faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser,
3408362db4SGreg Roach);
3508362db4SGreg Roachimport {
36*80993423SGreg Roach    // For resources/views/icons/*
3708362db4SGreg Roach    faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
3808362db4SGreg Roach    faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
3908362db4SGreg Roach    faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
4008362db4SGreg Roach    faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt,
41cee3bd8fSGreg Roach    faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faRedo, faSearch, faSearchMinus, faSearchPlus,
4208362db4SGreg Roach    faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
43*80993423SGreg Roach    faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench,
44*80993423SGreg Roach    // For the BeautifyMarker library
45*80993423SGreg Roach    faBabyCarriage, faBullseye, faHome, faIndustry, faInfinity, faStarOfDavid, faWater,
4608362db4SGreg Roach} from "@fortawesome/free-solid-svg-icons";
4708362db4SGreg Roachlibrary.add(
48*80993423SGreg Roach    // For resources/views/icons/*
4908362db4SGreg Roach    faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
5008362db4SGreg Roach    faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
5108362db4SGreg Roach    faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
5208362db4SGreg Roach    faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt,
53cee3bd8fSGreg Roach    faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faRedo, faSearch, faSearchMinus, faSearchPlus,
5408362db4SGreg Roach    faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
55*80993423SGreg Roach    faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench,
56*80993423SGreg Roach    // For the BeautifyMarker library
57*80993423SGreg Roach    faBabyCarriage, faBullseye, faHome, faIndustry, faInfinity, faStarOfDavid, faWater,
5808362db4SGreg Roach);
5908362db4SGreg Roachdom.watch();
6008362db4SGreg Roach
6171239cb6SGreg Roachwindow.Bloodhound = require("corejs-typeahead/dist/bloodhound.min.js");
6271239cb6SGreg Roachimport "corejs-typeahead";
6371239cb6SGreg Roach
6471239cb6SGreg Roachimport "datatables.net-bs4";
6571239cb6SGreg Roach
6671239cb6SGreg Roach// See https://github.com/RubaXa/Sortable/issues/1229
6775b444f7SGreg Roach//window.Sortable = require('sortablejs');
6875b444f7SGreg Roachimport Sortable from 'sortablejs';
6975b444f7SGreg Roachwindow.Sortable = Sortable;
7071239cb6SGreg Roach
7171239cb6SGreg Roachimport "select2";
72bdbdb10cSGreg Roach//import "select2/dist/js/i18n/*.js";
73bdbdb10cSGreg Roach
74bdbdb10cSGreg Roachimport "select2/dist/js/i18n/af.js";
75bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ar.js";
76bdbdb10cSGreg Roachimport "select2/dist/js/i18n/az.js";
77bdbdb10cSGreg Roachimport "select2/dist/js/i18n/bg.js";
78bdbdb10cSGreg Roachimport "select2/dist/js/i18n/bn.js";
79bdbdb10cSGreg Roachimport "select2/dist/js/i18n/bs.js";
80bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ca.js";
81bdbdb10cSGreg Roachimport "select2/dist/js/i18n/cs.js";
82bdbdb10cSGreg Roachimport "select2/dist/js/i18n/da.js";
83bdbdb10cSGreg Roachimport "select2/dist/js/i18n/de.js";
84bdbdb10cSGreg Roachimport "select2/dist/js/i18n/dsb.js";
85bdbdb10cSGreg Roachimport "select2/dist/js/i18n/el.js";
86bdbdb10cSGreg Roachimport "select2/dist/js/i18n/en.js";
87bdbdb10cSGreg Roachimport "select2/dist/js/i18n/es.js";
88bdbdb10cSGreg Roachimport "select2/dist/js/i18n/et.js";
89bdbdb10cSGreg Roachimport "select2/dist/js/i18n/eu.js";
90bdbdb10cSGreg Roachimport "select2/dist/js/i18n/fa.js";
91bdbdb10cSGreg Roachimport "select2/dist/js/i18n/fi.js";
92bdbdb10cSGreg Roachimport "select2/dist/js/i18n/fr.js";
93bdbdb10cSGreg Roachimport "select2/dist/js/i18n/gl.js";
94bdbdb10cSGreg Roachimport "select2/dist/js/i18n/he.js";
95bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hi.js";
96bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hr.js";
97bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hsb.js";
98bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hu.js";
99bdbdb10cSGreg Roachimport "select2/dist/js/i18n/hy.js";
100bdbdb10cSGreg Roachimport "select2/dist/js/i18n/id.js";
101bdbdb10cSGreg Roachimport "select2/dist/js/i18n/is.js";
102bdbdb10cSGreg Roachimport "select2/dist/js/i18n/it.js";
103bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ja.js";
104bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ka.js";
105bdbdb10cSGreg Roachimport "select2/dist/js/i18n/km.js";
106bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ko.js";
107bdbdb10cSGreg Roachimport "select2/dist/js/i18n/lt.js";
108bdbdb10cSGreg Roachimport "select2/dist/js/i18n/lv.js";
109bdbdb10cSGreg Roachimport "select2/dist/js/i18n/mk.js";
110bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ms.js";
111bdbdb10cSGreg Roachimport "select2/dist/js/i18n/nb.js";
112bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ne.js";
113bdbdb10cSGreg Roachimport "select2/dist/js/i18n/nl.js";
114bdbdb10cSGreg Roachimport "select2/dist/js/i18n/pl.js";
115bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ps.js";
116bdbdb10cSGreg Roachimport "select2/dist/js/i18n/pt-BR.js";
117bdbdb10cSGreg Roachimport "select2/dist/js/i18n/pt.js";
118bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ro.js";
119bdbdb10cSGreg Roachimport "select2/dist/js/i18n/ru.js";
120bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sk.js";
121bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sl.js";
122bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sq.js";
123bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sr-Cyrl.js";
124bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sr.js";
125bdbdb10cSGreg Roachimport "select2/dist/js/i18n/sv.js";
126bdbdb10cSGreg Roachimport "select2/dist/js/i18n/th.js";
127bdbdb10cSGreg Roachimport "select2/dist/js/i18n/tk.js";
128bdbdb10cSGreg Roachimport "select2/dist/js/i18n/tr.js";
129bdbdb10cSGreg Roachimport "select2/dist/js/i18n/uk.js";
130bdbdb10cSGreg Roachimport "select2/dist/js/i18n/vi.js";
131bdbdb10cSGreg Roachimport "select2/dist/js/i18n/zh-CN.js";
132bdbdb10cSGreg Roachimport "select2/dist/js/i18n/zh-TW.js";
13371239cb6SGreg Roach
134510d3f2fSGreg Roachimport "hideshowpassword";
135510d3f2fSGreg Roach
13671239cb6SGreg Roachimport "moment";
13771239cb6SGreg Roach
13871239cb6SGreg Roachimport "jquery-colorbox";
13971239cb6SGreg Roach
14071239cb6SGreg Roachimport "wheelzoom";
14171239cb6SGreg Roach
14271239cb6SGreg Roachimport "leaflet";
14371239cb6SGreg Roachimport "leaflet-providers";
14471239cb6SGreg Roachwindow.GeoSearch = require("leaflet-geosearch");
14571239cb6SGreg Roachimport "leaflet.markercluster";
14671239cb6SGreg Roachimport "beautifymarker";
147