Nothing Special   »   [go: up one dir, main page]

CN113420532A - Page file conversion method and device, electronic equipment and storage medium - Google Patents

Page file conversion method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113420532A
CN113420532A CN202110750455.5A CN202110750455A CN113420532A CN 113420532 A CN113420532 A CN 113420532A CN 202110750455 A CN202110750455 A CN 202110750455A CN 113420532 A CN113420532 A CN 113420532A
Authority
CN
China
Prior art keywords
page
node
json
syntax tree
abstract syntax
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
CN202110750455.5A
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.)
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information Technology 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 Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN202110750455.5A priority Critical patent/CN113420532A/en
Publication of CN113420532A publication Critical patent/CN113420532A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application provides a page file conversion method, a page file conversion device, electronic equipment and a storage medium, wherein the page file conversion method comprises the following steps: converting the VUE file corresponding to the acquired page to be processed into a first abstract syntax tree through a first conversion function; acquiring partial contents corresponding to each module in the first abstract syntax tree; and according to the JSON page configuration of the JavaScript object notation of the visual editor, converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.

Description

Page file conversion method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for converting a page file, an electronic device, and a storage medium.
Background
With the intelligent development of the internet technology, in order to meet the requirements of automatically converting page designs such as UI manuscripts into codes and reducing labor cost, visual editors supporting the assembly of new pages by dragging existing components appear in the related art one after another.
In the related art, as shown in fig. 1, after the page code file is edited by the visual editor 101, under the condition that the service logic of the page is complex, the page code file needs to perform secondary page Development through an Integrated Development Environment (IDE) 102, such as a vscode tool, and further upload the secondary developed page code file to a project repository 103, such as a GIT repository. However, in the related art, if the page code file which has been developed secondarily needs to be processed, the preview and the edit cannot be performed again on the visual editor platform. Therefore, a new method for converting a page file is needed.
Disclosure of Invention
The embodiments of the present application are intended to provide a page file conversion method, a page file conversion apparatus, an electronic device, and a storage medium, so as to solve the problem that a page code file that has been secondarily developed in the related art cannot be previewed and edited again on a visual editor platform.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for converting a page file, where the method includes:
converting the VUE file corresponding to the acquired page to be processed into a first abstract syntax tree through a first conversion function;
acquiring partial contents corresponding to each module in the first abstract syntax tree;
and according to the JSON page configuration of the JavaScript object notation of the visual editor, converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
In a second aspect, an embodiment of the present application provides a device for converting a pagefile, where the device includes:
the first conversion module is used for converting the obtained VUE file corresponding to the page to be processed into a first abstract syntax tree through a first conversion function;
the acquisition module is used for acquiring partial contents corresponding to each module in the first abstract syntax tree;
and the second conversion module is used for converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed according to JSON page configuration of a JavaScript object notation of the visual editor, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the page file conversion program stored in the memory so as to realize the page file conversion method.
In a fourth aspect, an embodiment of the present application provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the above-mentioned method for converting a pagefile.
The application of the embodiment of the application realizes the following beneficial effects: the page file developed by the local IDE tool is realized, secondary editing can be performed in the visual editor, the page development efficiency is improved, and the page development cost is saved.
Converting the obtained VUE file corresponding to the page to be processed into a first abstract syntax tree through a first conversion function; acquiring partial contents corresponding to each module in the first abstract syntax tree; converting part of contents corresponding to each module into a JSON page configuration file corresponding to a page to be processed according to JSON page configuration of a JavaScript object numbered notation of a visual editor, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file; therefore, the problem that the page code file which is developed secondarily in the related technology cannot be previewed and edited on the visual editor platform again is solved, the page file developed by the local IDE tool is realized, secondary editing can be carried out in the visual editor, the page development efficiency is improved, and the page development cost is saved.
Drawings
Fig. 1 is a schematic flowchart of page development provided in the related art;
fig. 2 is an alternative schematic flowchart of page file development provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of page development according to an embodiment of the present disclosure;
fig. 4 is an alternative schematic flowchart of a method for converting a page file according to an embodiment of the present application;
fig. 5 is an alternative schematic flowchart of a method for converting a page file according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a structure of an abstract syntax tree according to an embodiment of the present application;
fig. 7 is an alternative schematic flowchart of a method for converting a page file according to an embodiment of the present application;
fig. 8 is an alternative schematic flowchart of a method for converting a page file according to an embodiment of the present application;
fig. 9 is an alternative structural schematic diagram of a pagefile converting device according to an embodiment of the present application;
fig. 10 is an alternative structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An embodiment of the present application provides a method for converting a page file, which is applied to an electronic device, and is shown in fig. 2, where the method includes the following steps:
step 201, converting the obtained VUE file corresponding to the page to be processed into a first abstract syntax tree through a first conversion function.
The page to be processed is a page needing editing processing in the front-end page.
The VUE file is a source code file of a page to be processed in a front-end page constructed by the VUE component, wherein the VUE component is an abstract unit forming a page view.
And the first conversion function is a conversion function in a JavaScript compiler. Illustratively, the first transformation function may be @ vue/compiler-dom function in a babel compiler.
The Abstract Syntax Tree (AST) is used to Abstract and express the logical relationship of the Syntax structure in the source code, and it should be noted that the Abstract Syntax Tree is applicable to all types of programming languages.
In the embodiment of the application, the electronic device acquires a source code file, namely a VUE file, corresponding to a page to be processed, and converts the VUE file into a first abstract syntax tree through a first conversion function, such as an @ VUE/builder-dom function in a babel compiler.
Step 202, obtaining a part of content corresponding to each module in the first abstract syntax tree.
Wherein, each module includes: the device comprises a page structure module, a page logic module and a page style module.
In the embodiment of the application, the electronic device traverses each tree node in the first abstract syntax tree under the condition that the obtained VUE file corresponding to the page to be processed is converted into the first abstract syntax tree through the first conversion function, and determines the partial content corresponding to each module according to the node tag of the tree node.
In an implementation application scenario, the electronic device obtains a node tag of a tree node in the first abstract syntax tree, and obtains the tag as content corresponding to a page structure module template, a page logic module script, and a page style module style.
Step 203, according to the JSON page configuration of the JavaScript object notation of the visual editor, converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
And the JSON page is configured into the configuration of the page by the visual editor according to the JSON specification of the visual editor. The JSON page configuration file is a file suitable for a visual editor. Here, JSON, which is a JavaScript Object Notation (JSON), is an open standard data exchange format based on JavaScript syntax subsets. JSON is text-based, lightweight, and generally considered easy to read/write.
In the embodiment of the application, after acquiring the partial content corresponding to each module in the first abstract syntax tree, the electronic device converts the partial content corresponding to each module into a JSON page configuration file corresponding to a page to be processed according to the JSON page configuration of the visual editor, so that the visual editor processes the page to be processed in an editing preview region of the visual editor based on the JSON page configuration file.
In an implementation application scenario, referring to fig. 3, after the page code file is edited by the visual editor 301, in the case that the business logic of the page is complex, the page code file 4 performs secondary page Development through an Integrated Development Environment (IDE) 302, such as a vscode tool, and then uploads the secondarily developed page code file to a project repository 303, such as a GIT repository. Uploading the VUE file in the page code file of the GIT warehouse, if the page code file subjected to secondary development needs to be processed again, and after the VUE file is processed by the page file conversion method provided by the embodiment of the application, previewing and editing can be performed on the visual editor platform again; therefore, the page file developed by the local IDE tool is realized, secondary editing can be performed in the visual editor, the page development efficiency is improved, and the page development cost is saved.
According to the page file conversion method provided by the embodiment of the application, the obtained VUE file corresponding to the page to be processed is converted into a first abstract syntax tree through a first conversion function; acquiring partial contents corresponding to each module in the first abstract syntax tree; converting part of contents corresponding to each module into a JSON page configuration file corresponding to a page to be processed according to JSON page configuration of a JavaScript object numbered notation of a visual editor, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file; therefore, the problem that the page code file which is developed secondarily in the related technology cannot be previewed and edited on the visual editor platform again is solved, the page file developed by the local IDE tool is realized, secondary editing can be carried out in the visual editor, the page development efficiency is improved, and the page development cost is saved.
The embodiment of the application provides a method for converting a page file, which is applied to an electronic device and shown in fig. 4, and the method comprises the following steps:
step 401, converting the obtained VUE file corresponding to the page to be processed into a first abstract syntax tree through a first conversion function.
And 402, acquiring partial contents corresponding to each module in the first abstract syntax tree.
Wherein, the corresponding partial content of each module includes: the page style module comprises a first part of content corresponding to the page structure module, a second part of content corresponding to the page logic module and a third part of content corresponding to the page style module.
Step 403, according to the page structure configuration in the JSON page configuration, converting the first part of content corresponding to the page structure module in the first abstract syntax tree to obtain a JSON page structure configuration file.
In the embodiment of the present application, referring to fig. 5, in step 403, according to the page structure configuration in the JSON page configuration, the first part of content corresponding to the page structure module in the first abstract syntax tree is converted to obtain a JSON page structure configuration file, which may be implemented by the following steps:
step 4031, the first part of content is converted into a second abstract syntax tree through a second conversion function.
The first conversion function is a conversion function in a JavaScript compiler, and the second conversion function is different from the first conversion function. Illustratively, the second transformation function may be an vue-template-compiler function in a babel compiler. Wherein the second abstract syntax tree is different from the first abstract syntax tree.
Here, the second abstract syntax tree is a tree representation of the abstract syntax structure of the source code in the VUE file, and is used to describe the logical relationship between statements of the source code, each node on the tree represents a structure in the source code, and each tree node corresponds to a source code item. Fig. 6 is a schematic diagram of a second abstract syntax tree in an embodiment of the present application, where the source code in the VUE file is:
Figure BDA0003145990320000071
in this embodiment, the electronic device converts a first part of content corresponding to a page structure module, such as a template module, into a second abstract syntax tree through a second conversion function, such as an vue-template-builder function in a babel compiler.
Step 4032, with the root node in the second abstract syntax tree as a starting point, traversing each node in the second abstract syntax tree according to the sequence traversal order, and acquiring the first node identifier and the first node attribute of each node.
Wherein the nodes in the second abstract syntax tree comprise root nodes.
In the embodiment of the application, after the electronic device converts the first part of content into the second abstract syntax tree through the second conversion function, the root node in the second abstract syntax tree is determined, each node in the second abstract syntax tree is traversed according to the sequence traversal sequence with the root node as a starting point, and the first node identifier and the first node attribute of each node are obtained. And then saving the first node identification and the first node attribute into the JSON object.
4033, generating a JSON page structure configuration file based on the first node identifier of each node, the first node attribute of each node and the page structure configuration.
In this embodiment of the present application, in step 4033, a JSON page structure configuration file is generated based on the first node identifier of each node, the first node attribute of each node, and the page structure configuration, and there are two implementation cases:
in the first case, if there is no child node in a node in the second abstract syntax tree, a JSON page structure configuration file is generated based on the association relationship between nodes in the second abstract syntax tree, the first node identifier of each node, the first node attribute of each node, and the page structure configuration.
In the embodiment of the present application, the association relationship between the nodes is a logical relationship between the nodes in the second abstract syntax tree, and the logical relationship between the nodes includes, but is not limited to, a sibling relationship between the nodes, a parent-child relationship between the nodes, and the like.
In the embodiment of the application, the electronic device determines whether a node in the second abstract syntax tree has a child node, and if it is determined that the node does not have a child node, generates a JSON page structure configuration file based on an association relationship between nodes in the second abstract syntax tree, a first node identifier of each node, a first node attribute of each node, and a page structure configuration.
In the second case, if the node in the second abstract syntax tree has child nodes, traversing all child nodes in the node according to a recursive traversal algorithm, and acquiring a second node identifier and a second node attribute of the child node of each node;
and generating a JSON page structure configuration file based on the incidence relation between the nodes and the child nodes in the second abstract syntax tree, the first node identification and the first node attribute of each node, the second node identification and the second node attribute of the child node of each node and the page structure configuration.
In the embodiment of the application, the electronic device determines whether a node in the second abstract syntax tree has a child node, and traverses all child nodes in the node according to a recursive traversal algorithm if the node is determined to have the child node, so as to obtain the second node identifier and the second node attribute of the child node of each node. And then saving the second node identification and the second node attribute of the child node into a child array of the JSON object. Further, the electronic device outputs a JSON page structure configuration file of the second abstract node tree of the first part of content corresponding to the page structure module based on the association relationship between the nodes and the sub-nodes in the second abstract syntax tree, the first node identifier and the first node attribute of each node, the second node identifier and the second node attribute of the sub-node of each node, and the page structure configuration. Here, the JSON page structure configuration file includes a root node and a branch node of the second abstract node tree, and the description information of each node includes the first node identifier, the first node attribute, and the description information of the child node.
In an achievable application scenario, if the source code in the VUE file is the provided code, the electronic device first converts a first part of content corresponding to the template module into a second abstract syntax tree through a second conversion function; secondly, traversing each node in the second abstract syntax tree by taking a root node in the second abstract syntax tree as a starting point according to the sequence of the hierarchical traversal, and acquiring a first node identifier and a first node attribute of each node; secondly, the electronic equipment judges whether a node in the second abstract syntax tree has a child node or not, if the node is determined to have the child node, all child nodes in the node are traversed according to a recursive traversal algorithm, and a second node identifier and a second node attribute of the child node of each node are obtained; and finally, generating a JSON page structure configuration file based on the first node identification of each node, the first node attribute of each node and the page structure configuration. Here, the partial code in the generated JSON page structure configuration file is as follows:
Figure BDA0003145990320000091
it should be noted that the above-mentioned code is an exemplary partial code in the configuration file of the JSON page structure, and not all the code is shown, so that there is an incomplete place in the code structure.
And step 404, according to the page logic configuration in the JSON page configuration, converting the second part of contents corresponding to the page logic module in the first abstract syntax tree to obtain a JSON page logic configuration file.
In this embodiment of the application, referring to fig. 7, in step 404, according to the page logic configuration in the JSON page configuration, the second part of content corresponding to the page logic module in the first abstract syntax tree is converted to obtain a JSON page logic configuration file, which may be implemented by the following steps:
step 4041, converting the second sub-part content in the second part content based on the object conversion function to obtain the JavaScript object.
The second sub-part content is content included in an export default in the second part content corresponding to the page logic module, for example, script.
Wherein the object conversion function is used for converting the character string into the object type. Illustratively, the object transformation function may be an eval function in a JavaScript function.
In the embodiment of the application, the electronic device obtains second sub-part content in the second part content corresponding to the page logic module, for example, the script, and converts the second sub-part content based on the object conversion function to obtain a JavaScript object, which is referred to as a JS object for short.
Step 4042, obtaining field contents corresponding to the multiple field identifications in the JavaScript object.
In the embodiment of the present application, the plurality of fields may include, but are not limited to, a name of the VUE instance in the VUE file, data, attribute tips, calculation attribute computed, instance methods, and VUE lifecycle.
In the implementation of the application, the electronic device converts the second sub-part content in the second part content based on the object conversion function, and after the JS object is obtained, the field content corresponding to the plurality of field identifiers in the JS object is obtained, that is, the electronic device reads the field content corresponding to the field identifier by formulating the field identifier, so as to map the field content to the target field identifier having a mapping relationship with the field identifier.
Step 4043, determining a target field id in the page logic configuration having a mapping relationship with the field id based on the field mapping table.
In the embodiment of the application, after the field content corresponding to a plurality of field identifiers in the JavaScript object is obtained, a field mapping table is obtained, and a target field identifier having a mapping relationship with the field identifiers in the page logic configuration is determined based on the field mapping table, where a part of the field mapping table is shown in table 1.
Figure BDA0003145990320000101
TABLE 1
It should be noted that, the code corresponding to the target field identification lifeCycle in the page logic configuration is as follows:
'_constructor':'created',
'getDerivedStateFromProps':'beforeUpdate',
'render':”,
'componentDidMount':'mounted',
'componentDidUpdate':'updated',
'componentWillUnmount':'beforeDestroy'
step 4044, writing the field content into the field corresponding to the target field identifier to obtain the JSON page logic configuration file.
In the embodiment of the application, after the electronic device determines the target field identifier having a mapping relation with the field identifier in the page logic configuration based on the field mapping table, the field content is written into the field corresponding to the target field identifier so as to determine the field content corresponding to the target field identifier, and then the JSON page logic configuration file is obtained.
And 405, converting a third part of content corresponding to the page style module in the first abstract syntax tree according to the page style configuration in the JSON page configuration to obtain a JSON page style configuration file.
In the embodiment of the present application, referring to fig. 8, step 405 converts a third part of content corresponding to a page style module in a first abstract syntax tree according to a page style configuration in a JSON page configuration to obtain a JSON page style configuration file, which may be implemented by the following steps:
step 4051, obtain the class identifier in the third part of content.
Step 4052, a target node corresponding to the class identifier in the configuration file of the JSON page structure is obtained.
Step 4053, adding the style content in the third part of content to the page style field in the target node to obtain a JSON page style configuration file.
In an achievable application scenario, the electronic device obtains a class identifier corresponding to a third part of content corresponding to a page style module, such as a style module, searches a target node with the same class identifier as a class identifier of a class or a class name in a property props field in a generated JSON page structure configuration file, and supplements a style content increment in the third part of content to a page style field in the target node in the JSON page structure configuration file to obtain the JSON page style configuration file.
And step 406, generating a JSON page configuration file based on the JSON page structure configuration file, the JSON page logic configuration file and the JSON page style configuration file, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
As can be seen from the above, in the embodiment of the present application, the VUE file corresponding to the page to be processed, which is first acquired by the electronic device, is converted into the first abstract syntax tree through the first conversion function; secondly, determining a first part of content corresponding to a page structure module, a second part of content corresponding to a page logic module and a third part of content corresponding to a page style module in the first abstract syntax tree based on the tag; thirdly, respectively identifying a first part of content corresponding to the page structure module, a second part of content corresponding to the page logic module and a third part of content corresponding to the page style module through corresponding conversion modules, and mapping the first part of content, the second part of content and the third part of content into a JSON file corresponding to the page configuration of the page, so as to finally convert a source code in the VUE file of the page into a JSON page configuration file; therefore, through a user-defined conversion mode, reverse editing is realized in the development process without changing the original page, namely, secondary editing is carried out in the visual editor, the page development efficiency is improved, and the page development cost is saved.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present application provides a device for converting a page file, where the device for converting a page file can be applied to a method for converting a page file provided in embodiments corresponding to fig. 2, 4 to 5, and 7 to 8, and as shown in fig. 9, the device for converting a page file 9 includes:
a first conversion module 901, configured to convert the obtained VUE file corresponding to the page to be processed into a first abstract syntax tree through a first conversion function;
an obtaining module 902, configured to obtain partial content corresponding to each module in the first abstract syntax tree;
and the second conversion module 903 is configured to convert part of the content corresponding to each module into a JSON page configuration file corresponding to the page to be processed according to the JSON page configuration of the JavaScript object notation JSON of the visual editor, so that the visual editor processes the page to be processed in the editing preview region of the visual editor based on the JSON page configuration file.
In other embodiments of the present application, the second conversion module 903 is further configured to convert, according to a page structure configuration in the JSON page configuration, a first part of content corresponding to a page structure module in the first abstract syntax tree, to obtain a JSON page structure configuration file; converting a second part of content corresponding to the page logic module in the first abstract syntax tree according to the page logic configuration in the JSON page configuration to obtain a JSON page logic configuration file; converting a third part of content corresponding to the page style module in the first abstract syntax tree according to the page style configuration in the JSON page configuration to obtain a JSON page style configuration file; and the generating module is used for generating the JSON page configuration file based on the JSON page structure configuration file, the JSON page logic configuration file and the JSON page style configuration file.
In other embodiments of the present application, the second conversion module 903 is further configured to convert the first part of content into a second abstract syntax tree through a second conversion function; the obtaining module 902 is further configured to traverse each node in the second abstract syntax tree according to a sequence of hierarchical traversal with a root node in the second abstract syntax tree as a starting point, and obtain a first node identifier and a first node attribute of each node, where the node in the second abstract syntax tree includes the root node; and the generating module is further used for generating a JSON page structure configuration file based on the first node identification of each node, the first node attribute of each node and the page structure configuration.
In other embodiments of the present application, the generating module is further configured to generate a JSON page structure configuration file based on an association relationship between nodes in the second abstract syntax tree, a first node identifier of each node, a first node attribute of each node, and a page structure configuration if there is no child node in a node in the second abstract syntax tree.
In other embodiments of the present application, the obtaining module 902 is further configured to, if there are child nodes in a node in the second abstract syntax tree, traverse all the child nodes in the node according to a recursive traversal algorithm, and obtain a second node identifier and a second node attribute of the child node of each node; and the generating module is further used for generating a JSON page structure configuration file based on the incidence relation between the nodes and the sub-nodes in the second abstract syntax tree, the first node identification and the first node attribute of each node, the second node identification and the second node attribute of the sub-node of each node and the page structure configuration.
In other embodiments of the present application, the second conversion module 903 is further configured to convert, based on the object conversion function, a second sub-portion content in the second portion content to obtain a JavaScript object; the obtaining module 902 is further configured to obtain field contents corresponding to a plurality of field identifiers in the JavaScript object; the generation module is also used for determining a target field identifier which has a mapping relation with the field identifier in the page logic configuration based on the field mapping table; and writing the field content into a field corresponding to the target field identifier to obtain a JSON page logic configuration file.
In other embodiments of the present application, the obtaining module 902 is further configured to obtain a class identifier in the third part of content; acquiring a target node corresponding to the class identifier in the JSON page structure configuration file; and the generation module is also used for adding the style content in the third part of content into the page style field in the target node to obtain the JSON page style configuration file.
An embodiment of the present application provides an electronic device, which may be applied to the method for converting a page file provided in the embodiments corresponding to fig. 2, 4 to 5, and 7 to 8, and as shown in fig. 10, the electronic device (the electronic device 10 in fig. 10 corresponds to the page file converting apparatus 9 in fig. 9) includes: a processor 1001, a memory 1002, and a communication bus 1003, wherein:
the communication bus 1003 is used for realizing communication connection between the processor 1001 and the memory 1002;
the processor 1001 is configured to execute a pagefile conversion program stored in the memory 1002 to implement the following steps:
converting the VUE file corresponding to the acquired page to be processed into a first abstract syntax tree through a first conversion function;
acquiring partial contents corresponding to each module in the first abstract syntax tree;
and according to the JSON page configuration of the JavaScript object notation of the visual editor, converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
In other embodiments of the present application, the processor 1001 is configured to execute the pagefile converting program stored in the memory 1002 to implement the following steps:
converting a first part of content corresponding to a page structure module in a first abstract syntax tree according to the page structure configuration in the JSON page configuration to obtain a JSON page structure configuration file; converting a second part of content corresponding to the page logic module in the first abstract syntax tree according to the page logic configuration in the JSON page configuration to obtain a JSON page logic configuration file; converting a third part of content corresponding to the page style module in the first abstract syntax tree according to the page style configuration in the JSON page configuration to obtain a JSON page style configuration file; and generating the JSON page configuration file based on the JSON page structure configuration file, the JSON page logic configuration file and the JSON page style configuration file.
In other embodiments of the present application, the processor 1001 is configured to execute the pagefile converting program stored in the memory 1002 to implement the following steps:
converting the first part of content into a second abstract syntax tree through a second conversion function; traversing each node in the second abstract syntax tree according to the sequence of the sequence traversal by taking the root node in the second abstract syntax tree as a starting point to obtain a first node identifier and a first node attribute of each node; and generating a JSON page structure configuration file based on the first node identification of each node, the first node attribute of each node and the page structure configuration.
In other embodiments of the present application, the processor 1001 is configured to execute the pagefile converting program stored in the memory 1002 to implement the following steps:
and if the nodes in the second abstract syntax tree have no child nodes, generating a JSON page structure configuration file based on the incidence relation among the nodes in the second abstract syntax tree, the first node identification of each node, the first node attribute of each node and the page structure configuration.
In other embodiments of the present application, the processor 1001 is configured to execute the pagefile converting program stored in the memory 1002 to implement the following steps:
if the node in the second abstract syntax tree has child nodes, traversing all the child nodes in the node according to a recursive traversal algorithm, and acquiring a second node identifier and a second node attribute of the child node of each node; and generating a JSON page structure configuration file based on the incidence relation between the nodes and the child nodes in the second abstract syntax tree, the first node identification and the first node attribute of each node, the second node identification and the second node attribute of the child node of each node and the page structure configuration.
In other embodiments of the present application, the processor 1001 is configured to execute the pagefile converting program stored in the memory 1002 to implement the following steps:
converting second sub-part contents in the second part contents based on the object conversion function to obtain a JavaScript object; acquiring field contents corresponding to a plurality of field identifications in the JavaScript object; determining a target field identifier which has a mapping relation with the field identifier in the page logic configuration based on the field mapping table; and writing the field content into a field corresponding to the target field identifier to obtain a JSON page logic configuration file.
In other embodiments of the present application, the processor 1001 is configured to execute the pagefile converting program stored in the memory 1002 to implement the following steps:
acquiring a class identifier in the third part of content; acquiring a target node corresponding to the class identifier in the JSON page structure configuration file; and adding the style content in the third part of content into the page style field in the target node to obtain a JSON page style configuration file.
Embodiments of the application provide a computer storage medium storing one or more programs executable by one or more processors to perform the steps of:
converting the VUE file corresponding to the acquired page to be processed into a first abstract syntax tree through a first conversion function;
acquiring partial contents corresponding to each module in the first abstract syntax tree;
and according to the JSON page configuration of the JavaScript object notation of the visual editor, converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
converting a first part of content corresponding to a page structure module in a first abstract syntax tree according to the page structure configuration in the JSON page configuration to obtain a JSON page structure configuration file; converting a second part of content corresponding to the page logic module in the first abstract syntax tree according to the page logic configuration in the JSON page configuration to obtain a JSON page logic configuration file; converting a third part of content corresponding to the page style module in the first abstract syntax tree according to the page style configuration in the JSON page configuration to obtain a JSON page style configuration file; and generating the JSON page configuration file based on the JSON page structure configuration file, the JSON page logic configuration file and the JSON page style configuration file.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
converting the first part of content into a second abstract syntax tree through a second conversion function; traversing each node in the second abstract syntax tree according to the sequence of the sequence traversal by taking the root node in the second abstract syntax tree as a starting point to obtain a first node identifier and a first node attribute of each node; and generating a JSON page structure configuration file based on the first node identification of each node, the first node attribute of each node and the page structure configuration.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and if the nodes in the second abstract syntax tree have no child nodes, generating a JSON page structure configuration file based on the incidence relation among the nodes in the second abstract syntax tree, the first node identification of each node, the first node attribute of each node and the page structure configuration.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
if the node in the second abstract syntax tree has child nodes, traversing all the child nodes in the node according to a recursive traversal algorithm, and acquiring a second node identifier and a second node attribute of the child node of each node; and generating a JSON page structure configuration file based on the incidence relation between the nodes and the child nodes in the second abstract syntax tree, the first node identification and the first node attribute of each node, the second node identification and the second node attribute of the child node of each node and the page structure configuration.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
converting second sub-part contents in the second part contents based on the object conversion function to obtain a JavaScript object; acquiring field contents corresponding to a plurality of field identifications in the JavaScript object; determining a target field identifier which has a mapping relation with the field identifier in the page logic configuration based on the field mapping table; and writing the field content into a field corresponding to the target field identifier to obtain a JSON page logic configuration file.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring a class identifier in the third part of content; acquiring a target node corresponding to the class identifier in the JSON page structure configuration file; and adding the style content in the third part of content into the page style field in the target node to obtain a JSON page style configuration file.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
The computer storage medium/Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), and the like; but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment of the present application" or "a previous embodiment" or "some embodiments" or "some implementations" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the preceding embodiments" or "some implementations" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
It should be noted that the drawings in the embodiments of the present application are only for illustrating schematic positions of the respective devices on the terminal device, and do not represent actual positions in the terminal device, actual positions of the respective devices or the respective areas may be changed or shifted according to actual conditions (for example, a structure of the terminal device), and a scale of different parts in the terminal device in the drawings does not represent an actual scale.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for converting a page file, the method comprising:
converting the VUE file corresponding to the acquired page to be processed into a first abstract syntax tree through a first conversion function;
acquiring partial contents corresponding to each module in the first abstract syntax tree;
and according to the JSON page configuration of the JavaScript object notation of the visual editor, converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
2. The method according to claim 1, wherein the converting the partial contents corresponding to the modules into the JSON page configuration file corresponding to the page to be processed according to the JSON page configuration of the visual editor comprises:
converting a first part of content corresponding to a page structure module in the first abstract syntax tree according to the page structure configuration in the JSON page configuration to obtain a JSON page structure configuration file;
according to the page logic configuration in the JSON page configuration, converting a second part of content corresponding to a page logic module in the first abstract syntax tree to obtain a JSON page logic configuration file;
converting a third part of content corresponding to the page style module in the first abstract syntax tree according to the page style configuration in the JSON page configuration to obtain a JSON page style configuration file;
and generating the JSON page configuration file based on the JSON page structure configuration file, the JSON page logic configuration file and the JSON page style configuration file.
3. The method according to claim 2, wherein the converting a first part of content corresponding to a page structure module in the abstract syntax tree according to a page structure configuration in the JSON page configuration to obtain a JSON page structure configuration file comprises:
converting the first part of content into a second abstract syntax tree through a second conversion function;
traversing each node in the second abstract syntax tree according to a sequence of hierarchical traversal by taking a root node in the second abstract syntax tree as a starting point to obtain a first node identifier and a first node attribute of each node, wherein the node in the second abstract syntax tree comprises the root node;
and generating the JSON page structure configuration file based on the first node identification of each node, the first node attribute of each node and the page structure configuration.
4. The method of claim 3, wherein the generating the JSON page structure configuration file based on the first node identification of each node, the first node attribute of each node, and the page structure configuration comprises:
and if the nodes in the second abstract syntax tree have no child nodes, generating the JSON page structure configuration file based on the incidence relation among the nodes in the second abstract syntax tree, the first node identification of each node, the first node attribute of each node and the page structure configuration.
5. The method of claim 3, wherein the generating the JSON page structure configuration file based on the first node identification of each node, the first node attribute of each node, and the page structure configuration comprises:
if the node in the second abstract syntax tree has child nodes, traversing all the child nodes in the node according to a recursive traversal algorithm, and acquiring a second node identifier and a second node attribute of the child node of each node;
and generating the JSON page structure configuration file based on the incidence relation between the nodes and the child nodes in the second abstract syntax tree, the first node identification and the first node attribute of each node, the second node identification and the second node attribute of the child nodes of each node and the page structure configuration.
6. The method according to claim 2, wherein the converting a second part of content corresponding to a page logic module in the abstract syntax tree according to a page logic configuration in the JSON page configuration to obtain a JSON page logic configuration file comprises:
converting second sub-part contents in the second part contents based on an object conversion function to obtain a JavaScript object;
acquiring field contents corresponding to a plurality of field identifications in the JavaScript object;
determining a target field identifier having a mapping relation with the field identifier in the page logic configuration based on a field mapping table;
and writing the field content into a field corresponding to the target field identifier to obtain the JSON page logic configuration file.
7. The method according to claim 2, wherein the converting a third part of content corresponding to a page style module in the abstract syntax tree according to a page style configuration in the JSON page configuration to obtain a JSON page style configuration file comprises:
acquiring a class identifier in the third part of content;
acquiring a target node corresponding to the class identifier in the JSON page structure configuration file;
and adding the style content in the third part of content into the page style field in the target node to obtain the JSON page style configuration file.
8. A pagefile converting apparatus, comprising:
the first conversion module is used for converting the obtained VUE file corresponding to the page to be processed into a first abstract syntax tree through a first conversion function;
the acquisition module is used for acquiring partial contents corresponding to each module in the first abstract syntax tree;
and the second conversion module is used for converting part of contents corresponding to each module into a JSON page configuration file corresponding to the page to be processed according to JSON page configuration of a JavaScript object notation of the visual editor, so that the visual editor processes the page to be processed in an editing preview area of the visual editor based on the JSON page configuration file.
9. An electronic device, characterized in that the electronic device comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the page file conversion program stored in the memory to realize the page file conversion method according to any one of claims 1 to 7.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the pagefile converting method according to any one of claims 1 to 7.
CN202110750455.5A 2021-07-02 2021-07-02 Page file conversion method and device, electronic equipment and storage medium Pending CN113420532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110750455.5A CN113420532A (en) 2021-07-02 2021-07-02 Page file conversion method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110750455.5A CN113420532A (en) 2021-07-02 2021-07-02 Page file conversion method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113420532A true CN113420532A (en) 2021-09-21

Family

ID=77721446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110750455.5A Pending CN113420532A (en) 2021-07-02 2021-07-02 Page file conversion method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113420532A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114077430A (en) * 2021-11-16 2022-02-22 上海上实龙创智能科技股份有限公司 Interface generation method and device, electronic equipment and storage medium
CN114489613A (en) * 2021-12-22 2022-05-13 阿里巴巴(中国)有限公司 Program development assisting method and device and electronic equipment
CN114995939A (en) * 2022-06-17 2022-09-02 杭州安恒信息技术股份有限公司 Front-end page self-adaption method, device, equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190310835A1 (en) * 2017-03-28 2019-10-10 Tencent Technology (Shenzhen) Company Limited Application development method, tool, and device, and storage medium
CN110554874A (en) * 2019-09-12 2019-12-10 北京百度网讯科技有限公司 Method and device for reusing webpage components of SaaS platform
CN110737466A (en) * 2019-10-16 2020-01-31 南京航空航天大学 Source code coding sequence representation method based on static program analysis
CN111506298A (en) * 2020-03-10 2020-08-07 南京行者易智能交通科技有限公司 Method for carrying out interface visual configuration based on JSON object
CN111506310A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Method, device and equipment for generating multi-platform style and storage medium
CN111966336A (en) * 2020-07-24 2020-11-20 苏州浪潮智能科技有限公司 Page generation method and device based on VUE and visual graphic operation
DE202020105389U1 (en) * 2019-09-28 2020-12-11 Tongcheng Network Technology Co., Ltd. Front-end framework, storage medium and electronic device
CN112114807A (en) * 2020-09-28 2020-12-22 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN112328246A (en) * 2020-11-03 2021-02-05 腾讯科技(深圳)有限公司 Page component generation method and device, computer equipment and storage medium
CN112433799A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Page generation method, device, equipment and medium
CN112579068A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Code generation method, device, storage medium and equipment
CN113031932A (en) * 2021-03-11 2021-06-25 腾讯科技(深圳)有限公司 Project development method and device, electronic equipment and storage medium
CN113050935A (en) * 2021-03-17 2021-06-29 平安普惠企业管理有限公司 Method and device for generating mixed object, computing equipment and computer readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190310835A1 (en) * 2017-03-28 2019-10-10 Tencent Technology (Shenzhen) Company Limited Application development method, tool, and device, and storage medium
CN110554874A (en) * 2019-09-12 2019-12-10 北京百度网讯科技有限公司 Method and device for reusing webpage components of SaaS platform
DE202020105389U1 (en) * 2019-09-28 2020-12-11 Tongcheng Network Technology Co., Ltd. Front-end framework, storage medium and electronic device
CN112579068A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Code generation method, device, storage medium and equipment
CN110737466A (en) * 2019-10-16 2020-01-31 南京航空航天大学 Source code coding sequence representation method based on static program analysis
CN111506298A (en) * 2020-03-10 2020-08-07 南京行者易智能交通科技有限公司 Method for carrying out interface visual configuration based on JSON object
CN111506310A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Method, device and equipment for generating multi-platform style and storage medium
CN111966336A (en) * 2020-07-24 2020-11-20 苏州浪潮智能科技有限公司 Page generation method and device based on VUE and visual graphic operation
CN112114807A (en) * 2020-09-28 2020-12-22 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN112328246A (en) * 2020-11-03 2021-02-05 腾讯科技(深圳)有限公司 Page component generation method and device, computer equipment and storage medium
CN112433799A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Page generation method, device, equipment and medium
CN113031932A (en) * 2021-03-11 2021-06-25 腾讯科技(深圳)有限公司 Project development method and device, electronic equipment and storage medium
CN113050935A (en) * 2021-03-17 2021-06-29 平安普惠企业管理有限公司 Method and device for generating mixed object, computing equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
廖兴, 尹俊文, 蔡放: "基于Java语言的抽象语法树的创建与遍历", 长沙大学学报, no. 04, 25 December 2004 (2004-12-25) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114077430A (en) * 2021-11-16 2022-02-22 上海上实龙创智能科技股份有限公司 Interface generation method and device, electronic equipment and storage medium
CN114489613A (en) * 2021-12-22 2022-05-13 阿里巴巴(中国)有限公司 Program development assisting method and device and electronic equipment
CN114995939A (en) * 2022-06-17 2022-09-02 杭州安恒信息技术股份有限公司 Front-end page self-adaption method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10579344B2 (en) Converting visual diagrams into code
CN113420532A (en) Page file conversion method and device, electronic equipment and storage medium
WO2020140940A1 (en) Code generation method and apparatus, and device and storage medium
CN107423391B (en) Information extraction method of webpage structured data
CN110515896B (en) Model resource management method, model file manufacturing method, device and system
CN112463991B (en) Historical behavior data processing method and device, computer equipment and storage medium
CN112100550A (en) Page construction method and device
CN106776495B (en) Document logic structure reconstruction method
CN109460220A (en) The predefined code generating method of message, device, electronic equipment and storage medium
CN113238740B (en) Code generation method, code generation device, storage medium and electronic device
CN105446986A (en) Web page processing method and device
CN112069456A (en) Model file generation method and device, electronic equipment and storage medium
CN112527291A (en) Webpage generation method and device, electronic equipment and storage medium
CN113392068A (en) Data processing method, device and system
CN112328246A (en) Page component generation method and device, computer equipment and storage medium
CN109325217B (en) File conversion method, system, device and computer readable storage medium
CN110704432A (en) Data index establishing method and device, readable storage medium and electronic equipment
CN111782820A (en) Knowledge graph creating method and device, readable storage medium and electronic equipment
CN110795915A (en) Method, system, equipment and computer-readable storage medium for modifying xml file in batch
CN112463896A (en) Archive cataloging data processing method and device, computing equipment and storage medium
CN112988278A (en) Meta file modification method and device of resource file, electronic equipment and storage medium
Chen et al. Automatic Generation of Semantic 3D City Models from Conceptual Massing Models
US20240004620A1 (en) Automated generation of web applications based on wireframe metadata generated from user requirements
CN111401005A (en) Text conversion method and device and readable storage medium
US11681545B2 (en) Reducing complexity of workflow graphs through vertex grouping and contraction

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