xref: /webtrees/resources/js/vendor.js (revision d501c45d339d4a2d06248f9197d7875a4df14e48)
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    faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
27    faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser
28} from "@fortawesome/free-regular-svg-icons";
29library.add(
30    faBell, faCopy, faEnvelope, faFile, faFileAlt, faFileImage, faFolder, faKeyboard,
31    faMap, faMinusSquare, faPlusSquare, faStar, faStickyNote, faTrashAlt, faUser
32);
33import {
34    faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
35    faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
36    faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
37    faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt,
38    faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faSearch, faSearchMinus, faSearchPlus,
39    faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
40    faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench
41} from "@fortawesome/free-solid-svg-icons";
42library.add(
43    faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAltV, faBan, faBars,
44    faCalendar, faCheck, faCodeBranch, faDownload, faExclamationTriangle, faGenderless,
45    faGripHorizontal, faGripLines, faHistory, faInfoCircle, faLanguage, faLink, faList,
46    faLock, faMagic, faMap, faMapMarkerAlt, faMars, faPaintBrush, faPause, faPencilAlt,
47    faPlay, faPlus, faPuzzlePiece, faQuestionCircle, faSearch, faSearchMinus, faSearchPlus,
48    faSitemap, faSortAmountDown, faStepForward, faStop, faSyncAlt, faThList, faThumbtack,
49    faTimes, faTransgender, faTree, faUniversity, faUnlink, faUpload, faUsers, faVenus, faWrench
50);
51dom.watch();
52
53window.Bloodhound = require("corejs-typeahead/dist/bloodhound.min.js");
54import "corejs-typeahead";
55
56import "datatables.net-bs4";
57
58// See https://github.com/RubaXa/Sortable/issues/1229
59//window.Sortable = require('sortablejs');
60import Sortable from 'sortablejs';
61window.Sortable = Sortable;
62
63import "select2";
64//import "select2/dist/js/i18n/*.js";
65
66import "select2/dist/js/i18n/af.js";
67import "select2/dist/js/i18n/ar.js";
68import "select2/dist/js/i18n/az.js";
69import "select2/dist/js/i18n/bg.js";
70import "select2/dist/js/i18n/bn.js";
71import "select2/dist/js/i18n/bs.js";
72import "select2/dist/js/i18n/ca.js";
73import "select2/dist/js/i18n/cs.js";
74import "select2/dist/js/i18n/da.js";
75import "select2/dist/js/i18n/de.js";
76import "select2/dist/js/i18n/dsb.js";
77import "select2/dist/js/i18n/el.js";
78import "select2/dist/js/i18n/en.js";
79import "select2/dist/js/i18n/es.js";
80import "select2/dist/js/i18n/et.js";
81import "select2/dist/js/i18n/eu.js";
82import "select2/dist/js/i18n/fa.js";
83import "select2/dist/js/i18n/fi.js";
84import "select2/dist/js/i18n/fr.js";
85import "select2/dist/js/i18n/gl.js";
86import "select2/dist/js/i18n/he.js";
87import "select2/dist/js/i18n/hi.js";
88import "select2/dist/js/i18n/hr.js";
89import "select2/dist/js/i18n/hsb.js";
90import "select2/dist/js/i18n/hu.js";
91import "select2/dist/js/i18n/hy.js";
92import "select2/dist/js/i18n/id.js";
93import "select2/dist/js/i18n/is.js";
94import "select2/dist/js/i18n/it.js";
95import "select2/dist/js/i18n/ja.js";
96import "select2/dist/js/i18n/ka.js";
97import "select2/dist/js/i18n/km.js";
98import "select2/dist/js/i18n/ko.js";
99import "select2/dist/js/i18n/lt.js";
100import "select2/dist/js/i18n/lv.js";
101import "select2/dist/js/i18n/mk.js";
102import "select2/dist/js/i18n/ms.js";
103import "select2/dist/js/i18n/nb.js";
104import "select2/dist/js/i18n/ne.js";
105import "select2/dist/js/i18n/nl.js";
106import "select2/dist/js/i18n/pl.js";
107import "select2/dist/js/i18n/ps.js";
108import "select2/dist/js/i18n/pt-BR.js";
109import "select2/dist/js/i18n/pt.js";
110import "select2/dist/js/i18n/ro.js";
111import "select2/dist/js/i18n/ru.js";
112import "select2/dist/js/i18n/sk.js";
113import "select2/dist/js/i18n/sl.js";
114import "select2/dist/js/i18n/sq.js";
115import "select2/dist/js/i18n/sr-Cyrl.js";
116import "select2/dist/js/i18n/sr.js";
117import "select2/dist/js/i18n/sv.js";
118import "select2/dist/js/i18n/th.js";
119import "select2/dist/js/i18n/tk.js";
120import "select2/dist/js/i18n/tr.js";
121import "select2/dist/js/i18n/uk.js";
122import "select2/dist/js/i18n/vi.js";
123import "select2/dist/js/i18n/zh-CN.js";
124import "select2/dist/js/i18n/zh-TW.js";
125
126import "hideshowpassword";
127
128import "moment";
129
130import "jquery-colorbox";
131
132import "wheelzoom";
133
134import "leaflet";
135import "leaflet-providers";
136window.GeoSearch = require("leaflet-geosearch");
137import "leaflet.markercluster";
138import "beautifymarker";
139