CN112199094B - Information display method, information display device, electronic equipment and computer readable medium - Google Patents
Information display method, information display device, electronic equipment and computer readable medium Download PDFInfo
- Publication number
- CN112199094B CN112199094B CN202011147084.3A CN202011147084A CN112199094B CN 112199094 B CN112199094 B CN 112199094B CN 202011147084 A CN202011147084 A CN 202011147084A CN 112199094 B CN112199094 B CN 112199094B
- Authority
- CN
- China
- Prior art keywords
- file
- compiling
- information
- conversion
- compiled
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000006243 chemical reaction Methods 0.000 claims abstract description 222
- 238000004806 packaging method and process Methods 0.000 claims abstract description 55
- 230000006870 function Effects 0.000 claims description 127
- 238000012545 processing Methods 0.000 claims description 31
- 230000004044 response Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 9
- 238000011161 development Methods 0.000 claims description 4
- 238000010276 construction Methods 0.000 claims 1
- 230000003252 repetitive effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 8
- 238000012546 transfer Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000012856 packing Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000012858 packaging process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000009795 derivation Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
Embodiments of the present disclosure disclose information display methods, apparatuses, electronic devices, and computer-readable media. One embodiment of the method comprises the following steps: deriving conversion function information from a conversion file based on a compilation file, wherein the conversion function information is used for converting style information included in the compilation file; based on the compiling configuration file and the conversion function information, packaging the compiling file to generate a packaged compiling file, wherein the compiling configuration file comprises conversion plug-in information for converting style information included in the compiling file; and controlling related equipment to display the converted style information included in the packaged compiling file. According to the embodiment, the style information is not required to be written into the compiled file in a mode supported by the selected frame, so that the multiplexing rate of the style information under different frames is improved. And further reduces the repetitive workload of the developer.
Description
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to an information display method, an apparatus, an electronic device, and a computer readable medium.
Background
With the rapid development of computer technology and internet technology, frameworks for developing front-end applications are increasingly diversified. Currently, when style information is displayed, the following modes are generally adopted: and writing the style information into the compiling file according to the mode supported by the selected framework, and rendering the style information in the compiling file to display the style information.
However, when style information is displayed in the above manner, there are often the following technical problems:
firstly, the multiplexing rate of style information under different frames is low, so that the repeated workload of developing personnel is increased;
Second, style information is written for different frames selected, resulting in higher redundancy and weaker structure of style information.
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 information presentation methods, apparatuses, electronic devices, and computer-readable media 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 information presentation method, the method including: deriving conversion function information from a conversion file based on a compilation file, wherein the conversion function information is used for converting style information included in the compilation file; based on the compiling configuration file and the conversion function information, packaging the compiling file to generate a packaged compiling file, wherein the compiling configuration file comprises conversion plug-in information for converting style information included in the compiling file; and controlling related equipment to display the converted style information included in the packaged compiling file.
In a second aspect, some embodiments of the present disclosure provide an information display apparatus, the apparatus comprising: a deriving unit configured to derive conversion function information from a conversion file based on a compilation file, wherein the conversion function information is used for converting style information included in the compilation file; a processing unit configured to perform packaging processing on the compilation file based on a compilation configuration file and the conversion function information to generate a packaged compilation file, wherein the compilation configuration file includes conversion plug-in information for converting style information included in the compilation file; and the control unit is configured to control the related equipment to display the converted style information included in the packaging compiling file.
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 causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
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 the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantages: by the information display method of some embodiments of the present disclosure, the repetitive workload of developers is reduced. Specifically, the reason for increasing the repetitive workload of the developer is that: the style information is required to be written into the compiled file in a mode supported by the selected frame, and the multiplexing rate of the style information under different frames is low. Based on this, the information presentation method of some embodiments of the present disclosure introduces a conversion file through which conversion function information is derived to convert style information. Also because the conversion function information is derived, the compilation file may be packaged based on the compilation configuration file and the conversion function information described above to generate a packaged compilation file. Therefore, the style information is not required to be written into the compiled file in a mode supported by the selected frame, so that the multiplexing rate of the style information under different frames is improved. And further reduces the repetitive workload of the developer.
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.
1-2 Are schematic diagrams of one application scenario of an information presentation method according to some embodiments of the present disclosure;
FIG. 3 is a flow chart of some embodiments of an information presentation method according to the present disclosure;
FIG. 4 is a flow chart of other embodiments of information presentation methods according to the present disclosure;
FIG. 5 is a schematic structural view of some embodiments of an information presentation 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 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-2 are schematic diagrams of one application scenario of an information presentation method of some embodiments of the present disclosure.
As shown in fig. 1, first, the computing device 101 may derive conversion function information 104 from the conversion file 103 based on the compilation file 102. The conversion function information 104 is used for converting style information included in the compiled file 102. The computing device 101 may then perform a packaging process on the compilation file 102 to generate a packaged compilation file 106 based on the compilation configuration file 105 and the transfer function information 104. Wherein the compiling configuration file 105 includes conversion plug-in information for converting style information included in the compiling file 102. Finally, the computing device 101 may control the related device 108 to present the converted style information 107 included in the packaged compiled file 106.
Alternatively, as shown in FIG. 2, the computing device 101 may configure the project file 109. The project files 109 include a preset compiling configuration file 110 and a preset packaging configuration file 111. Alternatively, first, the computing device 101 may add the conversion plug-in information 112 to the preset compilation configuration file 110 described above to generate the compilation configuration file 105. The computing device 101 may then add the converted file path information 113 to the preset packaging profile 111 described above to generate the packaging profile 114.
The computing device 101 may be hardware or software. When the computing device is hardware, the computing device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices listed above. It may be implemented as a plurality of software or software modules, for example, for providing 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 in fig. 1-2 is merely illustrative. There may be any number of computing devices, as desired for an implementation.
With continued reference to fig. 3, a flow 300 of some embodiments of the information presentation method according to the present disclosure is shown. The information display method comprises the following steps:
Step 301, deriving conversion function information from the conversion file based on the compiled file.
In some embodiments, first, an execution subject of the information presentation method (e.g., the computing device 101 shown in fig. 1) may read the file type of the above-described compiled file. Then, the conversion function information corresponding to the file type in the conversion file may be exported to a file of a predetermined format. The conversion function information may be used to convert style information included in the compiled file. The predetermined format may include, but is not limited to: js format, txt format. In practice, the conversion function information may be application code that compiles the conversion function. The compiled file may be a file for compiling application code. In practice, the types of compiled files described above may include, but are not limited to: CSS (CASCADING STYLE SHEETS), cascading style sheet) files, SASS (SYNTACTICALLY AWESOME STYLE SHEETS) files, SCSS (Sassy Style Sheets) files. The style information may be application code compiled for a page style in the compiled file. The conversion file may be a file including conversion function information of different types of compiled files and preset conversion function information of compiled files different from the types. In practice, the file type of the conversion file may be JS (JavaScript) files. For example, the file type of the above-described compiled file may be "CSS file". The conversion file may be a file containing conversion function information of a compiled file of the types "CSS file", "SASS file" and "SCSS file" and preset conversion function information of a compiled file different from the types "CSS file", "SASS file" and "SCSS file" described above. The conversion function information corresponding to the file type "CSS file" in the conversion file may be application program code corresponding to a conversion function having a conversion function name of "cssTransformer". The conversion function may be a "reaction-active-css-transducer" defined as "cssTransformer". The "reaction-native-css-transducer" may be a "Metro transformer" transcoder, which may convert a compiled file into a format (e.g., REACT NATIVE) that is understandable to the target platform, and may be used for transcoding applications at compile time. The execution body may export the application program code to a file in a predetermined format of "js format". Here, the setting of the conversion function name is not limited. Therefore, the corresponding conversion function information can be derived according to the type of the compiling file to convert the style information of the compiling file, and support is provided for converting the style information into the style information under the unified compiling mode of the application program code.
Step 302, based on the compiling configuration file and the conversion function information, packaging the compiling file to generate a packaged compiling file.
In some embodiments, first, the execution body may convert style information of the compiled file into style information in a unified application code compiling manner based on the compiling configuration file and the conversion function information. The compiling configuration file may include conversion plug-in information for converting style information included in the compiling file. The conversion plug-in information may be used for converting style information of the compiled file corresponding to the preset conversion function information. In practice, the execution body may convert the style information of the compiled file into style information in a unified application code compiling manner by using the conversion plug-in information in response to the conversion function information being preset conversion function information. The packaged compiled file may then be generated based on the converted style information. In practice, the execution body may use a packaging application program to perform packaging processing on the converted style information and the compiled file, so as to generate a packaged compiled file. For example, the above-described packaging application may be "Metro (Module packer)". Therefore, the style information can be converted into style information under a unified application program code compiling mode, so that the style information is not required to be written into a compiling file in a mode supported by a selected framework, and the multiplexing rate of the style information under different frameworks is improved.
And 303, controlling related equipment to display the converted style information included in the packing compiling file.
In some embodiments, the execution body may control the related device to display the converted style information included in the packaged compiled file. The related device may be a display device having a display function. In practice, the execution body may first generate a file in a predetermined format using a template engine for Web development through the converted style information. For example, "HTML file". Then, the related device can be controlled to analyze the file to display the web page obtained by analysis. Thus, style information in a unified application code compiling mode can be displayed.
In some alternative implementations of some embodiments, the execution body may configure the project engineering file before step 301. The project engineering files may include a preset compiling configuration file and a preset packaging configuration file. The preset compiling configuration file may be a preset file for configuring the compiling file automatically generated by the selected frame when newly constructing the project. The preset package configuration file may be a preset file for configuring a package compiled file automatically generated by a selected framework during newly-built project engineering. For example, the selected frame may be "REACT NATIVE". In practice, the execution body may configure corresponding configuration parameters of the project file according to the type of the project file. For example, the project engineering file may be a preset packaging configuration file, and the configuration parameter "packaging number information" of the preset packaging configuration file may be configured to be "3". Thus, parameter configuration can be performed for the start-up of project engineering.
In some optional implementations of some embodiments, first, the execution body may add conversion plug-in information to the preset compiling configuration file to generate the compiling configuration file. In practice, the plug-in configuration parameters in the preset compiling configuration file may be configured as the conversion plug-in information to generate the compiling configuration file. For example, the plugin configuration parameter "plugins" in the above-described preset compilation configuration file may be configured to convert plugin information "transform-jsx-to-stylesheet". The conversion plugin information "transform-jsx-to-stylesheet" may be a transcoder, may convert a compiled file into a format (e.g., REACT NATIVE) understandable to the target platform, and may be used for transcoding applications at compile time. Here, specific settings of the plug-in configuration parameters and the conversion plug-in information are not limited. The conversion file path information may then be added to the preset packaging profile to generate a packaging profile. The conversion file path information may be preset file path information of the conversion file in the project engineering. In practice, the conversion file path configuration parameters in the preset package configuration file may be configured as the conversion file path information to generate the package configuration file. For example, the conversion file path configuration parameter "converter/barconverter path" in the above-described preset package configuration file may be configured as conversion file path information "required/reserve ('/converter/js')" to generate the package configuration file. Here, specific settings of the conversion file path configuration parameters and the conversion file path information are not limited. Therefore, plug-in configuration parameters of a preset compiling configuration file and conversion file path configuration parameters of a preset packaging configuration file can be configured.
In some optional implementations of some embodiments, the execution body may add a conversion file to the project based on the conversion file path information. In practice, the execution body may add the conversion file to an address of a file in the project to which the conversion file path information points. For example, the conversion file path information may be "required/resolution ('/transform. Js')", and the execution entity may add the conversion file to the address "/transform. Js" of the file in the project to which the conversion file path information "required/resolution ('/transform. Js')" refers. Therefore, the conversion file can be added to the project engineering, and support is provided for converting style information included in the compiled file.
The above embodiments of the present disclosure have the following advantages: by the information display method of some embodiments of the present disclosure, the repetitive workload of developers is reduced. Specifically, the reason for increasing the repetitive workload of the developer is that: the style information is required to be written into the compiled file in a mode supported by the selected frame, and the multiplexing rate of the style information under different frames is low. Based on this, the information presentation method of some embodiments of the present disclosure introduces a conversion file through which conversion function information is derived to convert style information. Also because the conversion function information is derived, the compilation file may be packaged based on the compilation configuration file and the conversion function information described above to generate a packaged compilation file. Therefore, the style information is not required to be written into the compiled file in a mode supported by the selected frame, so that the multiplexing rate of the style information under different frames is improved. And further reduces the repetitive workload of the developer.
With further reference to fig. 4, a flow 400 of further embodiments of the information presentation method is shown. The flow 400 of the information presentation method includes the following steps:
step 401, determining a file name of the compiled file.
In some embodiments, the execution subject of the information presentation method may determine the file name of the above-described compiled file. The file name may include a file suffix name. In practice, the execution body may determine the file name of the compiled file through a regular expression. For example, the determined file name may be "home. Css". Here, the setting of the file name is not limited.
In response to determining that the conversion function information corresponding to the file name exists in the conversion file, conversion function information corresponding to the file name is derived from the conversion file, step 402.
In some embodiments, the execution body may derive the conversion function information corresponding to the file name from the conversion file in response to determining that the conversion function information corresponding to the file name exists in the conversion file. In practice, first, the execution body may acquire a file suffix name from the file names. Then, it may be determined whether conversion function information corresponding to the file suffix name exists in the conversion file. Then, in response to determining yes, the conversion function information corresponding to the file suffix name may be derived from the conversion file. For example, the file name may be "home. First, the execution body may obtain a file suffix name "css" from the file name "home. Then, it may be determined that conversion function information corresponding to the file suffix name "css" exists in the conversion file. Then, conversion function information corresponding to the file suffix name "css" may be derived from the conversion file.
In some optional implementations of some embodiments, the execution body may derive preset conversion function information from the conversion file in response to determining that conversion function information corresponding to the file name does not exist in the conversion file. In practice, the execution body may derive preset conversion function information from the conversion file in response to determining that conversion function information corresponding to the file suffix name does not exist in the conversion file. For example, the file name may be "home. First, the execution body may acquire a file suffix name "js" from the file name "home. Js". Then, it may be determined that conversion function information corresponding to the file suffix name "js" does not exist in the conversion file. Then, preset conversion function information can be derived from the conversion file.
Through steps 401-402, the file name of the compiled file can be utilized to derive corresponding conversion function information from the conversion file, so as to provide support for converting style information included in the compiled file.
Step 403, converting the compiled file based on the compiled configuration file and the conversion function information to generate a converted compiled file.
In some embodiments, the execution body may perform conversion processing on the compiled file to generate a converted compiled file using the conversion function information and conversion plug-in information in the compiled configuration file in response to the conversion function information being preset conversion function information. The execution body may perform conversion processing on the compiled file using the conversion function information to generate a converted compiled file in response to the conversion function information not being preset conversion function information. As an example, the preset conversion function information may be application code corresponding to a conversion function named "upstreamTransformer" of the conversion function. The above transfer function may be "meta-react-active-babel-transducer" defined as "upstreamTransformer". The "meta-reaction-native-babel-transducer" may be a "Metro transformer" transcoder, which may convert a compiled file into a format (e.g., REACT NATIVE) understandable by the target platform, and may be used for transcoding applications at compile time. The execution body may sequentially perform conversion processing on the compiled file by using an application code corresponding to the conversion function named "upstreamTransformer" of the conversion function and conversion plug-in information "transform-jsx-stylesheet" in the compiled configuration file in response to the conversion function information being the preset conversion function information, so as to generate a converted compiled file. Here, the specific settings of the above-described preset conversion function information and conversion plug-in information are not limited.
In some optional implementations of some embodiments, the executing body may perform conversion processing on the compiled file to generate a converted compiled file by:
The first step, the compiling file is subjected to module division processing, and the compiling file after the module division processing is generated to be used as a module compiling file. For example, the compiled file may be divided into a "navigation bar module", "login window module", and "information list module" according to the function category. For another example, the compiled file may be divided into a "common level module", a "column level module", and a "page level module" according to a scope size of style information in the compiled file. Here, the specific setting of the module division is not limited.
And secondly, converting the module compiling file based on the compiling configuration file and the conversion function information to generate a converted compiling file. In practice, the execution body may perform conversion processing on the module compiled file to generate a conversion compiled file by using the conversion function information and conversion plug-in information in the compiling configuration file in response to the conversion function information being preset conversion function information. The execution body may perform conversion processing on the module compilation file using the conversion function information to generate a conversion compilation file in response to the conversion function information not being preset conversion function information. For example, the conversion function information may be application code corresponding to a conversion function named "cssTransformer" as a conversion function. The execution body may perform conversion processing on the module compiled file by using application program code corresponding to the conversion function named "cssTransformer" in response to the conversion function information not being preset conversion function information, so as to generate a conversion compiled file. Here, the specific setting of the conversion function name is not limited.
Step 404, generating a packed compiled file based on the packed configuration file and the converted compiled file.
In some embodiments, the execution body may generate the packed compiled file based on the packed configuration file and the converted compiled file. Wherein, the package configuration file includes package configuration information. The above-mentioned package configuration information may be configuration parameter information for packaging each module of the conversion compilation file. The package configuration information may include, but is not limited to, at least one of: packaging quantity information and merging module information. The packed number information may be number information obtained by packing the converted compiled file. The merging module information may be configuration information for merging and packaging each module of the converted compiled file.
In some optional implementations of some embodiments, the execution body may perform a packaging process on the converted compiled file to generate at least one module packaged compiled file based on packaging configuration information included in the packaging configuration file. In practice, the conversion compiled file may be packaged according to the combined module information and the package number information in the package configuration information to generate at least one module package compiled file. For example, the modules included in the conversion compilation file may be a "navigation bar module", a "login window module", and an "information list module". The above-mentioned merge module information may be [ [ navigation bar module, information list module ], login window module ]. The packing number information may be [2]. The execution body may package the converted compiled file into "2" packaged compiled files. The navigation bar module and the information list module of the converted compiled file can be combined and packaged into a packaged compiled file. The "login window module" of the converted compiled file may be individually packaged into a packaged compiled file.
The technical scheme is taken as an invention point of the embodiment of the disclosure, and solves the second technical problem mentioned in the background art, namely, the style information is written aiming at different selected frames, so that the redundancy of the style information is higher and the structure is weaker. Factors that lead to higher redundancy and weaker structure of style information are often as follows: style information is written for different selected frames, and the compiled file is not subjected to module division processing. If the above factors are solved, the effects of reducing redundancy of the style information and improving structural property of the style information can be achieved. To achieve this, the present disclosure first introduces a conversion file through which conversion function information is derived to convert style information. Then, the compiled file is subjected to module division processing to generate a module compiled file. The module compilation file is then converted using the derived conversion function information to generate a conversion compilation file. Thus, the conversion compilation file can be packaged with each module in the conversion compilation file to generate a packaged compilation file. The packed compiled file is automatically generated through the original compiled file, so that style information does not need to be written for different selected frames, and redundancy of the style information is reduced. The packed compiled file is generated by the compiled file divided by the modules, so that the structural property of style information included in the packed compiled file is improved. Therefore, redundancy of the style information is reduced, and structural property of the style information is improved.
And step 405, controlling the related equipment to display the converted style information included in the packing compiling file.
In some embodiments, the specific implementation of step 405 and the technical effects thereof may refer to step 303 in those embodiments corresponding to fig. 3, which are not described herein.
As can be seen in fig. 4, the flow 400 of the information presentation method in some embodiments corresponding to fig. 4 embodies the step of expanding the derived transfer function information as compared to the description of some embodiments corresponding to fig. 3. Therefore, the schemes described in the embodiments can use the file name of the compiled file to derive the corresponding conversion function information from the conversion file, so as to provide support for converting the style information included in the compiled file. Meanwhile, the flow 400 of the information presentation method in some embodiments corresponding to fig. 4 embodies the step of expanding the generation of the packed compiled file. Therefore, redundancy of the style information is reduced, and structural property of the style information is improved.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of an information presentation apparatus, which apparatus embodiments correspond to those method embodiments shown in fig. 3, and which apparatus is particularly applicable in various electronic devices.
As shown in fig. 5, the information presentation apparatus 500 of some embodiments includes: a deriving unit 501, a processing unit 502 and a control unit 503. Wherein the deriving unit 501 is configured to derive conversion function information from a conversion file based on a compiled file, wherein the conversion function information is used for converting style information included in the compiled file; the processing unit 502 is configured to perform packaging processing on the compiling file based on the compiling configuration file and the conversion function information to generate a packaged compiling file, wherein the compiling configuration file includes conversion plug-in information for converting style information included in the compiling file; the control unit 503 is configured to control the relevant device to present the converted style information included in the above-described packaging and compiling file.
In an alternative implementation of some embodiments, the deriving unit 501 of the information presentation apparatus 500 may be further configured to: a determination unit and a transfer function information derivation unit (not shown in the figure). Wherein the determining unit is configured to determine a file name of the above-mentioned compiled file. The conversion function information deriving unit is configured to derive the conversion function information corresponding to the file name from the conversion file in response to determining that the conversion function information corresponding to the file name exists in the conversion file.
In an alternative implementation of some embodiments, the deriving unit 501 of the information presentation apparatus 500 further comprises: a preset transfer function information deriving unit (not shown in the figure) configured to derive preset transfer function information from the conversion file in response to determining that transfer function information corresponding to the file name does not exist in the conversion file.
In alternative implementations of some embodiments, the processing unit 502 of the information presentation apparatus 500 may be further configured to: a first generation unit and a second generation unit (not shown in the figure). The first generation unit is configured to perform conversion processing on the compiling file based on the compiling configuration file and the conversion function information to generate a converted compiling file. The second generating unit is configured to generate a packaging compiled file based on the packaging configuration file and the conversion compiled file, wherein the packaging configuration file includes packaging configuration information.
In an alternative implementation of some embodiments, the first generating unit of the processing unit 502 may be further configured to: carrying out module division processing on the compiling file to generate a compiling file after the module division processing as a module compiling file; and converting the module compiling file based on the compiling configuration file and the conversion function information to generate a conversion compiling file.
In an alternative implementation of some embodiments, the second generating unit of the processing unit 502 may be further configured to: and based on the packaging configuration information included in the packaging configuration file, packaging the converted compiling file to generate a packaging compiling file.
In an alternative implementation of some embodiments, before the deriving unit 501 of the information presentation apparatus 500, the information presentation apparatus 500 further comprises: a configuration unit (not shown in the figure) configured to configure project files, wherein the project files include a preset compiling configuration file and a preset packaging configuration file.
In an alternative implementation of some embodiments, the configuration unit may be further configured to: adding the conversion plug-in information to the preset compiling configuration file to generate a compiling configuration file; and adding the conversion file path information to the preset packaging configuration file to generate the packaging configuration file.
In an alternative implementation of some embodiments, the information presentation apparatus 500 further includes: an adding unit (not shown in the figure) configured to add the conversion file to the project based on the conversion file path information.
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. 3. 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, the computer readable medium described 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. 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 embodiments, 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 contained in the electronic device; 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: deriving conversion function information from a conversion file based on a compilation file, wherein the conversion function information is used for converting style information included in the compilation file; based on the compiling configuration file and the conversion function information, packaging the compiling file to generate a packaged compiling file, wherein the compiling configuration file comprises conversion plug-in information for converting style information included in the compiling file; and controlling related equipment to display the converted style information included in the packaged compiling file.
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 deriving unit, a processing unit, and a control selecting unit. The names of these units do not limit the unit itself in some cases, and for example, the control unit may also be described as "a unit that controls the relevant device to present the converted style information included in the package compiled file" described above.
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 (10)
1. An information display method, comprising:
Configuring project engineering files to obtain compiling configuration files, wherein the project engineering files comprise preset compiling configuration files, the preset compiling configuration files are preset files which are automatically generated by a selected framework during project construction, and the selected framework is REACT NATIVE;
Determining a file type of a compiled file based on the compiled file;
In response to determining that conversion function information corresponding to the file type exists in a conversion file, deriving conversion function information corresponding to the file type from conversion function information corresponding to different types of compiling files included in the conversion file, wherein the conversion function information is used for converting style information included in the compiling file, the style information is application program codes compiled for page styles in the compiling file, and the conversion function information is application program codes compiled for conversion functions;
Based on a compiling configuration file and the conversion function information, converting style information included in the compiling file into style information under a unified application code compiling mode, and utilizing a packaging application program to package the compiling file to generate a packaged compiling file, wherein the compiling configuration file comprises conversion plug-in information for converting the style information included in the compiling file, the style information under the unified application code compiling mode is applicable to frameworks of different development front-end application programs, and the packaging application program is a module packer;
And controlling related equipment to display style information in the converted unified application program code compiling mode included in the packaging compiling file.
2. The method of claim 1, wherein after the determining the file type of the compiled file, the method further comprises:
and in response to determining that the conversion function information corresponding to the file type does not exist in the conversion file, deriving preset conversion function information from the conversion file.
3. The method of one of claims 1-2, the packaging the compiled file to generate a packaged compiled file, comprising:
based on the compiling configuration file and the conversion function information, converting the compiling file to generate a converted compiling file;
and generating a packaging compiling file based on the packaging configuration file and the conversion compiling file, wherein the packaging configuration file comprises packaging configuration information.
4. The method of claim 3, wherein the converting the compiled file to generate a converted compiled file based on the compiled configuration file and the conversion function information comprises:
performing module division processing on the compiled file to generate a compiled file subjected to the module division processing as a module compiled file;
And converting the module compiling file based on the compiling configuration file and the conversion function information to generate a conversion compiling file.
5. The method of claim 4, wherein the generating a packed compilation file based on the packed configuration file and the translation compilation file comprises:
And based on the packaging configuration information included in the packaging configuration file, packaging the converted compiling file to generate a packaging compiling file.
6. The method of claim 1, wherein the project engineering file further comprises a preset packaging configuration file; and configuring the project engineering file, including:
adding the conversion plug-in information to the preset compiling configuration file to generate a compiling configuration file;
and adding the conversion file path information to the preset packaging configuration file to generate the packaging configuration file.
7. The method of claim 6, wherein the method further comprises:
based on the conversion file path information, a conversion file is added to the project.
8. An information presentation apparatus comprising:
The configuration unit is configured to configure project engineering files to obtain compiling configuration files, wherein the project engineering files comprise preset compiling configuration files, the preset compiling configuration files are preset files which are automatically generated by a selected framework when a project is newly built and used for configuring the compiling files, and the selected framework is REACT NATIVE;
A determination unit configured to determine a file type of a compiled file based on the compiled file;
A deriving unit configured to derive conversion function information corresponding to the file type from conversion function information corresponding to different types of compiled files included in a conversion file in response to determining that conversion function information corresponding to the file type exists in the conversion file, wherein the conversion function information is used for converting style information included in the compiled file, the style information is application code compiled for a page style in the compiled file, and the conversion function information is application code compiling a conversion function;
The processing unit is configured to convert style information included in the compiling file into style information under a unified application code compiling mode based on a compiling configuration file and the conversion function information, and package the compiling file by utilizing a packaging application program to generate a packaged compiling file, wherein the compiling configuration file comprises conversion plug-in information for converting the style information included in the compiling file, the style information under the unified application code compiling mode is applicable to frameworks of different development front-end application programs, and the packaging application program is a module packer;
And the control unit is configured to control related equipment to display style information in a converted unified application program code compiling mode included in the packaging compiling file.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. 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-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011147084.3A CN112199094B (en) | 2020-10-23 | 2020-10-23 | Information display method, information display device, electronic equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011147084.3A CN112199094B (en) | 2020-10-23 | 2020-10-23 | Information display method, information display device, electronic equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112199094A CN112199094A (en) | 2021-01-08 |
CN112199094B true CN112199094B (en) | 2024-05-28 |
Family
ID=74011056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011147084.3A Active CN112199094B (en) | 2020-10-23 | 2020-10-23 | Information display method, information display device, electronic equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112199094B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113420248A (en) * | 2021-06-28 | 2021-09-21 | 北京致远互联软件股份有限公司 | Column outer frame style definition method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491662A (en) * | 2018-10-31 | 2019-03-19 | 珠海市筑巢科技有限公司 | Code packaging method, computer installation and computer readable storage medium, code packaging system |
CN109857403A (en) * | 2018-12-05 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of renewal of the page, page processing method and device |
CN110119274A (en) * | 2018-02-05 | 2019-08-13 | 北京智明星通科技股份有限公司 | A kind of method, apparatus and electric terminal, computer readable storage medium of data compilation |
CN110780853A (en) * | 2019-09-28 | 2020-02-11 | 同程网络科技股份有限公司 | Front end framework, development method, storage medium and electronic device |
CN111142930A (en) * | 2019-12-30 | 2020-05-12 | 瑞庭网络技术(上海)有限公司 | Installation package file packaging method and device, terminal device and storage medium |
CN111767498A (en) * | 2019-11-15 | 2020-10-13 | 北京沃东天骏信息技术有限公司 | Method and device for realizing file information sharing |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4297508B2 (en) * | 2007-05-17 | 2009-07-15 | 株式会社カシオ日立モバイルコミュニケーションズ | Electronic device and electronic device processing program |
-
2020
- 2020-10-23 CN CN202011147084.3A patent/CN112199094B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110119274A (en) * | 2018-02-05 | 2019-08-13 | 北京智明星通科技股份有限公司 | A kind of method, apparatus and electric terminal, computer readable storage medium of data compilation |
CN109491662A (en) * | 2018-10-31 | 2019-03-19 | 珠海市筑巢科技有限公司 | Code packaging method, computer installation and computer readable storage medium, code packaging system |
CN109857403A (en) * | 2018-12-05 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of renewal of the page, page processing method and device |
CN110780853A (en) * | 2019-09-28 | 2020-02-11 | 同程网络科技股份有限公司 | Front end framework, development method, storage medium and electronic device |
CN111767498A (en) * | 2019-11-15 | 2020-10-13 | 北京沃东天骏信息技术有限公司 | Method and device for realizing file information sharing |
CN111142930A (en) * | 2019-12-30 | 2020-05-12 | 瑞庭网络技术(上海)有限公司 | Installation package file packaging method and device, terminal device and storage medium |
Non-Patent Citations (2)
Title |
---|
基于Web的展厅人机互动信息控制系统;牟奇春;羊权荣;刘静;牟其敏;;电脑编程技巧与维护;20170318(第06期);第81-83页 * |
跨文件编译模式与基于GCC的实现;郭学鹏;赵克佳;;计算机工程与科学;20070415(第04期);第111-115页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112199094A (en) | 2021-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111338623B (en) | Method, device, medium and electronic equipment for developing user interface | |
CN111832736A (en) | Method, apparatus and computer program product for processing machine learning models | |
CN112104709A (en) | Intelligent contract processing method, device, medium and electronic equipment | |
CN112286529A (en) | Development method, device and equipment of front-end page and storage medium | |
CN111367516B (en) | Application interface generation method and device and electronic equipment | |
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 | |
US10839040B2 (en) | Normalizing a page flow | |
CN110389755B (en) | Code processing method and device, electronic equipment and computer readable storage medium | |
CN112395098B (en) | Application program interface calling method and device, storage medium and electronic equipment | |
CN113934426A (en) | Software package processing method, device, system, equipment and medium | |
CN111581555A (en) | Document loading method, device, equipment and storage medium | |
CN113821352A (en) | Remote service calling method and device | |
CN112199094B (en) | Information display method, information display device, electronic equipment and computer readable medium | |
CN113127000B (en) | Compiling method, compiling device, compiling equipment and compiling storage medium for application program component | |
CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
CN111309323B (en) | Parameter initialization method and device and electronic equipment | |
CN113885841A (en) | Script generation method and device, electronic equipment and readable medium | |
CN113419716A (en) | Code generation method and device, terminal equipment and storage medium | |
CN112256585B (en) | Page display method, page display device, electronic equipment and computer readable medium | |
CN112688863B (en) | Gateway data processing method and device and electronic equipment | |
CN111831263B (en) | Method, apparatus, electronic device and computer readable medium for data processing | |
CN115630352B (en) | CA integrated authentication method, device, electronic equipment and computer readable medium | |
CN110750242B (en) | File deployment method, system, medium and electronic equipment | |
CN115826989A (en) | Method and device for releasing front-end code packet and related 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 |