xref: /webtrees/resources/js/vendor.js (revision d62ae68e24d451faa2c02451650eabf25a43a980)
1/**
2 * webtrees: online genealogy
3 * Copyright (C) 2019 webtrees development team
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16import $ from "jquery";
17window.$ = window.jQuery = $;
18
19import "popper.js";
20import "bootstrap";
21import "datatables.net";
22
23// Just import the subset of icons that we use in resources/views/icons/
24import { dom, library } from "@fortawesome/fontawesome-svg-core";
25import {
26    // For resources/views/icons/*
27    faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
28    faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser,
29} from "@fortawesome/free-regular-svg-icons";
30library.add(
31    // For resources/views/icons/*
32    faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
33    faMap, faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser,
34);
35import {
36    // For resources/views/icons/*
37    faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
38    faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
39    faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
40    faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt,
41    faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faRedo, faSearch, faSearchMinus, faSearchPlus,
42    faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
43    faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench,
44    // For the BeautifyMarker library
45    faBabyCarriage, faBullseye, faHome, faIndustry, faInfinity, faStarOfDavid, faWater,
46} from "@fortawesome/free-solid-svg-icons";
47library.add(
48    // For resources/views/icons/*
49    faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
50    faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
51    faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
52    faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt,
53    faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faRedo, faSearch, faSearchMinus, faSearchPlus,
54    faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
55    faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench,
56    // For the BeautifyMarker library
57    faBabyCarriage, faBullseye, faHome, faIndustry, faInfinity, faStarOfDavid, faWater,
58);
59dom.watch();
60
61window.Bloodhound = require("corejs-typeahead/dist/bloodhound.min.js");
62import "corejs-typeahead";
63
64import "datatables.net-bs4";
65
66// See https://github.com/RubaXa/Sortable/issues/1229
67//window.Sortable = require('sortablejs');
68import Sortable from 'sortablejs';
69window.Sortable = Sortable;
70
71import "select2";
72//import "select2/dist/js/i18n/*.js";
73
74import "select2/dist/js/i18n/af.js";
75import "select2/dist/js/i18n/ar.js";
76import "select2/dist/js/i18n/az.js";
77import "select2/dist/js/i18n/bg.js";
78import "select2/dist/js/i18n/bn.js";
79import "select2/dist/js/i18n/bs.js";
80import "select2/dist/js/i18n/ca.js";
81import "select2/dist/js/i18n/cs.js";
82import "select2/dist/js/i18n/da.js";
83import "select2/dist/js/i18n/de.js";
84import "select2/dist/js/i18n/dsb.js";
85import "select2/dist/js/i18n/el.js";
86import "select2/dist/js/i18n/en.js";
87import "select2/dist/js/i18n/es.js";
88import "select2/dist/js/i18n/et.js";
89import "select2/dist/js/i18n/eu.js";
90import "select2/dist/js/i18n/fa.js";
91import "select2/dist/js/i18n/fi.js";
92import "select2/dist/js/i18n/fr.js";
93import "select2/dist/js/i18n/gl.js";
94import "select2/dist/js/i18n/he.js";
95import "select2/dist/js/i18n/hi.js";
96import "select2/dist/js/i18n/hr.js";
97import "select2/dist/js/i18n/hsb.js";
98import "select2/dist/js/i18n/hu.js";
99import "select2/dist/js/i18n/hy.js";
100import "select2/dist/js/i18n/id.js";
101import "select2/dist/js/i18n/is.js";
102import "select2/dist/js/i18n/it.js";
103import "select2/dist/js/i18n/ja.js";
104import "select2/dist/js/i18n/ka.js";
105import "select2/dist/js/i18n/km.js";
106import "select2/dist/js/i18n/ko.js";
107import "select2/dist/js/i18n/lt.js";
108import "select2/dist/js/i18n/lv.js";
109import "select2/dist/js/i18n/mk.js";
110import "select2/dist/js/i18n/ms.js";
111import "select2/dist/js/i18n/nb.js";
112import "select2/dist/js/i18n/ne.js";
113import "select2/dist/js/i18n/nl.js";
114import "select2/dist/js/i18n/pl.js";
115import "select2/dist/js/i18n/ps.js";
116import "select2/dist/js/i18n/pt-BR.js";
117import "select2/dist/js/i18n/pt.js";
118import "select2/dist/js/i18n/ro.js";
119import "select2/dist/js/i18n/ru.js";
120import "select2/dist/js/i18n/sk.js";
121import "select2/dist/js/i18n/sl.js";
122import "select2/dist/js/i18n/sq.js";
123import "select2/dist/js/i18n/sr-Cyrl.js";
124import "select2/dist/js/i18n/sr.js";
125import "select2/dist/js/i18n/sv.js";
126import "select2/dist/js/i18n/th.js";
127import "select2/dist/js/i18n/tk.js";
128import "select2/dist/js/i18n/tr.js";
129import "select2/dist/js/i18n/uk.js";
130import "select2/dist/js/i18n/vi.js";
131import "select2/dist/js/i18n/zh-CN.js";
132import "select2/dist/js/i18n/zh-TW.js";
133
134import "hideshowpassword";
135
136import "moment";
137
138import "jquery-colorbox";
139
140import "wheelzoom";
141
142import "leaflet";
143import "leaflet-providers";
144window.GeoSearch = require("leaflet-geosearch");
145import "leaflet.markercluster";
146import "beautifymarker";
147