Skip to content

Commit 337dbb3

Browse files
refactoring
1 parent 0f0ec00 commit 337dbb3

File tree

13 files changed

+548
-1298
lines changed

13 files changed

+548
-1298
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SPK_NAME = rr-manager
22
SPK_VERS = 2.0
3-
SPK_REV = 28
3+
SPK_REV = 29
44
SPK_ICON = src/rr-manager.png
55

66
DSM_UI_DIR = app

src/app/texts/enu/strings

+23-14
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,12 @@ tab_addons = "Addons"
1010
tab_configuration = "Configuration"
1111
tab_debug = "Debug"
1212

13-
lb_select_update_file = "Please select the update file:"
14-
upload_update_file_form_validation_invalid_msg = "Please select the update/updateAll file before start uploading."
1513
alt_confirm = "Confirm"
16-
update_rr_progress_msg = "Update RR in progress: {0}. Status: {1}."
17-
update_rr_completed = "The RR has been successfully updated. Please restart the NAS."
18-
update_rr_error_msg = "Unable to update RR. Status code: {0}, Reason: {1}"
19-
update_rr_confirmation = "Curent RR version: {0}. Update file version: {1}"
20-
update_rr_confirmation_title = "Confirm update"
2114
confirm_system_clean_up_msg = "Would you like to run clean up sustem partition script?"
2215
confirm_system_clean_up_title = "Confirm system cleanup"
2316

24-
unable_update_rr_msg = "Unable to update RR: {0}. Please upload the file and try againe."
2517
upload_file_dialog_title = "Upload File"
2618

27-
select_file = "Select File"
2819
loading_text = "Loading..."
2920
system_info = "🖥️System Info:"
3021

@@ -34,18 +25,15 @@ tasks_created_msg = "The tasks have been successfully created. Please restart th
3425
share_notfound_msg = "Attention! The {0} folder not found. Please create the share/folder and restart the app."
3526
required_components_missing-title = "Required components missing"
3627
required_components_missing_spinner_msg = "It seems like some of the tasks are missing in the system: {0}. Please complete the onboarding process before start using RR Manager."
37-
file_uploading_succesfull_msg = "File has been successfully uploaded. Would you like to run update procedure?"
3828
update_confirm_title = "Confirm update"
3929
uploading_file = "Uploading file..."
4030
save_addons_changes = "Save addons changes"
4131

4232
rr_config_applied="The RR config has been successfully applied. Please restart the NAS to apply the changes."
4333
checking_dependencies_loader="Checking the dependencies..."
44-
file_uploading_failed_msg="Error file uploading."
45-
completed="Completed:"
4634

47-
section_rr_actions="RR Actions"
48-
run_update="Run Update"
35+
section_rr_actions="Update RR Loader"
36+
run_update="Upload file"
4937

5038
frm_validation_fill_required_fields="Please fill in the required field(s)."
5139
frm_validation_no_change="Nothing to save"
@@ -70,6 +58,27 @@ from_ds="From DiskStation"
7058

7159
image_name="Image Name"
7260

61+
#TODO: translate
62+
[upload_file_dialog]
63+
lb_select_update_file = "Please select the update file:"
64+
choose_file_title = "Choose update file"
65+
select_file = "Select File"
66+
file_uploading_succesfull_msg = "File has been successfully uploaded. Would you like to run update procedure?"
67+
file_uploading_failed_msg = "Error file uploading."
68+
completed = "Completed:"
69+
unable_update_rr_msg = "Unable to update RR: {0}. Please upload the file and try againe."
70+
update_rr_completed = "The RR has been successfully updated. Please restart the NAS."
71+
update_rr_progress_msg = "Update RR in progress: {0}. Status: {1}."
72+
update_rr_error_msg = "Unable to update RR. Status code: {0}, Reason: {1}"
73+
update_rr_confirmation = "Curent RR version: {0}. Update file version: {1}"
74+
update_rr_confirmation_title = "Confirm update"
75+
upload_update_file_form_validation_invalid_msg = "Please select the update/updateAll file before start uploading."
76+
btn_proceed = "Proceed"
77+
78+
[health_panel]
79+
btn_from_pc = "From PC"
80+
btn_from_ds = "From DiskStation"
81+
7382
[widget]
7483
danger_status="Danger!"
7584
danger_status_message="Your RR is not working properly."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
export default
2+
Ext.define("SYNOCOMMUNITY.RRManager.Overview.PasswordConfirmDialog", {
3+
extend: "SYNO.SDS.ModalWindow",
4+
constructor: function (a) {
5+
this.callParent([this.fillConfig(a)]);
6+
},
7+
buttons: [
8+
{
9+
xtype: "syno_button",
10+
text: _T("common", "alt_cancel"),
11+
scope: this,
12+
handler: function () {
13+
Ext.getCmp("confirm_password_dialog").close();
14+
},
15+
},
16+
{
17+
xtype: "syno_button",
18+
text: _T("common", "submit"),
19+
btnStyle: "blue",
20+
scope: this,
21+
handler: function () {
22+
const passwordValue = Ext.getCmp("confirm_password").getValue();
23+
Ext.getCmp("confirm_password_dialog").close();
24+
resolve(passwordValue);
25+
}
26+
},
27+
],
28+
items: [
29+
{
30+
xtype: "syno_formpanel",
31+
id: "password_form_panel",
32+
bodyStyle: "padding: 0",
33+
items: [
34+
{
35+
xtype: "syno_displayfield",
36+
value: String.format(_T("common", "enter_user_password")),
37+
},
38+
{
39+
xtype: "syno_textfield",
40+
fieldLabel: _T("common", "password"),
41+
textType: "password",
42+
id: "confirm_password",
43+
},
44+
],
45+
},
46+
]
47+
});

0 commit comments

Comments
 (0)