CN112445517B - Inlet file generation method, device, electronic equipment and computer readable medium - Google Patents

Inlet file generation method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112445517B
CN112445517B CN202011311677.9A CN202011311677A CN112445517B CN 112445517 B CN112445517 B CN 112445517B CN 202011311677 A CN202011311677 A CN 202011311677A CN 112445517 B CN112445517 B CN 112445517B
Authority
CN
China
Prior art keywords
file
target
entry
conversion
application interface
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.)
Active
Application number
CN202011311677.9A
Other languages
Chinese (zh)
Other versions
CN112445517A (en
Inventor
陈志庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruiting Network Technology Shanghai Co ltd
Original Assignee
Ruiting Network Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruiting Network Technology Shanghai Co ltd filed Critical Ruiting Network Technology Shanghai Co ltd
Priority to CN202011311677.9A priority Critical patent/CN112445517B/en
Publication of CN112445517A publication Critical patent/CN112445517A/en
Application granted granted Critical
Publication of CN112445517B publication Critical patent/CN112445517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure discloses an entry file generation method, an entry file generation device, electronic equipment and a computer readable medium. One embodiment of the method comprises the following steps: calling the conversion file according to the path information of the conversion file, written into the first application interface in the file packaging object; generating a first source file which corresponds to a first target configuration file of a page set included in a target application and has a writing format meeting a first target condition by utilizing the conversion file; and according to the first source file, modifying initialization information of an initial entry file written into a second application interface in a file packaging object by utilizing the conversion file to obtain an entry file associated with the first target configuration file, wherein the entry file associated with the first target configuration file comprises routing configuration corresponding to the page set, and the second application interface is an interface for receiving the initialization information. The embodiment can simply and effectively enable the related application to configure the page set by utilizing the conversion file.

Description

Inlet file generation method, device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for generating an entry file.
Background
With the rapid development of mobile phone software (APP), APP navigation design can be said to be an important link in the mobile APP development process. Currently, application Navigation on various mobile terminals often applies a reactive Navigation (reactive Navigation) scheme.
However, when the exact Navigation scheme is adopted to introduce the page set that the target application wants to use, the following technical problems often exist:
firstly, pages used by part of applications are required to be introduced into an entry file and packaged through stack routing, so that the process is complicated, and repeated operation is required to be performed every time one page is added.
Secondly, the target position navigation bars used by part of applications are all required to be introduced into the entry file and packaged through stack routing, so that the process is complicated.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose an entry file generation method, apparatus, device, and computer-readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide an entry file generation method, the method including: calling the conversion file according to the path information of the conversion file written into a first application interface in the file packaging object, wherein the first application interface is an interface configured with conversion in the file packaging object; generating a first source file which corresponds to a first target configuration file of a page set included in the target application and has a writing format meeting a first target condition by using the conversion file; and modifying initialization information of an initial entry file written into a second application interface in the file packaging object by using the conversion file according to the first source file to obtain an entry file associated with the first target configuration file, wherein the entry file associated with the first target configuration file comprises a route configuration corresponding to the page set, and the second application interface is an interface for receiving the initialization information.
In a second aspect, some embodiments of the present disclosure provide an entry file generating apparatus, the apparatus including: the calling unit is configured to call the conversion file according to the path information of the conversion file written into a first application interface in the file packaging object, wherein the first application interface is an interface configured with conversion in the file packaging object; a generating unit configured to generate, using the conversion file, a first source file whose writing format satisfies a first target condition, corresponding to a first target configuration file of a page set included in a target application; and a modifying unit configured to modify, according to the first source file, initialization information of an initial entry file written into a second application interface in the file packaging object by using the conversion file, to obtain an entry file associated with the first target configuration file, where the entry file associated with the first target configuration file includes a routing configuration corresponding to the page set, and the second application interface is an interface that receives the initialization information.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method as in any of the first aspects.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements a method as in any of the first aspects.
The above embodiments of the present disclosure have the following advantages: the method for generating the portal file according to some embodiments of the present disclosure can simply and quickly enable an application to configure a required page. Specifically, the inventors found that the reason why the page configuration is excessively cumbersome is that: the pages used by part of applications are all required to be introduced into the entry file and encapsulated through stack routing, so that the process is complicated, and repeated operation is required to be performed every time one page is added. Based on this, the portal file generation method of some embodiments of the present disclosure calls the conversion file through path information of the conversion file written to the first application interface. Further, the conversion file is utilized to convert the first target configuration file of the page set included in the target application into a source file format which can be identified by the platform. Finally, according to the first source file, the initialization information of the initial entry file written into the second application interface in the file packaging object is modified by using the conversion file, so as to obtain the entry file associated with the first target configuration file. The configuration page is repeatedly operated to be converted into one configuration operation, so that the application can rapidly and effectively configure the page to be displayed.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of one application scenario diagram of an entry file generation method of some embodiments of the present disclosure;
FIG. 2 is a flow chart of some embodiments of an entry file generation method according to the present disclosure;
FIG. 3 is a flow chart of further embodiments of an entry file generation method according to the present disclosure;
FIG. 4 is a schematic illustration of an application scenario diagram for bottom navigation in an entry file generation method according to the present disclosure;
FIG. 5 is a schematic diagram of the structure of some embodiments of an entry file generation device according to the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of an application scenario diagram of an entry file generation method of some embodiments of the present disclosure.
As shown in fig. 1, the computing device 101 may first call the conversion file 104 according to the path information 103 of the conversion file 104 written to the first application interface 102 in the file package object. The first application interface 102 is an interface for configuring conversion in the file package object. In this application scenario, the conversion file 104 may be a "transducer. Js file". The path information 103 may be "/transformers. Then, using the conversion file 104 described above, a first source file 108 whose written format satisfies the first target condition corresponding to the first target configuration file 107 of the page set included in the target application is generated. Finally, according to the first source file 108, the initialization information 106 of the initial portal file written to the second application interface 105 in the file package object is modified by using the conversion file 104, so as to obtain a portal file 109 associated with the first target configuration file. Wherein the entry file 109 associated with the first target configuration file includes a routing configuration corresponding to the page set, and the second application interface 105 is an interface for receiving the initialization information.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster of multiple servers or electronic devices, or as a single server or single electronic device. When computing device 101 is embodied as software, it may be implemented as a plurality of software or software modules, for example, to provide distributed services, or as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of computing devices 101 in fig. 1 is merely illustrative. There may be any number of computing devices 101 as desired for an implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of an entry file generation method according to the present disclosure is shown. The method for generating the entry file comprises the following steps:
step 201, calling the conversion file according to the path information of the conversion file of the first application interface in the written file packaging object.
In some embodiments, the execution body of the portal file generating method (e.g., the electronic device 101 shown in fig. 1) may call the above-described conversion file according to path information of the conversion file according to the first application interface in the write file packaging object. The first application interface is an interface for configuration conversion in the file packaging object. The file packing object may be a module packing tool (meta). The meta may be a high-level programming language (JavaScript, JS) packaging tool tailored to the real Native. Further, meta is a JavaScript packaging tool for real Native, and returns a separate JavaScript file with the entry file (entry file) and some configurations as parameters. The JavaScript file contains the written JavaScript code and dependency information. The first application interface may be a babel transform path: require. The conversion file is used for converting the initial entry file into an entry file associated with a configuration file. The conversion file may also convert the configuration file into a source file whose written format satisfies a predetermined condition.
In some optional implementations of some embodiments, the first target profile of the set of profiles and the set of pages included in the target application is obtained. The first target configuration file may store a file of the page set.
Step 202, generating a first source file with writing format meeting a first target condition corresponding to a first target configuration file of a page set included in a target application by using the conversion file.
In some embodiments, the execution body may generate, using the conversion file, a first source file corresponding to a first target configuration file of a page set included in the target application, where a writing format of the first source file satisfies a first target condition. The writing format meeting the first target condition may be a format that is recognizable by the target platform. The first source file may be a result of storing a code written in an assembly language or a high-level language as a file.
And 203, modifying initialization information of an initial entry file written into a second application interface in the file packaging object by using the conversion file according to the first source file to obtain an entry file associated with the first target configuration file.
In some embodiments, the execution body may modify, according to the first source file, initialization information of an initial portal file written to a second application interface in the file package object by using the conversion file, to obtain a portal file associated with the first target configuration file. The entry file associated with the first target configuration file includes a routing configuration corresponding to the page set, and the second application interface is an interface for receiving the initialization information. The initial entry file may be the first file accessed when a program item or system is accessed. In addition, each instruction function may be distributed from the initial entry file, and then find the corresponding module for processing. Some initialization work may also be done on the initial portal file and the initial portal file may call different modules of the framework according to different requests. The second application interface may be module. The routing information of the above pages may be the result of encapsulating the routing of the respective pages in a stack by a frame. The routing configuration corresponding to the page set may be the result information of the package of the routing information of each page in the form of a stack. The initialization information may be basic information related to the initial portal file. As an example, the initialization information may be storage byte size information of the initial entry file.
In some alternative implementations of some embodiments, the steps further include: traversing the page list in the route configuration corresponding to the page set. The page list may be a route information list of the page.
In some optional implementations of some embodiments, the initialization information of the initial portal file includes a source file of the initial portal file, file identification information of the initial portal file, and parameter information of the initial portal file. And modifying the source file of the initial entry file written into the second application interface in the file packaging object by using the conversion file according to the first source file to obtain an entry file associated with the first target configuration file. Wherein the second application interface receives the initialization information based on file identification information in the initialization information. The file identifier of the initial entry file may be path information of the initial entry file. Source file in the above initialization information
Optionally, modifying, according to the first source file, initialization information of an initial entry file written to a second application interface in the file package object by using the conversion file, to obtain an entry file associated with the first target configuration file may include the following steps:
And a first step of generating a route configuration corresponding to the page set by using the conversion file according to the first source file and a pre-created stack navigation method. The previously created stack navigation method may allow the user to go to a new page or return to the original page. Wherein the user starts from the screen, makes a selection and then moves to a new screen. Some form of "back" button is provided to return to the previous selection. The stack navigation method may be a method manually customized by a related art or a method using a system default. As an example, the generation of the above-described routing configuration according to the above-described first source file and the previously created stack navigation method may be implemented by compiling the relevant source file by a relevant technician.
And a second step of modifying the source file in the initialization information according to the route configuration corresponding to the page set to obtain an entry file associated with the first target configuration file. As an example, a route configuration corresponding to the page set may be added to the source file in the initialization information, to obtain an entry file associated with the first target configuration file.
The above embodiments of the present disclosure have the following advantages: the method for generating the portal file according to some embodiments of the present disclosure can simply and quickly enable an application to configure a required page. Specifically, the inventors found that the reason why the page configuration is excessively cumbersome is that: the pages used by part of applications are all required to be introduced into the entry file and encapsulated through stack routing, so that the process is complicated, and repeated operation is required to be performed every time one page is added. Based on this, the portal file generation method of some embodiments of the present disclosure calls the conversion file through path information of the conversion file written to the first application interface. Further, the conversion file is utilized to convert the first target configuration file of the page set included in the target application into a source file format which can be identified by the platform. Finally, according to the first source file, the initialization information of the initial entry file written into the second application interface in the file packaging object is modified by using the conversion file, so as to obtain the entry file associated with the first target configuration file. The configuration page is repeatedly operated to be converted into one configuration operation, so that the application can rapidly and effectively configure the page to be displayed.
With continued reference to FIG. 3, a flow 300 of further embodiments of an entry file generation method according to the present disclosure is shown. The method for generating the entry file comprises the following steps:
step 301, calling the conversion file according to the path information of the conversion file of the first application interface in the writing file packaging object.
Step 302, generating a first source file corresponding to a first target configuration file of a page set included in a target application and having a writing format meeting a first target condition by using the conversion file.
And step 303, according to the first source file, modifying initialization information of an initial entry file written into a second application interface in the file packaging object by using the conversion file to obtain an entry file associated with the first target configuration file.
In some embodiments, the specific implementation of steps 301 to 303 and the technical effects thereof may refer to steps 201 to 203 in those embodiments corresponding to fig. 2, which are not described herein.
And 304, generating a second source file which corresponds to a second target configuration file of the target position navigation bar included in the target application and has a writing format meeting a second target condition by using the conversion file.
In some embodiments, an executing body (e.g., the electronic device 101 shown in fig. 1) may generate, using the conversion file, a second source file in a writing format that satisfies a second target condition corresponding to a second target configuration file of a target location navigation bar included in the target application. The target position navigation bar may be a bottom navigation bar.
As an example, as shown in fig. 4, there is a bottom navigation bar 402 on the target page 401. The bottom navigation bar 402 includes a tag 4021, a tag 4022, a tag 4023, and a tag 4024. The tag 4021 may be a "home page". The tag 4022 may be a "video". The tag 4023 may be "music". The tag 4024 may be "live". When the target user clicks on a different tab in the bottom navigation bar 402, different page content is displayed. In the present application scenario, when the target user clicks the tab 4021, the page displays the video area 403, the music area 404, and the live broadcast area 405. Wherein, the video area 403 includes: video 1, video 2, video 3. The music area 404 includes music 1, music 2, and music 3. The live broadcast area 405 includes: live 1, live 2, live 3, live 4, live 5, live 6.
In this application scenario, the second target configuration file may be page content information and page layout information displayed by clicking each tab in the bottom navigation bar.
And step 305, modifying the entry file associated with the first target configuration file by using the conversion file according to the second source file to obtain the entry file associated with the second target configuration file.
In some embodiments, the execution body may modify, according to the second source file, the entry file associated with the first target configuration file using the conversion file, to obtain the entry file associated with the second target configuration file. The entry file associated with the second target configuration file includes a routing configuration corresponding to the target location navigation bar. The route configuration corresponding to the target location navigation bar may be route configuration information of a page corresponding to the target location navigation bar.
In some optional implementations of some embodiments, modifying the entry file associated with the first target configuration file according to the second source file using the conversion file to obtain the entry file associated with the second target configuration file may include:
And a first step of generating a route configuration corresponding to the target position navigation bar by using the conversion file according to the second source file and a pre-created bottom navigation method. The bottom navigation method can allow a user to click the bottom navigation bar to advance to a new page or return to an original page. Wherein the user starts from the screen, makes a selection and then moves to a new screen. The bottom navigation method may be a method manually customized by a related art or a method using a system default.
And a second step of modifying the entry file associated with the first target configuration file according to the route configuration corresponding to the target position navigation bar to obtain an entry file associated with the second target configuration file. As an example, the route configuration corresponding to the target location navigation bar may be added to the initialization information corresponding to the entry file associated with the first target configuration file, to obtain the entry file associated with the second target configuration file.
In some optional implementations of some embodiments, before the transferring the transfer file according to the path information of the transfer file of the first application interface in the write file package object, the method further includes the following steps: and acquiring the second target configuration file of the target position navigation bar included in the configuration file set and the target application.
The embodiment of the disclosure solves the technical problem mentioned in the background art that the target position navigation bar used by partial application is required to be introduced in an entry file and is encapsulated through stack routing, and the process is complex. In order to solve the above technical problems, the portal file generating method of some embodiments of the present disclosure calls a conversion file through path information of the conversion file written to a first application interface. And further, converting a second target configuration file of a target position navigation bar included in the target application into a source file format which can be identified by a platform by using the conversion file. Finally, the entry file associated with the first target configuration file is modified according to the second source file by using the conversion file to obtain the entry file associated with the second target configuration file. The configuration target position navigation bar is subjected to repeated operation to be converted into one-time configuration operation, so that the application can rapidly and dynamically configure the target position navigation bar to be displayed.
With continued reference to fig. 5, as an implementation of the method described above for each of the above figures, the present disclosure provides some embodiments of an entry file generation apparatus, which correspond to those described above for fig. 2, and which are particularly applicable in a variety of electronic devices.
As shown in fig. 5, the entry file generation apparatus 500 of some embodiments includes: a calling unit 501, a generating unit 502 and a modifying unit 503. The calling unit 501 is configured to call the conversion file according to the path information of the conversion file written into the first application interface in the file packaging object, where the first application interface is an interface configured with conversion in the file packaging object. The generating unit 502 is configured to generate, using the above-described conversion file, a first source file whose writing format satisfies a first target condition, corresponding to a first target configuration file of a page set included in a target application. The modifying unit 503 is configured to modify, according to the first source file, initialization information of an initial entry file written into a second application interface in the file package object by using the conversion file, to obtain an entry file associated with the first target configuration file, where the entry file associated with the first target configuration file includes a routing configuration corresponding to the page set, and the second application interface is an interface that receives the initialization information.
In some alternative implementations of some embodiments, the apparatus 500 may further include: traversing unit (not shown in the figure). The traversing unit may be further configured to traverse the page list in the routing configuration corresponding to the page set.
In some alternative implementations of some embodiments, the apparatus 500 may further include: an acquisition unit (not shown in the figure). Wherein the obtaining unit may be configured to obtain the first target profile of the set of profiles and the set of pages included in the target application.
In some optional implementations of some embodiments, the initialization information of the initial portal file includes a source file of the initial portal file, file identification information of the initial portal file, and parameter information of the initial portal file; the modification unit 503 may be further configured to: and modifying the source file of the initial entry file written into the second application interface in the file packaging object by using the conversion file according to the first source file to obtain an entry file associated with the first target configuration file, wherein the second application interface receives the initialization information based on the file identification information in the initialization information.
In some alternative implementations of some embodiments, the modification unit 503 may be further configured to: generating a routing configuration corresponding to the page set by using the conversion file according to the first source file and a pre-created stack navigation method; and modifying the source file of the initialization information according to the route configuration corresponding to the page set to obtain an entry file associated with the first target configuration file.
In some alternative implementations of some embodiments, the apparatus 500 may further include: a generation unit and a modification unit (not shown in the figure). The generating unit may be further configured to generate, using the conversion file, a second source file whose writing format satisfies a second target condition, corresponding to a second target configuration file of a target position navigation bar included in the target application. The modifying unit may be configured to modify, according to the second source file, the entry file associated with the first target configuration file by using the conversion file, to obtain an entry file associated with the second target configuration file, where the entry file associated with the second target configuration file includes a routing configuration corresponding to the target location navigation bar.
In some alternative implementations of some embodiments, the apparatus 500 may further include: an acquisition unit (not shown in the figure). The obtaining unit may be further configured to obtain the second target configuration file of the target location navigation bar included in the target application in the configuration file set.
In some optional implementations of some embodiments, the modification unit may be further configured to: generating a route configuration corresponding to the target position navigation bar by using the conversion file according to the second source file and a pre-created bottom navigation method; and modifying the entry file associated with the first target configuration file according to the route configuration corresponding to the target position navigation bar to obtain the entry file associated with the second target configuration file.
It will be appreciated that the elements described in the apparatus 500 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting benefits described above with respect to the method are equally applicable to the apparatus 500 and the units contained therein, and are not described in detail herein.
Referring now to FIG. 6, a schematic diagram of an electronic device (e.g., computing device in FIG. 1) 600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 6 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some 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 shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 609, or from storage device 608, or from ROM 602. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that, in some embodiments of the present disclosure, the computer readable medium may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 some embodiments of the present disclosure, 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 some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be embodied in the apparatus; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: calling the conversion file according to the path information of the conversion file written into a first application interface in the file packaging object, wherein the first application interface is an interface configured with conversion in the file packaging object; generating a first source file which corresponds to a first target configuration file of a page set included in the target application and has a writing format meeting a first target condition by using the conversion file; and modifying initialization information of an initial entry file written into a second application interface in the file packaging object by using the conversion file according to the first source file to obtain an entry file associated with the first target configuration file, wherein the entry file associated with the first target configuration file comprises a route configuration corresponding to the page set, and the second application interface is an interface for receiving the initialization information.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 disclosure. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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 units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a determination unit, a calling unit, a first generation unit, and a second generation unit. The names of these units do not limit the unit itself in some cases, for example, the calling unit may also be described as "a unit that calls the above-described conversion file according to the path information of the conversion file written to the first application interface in the file package object".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (11)

1. An entry file generation method, comprising:
calling a conversion file according to path information of the conversion file, written into a first application interface in a file packaging object, wherein the first application interface is a conversion interface configured in the file packaging object;
generating a first source file which corresponds to a first target configuration file of a page set included in a target application and has a writing format meeting a first target condition by utilizing the conversion file, wherein the first target configuration file is a file for storing the page set;
and modifying initialization information of an initial entry file written into a second application interface in the file packaging object by utilizing the conversion file according to the first source file to obtain an entry file associated with the first target configuration file, wherein the entry file associated with the first target configuration file comprises route configuration corresponding to the page set, the second application interface is an interface for receiving the initialization information, and the route configuration corresponding to the page set is result information of packaging route information of each page in a stack form.
2. The method of claim 1, wherein the method further comprises:
Traversing the page list in the route configuration corresponding to the page set.
3. The method of claim 1, wherein after the transferring the file according to the path information of the transferring file of the first application interface in the writing file packing object is called, the method further comprises:
and acquiring the first target configuration file of the page set included in the configuration file set and the target application.
4. The method of claim 1, wherein the initialization information of the initial portal file includes a source file of the initial portal file, file identification information of the initial portal file, and parameter information of the initial portal file; and
and modifying, according to the first source file, initialization information of an initial entry file written into a second application interface in the file packaging object by using the conversion file to obtain an entry file associated with the first target configuration file, where the modification includes:
and modifying the source file of the initial entry file written into the second application interface in the file packaging object by utilizing the conversion file according to the first source file to obtain an entry file associated with the first target configuration file, wherein the second application interface receives the initialization information based on the file identification information in the initialization information.
5. The method according to claim 4, wherein modifying, according to the first source file, initialization information of an initial portal file written to a second application interface in the file package object by using the conversion file, to obtain a portal file associated with the first target configuration file includes:
generating a routing configuration corresponding to the page set by using the conversion file according to the first source file and a pre-created stack navigation method;
and modifying the source file of the initial entry file according to the route configuration corresponding to the page set to obtain an entry file associated with the first target configuration file.
6. The method of claim 1, wherein the method further comprises:
generating a second source file which corresponds to a second target configuration file of a target position navigation bar included in the target application and has a writing format meeting a second target condition by utilizing the conversion file;
and modifying the entry file associated with the first target configuration file by using the conversion file according to the second source file to obtain an entry file associated with the second target configuration file, wherein the entry file associated with the second target configuration file comprises a route configuration corresponding to the target position navigation bar.
7. The method of claim 6, wherein modifying the entry file associated with the first target profile with the conversion file according to the second source file to obtain the entry file associated with the second target profile comprises:
generating a route configuration corresponding to the target position navigation bar by utilizing the conversion file according to the second source file and a pre-created bottom navigation method;
and modifying the entry file associated with the first target configuration file according to the route configuration corresponding to the target position navigation bar to obtain the entry file associated with the second target configuration file.
8. The method of claim 6, wherein after the transferring the file according to the path information of the transferring file of the first application interface in the writing file packing object is called, the method further comprises:
and acquiring the second target configuration file of the target position navigation bar included in the configuration file set and the target application.
9. An entry file generation device comprising:
the calling unit is configured to call the conversion file according to the path information of the conversion file written into a first application interface in the file packaging object, wherein the first application interface is an interface for configuring conversion in the file packaging object;
A generating unit configured to generate, using the conversion file, a first source file corresponding to a first target configuration file of a page set included in a target application, where the first target configuration file is a file storing the page set, and a writing format of the first source file satisfies a first target condition;
and the modification unit is configured to modify initialization information of an initial entry file written into a second application interface in the file packaging object by utilizing the conversion file according to the first source file to obtain an entry file associated with the first target configuration file, wherein the entry file associated with the first target configuration file comprises route configuration corresponding to the page set, the second application interface is an interface for receiving the initialization information, and the route configuration corresponding to the page set is result information of packaging route information of each page in a stack form.
10. An electronic device, comprising:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
11. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-8.
CN202011311677.9A 2020-11-20 2020-11-20 Inlet file generation method, device, electronic equipment and computer readable medium Active CN112445517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011311677.9A CN112445517B (en) 2020-11-20 2020-11-20 Inlet file generation method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011311677.9A CN112445517B (en) 2020-11-20 2020-11-20 Inlet file generation method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112445517A CN112445517A (en) 2021-03-05
CN112445517B true CN112445517B (en) 2024-02-02

Family

ID=74737070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011311677.9A Active CN112445517B (en) 2020-11-20 2020-11-20 Inlet file generation method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112445517B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101592A (en) * 2006-07-04 2008-01-09 联想(北京)有限公司 File format automatic conversion method and device
CN109739604A (en) * 2018-12-28 2019-05-10 北京城市网邻信息技术有限公司 Page rendering method, apparatus, server and storage medium
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN111443908A (en) * 2020-03-19 2020-07-24 深圳市震有软件科技有限公司 vue method, device, equipment and medium for realizing route interaction of multiple independent pages
CN111680253A (en) * 2020-06-08 2020-09-18 南京领行科技股份有限公司 Page application data packet generation method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9959114B2 (en) * 2015-03-16 2018-05-01 Microsoft Technology Licensing, Llc Representation of customizable types in a development environment
CN108287917B (en) * 2018-02-13 2020-03-10 Oppo广东移动通信有限公司 File opening method and device, storage medium and electronic equipment
US11050613B2 (en) * 2018-12-06 2021-06-29 HashiCorp Generating configuration files for configuring an information technology infrastructure
WO2020231838A1 (en) * 2019-05-10 2020-11-19 Nvoq Incorporated Systems, methods, and apparatus for asynchronous speech to text data processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101592A (en) * 2006-07-04 2008-01-09 联想(北京)有限公司 File format automatic conversion method and device
CN109739604A (en) * 2018-12-28 2019-05-10 北京城市网邻信息技术有限公司 Page rendering method, apparatus, server and storage medium
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN111443908A (en) * 2020-03-19 2020-07-24 深圳市震有软件科技有限公司 vue method, device, equipment and medium for realizing route interaction of multiple independent pages
CN111680253A (en) * 2020-06-08 2020-09-18 南京领行科技股份有限公司 Page application data packet generation method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112445517A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
CN110489323B (en) Visual RPC API debugging method, device, medium and equipment
CN112286529A (en) Development method, device and equipment of front-end page and storage medium
CN111581555B (en) Document loading method, device, equipment and storage medium
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN111324376B (en) Function configuration method, device, electronic equipment and computer readable medium
CN114489896B (en) Content display method and device, storage medium and electronic equipment
CN112965713B (en) Development method, device, equipment and storage medium of visual editor
CN113126985B (en) Method, apparatus, electronic device and computer readable medium for page rendering
CN111612434B (en) Method, apparatus, electronic device and medium for generating processing flow
CN109669720B (en) Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN112445517B (en) Inlet file generation method, device, electronic equipment and computer readable medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111753238A (en) Data mapping method and device and electronic equipment
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN110618811A (en) Information presentation method and device
CN113296771B (en) Page display method, device, equipment and computer readable medium
CN111309323B (en) Parameter initialization method and device and electronic equipment
CN111008178B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN113709171A (en) Method and device for cross-component state communication
CN112346728B (en) Device adaptation method, apparatus, device and computer readable medium
CN111831263B (en) Method, apparatus, electronic device and computer readable medium for data processing
CN112688863B (en) Gateway data processing method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant