CN112948734A - Project style integration and adaptation method, device, equipment and storage medium - Google Patents
Project style integration and adaptation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112948734A CN112948734A CN202110209009.3A CN202110209009A CN112948734A CN 112948734 A CN112948734 A CN 112948734A CN 202110209009 A CN202110209009 A CN 202110209009A CN 112948734 A CN112948734 A CN 112948734A
- Authority
- CN
- China
- Prior art keywords
- file
- project
- style
- project file
- merged
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the field of research and development management, and discloses a project style integration and adaptation method, a device, equipment and a storage medium, which are used for project style integration at the front end, wherein the method comprises the following steps: acquiring a new version project file and an old version project file in a front-end project; merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project integrated by project styles; compiling a configuration file according to the project information of the new version project file; rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file; and converting the merged project file according to the second conversion script file to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation. In addition, the invention also relates to a blockchain technology, and the new version project file and the old version project file can be stored in the blockchain.
Description
Technical Field
The invention relates to the field of research and development management, in particular to a project style integration and adaptation method, device, equipment and storage medium.
Background
The front-end page consists of an HTML structural layer, a CSS representation layer and a JS behavior layer. The Css is the style of the front-end interface, the design draft needs to be highly restored, and different Css adaptation modes have different effects. Common Css adaptation modes are divided into a PC end and a mobile end, wherein the PC end includes: 1. fixing the layout; 2. media queries switch different css files according to screen resolution. The mobile terminal includes: 1. js and rem layouts, 3, rem + VW layouts, 4, percent layouts.
In practical application, the project always has the problem of iterative update, and the alternation of new technology can generate different adaptation modes. Generally, different projects use the same adaptation mode, which is determined when the framework is built. However, some project technologies are too old, new technology iteration is needed, and a transition period for new and old projects to coexist exists, which causes that it is troublesome to use a new adaptation mode in the old projects or to make the new projects compatible with the old adaptation mode, the currently provided style plug-ins are all targeted, and 2 or more modes compatible with the new projects are usually modified manually by developers, which is time-consuming and easy to make mistakes.
Disclosure of Invention
The invention mainly aims to solve the technical problem of poor compatibility of the existing item style adaptation mode caused by iterative updating.
The invention provides a project style integration and adaptation method in a first aspect, which comprises the following steps:
acquiring a new version project file and an old version project file in a front-end page, wherein the new version project file is a reference version project integrated by project styles;
merging the new version project file and the old version project file to obtain a merged project file;
compiling a configuration file according to the project information of the new version project file;
rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file;
and converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation.
Optionally, in a first implementation manner of the first aspect of the present invention, the rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file includes:
reading the configuration file to obtain a matching character string;
according to the matched character string, regularly matching the character string in the first conversion script file;
and dynamically replacing the character strings according to the configuration file to obtain a second conversion script file.
Optionally, in a second implementation manner of the first aspect of the present invention, the regularly matching, according to the matching character string, a character string in the first conversion script file includes:
analyzing the matched character string, and determining the matching type of the matched character string according to a preset segment mode separator and a character string format;
setting a matching type identifier according to the matching type, and dividing the matching character string into a plurality of sub character strings according to the matching type identifier;
determining a regular expression generation mode for each sub-character string, connecting phrases identified by preset phrase marks in the sub-character strings in different connection modes according to the regular expression generation modes to generate a regular expression of the sub-character strings, and obtaining a regular expression list containing at least one regular expression of the sub-character strings;
and matching the character strings to be matched in the first conversion script according to the matching type identification to obtain a matching result.
Optionally, in a third implementation manner of the first aspect of the present invention, the analyzing the matching character string, and determining the matching type of the matching character string according to the preset segment pattern separator and the character string format includes:
analyzing the matched character string, and judging whether the format of the matched character string is repeated by taking the segment mode separator as a boundary;
if yes, the matching type is a segment mode;
if not, the matching type is a row mode.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the regular expression generation patterns include a column pattern and a non-column pattern;
the determining a regular expression generation mode for each sub-character string, and connecting phrases identified by a predetermined phrase mark in the sub-character string in different connection modes according to the regular expression generation mode to generate a regular expression of the sub-character string, and obtaining a regular expression list including at least one regular expression of the sub-character string includes:
judging a regular expression generation mode of the substring;
if the regular expression generating mode is a column mode, generating a sub-character string regular expression by using a connection regular expression phrase representing at least one blank character;
if the regular expression generating mode is a non-column mode, generating a sub-character string regular expression by using a connection regular expression which represents any character of at least one non-line-feed character;
and obtaining a regular expression list containing at least one regular expression of the substrings according to the regular expressions of the substrings of each substring.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the converting, according to the second conversion script file, an old version project file in the merged project file, integrating all projects in the merged project file into a same project style with reference to the new version project file to obtain a new merged project file, and inputting the new merged project file into a corresponding device for adaptation includes:
reading the merging project file, acquiring the design size of the visual draft of the merging project file, and configuring the conversion standard of a preset style conversion plug-in according to the design size;
converting the old version project file in the merged project file according to the conversion reference and the second conversion script file, and integrating all projects in the merged project file into the same project style by taking the new version project file as the reference to obtain a new merged project file;
and inputting the new merging project file into corresponding equipment for adaptation.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the converting, according to the conversion reference and the second conversion script file, an old version project file in the merged project file, and integrating all projects in the merged project file into a same project style with the new version project file as a reference to obtain a new merged project file includes:
reading the style file of the new version project file in the merged project file, and acquiring style information through regular matching;
converting the style information into a style type preset in the second conversion script through the second conversion script, and writing the style type into the style file;
integrating the style files of all the projects in the merged project file into the same style file by taking the converted style file of the new version project file as a reference;
and compiling all the updated style files through the style conversion plug-in according to the conversion standard to obtain a new merging project file.
The second aspect of the present invention provides an item style integration and adaptation apparatus, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a new version project file and an old version project file in a front-end page, and the new version project file is a reference version project integrated by project styles;
the merging module is used for merging the new version project file and the old version project file to obtain a merged project file; the file compiling module is used for compiling a configuration file according to the project information of the new version project file;
the rewriting module is used for rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file;
and the conversion module is used for converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation.
Optionally, in a first implementation manner of the second aspect of the present invention, the file writing module includes:
the reading unit is used for reading the configuration file to obtain a matching character string;
the regular matching unit is used for regularly matching the character strings in the first conversion script file according to the matched character strings;
and the replacing unit is used for dynamically replacing the character strings according to the configuration file to obtain a second conversion script file.
Optionally, in a second implementation manner of the second aspect of the present invention, the regular matching unit includes:
the analysis subunit is used for analyzing the matched character string and determining the matching type of the matched character string according to a preset segment mode separator and a character string format;
the segmentation subunit is used for setting a matching type identifier according to the matching type and segmenting the matching character string into a plurality of sub-character strings according to the matching type identifier;
the connection subunit is used for determining a regular expression generation mode for each sub-character string, connecting phrases identified by preset phrase marks in the sub-character strings in different connection modes according to the regular expression generation modes to generate a sub-character string regular expression, and obtaining a regular expression list containing at least one sub-character string regular expression;
and the matching subunit is used for matching the character strings to be matched in the first conversion script according to the matching type identifier to obtain a matching result.
Optionally, in a third implementation manner of the second aspect of the present invention, the parsing subunit is specifically configured to:
analyzing the matched character string, and judging whether the format of the matched character string is repeated by taking the segment mode separator as a boundary;
if yes, the matching type is a segment mode;
if not, the matching type is a row mode.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the regular expression generation patterns include a column pattern and a non-column pattern; the linker unit is specifically configured to:
judging a regular expression generation mode of the substring;
if the regular expression generating mode is a column mode, generating a sub-character string regular expression by using a connection regular expression phrase representing at least one blank character;
if the regular expression generating mode is a non-column mode, generating a sub-character string regular expression by using a connection regular expression which represents any character of at least one non-line-feed character;
and obtaining a regular expression list containing at least one regular expression of the substrings according to the regular expressions of the substrings of each substring.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the conversion module includes:
the reading unit is used for reading the merging project file, acquiring the design size of the visual draft of the merging project file, and configuring the conversion standard of the preset style conversion plug-in according to the design size;
a file obtaining unit, configured to convert an old version project file in the merged project file according to the conversion reference and the second conversion script file, and integrate all projects in the merged project file into a same project style with the new version project file as a reference, so as to obtain a new merged project file;
and the adaptation unit is used for inputting the new merging project file into corresponding equipment for adaptation.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the file obtaining unit is specifically configured to:
reading the style file of the new version project file in the merged project file, and acquiring style information through regular matching;
converting the style information into a style type preset in the second conversion script through the second conversion script, and writing the style type into the style file;
integrating the style files of all the projects in the merged project file into the same style file by taking the converted style file of the new version project file as a reference;
and compiling all the updated style files through the style conversion plug-in according to the conversion standard to obtain a new merging project file.
The third aspect of the present invention provides a project style integration adaptation apparatus, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor calls the instructions in the memory to cause the project style integration adaptation device to perform the steps of the project style integration adaptation method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the project style integration adaptation method described above.
According to the technical scheme, a new version project file and an old version project file in a front-end project are obtained; merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project integrated by project styles; compiling a configuration file according to the project information of the new version project file; rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file; and converting the merged project file according to the second conversion script file to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation. The invention realizes the configurability of the script by associating the script content with the configuration file, supports all conversion rules of the project, including the self-defined rule, and greatly improves the development efficiency and the accuracy. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
Drawings
FIG. 1 is a diagram of a first embodiment of a project style integration adaptation method according to an embodiment of the present invention;
FIG. 2 is a diagram of a second embodiment of a project style integration adaptation method according to an embodiment of the present invention;
FIG. 3 is a diagram of a third embodiment of a project style integration adaptation method according to an embodiment of the present invention;
FIG. 4 is a diagram of a fourth embodiment of a project style integration adaptation method according to an embodiment of the present invention;
FIG. 5 is a diagram of a fifth embodiment of a project style integration adaptation method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an embodiment of an item style integration adaptation apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another embodiment of an item style integration adapting device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an embodiment of an item style integration adapting device in an embodiment of the present invention.
Detailed Description
According to the technical scheme, a new version project file and an old version project file in a front-end project are obtained; merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project integrated by project styles; compiling a configuration file according to the project information of the new version project file; rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file; and converting the merged project file according to the second conversion script file to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation. The invention realizes the configurability of the script by associating the script content with the configuration file, supports all conversion rules of the project, including the self-defined rule, and greatly improves the development efficiency and the accuracy. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a detailed flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of the project style integration and adaptation method in the embodiment of the present invention includes:
101. acquiring a new version project file and an old version project file in a front-end project;
it is to be understood that the execution subject of the present invention may be a project style integration adaptation apparatus, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
It is emphasized that, in order to ensure the privacy and security of data, the new version project file and the old version project file can be stored in the nodes of a blockchain.
102. Merging the new version project file and the old version project file to obtain a merged project file;
in practical application, the items are front-end items which exist in the form of front-end files and comprise an HTML structural layer, a CSS representation layer and a JS behavior layer, front-end pages of a PC end and a mobile end generally comprise the HTML structural layer, the CSS representation layer and the JS behavior layer, wherein CSS is the item style of a front-end interface, generally, the item style of the front-end page can be continuously updated and iterated, due to the continuous updating and iterating of the technology, different item style adaptation modes can be generated, for example, for the PC end, a writing method with a fixed layout can be initially set, the writing method is an early adaptation mode and cannot be adjusted according to the sizes of different devices and browsers, different CSS files can be switched according to the resolution of a screen inquired by media, different page layouts can be carried out according to different CSS files, and for the mobile end, the layout comprises media inquiry and rem layout, Js and rem layouts, rem + VW layouts, and percentage layouts.
In this embodiment, the merging needs to be manually merged, mainly involving frame changes of codes, and only self merging can be developed, and in a complex situation, many modules may need to be split and recombined according to a new project specification, and simply, the merging may also be directly copied.
In this embodiment, because different adaptation modes appear in the replacement of new and old technologies, the same adaptation mode is generally used in the iteration process of a project, which is determined during the framework construction, but in the iteration process, the technologies of some projects are outdated, which necessitates the new technology to be used for iteration, at this time, the project using the outdated technology is an old project, the new technology is used as a new project, in the actual application, there is a transition stage in which the new project and the old project coexist, at this time, merging the old merged project files into the new project according to the project specification is manual merging, the project merging involves the framework change of codes, and only self merging can be developed, complicated situations may require splitting into a plurality of modules to be recombined according to the new project specification, and simple situations may also include directly copying, because the new project uses the new project adaptation mode and technology, therefore, the old item is converted mainly by using the new item as a reference item.
103. Compiling a configuration file according to the project information of the new version project file;
in practical application, taking a mobile terminal as an example, the current main framework of the mobile terminal is vue and acts, the main style adaptation mode adopts flexible. js and rem layout and webpack packing, and the item style is automatically converted to a different terminal device through a style conversion plug-in px2rem, for example, the design vision of a general mobile terminal mainly takes the design vision height of iphone6 as the standard, the size can be automatically converted into a corresponding rem unit according to the size of a design vision manuscript through the style conversion plug-in px2rem, and the font sizes of different html root elements generated by different terminals are combined, so that the perfect compatibility effect of a set of design manuscript in different devices is realized, and in the embodiment, the new project adaptation mode can be taken as the new project adaptation mode
Js + px + px2rem is used as a reference, the conversion of the style adaptation mode of the old project is carried out, meanwhile, according to different requirements, adaptation modes except the js + px + px2rem can be used, different configuration files are formed in different adaptation modes, different conversion scripts are rewritten through the configuration files, and the conversion script files are prevented from being rewritten.
In this embodiment, the process of writing the configuration file may be performed before the rewriting process of the conversion script is performed, except after the new item and the old item are merged, or before the new item and the old item are merged, and the method of writing the configuration file may be to automatically read a new object style reference and write the new object style reference with a unit, and then automatically write the writing rule into the script, but the reference for writing some items is hidden, and at this time, the method may be performed manually, and is not limited in this method. In this embodiment, the unit is a basic unit, including 1, px is a unit commonly used in the design of our web page, and is also a basic unit; 2. rpx is the size unit that the wechat applet solves for the adaptive screen size; 3. a multiple unit of the html font size of the rem root element; 4. one percent of the width of the vw window; 5. em font size in multiple units; 6. % relative to parent element; 7. one percent of the height of the vh window; 8. one percent of the smaller of the vm window width or height.
104. Rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file;
in this embodiment, the configuration file mainly converts the style conversion script according to the style adaptation modes of different new items, so as to avoid rewriting the conversion script file each time a new item is encountered and a different style adaptation mode is used, and mainly by reading the content in the configuration file through the node after the configuration file is written, mainly through the fs module of node js, all operations related to the file in node js are in the fs module, and the fs module of node js provides three methods of readFile, read and createredstream for the reading operation, which is not limited in the present invention. By reading the configuration content in the configuration file and replacing the conversion rule in the conversion script according to the configuration dynamic state, the project accessed to the script directly generates a corresponding style file through the configuration file, and the project can be accessed without strong association.
In this embodiment, an env configuration file is newly created in the root directory, a cssmerge.js conversion script file is newly created in the built directory, and the cssmerge.js conversion script file is converted according to the configuration file to obtain a new conversion script file.
105. And converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation.
In this embodiment, an execution command of the conversion script is inserted into the package of the project configuration file without affecting the original construction, where the execution command of the conversion script is as follows, and one of the following commands may be used, and the repeated operation has no effect:
js "// conversion is performed separately;
"devcss", npm run cssmerge & npm run dev "",// operation item currently converted;
"build dcs": npm run cssmerge & npm run build "// packaging item currently converted;
after the execution command is executed, the sword door is operated and constructed, the style conversion can be automatically carried out, and the converted merged project file is output to the corresponding device, so that the adaptation can be completed. Wherein, equipment includes PC end and removes the end, and the Css adaptation mode that removes end and PC end is different, the PC end: 1. fixed layout, earlier writing methods, are not compatible with device and browser size 2, media queries switch different css files according to screen resolution. A mobile terminal: 1. js and rem layouts, 3, rem + VW layouts, 4, percent layouts. The terminal type needing adaptation can be determined according to the cs adaptation mode in the merged project file, so that the terminal firstly merges the function of project file design.
In the embodiment, a new version project file and an old version project file in a front-end project are obtained; merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project integrated by project styles; compiling a configuration file according to the project information of the new version project file; rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file; and converting the merged project file according to the second conversion script file to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation. The invention realizes the configurability of the script by associating the script content with the configuration file, supports all conversion rules of the project, including the self-defined rule, and greatly improves the development efficiency and the accuracy. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
Referring to fig. 2, a second embodiment of the project style integration and adaptation method according to the embodiment of the present invention includes:
201. acquiring a new version project file and an old version project file in a front-end project;
202. merging the new version project file and the old version project file to obtain a merged project file;
203. compiling a configuration file according to the project information of the new version project file;
204. reading the configuration file to obtain a matching character string;
205. according to the matched character strings, the character strings in the first conversion script file are regularly matched;
206. dynamically replacing the character strings according to the configuration file to obtain a second conversion script file;
in this embodiment, script conversion is mainly completed by replacing the character string of the first conversion script by a regular expression, which is a regular method for describing a character string pattern, and can be used for performing text matching, specifically, searching a part matched with a given regular expression in a given character string, where the regular expression is composed of normal characters and meta characters, the normal characters include numbers and capital and lowercase letters, and the meta characters are characters with special meanings, such as "\ s" indicates any blank character, including spaces, tabs, line breaks, and the like, "" indicates any character except line-changing meta character "\ n", and "". indicates that the previous sub-expression is repeated zero times and many times. And matching the character strings in the first conversion script through the regular expression and performing parallel conversion to obtain a second conversion script.
207. And converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation.
On the basis of the previous embodiment, the present embodiment describes in detail a process of rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file, and obtains a matching character string by reading the configuration file; according to the matched character string, regularly matching the character string in the first conversion script file; and dynamically replacing the character strings according to the configuration file to obtain a second conversion script file. The script content is associated through the configuration file, the configuration of the script is realized, all conversion rules of the project are supported, including the self-defined rule, and the development efficiency and the accuracy are greatly improved. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
Referring to fig. 3, a third embodiment of the project style integration and adaptation method according to the embodiment of the present invention includes:
301. acquiring a new version project file and an old version project file in a front-end project;
302. merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project for project style integration;
303. compiling a configuration file according to the project information of the new version project file;
304. reading the configuration file to obtain a matching character string;
305. analyzing the matched character string, and determining the matching type of the matched character string according to a preset segment mode separator and a character string format;
306. setting a matching type identifier according to the matching type, and dividing the matching character string into a plurality of sub character strings according to the matching type identifier;
307. determining a regular expression generation mode for each sub-character string, connecting phrases identified by preset phrase marks in the sub-character strings in different connection modes according to the regular expression generation mode to generate a regular expression of the sub-character strings, and obtaining a regular expression list containing at least one regular expression of the sub-character strings;
in this embodiment, the regular expression generation patterns include a column pattern and a non-column pattern, and the regular expression generation patterns of the substrings are determined; if the regular expression generating mode is a column mode, generating a sub-character string regular expression by using a connection regular expression phrase representing at least one blank character; if the regular expression generating mode is a non-column mode, generating a sub-character string regular expression by using a connection regular expression phrase representing any character of at least one non-line-feed character; and obtaining a regular expression list containing at least one regular expression of the substrings according to the regular expressions of the substrings of each substring.
308. Matching the character strings to be matched in the first conversion script according to the matching type identification to obtain a matching result;
in this embodiment, the matching types are divided into a line mode and a segment mode, the two modes are identified by matching type identifiers, when the matching type is the line mode, the matching character string is divided into a plurality of character strings according to line feed characters, that is, each line in the character strings is extracted as a sub-character string, when the matching type is the segment mode, the matching character string is divided into a plurality of matching character strings according to segment mode separators, that is, repeated parts with the segment mode separators as boundaries are extracted as sub-character strings, and the matching sub-character strings are extracted with phrases identified by phrase markers and inter-phrase characters therein according to predetermined phrase markers and used as a sub-character string regular expression for character matching.
309. Dynamically replacing character strings in the matching result according to the configuration file to obtain a second conversion script file;
310. and converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation.
The embodiment describes in detail a process of regularly matching a character string in a first conversion script file according to a matching character string on the basis of the previous embodiment, and determines a matching type of the matching character string according to a preset segment pattern separator and a character string format by analyzing the matching character string; setting a matching type identifier according to the matching type, and dividing the matching character string into a plurality of sub character strings according to the matching type identifier; determining a regular expression generation mode for each sub-character string, connecting phrases identified by preset phrase marks in the sub-character strings in different connection modes according to the regular expression generation mode to generate a regular expression of the sub-character strings, and obtaining a regular expression list containing at least one regular expression of the sub-character strings; and matching the character strings to be matched in the first conversion script according to the matching type identification to obtain a matching result. The invention realizes the configurability of the script by associating the script content with the configuration file, supports all conversion rules of the project, including the self-defined rule, and greatly improves the development efficiency and the accuracy. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
Referring to fig. 4, a fourth embodiment of the project style integration and adaptation method according to the embodiment of the present invention includes:
401. acquiring a new version project file and an old version project file in a front-end project;
402. merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project for project style integration;
403. compiling a configuration file according to the project information of the new version project file;
404. reading the configuration file to obtain a matching character string;
405. analyzing the matched character string, and judging whether the format of the matched character string is repeated by taking the segment mode separator as a boundary;
406. if yes, the matching type is a segment mode;
407. if not, the matching type is a line mode;
in this embodiment, in the present embodiment, the matching types are divided into a row pattern and a segment pattern according to the separation characteristics of the matching character strings, wherein the matched contents in the matching character strings of the segment pattern are repeatedly appeared according to a certain fixed format, that is, character combinations in the whole character string are repeatedly appeared in the same format, for example, in the character string "123 × 234 × 789", the contents are repeatedly appeared every three characters by using "×" as a separator. The character strings other than the segment mode are in the line mode. By distinguishing different matching types, the problem that different character string matching structures need to be written according to different matching contents is avoided.
408. Setting a matching type identifier according to the matching type, and dividing the matching character string into a plurality of sub character strings according to the matching type identifier;
409. determining a regular expression generation mode for each sub-character string, connecting phrases identified by preset phrase marks in the sub-character strings in different connection modes according to the regular expression generation mode to generate a regular expression of the sub-character strings, and obtaining a regular expression list containing at least one regular expression of the sub-character strings;
410. matching the character strings to be matched in the first conversion script according to the matching type identification to obtain a matching result;
411. dynamically replacing character strings of the matching result according to the configuration file to obtain a second conversion script file;
412. and converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation.
On the basis of the foregoing embodiment, the present embodiment describes in detail a process of parsing the matching character string and determining a matching type of the matching character string according to a preset segment pattern separator and a character string format. Judging whether the format of the matched character string is repeated by taking the segment mode separator as a boundary or not by analyzing the matched character string; if yes, the matching type is a segment mode; if not, the matching type is a row mode. The method realizes the configurability of the script by associating the script content with the configuration file, supports all conversion rules of the project, including the self-defined rules, and greatly improves the development efficiency and the accuracy. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
Referring to fig. 5, a fifth embodiment of the project style integration and adaptation method according to the embodiment of the present invention includes:
501. acquiring a new version project file and an old version project file in a front-end project;
502. merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project for project style integration;
503. compiling a configuration file according to the project information of the new version project file;
504. rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file;
505. reading the merging project file, acquiring the design size of the visual draft of the merging project file, and configuring the conversion standard of the preset style conversion plug-in according to the design size;
506. reading a style file of a new version project file in the merged project file, and acquiring style information through regular matching;
507. converting the style information into a style type preset in a second conversion script through the second conversion script, and writing the style type into a style file;
508. integrating the style files of all the projects in the merged project file into the same style file by taking the style file of the converted new version project file as a reference;
509. compiling the updated style file through the style conversion plug-in according to the conversion standard to obtain a new merged project file;
in this embodiment, files (css, less, sass, vue, etc.) which may include styles in the merged project file are obtained through the node, file contents are scanned, style information is obtained through regular matching, and conversion is performed, where the style information includes style types and references of the styles, for example, a rem type style is matched as follows, and is converted into a px type, where 50 is a reference displayed by iphone6 in other obtained adaptation modes:
var context=files.replace(
/(\d*)?(\.\d+)?rem/g,
function(text){
returnformatNum(Number(text.split('rem')[0])*50,1)+'px'
}
);
after the conversion is finished, the effect that a set of design draft is perfectly compatible in different devices is achieved through a px2rem style conversion plug-in, and the second conversion script is used for recording style types and also achieving the conversion of style information.
510. And inputting the new merging project file into corresponding equipment for adaptation.
In this embodiment, the style conversion plug-in is px2rem in the specification, the conversion reference is mainly size, and for different devices, a perfectly compatible effect is realized by converting different sizes of a design draft, so as to realize a perfectly compatible effect of the same visual design draft in different devices, and the application is applied to the style conversion plug-in px2rem, generally, a specification of the design visual draft is mainly based on a design draft of iphone6, on this basis, the absolute value of CSS pixels, that is, px units, can be written by using one style conversion plug-in px2rem according to the size of the design draft during development, and the px2rem automatically converts the size into corresponding rem units, and combines the font sizes of different html root elements generated by different terminals, so as to realize a perfectly compatible effect of one set of design drafts in different devices. Taking the visual design as iphone6 as an example, the conversion benchmark of the px2rem plug-in is configured according to the visual design size iphone6 (2-time graph 750px or 1-time graph 375 px): 75 or 37.5 (defined as 1/10 for the design drawing). After the project files are converted and merged through the conversion script, the effect that a set of design draft is perfectly compatible in different devices is achieved through the conversion standard and the pattern conversion plug-in px2 rem.
On the basis of the previous embodiment, the process of converting the merged project file according to the second conversion script file to obtain a new merged project file, inputting the new merged project file into the corresponding device for adaptation is described in detail in this embodiment, the design size of the visual draft of the merged project file is obtained by reading the merged project file, and the conversion standard of the preset style conversion plug-in is configured according to the design size; obtaining a new merging project file according to the conversion reference and the second conversion script file; and inputting the new merging project file into corresponding equipment for adaptation. Obtaining a new merging project file according to the conversion standard and the second conversion script file, wherein the pattern file in the merging project file is mainly obtained by reading the pattern file and obtaining pattern information through regular matching; converting the style information into a style type preset in a second conversion script through the second conversion script, and writing the style type into a style file; and compiling the updated style file through the style conversion plug-in according to the conversion standard to obtain a new merging project file. The method realizes the configurability of the script by associating the script content with the configuration file, supports all conversion rules of the project, including the self-defined rules, and greatly improves the development efficiency and the accuracy. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
With reference to fig. 6, the method for adapting to project style integration according to an embodiment of the present invention is described above, and an embodiment of the device for adapting to project style integration according to an embodiment of the present invention includes:
an obtaining module 601, configured to obtain a new version project file and an old version project file in a front-end project;
a merging module 602, configured to merge the new version project file and the old version project file to obtain a merged project file, where the new version project file is a reference version project for project style integration;
the file writing module 603 is configured to write a configuration file according to the project information of the new version project file;
the rewriting module 604 is configured to rewrite a preset first conversion script file according to the configuration file to obtain a second conversion script file;
a conversion module 605, configured to convert, according to the second conversion script file, an old version project file in the merged project file, integrate all projects in the merged project file into the same project style with the new version project file as a reference, obtain a new merged project file, and input the new merged project file into a corresponding device for adaptation.
It is emphasized that, in order to ensure the privacy and security of data, the new version project file and the old version project file in the front-end project can be stored in the nodes of a blockchain.
In an embodiment of the present invention, the project style integration and adaptation apparatus runs the project style integration and adaptation method, and the project style integration and adaptation method includes: acquiring a new version project file and an old version project file in a front-end project; merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a reference version project integrated by project styles; compiling a configuration file according to the project information of the new version project file; rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file; and converting the merged project file according to the second conversion script file to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation. The invention realizes the configurability of the script by associating the script content with the configuration file, supports all conversion rules of the project, including the self-defined rule, and greatly improves the development efficiency and the accuracy. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
Referring to fig. 7, a second embodiment of the project style integration adapting device according to the embodiment of the present invention includes:
an obtaining module 601, configured to obtain a new version project file and an old version project file in a front-end project;
a merging module 602, configured to merge the new version project file and the old version project file to obtain a merged project file, where the new version project file is a reference version project for project style integration;
the file writing module 603 is configured to write a configuration file according to the project information of the new version project file;
the rewriting module 604 is configured to rewrite a preset first conversion script file according to the configuration file to obtain a second conversion script file;
a conversion module 605, configured to convert, according to the second conversion script file, an old version project file in the merged project file, integrate all projects in the merged project file into the same project style with the new version project file as a reference, obtain a new merged project file, and input the new merged project file into a corresponding device for adaptation.
Wherein the file writing module 603 comprises:
a reading unit 6031, configured to read the configuration file to obtain a matching character string;
a regular matching unit 6032, configured to regularly match the character string in the first conversion script file according to the matching character string;
and a replacing unit 6033, configured to dynamically replace the character string according to the configuration file, so as to obtain a second conversion script file.
Wherein the regular matching unit 6032 includes:
an analyzing subunit 60321, configured to analyze the matching character string, and determine a matching type of the matching character string according to a preset segment pattern separator and a character string format;
a dividing subunit 60322, configured to set a matching type identifier according to the matching type, and divide the matching character string into multiple sub-character strings according to the matching type identifier;
a connection subunit 60323, configured to determine a regular expression generation pattern for each sub-character string, connect, according to the regular expression generation pattern, a phrase identified by a predetermined phrase mark in the sub-character string in a different connection form to generate a sub-character string regular expression, and obtain a regular expression list including at least one sub-character string regular expression;
and the matching subunit 60324 is configured to match the character string to be matched in the first conversion script according to the matching type identifier, so as to obtain a matching result.
Optionally, the parsing subunit 60321 is specifically configured to:
analyzing the matched character string, and judging whether the format of the matched character string is repeated by taking the segment mode separator as a boundary;
if yes, the matching type is a segment mode;
if not, the matching type is a row mode.
Wherein the conversion module 605 comprises:
a reading unit 6051, configured to read the merged project file, obtain a design size of the visual manuscript of the merged project file, and configure a conversion standard of a preset style conversion plug-in according to the design size;
a file obtaining unit 6052, configured to convert, according to the conversion reference and the second conversion script file, an old version project file in the merged project file, and integrate all projects in the merged project file into the same project style with the new version project file as a reference, so as to obtain a new merged project file;
an adapting unit 6053, configured to input the new merged project file into a corresponding device for adapting.
Optionally, the file obtaining unit 6052 is specifically configured to:
reading the style file of the new version project file in the merged project file, and acquiring style information through regular matching;
converting the style information into a style type preset in the second conversion script through the second conversion script, and writing the style type into the style file;
integrating the style files of all the projects in the merged project file into the same style file by taking the converted style file of the new version project file as a reference;
and compiling all the updated style files through the style conversion plug-in according to the conversion standard to obtain a new merging project file.
On the basis of the previous embodiment, the specific functions of each module and the unit composition of part of the modules are described in detail, and by the device, the script content can be associated through the configuration file, so that the configuration of the script is realized, all conversion rules of the project, including the self-defined rules, are supported, and the development efficiency and the accuracy are greatly improved. The method can ensure that the project outputs a unique adaptation reference value, is perfectly compatible with any equipment size, reduces the workload of development and testing, and improves the user experience.
Fig. 6 and 7 describe the project style integration adaptation apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the project style integration adaptation apparatus in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 8 is a schematic structural diagram of an item style adaptation device 800 according to an embodiment of the present invention, where the item style adaptation device 800 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 810 (e.g., one or more processors) and a memory 820, and one or more storage media 830 (e.g., one or more mass storage devices) storing an application 833 or data 832. Memory 820 and storage medium 830 may be, among other things, transient or persistent storage. The program stored in the storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations in the project style integration adaptation apparatus 800. Further, the processor 810 may be configured to communicate with the storage medium 830, and execute a series of instruction operations in the storage medium 830 on the project style integration adaptation apparatus 800 to implement the steps of the project style integration adaptation method described above.
The project style integration adapter 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input-output interfaces 860, and/or one or more operating systems 831, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that the project style integration adaptation apparatus configuration shown in fig. 8 does not constitute a limitation of the project style integration adaptation apparatus provided herein, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the project style integration adaptation method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A project style integration and adaptation method is characterized by comprising the following steps:
acquiring a new version project file and an old version project file in a front-end page, wherein the new version project file is a reference version project integrated by project styles, and the new version project file and the old version project file are distinguished according to the version number of the project file;
merging the new version project file and the old version project file to obtain a merged project file;
compiling a configuration file according to the project information of the new version project file;
rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file;
and converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file to equipment corresponding to the front-end page for adaptation.
2. The project style integration and adaptation method according to claim 1, wherein the rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file comprises:
reading the configuration file to obtain a matching character string;
according to the matched character string, regularly matching the character string in the first conversion script file;
and dynamically replacing the character strings according to the configuration file to obtain a second conversion script file.
3. The project style integration adaptation method according to claim 2, wherein the regularizing matching of the character strings in the first converted script file according to the matching character strings comprises:
analyzing the matched character string, and determining the matching type of the matched character string according to the character string format of the matched character string and a preset segment mode separator;
setting a matching type identifier according to the matching type, and dividing the matching character string into a plurality of sub character strings according to the matching type identifier;
determining a regular expression generation mode for each sub-character string, connecting phrases identified by preset phrase marks in the sub-character strings in different connection modes according to the regular expression generation modes to generate a regular expression of the sub-character strings, and obtaining a regular expression list containing at least one regular expression of the sub-character strings;
and matching the character strings to be matched in the first conversion script according to the matching type identification to obtain a matching result.
4. The project style integration and adaptation method according to claim 3, wherein the parsing the matching character string and the determining the matching type of the matching character string according to the preset segment pattern separator and the character string format comprises:
analyzing the matched character string, and judging whether the format of the matched character string is repeated by taking the segment mode separator as a boundary;
if yes, the matching type is a segment mode;
if not, the matching type is a row mode.
5. The project style integration adaptation method according to claim 4, wherein the regular expression generation patterns comprise column patterns and non-column patterns;
the determining a regular expression generation mode for each sub-character string, and connecting phrases identified by a predetermined phrase mark in the sub-character string in different connection modes according to the regular expression generation mode to generate a regular expression of the sub-character string, and obtaining a regular expression list including at least one regular expression of the sub-character string includes:
judging a regular expression generation mode of the substring;
if the regular expression generating mode is a column mode, generating a sub-character string regular expression by using a connection regular expression phrase representing at least one blank character;
if the regular expression generating mode is a non-column mode, generating a sub-character string regular expression by using a connection regular expression which represents any character of at least one non-line-feed character;
and obtaining a regular expression list containing at least one regular expression of the substrings according to the regular expressions of the substrings of each substring.
6. The project style integration and adaptation method according to any one of claims 1 to 5, wherein the converting, according to the second conversion script file, an old version project file in the merged project file, integrating all projects in the merged project file into a same project style with the new version project file as a reference, obtaining a new merged project file, and inputting the new merged project file into a corresponding device for adaptation includes:
reading the merging project file, acquiring the design size of the visual draft of the merging project file, and configuring the conversion standard of a preset style conversion plug-in according to the design size;
converting the old version project file in the merged project file according to the conversion reference and the second conversion script file, and integrating all projects in the merged project file into the same project style by taking the new version project file as the reference to obtain a new merged project file;
and inputting the new merging project file into corresponding equipment for adaptation.
7. The project style integration and adaptation method according to claim 6, wherein the converting an old version project file in the merged project file according to the conversion reference and the second conversion script file, and integrating all projects in the merged project file into a same project style with the new version project file as a reference to obtain a new merged project file comprises:
reading the style file of the new version project file in the merged project file, and acquiring style information through regular matching;
converting the style information into a style type preset in the second conversion script through the second conversion script, and writing the style type into the style file;
integrating the style files of all the projects in the merged project file into the same style file by taking the converted style file of the new version project file as a reference;
and compiling all the updated style files through the style conversion plug-in according to the conversion standard to obtain a new merging project file.
8. An item style integration adaptation device, characterized in that the item style integration adaptation device comprises:
the acquisition module is used for acquiring a new version project file and an old version project file in a front-end project;
the merging module is used for merging the new version project file and the old version project file to obtain a merged project file, wherein the new version project file is a benchmark version project integrated by project styles;
the file compiling module is used for compiling a configuration file according to the project information of the new version project file;
the rewriting module is used for rewriting a preset first conversion script file according to the configuration file to obtain a second conversion script file;
and the conversion module is used for converting the old version project file in the merged project file according to the second conversion script file, integrating all projects in the merged project file into the same project style by taking the new version project file as a reference to obtain a new merged project file, and inputting the new merged project file into corresponding equipment for adaptation.
9. An item style conformity adaptation apparatus, characterized in that the item style conformity adaptation apparatus comprises: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the project style integration adaptation device to perform the steps of the project style integration adaptation method according to any of claims 1-6.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when being executed by a processor, is adapted to carry out the steps of the project style integration adaptation method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110209009.3A CN112948734A (en) | 2021-02-25 | 2021-02-25 | Project style integration and adaptation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110209009.3A CN112948734A (en) | 2021-02-25 | 2021-02-25 | Project style integration and adaptation method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112948734A true CN112948734A (en) | 2021-06-11 |
Family
ID=76245996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110209009.3A Pending CN112948734A (en) | 2021-02-25 | 2021-02-25 | Project style integration and adaptation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112948734A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986248A (en) * | 2021-11-03 | 2022-01-28 | 北京字节跳动网络技术有限公司 | Code generation method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090210866A1 (en) * | 2008-02-18 | 2009-08-20 | Rpath, Inc. | Methods, systems, and computer program products for updating software on a data processing system based on transition rules between classes of compatible versions |
US20160012024A1 (en) * | 2014-07-08 | 2016-01-14 | Cognizant Technology Solutions India Pvt. Ltd. | Method and system for automatic generation and validation of html5 compliant scripts |
CN108228214A (en) * | 2017-12-29 | 2018-06-29 | 北京致远互联软件股份有限公司 | A kind of update method of application program, medium and equipment |
CN109086071A (en) * | 2018-08-22 | 2018-12-25 | 平安普惠企业管理有限公司 | A kind of method and server of management software version information |
CN112306503A (en) * | 2020-10-30 | 2021-02-02 | 中国平安财产保险股份有限公司 | Front-end resource packaging method and device, computer equipment and storage medium |
-
2021
- 2021-02-25 CN CN202110209009.3A patent/CN112948734A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090210866A1 (en) * | 2008-02-18 | 2009-08-20 | Rpath, Inc. | Methods, systems, and computer program products for updating software on a data processing system based on transition rules between classes of compatible versions |
US20160012024A1 (en) * | 2014-07-08 | 2016-01-14 | Cognizant Technology Solutions India Pvt. Ltd. | Method and system for automatic generation and validation of html5 compliant scripts |
CN108228214A (en) * | 2017-12-29 | 2018-06-29 | 北京致远互联软件股份有限公司 | A kind of update method of application program, medium and equipment |
CN109086071A (en) * | 2018-08-22 | 2018-12-25 | 平安普惠企业管理有限公司 | A kind of method and server of management software version information |
CN112306503A (en) * | 2020-10-30 | 2021-02-02 | 中国平安财产保险股份有限公司 | Front-end resource packaging method and device, computer equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986248A (en) * | 2021-11-03 | 2022-01-28 | 北京字节跳动网络技术有限公司 | Code generation method and device, computer equipment and storage medium |
CN113986248B (en) * | 2021-11-03 | 2023-05-16 | 抖音视界有限公司 | Code generation method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111506310B (en) | Method, device, equipment and storage medium for generating multi-platform style | |
US7069501B2 (en) | Structured document processing system and structured document processing method | |
US5946488A (en) | Method for selectively and incrementally displaying the results of preprocessing | |
JP4007562B2 (en) | Programming support method and apparatus | |
US6594823B1 (en) | Method and system for representing a high-level programming language data structure in a mark-up language | |
Daelemans et al. | Mbt: memory-based tagger | |
US20100269096A1 (en) | Creation, generation, distribution and application of self-contained modifications to source code | |
CN108762743B (en) | Data table operation code generation method and device | |
US6282539B1 (en) | Method and system for database publishing | |
JP2002024211A (en) | Method and system for document management and storage medium having processing program stored thereon | |
CN112379917A (en) | Browser compatibility improving method, device, equipment and storage medium | |
JPH10124495A (en) | Original text generation processor and medium for storing program for the same | |
US20150278190A1 (en) | Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method | |
EP1821219A1 (en) | Document processing device and document processing method | |
US20090083300A1 (en) | Document processing device and document processing method | |
CN113918144A (en) | Method and system for generating reusable page based on image | |
EP1830274A1 (en) | Server device and name space issuing method | |
Juričić | Detecting source code similarity using low-level languages | |
CN112948734A (en) | Project style integration and adaptation method, device, equipment and storage medium | |
CN112130952A (en) | Multi-language display method, device, equipment and product | |
US20080005085A1 (en) | Server Device and Search Method | |
Andrews et al. | The formal definition of Modula-2 and its associated interpreter | |
CN114385167A (en) | Front-end page generation method, device, equipment and medium | |
CN110554860B (en) | Construction method and code generation method of software project natural language programming interface (NLI) | |
CN113971044A (en) | Component document generation method, device, equipment and readable storage medium |
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 |