CN116257160A - Sub-application configuration method, device and equipment under micro front end framework and storage medium - Google Patents

Sub-application configuration method, device and equipment under micro front end framework and storage medium Download PDF

Info

Publication number
CN116257160A
CN116257160A CN202111508828.4A CN202111508828A CN116257160A CN 116257160 A CN116257160 A CN 116257160A CN 202111508828 A CN202111508828 A CN 202111508828A CN 116257160 A CN116257160 A CN 116257160A
Authority
CN
China
Prior art keywords
application
sub
configuration data
main application
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111508828.4A
Other languages
Chinese (zh)
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.)
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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 Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Smart Home Co Ltd
Priority to CN202111508828.4A priority Critical patent/CN116257160A/en
Publication of CN116257160A publication Critical patent/CN116257160A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal 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)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for configuring sub-applications under a micro front-end framework, wherein configuration data of at least one sub-application to be configured is obtained under the micro front-end framework; writing the configuration data of the at least one sub-application to be configured into the configuration data of the main application to obtain updated configuration data of the main application; wherein, the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured. By adopting the technical scheme, the old technical stack part of the module can be not required to be modified, the use of the current module is not influenced, and the purposes of reducing the development cost and improving the development efficiency are achieved.

Description

Sub-application configuration method, device and equipment under micro front end framework and storage medium
Technical Field
The present disclosure relates to the field of front-end technologies, and in particular, to a method, an apparatus, a device, and a storage medium for configuring sub-applications under a micro front-end framework.
Background
At present, because the technology stack of a part of modules in the front-end system is too old, when a module generates new technology requirements, the technology of the technology stack used by the current front-end system is different from the technology of the technology stack used by the history of the module, so when the current module function is modified, the existing content of the module needs to be written by the new technology stack, the workload of a developer is larger, the code repeatability is higher, and the development cost is increased.
Therefore, a method is needed, which can avoid modifying the old technical stack part of the module and not affecting the use of the current module, thereby achieving the purposes of reducing the development cost and improving the development efficiency.
Disclosure of Invention
The application provides a sub-application configuration method, device, equipment and storage medium under a micro front end framework, which can avoid modifying the old technical stack part of a module and not influencing the use of the current module, thereby achieving the purposes of reducing development cost and improving development efficiency.
In a first aspect, the present application provides a method for configuring a sub-application based on a micro front end framework, including:
acquiring configuration data of at least one sub-application to be configured under a micro front-end framework;
writing the configuration data of the at least one sub-application to be configured into the configuration data of the main application to obtain updated configuration data of the main application; wherein, the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured.
In one example, writing configuration data of the at least one sub-application to be configured into configuration data of a main application includes:
writing the sub-application identification, the access address of the sub-application, the access icon data of the sub-application and the configuration rule of the sub-application in the configuration data of the at least one sub-application to be configured into a registration function of the main application; wherein the configuration data of each sub-application to be configured is encapsulated.
In one example, writing configuration data of the at least one sub-application to be configured into configuration data of a main application includes:
writing the use period of each sub-application to be configured into a period function of the main application; the service period of each sub-application to be configured in the periodic function of the main application corresponds to the sub-application identifier of each sub-application to be configured.
In one example, the method further comprises:
and carrying out sandbox isolation processing on the configuration data of each configured sub-application in the registration function of the main application and the configuration data of each sub-application to be configured.
In one example, the method further comprises:
and responding to the trigger function, and executing the updated main application and each sub-application in the updated main application according to the configuration data of the updated main application.
In one example, executing the updated main application and each sub-application of the updated main application includes:
generating a visual interface of the updated main application according to the updated main application and each sub-application in the updated main application; the updated visual interface of the main application comprises at least two access interface icons of the sub-applications; the access interface icon of the sub-application is a presentation result of the access icon data of the sub-application on the visual interface of the main application;
and responding to the triggering operation of the access interface icon of each sub-application, and executing the operation of each sub-application.
In one example, the method includes:
if the triggering operation of the access interface icon of the sub-application is not responded within the preset time, deleting the configuration data of the corresponding sub-application in the registration function of the main application, and deleting the service period of the corresponding sub-application in the periodic function of the main application.
In a second aspect, the present application provides a micro front end framework based sub application configuration apparatus, the apparatus comprising:
the acquisition unit is used for acquiring configuration data of at least one sub-application to be configured under the micro front end framework;
a writing unit, configured to write configuration data of the at least one sub-application to be configured into configuration data of a main application, so as to obtain updated configuration data of the main application; wherein, the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured.
In one example, a write unit includes:
the first writing module is used for writing the sub-application identification, the access address of the sub-application, the access icon data of the sub-application and the configuration rule of the sub-application in the configuration data of the at least one sub-application to be configured into a registration function of the main application; wherein the configuration data of each sub-application to be configured is encapsulated.
In one example, a write unit includes:
the second writing module is used for writing the use period of each sub-application to be configured into the periodic function of the main application; the service period of each sub-application to be configured in the periodic function of the main application corresponds to the sub-application identifier of each sub-application to be configured.
In one example, the writing unit further comprises:
and the processing module is used for carrying out sandbox isolation processing on the configuration data of each configured sub-application in the registration function of the main application and the configuration data of each sub-application to be configured.
In one example, the execution unit is configured to execute the updated main application and each sub-application in the updated main application according to the configuration data of the updated main application in response to the trigger function.
In one example, an execution unit includes:
the generation module is used for generating a visual interface of the updated main application according to the updated main application and each sub-application in the updated main application; the updated visual interface of the main application comprises at least two access interface icons of the sub-applications;
and the execution module is used for responding to the triggering operation of the access interface icon of each sub-application and executing the operation of each sub-application.
In one example, the apparatus includes:
and the deleting unit is used for deleting the configuration data of the corresponding sub-application in the registration function of the main application and deleting the service period of the corresponding sub-application in the periodic function of the main application if the triggering operation of the access interface icon of the sub-application is not responded within the preset time.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method as described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method according to the first aspect when executed by a processor.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
The application provides a method, a device, equipment and a storage medium for configuring sub-applications under a micro front-end framework, wherein configuration data of at least one sub-application to be configured is obtained under the micro front-end framework; writing the configuration data of the at least one sub-application to be configured into the configuration data of the main application to obtain updated configuration data of the main application; wherein, the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured. By adopting the technical scheme, the old technical stack part of the module can be not required to be modified, the use of the current module is not influenced, and the purposes of reducing the development cost and improving the development efficiency are achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic view of a micro front end frame according to a first embodiment of the present application;
fig. 2 is a flow chart of a sub-application configuration method based on a micro front end framework according to a second embodiment of the present application;
fig. 3 is a flow chart of a sub-application configuration method based on a micro front end framework according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of a sub-application configuration device based on a micro front end framework according to a fourth embodiment of the present application;
FIG. 5 is a schematic diagram of a sub-application configuration device based on a micro front end framework according to a fifth embodiment of the present application;
fig. 6 is a block diagram of a terminal device, according to an example embodiment.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terms referred to in this application are explained first:
the micro front end framework refers to a front end framework with application segmentation, independent application running and independent application deployment. The micro front end framework is a complete project that is divided into a main application and one or more sub-applications. Wherein the main application and each sub-application are capable of communicating with each other.
The main application: a routing registry needs to be maintained and communication with the sub-applications is performed according to the routing registry. The routing registry includes three types: a match table, a redirect table, and a name table. The matching table is the most basic routing decision table, and uses a regular expression to realize the matching of the path to the component; the redirection table specifies path redirection at configuration time and generates routing entries in the redirection table. The name table is that when a route is configured, an alias is set for a route item by an attribute, and a route item is established for each alias.
The application provides a sub-application configuration method based on a micro front end framework, which aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a micro front-end framework according to an embodiment of the present application, where it can be seen that a micro front-end framework includes a main application and a plurality of sub-applications, where the main application is responsible for aggregation and switching, and the plurality of sub-applications are independent from each other, and one sub-application can be displayed under the micro front-end framework at the same time, or a plurality of sub-applications can be loaded under the main application at the same time. In the process of continuously updating the micro front end framework, the coexistence of various technologies can be realized, and the method is applicable to a progressive architecture upgrading system. As can be seen from fig. 1, one main application communicates with 3 sub-applications, where sub-application a, sub-application B and sub-application C are sub-applications using different technologies, but can all be used under the current micro front end framework. The sub-application A, the sub-application B and the sub-application C are mutually independent, codes among the sub-application A, the sub-application B and the sub-application C are isolated, and the use of the sub-application B and the sub-application C is not affected when the codes of the sub-application A are modified.
Fig. 2 is a flow chart of a sub-application configuration method based on a micro front end framework according to an embodiment of the present application. The first embodiment comprises the following steps:
s201, acquiring configuration data of at least one sub-application to be configured under the micro front-end framework.
The configuration data of one or more sub-applications to be configured are obtained under the micro front end framework, and after the configuration data of the sub-applications to be configured are obtained, each sub-application is configured according to the configuration data of each sub-application to be configured. Wherein the machine language used for the configuration data of each sub-application to be configured is different.
S202, writing configuration data of at least one sub-application to be configured into configuration data of a main application to obtain updated configuration data of the main application; the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured.
In this embodiment, the configuration data of the master application may be a registration function under the micro front end framework. And writing configuration data of the sub-application into the registration function to obtain a main application containing the configuration data of the sub-application to be configured. In this embodiment, before writing the sub-application to be configured into the registration function of the main application, the configuration data of the main application already includes other sub-applications, but the machine language used by these already configured sub-applications is different from the machine language of the sub-application to be configured, or may be the same machine language, but the versions are different. Thus, the child application to be configured and the configured child application, while both in the configuration data of the master application under the micro front end framework, require a way to join the child application to be configured because the machine language used is different. And the configuration data of the sub-application to be configured is written into the configuration data of the main application, so that the sub-applications with different machine languages can all run under the same main application.
The application provides a method, a device, equipment and a storage medium for configuring sub-applications under a micro front-end framework, wherein configuration data of at least one sub-application to be configured is obtained under the micro front-end framework; writing configuration data of at least one sub-application to be configured into configuration data of a main application to obtain updated configuration data of the main application; the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured. By adopting the technical scheme, the sub-application of the old technical stack in the main application can be not required to be modified, the use of the current sub-application is not influenced, and the purposes of reducing the development cost and improving the development efficiency are further realized.
Fig. 3 is a flow chart of a sub-application configuration method based on a micro front end framework according to a third embodiment of the present application. The third embodiment includes the following steps:
s301, acquiring configuration data of at least one sub-application to be configured under the micro front-end framework.
For example, this step may refer to step S201, and will not be described in detail.
S302, writing a sub-application identifier, an access address of the sub-application, access icon data of the sub-application and configuration rules of the sub-application in configuration data of at least one sub-application to be configured into a registration function of the main application; wherein the configuration data of each sub-application to be configured is encapsulated.
In this embodiment, the sub-application identifier refers to a symbol capable of characterizing a feature of a sub-application, where the sub-application identifier may be a name of the sub-application, and each sub-application identifier has uniqueness. The access address of a sub-application is capable of determining address information to the sub-application, and in particular, the access addresses of different sub-applications are different. The access icon data of the sub-application is a visual identifier for characterizing the sub-application, and the access icon of the sub-application can be preset. For example, the access icon of the sub-application may be a V-shape, an A-shape, or a W-shape. The configuration rules of the sub-application are matching rules that enable configuration and activation of the sub-application.
Wherein the configuration data of different sub-applications to be configured are isolated, independent and encapsulated. For example, the configuration data of the sub-application a is encapsulated in the a module, the configuration data of the sub-application B is encapsulated in the B module, and the a module and the B module are independent from each other, i.e. the code information of the sub-application a and the code information of the sub-application B are not confused.
S303, writing the use period of each sub-application to be configured into a periodic function of the main application; the service period of each sub-application to be configured in the periodic function of the main application corresponds to the sub-application identifier of each sub-application to be configured.
Illustratively, the use period of the sub-application is a matching mechanism, which is a hook function set in the code, which automatically matches the hook function when the program is executed. By writing the periodic function of the sub-application to be configured into the periodic function of the main application, the main application can acquire the service period of each sub-application, and then call the sub-application in the service period of the sub-application.
S304, carrying out sandbox isolation processing on the configuration data of each configured sub-application in the registration function of the main application and the configuration data of each sub-application to be configured.
In this embodiment, the registration function of the main application includes configuration data of the sub-application that is configured and configuration data of the sub-application to be configured, the machine language used between the plurality of sub-applications that are configured may also be different, and the machine language used between the sub-application that is configured and the sub-application to be configured may also be different. Therefore, the configuration data of different sub-applications need to be sandboxed, so that code mixing of the different sub-applications can be avoided, and because the machine languages adopted by the different sub-applications are different, if the codes of the different sub-applications are mixed, the codes are confused, and the situation of call failure can be caused when the sub-applications are called later.
S305, determining a registration function of the main application and a periodic function of the main application as updated configuration data of the main application.
S306, responding to the trigger function, and executing the updated main application and each sub-application in the updated main application according to the configuration data of the updated main application.
In this embodiment, after the trigger function is used, the configuration data of the main application in the micro front end framework can be updated, and the updated main application and each sub-application under the main application are executed.
In one example, executing the updated main application and each sub-application of the updated main application includes:
generating a visual interface of the updated main application according to the updated main application and each sub-application in the updated main application; the updated visual interface of the main application comprises at least two access interface icons of the sub-applications; the access interface icon of the sub-application is a presentation result of access icon data of the sub-application on a visual interface of the main application; and responding to the triggering operation of the access interface icon of each sub-application, and executing the operation of each sub-application.
In this embodiment, two or more than two sub-application access interface icons can be displayed on the main application visual interface, and the sub-application is controlled to work by triggering the sub-application access interface icons. The triggering operation of the access interface icon of each sub-application can be the same or different. The triggering operation may be an access interface icon of the single-click sub-application, or an access interface icon of the double-click sub-application, or other triggering operations, which are not limited herein.
In one example, if the triggering operation of the access interface icon of the sub-application is not responded within the preset time, the configuration data of the corresponding sub-application is deleted in the registration function of the main application, and the service period of the corresponding sub-application is deleted in the period function of the main application.
In this embodiment, the triggering operation of the access interface icon of the sub-application is not responded within the preset time, which may be that the access address of the sub-application and the configuration rule of the sub-application are changed, so that the access interface icon of the sub-application cannot respond. The configuration data of the sub-application that has been previously configured in the registration function of the main application does not match the current access address of the sub-application and the configuration rule of the sub-application, and the configuration data of the sub-application that has been previously configured in the registration function of the main application and the usage period of the sub-application that has been previously configured in the period function within the main application should be deleted.
According to the sub-application configuration method, device, equipment and storage medium under the micro front-end framework, the configuration data of the sub-application which is not responded in the preset time is deleted, so that the memory space of the configuration data of the main application can be saved, and the utilization rate of a CPU (Central processing Unit) is improved.
Fig. 4 is a schematic diagram of a sub-application configuration device based on a micro front end framework according to a fourth embodiment of the present application.
The apparatus 40 in the fourth embodiment includes:
an obtaining unit 401, configured to obtain configuration data of at least one sub-application to be configured under the micro front end framework.
A writing unit 402, configured to write configuration data of at least one sub-application to be configured into configuration data of a main application, to obtain updated configuration data of the main application; the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Fig. 5 is a schematic diagram of a sub-application configuration device based on a micro front end framework according to a fifth embodiment of the present application.
The apparatus 50 in embodiment five comprises:
an obtaining unit 501, configured to obtain configuration data of at least one sub-application to be configured under the micro front end framework.
A writing unit 502, configured to write configuration data of at least one sub-application to be configured into configuration data of a main application, to obtain updated configuration data of the main application; the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured.
The executing unit 503 is configured to execute the updated main application and each sub-application in the updated main application according to the configuration data of the updated main application in response to the trigger function.
In one example, the writing unit 502 includes:
the first writing module 5021 is configured to write a sub-application identifier, an access address of the sub-application, access icon data of the sub-application and a configuration rule of the sub-application in configuration data of at least one sub-application to be configured into a registration function of the main application; wherein the configuration data of each sub-application to be configured is encapsulated.
A second writing module 5022, configured to write the usage period of each sub-application to be configured into the periodic function of the main application; the service period of each sub-application to be configured in the periodic function of the main application corresponds to the sub-application identifier of each sub-application to be configured.
A determining module 5023, configured to determine a registration function of the master application and a periodic function of the master application, as updated configuration data of the master application.
In one example, the writing unit 502 further includes:
and the processing module 5024 is used for performing sandbox isolation processing on the configuration data of each configured sub-application in the registration function of the main application and the configuration data of each sub-application to be configured.
In one example, execution unit 503 includes:
a generating module 5031, configured to generate a visual interface of the updated main application according to the updated main application and each sub-application in the updated main application; the updated visual interface of the main application comprises at least two access interface icons of the sub-applications; the access interface icon of the sub-application is a presentation result of access icon data of the sub-application on a visual interface of the main application.
The executing module 5032 is configured to execute the operation of each sub-application in response to the triggering operation of the access interface icon of each sub-application.
In one example, an apparatus includes:
and the deleting unit 504 is configured to delete the configuration data of the corresponding sub-application in the registration function of the main application and delete the service period of the corresponding sub-application in the periodic function of the main application if the triggering operation of the access interface icon of the sub-application is not responded within the preset time.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Fig. 6 is a block diagram of a terminal device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., in accordance with an exemplary embodiment.
The apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the apparatus 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the device 600. The power supply components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 600 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor assembly 614 may detect the open/closed state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the apparatus 600 and other devices in a wired or wireless manner. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of apparatus 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform the above-described terminal device micro front end framework based sub-application configuration method.
The application also discloses a computer program product comprising a computer program which, when executed by a processor, implements a method as described in the present embodiment.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and an electronic device. The client and the electronic device are generally remote from each other and typically interact through a communication network. The relationship of client and electronic devices arises by virtue of computer programs running on the respective computers and having a client-electronic device relationship to each other. The electronic equipment can be cloud electronic equipment, also called cloud computing electronic equipment or cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service (Virtual Private Server or VPS for short) are overcome. The electronic device may also be an electronic device of a distributed system or an electronic device that incorporates a blockchain. It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A micro front end framework-based sub-application configuration method, the method comprising:
acquiring configuration data of at least one sub-application to be configured under a micro front-end framework;
writing the configuration data of the at least one sub-application to be configured into the configuration data of the main application to obtain updated configuration data of the main application; wherein, the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured.
2. The method according to claim 1, wherein writing configuration data of the at least one sub-application to be configured into configuration data of a main application comprises:
writing the sub-application identification, the access address of the sub-application, the access icon data of the sub-application and the configuration rule of the sub-application in the configuration data of the at least one sub-application to be configured into a registration function of the main application; wherein the configuration data of each sub-application to be configured is encapsulated.
3. The method of claim 2, wherein writing configuration data of the at least one sub-application to be configured into configuration data of a main application, further comprises:
writing the use period of each sub-application to be configured into a period function of the main application; the service period of each sub-application to be configured in the periodic function of the main application corresponds to the sub-application identifier of each sub-application to be configured.
4. The method according to claim 1, wherein the method further comprises:
and carrying out sandbox isolation processing on the configuration data of each configured sub-application in the registration function of the main application and the configuration data of each sub-application to be configured.
5. The method according to claim 1, wherein the method further comprises:
and responding to the trigger function, and executing the updated main application and each sub-application in the updated main application according to the configuration data of the updated main application.
6. The method of claim 5, wherein executing the updated main application and each sub-application in the updated main application comprises:
generating a visual interface of the updated main application according to the updated main application and each sub-application in the updated main application; the updated visual interface of the main application comprises at least two access interface icons of the sub-applications;
and responding to the triggering operation of the access interface icon of each sub-application, and executing the operation of each sub-application.
7. The method according to claim 6, characterized in that the method comprises:
if the triggering operation of the access interface icon of the sub-application is not responded within the preset time, deleting the configuration data of the corresponding sub-application in the registration function of the main application, and deleting the service period of the corresponding sub-application in the periodic function of the main application.
8. A micro front end framework based sub-application configuration apparatus, the apparatus comprising:
the acquisition unit is used for acquiring configuration data of at least one sub-application to be configured under the micro front end framework;
a writing unit, configured to write configuration data of the at least one sub-application to be configured into configuration data of a main application, so as to obtain updated configuration data of the main application; wherein, the configuration data of the main application comprises the configuration data of at least one configured sub-application; wherein the configuration data of the configured sub-application is different from the machine language used by the configuration data of the sub-application to be configured.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-7.
CN202111508828.4A 2021-12-10 2021-12-10 Sub-application configuration method, device and equipment under micro front end framework and storage medium Pending CN116257160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111508828.4A CN116257160A (en) 2021-12-10 2021-12-10 Sub-application configuration method, device and equipment under micro front end framework and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111508828.4A CN116257160A (en) 2021-12-10 2021-12-10 Sub-application configuration method, device and equipment under micro front end framework and storage medium

Publications (1)

Publication Number Publication Date
CN116257160A true CN116257160A (en) 2023-06-13

Family

ID=86684914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111508828.4A Pending CN116257160A (en) 2021-12-10 2021-12-10 Sub-application configuration method, device and equipment under micro front end framework and storage medium

Country Status (1)

Country Link
CN (1) CN116257160A (en)

Similar Documents

Publication Publication Date Title
WO2018188289A1 (en) Information display method, apparatus, and terminal
US20200007944A1 (en) Method and apparatus for displaying interactive attributes during multimedia playback
CN110858173B (en) Data processing method and device for data processing
WO2022089409A1 (en) File sending method and apparatus, and electronic device
CN112416200A (en) Display method, display device, electronic equipment and readable storage medium
CN112269556A (en) Information display method, device, system, equipment, server and storage medium
CN105912204B (en) Method and device for starting application interface
CN112905089A (en) Equipment control method and device
CN109684112B (en) Program file operation method, device, terminal and storage medium
WO2022089481A1 (en) Information processing method and apparatus, and electronic device
EP3416070A1 (en) Page display method and device and storage medium
CN107368562B (en) Page display method and device and terminal
WO2022135259A1 (en) Speech input method and apparatus, and electronic device
CN116257160A (en) Sub-application configuration method, device and equipment under micro front end framework and storage medium
CN111562994B (en) Application program interface forwarding method and device, electronic equipment and storage medium
CN108549570B (en) User interface updating method and device
CN112581102A (en) Task management method and device, electronic equipment and storage medium
CN115002227B (en) User access request response method, storage medium and electronic device
CN113360341B (en) Front-end application maintenance and loading method and device
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN111221512B (en) Function module mixed use method, electronic device and storage medium
CN111538544B (en) Method and device for displaying configuration data, electronic equipment and storage medium
CN111343272B (en) Cross-node request retry method of star network architecture and electronic equipment
CN111767249B (en) Method and device for determining self-running time of function
CN114329088A (en) Directory structure file generation method, device, equipment and storage medium

Legal Events

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