From d0fe4c98cf4fad6db79582de5a9bd20d95d805fb Mon Sep 17 00:00:00 2001 From: p
Date: Fri, 14 Aug 2026 11:59:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BB=E9=A1=B5=20Header=20=E5=8A=A0?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=88=87=E6=8D=A2=20+=20RBAC=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=99=BB=E5=BD=95=EF=BC=88=E5=8F=82=E8=80=83=20sage?= =?UTF-8?q?=20shell=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/i18n/language.ui | 35 +++++++++++++++++++++++++++++++++++ wwwroot/i18n/menu.ui | 29 +++++++++++++++++++++++++++++ wwwroot/index.ui | 12 ++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 wwwroot/i18n/language.ui create mode 100644 wwwroot/i18n/menu.ui diff --git a/wwwroot/i18n/language.ui b/wwwroot/i18n/language.ui new file mode 100644 index 0000000..25e5236 --- /dev/null +++ b/wwwroot/i18n/language.ui @@ -0,0 +1,35 @@ +{ + "id": "language", + "widgettype": "Text", + "options": { + "tip": "εζ’θ―θ¨", + "otext": "π", + "cwidth": 4, + "css": "clickable", + "cfontsize": 1.2 + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "Popup", + "popup_options": { + "eventpos": true, + "cwidth": 11, + "cheight": 10, + "dismiss_events": ["command"] + }, + "options": { + "url": "{{entire_url('menu.ui')}}" + } + }, + { + "wid": "app", + "event": "lang", + "actiontype": "script", + "target": "self", + "script": "this.set_otext(bricks.app.lang)" + } + ] +} diff --git a/wwwroot/i18n/menu.ui b/wwwroot/i18n/menu.ui new file mode 100644 index 0000000..ddea11a --- /dev/null +++ b/wwwroot/i18n/menu.ui @@ -0,0 +1,29 @@ +{ + "widgettype": "Menu", + "options": { + "cwidth": 11, + "target": "app", + "items": [ + { + "name": "zh", + "label": "δΈζ", + "script": "this.change_language('zh')" + }, + { + "name": "en", + "label": "English", + "script": "this.change_language('en')" + }, + { + "name": "jp", + "label": "ζ₯ζ¬θͺ", + "script": "this.change_language('jp')" + }, + { + "name": "ko", + "label": "νκ΅μ΄", + "script": "this.change_language('ko')" + } + ] + } +} diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 112ac7a..1a3d8ba 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -46,6 +46,18 @@ }, { "widgettype": "Filler" + }, + { + "widgettype": "urlwidget", + "options": { + "url": "{{entire_url('i18n/language.ui')}}" + } + }, + { + "widgettype": "urlwidget", + "options": { + "url": "{{entire_url('/rbac/user/user_panel.ui')}}" + } } ] },