Workbench system and functional module loading method and device based on workbench system
By collecting and loading the functional modules of associated websites in the workbench system, the problem of user needs exceeding the preset range is solved, the selection range of functional modules is expanded, and the user experience and system stability are optimized.
Patent Information
- Application Number
- CN202410911013.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-22
AI Technical Summary
The existing workbench system cannot meet the user's needs for the combined use of multiple functional modules. Especially when the user needs to use functional modules beyond the preset selection range, it cannot meet the user's specific scene needs.
Through the federated function module to collect components, call components and load components, collect exposed information of associated websites, obtain target function modules that match user needs, and load and display these functional modules on the display interface of the workbench system, expanding the scope of functional modules Select range.
It realizes the collection and calling of the respective functional modules of multiple websites, reduces the possibility that the functional modules required by user needs are not in the preset set, and optimizes the user experience and system stability.
Smart Images

Figure CN118819898A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a workbench system, and a method and device for loading functional modules based on the workbench system. Background Art
[0002] With the development of technology, users can combine and use multiple functional modules on the custom workbench provided by the website or platform to meet the needs of daily work and life.
[0003] In the related art, a website or platform can set a corresponding function module selection range for a custom workbench provided to a user, and in this scenario, the user can use the function modules provided within the selection range. However, when the user has a need to use other function modules outside the selection range, the custom workbench cannot meet the user's needs in this scenario. Summary of the invention
[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the first aspect of the present application proposes a workbench system.
[0006] The second aspect of the present application proposes a function module loading method based on a workbench system.
[0007] The third aspect of the present application proposes a functional module loading device based on a workbench system.
[0008] A fourth aspect of the present application provides an electronic device.
[0009] A fifth aspect of the present application provides a computer-readable storage medium.
[0010] A sixth aspect of the present application proposes a computer program product.
[0011] The first aspect of the present application proposes a workbench system, including: a federal function module collection component, a calling component and a loading component, wherein the federal function module collection component is used to collect exposure information on an associated website of the workbench system, and federally configure the exposure information to obtain a set of associated federal function modules that can be called by the workbench system on the associated website; the calling component is used to obtain a target calling federal function module corresponding to a user demand from the set of associated federal function modules; the loading component is used to load the target calling federal function module and display the target loading result of the target calling federal function module on the display interface of the workbench system.
[0012] In addition, the workbench system proposed in the first aspect of the present application may also have the following additional technical features:
[0013] According to one embodiment of the present application, the federal function module acquisition component is also used to: obtain the exposed function module corresponding to the exposed information in the associated website, and federally configure the exposed function module to obtain the federal function module that can be called by the workbench system on the associated website; and, based on the exposed information, generate an information description file of the federal function module.
[0014] According to one embodiment of the present application, the federated function module acquisition component is further used to: update the accessible resource directory of the workbench system according to the information description file to obtain a target accessible resource directory of the workbench system.
[0015] According to one embodiment of the present application, the calling component is also used to: obtain a target calling resource directory that matches the user demand from the target accessible resource directory of the workbench system, and obtain the target calling federal function module from the associated federal function module set based on the target resource calling directory.
[0016] According to one embodiment of the present application, the federal function module acquisition component is also used to: in response to identifying that the global window object of the candidate website is injected into the federal module set, and / or the federal module information exists in the candidate website, determine that the candidate website is the associated website of the workbench system.
[0017] According to one embodiment of the present application, the system also includes an isolation loading component, which is used to: in response to identifying that the target calling federal function module has contaminated the workbench system, build an isolated operating environment for the target calling federal function module through the isolation loading component, and load the target calling federal function module in the isolated operating environment to obtain the target loading result of the target federal function module.
[0018] According to one embodiment of the present application, the workbench system is one of an operating platform built based on a new browser page and an independent operating platform.
[0019] The second aspect of the present application proposes a function module loading method based on a workbench system, the method comprising: determining a matching target calling federal function module from a set of associated federal function modules of the workbench system according to acquired user requirements, wherein the workbench system is obtained based on the workbench system proposed in the first aspect above; loading the target calling federal function module on the workbench system, and obtaining the target loading result of the target calling federal function module through the display interface of the workbench system.
[0020] The third aspect of the present application proposes a function module loading device based on a workbench system, characterized in that the device includes: an acquisition module, used to determine a matching target calling federal function module from a set of associated federal function modules of the workbench system according to acquired user requirements, wherein the workbench system is obtained based on the workbench system proposed in the first aspect above; a loading module, used to load the target calling federal function module on the workbench system, and obtain the target loading result of the target calling federal function module through the display interface of the workbench system.
[0021] The fourth aspect of the present application proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the functional module loading method based on the workbench system proposed in the second aspect above.
[0022] The fifth aspect of the present application proposes a computer-readable storage medium, wherein the computer instructions are used to enable the computer to execute the function module loading method based on the workbench system proposed in the second aspect.
[0023] The sixth aspect of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the function module loading method based on the workbench system proposed in the second aspect above.
[0024] The present application proposes a workbench system, a method and device for loading function modules based on the workbench system, a federated function module collection component, a calling component and a loading component, wherein the federated function module collection component is used to collect exposure information on the associated websites of the workbench system to obtain a set of associated federated function modules that can be called by the workbench system on the associated websites; the calling component is used to obtain the target calling federated function module corresponding to the user's needs from the set of associated federated function modules; the loading component is used to load the target calling federated function module and display the target loading result of the target calling federated function module on the display interface of the workbench system. In the present application, the collection of the associated federated function modules of multiple websites is realized through the federated function module collection component, which expands the selection range of the federated function module calls that can be provided by the workbench system, reduces the possibility that the function module required to be called by the user's needs is not in the set of associated federated function modules provided by the workbench system, and optimizes the user experience of the workbench system.
[0025] It should be understood that the contents described in this application are not intended to identify the key or important features of the embodiments of this application, nor are they intended to limit the scope of this application. Other features of this application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0027] Figure 1 A schematic diagram of a workbench system according to an embodiment of the present application;
[0028] Figure 2 A schematic diagram of a workbench system according to another embodiment of the present application;
[0029] Figure 3 A schematic diagram of a workbench system according to another embodiment of the present application;
[0030] Figure 4 A schematic diagram of a workbench system according to another embodiment of the present application;
[0031] Figure 5 A schematic diagram of a flow chart of a method for loading a function module based on a workbench system according to an embodiment of the present application;
[0032] Figure 6 This is a structural schematic diagram of a function module loading device based on a workbench system according to an embodiment of the present application;
[0033] Figure 7 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0034] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0035] The following describes the workbench system, and the function module loading method and device based on the workbench system according to the embodiments of the present application with reference to the accompanying drawings.
[0036] Figure 1 Schematic diagram of a workbench system according to an embodiment of the present application. Figure 1 As shown, the workbench system 100 includes a federated function module collection component 11, a calling component 12 and a loading component 13, wherein:
[0037] The federated function module collection component 11 is used to collect the exposed information on the associated websites of the workbench system and perform federated configuration on the exposed information to obtain a set of associated federated function modules that can be called by the workbench system on the associated websites.
[0038] The calling component 12 is used to obtain the target calling federated function module corresponding to the user demand from the associated federated function module set.
[0039] The loading component 13 is used to load the target calling federation function module and display the target loading result of the target calling federation function module on the display interface of the workbench system.
[0040] In the embodiment of the present application, the functional modules of multiple websites may be required to realize a certain user demand. In this scenario, the user may need to call the functional modules of multiple websites respectively, wherein the functional modules of multiple websites may be called respectively. Figure 1 The workbench system 100 shown implements the calling of respective functional modules of multiple websites.
[0041] Among them, the website whose functional module can be called by the workbench system 100 can be marked as the associated website of the workbench system 100.
[0042] Optionally, the workbench system 100 includes Figure 1 The federation function module collection component 11 is shown, and the federation function module collection component 11 can collect callable function modules for the workbench system 100.
[0043] Among them, the federation function module collection component 11 can scan the information of the associated websites of the workbench system 100, identify the exposed information in the associated websites and collect it.
[0044] It should be noted that the exposure information in the associated website may include the exposure information declared by the development staff when the front-end of the website is constructed, and may also include the exposure information after the website is constructed, which is not specifically limited here.
[0045] As an example, the exposed information declared by the developer when building the front-end may include the module name, module file entry, and optional description and other related information in the website. The exposure of this information can be achieved through configuration files and / or special suffix file constraints.
[0046] In addition, the exposed information after the construction is completed may include the website URL and name and other related information.
[0047] In this scenario, the federal function module collection component 11 can collect the function modules that can be called by the workbench system 100 in the associated website, and mark the collected function modules as the associated federal function modules of the workbench system 100, and mark the set consisting of multiple collected associated federal function modules as the associated federal function module set of the workbench system 100.
[0048] It should be noted that the workbench system 100 may have multiple related websites. The federal function module collection component 11 can realize the collection of the related federal function modules of the multiple related websites, and integrate the collected related federal function modules of the multiple related websites into the workbench system 100, thereby obtaining the related federal function module set of the workbench system 100.
[0049] It can be understood that in a scenario where the function module required to be called by the user does not belong to the current associated federal function module set of the workbench system 100, the federal function module acquisition component 11 can scan the website to which the function module belongs and collect exposure information, thereby obtaining the associated federal function module that the workbench system 100 can call on the website.
[0050] In an embodiment of the present application, the exposure information collected by the federal function collection component 11 may not be called by the workbench system 100. In this scenario, the federal function collection component 11 can federally configure the collected exposure information to obtain a configured functional module, and then the federally configured functional module can be called by the workbench system 100 as an associated federal functional module.
[0051] like Figure 1 As shown, the workbench system 100 further includes a calling component 12 , wherein the calling component 12 can be used to implement the calling of each functional module in the associated federated functional module set in the workbench system 100 .
[0052] Optionally, after receiving relevant information about user needs, the workbench system 100 can filter the set of associated federal function modules according to the received relevant information about user needs, so as to obtain the associated federal function modules that need to be called to meet the user needs, and mark them as target calling federal function modules corresponding to the user needs.
[0053] In this scenario, the workbench system 100 can load the target corresponding to the user's needs by calling the federated function module through the loading component 13.
[0054] It can be understood that the loading component 13 can obtain the code snippet corresponding to the target calling federated functional module from the associated website, and load the partial code snippet in the code running environment provided by the workbench system 100, thereby realizing the loading of the target calling federated functional module in the workbench system 100.
[0055] In an embodiment of the present application, the workbench system 100 is provided with a display interface. When loading a target call federated function module, the workbench system 100 can set a corresponding display area on its display interface for the loading result of the target call federated function module, wherein the loading result of the target call federated function module can be marked as the target loading result.
[0056] In this scenario, after obtaining the target loading result, the workbench system 100 can display the target loading result in the display area on the display interface.
[0057] The workbench system proposed in the present application includes: a federated function module collection component, a calling component and a loading component, wherein the federated function module collection component is used to collect the exposed information on the associated websites of the workbench system to obtain a set of associated federated function modules that can be called by the workbench system on the associated websites; the calling component is used to obtain the target calling federated function module corresponding to the user's needs from the set of associated federated function modules; the loading component is used to load the target calling federated function module and display the target loading result of the target calling federated function module on the display interface of the workbench system. In the present application, the collection of the associated federated function modules of multiple websites is realized through the federated function module collection component, which expands the selection range of the federated function module calls that can be provided by the workbench system, reduces the possibility that the function module required to be called by the user's needs is not in the set of associated federated function modules provided by the workbench system, and optimizes the user experience of the workbench system.
[0058] In the above embodiment, regarding the workbench system, it is also possible to combine Figure 2 Further understanding, Figure 2 This is a schematic diagram of a workbench system according to another embodiment of the present application. Figure 2 As shown, the workbench system 200 includes: a federated function module collection component 21, a calling component 22 and a loading component 23.
[0059] In an embodiment of the present application, before collecting exposed information, the federal function module collection component 21 can identify whether the website to be collected is an associated website of the workbench system 200, wherein, in response to identifying that the global window object of the candidate website is injected into the federal module set, and / or the federal module information exists in the candidate website, the candidate website is determined to be an associated website of the workbench system.
[0060] Among them, the website to be identified by the federal function module collection component 21 can be marked as a candidate website. In this scenario, the federal function module collection component 21 can be used to identify whether the window object of the candidate website to be identified is injected into the federal module set. When it is identified that the window object of the candidate website is injected into the federal module set, it can be determined that the candidate website is an associated website of the workbench system 200.
[0061] Correspondingly, the federal function module collection component 21 can also identify whether there is federal module information under the specified path of the candidate website to be identified. When it is identified that there is federal module information under the specified path of the candidate website, it can be determined that the candidate website is an associated website of the workbench system 200.
[0062] It should be noted that the workbench system 200 in the embodiment of the present application is one of an operating platform built based on a new browser page and an independent operating platform. It can be understood that the workbench system 200 can be an independent operating platform in the form of an independent user terminal, or an operating platform in the form of a new browser page. No specific limitation is made here.
[0063] Optionally, the federated function module acquisition component 21 is further used to: obtain the exposed function modules corresponding to the exposed information in the associated website, and perform federated configuration on the exposed function modules to obtain the federated function modules that can be called by the workbench system on the associated website. And, generate an information description file of the federated function modules according to the exposed information.
[0064] As an example, Figure 3 As shown, after the federated function module collection component collects the exposure information of the associated website, it can obtain the function modules of the exposed information in the associated website and mark them as Figure 3 The exposed functional modules of the associated website are shown.
[0065] Furthermore, the federated function module collection component needs to perform Figure 3 The federation (federation) configuration shown can be understood as that the federation function module acquisition component can convert the format of the code snippet corresponding to the exposed function module based on the code format corresponding to the federation, so that the converted code snippet can be called by the workbench system, and then obtain the following Figure 3 The workbench system shown is a federal (federal) functional module that can be called on the associated website.
[0066] like Figure 3As shown, the federated function module collection component can also complete the exposed information, wherein further information collection can be performed on the related websites based on the exposed information, which can include the configuration file of the module exposure function, the contract file scanning, the project description file (package.json) and the context information of the build tool, thereby completing the information, wherein the completed information can include package management tools (npm, yarn, pnpm, etc.), technology stacks (React, Vue, etc.), build tools (Webpack, Vite, etc.), third-party package dependencies, dependency version information, and module configurable items and other related information.
[0067] like Figure 3 As shown, after the collection component of the federated function module completes the information, the exposed information and the collected and completed information can be merged to obtain the description information of the associated website, and the description information can be compressed to obtain Figure 3 The information description file of the associated website is shown.
[0068] Optionally, the federated function module acquisition component 21 is further used to: update the accessible resource directory of the workbench system according to the information description file to obtain a target accessible resource directory of the workbench system.
[0069] In an embodiment of the present application, after obtaining the information description file, the federal function module acquisition component 21 can place the information description file into the current accessible resource directory of the workbench system to update the accessible resource directory and mark the updated directory as the target accessible resource directory of the workbench system 200.
[0070] And, the content of the information description file is placed as an object (json) into the global window object of the Hyper Text Markup Language (HTML) page of the associated website.
[0071] Optionally, the calling component 22 is further used to: obtain a target calling resource directory matching the user demand from the target accessible resource directory of the workbench system, and obtain a target calling federated function module from the associated federated function module set according to the target resource calling directory.
[0072] In the embodiment of the present application, Figure 2 The calling component shown obtains the resource directory information required by the user demand from the target accessible resource directory of the workbench system, and calls the resource directory as the target matching the user demand.
[0073] Furthermore, based on the detailed information in the target call resource directory, the target call federated function module corresponding to the user demand is obtained from the associated federated function module set of the workbench system 200 .
[0074] It can be understood that, according to the target calling resource directory, the calling component 22 can obtain the specific location information of the federated function module that needs to be called, and then implement the calling of the target calling federated function module by the workbench system 200.
[0075] Optionally, the workbench system 200 also includes an isolation loading component 24, which is used to: in response to identifying that the target calling federal function module has contaminated the workbench system, build an isolated operating environment for the target calling federal function module through the isolation loading component, and load the target calling federal function module in the isolated operating environment to obtain a target loading result of the target federal function module.
[0076] In an embodiment of the present application, the loading of the target calling federated function module may have an impact on the style and / or global variables of the workbench system. In this scenario, it can be determined that the target calling federated function module pollutes the workbench system.
[0077] Optionally, you can Figure 2 The isolated loading component 24 shown identifies whether the target calling federal function module will cause pollution to the workbench system, and when it is identified that the target calling federal function module pollutes the workbench system, it builds a corresponding isolated operating environment for the target calling federal function module and loads the target calling federal function module in the isolated operating environment.
[0078] like Figure 4 As shown, the isolated loading component can parse the information of the target calling federated function module, and when the analysis identifies that it pollutes the workbench system, Figure 4 The isolated sandbox shown is used as the isolated operating environment of the target calling federated function module, and the isolated sandbox and the related container (shadow dom) are initialized.
[0079] like Figure 4 As shown, the isolated sandbox is preprocessed, wherein the object (document) operation can be hijacked to a shadow DOM container to implement the preprocessing of the isolated sandbox.
[0080] Furthermore, the dependency of the target calling federated function module is obtained, and the obtained dependency is injected into the isolated sandbox, and then the target calling federated function module is loaded in the isolated sandbox as the isolated running environment, thereby obtaining the target loading result of the target calling federated function module.
[0081] It can be understood that the document structure of the remote module is rendered into the shadow DOM (Shadow DOM) of the custom Web Component component using the Web Component technology to achieve the isolation of the Cascading Style Sheets (CSS). The computer programming language (JavaScript) code logic of the remote module runs in an HTML tag (iframe) sandbox, and the code logic's operations on the document object are hijacked and proxied to the root node (Shadow Root) of the Web Component component's shadow. The iframe sandbox will be subdivided according to the description information of the remote module, mainly including the construction tools, technology stack, and third-party dependencies. Different dependencies will be injected in advance to load different module types.
[0082] The workbench system proposed in the present application realizes the collection of associated federal function modules of multiple websites through a federal function module collection component, expands the selection range of federal function module calls that can be provided by the workbench system, reduces the possibility that the function modules required by the user are not in the set of associated federal function modules provided by the workbench system, isolates and loads target calls to federal function modules that pollute the workbench system, optimizes the stability of the workbench system, and further optimizes the user experience of the workbench system.
[0083] This application also proposes a method for loading function modules based on a workbench system, which can be combined with Figure 5 understand, Figure 5 FIG. 1 is a flow chart of a method for loading a function module based on a workbench system according to an embodiment of the present application. Figure 5 As shown, the method includes:
[0084] S501, determining a matching target calling federated function module from a set of associated federated function modules of a workbench system according to the acquired user requirements.
[0085] Among them, the workbench system is based on the above Figures 1 to 4 The workbench system proposed in the embodiment is obtained.
[0086] In an embodiment of the present application, the acquired user needs can be parsed, and the demand information obtained by the analysis can be matched with the information of each associated federal function module in the associated federal function module set provided by the workbench system, so as to identify the function module in the associated federal function module set that can meet the user needs, and call the federal function module as the target for matching the user needs.
[0087] S502, loading a target calling federated function module on the workbench system, and obtaining a target loading result of the target calling federated function module through a display interface of the workbench system.
[0088] In an embodiment of the present application, the target call federated function module may be loaded on a workbench system, wherein a corresponding loading result display area may be set for it on a display interface of the workbench system.
[0089] In this scenario, when the target calling federated function module is loaded, the target loading result obtained by loading it can be displayed in the display area.
[0090] It can be understood that the target loading result of the target calling the federated function module can be displayed on the same interface as other information on the workbench system, that is, running in the same context.
[0091] The function module loading method based on the workbench system proposed in this application obtains the target calling federated function module matching the user's needs from the associated federated function module set of the workbench system, and loads the target calling federated function module on the workbench system to obtain the corresponding target loading result. Figures 1 to 4 The workbench system proposed in the embodiment reduces the possibility that the function module required by the user is not in the set of associated federal function modules provided by the workbench system, avoids the pollution of the workbench system by the loading of the target calling federal function module, and optimizes the user experience.
[0092] Corresponding to the function module loading methods based on a workbench system proposed in the above-mentioned embodiments, an embodiment of the present application further proposes a function module loading device based on a workbench system. Since the function module loading device based on a workbench system proposed in the embodiment of the present application corresponds to the function module loading methods based on a workbench system proposed in the above-mentioned embodiments, the implementation method of the above-mentioned function module loading method based on a workbench system is also applicable to the function module loading device based on a workbench system proposed in the embodiment of the present application, and will not be described in detail in the following embodiments.
[0093] Figure 6 FIG. 1 is a structural diagram of a function module loading device based on a workbench system according to an embodiment of the present application. Figure 6 As shown, a function module loading device 600 based on a workbench system includes an acquisition module 61 and a loading module 62, wherein:
[0094] The acquisition module 61 is used to determine a matching target calling federated function module from the associated federated function module set of the workbench system according to the acquired user requirements, wherein the workbench system is based on the above Figures 1 to 4 The workbench system proposed in the embodiment is obtained.
[0095] The loading module 62 is used to load the target calling federation function module on the workbench system, and obtain the target loading result of the target calling federation function module through the display interface of the workbench system.
[0096] The function module loading device based on the workbench system proposed in this application obtains the target calling federated function module matching the user's needs from the associated federated function module set of the workbench system, and loads the target calling federated function module on the workbench system to obtain the corresponding target loading result. Figures 1 to 4 The workbench system proposed in the embodiment reduces the possibility that the function module required by the user is not in the set of associated federal function modules provided by the workbench system, avoids the pollution of the workbench system by the loading of the target calling federal function module, and optimizes the user experience.
[0097] To achieve the above embodiments, the present application also proposes an electronic device, a computer-readable storage medium and a computer program product.
[0098] Figure 7 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 7 As shown, the device 700 includes a memory 71, a processor 72, and a computer program stored in the memory 71 and executable on the processor 72. When the processor 72 executes the program instructions, the function module loading method based on the workbench system proposed in the above embodiment is implemented.
[0099] The electronic device proposed in this application obtains the target calling federated function module matching the user's needs from the associated federated function module set of the workbench system, and loads the target calling federated function module on the workbench system to obtain the corresponding target loading result. Figures 1 to 4 The workbench system proposed in the embodiment reduces the possibility that the function module required by the user is not in the set of associated federal function modules provided by the workbench system, avoids the pollution of the workbench system by the loading of the target calling federal function module, and optimizes the user experience.
[0100] An embodiment of the present application proposes a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the function module loading method based on the workbench system proposed in the above embodiment is implemented.
[0101] The computer-readable storage medium of the embodiment of the present application obtains the target call federated function module matching the user demand from the associated federated function module set of the workbench system, and loads the target call federated function module on the workbench system to obtain the corresponding target loading result. Figures 1 to 4 The workbench system proposed in the embodiment reduces the possibility that the function module required by the user is not in the set of associated federal function modules provided by the workbench system, avoids the pollution of the workbench system by the loading of the target calling federal function module, and optimizes the user experience.
[0102] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0103] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0104] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0105] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0106] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0107] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0108] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0109] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0111] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A workbench system, characterized in that: The system includes: a federated function module acquisition component, a calling component and a loading component, wherein: The federated function module collection component is used to collect exposure information on the associated website of the workbench system, and perform federated configuration on the exposure information to obtain a set of associated federated function modules that can be called by the workbench system on the associated website; The calling component is used to obtain a target calling federated function module corresponding to the user demand from the associated federated function module set; The loading component is used to load the target calling federation function module and display the target loading result of the target calling federation function module on the display interface of the workbench system.
2. The system according to claim 1, characterized in that The federated function module collection component is also used for: Acquire the exposed function module corresponding to the exposed information in the associated website, and perform federation configuration on the exposed function module to obtain the federation function module that can be called by the workbench system on the associated website; as well as, An information description file of the federated function module is generated according to the exposed information.
3. The system according to claim 2, characterized in that The federated function module collection component is also used for: According to the information description file, the accessible resource directory of the workbench system is updated to obtain the target accessible resource directory of the workbench system.
4. The system according to claim 3, characterized in that The calling component is also used for: A target calling resource directory matching the user requirement is obtained from the target accessible resource directory of the workbench system, and the target calling federated function module is obtained from the associated federated function module set according to the target resource calling directory.
5. The system according to claim 1, characterized in that The federated function module collection component is also used for: In response to identifying that the global window object of the candidate website is injected into the federated module set, and / or the federated module information exists in the candidate website, the candidate website is determined to be the associated website of the workbench system.
6. The system according to claim 1, characterized in that The system further includes an isolation loading assembly for: In response to identifying that the target calling federal function module has contaminated the workbench system, an isolated operating environment for the target calling federal function module is constructed through the isolated loading component, and the target calling federal function module is loaded in the isolated operating environment to obtain the target loading result of the target federal function module.
7. The system according to any one of claims 1 to 6, characterized in that: The workbench system is one of an operating platform built based on a browser new page and an independent operating platform.
8. A method for loading a function module based on a workbench system, characterized in that: The method comprises: Determine a matching target calling federated function module from a set of associated federated function modules of a workbench system according to the acquired user requirements, wherein the workbench system is obtained based on the workbench system according to any one of claims 1 to 7 above; The target calling federation function module is loaded on the workbench system, and a target loading result of the target calling federation function module is obtained through a display interface of the workbench system.
9. A function module loading device based on a workbench system, characterized in that: The device comprises: An acquisition module, used to determine a matching target calling federated function module from a set of associated federated function modules of a workbench system according to the acquired user requirements, wherein the workbench system is obtained based on the workbench system according to any one of claims 1 to 7 above; A loading module is used to load the target calling federation function module on the workbench system, and obtain the target loading result of the target calling federation function module through the display interface of the workbench system.
10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of claim 8.
11. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to claim 8.
12. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to claim 8.
