mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-10 06:02:13 +00:00
Migrate v-tooltip to npm package
This commit is contained in:
parent
4efe5b720c
commit
81698281a4
@ -1,5 +1,6 @@
|
||||
import { notify } from "./notify.js";
|
||||
import { state } from "./ui.init.js";
|
||||
import VTooltip from "v-tooltip";
|
||||
|
||||
Vue.mixin({
|
||||
computed: {
|
||||
@ -153,13 +154,11 @@ export const UIID = (function() {
|
||||
return { next: () => id++ };
|
||||
}());
|
||||
|
||||
(function() {
|
||||
const vTooltip = VTooltip.VTooltip.options;
|
||||
vTooltip.defaultClass = "general-tooltip";
|
||||
vTooltip.popover.defaultBaseClass = "general-tooltip";
|
||||
vTooltip.defaultTemplate =
|
||||
'<div role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>';
|
||||
}());
|
||||
VTooltip.options.defaultClass = "general-tooltip";
|
||||
VTooltip.options.popover.defaultBaseClass = "general-tooltip";
|
||||
VTooltip.options.defaultTemplate =
|
||||
'<div role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>';
|
||||
Vue.use(VTooltip);
|
||||
|
||||
(function() {
|
||||
const methodStrategy = Vue.config.optionMergeStrategies.methods;
|
||||
|
31
package-lock.json
generated
31
package-lock.json
generated
@ -1177,7 +1177,6 @@
|
||||
"version": "7.16.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz",
|
||||
"integrity": "sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"regenerator-runtime": "^0.13.4"
|
||||
}
|
||||
@ -7686,8 +7685,7 @@
|
||||
"lodash": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||
"dev": true
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"lodash.debounce": {
|
||||
"version": "4.0.8",
|
||||
@ -8666,6 +8664,11 @@
|
||||
"find-up": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"popper.js": {
|
||||
"version": "1.16.1",
|
||||
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz",
|
||||
"integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ=="
|
||||
},
|
||||
"portfinder": {
|
||||
"version": "1.0.28",
|
||||
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz",
|
||||
@ -9267,8 +9270,7 @@
|
||||
"regenerator-runtime": {
|
||||
"version": "0.13.9",
|
||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
|
||||
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==",
|
||||
"dev": true
|
||||
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
|
||||
},
|
||||
"regenerator-transform": {
|
||||
"version": "0.14.5",
|
||||
@ -10277,6 +10279,17 @@
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz",
|
||||
"integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw=="
|
||||
},
|
||||
"v-tooltip": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/v-tooltip/-/v-tooltip-2.1.3.tgz",
|
||||
"integrity": "sha512-xXngyxLQTOx/yUEy50thb8te7Qo4XU6h4LZB6cvEfVd9mnysUxLEoYwGWDdqR+l69liKsy3IPkdYff3J1gAJ5w==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"lodash": "^4.17.21",
|
||||
"popper.js": "^1.16.1",
|
||||
"vue-resize": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"v8-compile-cache": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz",
|
||||
@ -10531,6 +10544,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"vue-resize": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-1.0.1.tgz",
|
||||
"integrity": "sha512-z5M7lJs0QluJnaoMFTIeGx6dIkYxOwHThlZDeQnWZBizKblb99GSejPnK37ZbNE/rVwDcYcHY+Io+AxdpY952w==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.13.10"
|
||||
}
|
||||
},
|
||||
"vue-splitpane": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/vue-splitpane/-/vue-splitpane-1.0.6.tgz",
|
||||
|
@ -18,6 +18,7 @@
|
||||
"svg-pan-zoom": "^3.6.1",
|
||||
"tween.js": "^16.6.0",
|
||||
"uuid": "^8.0.0",
|
||||
"v-tooltip": "^2.1.3",
|
||||
"vis-network": "^5.1.1",
|
||||
"vis-util": "^4.0.0",
|
||||
"vue": "^2.6.11",
|
||||
|
@ -65,7 +65,6 @@
|
||||
<script src="https://www.gstatic.com/firebasejs/8.8.0/firebase-database.js"></script>
|
||||
|
||||
<script type="text/javascript" src="lib/vue.js"></script>
|
||||
<script type="text/javascript" src="lib/v-tooltip.min.js"></script>
|
||||
<script type="text/javascript" src="lib/deepmerge.js"></script>
|
||||
<script type="text/javascript" src="lib/codemirror.js"></script>
|
||||
<script type="text/javascript" src="lib/simple.js"></script>
|
||||
|
1
public/lib/v-tooltip.min.js
vendored
1
public/lib/v-tooltip.min.js
vendored
File diff suppressed because one or more lines are too long
@ -108,7 +108,6 @@
|
||||
</body>
|
||||
|
||||
<script type="text/javascript" src="lib/vue.js"></script>
|
||||
<script type="text/javascript" src="lib/v-tooltip.min.js"></script>
|
||||
<script type="text/javascript" src="javascripts/DragDropTouch.js"></script>
|
||||
<script type="text/javascript" src="javascripts/longpress.js"></script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user