CN116954561A - Small component generation method, device, equipment and medium - Google Patents
Small component generation method, device, equipment and medium Download PDFInfo
- Publication number
- CN116954561A CN116954561A CN202210396445.0A CN202210396445A CN116954561A CN 116954561 A CN116954561 A CN 116954561A CN 202210396445 A CN202210396445 A CN 202210396445A CN 116954561 A CN116954561 A CN 116954561A
- Authority
- CN
- China
- Prior art keywords
- gadget
- host
- displayed
- information
- user
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012856 packing Methods 0.000 claims abstract description 11
- 230000004044 response Effects 0.000 claims description 25
- 238000009877 rendering Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a small component generating method, which is characterized in that when a small component is required to be generated, an item corresponding to the small component is created, and a code corresponding to a target component is generated in the item of the small component. And after the configuration of the item information of the gadget is completed, packing and uploading the generated gadget codes. After the uploading is finished, one or more host identifications are determined on the application page of the gadget, so that the gadget can be displayed in the host indicated by the one or more host identifications. That is, when the gadget is generated, one or more hosts corresponding to the gadget may be configured so that the gadget is used in the one or more hosts, without adjusting the gadget for the hosts, and improving the applicability of the gadget.
Description
Technical Field
The present application relates to computer processing technologies, and in particular, to a method, an apparatus, a device, and a medium for generating a gadget.
Background
Gadgets are a simple extended application that often are installed in a larger application on a device as part of the larger application. The gadgets, i.e., inserts, have a variety of shapes and sizes that can be customized and resident on any available home screen for quick access. That is, information can be accessed quickly through a gadget without having to open an application that manages this information.
The development process is uneven due to different implementation modes of the expansion capability of different gadgets. Even if a developer is proficient in the development flow of a certain gadget, it is not necessarily able to develop another gadget. With the continuous improvement of the learning threshold, the enthusiasm of the developer to participate in the platform construction is also hit.
However, when a widget is applied in different scenes, the widget needs to be adjusted for the different scenes, which affects development efficiency.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a method, an apparatus, a device, and a medium for generating a widget, so as to realize one-time development, multiple uses, and improve development efficiency.
In order to achieve the above purpose, the technical scheme provided by the application is as follows:
in a first aspect of the present application, there is provided a widget generating method, the method comprising:
responding to the triggering operation of a user, creating a project of a small component, and generating codes of the small component in the project;
responding to the project information of the configuration completion gadget, and packing and uploading codes of the gadget;
one or more host identities are determined on an application page of the gadget, so that the gadget is presented in a host indicated by the host identity.
In a second aspect of the present application, there is provided a widget generating apparatus, the apparatus comprising:
a generation unit for responding to the triggering operation of a user, creating items of the gadgets, and generating codes of the gadgets in the items;
the processing unit is used for responding to the project information of the configuration completion gadget and packing and uploading the codes of the gadget;
and the determining unit is used for determining one or more host identifications on the application page of the gadget so that the gadget is displayed in the host indicated by the host identification.
In a third aspect of the application, there is provided an electronic device, the device comprising: a processor and a memory;
the memory is used for storing instructions or computer programs;
the processor is configured to execute the instructions or the computer program in the memory, so that the electronic device performs the widget generating method according to the first aspect.
In a fourth aspect of the application, there is provided a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the gadget generation method of the first aspect above.
In a fifth aspect of the application, a computer program product is provided, the computer program product comprising computer programs/instructions which, when executed by a processor, implement the gadget generation method of the first aspect.
From this, the embodiment of the application has the following beneficial effects:
according to the technical scheme provided by the embodiment of the application, when the gadget is required to be generated, the item corresponding to the gadget is created, and the code corresponding to the target gadget is generated in the item of the gadget. And after the configuration of the item information of the gadget is completed, packing and uploading the generated gadget codes. After the uploading is finished, one or more host identifications are determined on the application page of the gadget, so that the gadget can be displayed in the host indicated by the one or more host identifications. That is, when the gadget is generated, one or more hosts corresponding to the gadget may be configured so that the gadget is used in the one or more hosts, without adjusting the gadget for the hosts, and improving the applicability of the gadget.
Drawings
FIG. 1 is a flowchart of a method for generating a widget according to an embodiment of the present application;
FIG. 2a is a schematic diagram of a project information configuration page according to an embodiment of the present application;
FIG. 2b is a schematic diagram of a code description page according to an embodiment of the present application;
FIG. 2c is a schematic diagram of a widget configuration page according to an embodiment of the present application;
FIG. 3a is a schematic diagram of a scenario of adding gadgets according to an embodiment of the present application;
FIG. 3b is a schematic diagram of a widget after rendering according to an embodiment of the present application;
FIG. 3c is a schematic diagram of another scenario for adding gadgets according to an embodiment of the present application;
FIG. 3d is a schematic diagram of yet another gadget addition scenario provided by an embodiment of the present application;
FIG. 4a is a schematic diagram of a display gadget in an IM according to an embodiment of the present application;
FIG. 4b is a schematic diagram of another gadget displayed in an IM according to an embodiment of the present application;
FIG. 5 is a diagram of a small component generating device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of embodiments of the application will be rendered by reference to the appended drawings and appended drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. In addition, for convenience of description, only a part, not all, of the structures related to the present application are shown in the drawings.
In order to facilitate understanding of the specific implementation of the embodiments of the present application, technical terms related to the present application will be described below with reference to the accompanying drawings.
A gadget is a simple extended application that can be embedded in other applications (hosts) and receive periodic updates. The user can quickly acquire the gadget through the host and can use the gadget without installing and downloading.
In order to facilitate understanding, the technical solutions provided by the embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, the flowchart of a widget generating method according to an embodiment of the present application, as shown in fig. 1, the method may include:
s101: a gadget project is created and code for the target component is generated in the gadget project.
In this embodiment, there is a platform (developer background) for the developer to develop a gadget, and when the user needs to develop a gadget, the developer background creates a project of the target component in response to a trigger operation of the user. Specifically, the developer background, when applied to a user-triggered creation operation, will first acquire a target application and create a gadget project in the target application.
Wherein, the item of creating the gadget in the target application is used to indicate the application scope of the gadget as the target application. The target application may be an application existing in the background of the developer, or a target application newly added in the background of the developer by the user. The target application may be a suite of collaborative software that integrates any of a number of functions in address books, instant messaging tools, meetings, cloud documents, approvals, cloud disk, mail, calendars, workstations, etc. For example, the target application is a flybook application.
Wherein, when the project of the gadget is created, the developer's background can assign a unique component identification to the gadget to indicate the gadget through the component identification. Similarly, the target application also has a corresponding application identifier, so that the target application is indicated by the application identifier.
S102: and responding to the project information of the configuration completion gadget, and packing and uploading the codes of the gadget.
After creating the project for the gadget, the user may configure the project information for the project based on the developer platform. The project information may include, among other things, a project name, an application identification of the target application, and a component identification of the gadget. Specifically, in response to a user-triggered copy operation, an application identifier of a target application and a component identifier of a gadget are obtained; the application identification and the component identification are added to the item information of the gadget.
Optionally, in response to a triggering operation of the user, the identification of the gadget and/or the identification of the target application in the item information of the gadget are modified. That is, the user may trigger a modification operation in the project information to modify the component identification of the gadget and/or the application identification of the target application in the project information. For example, as shown in fig. 2a, the project information includes a component identifier of a target component, namely a BlockID-201, and an application identifier of a target application, namely an APPID-202 and a project name-203, where the BlockID may also correspond to an editing component 2011 and a copying component 2012, where the editing component 2011 is used for editing the BlockID, and the copying component 2012 is used for copying the BlockID. Similarly, the APPID202 may correspond to the editing component 2021 and the copying component 2022.
After the configuration of the item information of the gadget is completed, responding to the uploading operation triggered by the user, and packing and uploading the codes of the gadget. After the user triggers the uploading operation and before the developer carries out packing uploading on the codes of the gadgets, the code description page is entered and used for indicating the user to fill in the basic information of the uploaded codes. Wherein the code description page may include options of a code version number, a version description, and the like. For example, as shown in FIG. 2b, when the user triggers the upload component 204 at the code editing page, the code description page is entered, which may display the component identification of the target component, the mandatory version number 205, and the optional version description 206. When the user has completed filling, the code of the gadget is uploaded by triggering the upload component 207. The code specification page may also include a cancel component 208, among other things.
S103: on the publishing page of the gadget, one or more host knowledge is determined such that the gadget is exposed in the host indicated by the host identity.
After the code of the gadget is uploaded, the developer platform can prompt the user to enter a configuration page of the gadget, relevant information of the gadget can be configured on the configuration page, the relevant information can comprise hosts to be displayed by the gadget, and the developer platform determines one or more host identifications based on configuration operation of the user so that the gadget can be displayed in the hosts indicated by the host identifications. The host identifier may be a host name, and the host refers to a functional suite included in the target application, for example, a cloud document or a workbench of the target application.
Optionally, after determining the hosts corresponding to the gadgets, for each host, the icons and/or types of gadgets displayed in the host by the gadgets may also be determined. The types of gadgets may include, among others: drawing, data, steps, team collaboration or application linking, etc. For example, as shown in fig. 2c, the hosts of the gadgets added by the user are cloud documents and workstations, and configuration is performed on gadgets in the cloud documents, and the display icons of the target components in the cloud documents are uploaded through the uploading components corresponding to the display icons 209, and previewed through the preview page 211. Meanwhile, the type of the gadget in the cloud document can also be determined through the selection component corresponding to the gadget type 210.
It can be seen that when a gadget needs to be generated, a project corresponding to the gadget is created, and code corresponding to the target gadget is developed in the project of the gadget. And after the project information configuration of the gadgets is completed, packing and uploading the codes of the developed gadgets. After the uploading is finished, one or more host identifications are determined on the application page of the gadget, so that the gadget can be displayed in the host indicated by the one or more host identifications. That is, when the gadget is generated, one or more hosts corresponding to the gadget may be configured so that the gadget is used in the one or more hosts, without adjusting the gadget for the hosts, and improving the applicability of the gadget.
It should be noted that, the gadget in this embodiment is a lightweight functional module, and the functional module may be regarded as an information unit carrier integrating rendering, interaction, data, and the like. Moreover, the functional module is not attached to any main body and can be released as an independent application, so that the functional module can smoothly flow among different hosts. In practice, a user may add a gadget to the host in order to use the functionality of the gadget in the host. Specifically, responsive to a user adding a gadget in a first host, presentation content of the gadget in the first host is determined. Wherein the presentation content includes a view of the gadget or a locator of the gadget. The form of adding the gadget to the first host by the user may include two modes, that is, adding an information block (information to be displayed) corresponding to the gadget; another is the addition of a uniform resource locator (Uniform Resource Locator, URL) for the gadget. The first host may be a cloud document, a workbench, an instant messaging (instant messaging, IM) application, or the like. It should be noted that, a user may add multiple gadgets to the page of the first host, and the multiple gadgets may be displayed on the page of the first host at the same time.
Moreover, the manner in which the user adds the gadgets in the first host may include two ways, one of which is to display a page including a plurality of gadgets by triggering an add control in the first host; in response to a user-triggered selection operation, a user-selected gadget is added to the first host. For example, as shown in FIG. 3a, a user triggering an add control in cloud document 1 may view multiple gadgets, such as gadget 1, gadget 2, and gadget 3, and the user selects gadget 3 to add to the cloud document.
Alternatively, the second host includes a widget, and the widget is added to the first host through a preset trigger operation, such as a copy-paste operation or a share operation. Specifically, responding to the target view of the display gadget in the page of the second host and the triggering operation of the user on the target view, and acquiring the URL of the gadget; in response to a triggering operation at the first host by the user, the URL of the gadget is added to the first host.
Optionally, in response to the user adding information (information block) to be displayed of the gadget in the first host, and the first host having available rights to the gadget, rendering the information to be displayed, and displaying a target view corresponding to the information to be displayed. For example, as shown in FIG. 3b, when a user adds a block of information for a countdown gadget in cloud document 1, the block of information is rendered into a view of the countdown gadget. Wherein a developer of a gadget can set the available scope of the gadget, and personnel/departments/companies that are added to the scope have available rights.
Rendering the information to be displayed, and displaying a target view corresponding to the information to be displayed, wherein the rendering comprises the following steps: acquiring a display size configured by a first host for a gadget; rendering the information to be displayed according to the display size, and displaying the target view corresponding to the information to be displayed. Wherein the display size includes a width and a height of the display.
Optionally, in response to the user adding information to be displayed of the gadget in the first host and the first host does not have available rights to the gadget, displaying an unavailable prompt on a page of the first host. That is, when a user of the first host is not available to a gadget and a gadget is added to the first host, a hint message will be displayed on the page of the first host to hint the user that the first host is not available to the gadget.
Optionally, the user may also determine the presentation content of the gadget by adding a uniform resource locator URL of the gadget in the first host and determining the presentation content of the gadget according to the relevant configuration in the first host. Specifically, in response to a user adding a URL of a gadget in a first host, the content of the gadget is determined according to the required configuration of the first host. Wherein the requirements of the first array are configured to indicate whether the information (information block) to be displayed of the gadget needs to be acquired. When the requirements of the first host are configured so that the information to be displayed of the gadget does not need to be acquired, the URL is displayed on a page of the first host. When the requirements of the first host are configured to acquire the information to be displayed of the gadget, acquiring the information to be displayed corresponding to the URL; rendering the information to be displayed, and displaying the target view corresponding to the information to be displayed.
When the information to be displayed is rendered, the availability of the information to be displayed in the first host is also required to be judged, and if the user corresponding to the first host has the available authority to the gadget, the information to be displayed is rendered, and the target view corresponding to the information to be displayed is displayed; if the user of the first host does not have available rights to the gadget, rendering operations are not required and only the unavailable cues are presented.
Wherein the URL of the gadget added by the user in the first host is obtained from the other host (e.g., the second host). The gadget may be presented in other hosts in the form of a URL or a target view, and the user may obtain the gadget's URL by triggering a copy or share operation in the other hosts. That is, it is the URL of a gadget that propagates between different hosts. When the display form of the gadget in other hosts is the target view, the target view is converted into the URL in response to the triggering operation of the user, the URL is pasted or shared by the user in the first host, and the first host determines whether to convert the URL into the target view corresponding to the information to be displayed according to the configuration of the first host. For example, as shown in fig. 3c, an information Block of a gadget is displayed in application 1 (second host), and when a user performs a copy operation on the information Block, the information Block is converted into a URL, and the gadget is added to application 2 (first host) by pasting the URL; when the application 2 obtains the URL of the gadget, the URL may be rendered as a view of the gadget corresponding information Block.
The premise of the propagation through the URL is that the application supports the mutual conversion between the information Block and the URL. When a URL is provided in a scene in which the information block rendering engine is integrated, the engine needs to find corresponding information to be displayed through the URL so as to render the information to be displayed corresponding to the URL into a view of the information block Blcok.
Specifically, in response to displaying a target view of the gadget in the page of the second host and a triggering operation of the target view by a user, a URL of the gadget is obtained through a container of the second host. I.e., when the second host desires to obtain a URL (e.g., copy a Block), the URL is requested from the container to obtain the URL through the container.
Optionally, when the user adds the gadget in the first host and the page of the first host displays the target view of the gadget, and when the information to be displayed of the gadget is updated, the updated information to be displayed is rendered, and the target view corresponding to the updated information to be displayed is displayed. When the data corresponding to the gadget is updated, the gadget displayed in the first host also updates the data, so that a user accessing the first host or can view the updated data.
To facilitate an understanding of the propagation of gadgets between different hosts provided by embodiments of the present application, reference is made to FIG. 3 d. In this figure, the transmission of gadgets from cloud document 1 to cloud document 2 and IM is illustrated as an example. The cloud document 1 comprises an information Block of the small component 1, and a user acquires a URL corresponding to the information Block by triggering a copying operation. When the information Block is allowed to be copied or shared, converting the information Block into a URL in response to a copy operation triggered by a user; when the Block is not allowed to be copied or shared, hyperText markup Language (HTML) data including the Block identification is acquired. Wherein, html is a web page, URL is a web page or a website address, and the two results will be described separately.
1. Acquiring the URL corresponding to the information block
When copying the URL to the cloud document 2, the cloud document 2 will acquire a block of information from the URL and render the block of information. When a URL is copied to an IM, the URL may be displayed within the input box of the IM. Specifically, the display form in the IM will be related to the accuracy of the URL. As shown in fig. 4a, when the pasted URL is a URL corresponding to a certain information block, the IM may obtain the corresponding information block according to the URL, and then render the information block in session 1. As shown in fig. 4b, when the pasted URL is not the URL corresponding to the information block, for example, is the address of a certain web page, the IM cannot acquire the information block through the URL, and displays the URL in session 1.
2. Acquisition of HTML data
When copying the URL to the cloud document 2, the cloud document 2 may display the information block directly from the HTML data. When copying the URL to IM, the hint "the block of information can only be displayed in the cloud document" will be given.
Based on the above method embodiments, a small component generating device provided in the embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 5, which is a schematic structural diagram of a small component generating apparatus according to an embodiment of the present application, as shown in fig. 5, the apparatus 500 may include: a generating unit 501, a processing unit 502 and a determining unit 503.
A generating unit 501 for creating items of gadgets in response to a trigger operation by a user, and generating codes of the gadgets in the items;
a processing unit 502, configured to respond to the project information of the gadget after configuration, and perform packing uploading on the code of the gadget;
a determining unit 503, configured to determine one or more host identities on an application page of the gadget, so that the gadget is displayed in a host indicated by the host identity.
In a specific embodiment, the host identity is a host name.
In a specific embodiment, the determining unit 503 is further configured to determine, for any host, an icon and/or a type of the gadget displayed in the host by the gadget.
In a specific embodiment, the determining unit 503 is further configured to determine, in response to a user adding the gadget in a first host, a presentation content of the gadget in the first host.
In a specific embodiment, the presentation content includes a view of the gadget or a locator of the gadget.
In a specific embodiment, a plurality of gadgets are displayed on pages corresponding to the first host.
In a specific embodiment, the determining unit 503 is specifically configured to respond to that a user adds, in a first host, information to be displayed of the gadget, and that the user corresponding to the first host has available rights to the gadget, render the information to be displayed, and display a target view corresponding to the information to be displayed.
In a specific embodiment, the determining unit 503 is specifically configured to obtain a display size of the first host configured for the gadget; and rendering the information to be displayed according to the display size, and displaying a target view corresponding to the information to be displayed.
In a specific embodiment, the determining unit 503 is specifically configured to respond to that the user adds, in a first host, information to be displayed of the gadget, and the user corresponding to the first host does not have available rights to the gadget, and display an unavailable prompt on a page of the first host.
In a specific embodiment, the determining unit 503 is specifically configured to determine, according to a requirement configuration of the first host, the content of the widget in response to the user adding the uniform resource locator URL of the widget to the first host, where the requirement configuration is used to indicate whether the first host needs to obtain information to be displayed of the widget.
In a specific embodiment, the determining unit 503 is specifically configured to display the URL on a page of the first host without acquiring information to be displayed of the gadget in response to a requirement of the first host.
In a specific embodiment, the determining unit 503 is specifically configured to obtain, in response to a requirement of the first host, information to be displayed of the gadget, and obtain information to be displayed corresponding to the URL; rendering the information to be displayed, and displaying a target view corresponding to the information to be displayed.
In a specific embodiment, the determining unit 503 is specifically configured to render the information to be displayed and display a target view corresponding to the information to be displayed, in response to that the user corresponding to the first host has available rights corresponding to the gadget.
In a specific embodiment, the apparatus further comprises: a display unit;
the display unit is used for responding to the update of the information to be displayed of the small component, rendering the updated information to be displayed and displaying a target view corresponding to the updated information to be displayed.
In a specific embodiment, the apparatus further comprises: an acquisition unit and an addition unit;
the acquisition unit is used for responding to the target view of the widget displayed in the page of the second host and the triggering operation of the user on the target view, and acquiring the URL of the widget;
the adding unit is used for responding to the triggering operation of a user in the first host and adding the URL of the small component to the first host.
In a specific embodiment, the generating unit is specifically configured to obtain the target application in the background of the developer; items of gadgets are created in the target application.
In a specific embodiment, the apparatus further comprises: an acquisition unit and an addition unit;
the acquisition unit is used for acquiring the application identifier of the target application and the component identifier of the gadget;
the adding unit is used for adding the application identifier of the target application and the component identifier of the small component to the item information of the small component.
In a specific embodiment, the apparatus further comprises: a modifying unit;
the modification unit is used for responding to the triggering operation of a user and modifying the component identification of the gadget and/or the application identification of the target application in the item information of the gadget.
It should be noted that, specific implementations of each unit in this embodiment may refer to the related descriptions in the foregoing method embodiments, and this embodiment is not repeated herein.
It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice. The functional units in the embodiment of the application can be integrated in one processing unit, or each unit can exist alone physically, or two or more units are integrated in one unit. For example, in the above embodiment, the processing unit and the transmitting unit may be the same unit or may be different units. The integrated units may be implemented in hardware or in software functional units.
Referring to fig. 6, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present application is shown. The terminal device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistant, personal digital assistants), PADs (portable android device, tablet computers), PMPs (Portable Media Player, portable multimedia players), car terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs (televisions), desktop computers, and the like. The electronic device shown in fig. 6 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the method of the embodiment of the present application are performed when the computer program is executed by the processing means 601.
The electronic device provided by the embodiment of the present application belongs to the same inventive concept as the method provided by the above embodiment, and technical details not described in detail in the present embodiment can be seen in the above embodiment, and the present embodiment has the same beneficial effects as the above embodiment.
An embodiment of the present application provides a computer-readable medium, on which a computer program is stored, wherein the program, when being executed by a processor, implements a method as described in any of the above embodiments.
The computer readable medium of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (Hyper Text Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the gadget generation method.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The name of the unit/module is not limited to the unit itself in some cases, and, for example, the voice data acquisition module may also be described as a "data acquisition module".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of the present 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.
It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system or device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant points refer to the description of the method section.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (21)
1. A gadget generation method, the method comprising:
responding to the triggering operation of a user, creating a project of a small component, and generating codes of the small component in the project;
responding to the project information of the configuration completion gadget, and packing and uploading codes of the gadget;
one or more host identities are determined on an application page of the gadget, so that the gadget is presented in a host indicated by the host identity.
2. The method of claim 1, wherein the host identity is a host name.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
For any host, the icons that the gadget exposes in that host and/or the types of the gadgets are determined.
4. A method according to any one of claims 1-3, wherein the method further comprises:
in response to a user adding the gadget in a first host, presentation content of the gadget in the first host is determined.
5. The method of claim 4, wherein the presentation content comprises a view of the gadget or a locator of the gadget.
6. The method of claim 4 or 5, wherein a plurality of gadgets are displayed on pages corresponding to the first host.
7. The method of claim 4, wherein the determining, in response to a user adding the gadget in a first host, the presentation of the gadget in the first host comprises:
and responding to the fact that the user adds information to be displayed of the gadget in a first host, the user corresponding to the first host has available authority for the gadget, rendering the information to be displayed, and displaying a target view corresponding to the information to be displayed.
8. The method of claim 7, wherein rendering the information to be displayed, displaying the target view corresponding to the information to be displayed, comprises:
Acquiring a display size of the first host configured for the gadget;
and rendering the information to be displayed according to the display size, and displaying a target view corresponding to the information to be displayed.
9. The method of claim 4, wherein the determining, in response to a user adding the gadget at a first host, the exposed content of the gadget in the first application comprises:
and the response that the user adds the information to be displayed of the gadget in the first host, the user corresponding to the first host does not have available permission for the gadget, and the unavailable prompt is displayed on the page of the first host.
10. The method of claim 4, wherein the determining, in response to a user adding the gadget in a first host, the presentation of the gadget in the first host comprises:
and the response to the user adding the uniform resource locator URL of the gadget in a first host, determining the display content of the gadget according to the requirement configuration of the first host, wherein the requirement configuration is used for indicating whether the first host needs to acquire the information to be displayed of the gadget.
11. The method of claim 10, wherein the determining the presentation content of the gadget according to the first host's demand configuration comprises:
and responding to the requirement of the first host, and displaying the URL on the page of the first host without acquiring the information to be displayed of the gadget.
12. The method of claim 10, wherein the determining the presentation content of the gadget according to the first host's demand configuration comprises:
responding to the requirement of the first host, and configuring to acquire information to be displayed of the gadget, and acquiring the information to be displayed corresponding to the URL;
rendering the information to be displayed, and displaying a target view corresponding to the information to be displayed.
13. The method of claim 12, wherein rendering the information to be displayed, displaying the target view corresponding to the information to be displayed, comprises:
and responding to the fact that the user corresponding to the first host has available permission corresponding to the gadget, rendering the information to be displayed, and displaying a target view corresponding to the information to be displayed.
14. The method of claim 7, 8, 12 or 13, further comprising:
And responding to the update of the information to be displayed of the gadget, rendering the updated information to be displayed, and displaying a target view corresponding to the updated information to be displayed.
15. The method according to claim 10, wherein the method further comprises:
responding to the target view of the gadget displayed in the page of the second host and the triggering operation of the user on the target view, and acquiring the URL of the gadget;
in response to a triggering operation of a user at the first host, adding the URL of the gadget to the first host.
16. The method of claim 1, wherein creating the item of gadgets comprises:
acquiring a target application in a background of a developer;
items of gadgets are created in the target application.
17. The method of claim 16, wherein the method further comprises:
acquiring an application identifier of the target application and a component identifier of the small component;
and adding the application identification of the target application and the component identification of the small component into the item information of the small component.
18. The method of claim 17, wherein the method further comprises:
And in response to the triggering operation of the user, modifying the component identification of the gadget and/or the application identification of the target application in the item information of the gadget.
19. A gadget generation apparatus, the apparatus comprising:
a generation unit for responding to the triggering operation of a user, creating items of the gadgets, and generating codes of the gadgets in the items;
the processing unit is used for responding to the project information of the configuration completion gadget and packing and uploading the codes of the gadget;
and the determining unit is used for determining one or more host identifications on the application page of the gadget so that the gadget is displayed in the host indicated by the host identification.
20. An electronic device, the electronic device comprising: a processor and a memory;
the memory is used for storing instructions or computer programs;
the processor for executing the instructions or computer program in the memory to cause the electronic device to perform the gadget generation method of any one of claims 1-18.
21. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the gadget generation method of any of the preceding claims 1-18.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210396445.0A CN116954561A (en) | 2022-04-15 | 2022-04-15 | Small component generation method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210396445.0A CN116954561A (en) | 2022-04-15 | 2022-04-15 | Small component generation method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116954561A true CN116954561A (en) | 2023-10-27 |
Family
ID=88453451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210396445.0A Pending CN116954561A (en) | 2022-04-15 | 2022-04-15 | Small component generation method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116954561A (en) |
-
2022
- 2022-04-15 CN CN202210396445.0A patent/CN116954561A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12108310B2 (en) | Message extension app store | |
CN107491296B (en) | Messaging application interfacing with one or more extension applications | |
US10194288B2 (en) | Sticker distribution system for messaging apps | |
US10534533B2 (en) | Messaging sticker applications | |
US20170359282A1 (en) | Conversion of text relating to media content and media extension apps | |
CN110134880B (en) | Comment data providing method, comment data displaying method, comment data providing device, comment data displaying device, electronic equipment and storage medium | |
CN111752561B (en) | Block development method, block sharing method, page building method and page building system | |
CN110096665B (en) | Method, device, equipment and medium for displaying picture comment data | |
JP2024528412A (en) | Schedule sharing method, device and equipment | |
CN116136758A (en) | Page generation method, device, equipment and medium | |
CN114428925A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN116016420A (en) | Task list sharing method, device, equipment and medium | |
CN116432148A (en) | Method and device for setting visible rights of works, electronic equipment and storage medium | |
CN116954561A (en) | Small component generation method, device, equipment and medium | |
CN113220293B (en) | Page display method, page display device, electronic equipment and computer readable medium | |
JP2024500300A (en) | Information interaction methods, devices, and equipment | |
CN116954696A (en) | Component configuration method, device, medium and electronic equipment | |
CN118585189A (en) | Form configuration method, form configuration device, medium, electronic device and program product | |
CN116155869A (en) | Information processing method, apparatus, electronic device and storage medium | |
CN117076754A (en) | Processing method of search component, search method and related equipment | |
CN117435180A (en) | Page component adding method and device | |
CN118170281A (en) | Information interaction method and device and electronic equipment | |
CN116108304A (en) | Article image generation method, apparatus, device, computer medium, and program product | |
CN116578208A (en) | Document processing method and device and electronic equipment | |
CN116204251A (en) | Method, device, equipment and storage medium for displaying special effects |
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 |