Application template configuration method based on tree structure

A technology using templates and tree structures, applied in program control devices, program code conversion, program control design, etc., can solve the problems of error-prone editing, difficulty in understanding and configuration for non-professionals, troublesome viewing, etc. It is convenient to browse and find configuration items, and the effect of convenient legality

Active Publication Date: 2020-02-21
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, using an editor to edit configuration files has disadvantages such as troublesome viewing, error-prone editing, and the ability to add and delete configuration items at will, which makes it difficult for non-professionals to understand and configure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application template configuration method based on tree structure
  • Application template configuration method based on tree structure
  • Application template configuration method based on tree structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the present invention will be described in detail below in conjunction with the embodiments. It should be noted that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0027] The tree structure-based application template configuration method is based on the Angular language and the ng-zorro-antd framework, and includes two classes: json2Tree and tree2Json. First, the YAML format file is converted into JSON format, and the configuration items in JSON format are traversed and drawn. Form a tree diagram, and then guide the user to configure the template in the form of a tree diagram, so that it supports editing, saving and format conversion, but the user is prohibited from modifying the name of the configuration item.

[0028] The json2Tree class parses the configuration...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention particularly relates to an application template configuration method based on a tree structure. The application template configuration method based on a tree structure is based on an Angular language and an ng-zorro-antd framework, and comprises two classes of json2Tree and tree2Json; the method comprises the steps of converting a YAML format file into a JSON format, traversing configuration items in the JSON format, drawing a tree diagram, guiding a user to performing template configuration in a tree diagram mode to enable the template to support editing, storage and format conversion, and forbidding the user to modify names of the configuration items. According to the application template configuration method based on the tree structure, the user is forbidden to modify thename of the configuration item, so that configuration errors can be prevented; a hierarchical structure of configuration is more clearly displayed through a tree structure, so that the user can browseand search configuration items conveniently; data types are distinguished by using different color labels, so that a user can conveniently check the legality of configuration parameters; mutual conversion between files of different formats can be achieved, more modes can be provided for a user to configure the template, and the flexibility is improved.

Description

technical field [0001] The invention relates to the field of UI design and the field of front-end interaction technology, in particular to an application template configuration method based on a tree structure. Background technique [0002] Currently, the common way to configure application templates based on the Kubernetes Helm standard is to add source files to the code editor. However, using an editor to edit configuration files has disadvantages such as troublesome viewing, error-prone editing, and configuration items that can be added or deleted at will, which makes it difficult for non-professionals to understand and configure. [0003] Therefore, it is extremely necessary to provide a relatively friendly interaction method for users. [0004] Based on the above situation, the present invention proposes a method for configuring application templates based on a tree structure. It aims to provide a template configuration method based on Angular's tree structure. Throug...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/40G06F9/445
CPCG06F8/315G06F8/40G06F9/4451
Inventor 颜冬冬张东海寇立强
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products