mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-06 13:56:14 +08:00
more things
This commit is contained in:
parent
d86d0a3c82
commit
4db1211a30
@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: {
|
plugins: {
|
||||||
'autoprefixer': true
|
autoprefixer: true
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
|
import "bootstrap/js/dist/modal"
|
||||||
import diff_match_patch from "diff-match-patch";
|
import diff_match_patch from "diff-match-patch";
|
||||||
|
|
||||||
//=====> DOCUMENT READY
|
//=====> DOCUMENT READY
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
|
import "bootstrap/js/dist/modal"
|
||||||
import {toggleSpinner} from "@/utils";
|
import {toggleSpinner} from "@/utils";
|
||||||
|
|
||||||
//=====> CONSTANTS
|
//=====> CONSTANTS
|
||||||
|
@ -2,7 +2,7 @@ import $ from "jquery";
|
|||||||
import ClipboardJS from "clipboard";
|
import ClipboardJS from "clipboard";
|
||||||
import hljs from "highlight.js";
|
import hljs from "highlight.js";
|
||||||
import {initTooltips, scrollToAnchor, toggleSpinner} from "@/utils";
|
import {initTooltips, scrollToAnchor, toggleSpinner} from "@/utils";
|
||||||
import "webpack-jquery-ui/tooltip";
|
import "bootstrap/js/dist/tooltip"
|
||||||
|
|
||||||
//=====> CONSTANTS
|
//=====> CONSTANTS
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ clipboardManager.on("success", function() {
|
|||||||
.tooltip({ title: "Copied!", placement: "bottom", trigger: "manual" })
|
.tooltip({ title: "Copied!", placement: "bottom", trigger: "manual" })
|
||||||
.tooltip("show");
|
.tooltip("show");
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
element.tooltip("destroy");
|
element.tooltip("dispose");
|
||||||
}, 2200);
|
}, 2200);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
|
import "bootstrap/js/dist/tooltip"
|
||||||
import filesize from "filesize";
|
import filesize from "filesize";
|
||||||
|
|
||||||
//=====> CONSTANTS
|
//=====> CONSTANTS
|
||||||
@ -79,7 +80,7 @@ function reset() {
|
|||||||
bs.find("[data-fa-i2svg]")
|
bs.find("[data-fa-i2svg]")
|
||||||
.removeClass("fa-exclamation-circle")
|
.removeClass("fa-exclamation-circle")
|
||||||
.addClass("fa-file-archive")
|
.addClass("fa-file-archive")
|
||||||
.tooltip("destroy");
|
.tooltip("dispose");
|
||||||
}
|
}
|
||||||
return alert;
|
return alert;
|
||||||
}
|
}
|
||||||
@ -143,7 +144,7 @@ $(function() {
|
|||||||
|
|
||||||
var newTitle = "Upload plugin";
|
var newTitle = "Upload plugin";
|
||||||
button
|
button
|
||||||
.tooltip("option", "hide", false)
|
.tooltip("hide")
|
||||||
.data("original-title", newTitle)
|
.data("original-title", newTitle)
|
||||||
.tooltip();
|
.tooltip();
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
|
import "bootstrap/js/dist/modal"
|
||||||
import {initChannelManager} from "@/js/channelManage";
|
import {initChannelManager} from "@/js/channelManage";
|
||||||
|
|
||||||
//=====> EXTERNAL CONSTANTS
|
//=====> EXTERNAL CONSTANTS
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
const autoprefixer = require('autoprefixer')
|
|
||||||
|
|
||||||
const sourceDir = path.resolve(__dirname, "src");
|
const sourceDir = path.resolve(__dirname, "src");
|
||||||
const entryDir = path.resolve(sourceDir, "entrypoints");
|
const entryDir = path.resolve(sourceDir, "entrypoints");
|
||||||
@ -33,23 +32,33 @@ module.exports = {
|
|||||||
config.entry(file.replace(".js", "")).add(path.resolve(jsDir, file));
|
config.entry(file.replace(".js", "")).add(path.resolve(jsDir, file));
|
||||||
}
|
}
|
||||||
|
|
||||||
config.module.rules.delete('css')
|
config.module.rules.delete("css");
|
||||||
config.module.rules.delete('scss')
|
config.module.rules.delete("scss");
|
||||||
|
|
||||||
config.plugin('mini-css-extract').use(MiniCssExtractPlugin, [{filename: 'css/[name].css'}])
|
config
|
||||||
|
.plugin("mini-css-extract")
|
||||||
|
.use(MiniCssExtractPlugin, [{ filename: "css/[name].css" }]);
|
||||||
|
|
||||||
config.module.rule('css')
|
config.module
|
||||||
|
.rule("css")
|
||||||
.test(/\.(s?)css$/i)
|
.test(/\.(s?)css$/i)
|
||||||
.use('mini-css-extract')
|
.use("mini-css-extract")
|
||||||
.loader(MiniCssExtractPlugin.loader)
|
.loader(MiniCssExtractPlugin.loader)
|
||||||
.options({
|
.options({
|
||||||
hmr: process.env.NODE_ENV === 'development',
|
hmr: process.env.NODE_ENV === "development",
|
||||||
reloadAll: true,
|
reloadAll: true,
|
||||||
publicPath: '/css/'
|
publicPath: "/css/"
|
||||||
}).end()
|
})
|
||||||
.use('css-loader').loader('css-loader').end()
|
.end()
|
||||||
.use('postcss-loader').loader('postcss-loader').end()
|
.use("css-loader")
|
||||||
.use('sass-loader').loader('sass-loader').end()
|
.loader("css-loader")
|
||||||
|
.end()
|
||||||
|
.use("postcss-loader")
|
||||||
|
.loader("postcss-loader")
|
||||||
|
.end()
|
||||||
|
.use("sass-loader")
|
||||||
|
.loader("sass-loader")
|
||||||
|
.end();
|
||||||
},
|
},
|
||||||
|
|
||||||
outputDir: outputDir,
|
outputDir: outputDir,
|
||||||
|
@ -122,7 +122,7 @@ showFooter: Boolean = true, noContainer: Boolean = false, additionalMeta: Html =
|
|||||||
<#-- <script type="text/javascript" src="<@hangar.url "lib/clipboard/dist/clipboard.min.js" />"></script>-->
|
<#-- <script type="text/javascript" src="<@hangar.url "lib/clipboard/dist/clipboard.min.js" />"></script>-->
|
||||||
<#-- <script type="text/javascript" src="<@hangar.url "highlight/highlight.pack.js" />"></script>-->
|
<#-- <script type="text/javascript" src="<@hangar.url "highlight/highlight.pack.js" />"></script>-->
|
||||||
<#-- <script type="text/javascript" src="<@hangar.url "jquery-ui/jquery-ui.min.js" />"></script>-->
|
<#-- <script type="text/javascript" src="<@hangar.url "jquery-ui/jquery-ui.min.js" />"></script>-->
|
||||||
<#-- <script type="text/javascript" src="<@hangar.url "build/js/main.js" />"></script>-->
|
<script type="text/javascript" src="<@hangar.url "build/js/main.js" />"></script>
|
||||||
<#-- <script type="text/javascript" src="<@hangar.url "build/js/apiRequests.js" />"></script>-->
|
<#-- <script type="text/javascript" src="<@hangar.url "build/js/apiRequests.js" />"></script>-->
|
||||||
|
|
||||||
${additionalScripts}
|
${additionalScripts}
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
<#import "*/layout/base.ftlh" as base />
|
<#import "*/layout/base.ftlh" as base />
|
||||||
|
|
||||||
<#assign scriptsVar>
|
<#assign scriptsVar>
|
||||||
<script type="text/javascript" src="<@hangar.url "diff-match-patch/javascript/diff_match_patch.js" />"></script>
|
|
||||||
<script type="text/javascript" src="<@hangar.url "build/js/actionLog.js" />"></script>
|
<script type="text/javascript" src="<@hangar.url "build/js/actionLog.js" />"></script>
|
||||||
</#assign>
|
</#assign>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user