From 22dd6d340f9d0a7b9ca695e2f78b528dac5bc258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E4=B8=80?= Date: Sat, 1 Mar 2025 09:14:52 +0000 Subject: [PATCH 1/3] add theme config for module.json5, add theme-config.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘华一 --- modulecheck/module.json | 7 +++++++ modulecheck/themeConfig.json | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 modulecheck/themeConfig.json diff --git a/modulecheck/module.json b/modulecheck/module.json index db97db4b..b6d66b77 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -123,6 +123,7 @@ "virtualMachine", "uiSyntax", "pages", + "theme", "metadata", "abilities", "extensionAbilities", @@ -294,6 +295,12 @@ "pattern": "^[$]profile:[0-9a-zA-Z_.]+$", "maxLength": 255 }, + "theme": { + "description": "Indicates the system theme of the module. The value is the index to the theme config file.", + "type": "string", + "pattern": "^[$]profile:[0-9a-zA-Z_.]+$", + "maxLength": 255 + }, "metadata": { "description": "Indicates the metadata of the module.", "type": "array", diff --git a/modulecheck/themeConfig.json b/modulecheck/themeConfig.json new file mode 100644 index 00000000..e265d971 --- /dev/null +++ b/modulecheck/themeConfig.json @@ -0,0 +1,23 @@ +{ + "title": "JSON schema for theme-config.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": true, + "required": [ + ], + "propertyNames": { + "enum": [ + "systemTheme" + ] + }, + "properties": { + "systemTheme": { + "description": "Indicates the system theme of the module.", + "type": "string", + "enum": [ + "theme.ohos", + "theme.hmos" + ] + } + } +} -- Gitee From 6d11184dcb06cd6cfd1e3649ce1c386722e0365a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E4=B8=80?= Date: Fri, 21 Mar 2025 09:33:45 +0000 Subject: [PATCH 2/3] update modulecheck/module.json. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘华一 --- modulecheck/module.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modulecheck/module.json b/modulecheck/module.json index b6d66b77..2e23bd2e 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -123,7 +123,7 @@ "virtualMachine", "uiSyntax", "pages", - "theme", + "SystemTheme", "metadata", "abilities", "extensionAbilities", @@ -295,10 +295,10 @@ "pattern": "^[$]profile:[0-9a-zA-Z_.]+$", "maxLength": 255 }, - "theme": { + "systemTheme": { "description": "Indicates the system theme of the module. The value is the index to the theme config file.", "type": "string", - "pattern": "^[$]profile:[0-9a-zA-Z_.]+$", + "pattern": "^[$]profile:theme_config[0-9a-zA-Z_.]+$", "maxLength": 255 }, "metadata": { -- Gitee From e44dc4d940d470d7453dc0b7a067a0ba787ac367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E4=B8=80?= Date: Fri, 21 Mar 2025 09:41:35 +0000 Subject: [PATCH 3/3] update modulecheck/module.json. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘华一 --- modulecheck/module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modulecheck/module.json b/modulecheck/module.json index 2e23bd2e..19324e9c 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -123,7 +123,7 @@ "virtualMachine", "uiSyntax", "pages", - "SystemTheme", + "systemTheme", "metadata", "abilities", "extensionAbilities", -- Gitee