todo: alist检查更新、代理测试

This commit is contained in:
2024-09-08 02:03:01 +08:00
parent ef8ae3e53d
commit b1218e9122
21 changed files with 551 additions and 324 deletions

View File

@ -50,7 +50,6 @@
-fx-background-color: transparent;
-fx-text-fill: #9254d1;
-fx-border-color: #9254d1;
-fx-border-width: 2;
}
#logArea {

View File

@ -3,59 +3,48 @@
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<GridPane fx:id="setupView" prefHeight="700" prefWidth="720" stylesheets="@../css/setup-view.css"
xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"
fx:controller="cn.octopusyan.alistgui.controller.SetupController">
<AnchorPane fx:id="setupView" prefHeight="700" prefWidth="720" stylesheets="@../css/setup-view.css"
xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="cn.octopusyan.alistgui.controller.SetupController">
<padding>
<Insets left="10.0" right="10.0" top="20.0"/>
</padding>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" percentWidth="100"/>
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES"/>
<RowConstraints vgrow="SOMETIMES"/>
</rowConstraints>
<VBox spacing="20">
<VBox spacing="20" AnchorPane.topAnchor="0" AnchorPane.leftAnchor="0">
<CheckBox fx:id="autoStartCheckBox" text="%setup.auto-start.label"/>
<CheckBox fx:id="silentStartupCheckBox" text="%setup.silent-startup.label"/>
<HBox alignment="CENTER_LEFT" spacing="10">
<Label text="%setup.language"/>
<ComboBox fx:id="languageComboBox"/>
</HBox>
<HBox alignment="CENTER_LEFT" spacing="20">
<Label styleClass="proxy-label" text="%setup.proxy"/>
<ComboBox fx:id="proxySetupComboBox"/>
<Button fx:id="proxyCheck" text="%setup.proxy.test"/>
</HBox>
<VBox fx:id="proxySetupPane" spacing="10">
<HBox alignment="CENTER_LEFT" spacing="20">
<Label text="%setup.proxyInfo" styleClass="proxyInfo-label"/>
<ComboBox fx:id="proxySetupComboBox"/>
<Label text="%setup.proxy.host"/>
<TextField fx:id="proxyHost" promptText="127.0.0.1"/>
</HBox>
<!-- <HBox spacing="10" visible="false">-->
<!-- <RadioButton fx:id="noProxy" text="%proxyInfo.setup.label.no_proxy"/>-->
<!-- <RadioButton fx:id="systemProxy" text="%proxyInfo.setup.label.system"/>-->
<!-- <RadioButton fx:id="manualProxy" text="%proxyInfo.setup.label.manual"/>-->
<!-- </HBox>-->
<VBox fx:id="proxySetupPane" spacing="10">
<HBox spacing="20" alignment="CENTER_LEFT">
<Label text="%setup.proxyInfo.host"/>
<TextField fx:id="proxyHost" promptText="127.0.0.1"/>
</HBox>
<HBox spacing="20" alignment="CENTER_LEFT">
<Label text="%setup.proxyInfo.port"/>
<TextField fx:id="proxyPort" promptText="8080"/>
</HBox>
</VBox>
<HBox alignment="CENTER_LEFT" spacing="20">
<Label text="%setup.proxy.port"/>
<TextField fx:id="proxyPort" promptText="8080"/>
</HBox>
</VBox>
</VBox>
<AnchorPane GridPane.rowIndex="1">
<VBox alignment="CENTER" spacing="10"
AnchorPane.bottomAnchor="50" AnchorPane.rightAnchor="0" AnchorPane.topAnchor="0">
<AnchorPane AnchorPane.rightAnchor="0" AnchorPane.bottomAnchor="0">
<VBox alignment="CENTER" spacing="10" AnchorPane.bottomAnchor="50" AnchorPane.rightAnchor="0"
AnchorPane.topAnchor="0">
<HBox alignment="CENTER" styleClass="shield">
<Label text="%alist.version" styleClass="shield-name"/>
<Label fx:id="alistVersion" styleClass="shield-version"/>
<Label styleClass="shield-name" text="%alist.version"/>
<Label fx:id="aListVersion" styleClass="shield-version"/>
</HBox>
<HBox alignment="CENTER" styleClass="shield">
<Label text="%app.version" styleClass="shield-name"/>
<Label text="${project.version}" styleClass="shield-version"/>
<Label styleClass="shield-name" text="%app.version"/>
<Label styleClass="shield-version" text="v${project.version}"/>
</HBox>
<Button text="%app.update"/>
<Button text="%alist.update"/>
<Button fx:id="checkAppVersion" text="%app.update"/>
<Button fx:id="checkAListVersion" onAction="#checkAListUpdate" text="%alist.update"/>
</VBox>
</AnchorPane>
</GridPane>
</AnchorPane>

View File

@ -11,7 +11,7 @@ main.status.label-running=\u8FD0\u884C\u4E2D
main.status.label-stop=\u5DF2\u505C\u6B62
main.more.browser=\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00
main.more.open-log=\u6253\u5F00\u65E5\u5FD7\u6587\u4EF6\u5939
setup.proxyInfo=HTTP\u4EE3\u7406
setup.proxy=HTTP\u4EE3\u7406
setup.auto-start.label=\u5F00\u673A\u81EA\u542F
setup.silent-startup.label=\u9759\u9ED8\u542F\u52A8
setup.language=\u8BED\u8A00
@ -19,9 +19,10 @@ alist.version=AList \u7248\u672C
app.version=GUI \u7248\u672C
alist.update=\u68C0\u67E5 AList \u7248\u672C
app.update=\u68C0\u67E5 GUI \u7248\u672C
setup.proxyInfo.host=\u4E3B\u673A
setup.proxyInfo.port=\u7AEF\u53E3
setup.proxy.host=\u4E3B\u673A
setup.proxy.port=\u7AEF\u53E3
proxy.setup.label.no_proxy=\u4E0D\u4EE3\u7406
proxy.setup.label.system=\u7CFB\u7EDF\u4EE3\u7406
proxy.setup.label.manual=\u624B\u52A8\u8BBE\u7F6E
setup.proxy.test=\u6D4B\u8BD5

View File

@ -11,7 +11,7 @@ main.status.label-running=Running
main.status.label-stop=Stoped
main.more.browser=Open in browser
main.more.open-log=Open the log folder
setup.proxyInfo=HTTP PROXY
setup.proxy=HTTP PROXY
setup.auto-start.label=Auto start with PC
setup.silent-startup.label=Silent startup
setup.language=language
@ -19,9 +19,10 @@ alist.version=AList Version
app.version=GUI Version
alist.update=Check AList Version
app.update=Check GUI Version
setup.proxyInfo.host=Host
setup.proxyInfo.port=Port
setup.proxy.host=Host
setup.proxy.port=Port
proxy.setup.label.no_proxy=No Proxy
proxy.setup.label.system=System Proxy
proxy.setup.label.manual=Manual Config
setup.proxy.test=Check connection

View File

@ -11,7 +11,7 @@ main.status.label-running=\u8FD0\u884C\u4E2D
main.status.label-stop=\u5DF2\u505C\u6B62
main.more.browser=\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00
main.more.open-log=\u6253\u5F00\u65E5\u5FD7\u6587\u4EF6\u5939
setup.proxyInfo=HTTP\u4EE3\u7406
setup.proxy=HTTP\u4EE3\u7406
setup.auto-start.label=\u5F00\u673A\u81EA\u542F
setup.silent-startup.label=\u9759\u9ED8\u542F\u52A8
setup.language=\u8BED\u8A00
@ -19,9 +19,10 @@ alist.version=AList \u7248\u672C
app.version=GUI \u7248\u672C
alist.update=\u68C0\u67E5 AList \u7248\u672C
app.update=\u68C0\u67E5 GUI \u7248\u672C
setup.proxyInfo.host=\u4E3B\u673A
setup.proxyInfo.port=\u7AEF\u53E3
setup.proxy.host=\u4E3B\u673A
setup.proxy.port=\u7AEF\u53E3
proxy.setup.label.no_proxy=\u4E0D\u4EE3\u7406
proxy.setup.label.system=\u7CFB\u7EDF\u4EE3\u7406
proxy.setup.label.manual=\u624B\u52A8\u8BBE\u7F6E
setup.proxy.test=\u6D4B\u8BD5