xref: /webtrees/resources/js/vendor.js (revision efd891708fa37ba31a16e45c3bc4f4b2ede4a28c)
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
16*efd89170SGreg Roachimport $ from 'jquery';
1771239cb6SGreg Roach
18*efd89170SGreg Roachimport 'popper.js';
19*efd89170SGreg Roachimport 'bootstrap';
20*efd89170SGreg Roachimport 'datatables.net';
2171239cb6SGreg Roach
2208362db4SGreg Roach// Just import the subset of icons that we use in resources/views/icons/
23*efd89170SGreg Roachimport { dom, library } from '@fortawesome/fontawesome-svg-core';
2408362db4SGreg Roachimport {
2580993423SGreg Roach  // For resources/views/icons/*
2608362db4SGreg Roach  faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
27*efd89170SGreg Roach  faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser
28*efd89170SGreg Roach} from '@fortawesome/free-regular-svg-icons';
29*efd89170SGreg Roachimport {
30*efd89170SGreg Roach  // For resources/views/icons/*
31*efd89170SGreg Roach  faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
32*efd89170SGreg Roach  faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
33*efd89170SGreg Roach  faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
34*efd89170SGreg Roach  faLock, faMagic, faMap, faMapMarkerAlt, faMars, faMedkit, faPaintBrush, faPause, faPencilAlt,
35*efd89170SGreg Roach  faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faRedo, faSearch, faSearchMinus, faSearchPlus,
36*efd89170SGreg Roach  faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
37*efd89170SGreg Roach  faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench,
38*efd89170SGreg Roach  // For the BeautifyMarker library
39*efd89170SGreg Roach  faBabyCarriage, faBullseye, faHome, faIndustry, faInfinity, faStarOfDavid, faWater
40*efd89170SGreg Roach} from '@fortawesome/free-solid-svg-icons';
41*efd89170SGreg Roachimport 'corejs-typeahead';
42*efd89170SGreg Roach
43*efd89170SGreg Roachimport 'datatables.net-bs4';
44*efd89170SGreg Roach
45*efd89170SGreg Roachimport Sortable from 'sortablejs';
46*efd89170SGreg Roach
47*efd89170SGreg Roachimport 'select2';
48*efd89170SGreg Roach// import "select2/dist/js/i18n/*.js";
49*efd89170SGreg Roach
50*efd89170SGreg Roachimport 'select2/dist/js/i18n/af.js';
51*efd89170SGreg Roachimport 'select2/dist/js/i18n/ar.js';
52*efd89170SGreg Roachimport 'select2/dist/js/i18n/az.js';
53*efd89170SGreg Roachimport 'select2/dist/js/i18n/bg.js';
54*efd89170SGreg Roachimport 'select2/dist/js/i18n/bn.js';
55*efd89170SGreg Roachimport 'select2/dist/js/i18n/bs.js';
56*efd89170SGreg Roachimport 'select2/dist/js/i18n/ca.js';
57*efd89170SGreg Roachimport 'select2/dist/js/i18n/cs.js';
58*efd89170SGreg Roachimport 'select2/dist/js/i18n/da.js';
59*efd89170SGreg Roachimport 'select2/dist/js/i18n/de.js';
60*efd89170SGreg Roachimport 'select2/dist/js/i18n/dsb.js';
61*efd89170SGreg Roachimport 'select2/dist/js/i18n/el.js';
62*efd89170SGreg Roachimport 'select2/dist/js/i18n/en.js';
63*efd89170SGreg Roachimport 'select2/dist/js/i18n/es.js';
64*efd89170SGreg Roachimport 'select2/dist/js/i18n/et.js';
65*efd89170SGreg Roachimport 'select2/dist/js/i18n/eu.js';
66*efd89170SGreg Roachimport 'select2/dist/js/i18n/fa.js';
67*efd89170SGreg Roachimport 'select2/dist/js/i18n/fi.js';
68*efd89170SGreg Roachimport 'select2/dist/js/i18n/fr.js';
69*efd89170SGreg Roachimport 'select2/dist/js/i18n/gl.js';
70*efd89170SGreg Roachimport 'select2/dist/js/i18n/he.js';
71*efd89170SGreg Roachimport 'select2/dist/js/i18n/hi.js';
72*efd89170SGreg Roachimport 'select2/dist/js/i18n/hr.js';
73*efd89170SGreg Roachimport 'select2/dist/js/i18n/hsb.js';
74*efd89170SGreg Roachimport 'select2/dist/js/i18n/hu.js';
75*efd89170SGreg Roachimport 'select2/dist/js/i18n/hy.js';
76*efd89170SGreg Roachimport 'select2/dist/js/i18n/id.js';
77*efd89170SGreg Roachimport 'select2/dist/js/i18n/is.js';
78*efd89170SGreg Roachimport 'select2/dist/js/i18n/it.js';
79*efd89170SGreg Roachimport 'select2/dist/js/i18n/ja.js';
80*efd89170SGreg Roachimport 'select2/dist/js/i18n/ka.js';
81*efd89170SGreg Roachimport 'select2/dist/js/i18n/km.js';
82*efd89170SGreg Roachimport 'select2/dist/js/i18n/ko.js';
83*efd89170SGreg Roachimport 'select2/dist/js/i18n/lt.js';
84*efd89170SGreg Roachimport 'select2/dist/js/i18n/lv.js';
85*efd89170SGreg Roachimport 'select2/dist/js/i18n/mk.js';
86*efd89170SGreg Roachimport 'select2/dist/js/i18n/ms.js';
87*efd89170SGreg Roachimport 'select2/dist/js/i18n/nb.js';
88*efd89170SGreg Roachimport 'select2/dist/js/i18n/ne.js';
89*efd89170SGreg Roachimport 'select2/dist/js/i18n/nl.js';
90*efd89170SGreg Roachimport 'select2/dist/js/i18n/pl.js';
91*efd89170SGreg Roachimport 'select2/dist/js/i18n/ps.js';
92*efd89170SGreg Roachimport 'select2/dist/js/i18n/pt-BR.js';
93*efd89170SGreg Roachimport 'select2/dist/js/i18n/pt.js';
94*efd89170SGreg Roachimport 'select2/dist/js/i18n/ro.js';
95*efd89170SGreg Roachimport 'select2/dist/js/i18n/ru.js';
96*efd89170SGreg Roachimport 'select2/dist/js/i18n/sk.js';
97*efd89170SGreg Roachimport 'select2/dist/js/i18n/sl.js';
98*efd89170SGreg Roachimport 'select2/dist/js/i18n/sq.js';
99*efd89170SGreg Roachimport 'select2/dist/js/i18n/sr-Cyrl.js';
100*efd89170SGreg Roachimport 'select2/dist/js/i18n/sr.js';
101*efd89170SGreg Roachimport 'select2/dist/js/i18n/sv.js';
102*efd89170SGreg Roachimport 'select2/dist/js/i18n/th.js';
103*efd89170SGreg Roachimport 'select2/dist/js/i18n/tk.js';
104*efd89170SGreg Roachimport 'select2/dist/js/i18n/tr.js';
105*efd89170SGreg Roachimport 'select2/dist/js/i18n/uk.js';
106*efd89170SGreg Roachimport 'select2/dist/js/i18n/vi.js';
107*efd89170SGreg Roachimport 'select2/dist/js/i18n/zh-CN.js';
108*efd89170SGreg Roachimport 'select2/dist/js/i18n/zh-TW.js';
109*efd89170SGreg Roach
110*efd89170SGreg Roachimport 'hideshowpassword';
111*efd89170SGreg Roach
112*efd89170SGreg Roachimport 'moment';
113*efd89170SGreg Roach
114*efd89170SGreg Roachimport 'jquery-colorbox';
115*efd89170SGreg Roach
116*efd89170SGreg Roachimport 'wheelzoom';
117*efd89170SGreg Roach
118*efd89170SGreg Roachimport 'leaflet';
119*efd89170SGreg Roachimport 'leaflet-providers';
120*efd89170SGreg Roachimport 'leaflet.markercluster';
121*efd89170SGreg Roachimport 'beautifymarker';
122*efd89170SGreg Roach
123*efd89170SGreg Roachwindow.$ = window.jQuery = $;
124*efd89170SGreg Roach
12508362db4SGreg Roachlibrary.add(
12680993423SGreg Roach  // For resources/views/icons/*
12708362db4SGreg Roach  faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
128*efd89170SGreg Roach  faMap, faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser
12908362db4SGreg Roach);
13008362db4SGreg Roachlibrary.add(
13180993423SGreg Roach  // For resources/views/icons/*
13208362db4SGreg Roach  faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
13308362db4SGreg Roach  faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
13408362db4SGreg Roach  faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
135bae49aecSGreg Roach  faLock, faMagic, faMap, faMapMarkerAlt, faMars, faMedkit, faPaintBrush, faPause, faPencilAlt,
136cee3bd8fSGreg Roach  faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faRedo, faSearch, faSearchMinus, faSearchPlus,
13708362db4SGreg Roach  faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
13880993423SGreg Roach  faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench,
13980993423SGreg Roach  // For the BeautifyMarker library
140*efd89170SGreg Roach  faBabyCarriage, faBullseye, faHome, faIndustry, faInfinity, faStarOfDavid, faWater
14108362db4SGreg Roach);
14208362db4SGreg Roachdom.watch();
14308362db4SGreg Roach
144*efd89170SGreg Roachwindow.Bloodhound = require('corejs-typeahead/dist/bloodhound.min.js');
14571239cb6SGreg Roach
14671239cb6SGreg Roach// See https://github.com/RubaXa/Sortable/issues/1229
14775b444f7SGreg Roach// window.Sortable = require('sortablejs');
14875b444f7SGreg Roachwindow.Sortable = Sortable;
14971239cb6SGreg Roach
150*efd89170SGreg Roachwindow.GeoSearch = require('leaflet-geosearch');
151