CN113254019A - Method and device for registering front-end data stream state file - Google Patents
Method and device for registering front-end data stream state file Download PDFInfo
- Publication number
- CN113254019A CN113254019A CN202010084744.1A CN202010084744A CN113254019A CN 113254019 A CN113254019 A CN 113254019A CN 202010084744 A CN202010084744 A CN 202010084744A CN 113254019 A CN113254019 A CN 113254019A
- Authority
- CN
- China
- Prior art keywords
- file
- code
- end data
- data stream
- preset
- 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
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012856 packing Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 14
- 230000009471 action Effects 0.000 description 13
- 239000003638 chemical reducing agent Substances 0.000 description 7
- 238000004891 communication Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000009434 installation Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/443—Optimisation
- G06F8/4434—Reducing the memory space required by the program code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/443—Optimisation
- G06F8/4441—Reducing the execution time required by the program code
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for registering a front-end data stream state file, and relates to the technical field of computers. One embodiment of the method comprises: generating a file code of a front-end data stream state file according to a preset code template; generating a configuration file of the front-end data stream state file according to a preset configuration file; and compiling the file code according to the configuration file and a preset registry so as to register the front-end data flow state file. According to the implementation method, on one hand, the file codes can be quickly generated, the problem of project compiling error caused by manual code generation error or file missing registration is avoided, on the other hand, the code volume can be greatly reduced, and the project packing and loading speed is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for registering a front-end data stream state file.
Background
The implementation of the real-reduce standard service requires the registration of many data stream state files, such as actions files (codes for monitoring various trigger events), reducers files (codes for modifying an old data stream state according to a trigger event to generate a new data stream state), Store files (codes for saving a new data stream state), and the like. FIG. 1 is a schematic diagram of the data flow direction in the act-reduce front end framework, where in response to a page trigger event (Action), actions Creators forward the Action to Store, which is dispatch (a Action) in the diagram; store serves as a common area for storing and managing event topics. Store transfers the current st ate (i.e. previous State in the figure) and the received action to Reducers, and the Reducers returns a new data stream state (newState) to be fed back to Store after processing. The fact Components render the front page according to the new data stream state.
In the prior art, each file is usually registered manually or by copying and modifying existing code to obtain a corresponding code file.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
(1) the problem of file registration missing often occurs, so that project compiling is not passed through error reporting;
(2) the invalid paste copy and redundant codes result in larger and larger project packet volume and slow packaging and loading speed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for registering a front-end data stream state file, which can, on one hand, implement fast generation of a file code, avoid a problem of a project compiling error caused by a code error generated manually or a file missing registration, and on the other hand, greatly reduce a code volume, and improve a project packing and loading speed.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for registering a front-end data stream state file, including:
generating a file code of a front-end data stream state file according to a preset code template;
generating a configuration file of the front-end data stream state file according to a preset configuration file;
and compiling the file code according to the configuration file and a preset registry so as to register the front-end data flow state file.
Optionally, generating a file code of the front-end data stream state file according to a preset code template, where the file code includes: extracting variable parameters from user input information, replacing placeholders corresponding to the variable parameters in the preset code file with the variable parameters, and generating file codes of the front-end data stream state file; and determining an item address according to user input information, and writing the file code into the item address based on file stream operation.
Optionally, before compiling the file code according to the configuration file and a preset registry, the method further includes: and abstracting the front-end data stream state file into a registry by using a factory mode.
Optionally, the preset registry includes a download status attribute.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for registering a front-end data stream state file, including:
the code generator module generates a file code of the front-end data stream state file according to a preset code template;
the file configuration module generates a configuration file of the front-end data stream state file according to a preset configuration file; and compiling the file code according to the configuration file and a preset registry so as to register the front-end data flow state file.
Optionally, the code generating module generates a file code of the front-end data stream state file according to a preset code template, where the file code includes:
extracting variable parameters from user input information, replacing placeholders corresponding to the variable parameters in the preset code file with the variable parameters, and generating file codes of the front-end data stream state file; and determining an item address according to user input information, and writing the file code into the item address based on file stream operation.
Optionally, the code compiling module is further configured to: and abstracting the front-end data stream state file into a register by utilizing a factory mode before compiling the file code according to the configuration file and a preset register.
Optionally, the preset registry includes a download status attribute.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device for registering a front-end data stream state file, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method provided by the first aspect of the embodiments of the present invention.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method provided by the first aspect of embodiments of the present invention.
One embodiment of the above invention has the following advantages or benefits: according to the method, a front-end data flow state file is registered according to a preset code template and a configuration file, on one hand, the file code can be quickly generated, the problem of project compiling error caused by code error generated manually or file missing registration is avoided, on the other hand, the size of the code can be greatly reduced, and the project packing and loading speed is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the data flow direction in a exact-reduce front-end framework;
FIG. 2 is a schematic diagram of a main flow of a method for registering a front-end data stream state file according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the main modules of an apparatus for registering a front-end data stream state file according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
According to an aspect of an embodiment of the present invention, a method for registering a front-end data stream state file is provided.
Fig. 2 is a schematic diagram of a main flow of a method for registering a front-end data stream state file according to an embodiment of the present invention, and as shown in fig. 2, the method for registering a front-end data stream state file includes: step S201, step S202, and step S203.
Step S201, generating a file code of the front-end data stream state file according to a preset code template.
In the embodiment of the present invention, a code template is generated in advance according to a plurality of front-end data stream state files, and the preset code template includes common parts, such as an interface field, a method name field, and the like, in the plurality of front-end data stream state files. For the non-common part in the plurality of front-end data stream state files, the non-common part can be obtained by user input in the form of variables, such as interface names, method names and the like.
The file codes of the front-end data stream state file are generated according to the preset code template, on one hand, the file codes can be rapidly generated, the problem of project compiling error caused by code error generated manually or file missing registration and the like is avoided, on the other hand, invalid pasting copy and redundant codes can be avoided, the size of the codes is greatly reduced, and the project packing and loading speed is improved.
Optionally, generating a file code of the front-end data stream state file according to a preset code template, where the file code includes: extracting variable parameters from user input information, replacing placeholders corresponding to the variable parameters in the preset code file with the variable parameters, and generating file codes of the front-end data stream state file; and determining an item address according to user input information, and writing the file code into the item address based on file stream operation.
In this example, a variable parameter "method name" exists in the preset code model, and when the code file is generated, the user inputs the method name through a command line, and replaces a placeholder at a corresponding position in the code template with the method name input by the user to obtain a file code. The file codes are generated by inputting variable parameters through the command line and combining the preset code template, so that the generation speed of the file codes can be greatly improved.
Step S202, generating a configuration file of the front-end data stream state file according to a preset configuration file.
The preset configuration file is a template for configuring each method, and the preset configuration file can define the required filling attribute and the non-required filling attribute of the method to be registered. The specific contents of the mandatory and non-mandatory properties can be selectively set. The mandatory fill attributes may include: name (funName) of the method to be defined, e.g., "getList"; a remote service address such as "/xz/api/xxxx/getList"; request types (methods), such as get, post, delete (get, post, delete are the information interaction methods defined in http, respectively), and the like; event type (actionType), such as "GET _ TEST _ LIST"; the name of reducer (reducer name), e.g., "testList". The non-fill attributes may include: description of the method (desc); success hints (tip), such as "operation successful"; error cues (errorTip), such as "operation failed".
In the actual application process, the method to be called by the project can be added to the preset configuration file to obtain the configuration file of the project, and the method in the configuration file can be modified, deleted and the like. If a new adding method or interface is needed, the addition can be carried out in the preset configuration file according to the format.
According to the preset configuration file, the attributes such as remote service addresses and request types required by the project can be easily managed in a configuration mode, the interfaces are uniformly managed, checking and maintenance are facilitated, and meanwhile developers can have more efforts to realize business logic.
Step S203, compiling the file code according to the configuration file and a preset registry (a software tool for analyzing and modifying the software internal program information) to register the front-end data stream state file.
In this step, the configuration file is used as a parameter of the preset registry and is transmitted to the preset registry, so that the registration of all front-end data stream state files is dynamically realized.
Optionally, before compiling the file code according to the configuration file and a preset registry, the method further includes: and abstracting the front-end data stream state file into a registry by using a factory mode. The register machine is sampled by using a factory mode, so that the generation speed of file codes can be greatly improved.
Illustratively, the exact-reduce front end framework includes actions files, reducers files, Store files. Except that the method names and the type types are different, the actions files of different projects are basically similar, so that the actions files can be abstracted into an action registry by using a factory mode, and the action file codes can be generated in batch by combining source map (a file for storing source code mapping relations) by using an object registration mode. In the Store files of different projects, except that the processing method names, the interface calling modes and the specific api are different, the other items are similar, and a Store register can be created by referring to the action register. Similarly, reducers registrars are formed using factory schema abstraction.
Optionally, the preset registry includes a download status attribute (loading status). By enabling the registry of the front-end data stream state file to comprise the loading state attribute, the problem of manually writing the loading state can be avoided, and the project loading speed is increased.
In the embodiment of the invention, the method for generating the file code can be packaged into the node installation package, for example, the package packaging is carried out through webpack (a static module packager), and the componentization is realized. When any project needs to register the front-end data stream state file, the code can be rapidly transplanted by downloading and installing the node installation package (namely JavaScript running at a server). The specific flow example is as follows:
(1) download NPM (a package management tool);
(2) installing the encapsulated node installation package;
(3) inputting a module name (the module name indicates a location of a preset configuration file) through a node Command;
(4) selecting a project name to be created from a project list through a node Command;
(5) and entering a front-end project directory and then returning, namely automatically registering the front-end data flow state file of the exact-reduce front-end framework.
In this embodiment, the user can quickly register the front-end data stream state file of the exact-reduce front-end framework by only installing the NPM in a command line selection manner. The file is directly injected into the project, so that the quick and efficient automatic writing of the codes of the data stream part is realized, the code amount is greatly reduced, the volume of the webpack is controlled, and the project loading and browsing speed is further improved. Allowing developers more time to focus on business logic processing. In addition, the existing preset configuration files can be quickly compatible, and the content of the preset configuration files can be compatible and compatible only by copying the content of the preset configuration files into file codes and slightly referring to the content.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for implementing the above method.
Fig. 3 is a schematic diagram of main modules of an apparatus for registering a front-end data stream state file according to an embodiment of the present invention, and as shown in fig. 3, the apparatus 300 for registering a front-end data stream state file includes:
the code generation module 301 generates a file code of the front-end data stream state file according to a preset code template;
the file configuration module 302 is configured to generate a configuration file of the front-end data stream state file according to a preset configuration file;
and the code compiling module 303 compiles the file code according to the configuration file and a preset registry to register the front-end data stream state file.
Optionally, the code generating module generates a file code of the front-end data stream state file according to a preset code template, where the file code includes:
extracting variable parameters from user input information, replacing placeholders corresponding to the variable parameters in the preset code file with the variable parameters, and generating file codes of the front-end data stream state file; and determining an item address according to user input information, and writing the file code into the item address based on file stream operation.
Optionally, the code compiling module is further configured to: and abstracting the front-end data stream state file into a register by utilizing a factory mode before compiling the file code according to the configuration file and a preset register.
Optionally, the preset registry includes a download status attribute.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device for registering a front-end data stream state file, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method provided by the first aspect of the embodiments of the present invention.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method provided by the first aspect of embodiments of the present invention.
Fig. 4 illustrates an exemplary system architecture 400 for a method of registering a front-end data stream state file or an apparatus for registering a front-end data stream state file to which embodiments of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 401, 402, 403. The background management server may analyze and perform other processing on the received data such as the registration request of the front-end data stream state file, and feed back a processing result (e.g., registration result information — just an example) to the terminal device.
It should be noted that the method for registering a front-end data stream state file provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the apparatus for registering a front-end data stream state file is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprising: the code generation module generates a file code of the front-end data stream state file according to a preset code template; the file configuration module generates a configuration file of the front-end data stream state file according to a preset configuration file; and the code compiling module compiles the file code according to the configuration file and a preset registry so as to register the front-end data flow state file. The names of these modules do not in some cases constitute a limitation on the modules themselves, and for example, a code generation module may also be described as a "module that compiles the file code from the configuration file and a preset registry".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: generating a file code of a front-end data stream state file according to a preset code template; generating a configuration file of the front-end data stream state file according to a preset configuration file; and compiling the file code according to the configuration file and a preset registry so as to register the front-end data flow state file.
According to the technical scheme of the embodiment of the invention, the front-end data flow state file is registered according to the preset code template and the configuration file, so that on one hand, the file code can be quickly generated, the problem of project compiling error caused by code error generated manually or file missing registration is avoided, on the other hand, the code volume can be greatly reduced, and the project packing and loading speed is increased.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for registering a front-end data stream state file, comprising:
generating a file code of a front-end data stream state file according to a preset code template;
generating a configuration file of the front-end data stream state file according to a preset configuration file;
and compiling the file code according to the configuration file and a preset registry so as to register the front-end data flow state file.
2. The method of claim 1, wherein generating the file code of the front-end data stream state file according to the preset code template comprises:
extracting variable parameters from user input information, replacing placeholders corresponding to the variable parameters in the preset code file with the variable parameters, and generating file codes of the front-end data stream state file; and determining an item address according to user input information, and writing the file code into the item address based on file stream operation.
3. The method of claim 1, prior to compiling the file code from the configuration file and a pre-defined registry, further comprising:
and abstracting the front-end data stream state file into a registry by using a factory mode.
4. The method of claim 1, wherein the pre-defined registry includes a download status attribute.
5. An apparatus for registering a front-end data stream state file, comprising:
the code generation module generates a file code of the front-end data stream state file according to a preset code template;
the file configuration module generates a configuration file of the front-end data stream state file according to a preset configuration file;
and the code compiling module compiles the file code according to the configuration file and a preset registry so as to register the front-end data flow state file.
6. The apparatus of claim 1, wherein the code generation module generates a file code of the front-end data stream state file according to a preset code template, and comprises:
extracting variable parameters from user input information, replacing placeholders corresponding to the variable parameters in the preset code file with the variable parameters, and generating file codes of the front-end data stream state file; and determining an item address according to user input information, and writing the file code into the item address based on file stream operation.
7. The apparatus of claim 5, wherein the code compilation module is further to: and abstracting the front-end data stream state file into a register by utilizing a factory mode before compiling the file code according to the configuration file and a preset register.
8. The apparatus of claim 5, wherein the preset registry comprises a download status attribute.
9. An electronic device for registering a front-end data stream state file, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010084744.1A CN113254019A (en) | 2020-02-10 | 2020-02-10 | Method and device for registering front-end data stream state file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010084744.1A CN113254019A (en) | 2020-02-10 | 2020-02-10 | Method and device for registering front-end data stream state file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113254019A true CN113254019A (en) | 2021-08-13 |
Family
ID=77219383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010084744.1A Pending CN113254019A (en) | 2020-02-10 | 2020-02-10 | Method and device for registering front-end data stream state file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113254019A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114415903A (en) * | 2021-12-23 | 2022-04-29 | 广州博冠信息科技有限公司 | Data entry method, device, medium and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106873949A (en) * | 2015-12-11 | 2017-06-20 | 泰康保险集团股份有限公司 | Code generating method and its device |
CN108563435A (en) * | 2018-04-19 | 2018-09-21 | 北京百度网讯科技有限公司 | The method and device of code building |
CN109358841A (en) * | 2018-08-15 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Web application develops Compilation Method, device and storage equipment, computer equipment |
CN109587272A (en) * | 2018-12-30 | 2019-04-05 | 深圳云天励飞技术有限公司 | A kind of optimization method of micro services, device and electronic equipment |
CN109739478A (en) * | 2018-12-24 | 2019-05-10 | 网易(杭州)网络有限公司 | Front end project automated construction method, device, storage medium and electronic equipment |
CN110032369A (en) * | 2019-04-24 | 2019-07-19 | 成都市映潮科技股份有限公司 | A kind of code automatic generation method, device and medium |
CN110134427A (en) * | 2018-02-08 | 2019-08-16 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus generating code file |
-
2020
- 2020-02-10 CN CN202010084744.1A patent/CN113254019A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106873949A (en) * | 2015-12-11 | 2017-06-20 | 泰康保险集团股份有限公司 | Code generating method and its device |
CN110134427A (en) * | 2018-02-08 | 2019-08-16 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus generating code file |
CN108563435A (en) * | 2018-04-19 | 2018-09-21 | 北京百度网讯科技有限公司 | The method and device of code building |
CN109358841A (en) * | 2018-08-15 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Web application develops Compilation Method, device and storage equipment, computer equipment |
CN109739478A (en) * | 2018-12-24 | 2019-05-10 | 网易(杭州)网络有限公司 | Front end project automated construction method, device, storage medium and electronic equipment |
CN109587272A (en) * | 2018-12-30 | 2019-04-05 | 深圳云天励飞技术有限公司 | A kind of optimization method of micro services, device and electronic equipment |
CN110032369A (en) * | 2019-04-24 | 2019-07-19 | 成都市映潮科技股份有限公司 | A kind of code automatic generation method, device and medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114415903A (en) * | 2021-12-23 | 2022-04-29 | 广州博冠信息科技有限公司 | Data entry method, device, medium and equipment |
CN114415903B (en) * | 2021-12-23 | 2024-02-13 | 广州博冠信息科技有限公司 | Data entry method, device, medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111158818B (en) | Page rendering method and device | |
CN107832045B (en) | Method and apparatus for cross programming language interface conversion | |
CN110324169B (en) | Interface management method and device | |
CN111400061A (en) | Data processing method and system | |
CN113760324A (en) | Method and device for constructing micro front-end application | |
CN110795147A (en) | Interface protocol file management method and device | |
CN111026439B (en) | Application program compatibility method, device, equipment and computer storage medium | |
CN112769706B (en) | Componentized routing method and system | |
CN110968340A (en) | Method and device for realizing multi-version dependence isolation | |
CN110928571A (en) | Business program development method and device | |
CN113268245A (en) | Code analysis method, device and storage medium | |
CN112631590A (en) | Component library generation method and device, electronic equipment and computer readable medium | |
CN101876998B (en) | Method and system for editing data | |
CN110888794A (en) | Interface test method and device | |
CN113254019A (en) | Method and device for registering front-end data stream state file | |
CN113760264A (en) | Method and device for multiplexing components among multiple applications | |
WO2023083071A1 (en) | View interaction method and apparatus, electronic device, and computer readable medium | |
CN112764746A (en) | Data processing method and device, electronic equipment and storage medium | |
CN115794637A (en) | Method, device, equipment and computer readable medium for automatic test | |
CN113779122B (en) | Method and device for exporting data | |
CN112783903B (en) | Method and device for generating update log | |
CN114528510A (en) | Webpage data processing method and device, electronic equipment and medium | |
CN113760292A (en) | Method and device for developing application program, electronic equipment and storage medium | |
CN113656041A (en) | Data processing method, device, equipment and storage medium | |
CN113535221A (en) | Method and device for managing application version |
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 |