[go: up one dir, main page]

CN114489721A - DSL description file management method, apparatus, system, device and medium - Google Patents

DSL description file management method, apparatus, system, device and medium Download PDF

Info

Publication number
CN114489721A
CN114489721A CN202111666833.8A CN202111666833A CN114489721A CN 114489721 A CN114489721 A CN 114489721A CN 202111666833 A CN202111666833 A CN 202111666833A CN 114489721 A CN114489721 A CN 114489721A
Authority
CN
China
Prior art keywords
dsl
description file
version
target
component library
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111666833.8A
Other languages
Chinese (zh)
Inventor
邢智健
高飞宇
况众文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruiting Network Technology Shanghai Co ltd
Original Assignee
Ruiting Network Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruiting Network Technology Shanghai Co ltd filed Critical Ruiting Network Technology Shanghai Co ltd
Priority to CN202111666833.8A priority Critical patent/CN114489721A/en
Publication of CN114489721A publication Critical patent/CN114489721A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a DSL description file management method, a device, a system, equipment and a medium. Determining version information of the application program and an identifier of a target front-end page to be rendered through a DSL description file request sent by the application program; determining at least one candidate DSL description file corresponding to the target front-end page under different versions according to the identifier of the target front-end page; determining a target DSL description file corresponding to the version of the application program from at least one candidate DSL description file according to the version information of the application program and the version range of the application program supported by each candidate DSL description file; based on this, the target DSL description file may be issued to the application for rendering the target front-end page by the application according to the target DSL description file. According to the embodiment of the application, the DSL description files of different platforms can be managed in a unified mode and dynamically issued in a cross-platform mode, and dynamic rendering requirements of the cross-platform mode can be met.

Description

DSL描述文件管理方法、装置、系统、设备及介质DSL description file management method, apparatus, system, device and medium

技术领域technical field

本申请涉及计算机技术领域,尤其涉及DSL描述文件管理方法、装置、系统、设备及介质。The present application relates to the field of computer technology, and in particular, to a DSL description file management method, apparatus, system, device, and medium.

背景技术Background technique

在应用程序开发过程中,时常涉及对某些功能模块进行优化升级,在此过程中,可能涉及对功能模块中的部分组件进行更新,被更新的组件相较于原组件而言相当于一个新版本的组件。In the process of application development, it often involves optimizing and upgrading some functional modules. During this process, it may involve updating some components in the functional modules. Compared with the original components, the updated components are equivalent to a new version of the component.

通常,不同版本的应用程序所能兼容的组件版本可能不同,如果当前版本的应用程序不能兼容新版本的组件,则无法对新版本的组件进行正常渲染。因此,为了保证在组件被更新的情况下,能够在应用程序中被正常渲染,有必要对组件与应用程序之间的版本对应关系进行管理。Usually, different versions of applications may be compatible with different component versions. If the current version of the application cannot be compatible with the new version of the component, the new version of the component cannot be rendered normally. Therefore, in order to ensure that the component can be rendered normally in the application when the component is updated, it is necessary to manage the version correspondence between the component and the application.

发明内容SUMMARY OF THE INVENTION

本申请的多个方面提供DSL描述文件管理方法、装置、系统、设备及介质,用以对组件与应用程序之间的版本对应关系进行管理。Various aspects of the present application provide a DSL description file management method, apparatus, system, device and medium for managing the version correspondence between components and applications.

本申请实施例提供一种DSL描述文件管理方法,应用于DSL描述文件管理系统,所述DSL描述文件管理系统包括至少一个前端页面对应的DSL描述文件,每个DSL描述文件包括其对应前端页面所需UI组件的描述信息,所述方法包括:接收应用程序发送的DSL描述文件请求,所述DSL描述文件请求包括所述应用程序的版本信息和待渲染的目标前端页面的标识;根据所述目标前端页面的标识,确定所述目标前端页面在不同版本下对应的至少一个候选DSL描述文件;其中,每个所述候选DSL描述文件具有对应支持的应用程序版本范围;根据所述应用程序的版本信息和每个所述候选DSL描述文件支持的应用程序版本范围,从所述至少一个候选DSL描述文件中确定与所述应用程序的版本对应的目标DSL描述文件;将所述目标DSL描述文件发送给所述应用程序,以供所述应用程序根据所述目标DSL描述文件包括的描述信息渲染出所述目标前端页面。An embodiment of the present application provides a DSL description file management method, which is applied to a DSL description file management system. The DSL description file management system includes at least one DSL description file corresponding to a front-end page, and each DSL description file includes all of its corresponding front-end page. The description information of the UI component is required, and the method includes: receiving a DSL description file request sent by an application, where the DSL description file request includes version information of the application and an identifier of the target front-end page to be rendered; The identifier of the front-end page, to determine at least one candidate DSL description file corresponding to the target front-end page under different versions; wherein, each candidate DSL description file has a corresponding supported application version range; according to the version of the application information and an application version range supported by each candidate DSL description file, determine a target DSL description file corresponding to the version of the application from the at least one candidate DSL description file; send the target DSL description file to the application, so that the application can render the target front-end page according to the description information included in the target DSL description file.

在一可选实施例中,所述DSL描述文件管理系统包括至少一个前端页面对应的至少一个组件库,所述至少一个组件库具有不同的版本,不同版本的组件库所支持的应用程序版本范围不同,每个版本的组件库对应有至少一个所述DSL描述文件,每个组件库中包括其对应前端页面所需的UI组件;相应地,根据所述目标前端页面的标识,确定所述目标前端页面在不同版本下对应的至少一个候选DSL描述文件,包括:根据所述目标前端页面的标识,确定所述目标前端页面在不同版本下对应的至少一个候选组件库,将所述至少一个候选组件库对应的至少一个DSL描述文件作为所述至少一个候选DSL描述文件;相应地,根据所述应用程序的版本信息和每个所述候选DSL描述文件支持的应用程序版本范围,从所述至少一个候选DSL描述文件中确定与所述应用程序的版本对应的目标DSL描述文件,包括:根据所述应用程序的版本信息和所述至少一个候选组件库分别支持的应用程序版本范围,从所述至少一个候选组件库中选择目标组件库,从所述目标组件库对应的至少一个DSL描述文件中选择所述目标DSL描述文件。In an optional embodiment, the DSL description file management system includes at least one component library corresponding to at least one front-end page, the at least one component library has different versions, and the range of application versions supported by the component libraries of different versions. Differently, each version of the component library corresponds to at least one of the DSL description files, and each component library includes the UI components required by its corresponding front-end page; correspondingly, according to the identifier of the target front-end page, determine the target At least one candidate DSL description file corresponding to front-end pages under different versions, including: according to the identifier of the target front-end page, determining at least one candidate component library corresponding to the target front-end page under different versions, and describing the at least one candidate component library At least one DSL description file corresponding to the component library is used as the at least one candidate DSL description file; correspondingly, according to the version information of the application and the application version range supported by each of the candidate DSL description files, from the at least one candidate DSL description file Determining a target DSL description file corresponding to the version of the application in a candidate DSL description file includes: according to the version information of the application and the application version range supported by the at least one candidate component library respectively, from the A target component library is selected from at least one candidate component library, and the target DSL description file is selected from at least one DSL description file corresponding to the target component library.

在一可选实施例中,在接收应用程序发送的请求之前,所述方法还包括:针对同一前端页面对应的至少一个组件库,确定所述至少一个组件库中每个组件库支持的应用程序版本范围和每个组件库的版本;根据每个组件库的版本以及支持的应用程序版本范围,生成每个组件库对应的至少一个DSL描述文件。In an optional embodiment, before receiving the request sent by the application, the method further includes: for at least one component library corresponding to the same front-end page, determining the application supported by each component library in the at least one component library. The version range and the version of each component library; according to the version of each component library and the supported application version range, generate at least one DSL description file corresponding to each component library.

在一可选实施例中,确定所述至少一个组件库中每个组件库支持的应用程序版本范围和每个组件库的版本,包括:针对所述至少一个组件库中每个组件库,获取其包含的多个UI组件分别支持的应用程序版本;根据所述多个UI组件分别支持的应用程序版本确定所述每个组件库中多个UI组件共同支持的应用程序版本范围,作为所述每个组件库支持的应用程序版本范围;在有至少两个组件库支持的应用程序版本范围相同的情况下,将所述至少两个组件库设置为相同版本;在有至少两个组件库支持的应用程序版本范围不同的情况下,将所述至少两个组件库设置为不同版本。In an optional embodiment, determining the application version range supported by each component library in the at least one component library and the version of each component library includes: for each component library in the at least one component library, obtaining The application version supported by the multiple UI components contained in it; determine the application version range supported by the multiple UI components in each component library according to the application versions supported by the multiple UI components respectively, as the The application version range supported by each component library; in the case that the application version range supported by at least two component libraries is the same, the at least two component libraries are set to the same version; when there are at least two component libraries supported In the case where the version ranges of the applications are different, the at least two component libraries are set to different versions.

在一可选实施例中,根据每个组件库的版本以及支持的应用程序版本范围,生成每个组件库对应的至少一个DSL描述文件,包括:获取每个组件库中包含的多个UI组件的基本信息和布局信息;根据所述基本信息和布局信息确定所述多个UI组件之间的级联关系;根据所述每个组件库的版本和所述级联关系,生成每个组件库对应的至少一个DSL描述文件,并将所述每个组件库支持的应用程序版本范围作为所述组件库对应的至少一个DSL描述文件支持的应用程序版本范围。In an optional embodiment, generating at least one DSL description file corresponding to each component library according to the version of each component library and the supported application version range, including: obtaining multiple UI components included in each component library basic information and layout information; determine the cascading relationship between the multiple UI components according to the basic information and layout information; generate each component library according to the version of each component library and the cascading relationship corresponding at least one DSL description file, and use the application version range supported by each component library as the application version range supported by the at least one DSL description file corresponding to the component library.

在一可选实施例中,从所述目标组件库对应的至少一个DSL描述文件选择目标DSL描述文件,包括:从所述至少一个DSL描述文件中选择最新版本DSL描述文件,作为所述目标DSL描述文件。In an optional embodiment, selecting a target DSL description file from at least one DSL description file corresponding to the target component library includes: selecting a DSL description file of the latest version from the at least one DSL description file as the target DSL description file.

本申请实施例还提供一种DSL描述文件管理装置,应用于DSL描述文件管理系统,所述DSL描述文件管理系统包括至少一个前端页面对应的DSL描述文件,每个DSL描述文件包括其对应前端页面所需UI组件的描述信息,所述装置包括:接收模块,用于接收应用程序发送的DSL描述文件请求,所述DSL描述文件请求包括所述应用程序的版本信息和待渲染的目标前端页面的标识;第一处理模块,用于根据所述目标前端页面的标识,确定所述目标前端页面在不同版本下对应的至少一个候选DSL描述文件;其中,每个所述候选DSL描述文件具有对应支持的应用程序版本范围;第二处理模块,用于根据所述应用程序的版本信息和每个所述候选DSL描述文件支持的应用程序版本范围,从所述至少一个候选DSL描述文件中确定与所述应用程序的版本对应的目标DSL描述文件;发送模块,用于将所述目标DSL描述文件发送给所述应用程序,以供所述应用程序根据所述目标DSL描述文件包括的描述信息渲染出所述目标前端页面。An embodiment of the present application further provides a DSL description file management device, which is applied to a DSL description file management system. The DSL description file management system includes at least one DSL description file corresponding to a front-end page, and each DSL description file includes its corresponding front-end page. Description information of the required UI components, the apparatus includes: a receiving module, configured to receive a DSL description file request sent by an application, where the DSL description file request includes version information of the application and the target front-end page to be rendered. identification; a first processing module, configured to determine, according to the identification of the target front-end page, at least one candidate DSL description file corresponding to the target front-end page under different versions; wherein each of the candidate DSL description files has corresponding support the application version range; the second processing module is configured to, according to the version information of the application and the application version range supported by each of the candidate DSL description files, determine from the at least one candidate DSL description file The target DSL description file corresponding to the version of the application; the sending module is configured to send the target DSL description file to the application, so that the application can render the target DSL description file according to the description information included in the target DSL description file. the target front-end page.

本申请实施例还提供一种DSL描述文件管理系统,所述系统包括:DSL描述文件生成设备和DSL描述文件管理设备;所述DSL描述文件生成设备,用于生成与至少一个前端页面在不同版本下对应的DSL描述文件,每个DSL描述文件包括其对应前端页面所需UI组件的描述信息;根据每个DSL描述文件包含的UI组件支持的应用程序版本信息,确定每个DSL描述文件所支持的应用程序版本范围;所述DSL描述文件管理设备,用于根据待渲染的目标前端页面的标识,确定所述目标前端页面在不同版本下对应的至少一个候选DSL描述文件;根据包含所述目标前端页面的应用程序的版本信息和每个DSL描述文件所支持的应用程序版本范围,从所述至少一个候选DSL描述文件中确定支持所述应用程序的版本的目标DSL描述文件;将所述目标DSL描述文件发送给所述应用程序,以供所述应用程序渲染出所述目标前端页面。An embodiment of the present application further provides a DSL description file management system, the system includes: a DSL description file generation device and a DSL description file management device; the DSL description file generation device is configured to generate a different version from at least one front-end page The corresponding DSL description file below, each DSL description file includes the description information of the UI components required by its corresponding front-end page; according to the application version information supported by the UI components contained in each DSL description file, determine what each DSL description file supports. application version range; the DSL description file management device is used to determine at least one candidate DSL description file corresponding to the target front-end page under different versions according to the identifier of the target front-end page to be rendered; The version information of the application of the front-end page and the application version range supported by each DSL description file, and the target DSL description file that supports the version of the application is determined from the at least one candidate DSL description file; The DSL description file is sent to the application, so that the application can render the target front-end page.

本申请实施例还提供一种DSL描述文件管理系统,所述系统包括:组件库生成设备、DSL描述文件生成设备和DSL描述文件管理设备;所述组件库生成设备,用于生成与至少一个前端页面对应的至少一个组件库,每个组件库中包括多个UI组件,所述多个UI组件与其支持的应用程序版本对应;根据每个组件库中包括的多个UI组件分别支持的应用程序版本,确定所述每个组件库支持的应用程序版本范围和所述每个组件库的版本;所述DSL描述文件生成设备,用于生成与至少一个前端页面在不同版本下对应的DSL描述文件,每个DSL描述文件包括其对应前端页面所需UI组件的描述信息;所述DSL描述文件管理设备,用于根据待渲染的目标前端页面的标识,确定所述目标前端页面对应的至少一个候选组件库;建立组件库版本与不同版本的DSL之间的对应关系,以及根据包含所述目标前端页面的应用程序的版本信息,从所述至少一个候选组件库中确定目标组件库以及所述目标组件库对应的至少一个DSL描述文件;从所述至少一个DSL描述文件中选择目标DSL描述文件,并将所述目标DSL描述文件发送给所述应用程序,以供所述应用程序渲染出所述目标前端页面。An embodiment of the present application further provides a DSL description file management system, the system includes: a component library generation device, a DSL description file generation device, and a DSL description file management device; the component library generation device is used to generate and at least one front end At least one component library corresponding to the page, each component library includes multiple UI components, and the multiple UI components correspond to the application versions supported by them; according to the application programs supported by the multiple UI components included in each component library version, to determine the application version range supported by each component library and the version of each component library; the DSL description file generating device is used to generate DSL description files corresponding to at least one front-end page under different versions , each DSL description file includes description information of UI components required by its corresponding front-end page; the DSL description file management device is used to determine at least one candidate corresponding to the target front-end page according to the identifier of the target front-end page to be rendered A component library; establishing a corresponding relationship between a component library version and DSLs of different versions, and determining a target component library and the target from the at least one candidate component library according to the version information of the application including the target front-end page at least one DSL description file corresponding to the component library; select a target DSL description file from the at least one DSL description file, and send the target DSL description file to the application, so that the application can render the The target front-end page.

本申请实施例还提供一种DSL描述文件管理设备,包括:处理器以及存储有计算机程序的存储器;所述处理器,用于执行所述计算机程序,以用于:接收应用程序发送的DSL描述文件请求,所述DSL描述文件请求包括所述应用程序的版本信息和待渲染的目标前端页面的标识;根据所述目标前端页面的标识,确定所述目标前端页面在不同版本下对应的至少一个候选DSL描述文件;其中,每个所述候选DSL描述文件具有对应支持的应用程序版本范围;根据所述应用程序的版本信息和每个所述候选DSL描述文件支持的应用程序版本范围,从所述至少一个候选DSL描述文件中确定与所述应用程序的版本对应的目标DSL描述文件;将所述目标DSL描述文件发送给所述应用程序,以供所述应用程序根据所述目标DSL描述文件包括的描述信息渲染出所述目标前端页面。An embodiment of the present application further provides a DSL description file management device, including: a processor and a memory storing a computer program; the processor is configured to execute the computer program, so as to: receive a DSL description sent by an application program A file request, the DSL description file request includes the version information of the application and the identifier of the target front-end page to be rendered; according to the identifier of the target front-end page, at least one corresponding to the target front-end page under different versions is determined A candidate DSL description file; wherein each candidate DSL description file has a corresponding supported application version range; according to the version information of the application and the application version range supported by each candidate DSL description file, from the determining a target DSL description file corresponding to the version of the application program in the at least one candidate DSL description file; sending the target DSL description file to the application program, so that the application program can use the target DSL description file according to the target DSL description file The included description information renders the target front-end page.

本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,当所述计算机程序被处理器执行时,致使所述处理器实现方法权利要求中的各步骤。Embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor causes the processor to implement the steps in the method claims.

在本申请实施例中,通过应用程序发送的DSL描述文件请求,可以确定应用程序的版本信息和待渲染的目标前端页面的标识;进而,根据目标前端页面的标识可以确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件;以及根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,可以从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件;基于此,可以将目标DSL描述文件发送给应用程序,以供应用程序根据目标DSL描述文件包括的描述信息渲染出目标前端页面。基于DSL描述文件无平台依赖性的特点,本申请实施例可以实现对不同平台的DSL描述文件进行统一管理以及跨平台动态下发,能够实现跨平台动态化渲染需求。In the embodiment of the present application, the version information of the application and the identifier of the target front-end page to be rendered can be determined through the DSL description file request sent by the application; furthermore, according to the identifier of the target front-end page, it can be determined that the target front-end page is in different versions At least one candidate DSL description file corresponding to the following; and according to the version information of the application and the application version range supported by each candidate DSL description file, the target DSL corresponding to the version of the application can be determined from the at least one candidate DSL description file. description file; based on this, the target DSL description file can be sent to the application, so that the application can render the target front-end page according to the description information included in the target DSL description file. Based on the feature that DSL description files have no platform dependency, the embodiments of the present application can implement unified management and cross-platform dynamic distribution of DSL description files of different platforms, and can realize cross-platform dynamic rendering requirements.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:

图1a为本申请实施例提供的一种DSL描述文件管理系统的结构示意图;FIG. 1a is a schematic structural diagram of a DSL description file management system provided by an embodiment of the present application;

图1b为本申请实施例提供的另一种DSL描述文件管理系统的结构示意图;FIG. 1b is a schematic structural diagram of another DSL description file management system provided by an embodiment of the present application;

图1c为本申请实施例提供的一种DSL描述文件与组件库之间对应关系的示意图;FIG. 1c is a schematic diagram of the correspondence between a DSL description file and a component library provided by an embodiment of the present application;

图2为本申请实施例提供的一种DSL描述文件管理方法的流程图;2 is a flowchart of a method for managing a DSL description file provided by an embodiment of the present application;

图3为本申请实施例提供一种DSL描述文件管理装置的结构示意图;FIG. 3 provides a schematic structural diagram of an apparatus for managing a DSL description file according to an embodiment of the present application;

图4为本申请实施例提供一种DSL描述文件管理设备的结构示意图。FIG. 4 is a schematic structural diagram of a DSL description file management device according to an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

本申请实施例提供一种DSL描述文件管理系统,用以对前端页面在不同版本下的领域特定语言(Domain Specific Language,DSL)描述文件进行管理,并根据各平台的DSL描述文件请求向各平台下发对应版本的DSL描述文件;其中,DSL描述文件是通过对前端页面进行抽象及重新表达得到的具有通用数据格式的无平台特性的描述文件,该DSL描述文件不依赖前端页面所应用的具体平台,DSL描述文件管理系统可以向不同平台下发DSL描述文件,实现跨平台下发DSL描述文件,供不同平台根据DSL描述文件动态化渲染出前端页面。An embodiment of the present application provides a DSL description file management system, which is used to manage Domain Specific Language (DSL) description files of front-end pages under different versions, and request each platform to request a DSL description file for each platform. Distribute the corresponding version of the DSL description file; among them, the DSL description file is a description file with a general data format without platform characteristics obtained by abstracting and re-expressing the front-end page. The DSL description file does not depend on the specific application of the front-end page. Platform, the DSL description file management system can distribute DSL description files to different platforms, so as to achieve cross-platform distribution of DSL description files, so that different platforms can dynamically render front-end pages according to the DSL description files.

图1a为本实施提供的一种DSL描述文件管理系统的结构示意图,如图1a所示,系统包括DSL描述文件生成设备10和DSL描述文件管理设备20;其中,DSL描述文件生成设备10用于生成与至少一个前端页面在不同版本下对应的DSL描述文件,在每个DSL描述文件中,包括其对应前端页面所需UI组件的描述信息。在本实施例中,DSL描述文件生成设备10还用于根据每个DSL描述文件包含的UI组件支持的应用程序版本信息,确定每个DSL描述文件所支持的应用程序版本范围,以供DSL描述文件管理设备20根据每个DSL描述文件所支持的应用程序版本范围向应用程序下发对应版本的DSL描述文件,供应用程序渲染出目标前端页面。FIG. 1a is a schematic structural diagram of a DSL description file management system provided in this embodiment. As shown in FIG. 1a, the system includes a DSL description file generation device 10 and a DSL description file management device 20; wherein, the DSL description file generation device 10 is used for A DSL description file corresponding to at least one front-end page in different versions is generated, and each DSL description file includes description information of UI components required by the corresponding front-end page. In this embodiment, the DSL description file generating device 10 is further configured to determine the range of application versions supported by each DSL description file according to the application version information supported by the UI components contained in each DSL description file, for the DSL description The file management device 20 delivers the DSL description file of the corresponding version to the application according to the application version range supported by each DSL description file, so that the application can render the target front-end page.

如图1a所示,在本实施例中,DSL描述文件管理设备20用于接收各平台的应用程序发送的DSL描述文件请求;其中,DSL描述文件请求包括应用程序的版本信息和待渲染的目标前端页面的标识。基于此,DSL描述文件管理设备20可以根据待渲染的目标前端页面的标识确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件,以及根据应用程序的版本信息和每个DSL描述文件所支持的应用程序版本范围,从至少一个候选DSL描述文件中确定支持该应用程序的版本的目标DSL描述文件,并将目标DSL描述文件发送给应用程序,以供应用程序渲染出目标前端页面。As shown in FIG. 1a, in this embodiment, the DSL description file management device 20 is configured to receive a DSL description file request sent by an application program of each platform; wherein, the DSL description file request includes the version information of the application program and the target to be rendered The identity of the front-end page. Based on this, the DSL description file management device 20 can determine at least one candidate DSL description file corresponding to the target front-end page under different versions according to the identifier of the target front-end page to be rendered, and according to the version information of the application and each DSL description file The supported application version range, determine the target DSL description file of the version that supports the application from at least one candidate DSL description file, and send the target DSL description file to the application, so that the application can render the target front-end page.

本申请实施例还提供一种DSL描述文件管理系统,图1b为本实施提供的DSL描述文件管理系统的结构示意图,如图1b所示,系统包括组件库生成设备30、DSL描述文件生成设备10和DSL描述文件管理设备20;其中,DSL描述文件生成设备10的功能与上述实施例类似,用于生成与至少一个前端页面在不同版本下对应的DSL描述文件;其中,每个DSL描述文件包括其对应前端页面所需UI组件的描述信息。An embodiment of the present application further provides a DSL description file management system. FIG. 1b is a schematic structural diagram of the DSL description file management system provided in this embodiment. As shown in FIG. 1b, the system includes a component library generation device 30 and a DSL description file generation device 10. and a DSL description file management device 20; wherein, the function of the DSL description file generation device 10 is similar to that of the above-mentioned embodiment, and is used to generate a DSL description file corresponding to at least one front-end page under different versions; wherein, each DSL description file includes It corresponds to the description information of the UI components required by the front-end page.

在本实施例中,组件库生成设备30用于生成与至少一个前端页面对应的至少一个组件库,每个组件库中包括多个UI组件,每个组件库中包括的多个UI组件即为每个组件库对应的前端页面上的UI组件;其中,多个UI组件与其支持的应用程序版本对应。基于此,组件库生成设备30可以根据每个组件库中包括的多个UI组件分别支持的应用程序版本,确定每个组件库支持的应用程序版本范围和每个组件库的版本;其中,组件库的版本是指在组件库中有UI组件更新的情况下,若该组件库支持的应用程序版本范围发生变化,则包含更新后的UI组件的该组件库与包含更新前的UI组件的该组件库分别对应不同的版本。In this embodiment, the component library generating device 30 is configured to generate at least one component library corresponding to at least one front-end page, each component library includes multiple UI components, and the multiple UI components included in each component library are UI components on the front-end page corresponding to each component library; wherein, multiple UI components correspond to the application versions they support. Based on this, the component library generation device 30 can determine the application version range supported by each component library and the version of each component library according to the application versions supported by the multiple UI components included in each component library; The version of the library means that when there is an update of UI components in the component library, if the version range of the application supported by the component library changes, the component library containing the updated UI components will be the same as the one containing the UI components before the update. The component libraries correspond to different versions.

在本实施例中,如图1b所示,DSL描述文件管理设备20用于接收各平台的应用程序发送的DSL描述文件请求;其中,DSL描述文件请求包括应用程序的版本信息和待渲染的目标前端页面的标识。基于此,DSL描述文件管理设备20可以根据待渲染的目标前端页面的标识,确定目标前端页面对应的至少一个候选组件库,以及根据该应用程序的版本信息和每个组件库支持的应用程序版本范围从至少一个候选组件库中确定目标组件库。In this embodiment, as shown in FIG. 1b, the DSL description file management device 20 is configured to receive a DSL description file request sent by an application program of each platform; wherein, the DSL description file request includes the version information of the application program and the target to be rendered The identity of the front-end page. Based on this, the DSL description file management device 20 can determine at least one candidate component library corresponding to the target front-end page according to the identifier of the target front-end page to be rendered, and according to the version information of the application and the application version supported by each component library The scope determines the target component library from at least one candidate component library.

在本实施例中,每个组件库中包含的多个UI组件可以为前端页面在不同版本下的多个UI组件,前端页面在不同版本下对应有不同的DSL描述文件;基于此,如图1b所示,DSL描述文件管理设备20还可以根据每个组件库中包含的UI组件分别对应的DSL描述文件,建立组件库与DSL描述文件的对应关系;进而,根据组件库版本与不同版本的DSL之间的对应关系,确定目标组件库对应的至少一个DSL描述文件,并从至少一个DSL描述文件中选择目标DSL描述文件,将目标DSL描述文件发送给应用程序,以供应用程序渲染出目标前端页面。In this embodiment, the multiple UI components contained in each component library may be multiple UI components of the front-end page under different versions, and the front-end page corresponds to different DSL description files under different versions; based on this, as shown in the figure As shown in 1b, the DSL description file management device 20 can also establish the corresponding relationship between the component library and the DSL description file according to the DSL description files corresponding to the UI components contained in each component library; Correspondence between DSLs, determine at least one DSL description file corresponding to the target component library, select the target DSL description file from the at least one DSL description file, and send the target DSL description file to the application, so that the application can render the target front page.

在本申请可选实施例中,DSL描述文件管理设备20在接收应用程序发送的请求之前,还可以针对同一前端页面对应的至少一个组件库,确定至少一个组件库中每个组件库支持的应用程序版本范围和每个组件库的版本。可选地,可以针对至少一个组件库中每个组件库,获取其包含的多个UI组件分别支持的应用程序版本,并根据多个UI组件分别支持的应用程序版本确定每个组件库中多个UI组件共同支持的应用程序版本范围,作为每个组件库支持的应用程序版本范围。进一步,在有至少两个组件库支持的应用程序版本范围相同的情况下,将至少两个组件库设置为相同版本,以及在有至少两个组件库支持的应用程序版本范围不同的情况下,将至少两个组件库设置为不同版本。In an optional embodiment of the present application, before receiving the request sent by the application, the DSL description file management device 20 may further determine, for at least one component library corresponding to the same front-end page, the application supported by each component library in the at least one component library Program version range and version of each component library. Optionally, for each component library in at least one component library, the application versions supported by the multiple UI components contained therein may be obtained, and the number of application versions in each component library may be determined according to the application versions supported by the multiple UI components respectively. The application version range supported by each UI component is used as the application version range supported by each component library. Further, in the case where the application version ranges supported by at least two component libraries are the same, the at least two component libraries are set to the same version, and in the case where the application version ranges supported by at least two component libraries are different, Set at least two component libraries to different versions.

图1c为本申请实施例提供的前端页面在不同版本下对应的DSL描述文件和不同版本的组件库及其支持的应用程序版本范围的对应关系示意图;其中,应用程序以APP为例进行图示。如图1c所示,前端页面对应的4个版本分别为v1-v4,并且在每个版本下对应有对应版本的DSL描述文件,分别用于描述前端页面在每个版本的UI组件描述信息。其中,前端页面在v1版本下对应的UI组件分别为UI组件A、UI组件B和UI组件C,这3个UI组件的版本均为V1,3个UI组件共同支持的应用程序版本范围为v1.0-v1.3;基于此,可以确定包含这3个UI组件的组件库支持的应用程序版本范围为v1.0-v1.3,当前组件库版本可定义为v1.0。FIG. 1c is a schematic diagram of the correspondence between the DSL description files corresponding to different versions of the front-end page provided by the embodiment of the present application, the component libraries of different versions, and the range of application versions supported by them; wherein, the application is illustrated by taking APP as an example. . As shown in Figure 1c, the four versions corresponding to the front-end page are v1-v4, and each version has a corresponding version of the DSL description file, which is used to describe the UI component description information of the front-end page in each version. Among them, the corresponding UI components of the front-end page in the v1 version are UI component A, UI component B, and UI component C. The versions of these three UI components are all V1, and the application version range supported by the three UI components is v1. .0-v1.3; based on this, it can be determined that the application version range supported by the component library containing these three UI components is v1.0-v1.3, and the current component library version can be defined as v1.0.

如图1c所示,前端页面在v2版本和v3版本下对应的UI组件分别为UI组件A、UI组件B和UI组件C;其中,UI组件A的版本为v2,UI组件B和UI组件C的版本为v1,由于相较于前一版本的组件库,其中的UI组件A的版本发生了变化,致使这3个UI组件共同支持的应用程序版本范围变为v1.1-v1.4;基于此,可以确定包含这3个UI组件的组件库支持的应用程序版本范围为v1.1-v1.4;由于当前组件库相较于前一组件库支持的应用程序版本范围不同,因此,当前组件库版本可定义为v1.1。As shown in Figure 1c, the corresponding UI components of the front-end page under the v2 version and the v3 version are UI component A, UI component B and UI component C respectively; among them, the version of UI component A is v2, and the version of UI component B and UI component C is version is v1. Compared with the previous version of the component library, the version of UI component A has changed, resulting in the application version range supported by these three UI components becoming v1.1-v1.4; Based on this, it can be determined that the application version range supported by the component library containing these three UI components is v1.1-v1.4; since the current component library supports a different application version range compared with the previous component library, therefore, The current component library version can be defined as v1.1.

如图1c所示,前端页面在v4版本下对应的UI组件分别为UI组件A、UI组件B、UI组件C和UI组件D;其中,UI组件A的版本为v2,UI组件B和UI组件C的版本为v1,UI组件D的版本为v1,相较于前一版本的组件库,其中新增加了UI组件D,这4个UI组件功能支持的应用程序版本范围为v1.5以上;基于此,可以确定包含这4个UI组件的组件库支持的应用程序版本范围为v1.5以上;由于当前组件库相较于前一组件库支持的应用程序版本范围不同,因此,当前组件库版本可定义为v2.0。As shown in Figure 1c, the corresponding UI components of the front-end page in the v4 version are UI component A, UI component B, UI component C and UI component D; among them, the version of UI component A is v2, and the version of UI component B and UI component is The version of C is v1, and the version of UI component D is v1. Compared with the previous version of the component library, UI component D is newly added. The application version range supported by these four UI component functions is v1.5 or above; Based on this, it can be determined that the application version range supported by the component library including these four UI components is v1.5 or above; since the current component library The version can be defined as v2.0.

基于上述,在DSL描述文件管理设备20接收到不同版本的应用程序发送的DSL描述文件请求时,可以根据请求的应用程序版本,确定支持该应用程序版本的目标组件库,并从目标组件库对应的至少一个DSL描述文件中确定目标DSL描述文件,向请求的应用程序下发目标DSL描述文件,供该应用程序根据目标DSL描述文件中的UI组件描述信息,实现动态化渲染出前端页面。例如,如图1c所示,在DSL描述文件管理设备20接收v1.4版本的APP发动的DSL描述文件请求时,可以根据各版本的组件库支持的应用程序版本范围,确定目标组件库的版本为v1.1;进一步,可以从版本为v1.1的组件库对应的两个DSL描述文件中确定目标描述文件并下发给v1.4版本的APP,供其动态化渲染出前端页面。Based on the above, when the DSL description file management device 20 receives a DSL description file request sent by an application of a different version, it can determine a target component library that supports the application version according to the requested application version, and correspondingly from the target component library Determine the target DSL description file in at least one of the DSL description files, and deliver the target DSL description file to the requesting application, so that the application can dynamically render the front-end page according to the UI component description information in the target DSL description file. For example, as shown in Fig. 1c, when the DSL description file management device 20 receives a DSL description file request initiated by an APP of version v1.4, it can determine the version of the target component library according to the application version range supported by each version of the component library It is v1.1; further, the target description file can be determined from the two DSL description files corresponding to the component library of version v1.1 and delivered to the APP of version v1.4 for it to dynamically render the front-end page.

在本申请实施例中,不限定生成DSL描述文件的具体方式,可选地,在DSL描述文件管理系统中不包括组件库生成设备的情况下,在生成前端页面在不同版本下的DSL描述文件时,可以获取前端页面在不同版本下对应的多个UI组件的基本信息和布局信息,并根据多个UI组件的基本信息和布局信息确定多个UI组件之间的级联关系;进一步,根据多个UI组件分别支持的应用程序版本范围,可以确定前端页面在不同版本下支持的应用程序范围并作为前端页面在不同版本下对应的DSL描述文件支持的应用程序范围;进而,根据多个UI组件之间的级联关系和DSL描述文件支持的应用程序范围,可以生成前端页面在不同版本下的DSL描述文件。基于此,在DSL描述文件管理设备20接收到不同版本的应用程序发送的DSL描述文件请求时,可以根据应用程序的版本以及每个DSL描述文件支持的应用程序范围,直接确定目标DSL描述文件。In the embodiment of the present application, the specific method of generating the DSL description file is not limited. Optionally, in the case where the component library generation device is not included in the DSL description file management system, the DSL description file of the front-end page under different versions is generated. , the basic information and layout information of multiple UI components corresponding to different versions of the front-end page can be obtained, and the cascading relationship between multiple UI components can be determined according to the basic information and layout information of multiple UI components; further, according to The range of application versions supported by multiple UI components can determine the range of applications supported by the front-end page under different versions and serve as the range of applications supported by the corresponding DSL description files of the front-end page under different versions; further, according to multiple UI The cascading relationship between components and the application scope supported by the DSL description file can generate DSL description files for front-end pages under different versions. Based on this, when the DSL description file management device 20 receives DSL description file requests sent by applications of different versions, it can directly determine the target DSL description file according to the version of the application and the application range supported by each DSL description file.

在另一可选实施例中,在DSL描述文件管理系统中包括组件库生成设备的情况下,在生成每个组件库对应的至少一个DSL描述文件时,可以获取每个组件库中包含的多个UI组件的基本信息和布局信息,并根据多个UI组件的基本信息和布局信息确定多个UI组件之间的级联关系,以及根据每个组件库的版本和级联关系,生成不同版本的组件库对应的至少一个DSL描述文件。进一步可选地,在生成每个DSL描述文件时,还可以将每个组件库支持的应用程序版本范围作为每个组件库对应的至少一个DSL描述文件支持的应用程序版本范围,建立DSL描述文件与组件库之间的对应关系,以在确定目标组件库的情况下,可以确定与目标组件库对应的至少一个候选DSL描述文件。进一步可选地,在至少一个候选DSL描述文件中确定目标DSL描述文件时,可以从目标组件库对应的至少一个DSL描述文件中,选择最新版本DSL描述文件,作为目标DSL描述文件下发给应用程序,以供应用程序根据该目标DSL描述文件动态化渲染出前端页面。In another optional embodiment, when the DSL description file management system includes a component library generating device, when generating at least one DSL description file corresponding to each component library, multiple Basic information and layout information of each UI component, and determine the cascading relationship between multiple UI components according to the basic information and layout information of multiple UI components, and generate different versions according to the version and cascading relationship of each component library At least one DSL description file corresponding to the component library. Further optionally, when generating each DSL description file, the application version range supported by each component library can also be used as the application version range supported by at least one DSL description file corresponding to each component library, and the DSL description file can be established. The corresponding relationship with the component library, so that when the target component library is determined, at least one candidate DSL description file corresponding to the target component library can be determined. Further optionally, when the target DSL description file is determined in at least one candidate DSL description file, the latest version of the DSL description file may be selected from at least one DSL description file corresponding to the target component library, and issued to the application as the target DSL description file. program, so that the application can dynamically render the front-end page according to the target DSL description file.

在本申请实施例中,不限定DSL描述文件的具体内容,可选地,DSL描述文件的内容除了包括前端页面中对UI组件的描述信息之外,基于上述,还可以包括对组件库的描述信息。如下示例1和示例2所示,在DSL描述文件中,可以包括组件库的名称、版本、组件库支持的应用程序版本范围以及关于创建者、类型、属性、支持的平台等其他描述信息,还可包括对组件库中包含的多个UI组件的名称及其支持的应用程序版本的描述信息等。需要说明的是,下述仅为示例性说明,关于DSL描述文件版本管理相关的描述信息的具体内容,可以根据实际需求确定,在此不限限定。In the embodiment of the present application, the specific content of the DSL description file is not limited. Optionally, the content of the DSL description file may include the description of the component library based on the above, in addition to the description information of the UI components in the front-end page. information. As shown in Example 1 and Example 2 below, in the DSL description file, you can include the name and version of the component library, the application version range supported by the component library, and other description information about the creator, type, properties, supported platforms, etc., and also It can include the names of the multiple UI components contained in the component library and the description information of the application versions supported by them. It should be noted that the following is only an exemplary description, and the specific content of the description information related to the version management of the DSL description file can be determined according to actual requirements, which is not limited herein.

在本申请实施例中,通过应用程序发送的DSL描述文件请求,可以确定应用程序的版本信息和待渲染的目标前端页面的标识;进而,根据目标前端页面的标识可以确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件;以及根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,可以从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件;基于此,可以将目标DSL描述文件发送给应用程序。由于本申请中的DSL描述文件不具有平台依赖性,因此,可以实现跨平台向各平台下发DSL描述文件,供各平台的应用程序根据目标DSL描述文件包括的描述信息动态化渲染出目标前端页面。基于DSL描述文件无平台依赖性的特点,本申请实施例可以实现对不同平台的DSL描述文件进行统一管理以及跨平台动态下发,能够实现跨平台动态化渲染需求。In the embodiment of the present application, the version information of the application and the identifier of the target front-end page to be rendered can be determined through the DSL description file request sent by the application; furthermore, according to the identifier of the target front-end page, it can be determined that the target front-end page is in different versions At least one candidate DSL description file corresponding to the following; and according to the version information of the application and the application version range supported by each candidate DSL description file, the target DSL corresponding to the version of the application can be determined from the at least one candidate DSL description file. Description file; based on this, the target DSL description file can be sent to the application. Since the DSL description file in this application is not platform-dependent, it is possible to distribute the DSL description file to each platform across platforms, so that the applications of each platform can dynamically render the target front end according to the description information included in the target DSL description file. page. Based on the feature that DSL description files have no platform dependency, the embodiments of the present application can implement unified management and cross-platform dynamic distribution of DSL description files of different platforms, and can realize cross-platform dynamic rendering requirements.

Figure BDA0003451338710000121
Figure BDA0003451338710000121

示例1Example 1

Figure BDA0003451338710000131
Figure BDA0003451338710000131

示例2Example 2

基于上述,本申请实施例还提供一种DSL描述文件管理方法,该方法可应用于上述DSL描述文件管理系统。图2为本申请实施例提供的DSL描述文件管理方法的流程图,如图2所示,方法包括:Based on the above, an embodiment of the present application further provides a DSL description file management method, which can be applied to the above DSL description file management system. FIG. 2 is a flowchart of a DSL description file management method provided by an embodiment of the present application. As shown in FIG. 2 , the method includes:

S1、接收应用程序发送的DSL描述文件请求,DSL描述文件请求包括应用程序的版本信息和待渲染的目标前端页面的标识;S1. Receive a DSL description file request sent by an application, where the DSL description file request includes version information of the application and an identifier of the target front-end page to be rendered;

S2、根据目标前端页面的标识,确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件;其中,每个候选DSL描述文件具有对应支持的应用程序版本范围;S2. Determine at least one candidate DSL description file corresponding to the target front-end page under different versions according to the identifier of the target front-end page; wherein, each candidate DSL description file has a corresponding supported application version range;

S3、根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件;S3. According to the version information of the application and the application version range supported by each candidate DSL description file, determine a target DSL description file corresponding to the version of the application from at least one candidate DSL description file;

S4、将目标DSL描述文件发送给应用程序,以供应用程序根据目标DSL描述文件包括的描述信息渲染出目标前端页面。S4. Send the target DSL description file to the application, so that the application can render the target front-end page according to the description information included in the target DSL description file.

在一可选实施例中,DSL描述文件管理系统包括至少一个前端页面对应的至少一个组件库,至少一个组件库具有不同的版本,不同版本的组件库所支持的应用程序版本范围不同,每个版本的组件库对应有至少一个DSL描述文件,每个组件库中包括其对应前端页面所需的UI组件;相应地,在根据目标前端页面的标识,确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件时,可以根据目标前端页面的标识,确定目标前端页面在不同版本下对应的至少一个候选组件库,将至少一个候选组件库对应的至少一个DSL描述文件作为至少一个候选DSL描述文件;相应地,在根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件时,可以根据应用程序的版本信息和至少一个候选组件库分别支持的应用程序版本范围,从至少一个候选组件库中选择目标组件库,从目标组件库对应的至少一个DSL描述文件中选择目标DSL描述文件。In an optional embodiment, the DSL description file management system includes at least one component library corresponding to at least one front-end page, at least one component library has different versions, and different versions of the component library support different application version ranges. The component library of the version corresponds to at least one DSL description file, and each component library includes the UI components required by its corresponding front-end page; accordingly, according to the identification of the target front-end page, it is determined that the target front-end page corresponds to at least one of the different versions. When there is a candidate DSL description file, at least one candidate component library corresponding to the target front-end page under different versions can be determined according to the identifier of the target front-end page, and at least one DSL description file corresponding to the at least one candidate component library can be used as the at least one candidate DSL description Correspondingly, when determining the target DSL description file corresponding to the version of the application from at least one candidate DSL description file according to the version information of the application and the application version range supported by each candidate DSL description file, the target DSL description file corresponding to the version of the application can be determined according to the The version information of the application and the application version range supported by the at least one candidate component library respectively, select the target component library from the at least one candidate component library, and select the target DSL description file from at least one DSL description file corresponding to the target component library.

在一可选实施例中,在接收应用程序发送的请求之前,还可以针对同一前端页面对应的至少一个组件库,确定至少一个组件库中每个组件库支持的应用程序版本范围和每个组件库的版本;以及根据每个组件库的版本以及支持的应用程序版本范围,生成每个组件库对应的至少一个DSL描述文件。In an optional embodiment, before receiving the request sent by the application, the application version range and each component supported by each component library in the at least one component library may also be determined for at least one component library corresponding to the same front-end page. the version of the library; and generating at least one DSL description file corresponding to each component library according to the version of each component library and the supported application version range.

在一可选实施例中,在确定至少一个组件库中每个组件库支持的应用程序版本范围和每个组件库的版本时,可以针对至少一个组件库中每个组件库,获取其包含的多个UI组件分别支持的应用程序版本;以及根据多个UI组件分别支持的应用程序版本确定每个组件库中多个UI组件共同支持的应用程序版本范围,作为每个组件库支持的应用程序版本范围;在有至少两个组件库支持的应用程序版本范围相同的情况下,将至少两个组件库设置为相同版本;以及在有至少两个组件库支持的应用程序版本范围不同的情况下,将至少两个组件库设置为不同版本。In an optional embodiment, when determining the application version range supported by each component library in the at least one component library and the version of each component library, you can obtain the information contained in the component library for each component library in the at least one component library. The application versions supported by the multiple UI components respectively; and the application version range supported by the multiple UI components in each component library is determined according to the application versions supported by the multiple UI components respectively, as the applications supported by each component library Version range; set at least two component libraries to the same version if the application version range supported by at least two component libraries is the same; and if the application version range supported by at least two component libraries is different , set at least two component libraries to different versions.

在一可选实施例中,在根据每个组件库的版本以及支持的应用程序版本范围,生成每个组件库对应的至少一个DSL描述文件时,可以获取每个组件库中包含的多个UI组件的基本信息和布局信息,并根据基本信息和布局信息确定多个UI组件之间的级联关系;以及根据每个组件库的版本和级联关系,生成每个组件库对应的至少一个DSL描述文件,并将每个组件库支持的应用程序版本范围作为组件库对应的至少一个DSL描述文件支持的应用程序版本范围。In an optional embodiment, when at least one DSL description file corresponding to each component library is generated according to the version of each component library and the supported application version range, multiple UIs contained in each component library can be obtained. Basic information and layout information of components, and determine the cascading relationship between multiple UI components according to the basic information and layout information; and generate at least one DSL corresponding to each component library according to the version and cascading relationship of each component library description file, and use the application version range supported by each component library as the application version range supported by at least one DSL description file corresponding to the component library.

在一可选实施例中,在从目标组件库对应的至少一个DSL描述文件选择目标DSL描述文件时,可以从至少一个DSL描述文件中选择最新版本DSL描述文件,作为目标DSL描述文件。In an optional embodiment, when the target DSL description file is selected from at least one DSL description file corresponding to the target component library, the latest version of the DSL description file may be selected from the at least one DSL description file as the target DSL description file.

在本申请实施例中,通过应用程序发送的DSL描述文件请求,可以确定应用程序的版本信息和待渲染的目标前端页面的标识;进而,根据目标前端页面的标识可以确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件;以及根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,可以从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件;基于此,可以将目标DSL描述文件发送给应用程序。由于本申请中的DSL描述文件不具有平台依赖性,因此,可以实现跨平台向各平台下发DSL描述文件,供各平台的应用程序根据目标DSL描述文件包括的描述信息动态化渲染出目标前端页面。基于DSL描述文件无平台依赖性的特点,本申请实施例可以实现对不同平台的DSL描述文件进行统一管理以及跨平台动态下发,能够实现跨平台动态化渲染需求。In the embodiment of the present application, the version information of the application and the identifier of the target front-end page to be rendered can be determined through the DSL description file request sent by the application; furthermore, according to the identifier of the target front-end page, it can be determined that the target front-end page is in different versions At least one candidate DSL description file corresponding to the following; and according to the version information of the application and the application version range supported by each candidate DSL description file, the target DSL corresponding to the version of the application can be determined from the at least one candidate DSL description file. Description file; based on this, the target DSL description file can be sent to the application. Since the DSL description file in this application is not platform-dependent, it is possible to distribute the DSL description file to each platform across platforms, so that the applications of each platform can dynamically render the target front end according to the description information included in the target DSL description file. page. Based on the feature that DSL description files have no platform dependency, the embodiments of the present application can implement unified management and cross-platform dynamic distribution of DSL description files of different platforms, and can realize cross-platform dynamic rendering requirements.

需要说明的是,上述实施例所提供方法的各步骤的执行主体均可以是同一设备,或者,该方法也由不同设备作为执行主体。比如,步骤S1至步骤S4的执行主体可以为设备A;又比如,步骤S1至步骤S3的执行主体可以为设备A,步骤S4的执行主体可以为设备B;等等。It should be noted that, the execution subject of each step of the method provided in the above-mentioned embodiments may be the same device, or the method may also be executed by different devices. For example, the execution subject of steps S1 to S4 may be device A; for another example, the execution subject of steps S1 to S3 may be device A, and the execution subject of step S4 may be device B; and so on.

另外,在上述实施例及附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如S1、S2等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may be performed out of the order in which they appear in this document or performed in parallel , the sequence numbers of the operations, such as S1, S2, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. Additionally, these flows may include more or fewer operations, and these operations may be performed sequentially or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit "first" and "second" are different types.

本申请实施例还提供一种DSL描述文件生成装置。应用于DSL描述文件管理系统,其中,DSL描述文件管理系统包括至少一个前端页面对应的DSL描述文件,每个DSL描述文件包括其对应前端页面所需UI组件的描述信息。DSL描述文件生成装置可实现为通信控制器(Communication Control Unit,CCU)中的虚拟装置,例如应用程序。如图3所示,该DSL描述文件生成装置包括接收模块301、第一处理模块302、第二处理模块303和发送模块304;其中:The embodiment of the present application also provides an apparatus for generating a DSL description file. It is applied to a DSL description file management system, wherein the DSL description file management system includes at least one DSL description file corresponding to a front-end page, and each DSL description file includes description information of UI components required by its corresponding front-end page. The DSL description file generating device may be implemented as a virtual device in a Communication Control Unit (CCU), such as an application program. As shown in FIG. 3 , the apparatus for generating a DSL description file includes a receiving module 301, a first processing module 302, a second processing module 303 and a sending module 304; wherein:

接收模块301,用于接收应用程序发送的DSL描述文件请求,其中,DSL描述文件请求包括应用程序的版本信息和待渲染的目标前端页面的标识;A receiving module 301, configured to receive a DSL description file request sent by an application, wherein the DSL description file request includes version information of the application and an identifier of the target front-end page to be rendered;

第一处理模块302,用于根据目标前端页面的标识,确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件;其中,每个候选DSL描述文件具有对应支持的应用程序版本范围;The first processing module 302 is configured to determine at least one candidate DSL description file corresponding to the target front-end page under different versions according to the identifier of the target front-end page; wherein each candidate DSL description file has a corresponding supported application version range;

第二处理模块303,用于根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件;The second processing module 303 is configured to determine a target DSL description file corresponding to the version of the application from at least one candidate DSL description file according to the version information of the application and the application version range supported by each candidate DSL description file;

发送模块304,用于将目标DSL描述文件发送给应用程序,以供应用程序根据目标DSL描述文件包括的描述信息渲染出目标前端页面。The sending module 304 is configured to send the target DSL description file to the application, so that the application can render the target front-end page according to the description information included in the target DSL description file.

在一可选实施例中,DSL描述文件管理系统包括至少一个前端页面对应的至少一个组件库,至少一个组件库具有不同的版本,不同版本的组件库所支持的应用程序版本范围不同,每个版本的组件库对应有至少一个DSL描述文件,每个组件库中包括其对应前端页面所需的UI组件;第一处理模块302在根据目标前端页面的标识,确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件时,用于根据目标前端页面的标识,确定目标前端页面在不同版本下对应的至少一个候选组件库,将至少一个候选组件库对应的至少一个DSL描述文件作为至少一个候选DSL描述文件;第二处理模块303,在根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件时,用于根据应用程序的版本信息和至少一个候选组件库分别支持的应用程序版本范围,从至少一个候选组件库中选择目标组件库,从目标组件库对应的至少一个DSL描述文件中选择目标DSL描述文件。In an optional embodiment, the DSL description file management system includes at least one component library corresponding to at least one front-end page, at least one component library has different versions, and different versions of the component library support different application version ranges. The component library of the version corresponds to at least one DSL description file, and each component library includes the UI components required by its corresponding front-end page; the first processing module 302 determines, according to the identifier of the target front-end page, that the target front-end page corresponds to different versions When the at least one candidate DSL description file is selected, it is used to determine at least one candidate component library corresponding to the target front-end page under different versions according to the identifier of the target front-end page, and use at least one DSL description file corresponding to the at least one candidate component library as at least one A candidate DSL description file; the second processing module 303 determines a target DSL corresponding to the version of the application from at least one candidate DSL description file according to the version information of the application and the application version range supported by each candidate DSL description file When describing the file, it is used to select the target component library from the at least one candidate component library according to the version information of the application and the application version range supported by the at least one candidate component library, and select the target component library from the at least one DSL description file corresponding to the target component library. Select the target DSL description file.

在一可选实施例中,接收模块301在接收应用程序发送的请求之前,第一处理模块302还用于针对同一前端页面对应的至少一个组件库,确定至少一个组件库中每个组件库支持的应用程序版本范围和每个组件库的版本;以及根据每个组件库的版本以及支持的应用程序版本范围,生成每个组件库对应的至少一个DSL描述文件。In an optional embodiment, before the receiving module 301 receives the request sent by the application, the first processing module 302 is further configured to, for at least one component library corresponding to the same front-end page, determine that each component library in the at least one component library supports The application version range of each component library and the version of each component library; and at least one DSL description file corresponding to each component library is generated according to the version of each component library and the supported application version range.

在一可选实施例中,第一处理模块302在确定至少一个组件库中每个组件库支持的应用程序版本范围和每个组件库的版本时,用于针对至少一个组件库中每个组件库,获取其包含的多个UI组件分别支持的应用程序版本;以及根据多个UI组件分别支持的应用程序版本确定每个组件库中多个UI组件共同支持的应用程序版本范围,作为每个组件库支持的应用程序版本范围;在有至少两个组件库支持的应用程序版本范围相同的情况下,将至少两个组件库设置为相同版本;以及在有至少两个组件库支持的应用程序版本范围不同的情况下,将至少两个组件库设置为不同版本。In an optional embodiment, when the first processing module 302 determines the application version range supported by each component library in the at least one component library and the version of each component library, library, obtain the application versions supported by the multiple UI components contained in it; and determine the application version range jointly supported by the multiple UI components in each component library according to the application versions supported by the multiple UI components respectively, as each The range of application versions supported by the component library; in the case where the version range of the application supported by at least two component libraries is the same, set at least two component libraries to the same version; and in the case of applications supported by at least two component libraries In the case of different version ranges, set at least two component libraries to different versions.

在一可选实施例中,第一处理模块302在根据每个组件库的版本以及支持的应用程序版本范围,生成每个组件库对应的至少一个DSL描述文件时,用于获取每个组件库中包含的多个UI组件的基本信息和布局信息,并根据基本信息和布局信息确定多个UI组件之间的级联关系;以及根据每个组件库的版本和级联关系,生成每个组件库对应的至少一个DSL描述文件,并将每个组件库支持的应用程序版本范围作为组件库对应的至少一个DSL描述文件支持的应用程序版本范围。In an optional embodiment, the first processing module 302 is configured to obtain each component library when generating at least one DSL description file corresponding to each component library according to the version of each component library and the supported application version range. Basic information and layout information of multiple UI components contained in the library, and determine the cascading relationship between multiple UI components according to the basic information and layout information; and generate each component according to the version and cascading relationship of each component library at least one DSL description file corresponding to the library, and the application version range supported by each component library is used as the application version range supported by the at least one DSL description file corresponding to the component library.

在一可选实施例中,第二处理模块303,在从目标组件库对应的至少一个DSL描述文件选择目标DSL描述文件时,用于从至少一个DSL描述文件中选择最新版本DSL描述文件,作为目标DSL描述文件。In an optional embodiment, the second processing module 303, when selecting the target DSL description file from at least one DSL description file corresponding to the target component library, is configured to select the latest version of the DSL description file from the at least one DSL description file, as Target DSL description file.

需要说明的是,关于上述装置中各模块的具体功能和实现过程,可参见上述方法实施例,在此不再赘述。It should be noted that, for the specific functions and implementation processes of the modules in the foregoing apparatus, reference may be made to the foregoing method embodiments, and details are not described herein again.

本申请实施例还提供一种DSL描述文件管理设备,图4为DSL描述文件管理设备的结构示意图,如图4所示,DSL描述文件管理设备包括:处理器41以及存储有计算机程序的存储器42;其中,处理器41和存储器42可以是一个或多个。An embodiment of the present application further provides a DSL description file management device. FIG. 4 is a schematic structural diagram of the DSL description file management device. As shown in FIG. 4 , the DSL description file management device includes: a processor 41 and a memory 42 storing a computer program ; wherein, the processor 41 and the memory 42 may be one or more.

存储器42,主要用于存储计算机程序,这些计算机程序可被处理器41执行,致使处理器41控制DSL描述文件管理设备实现相应功能、完成相应动作或任务。除了存储计算机程序之外,存储器42还可被配置为存储其它各种数据以支持在DSL描述文件管理设备上的操作。这些数据的示例包括用于在DSL描述文件管理设备上操作的任何应用程序或方法的指令。The memory 42 is mainly used for storing computer programs, and these computer programs can be executed by the processor 41, so that the processor 41 controls the DSL description file management device to realize corresponding functions and complete corresponding actions or tasks. In addition to storing computer programs, the memory 42 may be configured to store various other data to support operation on the DSL profile management device. Examples of such data include instructions for any application or method operating on the DSL profile management device.

存储器42,可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 42, which may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

在本申请实施例中,并不限定处理器41的实现形态,例如可以是但不限于CPU、GPU或MCU等。处理器41可以看作是DSL描述文件管理设备的控制系统,可用于执行存储器42中存储的计算机程序,以控制DSL描述文件管理设备实现相应功能、完成相应动作或任务。值得说明的是,根据DSL描述文件管理设备实现形态以及所处于场景的不同,其所需实现的功能、完成的动作或任务会有所不同;相应地,存储器42中存储的计算机程序也会有所不同,而处理器31执行不同计算机程序可控制DSL描述文件管理设备实现不同的功能、完成不同的动作或任务。In the embodiments of the present application, the implementation form of the processor 41 is not limited, for example, it may be, but not limited to, a CPU, a GPU, or an MCU. The processor 41 can be regarded as a control system of the DSL description file management device, and can be used to execute the computer program stored in the memory 42 to control the DSL description file management device to implement corresponding functions and complete corresponding actions or tasks. It is worth noting that, according to the different implementation forms and scenarios of the DSL description file management device, the functions to be implemented, actions or tasks to be completed will be different; correspondingly, the computer programs stored in the memory 42 will also have Differently, the processor 31 executes different computer programs to control the DSL description file management device to implement different functions and complete different actions or tasks.

在一些可选实施例中,如图4所示,DSL描述文件管理设备还可包括:显示器43、电源组件44以及通信组件45等其它组件。图4中仅示意性给出部分组件,并不意味着DSL描述文件管理设备只包括图4所示组件,针对不同的应用需求,DSL描述文件管理设备还可以包括其他组件,例如,在存在语音交互需求的情况下,如图4所示,DSL描述文件管理设备还可以包括音频组件46。关于DSL描述文件管理设备可包含的组件,具体可视DSL描述文件管理设备的产品形态而定,在此不做限定。In some optional embodiments, as shown in FIG. 4 , the DSL description file management device may further include: a display 43 , a power supply component 44 , and a communication component 45 and other components. Fig. 4 only schematically shows some components, which does not mean that the DSL description file management device only includes the components shown in Fig. 4. For different application requirements, the DSL description file management device may also include other components. In the case of interactive requirements, as shown in FIG. 4 , the DSL description file management device may further include an audio component 46 . The components that can be included in the DSL description file management device may depend on the product form of the DSL description file management device, which is not limited here.

在本申请实施例中,当处理器执行存储器中的计算机程序时,以用于:接收应用程序发送的DSL描述文件请求,其中,DSL描述文件请求包括应用程序的版本信息和待渲染的目标前端页面的标识;根据目标前端页面的标识,确定目标前端页面在不同版本下对应的至少一个候选DSL描述文件;其中,每个候选DSL描述文件具有对应支持的应用程序版本范围;根据应用程序的版本信息和每个候选DSL描述文件支持的应用程序版本范围,从至少一个候选DSL描述文件中确定与应用程序的版本对应的目标DSL描述文件;将目标DSL描述文件发送给应用程序,以供应用程序根据目标DSL描述文件包括的描述信息渲染出目标前端页面。基于DSL描述文件无平台依赖性的特点,本申请实施例可以实现对不同平台的DSL描述文件进行统一管理以及跨平台动态下发,能够实现跨平台动态化渲染需求。In this embodiment of the present application, when the processor executes the computer program in the memory, it is configured to: receive a DSL description file request sent by an application, where the DSL description file request includes version information of the application and a target front end to be rendered The identifier of the page; according to the identifier of the target front-end page, at least one candidate DSL description file corresponding to the target front-end page under different versions is determined; wherein, each candidate DSL description file has a corresponding supported application version range; according to the version of the application information and the application version range supported by each candidate DSL description file, determine the target DSL description file corresponding to the version of the application from at least one candidate DSL description file; send the target DSL description file to the application for the application The target front-end page is rendered according to the description information included in the target DSL description file. Based on the feature that DSL description files have no platform dependency, the embodiments of the present application can implement unified management and cross-platform dynamic distribution of DSL description files of different platforms, and can realize cross-platform dynamic rendering requirements.

需要说明的是,关于上述电子设备中处理器的具体功能,可参见上述方法实施例,在此不再赘述。It should be noted that, with regard to the specific functions of the processor in the above electronic device, reference may be made to the above method embodiments, and details are not described herein again.

相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述方法实施例中可由DSL描述文件管理设备执行的各步骤。Correspondingly, the embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed, each step in the above method embodiment that can be executed by the DSL description file management device can be implemented.

上述实施例中的通信组件被配置为便于通信组件所在设备和其他设备之间有线或无线方式的通信。通信组件所在设备可以接入基于通信标准的无线网络,如WiFi,2G、3G、4G/LTE、5G等移动通信网络,或它们的组合。在一个示例性实施例中,通信组件经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication components in the above embodiments are configured to facilitate wired or wireless communication between the device where the communication components are located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, a mobile communication network such as 2G, 3G, 4G/LTE, 5G, or a combination thereof. In one exemplary embodiment, the communication component receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication assembly further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

上述实施例中的显示器包括屏幕,其屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The display in the above-described embodiments includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.

上述实施例中的电源组件,为电源组件所在设备的各种组件提供电力。电源组件可以包括电源管理系统,一个或多个电源,及其他与为电源组件所在设备生成、管理和分配电力相关联的组件。The power supply components in the above embodiments provide power for various components of the equipment where the power supply components are located. A power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the equipment in which the power supply assembly is located.

上述实施例的音频组件,可被配置为输出和/或输入音频信号。例如,音频组件包括一个麦克风(MIC),当音频组件所在设备处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器或经由通信组件发送。在一些实施例中,音频组件还包括一个扬声器,用于输出音频信号。The audio components of the above-described embodiments may be configured to output and/or input audio signals. For example, the audio component includes a microphone (MIC) that is configured to receive external audio signals when the device in which the audio component is located is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory or transmitted via the communication component. In some embodiments, the audio assembly further includes a speaker for outputting audio signals.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.

Claims (11)

1. A DSL description file management method is applied to a DSL description file management system, and is characterized in that the DSL description file management system comprises DSL description files corresponding to at least one front end page, and each DSL description file comprises description information of a UI component required by the corresponding front end page, and the method comprises the following steps:
receiving a DSL description file request sent by an application program, wherein the DSL description file request comprises version information of the application program and an identifier of a target front-end page to be rendered;
determining at least one candidate DSL description file corresponding to the target front-end page under different versions according to the identifier of the target front-end page; wherein each of the candidate DSL profiles has a corresponding range of supported application versions;
determining a target DSL description file corresponding to the version of the application program from the at least one candidate DSL description file according to the version information of the application program and the version range of the application program supported by each candidate DSL description file;
and sending the target DSL description file to the application program, so that the application program renders the target front-end page according to the description information included in the target DSL description file.
2. The method of claim 1, wherein the DSL profile management system comprises at least one component library corresponding to at least one front-end page, wherein the at least one component library has different versions, the version range of applications supported by the component libraries of different versions is different, at least one DSL profile corresponds to each version of the component library, and each component library comprises UI components required by its corresponding front-end page;
correspondingly, determining at least one candidate DSL profile corresponding to the target front-end page under different versions according to the identifier of the target front-end page includes:
determining at least one candidate component library corresponding to the target front-end page under different versions according to the identifier of the target front-end page, and taking at least one DSL description file corresponding to the at least one candidate component library as the at least one candidate DSL description file;
accordingly, determining a target DSL profile corresponding to the version of the application from the at least one candidate DSL profile according to the version information of the application and the range of application versions supported by each candidate DSL profile, comprises:
and selecting a target component library from the at least one candidate component library according to the version information of the application program and the version range of the application program respectively supported by the at least one candidate component library, and selecting the target DSL description file from at least one DSL description file corresponding to the target component library.
3. The method of claim 1 or 2, wherein prior to receiving the request sent by the application, the method further comprises:
determining an application program version range supported by each component library in at least one component library and a version of each component library aiming at least one component library corresponding to the same front-end page;
and generating at least one DSL description file corresponding to each component library according to the version of each component library and the supported application program version range.
4. The method of claim 3, wherein determining the range of application versions supported by each component library of the at least one component library and the version of each component library comprises:
aiming at each component library in the at least one component library, acquiring application program versions respectively supported by a plurality of UI components contained in the component library;
determining an application version range commonly supported by the plurality of UI components in each component library according to the application versions respectively supported by the plurality of UI components, and taking the application version range commonly supported by the plurality of UI components in each component library as the application version range supported by each component library;
under the condition that the application program version range supported by at least two component libraries is the same, setting the at least two component libraries to be the same version;
and in the case that the application program version range supported by at least two component libraries is different, setting the at least two component libraries to different versions.
5. The method of claim 4, wherein generating at least one DSL description file corresponding to each component library according to the version of each component library and the supported application version range comprises:
acquiring basic information and layout information of a plurality of UI components contained in each component library;
determining a cascade relation among the plurality of UI components according to the basic information and the layout information;
and generating at least one DSL description file corresponding to each component library according to the version of each component library and the cascade relation, and taking the application program version range supported by each component library as the application program version range supported by the at least one DSL description file corresponding to the component library.
6. The method of any of claims 4-5, wherein selecting a target DSL profile from the at least one DSL profile corresponding to the target component library comprises:
selecting a latest version of a DSL description file from the at least one DSL description file as the target DSL description file.
7. A DSL description file management device is applied to a DSL description file management system, the DSL description file management system comprises DSL description files corresponding to at least one front-end page, each DSL description file comprises description information of a UI component required by the corresponding front-end page, and the device comprises:
a receiving module, configured to receive a DSL description file request sent by an application program, where the DSL description file request includes version information of the application program and an identifier of a target front-end page to be rendered;
a first processing module, configured to determine, according to the identifier of the target front-end page, at least one candidate DSL profile corresponding to the target front-end page in different versions; wherein each of the candidate DSL profiles has a corresponding range of supported application versions;
a second processing module, configured to determine, according to version information of the application and an application version range supported by each candidate DSL profile, a target DSL profile corresponding to the version of the application from among the at least one candidate DSL profile;
and the sending module is used for sending the target DSL description file to the application program so that the application program renders the target front-end page according to the description information included in the target DSL description file.
8. A DSL profile management system, said system comprising: a DSL description file generation device and a DSL description file management device;
the DSL description file generating device is used for generating DSL description files corresponding to at least one front-end page under different versions, and each DSL description file comprises description information of a UI component required by the corresponding front-end page; determining the version range of the application program supported by each DSL description file according to the version information of the application program supported by the UI component contained in each DSL description file;
the DSL description file management device is used for determining at least one candidate DSL description file corresponding to a target front-end page under different versions according to the identifier of the target front-end page to be rendered; determining a target DSL description file supporting the version of the application program from the at least one candidate DSL description file according to the version information of the application program and the version range of the application program supported by each DSL description file; and sending the target DSL description file to the application program for rendering the target front-end page by the application program.
9. A DSL profile management system, said system comprising: the device comprises component library generating equipment, DSL description file generating equipment and DSL description file management equipment;
the component library generating device is used for generating at least one component library corresponding to at least one front-end page, each component library comprises a plurality of UI components, and the UI components correspond to application program versions supported by the UI components; determining an application program version range supported by each component library and a version of each component library according to application program versions supported by a plurality of UI components included in each component library;
the DSL description file generating device is used for generating DSL description files corresponding to at least one front-end page under different versions, and each DSL description file comprises description information of a UI component required by the corresponding front-end page;
the DSL description file management device is used for determining at least one candidate component library corresponding to a target front-end page according to the identifier of the target front-end page to be rendered; establishing a corresponding relation between a component library version and DSLs of different versions, and determining a target component library and at least one DSL description file corresponding to the target component library from the at least one candidate component library according to version information of the application program; selecting a target DSL description file from the at least one DSL description file, and sending the target DSL description file to the application program for rendering the target front-end page by the application program.
10. A DSL profile management apparatus, comprising: a processor and a memory storing a computer program;
the processor to execute the computer program to:
receiving a DSL description file request sent by an application program, wherein the DSL description file request comprises version information of the application program and an identifier of a target front-end page to be rendered;
determining at least one candidate DSL description file corresponding to the target front-end page under different versions according to the identifier of the target front-end page; wherein each of the candidate DSL profiles has a corresponding range of supported application versions;
determining a target DSL description file corresponding to the version of the application program from the at least one candidate DSL description file according to the version information of the application program and the version range of the application program supported by each candidate DSL description file;
and sending the target DSL description file to the application program, so that the application program renders the target front-end page according to the description information included in the target DSL description file.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 6.
CN202111666833.8A 2021-12-31 2021-12-31 DSL description file management method, apparatus, system, device and medium Pending CN114489721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111666833.8A CN114489721A (en) 2021-12-31 2021-12-31 DSL description file management method, apparatus, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111666833.8A CN114489721A (en) 2021-12-31 2021-12-31 DSL description file management method, apparatus, system, device and medium

Publications (1)

Publication Number Publication Date
CN114489721A true CN114489721A (en) 2022-05-13

Family

ID=81507593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111666833.8A Pending CN114489721A (en) 2021-12-31 2021-12-31 DSL description file management method, apparatus, system, device and medium

Country Status (1)

Country Link
CN (1) CN114489721A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271162A (en) * 2018-09-03 2019-01-25 中国建设银行股份有限公司 A kind of page generation method and device
CN112558970A (en) * 2020-12-24 2021-03-26 贵阳货车帮科技有限公司 Rendering generation method and device for front-end page, front-end equipment and storage medium
CN113282544A (en) * 2021-05-27 2021-08-20 广州科语机器人有限公司 Control method, control device, storage medium and computer equipment
US20210406033A1 (en) * 2020-01-09 2021-12-30 Baidu Online Network Technology (Beijing) Co., Ltd. Method for running applets, and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271162A (en) * 2018-09-03 2019-01-25 中国建设银行股份有限公司 A kind of page generation method and device
US20210406033A1 (en) * 2020-01-09 2021-12-30 Baidu Online Network Technology (Beijing) Co., Ltd. Method for running applets, and electronic device
CN112558970A (en) * 2020-12-24 2021-03-26 贵阳货车帮科技有限公司 Rendering generation method and device for front-end page, front-end equipment and storage medium
CN113282544A (en) * 2021-05-27 2021-08-20 广州科语机器人有限公司 Control method, control device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
US11366654B2 (en) Application management within deployable object hierarchy
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
JP5551363B2 (en) Integrated charts in documents
US9058193B2 (en) Methods and systems for providing compatibility of applications with multiple versions of an operating system
TW201814510A (en) Interface moving method, device, intelligent terminal, server and operating system
US20130036196A1 (en) Method and system for publishing template-based content
US20210119460A1 (en) Resource statistics collection method and apparatus and terminal
CN110674624B (en) A method and system for image and text editing
CN114385164A (en) Page generation and rendering method and device, electronic equipment and storage medium
WO2020216204A1 (en) Information acquisition method and apparatus
CN112235132B (en) Method, device, medium and server for dynamically configuring service
CN114547514A (en) Component dynamic rendering method, device, device and medium
CN111443903A (en) Software development file acquisition method and device, electronic equipment and storage medium
CN109614089B (en) Automatic generation method, device, equipment and storage medium of data access code
CN114489721A (en) DSL description file management method, apparatus, system, device and medium
CN111340705B (en) Application method, device and system of jigsaw software
CN113422791A (en) Cloud service configuration method and device, electronic equipment and computer-readable storage medium
CN113822031A (en) Method and apparatus for processing code templates
US11381662B2 (en) Transition of business-object based application architecture via dynamic feature check
KR20140095903A (en) Method and apparatus for providing mash up service based on user device
CN110609728A (en) Page generation method and device and electronic equipment
US20250123912A1 (en) Customization of application programming interfaces
CN113704187B (en) Method, apparatus, server and computer readable medium for generating file
US20250005525A1 (en) Ai creative work contribution system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination