mirror of
https://github.com/KOHGYLW/kiftd-source.git
synced 2025-01-09 04:27:56 +08:00
update to v1.0.23-release
This commit is contained in:
parent
3b72919654
commit
4b0c7b1689
2
TODO.txt
2
TODO.txt
@ -73,7 +73,7 @@ test.auth.xxx=ucd
|
||||
--------------
|
||||
【已完成】优化了歌词显示功能,使得其能够正确显示使用GBK/GB2312编码的LRC歌词。
|
||||
|
||||
计划中 v1.0.23
|
||||
已完成 v1.0.23
|
||||
--------------
|
||||
【已完成】用户修改密码功能——这是很多用户一直期待加入的功能。现在,管理员只需手动开启该功能,便可以赋予用户自由地修改账户密码的能力了。
|
||||
【已完成】永久资源链接——当开启该功能后,每个kiftd中的文件均会生成一个永久有效的外部链接,该链接能够随意在其它网站中作为资源引用。
|
||||
|
@ -10,7 +10,7 @@ import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Scanner;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
import kohgylw.kiftd.printer.*;
|
||||
@ -37,7 +37,7 @@ public class ConsoleRunner {
|
||||
private static FolderView currentFolder;
|
||||
private Scanner reader;
|
||||
|
||||
private Executor worker;
|
||||
private ExecutorService worker;
|
||||
|
||||
private ConsoleRunner() {
|
||||
Printer.init(false);
|
||||
@ -149,6 +149,7 @@ public class ConsoleRunner {
|
||||
if (ConsoleRunner.ctl.started() && ConsoleRunner.ctl.stop()) {
|
||||
Printer.instance.print("服务器已关闭,停止所有访问。");
|
||||
}
|
||||
worker.shutdown();
|
||||
Printer.instance.print("退出应用。");
|
||||
System.exit(0);
|
||||
}
|
||||
|
@ -593,7 +593,7 @@ public class ConfigureReader {
|
||||
// 是否允许用户修改密码
|
||||
final String changePassword = this.serverp.getProperty("password.change");
|
||||
if (changePassword == null) {
|
||||
Printer.instance.print("警告:未找到用户修改密码功能配置,将采用默认值(禁止)。");
|
||||
Printer.instance.print("警告:未找到用户修改密码功能配置,将采用默认值(禁用)。");
|
||||
this.allowChangePassword = false;
|
||||
} else {
|
||||
switch (changePassword) {
|
||||
@ -611,7 +611,7 @@ public class ConfigureReader {
|
||||
// 是否提供永久资源链接
|
||||
final String fileChain = this.serverp.getProperty("openFileChain");
|
||||
if (fileChain == null) {
|
||||
Printer.instance.print("警告:未找到永久资源链接功能配置,将采用默认值(关闭)。");
|
||||
Printer.instance.print("警告:未找到永久资源链接功能配置,将采用默认值(禁用)。");
|
||||
this.openFileChain = false;
|
||||
} else {
|
||||
switch (fileChain) {
|
||||
@ -645,7 +645,7 @@ public class ConfigureReader {
|
||||
}
|
||||
this.FSPath = this.serverp.getProperty("FS.path");
|
||||
if (this.FSPath == null) {
|
||||
Printer.instance.print("警告:未找到文件系统配置,将采用默认值。");
|
||||
Printer.instance.print("警告:未找到主文件系统路径配置,将采用默认值。");
|
||||
this.fileSystemPath = this.DEFAULT_FILE_SYSTEM_PATH;
|
||||
} else if (this.FSPath.equals("DEFAULT")) {
|
||||
this.fileSystemPath = this.DEFAULT_FILE_SYSTEM_PATH;
|
||||
|
@ -7,7 +7,7 @@ import kohgylw.kiftd.printer.Printer;
|
||||
import kohgylw.kiftd.server.enumeration.*;
|
||||
import javax.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
import kohgylw.kiftd.server.model.*;
|
||||
@ -36,7 +36,7 @@ public class LogUtil {
|
||||
@Resource
|
||||
private IpAddrGetter idg;
|
||||
|
||||
private Executor writerThread;
|
||||
private ExecutorService writerThread;
|
||||
private FileWriter writer;
|
||||
private String logName;
|
||||
|
||||
@ -512,6 +512,7 @@ public class LogUtil {
|
||||
if (writer != null) {
|
||||
writer.close();
|
||||
}
|
||||
writerThread.shutdown();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ import java.io.File;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
import javax.swing.JButton;
|
||||
@ -60,7 +60,7 @@ public class FSViewer extends KiftdDynamicWindow {
|
||||
|
||||
private static FSViewer fsv;// 该窗口的唯一实例
|
||||
private static FolderView currentView;// 当前显示的视图
|
||||
private static Executor worker;// 操作线程池
|
||||
private static ExecutorService worker;// 操作线程池
|
||||
|
||||
// 资源加载
|
||||
private FSViewer() throws SQLException {
|
||||
@ -522,5 +522,11 @@ public class FSViewer extends KiftdDynamicWindow {
|
||||
homeBtn.setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
worker.shutdown();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class FileSystemPathViewer extends KiftdDynamicWindow {
|
||||
});
|
||||
changeBtn.addActionListener((e) -> {
|
||||
disableAllButtons();
|
||||
if (JOptionPane.showConfirmDialog(window, "确认要修改该路径么?警告:若该路径中已经存储数据,则设置新路径后将丢失。", "修改路径",
|
||||
if (JOptionPane.showConfirmDialog(window, "确认要修改该存储路径么?警告:修改为新路径后,该存储区内原先存放的数据将会丢失。", "修改路径",
|
||||
JOptionPane.YES_NO_OPTION) != JOptionPane.YES_OPTION) {
|
||||
return;
|
||||
}
|
||||
@ -163,7 +163,7 @@ public class FileSystemPathViewer extends KiftdDynamicWindow {
|
||||
});
|
||||
removeBtn.addActionListener((e) -> {
|
||||
disableAllButtons();
|
||||
if (JOptionPane.showConfirmDialog(window, "确认要移除该扩展存储区么?该存储区内的文件将丢失。警告:设置生效后不可恢复。", "移除扩展存储区",
|
||||
if (JOptionPane.showConfirmDialog(window, "确认要移除该扩展存储区么?警告:移除后,该存储区内原先存放的数据将丢失,且设置生效后不可恢复。", "移除扩展存储区",
|
||||
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
|
||||
short index=pathsTable.getSelectFileSystemIndex();
|
||||
for(int i=0;i<SettingWindow.extendStores.size();i++) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Tue Oct 01 17:28:19 CST 2019
|
||||
#Wed Oct 02 15:47:18 CST 2019
|
||||
version=1.0.23-SNAPSHOT
|
||||
groupId=kohgylw
|
||||
m2e.projectName=kiftd
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,6 +1,7 @@
|
||||
<!doctype html>
|
||||
<!-- kiftd v1.0.23-RELEASE -->
|
||||
<!-- by 青阳龙野 -->
|
||||
<!-- 青阳网络文件传输系统 kiftd v1.0.23-RELEASE -->
|
||||
<!-- 欢迎访问主界面 -->
|
||||
<!-- by 青阳龙野(kohgylw@163.com) -->
|
||||
<html>
|
||||
<head>
|
||||
<base href="/">
|
||||
@ -826,5 +827,5 @@
|
||||
<!-- 音乐播放器 -->
|
||||
<script type="text/javascript" src="js/APlayer.min.js"></script>
|
||||
<!-- 页面操作定义 -->
|
||||
<script type="text/javascript" src="js/home.js"></script>
|
||||
<script type="text/javascript" src="js/home.min.js"></script>
|
||||
</html>
|
5
webContext/js/home.min.js
vendored
5
webContext/js/home.min.js
vendored
File diff suppressed because one or more lines are too long
@ -2,6 +2,14 @@
|
||||
* For signup.html
|
||||
*/
|
||||
$(function(){
|
||||
// 回车键快捷操作
|
||||
$("body").keypress(function(e) {
|
||||
var keyCode = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;
|
||||
if (keyCode == 13) {
|
||||
var g = $("#signupBtn").click();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$("#accountid").focus();//再自动聚焦账户输入框
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user