CN115878101A - File acquisition method, device, equipment and storage medium - Google Patents

File acquisition method, device, equipment and storage medium Download PDF

Info

Publication number
CN115878101A
CN115878101A CN202111144833.1A CN202111144833A CN115878101A CN 115878101 A CN115878101 A CN 115878101A CN 202111144833 A CN202111144833 A CN 202111144833A CN 115878101 A CN115878101 A CN 115878101A
Authority
CN
China
Prior art keywords
file
control
sub
component identification
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111144833.1A
Other languages
Chinese (zh)
Inventor
杨莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202111144833.1A priority Critical patent/CN115878101A/en
Publication of CN115878101A publication Critical patent/CN115878101A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a file acquisition method, a file acquisition device, an electronic device and a storage medium, wherein the method comprises the following steps: when a first main control is in a selected state, in response to a trigger operation acted on a first sub-control, displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page; in response to the selection operation of the at least one first component identification, displaying the file associated with the selected first component identification in a second area of the user interface; and responding to target operation, acquiring the file, and realizing the preset function of the first target page based on the file. The aim of enabling the access party to visually and autonomously select the file to be accessed is achieved, and the labor cost is reduced.

Description

File acquisition method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a file obtaining method and apparatus, an electronic device, and a storage medium.
Background
The SDK (Software Development Kit) is a tool set that assists developers in developing application programs, and developers can directly use corresponding functions therein, thereby omitting the process of writing corresponding function codes and achieving the purpose of improving Development efficiency.
In the related art, a professional person is required to maintain the SDK, which is usually a developer of the SDK, so as to ensure that a third party needing to access the SDK can access the correct SDK. This approach obviously has the problem of high labor costs.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present disclosure provide a file obtaining method, an apparatus, an electronic device, and a storage medium, so as to achieve the purpose of enabling an access party to visually and autonomously select a file to be accessed, and reduce labor cost.
In a first aspect, an embodiment of the present disclosure provides a file obtaining method, where the method includes:
when a first main control is in a selected state, in response to a trigger operation acted on a first sub-control, displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page;
in response to the selection operation of the at least one first component identification, displaying the file associated with the selected first component identification in a second area of the user interface;
and responding to target operation, acquiring the file, and realizing the preset function of the first target page based on the file.
In a second aspect, an embodiment of the present disclosure further provides a file acquiring apparatus, where the apparatus includes:
the first display module is used for responding to a trigger operation acted on a first sub-control when the first main control is in a selected state, and displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page;
the second display module is used for responding to the selection operation of the at least one first component identifier, and displaying the file associated with the selected first component identifier in a second area of the user interface;
and the acquisition module is used for responding to the target operation and acquiring the file so as to realize the preset function of the first target page based on the file.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the file retrieval method as described above.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the file acquisition method as described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least the following advantages:
according to the file acquisition method provided by the embodiment of the disclosure, when a first main control is in a selected state, in response to a trigger operation acting on a first sub-control, at least one first component identifier bound with the first sub-control is displayed in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identifier is associated with at least one preset function of the first target page; in response to the selection operation of the at least one first component identification, displaying the file associated with the selected first component identification in a second area of the user interface; and responding to the target operation, acquiring the file to realize the preset function of the first target page based on the file, so that the aim of enabling an access party to visually and autonomously select the file to be accessed is fulfilled, and the manpower maintenance cost is reduced.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of a file acquisition method in an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a user interface in an embodiment of the present disclosure;
FIG. 3 is a schematic view of a user interface in an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a user interface in an embodiment of the present disclosure;
FIG. 5 is a schematic view of a user interface in an embodiment of the present disclosure;
FIG. 6 is a flow chart of a file acquisition method in an embodiment of the present disclosure;
FIG. 7 is a schematic view of a user interface in an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of a file retrieving apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Generally, to improve portability of program codes, current SDKs are often built on a modular basis. The SDK access party can individually access certain components by combining the service requirements of the SDK access party so as to realize the personalized function of the service of the SDK access party. However, the SDK access party and the SDK developer are usually different individuals, so the SDK access party cannot accurately determine the component code to be accessed, and only knows the service function that the SDK access party wants to implement. However, the requirement of the SDK access side will change continuously, which results in a large maintenance workload of the SDK developer.
In view of the above problems, the file acquisition method of the present disclosure is provided, which achieves the purpose of visually and autonomously selecting a file to be accessed (i.e., an SDK or a program code of a component) by an SDK access party, and reduces the labor maintenance cost.
Fig. 1 is a flowchart of a file acquisition method in the embodiment of the present disclosure. The method may be executed by a file obtaining apparatus, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in an electronic device, such as a display terminal, specifically including but not limited to an electronic device with a display screen, such as a smart phone, a palm computer, a tablet computer, a portable wearable device, and a smart home device (e.g., a desk lamp).
As shown in fig. 1, the method may specifically include the following steps:
step 110, when the first main control is in a selected state, in response to a trigger operation acting on the first sub-control, displaying at least one first component identifier bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identifier is associated with at least one preset function of the first target page.
Illustratively, referring to a schematic diagram of a user interface such as that shown in FIG. 2, a first child control 211 displayed at the user interface is associated with the first main control 210 when the first main control 210 is selected. Specifically, when the user triggers the first sub-control 211, at least one first component identifier bound to the first sub-control 211 is displayed in the first area 220 of the user interface.
The first component identifier should be an identifier that characterizes a specific preset function. For example, if the preset function is a beauty function, the corresponding first component identifier may be "beauty" or "beauty" so that any user (no matter the SDK developer or the SDK access party) can understand the preset function corresponding to the first component identifier when seeing the first component identifier, thereby facilitating the user to autonomously select the relevant SDK which the user needs to access. The first component identifier shown in fig. 2 may include "necessary component", "standard flow", "snap-shot flow", "filter", "beauty", "flip camera", and the like; wherein the state of the "essential component" may always be a selected state, indicating a component that is required regardless of the implementation of any preset function. The first component identification also comprises prompt information, such as 'one selection between the first component identification and the snapshot process', and 'necessary component', so that a user can be intuitively prompted to select the first component identification, even a person without a programming base can easily operate the first component identification, and the labor cost is greatly reduced.
The first main control is associated with a first target page of a target application program, and the at least one first component identifier is associated with at least one preset function of the first target page. Therefore, when a user wants to access the SDK realizing a certain function, the user can firstly determine which pages of the target application program can realize the function, and then find the interactive control associated with the related page. For example, a user wants to access an SDK implementing a "beauty" function, and since the "beauty" function can be implemented on a video editing page, the user can first lock a first main control associated with the video editing page on a user interface, then find first component identifiers associated with preset functions in the video editing page through a first sub-control cascaded with the first main control, and finally determine the SDK to be accessed based on the first component identifiers.
Illustratively, the target application is a video application, the first target page is a video editing page, and if the number of the first component identifiers is 2, the first component identifiers are respectively marked as a first component identifier 1 and a first component identifier 2, where the first component identifier 1 may correspond to a "beauty" function in the video editing page, that is, the beauty function may be implemented by a file (i.e., an SDK or a program code) corresponding to the first component identifier 1; the first component identification 2 may correspond to a "filter" function in the video editing page, i.e. the filter function may be implemented by the file to which the first component identification 2 corresponds. The file may specifically refer to a program code, the program code may include many components, and a class in the program code corresponds to a specific component, so in order to implement simplicity and reduce error probability, the file may specifically further include a storage path of the component or a call path of the component. By building the program codes based on modularization, the program codes for realizing various different functions can be conveniently decoupled or combined. When the SDK access party needs to realize a certain function, the SDK access party can directly access the component for realizing the corresponding function without developing again, so that the development cost can be greatly saved.
And 120, responding to the selection operation of the at least one first component identification, and displaying the file associated with the selected first component identification in a second area of the user interface.
Correspondingly, referring to a schematic diagram of a user interface as shown in FIG. 3, a first sub-control 311 displayed at the user interface is associated with the first main control 310 when the first main control 310 is selected. Specifically, when the user triggers the first sub-control 311, at least one first component identifier bound to the first sub-control 311 is displayed in the first area 320 of the user interface. Assuming that the user selects the first component identification 330, the file, i.e., the SDK or program code, associated with the first component identification 330 is displayed in the second area 340 of the user interface. Therefore, the user can determine the code for realizing the business function only based on the name of the business function which the user wants to realize, the business capability of reading the code is not needed, the professional requirement on the user is reduced, and in other words, the labor cost is saved.
Step 130, responding to the target operation, acquiring the file, and implementing the preset function of the first target page based on the file.
Specifically, the target operation may be a copy operation on the file, or may also be an export operation on the file through a preset export control.
Illustratively, the obtaining the file in response to the target operation includes:
in response to a copy operation for the file, copying the file to a clipboard to copy the file to a target project of a preset development environment; or responding to a trigger operation acted on the export control, and displaying a path setting panel to add the file to a target project of a preset development environment. As shown in fig. 4, when the user triggers the export control 410, the path setting panel may be invoked, and the user may set an export path on the path setting panel, that is, a target location for storing the file, where the export path may specifically be a path added to a certain development project, so as to achieve the purpose of directly adding the file to a corresponding location of the development project, thereby greatly simplifying an access path of the SDK and improving the access efficiency of the SDK.
Further, in some embodiments, referring to a schematic diagram of a user interface as shown in FIG. 5, a second master control 510 is also displayed on the user interface, the second master control 510 being associated with a second target page of the target application. That is, the target page associated with the first master control 310 is different from the second target page associated with the second master control 510, in other words, different master controls correspond to different target pages, so the number of master controls is not limited to the first master control 310 and the second master control 510, and multiple master controls such as a third master control and a fourth master control may be further included to be associated with different target pages respectively. Similarly, when the second main control 510 is in the selected state, in response to the trigger operation acting on the first sub-control 311, at least one third component identifier bound with the first sub-control 311 is displayed in the first area 320 of the user interface, and the at least one third component identifier is associated with at least one preset function of the second target page. That is, if the currently selected master control is different, the component identifier bound to the first sub-control 311 is different, because if the currently selected master control is different, the corresponding target page is different, and accordingly the preset function associated with the component identifier is different along with the difference of the target page, and therefore if the currently selected master control is different, the component identifier bound to the first sub-control 311 is different. Specifically, if the currently selected main control is the main control associated with the video editing page, the component identifier bound to the first sub-control 311 is associated with the preset function of the video editing page; if the currently selected main control is the main control associated with the video shooting page, the component identifier bound with the first sub-control 311 is associated with a preset function of the video shooting page; if the currently selected main control is the main control associated with the video publishing page, the component identifier bound with the first sub-control 311 is associated with the preset function of the video publishing page. When a user determines a file to be accessed, the user can firstly determine a page where a service function to be realized is located, then enter a related page through interactive operation with a main control, and then select an identifier corresponding to the service function to be realized from component identifiers related to the related page to complete screening of the file to be accessed.
It should be noted that the association relationship between the target page and each main control and the binding relationship between the first sub-control and each component identifier may be completed through a json configuration file, and the association relationship between the target page and each main control and the binding relationship between the first sub-control and each component identifier are configured in the json configuration file.
According to the file acquisition method provided by the embodiment of the disclosure, the related control is displayed through the user interface, the access party user selects the target page to which the access file to be generated belongs through the main control, then the required program code is selected through the displayed first component identifier, the related program code is displayed in the second area of the user interface, the access party user can copy the program code in the second area and can export the related program code through the export control, the purpose that the access party user can visually and autonomously select the file to be accessed is achieved, and the manpower maintenance cost is reduced.
Fig. 6 is a flowchart illustrating a file acquisition method according to an embodiment. On the basis of the above embodiment, the embodiment further optimizes the file acquisition method, and specifically solves the problem of how to synchronize the new version of the SDK after the developer edits (for example, adds, deletes, or changes) the original SDK.
As shown in fig. 6, the file acquiring method includes the following steps:
step 610, when a first main control is in a selected state, in response to a trigger operation acting on a first sub-control, displaying at least one first component identifier bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identifier is associated with at least one preset function of the first target page.
Step 620, responding to the selection operation of the at least one first component identification, and displaying the file associated with the selected first component identification in a second area of the user interface.
Step 630, in response to the target operation, acquiring the file to implement a preset function of the first target page based on the file.
And step 640, when the first main control is in the selected state, responding to the trigger operation acted on the second sub-control, and displaying at least one second component identifier on a user interface.
Step 650, responding to the selected operation aiming at the at least one second component identification, and displaying the configuration information associated with the selected second component identification on the user interface; and responding to the trigger operation aiming at the adding control, and establishing an incidence relation between the selected second component identification and the first main control.
Specifically, since the versions of the respective application programs may be updated continuously, the initial SDK code is also changed continuously, and a preset function may be added or an existing preset function may be deleted. Specifically, referring to the schematic diagram of the user interface shown in fig. 7, a second sub-control 710 is further displayed on the user interface, and when the first main control 310 is in the selected state, the second sub-control 710 is associated with the preset function of the target page associated with the first main control 310. For example, if the first main control 310 is associated with a video editing page, the second sub-control 710 is associated with a preset function of the video editing page, specifically, when the user triggers the second sub-control 710, at least one second component identifier is displayed in the first area 320 of the user interface, and the second component identifier is associated with the preset function of the video editing page, such as "filter", "beauty", "flip camera", and the like. If the developing policy adds a preset function, for example, a newly added "filter" function, to the video editing page, when the user triggers the second sub-control 710, a component identifier "filter" is displayed in the first area 320 of the user interface, and when the user selects "filter", configuration information of "filter" is displayed on the user interface, specifically including an identifier ID, a name, and a call path of a code file for implementing the function, where the configuration information may be maintained by a developer, or may be configured automatically, for example, by associating a json configuration file, automatic generation of the configuration information may be implemented, and version management of the json configuration file needs to be consistent with an SDK version, so that the json configuration file may be directly put into the SDK code, and the developer may conveniently maintain the version of the configuration file.
When the user clicks the "add" control 720, an association relationship between the component identifier "filter" and the first master control 310 is established, and when the "save" control 730 is further triggered, a binding relationship between the component identifier "filter" and the first child control 311 is established, that is, when the user triggers the first child control 311, the component identifier "filter" is displayed in the first area 320 of the user interface. When the user triggers the "delete" control 740, the binding relationship between the component identifier "filter" and the first child control 311 is released, and when the user triggers the first child control 311, the component identifier "filter" is no longer displayed in the first area 320 of the user interface, indicating that the "filter" function is set off the video editing page.
It should be noted that, if a user wants to improve or modify a certain preset function, the component infrastructure corresponding to the preset function may be obtained by triggering the "export empty component" control 750, and the modification is continued on the basis of the component infrastructure, so that the development cost may also be reduced to a certain extent.
Further, for the type of the original SDK changing content, a "component" control, i.e., the second sub-control 710, a "plug-in" (which may be defined as a third sub-control 760), may be set respectively, and other types of fourth sub-controls, fifth sub-controls, and so on may also be extended.
In summary, in response to a trigger operation for the save control, a binding relationship between the selected second component identifier and the first sub-control is established, so that in response to the trigger operation acting on the first sub-control, the selected second component identifier is displayed in the first area of the user interface. And in response to the trigger operation for deleting the control, releasing the binding relation between the selected second component identification and the first sub-control.
According to the file acquisition method provided by the embodiment of the disclosure, the SDK access party can autonomously select the file to be accessed through visual UI interaction, so that the manpower maintenance cost for the file to be accessed is reduced; and when the original SDK version is updated, synchronously updating the components related to each control of the visual UI through related configuration.
Fig. 8 is a schematic structural diagram of a file acquiring apparatus in an embodiment of the present disclosure. As shown in fig. 8, the file acquiring apparatus specifically includes: a first display module 810, a second display module 820, and an acquisition module 830.
The first display module 810 is configured to, when a first main control is in a selected state, in response to a trigger operation acting on a first sub-control, display at least one first component identifier bound to the first sub-control in a first area of a user interface, where the first main control is associated with a first target page of a target application program, and the at least one first component identifier is associated with at least one preset function of the first target page; a second display module 820, configured to display, in response to the selection operation for the at least one first component identifier, a file associated with the selected first component identifier in a second area of the user interface; an obtaining module 830, configured to, in response to a target operation, obtain the file, so as to implement a preset function of the first target page based on the file.
Optionally, the obtaining module 830 is specifically configured to: in response to a copy operation for the file, copying the file to a clipboard to copy the file to a target project of a preset development environment; or responding to a trigger operation acted on the export control, and displaying a path setting panel to add the file to a target project of a preset development environment.
Optionally, the method further includes: the second display module is used for responding to the triggering operation acted on the second sub-control when the first main control is in the selected state and displaying at least one second component identifier on the user interface; the third display module is used for responding to the selection operation of the at least one second component identifier, and displaying the configuration information associated with the selected second component identifier on the user interface; and the first establishing module is used for responding to the triggering operation aiming at the adding control and establishing the incidence relation between the selected second component identification and the first main control.
Optionally, the method further includes: and the second establishing module is used for responding to the triggering operation aiming at the saving control, establishing the binding relationship between the selected second component identification and the first sub-control, and displaying the selected second component identification in the first area of the user interface in response to the triggering operation acting on the first sub-control.
Optionally, the method further includes: and the releasing module is used for responding to the trigger operation aiming at the deleting control and releasing the binding relation between the selected second component identification and the first sub-control.
Optionally, a second main control is further displayed on the user interface, and the second main control is associated with a second target page of the target application program; the first display module 810 is further configured to: and when the second main control is in a selected state, in response to a trigger operation acted on the first sub-control, displaying at least one third component identification bound with the first sub-control in a first area of a user interface, wherein the at least one third component identification is associated with at least one preset function of the second target page.
Optionally, the target application includes a video application, the first target page includes a shooting page or an editing page, and the preset function includes at least one of: beauty, filter or flip camera.
According to the file acquisition device provided by the embodiment of the disclosure, the related control is displayed through the user interface, the access party user selects the target page to which the access file to be generated belongs through the main control, then the required program code is selected through the displayed first component identifier, the related program code can be displayed in the second area of the user interface, the access party user can copy the program code in the second area, and the related program code can also be exported through the export control, so that the purpose of visually and autonomously selecting the file to be accessed by the access party user is realized, and the manpower maintenance cost is reduced.
The file acquisition device provided by the embodiment of the disclosure can execute the steps in the file acquisition method provided by the embodiment of the disclosure, and has the execution steps and beneficial effects which are not described herein again.
Fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring now specifically to fig. 9, a schematic diagram of an electronic device 900 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 900 in the disclosed embodiments may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), wearable electronic devices, and the like, and fixed terminals such as digital TVs, desktop computers, smart home devices, and the like. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, electronic device 900 may include a processing means (e.g., central processing unit, graphics processor, etc.) 901 that may perform various appropriate actions and processes to implement the methods of embodiments as described in this disclosure in accordance with a program stored in a Read Only Memory (ROM) 902 or a program loaded from storage 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are also stored. The processing apparatus 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
Generally, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. The communication means 909 may allow the electronic apparatus 900 to communicate with other apparatuses wirelessly or by wire to exchange data. While fig. 9 illustrates an electronic device 900 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart, thereby implementing the method as described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. The computer program, when executed by the processing device 901, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. 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 thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
when a first main control is in a selected state, in response to a trigger operation acted on a first sub-control, displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page; in response to the selection operation of the at least one first component identification, displaying the file associated with the selected first component identification in a second area of the user interface; and responding to target operation, acquiring the file, and realizing the preset function of the first target page based on the file.
Optionally, when the one or more programs are executed by the electronic device, the electronic device may further perform other steps described in the above embodiments.
Computer program code for carrying out operations for the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, 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. A 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a file acquisition method including: when a first main control is in a selected state, in response to a trigger operation acted on a first sub-control, displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page; in response to the selection operation of the at least one first component identification, displaying the file associated with the selected first component identification in a second area of the user interface; and responding to target operation, acquiring the file, and realizing the preset function of the first target page based on the file.
According to one or more embodiments of the present disclosure, in the file obtaining method provided by the present disclosure, optionally, the obtaining the file in response to the target operation includes: in response to a copy operation for the file, copying the file to a clipboard to copy the file to a target project of a preset development environment; or responding to a trigger operation acted on the export control, and displaying a path setting panel to add the file to a target project of a preset development environment.
According to one or more embodiments of the present disclosure, in the file acquiring method provided by the present disclosure, optionally, the method further includes: when the first main control is in a selected state, responding to a trigger operation acted on a second sub-control, and displaying at least one second component identification on a user interface; in response to a selection operation for the at least one second component identifier, displaying configuration information associated with the selected second component identifier on the user interface; and responding to the triggering operation of the adding control, and establishing the association relation between the selected second component identification and the first main control.
According to one or more embodiments of the present disclosure, in the file acquiring method provided by the present disclosure, optionally, the method further includes: and responding to the trigger operation aiming at the saving control, establishing a binding relation between the selected second component identification and the first sub-control, and displaying the selected second component identification in a first area of the user interface in response to the trigger operation acting on the first sub-control.
According to one or more embodiments of the present disclosure, in the file acquiring method provided by the present disclosure, optionally, the method further includes: and responding to a trigger operation for deleting the control, and removing the binding relationship between the selected second component identification and the first sub-control.
According to one or more embodiments of the present disclosure, in the file acquiring method provided by the present disclosure, optionally, the method further includes: a second primary control is further displayed on the user interface, and the second primary control is associated with a second target page of the target application program; and when the second main control is in a selected state, in response to a trigger operation acted on the first sub-control, displaying at least one third component identification bound with the first sub-control in a first area of a user interface, wherein the at least one third component identification is associated with at least one preset function of the second target page.
According to one or more embodiments of the present disclosure, in the file acquiring method provided by the present disclosure, optionally, the target application includes a video application, the first target page includes a shooting page or an editing page, and the preset function includes at least one of: beauty, filter or flip camera.
According to one or more embodiments of the present disclosure, there is provided a file acquisition apparatus including: the first display module is used for responding to a trigger operation acted on a first sub-control when the first main control is in a selected state, and displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page; the second display module is used for responding to the selection operation of the at least one first component identification, and displaying the file associated with the selected first component identification in a second area of the user interface; and the acquisition module is used for responding to the target operation and acquiring the file so as to realize the preset function of the first target page based on the file.
According to one or more embodiments of the present disclosure, in the file acquiring apparatus provided in the present disclosure, optionally, the acquiring module 830 is specifically configured to: in response to a copy operation for the file, copying the file to a clipboard to copy the file to a target project of a preset development environment; or responding to a trigger operation acted on the export control, and displaying a path setting panel to add the file to a target project of a preset development environment.
According to one or more embodiments of the present disclosure, in the file acquiring apparatus provided by the present disclosure, optionally, the file acquiring apparatus further includes: the second display module is used for responding to the trigger operation acted on the second sub-control when the first main control is in the selected state and displaying at least one second component identifier on the user interface; the third display module is used for responding to the selection operation of the at least one second component identifier, and displaying the configuration information associated with the selected second component identifier on the user interface; and the first establishing module is used for responding to the triggering operation aiming at the adding control and establishing the incidence relation between the selected second component identification and the first main control.
According to one or more embodiments of the present disclosure, in the file acquiring apparatus provided by the present disclosure, optionally, the file acquiring apparatus further includes: and the second establishing module is used for responding to the triggering operation aiming at the saving control, establishing the binding relationship between the selected second component identification and the first sub-control, and displaying the selected second component identification in the first area of the user interface in response to the triggering operation acting on the first sub-control.
According to one or more embodiments of the present disclosure, in the file acquiring apparatus provided by the present disclosure, optionally, the file acquiring apparatus further includes: and the releasing module is used for responding to the trigger operation aiming at the deleting control and releasing the binding relation between the selected second component identification and the first sub-control.
According to one or more embodiments of the present disclosure, in the file acquiring apparatus provided by the present disclosure, optionally, a second main control is further displayed on the user interface, where the second main control is associated with a second target page of the target application; the first display module is further configured to: and when the second main control is in a selected state, in response to a trigger operation acted on the first sub-control, displaying at least one third component identification bound with the first sub-control in a first area of a user interface, wherein the at least one third component identification is associated with at least one preset function of the second target page.
According to one or more embodiments of the present disclosure, in the file acquiring apparatus provided by the present disclosure, optionally, the target application includes a video application, the first target page includes a shooting page or an editing page, and the preset function includes at least one of: beauty, filter or flip camera.
In accordance with one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the file retrieval methods provided by the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a file acquisition method as any one of the file acquisition methods provided by the present disclosure.
The disclosed embodiments also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement the file acquisition method as described above.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other combinations of features described above or equivalents thereof without departing from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A file acquisition method, characterized in that the method comprises:
when a first main control is in a selected state, in response to a trigger operation acted on a first sub-control, displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page;
in response to the selection operation of the at least one first component identification, displaying the file associated with the selected first component identification in a second area of the user interface;
and responding to target operation, acquiring the file, and realizing the preset function of the first target page based on the file.
2. The method of claim 1, wherein the retrieving the file in response to the target operation comprises:
in response to a copy operation for the file, copying the file to a clipboard to copy the file to a target project of a preset development environment;
or responding to a trigger operation acted on the export control, and displaying a path setting panel to add the file to a target project of a preset development environment.
3. The method of claim 1, further comprising:
when the first main control is in a selected state, responding to the trigger operation acted on the second sub-control, and displaying at least one second component identifier on a user interface;
in response to a selection operation for the at least one second component identifier, displaying configuration information associated with the selected second component identifier on the user interface;
and responding to the trigger operation aiming at the adding control, and establishing an incidence relation between the selected second component identification and the first main control.
4. The method of claim 3, further comprising:
and responding to the triggering operation of the saving control, establishing a binding relation between the selected second component identification and the first sub-control, and displaying the selected second component identification in a first area of the user interface in response to the triggering operation acted on the first sub-control.
5. The method of claim 3, further comprising:
and in response to the trigger operation for deleting the control, releasing the binding relation between the selected second component identification and the first sub-control.
6. The method of any one of claims 1-5, further comprising:
a second primary control is further displayed on the user interface, and the second primary control is associated with a second target page of the target application program;
and when the second main control is in a selected state, in response to a trigger operation acted on the first sub-control, displaying at least one third component identification bound with the first sub-control in a first area of a user interface, wherein the at least one third component identification is associated with at least one preset function of the second target page.
7. The method according to any one of claims 1-5, wherein the target application comprises a video application, the first target page comprises a capture page or an edit page, and the preset function comprises at least one of: beauty, filter or flip camera.
8. A file acquisition apparatus, characterized by comprising:
the first display module is used for responding to a trigger operation acted on a first sub-control when the first main control is in a selected state, and displaying at least one first component identification bound with the first sub-control in a first area of a user interface, wherein the first main control is associated with a first target page of a target application program, and the at least one first component identification is associated with at least one preset function of the first target page;
the second display module is used for responding to the selection operation of the at least one first component identification, and displaying the file associated with the selected first component identification in a second area of the user interface;
and the acquisition module is used for responding to the target operation and acquiring the file so as to realize the preset function of the first target page based on the file.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202111144833.1A 2021-09-28 2021-09-28 File acquisition method, device, equipment and storage medium Pending CN115878101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111144833.1A CN115878101A (en) 2021-09-28 2021-09-28 File acquisition method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111144833.1A CN115878101A (en) 2021-09-28 2021-09-28 File acquisition method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115878101A true CN115878101A (en) 2023-03-31

Family

ID=85763608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111144833.1A Pending CN115878101A (en) 2021-09-28 2021-09-28 File acquisition method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115878101A (en)

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN112395253B (en) Index file generation method, terminal device, electronic device and medium
CN111897740A (en) User interface testing method and device, electronic equipment and computer readable medium
US20240126417A1 (en) Method, form data processing method, apparatus, and electronic device for form generation
CN111596991A (en) Interactive operation execution method and device and electronic equipment
WO2022184077A1 (en) Document editing method and apparatus, and terminal and non-transitory storage medium
WO2023207543A1 (en) Media content publishing method and apparatus, and device, storage medium and program product
CN115113787B (en) Message processing method, device, equipment and medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN113391860A (en) Service request processing method and device, electronic equipment and computer storage medium
CN115470754A (en) Data analysis method and device, computer readable medium and electronic equipment
CN115344688A (en) Business data display method and device, electronic equipment and computer readable medium
CN115878101A (en) File acquisition method, device, equipment and storage medium
CN115017110A (en) Information processing method, device, terminal and storage medium
CN114138149A (en) Data screening method and device, readable medium and electronic equipment
CN113011140A (en) View display method and device and electronic equipment
CN115061601A (en) Electronic document processing method and device, terminal and storage medium
CN111581930A (en) Online form data processing method and device, electronic equipment and readable medium
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN111787043A (en) Data request method and device
CN116049210A (en) Information processing method, device, terminal and storage medium
CN113220371A (en) SDK access method, device, medium and electronic equipment
CN116204251A (en) Method, device, equipment and storage medium for displaying special effects
CN118051216A (en) Component editing method, device, equipment and storage medium
CN113920220A (en) Image editing backspacing method and device

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