CN112445517A - Portal file generation method and device, electronic equipment and computer readable medium - Google Patents

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

Info

Publication number
CN112445517A
CN112445517A CN202011311677.9A CN202011311677A CN112445517A CN 112445517 A CN112445517 A CN 112445517A CN 202011311677 A CN202011311677 A CN 202011311677A CN 112445517 A CN112445517 A CN 112445517A
Authority
CN
China
Prior art keywords
file
target
conversion
entry
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.)
Granted
Application number
CN202011311677.9A
Other languages
Chinese (zh)
Other versions
CN112445517B (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

Images

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 a portal file generation method and device, electronic equipment and a computer readable medium. One embodiment of the method comprises: 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 meets a first target condition in a writing format by using the conversion file; 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 an entry file associated with the first target configuration file, wherein the entry file associated with the first target configuration file comprises the 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 relevant application to configure the page set by utilizing the conversion file.

Description

Portal file generation method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for generating an entry file, electronic equipment and a computer readable medium.
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 (read Navigation) scheme.
However, when the read Navigation scheme is adopted to introduce a page set that a target application wants to use, the following technical problems often exist:
firstly, all the pages used by part of applications need to be introduced into an entry file and encapsulated through stack routing, the process is complicated, and repeated operation is needed when a page is added.
Secondly, the target position navigation bar used by part of applications needs to be introduced into the entry file and is encapsulated through stack routing, and the process is complicated.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary 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 a portal 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 a method for generating a portal file, 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 for 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 a target application and meets a first target condition in a writing format by using the conversion file; 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, wherein the entry file associated with the first target configuration file comprises a routing 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, including: a calling unit, configured to call the conversion file according to path information of the conversion file written into a first application interface in a file packaging object, where the first application interface is an interface configured for 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 and having a writing format satisfying a first target condition; a modifying unit, configured to modify, according to the first source file, initialization information of an initial entry file written in a second application interface in the file packaging object by using the conversion file, so as 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 for receiving 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 a method as in any one of the first aspects.
In a fourth aspect, some embodiments of the 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 one of the first aspect.
The above embodiments of the present disclosure have the following beneficial effects: the portal file generation method of some embodiments of the present disclosure can simply and quickly enable the application to configure the required page. Specifically, the inventors found that the reason for making the page configuration too cumbersome is: the pages used by part of applications are all required to be introduced into the entry file and are packaged through stack routing, the process is complicated, and repeated operation is required when one page is newly added. Based on this, the entry file generating method of some embodiments of the present disclosure calls the conversion file by the path information of the conversion file that has been written to the first application interface. And further, converting the first target configuration file of the page set included by the target application into a source file format which can be identified by the platform by using the conversion file. 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 an entry file associated with the first target configuration file. The configuration page is converted into one-time configuration operation by repeated 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 various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of an application scenario diagram of a portal file generation method of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a portal file generation method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a portal file generation method according to the present disclosure;
FIG. 4 is a schematic diagram of an application scenario for bottom navigation in a portal document generation method according to the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of a portal document generation apparatus 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 is to be understood that the 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 for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the 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 of a portal file generation method according to some embodiments of the present disclosure.
As shown in fig. 1, the computing device 101 may first call the transformation file 104 described above based on the path information 103 of the transformation file 104 written to the first application interface 102 in the file package object. The first application interface 102 is an interface configured to be converted in the file packaging object. In the present application scenario, the conversion file 104 may be a "transform. The path information 103 may be "/transformer. Then, using the above-described conversion file 104, a first source file 108 corresponding to a first target configuration file 107 of a page set included in the target application and having a written format satisfying a first target condition is generated. Finally, according to the first source file 108, the initialization information 106 of the initial entry file written into the second application interface 105 in the file packaging object is modified by using the conversion file 104, so as to obtain an entry file 109 associated with the first target configuration file. 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 composed of a plurality of servers or electronic devices, or may be implemented as a single server or a single electronic device. When the computing device 101 is embodied as software, it may be implemented as multiple pieces of software or software modules, for example, to provide distributed services, or as a single piece of software or software module. And 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 implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a portal file generation method in accordance with the present disclosure is shown. The portal file generation method comprises the following steps:
step 201, the conversion file is called according to the path information of the conversion file written into the first application interface in the file packaging object.
In some embodiments, the execution subject of the entry file generation method (e.g., the electronic device 101 shown in fig. 1) may call the conversion file according to the path information of the conversion file according to the first application interface written in the file package object. The first application interface is an interface configured and converted in the file packaging object. The above-mentioned file packing object may be a module packing tool (metro). The metro may be a high level programming language (JavaScript, JS) packaging tool tailored for reach Native. Further, meta is a JavaScript packaging tool for the read Native, and returns a single JavaScript file with an 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 babeltransformer path: reserve (). The conversion file is used for converting the initial entry file into an entry file associated with a configuration file. The conversion file can also convert the configuration file into a source file with a writing format meeting 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, corresponding to a first target configuration file of a page set included in a target application, of which the writing format meets a first target condition 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 and having a writing format satisfying a first target condition. The writing format satisfying the first target condition may be a writing format recognizable by the target platform. The first source file may be a result of saving codes written in an assembly language or a high-level language as a file.
Step 203, according to the first source file, modifying the initialization information of the initial entry file written into the second application interface in the file packaging object by using the conversion file, so as 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 entry file written to the second application interface in the file package object by using the conversion file, so as to obtain an entry 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 a program item or a file that is first accessed when the system is requested to be accessed. In addition, each instruction function can be distributed from the initial entry file and then the corresponding module is found for processing. Some initialization work may also be performed in the initial entry file and the initial entry file may call different modules of the framework upon different requests. The second application interface may be a module. The routing information of the pages may be a result of encapsulating routes of the respective pages in the form of a stack through the frame. The routing configuration corresponding to the page set may be result information of encapsulation of routing information of each page in the form of a stack. The initialization information may be basic information related to an initial entry file. As an example, the initialization information may be storage byte size information of the initial entry file.
In some optional implementations of some embodiments, the steps further comprise: and traversing the page list in the routing configuration corresponding to the page set. The page list may be a routing information list of the page.
In some optional implementations of some embodiments, the initialization information of the initial entry file includes a source file of the initial entry file, file identification information of the initial entry file, and parameter information of the initial entry 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 identification of the initial entry file may be path information of the initial entry file. Source file in the initialization information
Optionally, the modifying, according to the first source file and by using the conversion file, the initialization information of the initial entry file written into the second application interface in the file packaging object to obtain the entry file associated with the first target configuration file may include the following steps:
first, according to the first source file and a pre-created stack navigation method, a routing configuration corresponding to the page set is generated by using the conversion file. The pre-created stack navigation method described above may allow the user to proceed to a new page or return to the original page. Where the user starts with a 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 above stack navigation method may be a method manually customized by a person skilled in the art or a method using a default of the system. As an example, the above-mentioned routing configuration may be generated by a related technician compiling related source files to implement the above-mentioned first source file and a pre-created stack navigation method.
And secondly, modifying the source file in the initialization information according to the routing configuration corresponding to the page set to obtain an entry file associated with the first target configuration file. As an example, the routing configuration corresponding to the set of pages may be added to the source file in the initialization information, resulting in an entry file associated with the first target configuration file.
The above embodiments of the present disclosure have the following beneficial effects: the portal file generation method of some embodiments of the present disclosure can simply and quickly enable the application to configure the required page. Specifically, the inventors found that the reason for making the page configuration too cumbersome is: the pages used by part of applications are all required to be introduced into the entry file and are packaged through stack routing, the process is complicated, and repeated operation is required when one page is newly added. Based on this, the entry file generating method of some embodiments of the present disclosure calls the conversion file by the path information of the conversion file that has been written to the first application interface. And further, converting the first target configuration file of the page set included by the target application into a source file format which can be identified by the platform by using the conversion file. 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 an entry file associated with the first target configuration file. The configuration page is converted into one-time configuration operation by repeated 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 a portal file generation method according to the present disclosure is shown. The portal file generation method comprises the following steps:
step 301, calling the conversion file according to the path information of the conversion file written into the first application interface in the file packaging object.
Step 302, using the above converted file, a first source file is generated, 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.
Step 303, according to the first source file, modifying the initialization information of the initial entry file written into the second application interface in the file packaging object by using the conversion file, so as to obtain an entry file associated with the first target configuration file.
In some embodiments, the specific implementation and technical effects of steps 301 and 303 can refer to steps 201 and 203 in the embodiments corresponding to fig. 2, which are not described herein again.
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 agent (e.g., the electronic device 101 shown in fig. 1) may generate, by using the conversion file, a second source file corresponding to a second target configuration file of a target position navigation bar included in the target application and having a writing format satisfying a second target condition. 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 tabs 4021, 4022, 4023, and 4024. The label 4021 may be a "top page". The tag 4022 may be "video". The tag 4023 may be "music". The tag 4024 described above 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 zone 403, the music zone 404, and the live zone 405. 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 zone 405 includes: live broadcast 1, live broadcast 2, live broadcast 3, live broadcast 4, live broadcast 5 and live broadcast 6.
It should be noted that, in the 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.
Step 305, modifying the entry file associated with the first target configuration file according to the second source file by using the conversion file to obtain an entry file associated with the second target configuration file.
In some embodiments, the execution body may modify the entry file associated with the first target configuration file according to the second source file by using the conversion file, so as to obtain an entry file associated with the second target configuration file. Wherein the entry file associated with the second target configuration file includes a routing configuration corresponding to the target position navigation bar. The routing configuration corresponding to the target position navigation bar may be routing configuration information of a page corresponding to the target position navigation bar.
In some optional implementations of some embodiments, the modifying, according to the second source file, the entry file associated with the first target configuration file by using the conversion file to obtain the entry file associated with the second target configuration file may include:
and step one, generating a routing configuration corresponding to the target position navigation bar by using the conversion file according to the second source file and a pre-established bottom navigation method. The bottom navigation method may allow the user to click the bottom navigation bar to advance to a new page or return to the original page. Where the user starts with a screen, makes a selection, and then moves to a new screen. The bottom navigation method may be a method manually defined by a related art person or a method using a default of the system.
And secondly, modifying the entry file associated with the first target configuration file according to the routing configuration corresponding to the target position navigation bar to obtain an entry file associated with the second target configuration file. For example, the routing configuration corresponding to the target position navigation bar may be added to the initialization information corresponding to the entry file associated with the first target configuration file, so as to obtain an entry file associated with the second target configuration file.
In some optional implementation manners of some embodiments, before the invoking of the conversion file according to the path information of the conversion file written into the first application interface in the file packaging 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, i.e., the target position navigation bar used by part of applications is required to be introduced into the entry file and encapsulated through the stack route, and the process is relatively complicated. In order to solve the above technical problem, an entry file generating method of some embodiments of the present disclosure calls a conversion file by path information of the conversion file that has been written in 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, according to the second source file, modifying 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. The configuration target position navigation bar is converted into one-time configuration operation by repeated operation, so that the target position navigation bar to be displayed can be rapidly and dynamically configured by the application.
With continuing reference to fig. 5, as an implementation of the above-described method for the above-described figures, the present disclosure provides some embodiments of a portal file generation apparatus, which correspond to those of the method embodiments described above for fig. 2, and which may be applied in various electronic devices.
As shown in fig. 5, the portal file generation apparatus 500 of some embodiments includes: calling unit 501, generating unit 502 and 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 for conversion in the file packaging object. The generating unit 502 is configured to generate, using the above-described conversion file, a first source file corresponding to a first target configuration file of a page set included in a target application, the writing format of which satisfies a first target condition. The modifying unit 503 is configured to modify, according to the first source file, the initialization information of an initial entry file written into a second application interface in the file packaging object by using the conversion file, so as 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 for receiving the initialization information.
In some optional implementations of some embodiments, the apparatus 500 may further include: traverse unit (not shown in the figure). The traversal unit may be further configured to traverse the page list in the routing configuration corresponding to the page set.
In some optional implementations of some embodiments, the apparatus 500 may further include: an acquisition unit (not shown in the figure). The obtaining unit may be configured to obtain the first target profile of a set of profiles and a set of pages included in the target application.
In some optional implementations of some embodiments, the initialization information of the initial entry file includes a source file of the initial entry file, file identification information of the initial entry file, and parameter information of the initial entry 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 optional implementations of some embodiments, the modifying 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-established stack navigation method; and modifying the source file of the initialization information according to the routing configuration corresponding to the page set to obtain an entry file associated with the first target configuration file.
In some optional implementations of some embodiments, the apparatus 500 may further include: a generating unit and a modifying unit (not shown in the figure). The generating unit may be further configured to generate, by using the conversion file, a second source file corresponding to a second target configuration file of the target position navigation bar included in the target application, the second source file having a writing format satisfying a second target condition. The modification 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, so as 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 position navigation bar.
In some optional 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 position navigation bar included in the configuration file set and the target application.
In some optional implementations of some embodiments, the modifying unit may be further configured to: generating a routing configuration corresponding to the target position navigation bar by using the conversion file according to the second source file and a pre-established bottom navigation method; and modifying the entry file associated with the first target configuration file according to the routing configuration corresponding to the target position navigation bar to obtain an entry file associated with the second target configuration file.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to FIG. 6, a block diagram of an electronic device (e.g., the computing device of FIG. 1) 600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with 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 necessary 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 via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, 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 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams 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 illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may 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 some embodiments of the 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, 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: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications 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 network.
The computer readable medium may be embodied in the apparatus; or may exist separately without being assembled 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 for 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 a target application and meets a first target condition in a writing format by using the conversion file; 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, wherein the entry file associated with the first target configuration file comprises a routing 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 embodiments of the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
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 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 software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be 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 form a limitation to the unit itself in some cases, for example, the call unit may also be described as "a unit that calls the above 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 herein above 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: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology 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-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (11)

1. A portal file generation method comprises the following steps:
calling the 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 an interface for configuring 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 a target application and meets a first target condition in a writing format by using the conversion file;
according to the first source file, the initialization information of an initial entry file written into a second application interface in the file packaging object is modified by using the conversion file, so that an entry file associated with the first target configuration file is obtained, wherein the entry file associated with the first target configuration file comprises the routing configuration corresponding to the page set, and the second application interface is an interface for receiving the initialization information.
2. The method of claim 1, wherein the method further comprises:
and traversing the page list in the routing configuration corresponding to the page set.
3. The method of claim 1, wherein after said invoking the transformation file according to path information of the transformation file written to the first application interface in the file wrapper object, the method further comprises:
and acquiring the first target configuration file of the page set included by the target application in the configuration file set.
4. The method of claim 1, wherein the initialization information of the initial entry file includes a source file of the initial entry file, file identification information of the initial entry file, and parameter information of the initial entry 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, including:
and according to the first source file, modifying a source file 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, wherein the second application interface receives the initialization information based on file identification information in the initialization information.
5. The method of claim 4, wherein the modifying initialization information of an initial entry file written to a second application interface in the file wrapper object using the transformation file according to the first source file to obtain an entry file associated with the first target configuration file comprises:
generating a routing configuration corresponding to the page set by using the conversion file according to the first source file and a pre-established stack navigation method;
and modifying the source file of the initial entry file according to the routing 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 meets a second target condition in a writing format by using the conversion file;
and according to the second source file, modifying 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, wherein the entry file associated with the second target configuration file comprises the routing configuration corresponding to the target position navigation bar.
7. The method of claim 6, wherein said modifying the entry file associated with the first target configuration file using the transformation file according to the second source file to obtain the entry file associated with the second target configuration file comprises:
generating a routing configuration corresponding to the target position navigation bar by using the conversion file according to the second source file and a pre-established bottom navigation method;
and modifying the entry file associated with the first target configuration file according to the routing configuration corresponding to the target position navigation bar to obtain an entry file associated with the second target configuration file.
8. The method of claim 6, wherein after said invoking the transformation file according to path information of the transformation file written to the first application interface in the file wrapper object, the method further comprises:
and acquiring the second target configuration file of the target position navigation bar included by the target application in the configuration file set.
9. A portal file generation apparatus comprising:
the calling unit is configured to call the 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 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, the first source file having a writing format satisfying a first target condition;
a modifying unit, configured to modify, according to the first source file, initialization information of an initial entry file written to a second application interface in the file packaging object by using the conversion file, so as 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.
10. An electronic device, comprising:
one or more processors;
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, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one 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 true CN112445517A (en) 2021-03-05
CN112445517B 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 (9)

* 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
US20160274907A1 (en) * 2015-03-16 2016-09-22 Microsoft Technology Licensing, Llc Representation of customizable types in a development environment
CN109739604A (en) * 2018-12-28 2019-05-10 北京城市网邻信息技术有限公司 Page rendering method, apparatus, server and storage medium
US20190251188A1 (en) * 2018-02-13 2019-08-15 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for opening file, and electronic device
US20200186416A1 (en) * 2018-12-06 2020-06-11 HashiCorp Generating configuration files for configuring an information technology infrastructure
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
US20200356342A1 (en) * 2019-05-10 2020-11-12 Nvoq Incorporated Systems, methods, and apparatus for asynchronous speech to text data processing

Patent Citations (9)

* 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
US20160274907A1 (en) * 2015-03-16 2016-09-22 Microsoft Technology Licensing, Llc Representation of customizable types in a development environment
US20190251188A1 (en) * 2018-02-13 2019-08-15 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for opening file, and electronic device
US20200186416A1 (en) * 2018-12-06 2020-06-11 HashiCorp Generating configuration files for configuring an information technology infrastructure
CN109739604A (en) * 2018-12-28 2019-05-10 北京城市网邻信息技术有限公司 Page rendering method, apparatus, server and storage medium
US20200356342A1 (en) * 2019-05-10 2020-11-12 Nvoq Incorporated Systems, methods, and apparatus for asynchronous speech to text data processing
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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AWESOMECPA: "vue项目多页面,多入口,多路由,多主题解决方案(vuecli3)", Retrieved from the Internet <URL:https://blog.csdn.net/cpa0701/article/details/105222546> *
胡桃夹子: "使用Babel转换JavasCript代码", pages 1 - 4, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/118319241> *

Also Published As

Publication number Publication date
CN112445517B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN109062563B (en) Method and device for generating page
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
CN112286529A (en) Development method, device and equipment of front-end page and storage medium
CN111581555B (en) Document loading method, device, equipment and storage medium
CN113031946B (en) Method and device for rendering page component
CN111930534A (en) Data calling method and device and electronic equipment
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN113076294A (en) Information sharing method and device
CN111381899A (en) Method and apparatus for developing target system
CN113760264A (en) Method and device for multiplexing components among multiple applications
CN110807162A (en) Method and device for loading occupation bitmap
CN112416303A (en) Software development kit thermal restoration method and device and electronic equipment
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN110618811B (en) Information presentation method and device
CN113709171B (en) Method and device for cross-component state communication
CN110830427A (en) Method and device for message encoding and message decoding in netty environment
CN112445517B (en) Inlet file generation method, device, electronic equipment and computer readable medium
CN112965713B (en) Development method, device, equipment and storage medium of visual editor
CN111008178B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN109669720B (en) Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN113126985A (en) Method, device, electronic equipment and computer readable medium for page rendering
CN111753238A (en) Data mapping method and device and electronic equipment
CN111240738A (en) File processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant