js2ts: vendor, evergreen browsers
- IE11 제외(webpack) - vendor에 bootstrap, jquery 번들 - common.js에서 번들된 jquery, bootstrap 초기화 - 기본 printJS 코드를 common_path, vendors, common으로 고정
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { activeFlip, escapeHtml, isInt, mb_strwidth, mb_strimwidth, convertDictById, convertSet, hexToRgb, isBrightColor, convColorValue, numberWithCommas, linkifyStrWithOpt, TemplateEngine, getIconPath, combineObject, combineArray, activeFlipItem, errUnknown, errUnknownToast, quickReject, nl2br, getNpcColor, initTooltip } from "./common_legacy";
|
||||
import jQuery from "jquery";
|
||||
|
||||
|
||||
|
||||
jQuery(function ($) {
|
||||
initTooltip();
|
||||
@@ -14,6 +17,8 @@ jQuery(function ($) {
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
$: typeof jQuery;
|
||||
jQuery: typeof jQuery;
|
||||
/** @deprecated Module 사용할 것 */
|
||||
escapeHtml: typeof escapeHtml;
|
||||
/** @deprecated Module 사용할 것 */
|
||||
@@ -63,6 +68,9 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
window.$ = jQuery;
|
||||
window.jQuery = jQuery;
|
||||
|
||||
window.escapeHtml = escapeHtml;
|
||||
window.isInt = isInt;
|
||||
window.mb_strwidth = mb_strwidth;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { unwrap } from "./util";
|
||||
|
||||
declare const jQuery: JQueryStatic;
|
||||
|
||||
import jQuery from "jquery";
|
||||
import 'bootstrap';
|
||||
|
||||
/**
|
||||
* <>& 등을 html에서도 그대로 보이도록 escape주는 함수
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { errUnknown } from "./common_legacy";
|
||||
import { launchTroopPlugin } from "./ext.plugin_troop";
|
||||
import jQuery from "jquery";
|
||||
|
||||
import "../scss/troop.scss";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user