feat: support customize theme (#1500)

* refactor: simplify functions and improve variable naming

* feat: add themeEditor component

* feat: support customize theme

* chore: resolve conflict and add LICENCE

* chore: format code

* refactor: use icon replace background url

* feat: improve organization and application theme editor
This commit is contained in:
Yaodong Yu
2023-02-01 22:06:40 +08:00
committed by GitHub
parent b47baa06e1
commit 95b32d5ebf
28 changed files with 13025 additions and 12126 deletions

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "Anmelden",
"Logout": "Abmelden",
"My Account": "Mein Konto",
"Sign Up": "Registrieren"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "Datei erfolgreich hochgeladen",
"Follow organization theme": "Follow organization theme",
"Form CSS": "Form CSS",
"Form CSS - Edit": "Form CSS - Edit",
"Form CSS - Tooltip": "Form CSS - Tooltip",
@ -158,10 +158,7 @@
"Click to Upload": "Click to Upload",
"Client IP": "Client-IP",
"Close": "Close",
"Compact": "Compact",
"Created time": "Erstellte Zeit",
"Dark": "Dark",
"Default": "Default",
"Default application": "Default application",
"Default application - Tooltip": "Default application - Tooltip",
"Default avatar": "Standard Avatar",
@ -341,6 +338,7 @@
"Default avatar": "Standard Avatar",
"Edit Organization": "Organisation bearbeiten",
"Favicon": "Févicon",
"Follow global theme": "Follow global theme",
"InitScore": "InitScore",
"Is profile public": "Is profile public",
"Is profile public - Tooltip": "Is profile public - Tooltip",
@ -690,6 +688,19 @@
"Unknown Version": "Unknown Version",
"Version": "Version"
},
"theme": {
"Blossom": "Blossom",
"Border radius": "Border radius",
"Compact": "Compact",
"Customize theme": "Customize theme",
"Dark": "Dark",
"Default": "Default",
"Document": "Document",
"Is compact": "Is compact",
"Primary color": "Primary color",
"Theme": "Theme",
"Theme - Tooltip": "Theme - Tooltip"
},
"token": {
"Access token": "Zugangs-Token",
"Authorization code": "Autorisierungscode",

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "Login",
"Logout": "Logout",
"My Account": "My Account",
"Sign Up": "Sign Up"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "Enable signup - Tooltip",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "File uploaded successfully",
"Follow organization theme": "Follow organization theme",
"Form CSS": "Form CSS",
"Form CSS - Edit": "Form CSS - Edit",
"Form CSS - Tooltip": "Form CSS - Tooltip",
@ -158,10 +158,7 @@
"Click to Upload": "Click to Upload",
"Client IP": "Client IP",
"Close": "Close",
"Compact": "Compact",
"Created time": "Created time",
"Dark": "Dark",
"Default": "Default",
"Default application": "Default application",
"Default application - Tooltip": "Default application - Tooltip",
"Default avatar": "Default avatar",
@ -341,6 +338,7 @@
"Default avatar": "Default avatar",
"Edit Organization": "Edit Organization",
"Favicon": "Favicon",
"Follow global theme": "Follow global theme",
"InitScore": "InitScore",
"Is profile public": "Is profile public",
"Is profile public - Tooltip": "Is profile public - Tooltip",
@ -690,6 +688,19 @@
"Unknown Version": "Unknown Version",
"Version": "Version"
},
"theme": {
"Blossom": "Blossom",
"Border radius": "Border radius",
"Compact": "Compact",
"Customize theme": "Customize theme",
"Dark": "Dark",
"Default": "Default",
"Document": "Document",
"Is compact": "Is compact",
"Primary color": "Primary color",
"Theme": "Theme",
"Theme - Tooltip": "Theme - Tooltip"
},
"token": {
"Access token": "Access token",
"Authorization code": "Authorization code",

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "Iniciar sesión",
"Logout": "Cerrar sesión",
"My Account": "Mi cuenta",
"Sign Up": "Registrarme"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "Habilitar nuevos registros - Tooltip",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "El archivo ha sido subido con éxito",
"Follow organization theme": "Follow organization theme",
"Form CSS": "Form CSS",
"Form CSS - Edit": "Form CSS - Edit",
"Form CSS - Tooltip": "Form CSS - Tooltip",
@ -158,10 +158,7 @@
"Click to Upload": "Click para subir archivo",
"Client IP": "IP del Cliente",
"Close": "Close",
"Compact": "Compact",
"Created time": "Fecha de creación",
"Dark": "Dark",
"Default": "Default",
"Default application": "Default application",
"Default application - Tooltip": "Default application - Tooltip",
"Default avatar": "Avatar por defecto",
@ -341,6 +338,7 @@
"Default avatar": "Avatar por defecto",
"Edit Organization": "Editar Organización",
"Favicon": "Favicon",
"Follow global theme": "Follow global theme",
"InitScore": "InitScore",
"Is profile public": "Es el perfil publico",
"Is profile public - Tooltip": "Es el perfil publico - Tooltip",
@ -690,6 +688,19 @@
"Unknown Version": "Unknown Version",
"Version": "Version"
},
"theme": {
"Blossom": "Blossom",
"Border radius": "Border radius",
"Compact": "Compact",
"Customize theme": "Customize theme",
"Dark": "Dark",
"Default": "Default",
"Document": "Document",
"Is compact": "Is compact",
"Primary color": "Primary color",
"Theme": "Theme",
"Theme - Tooltip": "Theme - Tooltip"
},
"token": {
"Access token": "Token de acceso",
"Authorization code": "Código de autorización",

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "Se connecter",
"Logout": "Déconnexion",
"My Account": "Mon Compte",
"Sign Up": "S'inscrire"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "Fichier téléchargé avec succès",
"Follow organization theme": "Follow organization theme",
"Form CSS": "Form CSS",
"Form CSS - Edit": "Form CSS - Edit",
"Form CSS - Tooltip": "Form CSS - Tooltip",
@ -158,10 +158,7 @@
"Click to Upload": "Click to Upload",
"Client IP": "IP du client",
"Close": "Close",
"Compact": "Compact",
"Created time": "Date de création",
"Dark": "Dark",
"Default": "Default",
"Default application": "Default application",
"Default application - Tooltip": "Default application - Tooltip",
"Default avatar": "Avatar par défaut",
@ -341,6 +338,7 @@
"Default avatar": "Avatar par défaut",
"Edit Organization": "Modifier l'organisation",
"Favicon": "Favicon",
"Follow global theme": "Follow global theme",
"InitScore": "InitScore",
"Is profile public": "Is profile public",
"Is profile public - Tooltip": "Is profile public - Tooltip",
@ -690,6 +688,19 @@
"Unknown Version": "Unknown Version",
"Version": "Version"
},
"theme": {
"Blossom": "Blossom",
"Border radius": "Border radius",
"Compact": "Compact",
"Customize theme": "Customize theme",
"Dark": "Dark",
"Default": "Default",
"Document": "Document",
"Is compact": "Is compact",
"Primary color": "Primary color",
"Theme": "Theme",
"Theme - Tooltip": "Theme - Tooltip"
},
"token": {
"Access token": "Jeton d'accès",
"Authorization code": "Code d'autorisation",

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "ログイン",
"Logout": "ログアウト",
"My Account": "マイアカウント",
"Sign Up": "新規登録"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "ファイルが正常にアップロードされました",
"Follow organization theme": "Follow organization theme",
"Form CSS": "Form CSS",
"Form CSS - Edit": "Form CSS - Edit",
"Form CSS - Tooltip": "Form CSS - Tooltip",
@ -158,10 +158,7 @@
"Click to Upload": "Click to Upload",
"Client IP": "クライアント IP",
"Close": "Close",
"Compact": "Compact",
"Created time": "作成日時",
"Dark": "Dark",
"Default": "Default",
"Default application": "Default application",
"Default application - Tooltip": "Default application - Tooltip",
"Default avatar": "デフォルトのアバター",
@ -341,6 +338,7 @@
"Default avatar": "デフォルトのアバター",
"Edit Organization": "組織を編集",
"Favicon": "ファビコン",
"Follow global theme": "Follow global theme",
"InitScore": "InitScore",
"Is profile public": "Is profile public",
"Is profile public - Tooltip": "Is profile public - Tooltip",
@ -690,6 +688,19 @@
"Unknown Version": "Unknown Version",
"Version": "Version"
},
"theme": {
"Blossom": "Blossom",
"Border radius": "Border radius",
"Compact": "Compact",
"Customize theme": "Customize theme",
"Dark": "Dark",
"Default": "Default",
"Document": "Document",
"Is compact": "Is compact",
"Primary color": "Primary color",
"Theme": "Theme",
"Theme - Tooltip": "Theme - Tooltip"
},
"token": {
"Access token": "アクセストークン",
"Authorization code": "認証コード",

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "Login",
"Logout": "Logout",
"My Account": "My Account",
"Sign Up": "Sign Up"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "File uploaded successfully",
"Follow organization theme": "Follow organization theme",
"Form CSS": "Form CSS",
"Form CSS - Edit": "Form CSS - Edit",
"Form CSS - Tooltip": "Form CSS - Tooltip",
@ -158,10 +158,7 @@
"Click to Upload": "Click to Upload",
"Client IP": "Client IP",
"Close": "Close",
"Compact": "Compact",
"Created time": "Created time",
"Dark": "Dark",
"Default": "Default",
"Default application": "Default application",
"Default application - Tooltip": "Default application - Tooltip",
"Default avatar": "Default avatar",
@ -341,6 +338,7 @@
"Default avatar": "Default avatar",
"Edit Organization": "Edit Organization",
"Favicon": "Favicon",
"Follow global theme": "Follow global theme",
"InitScore": "InitScore",
"Is profile public": "Is profile public",
"Is profile public - Tooltip": "Is profile public - Tooltip",
@ -690,6 +688,19 @@
"Unknown Version": "Unknown Version",
"Version": "Version"
},
"theme": {
"Blossom": "Blossom",
"Border radius": "Border radius",
"Compact": "Compact",
"Customize theme": "Customize theme",
"Dark": "Dark",
"Default": "Default",
"Document": "Document",
"Is compact": "Is compact",
"Primary color": "Primary color",
"Theme": "Theme",
"Theme - Tooltip": "Theme - Tooltip"
},
"token": {
"Access token": "Access token",
"Authorization code": "Authorization code",

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "Логин",
"Logout": "Выйти",
"My Account": "Мой аккаунт",
"Sign Up": "Регистрация"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "Файл успешно загружен",
"Follow organization theme": "Follow organization theme",
"Form CSS": "Form CSS",
"Form CSS - Edit": "Form CSS - Edit",
"Form CSS - Tooltip": "Form CSS - Tooltip",
@ -158,10 +158,7 @@
"Click to Upload": "Нажмите здесь, чтобы загрузить",
"Client IP": "IP клиента",
"Close": "Close",
"Compact": "Compact",
"Created time": "Время создания",
"Dark": "Dark",
"Default": "Default",
"Default application": "Default application",
"Default application - Tooltip": "Default application - Tooltip",
"Default avatar": "Аватар по умолчанию",
@ -341,6 +338,7 @@
"Default avatar": "Аватар по умолчанию",
"Edit Organization": "Изменить организацию",
"Favicon": "Иконка",
"Follow global theme": "Follow global theme",
"InitScore": "InitScore",
"Is profile public": "Is profile public",
"Is profile public - Tooltip": "Is profile public - Tooltip",
@ -690,6 +688,19 @@
"Unknown Version": "Unknown Version",
"Version": "Version"
},
"theme": {
"Blossom": "Blossom",
"Border radius": "Border radius",
"Compact": "Compact",
"Customize theme": "Customize theme",
"Dark": "Dark",
"Default": "Default",
"Document": "Document",
"Is compact": "Is compact",
"Primary color": "Primary color",
"Theme": "Theme",
"Theme - Tooltip": "Theme - Tooltip"
},
"token": {
"Access token": "Маркер доступа",
"Authorization code": "Код авторизации",

View File

@ -1,6 +1,5 @@
{
"account": {
"Login": "登录",
"Logout": "登出",
"My Account": "我的账户",
"Sign Up": "注册"
@ -41,6 +40,7 @@
"Enable signup - Tooltip": "是否允许用户注册",
"Failed to sign in": "登录失败",
"File uploaded successfully": "文件上传成功",
"Follow organization theme": "使用组织主题",
"Form CSS": "表单CSS",
"Form CSS - Edit": "编辑表单CSS",
"Form CSS - Tooltip": "表单的CSS样式如增加边框和阴影",
@ -158,10 +158,7 @@
"Click to Upload": "点击上传",
"Client IP": "客户端IP",
"Close": "关闭",
"Compact": "紧凑",
"Created time": "创建时间",
"Dark": "黑暗",
"Default": "默认",
"Default application": "默认应用",
"Default application - Tooltip": "默认应用",
"Default avatar": "默认头像",
@ -341,6 +338,7 @@
"Default avatar": "默认头像",
"Edit Organization": "编辑组织",
"Favicon": "图标",
"Follow global theme": "使用全局默认主题",
"InitScore": "初始积分",
"Is profile public": "用户个人页公开",
"Is profile public - Tooltip": "关闭后,只有全局管理员或同组织用户才能访问用户主页",
@ -690,6 +688,19 @@
"Unknown Version": "未知版本",
"Version": "版本"
},
"theme": {
"Blossom": "桃花缘",
"Border radius": "圆角",
"Compact": "紧凑",
"Customize theme": "定制主题",
"Dark": "暗黑",
"Default": "默认",
"Document": "知识协作",
"Is compact": "宽松度",
"Primary color": "主色",
"Theme": "主题",
"Theme - Tooltip": "为你的应用设置主题"
},
"token": {
"Access token": "访问令牌",
"Authorization code": "授权码",