更新
This commit is contained in:
parent
ed066f8565
commit
00b0a0e783
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wuhu-torn-helper",
|
||||
"version": "0.8.3",
|
||||
"version": "0.8.4",
|
||||
"description": "芜湖助手",
|
||||
"scripts": {
|
||||
"release": "cross-env NODE_ENV=production rollup -c rollup-prod.config.js && node build.js",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,7 +1,9 @@
|
||||
// [!] Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
|
||||
// src/vue/ItemPrice.vue?vue&type=script&lang.ts (35:13)
|
||||
// TODO 官方提供ts插件在vue模版中使用ts语言时报错
|
||||
// import typescript from "@rollup/plugin-typescript";
|
||||
|
||||
// TODO 在rollup watch模式中不更新vue模版ts部分代码
|
||||
import typescript2 from "rollup-plugin-typescript2";
|
||||
import json from "@rollup/plugin-json";
|
||||
import html from "rollup-plugin-string-html";
|
||||
@ -24,6 +26,23 @@ export default {
|
||||
},
|
||||
plugins: [
|
||||
json(),
|
||||
html({
|
||||
// include: ["**/*.html", "src/static/css/*.css"],
|
||||
// include: ["**/*.html", "**/*.css"],
|
||||
include: ["**/*.html"],
|
||||
minifier: {
|
||||
includeAutoGeneratedTags: true,
|
||||
removeAttributeQuotes: false,
|
||||
removeComments: true,
|
||||
removeRedundantAttributes: false,
|
||||
removeScriptTypeAttributes: true,
|
||||
removeStyleLinkTypeAttributes: true,
|
||||
sortClassName: true,
|
||||
useShortDoctype: true,
|
||||
collapseWhitespace: true,
|
||||
minifyCSS: true,
|
||||
}
|
||||
}),
|
||||
// 根据环境更改vue源
|
||||
alias({
|
||||
entries: [{ find: 'vue', replacement: vuePath }]
|
||||
@ -43,29 +62,12 @@ export default {
|
||||
preferBuiltins: false,
|
||||
}),
|
||||
vue({ isProduction: node_env === 'production' }),
|
||||
// TODO watch模式下vue更新不完全
|
||||
typescript2({
|
||||
tsconfig: "tsconfig.json",
|
||||
// clean: true,
|
||||
// check: false,
|
||||
}),
|
||||
postcss({ minimize: true }),
|
||||
html({
|
||||
// include: ["**/*.html", "**/*.css"],
|
||||
include: ["**/*.html"],
|
||||
minifier: {
|
||||
includeAutoGeneratedTags: true,
|
||||
removeAttributeQuotes: false,
|
||||
removeComments: true,
|
||||
removeRedundantAttributes: false,
|
||||
removeScriptTypeAttributes: true,
|
||||
removeStyleLinkTypeAttributes: true,
|
||||
sortClassName: true,
|
||||
useShortDoctype: true,
|
||||
collapseWhitespace: true,
|
||||
minifyCSS: true,
|
||||
}
|
||||
}),
|
||||
// typescript(),
|
||||
],
|
||||
};
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
.content-title, .info-msg-cont {
|
||||
body.wh-hide-title .content-title, body.wh-hide-title .info-msg-cont {
|
||||
display: none !important;
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
// import WuhuBase from "./WuhuBase";
|
||||
// import WuHuTornHelper from "./WuhuTornHelper";
|
||||
// import ZhongIcon from "./ZhongIcon";
|
||||
// import { Common } from "./Common";
|
||||
// import UrlPattern from "./UrlMatch";
|
||||
// import WuhuConfig from "./WuhuConfig";
|
||||
// import translateMain from "../func/translate/translateMain";
|
||||
// import CommonUtils from "./utils/CommonUtils";
|
||||
// import EntryPoint from "./provider/EntryPoint";
|
||||
//
|
||||
// @EntryPoint
|
||||
// export default class Application {
|
||||
//
|
||||
// public static main(): void {
|
||||
// WuhuBase.conditionInterrupt();
|
||||
//
|
||||
// // 初始化
|
||||
// WuHuTornHelper.getInstance().init();
|
||||
//
|
||||
// // 插件设置默认值
|
||||
// WuhuConfig.setDefaults();
|
||||
//
|
||||
// // 插件图标和设置菜单
|
||||
// ZhongIcon.getInstance().init();
|
||||
//
|
||||
// let tmp = () => {
|
||||
// // 所有页面通用
|
||||
// try {
|
||||
// Common.getInstance().resolve(Application.main);
|
||||
// } catch (e) {
|
||||
// // if (e.message === '重载') Common.getInstance().resolve(null);
|
||||
// }
|
||||
//
|
||||
// // URL匹配
|
||||
// UrlPattern.getInstance().resolve();
|
||||
//
|
||||
// // 翻译
|
||||
// if (WuhuConfig.get('transEnable')) translateMain(window.location.href);
|
||||
// };
|
||||
// // TODO 临时检测jquery
|
||||
// if (typeof $ === "function") {
|
||||
// tmp();
|
||||
// } else {
|
||||
// CommonUtils.getInstance().jQueryReady().then(() => tmp());
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
export default {}
|
||||
@ -27,6 +27,7 @@ export default class XZMZ extends WuhuBase {
|
||||
|
||||
public init() {
|
||||
CommonUtils.addStyle(XUNZHAOMUZHUANG_CSS);
|
||||
document.body.classList.add('wh-hide-title');
|
||||
document.title = document.title.replace('Items', '寻找木桩');
|
||||
this.mainRoleContainer = document.querySelector('div[role="main"]');
|
||||
let block = new TornStyleBlock('寻找木桩');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user