diff --git a/src/lang/en/shares.json b/src/lang/en/shares.json index 75d807d6e..08054ff9a 100644 --- a/src/lang/en/shares.json +++ b/src/lang/en/shares.json @@ -37,5 +37,9 @@ }, "input_password": "Please enter Share Code", "copy_msg": "Copy link", - "no_permission_tip": "To create a share, you need \"Share\" permission." + "no_permission_tip": "To create a share, you need \"Share\" permission.", + "domain": "Domain", + "domain_help": "The domain name to bind (e.g. blog.example.com); leave empty for a normal share link.", + "web_hosting": "Web Hosting", + "web_hosting_help": "If enabled, HTML files will be served directly via the bound domain instead of the file browser." } diff --git a/src/pages/manage/shares/AddOrEdit.tsx b/src/pages/manage/shares/AddOrEdit.tsx index 0deffb106..96c3b0e62 100644 --- a/src/pages/manage/shares/AddOrEdit.tsx +++ b/src/pages/manage/shares/AddOrEdit.tsx @@ -170,6 +170,25 @@ const AddOrEdit = () => { setShare("header", h) }} /> + { + setShare("domain", d) + }} + /> + { + setShare("web_hosting", w) + }} + />