From 4e45244abf094bdc6eac6738490a0227dff2a712 Mon Sep 17 00:00:00 2001 From: zmaplex Date: Fri, 10 Jul 2020 16:58:37 +0800 Subject: [PATCH 1/4] change default icon change 'far fa-file' to 'fa fa-bars' --- simpleui/templatetags/simpletags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleui/templatetags/simpletags.py b/simpleui/templatetags/simpletags.py index 709c3570..269b2656 100644 --- a/simpleui/templatetags/simpletags.py +++ b/simpleui/templatetags/simpletags.py @@ -273,7 +273,7 @@ def get_icon(obj, name=None): if not temp: _default = __get_config('SIMPLEUI_DEFAULT_ICON') if _default is None or _default: - return 'far fa-file' + return 'fa fa-bars' return '' return temp From b8ac00fbe10d8c31610aeb5303d131d166143dd1 Mon Sep 17 00:00:00 2001 From: zmaplex Date: Fri, 10 Jul 2020 19:25:47 +0800 Subject: [PATCH 2/4] update DEFAULT_ICON to 'far fa-circle' --- simpleui/templatetags/simpletags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleui/templatetags/simpletags.py b/simpleui/templatetags/simpletags.py index 269b2656..f6a9c89d 100644 --- a/simpleui/templatetags/simpletags.py +++ b/simpleui/templatetags/simpletags.py @@ -273,7 +273,7 @@ def get_icon(obj, name=None): if not temp: _default = __get_config('SIMPLEUI_DEFAULT_ICON') if _default is None or _default: - return 'fa fa-bars' + return 'far fa-circle' return '' return temp From 7a9e6fc15f0db9acb4d72a2accc4b0987ae90643 Mon Sep 17 00:00:00 2001 From: panjing <599194993@qq.com> Date: Fri, 17 Jul 2020 12:26:10 +0800 Subject: [PATCH 3/4] Add Portuguese support. By @jamosoma --- .../static/admin/simpleui-x/locale/pt-br.js | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 simpleui/static/admin/simpleui-x/locale/pt-br.js diff --git a/simpleui/static/admin/simpleui-x/locale/pt-br.js b/simpleui/static/admin/simpleui-x/locale/pt-br.js new file mode 100644 index 00000000..05efc7c7 --- /dev/null +++ b/simpleui/static/admin/simpleui-x/locale/pt-br.js @@ -0,0 +1,42 @@ +var Lanuages = { + "Refresh": "Recarregar", + "Close current": "Fechar atual", + "Close other": "Fechar outro", + "Close all": "Fechar todos", + "Open in a new page": "Abrir uma nova página", + "Change theme": "Mudar o tema", + "Default": "Padrão", + "Servers": "Servidores", + "Application information": "Informações da aplicação", + "Home page": "Pagina inicial", + "Report issue": "Reportar um problema", + + "Select": "Selecionar", + "Selected": "Selecionado", + + + "Purple": "Roxo", + "Gray": "Cinza", + "Dark green": "Verde Escuro", + "Orange": "Laranjado", + "Black": "Preta", + "Green": "Verde", + "Light": "Claro", + + "Number": "Número", + "Theme name": "Nome do tema", + "Action": "Ação", + + "ConfirmYes": "ConfirmarSIM", + "ConfirmNo": "ConfirmarNão", + "Tips": "Dicas", + "Are you sure you want them all closed": "Você tem certeza que quer fechar tudo?", + + "to": "para", + "Quick navigation": "Navegação rápida", + "Go back": 'Voltar', + + 'Set font size': 'Mudar tamanho da fonte', + 'Reset': 'Reiniciar', + 'Are you sure you want to delete the selected?': 'Tem certeza que quer apagar os selecionados?' +} \ No newline at end of file From dc2689c9959acb13c51dd86a05a12dd8624e0b81 Mon Sep 17 00:00:00 2001 From: panjing <599194993@qq.com> Date: Fri, 17 Jul 2020 12:27:32 +0800 Subject: [PATCH 4/4] Change the way the version number is named --- simpleui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleui/__init__.py b/simpleui/__init__.py index f6d3c2e7..636cf256 100644 --- a/simpleui/__init__.py +++ b/simpleui/__init__.py @@ -2,4 +2,4 @@ def get_version(): - return '4.0.3' + return '2020.7'