2023-02-23 09:45:29 +00:00
|
|
|
|
/*
|
|
|
|
|
|
* MIT License
|
|
|
|
|
|
*
|
|
|
|
|
|
* Copyright (c) 2023 芊芊墨客
|
|
|
|
|
|
*
|
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
|
|
*
|
|
|
|
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
|
|
|
|
* copies or substantial portions of the Software.
|
|
|
|
|
|
*
|
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
|
|
* SOFTWARE.
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2023-02-15 09:08:22 +00:00
|
|
|
|
package com.zhangmeng.tools.utils;
|
|
|
|
|
|
|
2023-03-09 08:19:30 +00:00
|
|
|
|
import javafx.scene.image.Image;
|
|
|
|
|
|
|
2023-02-15 09:08:22 +00:00
|
|
|
|
import java.net.URL;
|
|
|
|
|
|
|
2023-02-16 01:21:09 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* @author : 芊芊墨客
|
|
|
|
|
|
* @version : 1.0
|
|
|
|
|
|
* @date : 2023-02-16 09:19
|
|
|
|
|
|
*/
|
2023-02-15 09:08:22 +00:00
|
|
|
|
public class ResourcesUtils {
|
|
|
|
|
|
|
|
|
|
|
|
public static final String base_fxml = "/fxml/";
|
|
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public static URL getResource(String name) {
|
2023-02-15 09:08:22 +00:00
|
|
|
|
String path = base_fxml + name + ".fxml";
|
|
|
|
|
|
return ResourcesUtils.class.getResource(path);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public static Image getBg() {
|
|
|
|
|
|
return new Image(ImagePath.path(ImagePath.ImagePathType.BACKGROUND_IMAGE));
|
2023-03-09 08:19:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum Menu {
|
|
|
|
|
|
Md5("md5加密", 0),
|
|
|
|
|
|
SpringSecurity("spring加密", 1),
|
2023-05-06 10:26:46 +00:00
|
|
|
|
Jks_File("Jks_File", 2),
|
2023-04-25 10:19:00 +00:00
|
|
|
|
;
|
2023-02-16 03:24:22 +00:00
|
|
|
|
|
2023-02-15 09:08:22 +00:00
|
|
|
|
|
|
|
|
|
|
Menu(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2023-02-16 01:21:09 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum Player {
|
2023-02-16 03:24:22 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
Video("视频播放", 0),
|
|
|
|
|
|
Music("音乐播放", 1),
|
|
|
|
|
|
VipParser("vip解析", 2),
|
|
|
|
|
|
MusicParser("音乐解析", 3),
|
2023-05-20 08:52:17 +00:00
|
|
|
|
VideoTranscoder("视频转码",4)
|
2023-04-21 10:15:49 +00:00
|
|
|
|
;
|
2023-02-16 03:24:22 +00:00
|
|
|
|
|
|
|
|
|
|
Player(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
2023-02-18 07:48:15 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum SmallTools {
|
|
|
|
|
|
Hex_16("16进制(Hex)", 0),
|
|
|
|
|
|
Unicode("Unicode和字符串转换", 1),
|
|
|
|
|
|
JWT_WEB("json-web-token", 2),
|
|
|
|
|
|
COLOR_CHOOSE("颜色选择", 3),
|
|
|
|
|
|
Qr_CODE("生成二维码", 4),
|
|
|
|
|
|
Date_Query("日历", 5),
|
|
|
|
|
|
Cron("cron表达式", 6),
|
|
|
|
|
|
Mail("发送邮件", 7),
|
|
|
|
|
|
TelePhone("手机号工具", 8),
|
|
|
|
|
|
JSONView("json工具", 9),
|
|
|
|
|
|
Maven_Install_Jar("maven安装jar", 10),
|
|
|
|
|
|
Word_ocr("文字识别ocr", 11),
|
|
|
|
|
|
Bar_Code("条形码识别", 12),
|
|
|
|
|
|
Pdf_Ocr("pdf识别", 13),
|
|
|
|
|
|
BatchUpdateFileName("批量修改文件名", 14),
|
2023-05-17 08:41:05 +00:00
|
|
|
|
Capter_Screent("截图", 15),
|
2023-06-01 08:35:57 +00:00
|
|
|
|
File_Edit("文件编辑器", 16),
|
2023-07-11 07:37:55 +00:00
|
|
|
|
LayUI_Form_Gen("layui-from 表单生成", 17),
|
2023-09-02 03:14:57 +00:00
|
|
|
|
LogConsole("日志输出", 18),
|
2023-09-20 10:20:33 +00:00
|
|
|
|
EditPlusCode("edit-plus注册码", 19),
|
|
|
|
|
|
MinioUpload("minio-upload文件上传", 20),
|
2023-02-18 07:48:15 +00:00
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
SmallTools(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
2023-02-21 04:02:04 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum CodecTools {
|
2023-02-21 04:02:04 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
Base62("Base62编码解码", 0),
|
|
|
|
|
|
Base64("Base64编码解码", 1),
|
|
|
|
|
|
Base32("Base32编码解码", 2),
|
|
|
|
|
|
MorseCoder("摩尔斯电码", 3),
|
2023-02-21 04:02:04 +00:00
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
CodecTools(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
2023-02-21 09:52:37 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum SqlTools {
|
2023-02-21 09:52:37 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
MySql_Code_Generate("mysql 代码生成", 0),
|
|
|
|
|
|
MyBatis_plus_Generate("mybatis-plus 代码生成", 1),
|
|
|
|
|
|
Json_To_JavaBean("json转javabean 代码生成", 2),
|
2023-05-18 04:14:37 +00:00
|
|
|
|
Sql_Query("sql 查询", 3),
|
2023-02-21 09:52:37 +00:00
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
SqlTools(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
2023-02-25 09:47:24 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum NetWorkTools {
|
2023-02-25 09:47:24 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
Netty_Client_Websocket("netty websocket 客户端", 0),
|
2023-02-25 09:47:24 +00:00
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
NetWorkTools(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
2023-03-08 02:16:46 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum HttpTools {
|
2023-03-08 02:16:46 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
Http_Request("http 请求工具", 0),
|
|
|
|
|
|
Http_Upload("http 上传工具", 1),
|
|
|
|
|
|
Http_DownLoad("http 下载工具", 2),
|
2023-03-08 02:16:46 +00:00
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
HttpTools(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
2023-03-10 09:47:46 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
public enum ServerTools {
|
2023-03-10 09:47:46 +00:00
|
|
|
|
|
2023-05-06 07:40:25 +00:00
|
|
|
|
Http_Server("Http Server工具", 0),
|
|
|
|
|
|
Ftp_Server("Ftp Server工具", 1),
|
|
|
|
|
|
SSH_Client("ssh 连接工具", 2),
|
|
|
|
|
|
Socket_Server("socket Server", 3),
|
|
|
|
|
|
Socket_client_aio("aio socket client",4),
|
|
|
|
|
|
Socket_server_aio("aio socket server",5),
|
2023-05-06 08:39:02 +00:00
|
|
|
|
Socket_server_nio("nio socket server",6),
|
|
|
|
|
|
Socket_client_nio("nio socket client",7),
|
2023-06-13 06:30:33 +00:00
|
|
|
|
Web_Socket_client("web socket client",8),
|
2023-03-10 09:47:46 +00:00
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
ServerTools(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-05-31 10:06:32 +00:00
|
|
|
|
public enum GoTools {
|
|
|
|
|
|
|
|
|
|
|
|
Json_Struct("json生成结构体", 0),
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
GoTools(String title, int index) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
|
|
return title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
|
|
this.title = title;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() {
|
|
|
|
|
|
return index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setIndex(int index) {
|
|
|
|
|
|
this.index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String title;
|
|
|
|
|
|
private int index;
|
|
|
|
|
|
}
|
2023-02-15 09:08:22 +00:00
|
|
|
|
}
|