From 648199245a2427204906c1276814d5e4b6fe9b76 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 21 Jul 2024 18:30:40 +0800 Subject: [PATCH] jquery plugins move to static --- .../jquery-plugins/jquery.cascadeSelect.js | 91 ------------------- .../jquery-plugins/jquery.strength_i18n.js | 26 ------ 2 files changed, 117 deletions(-) delete mode 100644 modules/core/src/main/resources/static/jquery-plugins/jquery.cascadeSelect.js delete mode 100644 modules/core/src/main/resources/static/jquery-plugins/jquery.strength_i18n.js diff --git a/modules/core/src/main/resources/static/jquery-plugins/jquery.cascadeSelect.js b/modules/core/src/main/resources/static/jquery-plugins/jquery.cascadeSelect.js deleted file mode 100644 index ec2d0048..00000000 --- a/modules/core/src/main/resources/static/jquery-plugins/jquery.cascadeSelect.js +++ /dev/null @@ -1,91 +0,0 @@ -/*! - * Copyright (c) 2013-Now http://jeesite.com All rights reserved. - * No deletion without permission, or be held responsible to law. - * 级联选择插件 - * @author ThinkGem - * @version 2021-4-25 - */ -(function ($) { - $.fn.cascadeSelect = function (options) { - var self = this, opts = $.extend({ - data: [], - id: "id", - name: "name", - children: "children", - blankOptionLabel: "请选择", - cssClass: 'form-control', - cssStyle: "width:150px", - change: function(){} - }, options); - var data = opts.data, - i, l, key = "id", parentKey = "pId", childKey = "children"; - if (Object.prototype.toString.apply(data) === "[object Array]") { - var treeData = [], map = []; - for (i=0, l=data.length; i").html("\n\ - .input-group.cascade-select .form-control {display:table-cell;}\n\ - .input-group.cascade-select .form-control:not(:last-child) {border-right:0}\n\ - .input-group.cascade-select .form-control:first-child:last-child {border-radius:4px}\n\ - ").appendTo($(self).addClass('cascade-select').parent()); - var html = '', data = opts.data, params = [data]; - html += ''; - $(self).html(html); - var createSelect = function() { - $(self).children('select').change(function () { - var self2 = this, val = $(self2).val().split("|")[1]; - $(self2).nextAll('select').remove(); - if (val % 1 == 0) { - var idx = $(self2).index(), html2 = ""; - params[idx + 1] = params[idx][val][opts.children];//一条线放一个数组 不同线重置 - html2 += ''; - $(self2).after(html2); - $(self).children("select").unbind("change"); - createSelect(); - } - var vals = [], names = []; - $(self).find('select').each(function(){ - var val = $(this).val(); - if (val != ''){ - vals.push(val.split("|")[0]); - names.push(unescape(val.split("|")[2])); - } - }); - opts.change(vals, names); - }) - } - createSelect(); - } -})(jQuery); \ No newline at end of file diff --git a/modules/core/src/main/resources/static/jquery-plugins/jquery.strength_i18n.js b/modules/core/src/main/resources/static/jquery-plugins/jquery.strength_i18n.js deleted file mode 100644 index 9ae61aeb..00000000 --- a/modules/core/src/main/resources/static/jquery-plugins/jquery.strength_i18n.js +++ /dev/null @@ -1,26 +0,0 @@ -(function($) { - - $.fn.strength = $.fn.strength || {}; - if (window.lang == 'en'){ - $.extend(true, $.fn.strength.defaults, { - strengthTipText: 'Password no less than 8 bits in length, and included, upper case letters, lower case letters, Numbers and symbols.', - strengthButtonText: 'Click to display the password.', - strengthButtonTextToggle: 'Click the hidden password.', - veryweakText: 'Password is too weak!', - weakText: 'Password is weak!', - mediumText: 'Password is safer!', - strongText: 'Password is very strong and safe!' - }); - } else if (window.lang == 'ja_JP'){ - $.extend(true, $.fn.strength.defaults, { - strengthTipText: 'パスワードは长さが8ビット以内で、その中には、上のケース、下のケース、数字、記号があります。', - strengthButtonText: 'クリックしてパスワードを表示します。', - strengthButtonTextToggle: '隠れパスワードをクリックします。', - veryweakText: 'パスワードが弱すぎる!', - weakText: '体の弱いパスワードは', - mediumText: 'パスワードは!平和な', - strongText: 'パスワードは丈夫で安全です!' - }); - } - -})(jQuery);