CN116974557A - Applet processing method, device, apparatus and computer readable storage medium - Google Patents

Applet processing method, device, apparatus and computer readable storage medium Download PDF

Info

Publication number
CN116974557A
CN116974557A CN202310551473.XA CN202310551473A CN116974557A CN 116974557 A CN116974557 A CN 116974557A CN 202310551473 A CN202310551473 A CN 202310551473A CN 116974557 A CN116974557 A CN 116974557A
Authority
CN
China
Prior art keywords
target
applet
component
resource package
configuration resource
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
CN202310551473.XA
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310551473.XA priority Critical patent/CN116974557A/en
Publication of CN116974557A publication Critical patent/CN116974557A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an applet processing method, device, equipment and computer readable storage medium; the method comprises the following steps: in response to a received component selection instruction, at least one target business component is acquired from a predefined business component library, wherein the predefined business component library comprises a plurality of business components with different functions; responding to the received configuration operation aiming at the target service component, and obtaining an updated configuration resource package of the target service component; and responding to the received applet generation instruction, and dynamically compiling based on the updated configuration resource package to generate the target applet. According to the method and the device, the target applet can be generated rapidly, and the processing efficiency of the applet is improved.

Description

Applet processing method, device, apparatus and computer readable storage medium
Technical Field
The present application relates to information processing technology, and in particular, to an applet processing method, apparatus, device, and computer readable storage medium.
Background
In order to solve the problem of resource waste, each large Internet company provides small programs, and can directly use application programs without downloading and installing, so that the use convenience is improved. Meanwhile, the applet also has the advantages of low development cost, multiple popularization channels, strong safety and the like, thereby attracting more attention, and therefore, the applet gradually becomes an important development trend of the Internet industry.
In the related art, however, code segments are needed to be spliced to generate a service module, so that an applet item is generated, and the implementation process is complex. And if a large number of derivative version applets based on the basic version are needed to be accessed, the problems of huge workload and extremely low maintainability are caused, and finally the timeliness of the applet generation is influenced.
Disclosure of Invention
The embodiment of the application provides an applet processing method, an applet processing device, computer equipment, a computer program product and a computer readable storage medium, which can quickly generate a target applet and improve the processing efficiency of the applet.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a small program processing method, which comprises the following steps:
in response to a received component selection instruction, at least one target business component is acquired from a predefined business component library, wherein the predefined business component library comprises a plurality of business components with different functions;
responding to the received configuration operation aiming at the target service component, and obtaining an updated configuration resource package of the target service component;
and responding to the received applet generation instruction, and dynamically compiling based on the updated configuration resource package to generate the target applet.
The embodiment of the application provides an applet processing device, which comprises:
the first acquisition module is used for responding to the received component selection instruction and acquiring at least one target service component from a predefined service component library, wherein the predefined service component library comprises a plurality of service components with different functions;
the first response module is used for responding to the received configuration operation aiming at the target service component to obtain an updated configuration resource package of the target service component;
and the compiling module is used for responding to the received applet generation instruction, dynamically compiling based on the updated configuration resource package and generating a target applet.
An embodiment of the present application provides a computer apparatus including:
a memory for storing computer executable instructions;
and the processor is used for realizing the small program processing method provided by the embodiment of the application when executing the computer executable instructions stored in the memory.
The embodiment of the application provides a computer readable storage medium, which stores computer executable instructions for realizing the applet processing method provided by the embodiment of the application when the computer executable instructions are caused to be executed by a processor.
The embodiment of the application provides a computer program product, which comprises a computer program or a computer executable instruction, wherein the computer program or the computer executable instruction realizes the small program processing method provided by the embodiment of the application when being executed by a processor.
The embodiment of the application has the following beneficial effects:
in the embodiment of the application, at least one target service component is acquired from a predefined service component library in response to a received component selection instruction, wherein the predefined service component library comprises a plurality of service components with different functions, for example, the predefined service component library can comprise a navigation bar component, a login module component, a carousel graph component, a bulletin component, a task list component, a customer service module component and the like. The target service component is a service component which needs to be configured. Then, receiving a configuration operation for the target service component, wherein the configuration operation is used for configuring the target service, based on the configuration operation, the configuration information related to the target service component is changed through the configuration operation, so as to obtain an updated configuration resource package of the target service component, for example, whether the target service component is displayed or not is changed, a background picture of the target service component is changed, and the updated configuration resource package can be obtained in real time based on the configuration operation; and finally, receiving an applet generation instruction, and responding to the applet generation instruction, and dynamically compiling based on the updated configuration resource package so as to generate the target applet. Therefore, the target applet can be generated in time based on the updated configuration resource package, so that the generation process of the target applet is simplified, the time for generating the target applet is shortened, and the timeliness of finally generating the target applet is improved.
Drawings
FIG. 1 is a schematic diagram of a network architecture of an applet processing system 100 according to an embodiment of the application;
fig. 2 is a schematic structural diagram of a server 400 according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of an implementation of the applet processing method according to an embodiment of the application;
FIG. 4 is a schematic flow chart of an implementation of the generation target applet provided in an embodiment of the application;
FIG. 5 is a schematic flow chart of an implementation of generating a project code of interest according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of an implementation of the update target applet according to an embodiment of the present application;
FIG. 7 is a schematic flow chart of an implementation of the preview interface provided in the embodiment of the present application;
FIG. 8 is a schematic diagram of an implementation flow chart of a display object applet according to an embodiment of the present application;
FIG. 9 is a schematic flow chart of an implementation of a target business component for displaying a target applet according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a configuration interface of a visualization tool platform according to an embodiment of the present application;
FIG. 11 is a schematic diagram showing an interface comparison between a basic version applet and a derivative version applet according to an embodiment of the application;
FIG. 12 is a schematic diagram of a framework for generating business side applet projects in accordance with an embodiment of the present application;
FIG. 13 is a schematic diagram of the structural components of an applet application provided in an embodiment of the application;
FIG. 14 is a schematic diagram showing the division result of a page module according to an embodiment of the present application;
FIG. 15 is a schematic diagram of a service component library structure splitting result according to an embodiment of the present application;
FIG. 16 is a schematic diagram of a dynamic compilation rendering provided by an embodiment of the present application;
FIG. 17 is another schematic diagram of a dynamic compilation rendering provided by an embodiment of the present application.
Detailed Description
The present application will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present application more apparent, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, the terms "first", "second", "third" and the like are merely used to distinguish similar objects and do not represent a specific ordering of the objects, it being understood that the "first", "second", "third" may be interchanged with a specific order or sequence, as permitted, to enable embodiments of the application described herein to be practiced otherwise than as illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the embodiments of the application is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
Before describing embodiments of the present application in further detail, the terms and terminology involved in the embodiments of the present application will be described, and the terms and terminology involved in the embodiments of the present application will be used in the following explanation.
1) The applet is an application which can be used without downloading and installing, the applet realizes the dream of 'tentacle-accessible' of the application, and a user can open the application by sweeping or searching.
2) And dynamically compiling, and displaying the compiling result of the dynamic module according to the condition judgment.
3) Fast generation means that a certain interface or application can be generated fast.
In order to better understand the applet processing method provided in the embodiment of the present application, a description will be given first of a related art method and the drawbacks.
In the related art, the applet code segments are typed into the applet engineering project to generate the applet project. The configuration generated applet needs to be compiled to generate applet codes for development or operators to use so as to realize the effect preview of the applet. After the functional module is upgraded, the functional module is required to be advanced and checked, and after the official check passes, the functional module can be put on a shelf to issue a version, so that the version of the small program is upgraded.
When the applet item is generated, the code segments splice the generated business modules, and then the applet item is generated. Accessing a large number of base version-based derived applets can result in significant effort while making maintenance extremely low. Moreover, because the time for compiling and generating the applet code is uncertain, the obtained aim can not be achieved due to long network reasons, namely the aim of real-time effect preview can not be achieved. In addition, if the applet item needs to be emergently hidden or an online functional module, the applet item needs to be released, and the official audit period is uncertain, so that the online time length or the release time length is prolonged, and the online experience is influenced.
The embodiments of the present application provide a method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for processing an applet, which can solve the problem of poor timeliness in generating the applet, and hereinafter describe an exemplary application of the computer device provided by the embodiments of the present application, where the computer device provided by the embodiments of the present application may be implemented as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device), a smart phone, a smart sound box, a smart watch, a smart television, a vehicle terminal, and other various types of user terminals. In the following, an exemplary application when the computer device is implemented as a server will be described.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture of an applet processing system 100 according to an embodiment of the present application, in order to support an applet processing application, a terminal 200 is connected to a server 400 through a network 300, where the network 300 may be a wide area network or a local area network, or a combination of both.
Taking the game applet generation as an example, the server 400 is configured to receive a component selection instruction, and in response to the component selection instruction, the server 400 obtains at least one target service component from a predefined service component library, where the predefined service component library includes a plurality of service components with different functions; the server 400 receives configuration operation aiming at the target service component, and responds to the configuration operation to obtain an updated configuration resource package of the target service component; the server 400 receives the applet generation instruction, and in response to the applet generation instruction, dynamically compiles based on the updated configuration resource package to generate a game applet. The server 400 may also issue game-like applets to the terminal 200.
In some embodiments, the server 400 is configured to receive a component selection instruction, and in response to the component selection instruction, the server 400 obtains at least one target business component from a predefined business component library; the server 400 receives configuration operation aiming at the target service component, and responds to the configuration operation to obtain an updated configuration resource package of the target service component; the server 400 receives the applet generation instruction, and in response to the applet generation instruction, dynamically compiles based on the updated configuration resource package to generate a game applet. The server 400 receives an operation instruction of the game applet transmitted from the terminal 200, and the server 400 operates the game applet and returns an operation result to the terminal 200, so that the terminal 200 presents the operation result of the game applet.
In the embodiment of the present application, taking the acquisition of the target service component and the updated configuration resource package by the server 400 as an example, the server 400 can respond to the configuration operation for the target service component, so as to change the configuration information related to the target service component through the configuration operation, obtain the updated configuration resource package of the target service component, and obtain the updated configuration resource package in real time based on the configuration operation. Based on the method, the target applet can be generated in time based on the updated configuration resource package, so that the generation process of the target applet is simplified, the time for generating the target applet is shortened, and the timeliness of finally generating the target applet is improved.
In some embodiments, the server 400 may be a stand-alone physical server, a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDNs), and basic cloud computing services such as big data and artificial intelligence platforms. The terminal 200 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a car-mounted smart terminal, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiment of the present application.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a server 400 according to an embodiment of the present application, and the server 400 shown in fig. 2 includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in server 400 are coupled together by bus system 440. It is understood that the bus system 440 is used to enable connected communication between these components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled in fig. 2 as bus system 440.
The processor 410 may be an integrated circuit chip having signal processing capabilities such as a general purpose processor, such as a microprocessor or any conventional processor, a digital signal processor (Digital Signal Processor, DSP), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
The user interface 430 includes one or more output devices 431, including one or more speakers and/or one or more visual displays, that enable presentation of the media content. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
Memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like. Memory 450 optionally includes one or more storage devices physically remote from processor 410.
Memory 450 includes volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a random access Memory (Random Access Memory, RAM). The memory 450 described in embodiments of the present application is intended to comprise any suitable type of memory.
In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 451 including system programs, e.g., framework layer, core library layer, driver layer, etc., for handling various basic system services and performing hardware-related tasks, for implementing various basic services and handling hardware-based tasks;
a network communication module 452 for accessing other electronic devices via one or more (wired or wireless) network interfaces 420, the exemplary network interface 420 comprising: bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (Universal Serial Bus, USB), etc.;
a presentation module 453 for enabling presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., a display screen, speakers, etc.) associated with the user interface 430;
an input processing module 454 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
In some embodiments, the apparatus provided by the embodiments of the present application may be implemented in software, and fig. 2 shows an applet processing apparatus 455 stored in a memory 450, which may be software in the form of a program, a plug-in, etc., including the following software modules: the first acquisition module 4551, the first response module 4552 and the compiling module 4553 are logical, and thus may be arbitrarily combined or further split according to the functions implemented. The functions of the respective modules will be described hereinafter.
In other embodiments, the apparatus provided by the embodiments of the present application may be implemented in hardware, and by way of example, the apparatus provided by the embodiments of the present application may be a processor in the form of a hardware decoding processor that is programmed to perform the applet processing method provided by the embodiments of the present application, e.g., the processor in the form of a hardware decoding processor may employ one or more application specific integrated circuits (Application Specific Int egrated Circuit, ASIC), DSP, programmable logic device (Programmable Logic Device, PLD), complex programmable logic device (Complex Programmable Logic Device, CPLD), field-programmable gate array (Field-Programmable Gate Array, FPGA) or other electronic component.
In some embodiments, the terminal or server may implement the applet processing methods provided by embodiments of the application by running various computer-executable instructions or computer programs. For example, the computer-executable instructions may be commands at the micro-program level, machine instructions, or software instructions. The computer program may be a native program or a software module in an operating system; can be a local (Native) application (Application Program, APP), i.e. a program that needs to be installed in an operating system to run, such as a live APP or an instant messaging APP; or an applet that can be embedded in any APP, i.e., a program that can be run only by being downloaded into a browser environment. In general, the computer-executable instructions may be any form of instructions and the computer program may be any form of application, module, or plug-in.
The applet processing method provided by the embodiment of the present application will be described in connection with exemplary applications and implementations of the server provided by the embodiment of the present application.
In the following, the applet processing method provided in the embodiment of the present application is described, and as mentioned above, the computer device implementing the applet processing method in the embodiment of the present application may be a terminal, a server, or a combination of both. The execution subject of the respective steps will not be repeated hereinafter.
It should be noted that, in the examples of the applet processing methods below, the game applet is taken as an example, and those skilled in the art may apply the applet processing methods provided in the embodiments of the present application to the processing of other types of applets according to the understanding below.
Referring to fig. 3, fig. 3 is a schematic flow chart of an implementation of the applet processing method according to the embodiment of the present application, the method is applied to a computer device, the applet processing method according to the embodiment of the present application will be described below with reference to the steps shown in fig. 3, and the execution subject of fig. 3 is a server.
In step S101, at least one target business component is obtained from a predefined business component library in response to the received component selection instruction.
In an embodiment of the application, the predefined service component library comprises a plurality of service components of different functions. By way of example, a login component, a carousel graph component, a task component, and the like may be included in a predefined business component library.
In some embodiments, the component selection instruction is used for selecting the target service component from a predefined service component library, where the component selection instruction may be a single click instruction on the target service component, a drag instruction on the target service component, a double click instruction on the target service component, or an input instruction on an identifier of the target service component.
In some embodiments, the predefined business component library may be presented through a visual interface, based on which the component selection instruction may be a drag instruction for the target business component in the visual interface, thereby obtaining the target business component.
Through the step S101, the target service component can be conveniently and rapidly selected from the predefined service component library through the received component selection instruction.
In step S102, in response to the received configuration operation for the target service component, an updated configuration resource package of the target service component is obtained.
In some embodiments, the configuration of the attribute information of the target service component may be implemented through a configuration operation, which may be the initial configuration of the attribute information of the target service component or the reconfiguration of the attribute information of the target service component.
In some embodiments, the configuration operation for the target business component may be a typing operation, i.e., directly entering configuration information related to the target business component; the configuration operation for the target service component may also be a selection operation, that is, configuration information related to the target service component is selected from a plurality of pieces of configuration information to be selected.
In the embodiment of the application, the configuration information related to the target business component can be obtained through the received configuration operation. Since the configuration information may include configuration information of a plurality of attributes, such as configuration information of a background picture, configuration information of a background color, configuration information of transparency, and the like, the configuration information is recorded as an updated configuration resource package.
In some embodiments, the configuration operation may be received through a visual interface, and illustratively, the configuration operation may be a typing operation, a selection operation, etc. on the visual interface.
Through the step S102, based on the received configuration operation, the updated configuration resource package of the target service component can be intuitively and timely obtained.
In step S103, in response to the received applet generation instruction, dynamic compilation is performed based on the updated configuration resource package, generating a target applet.
In some embodiments, the applet generation instructions are used to generate an applet, which may be a click operation on a generate applet button, such as a click instruction on a "generate" button, or a click instruction on a "run" button.
In some embodiments, referring to fig. 4, the "dynamic compiling based on the updated configuration resource package, generating the target applet" in step S103 may be implemented by the following steps S1031 to S1033, which are described in detail below.
In step S1031, a basic project code of the basic applet is acquired.
In the embodiment of the application, the basic applet is an applet of an initial version corresponding to the target applet. The basic applet refers to an online applet after being transmitted and checked, and the basic applet can be the same type applet as the target applet, for example, all game applets. The base applet may also be considered an applet that is older in version than the target applet.
In some embodiments, the underlying project engineering code of the underlying applet refers to the most basic file structure and code that is automatically generated when the underlying applet is created. These files include the logical layer files of the basic applet, the configuration files of the basic applet, the style sheet files of the basic applet, and the like. These files provide the most basic framework for the basic applet on which the basic applet can be developed. The configuration file is used for configuring page paths, window background colors and the like of the applet; the style sheet file is used for writing a general style of the basic applet; the logical layer file is a global logical processing file of the basic applet, such as a method that needs to be executed when the basic applet is initialized to completion or enters the foreground.
In some embodiments, in addition to the above-described base files, logical layer files, configuration files, and style sheet files, there may be other files and directories, such as page files for storing base applets, tool files for storing base applets, and the like.
In step S1032, the target project code is generated based on the base project code and the updated configuration resource package.
In some embodiments, referring to fig. 5, step S1032 may be implemented by the following steps S321 to S325, which are specifically described below.
In step S321, it is determined whether the base project code includes a configuration resource package before the update of the target business component.
In some embodiments, the pre-update configuration resource package carries pre-update identification information or pre-update configuration version information, and whether the basic project engineering code contains the pre-update configuration resource package of the target business component can be judged through the pre-update identification information or the pre-update configuration version information. If the basic project engineering code does not contain the configuration resource package before the updating of the target business component, the step S322 is entered; if the basic project code contains the configuration resource package before the update of the target business component, the process proceeds to step S323.
In step S322, the target business component and the updated configuration resource package of the target business component are added to the basic project code, to obtain the target project code. And ends the flow.
And when the basic project engineering code does not contain the configuration resource package before updating the target business component, the basic applet is characterized in that the target business component does not exist, namely, the target business component is a newly added business component of the target applet. Based on the above, the target business component and the updated configuration resource package of the target business component are added to the basic project engineering code together, so that the target business function is added on the basis of the basic applet, and the target project engineering code of the target applet is obtained.
In step S323, identification information of the target service component is acquired.
When the basic project engineering code contains a configuration resource package before updating the target business component, the existence of the target business component in the basic applet is characterized, and the configuration resource package of the target business component is required to be updated at the moment.
In some embodiments, each target service component corresponds to its own identification information, and illustratively, the identification information of the login component may be 001, the identification information of the carousel graph component may be 002, and the identification information of the task component may be 003.
In step S324, a configuration resource package of the target business component before updating is determined from the basic project engineering code based on the identification information of the target business component.
In some embodiments, the configuration resource package before the update of the target business component can be determined from all files of the basic project engineering code through the identification information of the target business component. For example, assuming that the target service component is a login component and the identification information of the login component is 001, determining configuration information carrying 001 identification from the basic project engineering code, and determining the configuration information carrying 001 identification as a configuration resource package before updating the target service component.
In the embodiment of the present application, the configuration resource package before the update of the target service component can be obtained through the step S323 and the step S324.
In step S325, the basic project code is updated by using the updated configuration resource package, so as to obtain the target project code.
In some embodiments, the pre-updated configuration resource package in the underlying project code may be replaced with an updated configuration resource package to obtain the target project code.
In some embodiments, the pre-update configuration resource package in the basic project engineering code may be deleted first to obtain a deleted engineering code, and then the updated configuration resource package is added to the deleted engineering code, so as to replace the pre-update configuration resource package in the basic project engineering code with the updated configuration resource package, and finally obtain the target project engineering code.
With continued reference to fig. 5, the above step S1032 is explained next.
In step S1033, the target project code is dynamically compiled to generate a target applet.
In some embodiments, after the target project engineering code is obtained, the target project engineering code is dynamically compiled and loaded, so that the functions of the target functional components are realized, and the interfaces containing the target functional components are presented, namely, the target applet containing the target functional components is generated.
Through the step S103, after receiving the applet generation instruction, the target project engineering code is generated based on the basic project engineering code and the updated configuration resource package, and then the target project engineering code is dynamically compiled and loaded, and finally the target applet is generated. And the real-time performance of the project engineering of the generation target is improved, so that the target applet is generated in time.
Through the steps S101 to S103, at least one target service component is obtained from a predefined service component library in response to the received component selection instruction, where the predefined service component library includes a plurality of service components with different functions, for example, the predefined service component library may include a navigation bar component, a login module component, a carousel graph component, a bulletin component, a task list component, a customer service module component, and the like. The target service component is a service component which needs to be configured. Then, receiving a configuration operation for the target service component, wherein the configuration operation is used for configuring the target service, based on the configuration operation, the configuration information related to the target service component is changed through the configuration operation, so as to obtain an updated configuration resource package of the target service component, for example, whether the target service component is displayed or not is changed, a background picture of the target service component is changed, and the updated configuration resource package can be obtained in real time based on the configuration operation; and finally, receiving an applet generation instruction, and responding to the applet generation instruction, and dynamically compiling based on the updated configuration resource package so as to generate the target applet. Therefore, the target applet can be generated in time based on the updated configuration resource package, so that the generation process of the target applet is simplified, the time for generating the target applet is shortened, and the timeliness of finally generating the target applet is improved.
In some embodiments, after the step S1032 "generate the target project code based on the basic project code and the updated configuration resource package", the target project code may be further derived to implement the update of the target applet, see fig. 6, and after the step S1032, the following steps S1033A to S1035A may be further performed to implement the update of the target applet, which will be described in detail below.
In step S1033A, a target project engineering code is derived in response to the received code derivation instruction.
In some embodiments, a code export instruction is used to export the target project engineering code of the target applet, which may be a click operation on an export code button, such as a click instruction on an export button or a save button.
In some embodiments, the target project engineering code may be derived upon receipt of a code derivation instruction.
In some embodiments, the exported target project code may be stored locally or at the cloud so that the target project code can be obtained or loaded in a timely manner.
In step S1034A, an updated target project code is obtained in response to the received target project code update instruction.
In the embodiment of the present application, the target project code update instruction is used for updating the target project code, for example, a new target service component may be added to the target project code, or configuration information of at least one service component in the target project code may be updated, so as to obtain an updated target project code.
In step S1035A, the updated target project engineering code is dynamically compiled in response to the received applet update instruction, to generate an updated target applet.
In some embodiments, the applet update instruction is used to update an applet, and the applet update instruction may be a click operation on an update applet button, for example, a click instruction on an "update" button, or a click instruction on a "refresh" button. And then dynamically compiling and loading the updated target project engineering codes, and finally completing the updating of the target applet. Thus, the updating or upgrading of the target applet can be dynamically realized, and the updated target applet can be obtained without re-publishing, so that the updating time of the target applet is shortened.
Through the steps S1033A to S1035A, the target project code can be derived based on the code deriving instruction, then the target project code is updated based on the target project code updating instruction, the updated target project code is obtained, and finally the target project code is dynamically compiled based on the applet updating instruction, so as to generate the updated target applet. The method can dynamically update or upgrade the target applet without re-publishing, and can obtain the updated target applet, thereby shortening the update time of the target applet and simplifying the update flow of the target applet.
In some embodiments, after the step S102 "obtaining the updated configuration resource package of the target service component in response to the received configuration operation for the target service component", the preview function of forming the interface after configuration may be implemented, and the purpose of obtaining what you see is what you get may be achieved. Referring to fig. 7, after the above step S102, the following steps S103A to S105A may also be performed, which will be specifically described below.
In step S103A, in response to the received preview instruction, the updated configuration resource package is loaded.
In some embodiments, a preview instruction is used to preview the current interface, which may be a click operation on a corresponding button, such as a click instruction on a "preview" button. Based on the preview instruction, the updated configuration resource package is loaded.
In step S104A, the target service component is dynamically rendered based on the updated configuration resource package, so as to obtain a preview interface.
In some embodiments, since the updated configuration resource package is loaded, when the updated configuration resource package is run, the configuration information in the updated configuration resource package is utilized to configure the target service component, so as to realize dynamic rendering of the target service component, and the interface obtained after rendering is the preview interface.
In step S105A, a preview interface is output.
In some embodiments, the preview interface may be presented through a display device of the terminal.
In some embodiments, steps S103A to S105A may be performed before the step S103 "in response to the received applet generation instruction, and dynamically compile the applet generation based on the updated configuration resource package, that is, the preview of the applet is implemented before the applet generation. In addition, steps S103A to S105A may be performed after step S103, which is not limited in the embodiment of the present application.
Through the steps S103A to S105A, the updated configuration resource package is loaded based on the preview instruction, and the target service component is dynamically rendered based on the updated configuration resource package, so as to obtain and output the preview interface, thereby achieving the purpose of quick rendering, achieving the purpose of quick and timely previewing the interface effect, and timely knowing and grasping the latest configuration condition of the target service component.
In some embodiments, after the step S103 "in response to the received applet generation instruction, the object applet is dynamically compiled based on the updated configuration resource package to generate the object applet", the object applet may be further exposed by executing the instruction. Referring to fig. 8, after the above step S103, the following steps S104 to S106 may also be performed, which will be specifically described below.
In step S104, it is determined whether the updated configuration resource package characterizes the hidden target service component.
In some embodiments, if the updated configuration resource package characterizes the hidden target business component, then step S105 is entered; if the updated configuration resource packet indicates that the target service component is not hidden, that is, indicates that the target service component is displayed, step S106 is performed.
In step S105, the target applet is presented in response to the execution instruction for the target applet.
In the embodiment of the application, when the updated configuration resource package represents the hidden target service component and receives the running instruction of the target applet, the display interface of the target applet, namely the target applet, can be displayed on the terminal interface. The display interface of the object applet does not contain the object business component because of the need to hide the object business component.
In step S106, when the updated configuration resource package includes style attribute information of the target service component, the target service component of the target applet is displayed according to the style attribute information in response to the operation instruction.
In the embodiment of the application, when the updated configuration resource pack represents the non-hidden target service component and the updated configuration resource pack comprises the style attribute information of the target service component, the representation needs to display the target service component on the display interface of the display target applet. At this time, if an operation instruction for the target applet is received, the target business component of the target applet is exposed according to the style attribute information.
In some embodiments, referring to fig. 9, the "exposing the target business component of the target applet according to style attribute information" in step S106 may be implemented by the following steps S1061 to S1063, which are described in detail below.
In step S1061, it is determined whether the style attribute information is a changed background picture of the target service component.
In some embodiments, if the style attribute information is a changed background picture of the target service component, the background picture of the target service component needs to be replaced, that is, skin replacement is represented, and step S1062 is performed; and if the style attribute information is not the changed background picture of the target service component, step S1063 is entered.
In step S1062, the target business component of the target applet is displayed according to the changed background picture. And ends the flow.
In the embodiment of the application, when the target applet is displayed, the background of the target business component is presented according to the changed background picture.
In some embodiments, upon generation of the target project code, a current background picture of the target business component may be obtained from the theme style in the base project code. Based on the method, the current background picture can be deleted first, and then the changed background picture is added to the theme style, so that the target project engineering code is obtained. For example, assuming that the current background picture is I1 and the changed background picture is I2, I1 may be deleted from the theme style first, and then I2 is added to the theme style, so as to replace the background picture of the target service component, that is, to achieve the purpose of skin replacement. Thus, the target applet is presented with the background of the target business component according to the changed background picture.
In step S1063, when the style attribute information is changed text attribute information of the sub-component, the sub-component of the target business component in the target applet is displayed according to the changed text attribute information.
In the embodiment of the application, when the style attribute information is not the changed background picture of the target service component and the style attribute information is the changed text attribute information of the sub-component, the sub-component of the target service component in the target applet is displayed according to the changed text attribute information. For example, assuming that the sub-component is a text component and the changed text attribute information is a red font, the text component is a text component that displays the target service in the target applet in the red font. The target business component includes a plurality of sub-components, which may also be referred to as base components, and exemplary sub-components may be text components, picture components, and button components.
In some embodiments, when generating the target project code, acquiring current text attribute information of the sub-component from the basic project code, and deleting the current text attribute information to obtain a deleted project code; and adding the changed text attribute information into the deleted project code to obtain a target project code, thereby realizing the replacement of the current text attribute information into the changed text attribute information.
Through the steps S104 to S106, the hidden target service component can be implemented based on the updated configuration resource package, that is, the dynamic function castration of the applet is implemented, and similarly, in some embodiments, the dynamic function addition of the applet is also implemented; the background picture of the target business component can be replaced based on the updated configuration resource package, so that the purposes of skin replacement and dynamic theme are realized; the attribute information of the sub-assembly in the target service assembly can be changed based on the updated configuration resource package, so that the purpose of diversified display is realized.
In the following, an exemplary application of the embodiment of the present application in a practical application scenario will be described.
The embodiment of the application provides a small program processing method, and provides a visual tool platform which can generate page structures with different combinations by receiving an instruction of dragging a predefined service component library at an interface of the visual tool platform. And meanwhile, the configuration panel is combined to receive the operation of performing attribute or style configuration on the page and the service component, so that the configuration on the page and the service component is realized, and the purpose of changing the skin of the applet theme is achieved.
In some embodiments, the configuration is locally exported or uploaded to the cloud, the configuration is introduced into the applet (or multiport) basic template project engineering, and then dynamic compiling and rendering are performed by combining with the applet (or multiport) service component library, so that the same effect as the configuration of a global Wide area network (Web) end page can be achieved, and the user can quickly and directly reach the page and experience the configuration effect through the applet code generated by the mobile terminal code scanning visualization tool platform in real time. The mobile terminal may be a mobile phone, for example.
In the embodiment of the application, the configuration resource is generated through the visualization tool platform; and then according to the configuration resources, real applet application can be dynamically rendered rapidly, and the purposes of easy maintenance and convenient secondary development are realized. Aiming at the basic version applet with stable functions, if the function castration or theme skin change applet is required to be generated quickly, the applet processing method provided by the embodiment of the application can be used for generating the applet meeting the conditions efficiently.
In the embodiment of the application, the small program project engineering is combined with the configuration resource package exported by the visual tool platform, so that the executable small program project can be quickly generated. Even if a large number of derivative version applets based on the basic version are accessed, the effect of easy maintenance can be realized.
In some embodiments, the applet project engineering can be configured to generate a configuration resource package according to the configuration of the visualization tool platform, can quickly and dynamically render the module components to be displayed, and can preview the configuration effect on the mobile terminal in real time, thereby achieving the effect of quickly previewing the page.
In some embodiments, the configuration resources generated by the visualization tool platform can be uploaded to a fixed cloud space address, and the applet item loads the configuration resources, and dynamically displays the corresponding page or service module according to the configuration resources dynamically set by the visualization tool platform. Therefore, the purpose of hiding or displaying the functions or the page modules without issuing versions can be achieved.
In some embodiments, to generate a Y-derived applet, for example, assume that the following business appeal exists: firstly, the functions are simplified, and the business side applet performs functional castration based on the Y basic version applet; second, theme skin changes, business party customizes theme skin of own internet protocol (Internet Protocol, IP); thirdly, the business party needs to be on line quickly.
In some embodiments, the implementation may include demand placement, visualization tool platform configuration, and secondary development. The demand proposal comprises the steps of planning a Y derivative version applet according to the capability of the existing Y basic version applet and combining with business requirements by a product side, and outputting a product demand document. The method is to remove part of functional modules of the current Y basic version applet, support theme skin replacement and support IP personalized appeal of a service party. The visualization tool platform configuration includes customizing the business page in response to an operation of dragging the business component on the visualization tool platform. The secondary development includes: in addition to the direct release of the Y derivative applet generated by the configuration of the visualization tool platform, project engineering codes corresponding to configuration effects can be derived, wherein the project engineering codes consist of basic project engineering and configuration file packages, and can be supplied to developers for secondary development of the project codes or the configuration files.
In some embodiments, in configuring the visualization tool platform, fig. 10 is a schematic diagram of a configuration interface of the visualization tool platform, referring to fig. 10, service components in a region 1001 may be configured, and a page may also be configured, where a region 1002 is an interface display region when the page is configured (or set).
In some embodiments, a configuration resource package can be exported, referring to fig. 10, after the page is configured, a "export" button 1003 can be clicked, two options of "export project configuration" and "project engineering code" are displayed in the form of a box, and by selecting the "export project configuration" option, all configurations of the project can be exported, and the project can be dynamically rendered for the foundation engineering project.
In the embodiment of the application, the derived configuration resource package is a compressed package, and can also be named as a configuration resource compressed package, after the configuration resource compressed package is decompressed, the compressed package can comprise a file for effect real-time preview, a file for production environment configuration, a file of a theme style and a picture resource file. Wherein, the file for the effect real-time preview may be named as json, the file for the production environment configuration may be named as js, the file of the theme style may be named as style, and the picture resource file may be named as images.
In some embodiments, the configuration effect may also be previewed in real time, referring to fig. 10, and the current web page configuration effect may be viewed in real time by clicking on the "preview" button 1004 to display the applet that generated the current page in a box.
In some embodiments, the applet may also be published quickly, after the configuration is completed with respect to the effect page, referring to fig. 10, clicking on the "publish" button 1005 may select the test, formal environment for the applet to be published.
In some embodiments, see FIG. 11, where 1101 is an interface schematic of a Y basic version applet and 1102 is an interface schematic of a Y derivative version applet.
In some embodiments, referring to fig. 12, through the visualization tool platform 1201, operations of dragging a business component and performing attribute, style setting (or configuration) operations by a multi-business component are received, and a configuration resource package 1202 is generated, based on which the configuration resource package 1202 may be locally exported or stored in the cloud. Then, the basic warehouse project 1203 is combined with the configuration resource package 1202, so that the business side applet project 1204 can be dynamically generated, secondary development is supported, and timely release to testing and formal environments is also supported. The basic warehouse item 1203 is a business applet basic template item, and the basic warehouse item 1203 refers to specific item operation capability, including a business component library 12031 and an item configuration (operation environment and the like) 12032.
In some embodiments, referring to fig. 13, all applet applications 1300 (or applets) can be divided into base information 1301 and an application structure 1302, where the base information 1301 can include a name, application identification (app id), icon (icon), the environment to which they belong, description, and so on. The application structure 1302 may include a global component 3021 and a page array 3022, the global component 3021 may include common business components such as a top navigation bar 211, a bottom navigation bar 212, and the like. The page array 3022 may be composed of many pages, for example, page 1, page 2, and page 3. Wherein each page may include page basic information 221 and a plurality of business components 222, such as business component 1, business component 2, and business component 3, each business component 222 is composed of a plurality of base components, and each business component 222 has its own User Interface (UI) 2221 and business logic 2222, configurable styles, attributes, behaviors, and the like.
In some embodiments, referring to FIG. 14, a business page can be split into a top navigation bar component 1401, a login component 1402, a carousel graph component 1403, a task component 1404, a customer service component 1405, and a bottom navigation bar component 1406, according to the functional modules. Wherein the top and bottom navigation bar components 1401 and 1406 are substantially available on all pages, such components can be promoted as global components (or common components) while the remaining components are divided into business components belonging to pages. The split for the remaining pages can be so analogized that the small granularity problem is changed to a large granularity problem.
In some embodiments, referring to fig. 15, business component library 1500 is made up of a plurality of business components, such as business component 1, business component 2, and business component 3, with each business component 15001 containing a plurality of base components, such as base component 1 and base component 2. Wherein the base component comprises three types: text (text), picture (image), and button (button), which is a combination of picture and text.
In some embodiments, the split business component exposes the attributes to the outside, and provides parent-level incoming configuration data for dynamic rendering. Each business component comprises a Chinese and English name, a component version, a belonging module, a root node style class name, a component style character string, a component style object and a sub-component list, wherein the sub-component refers to a basic component.
In the embodiment of the application, the business component design comprises a component implementation and a component description, and the component implementation comprises a component structure, a business script and a theme style. The component description may be described using a just-in-time compilation (JavaScript, JS) programming language, including component chinese names, component english names, component types, component versions, modules to which the component belongs, whether the component is exposed, component style class names, component styles, and a list of sub-components. The component patterns comprise element positioning, width, height, background color, background picture address, frames, fillets, transparency and the like; the sub-component list comprises a sub-component Chinese name, a sub-component English name, a sub-component type, sub-component content, a sub-component style type and a sub-component style; the sub-component styles are similar to what is included in the component styles described above.
In some embodiments, each page, business component, sub-component has a corresponding style attribute setting, exposing style attributes to the parent, thereby implementing a dynamic theme. Wherein the business component can also be a composite component.
In the embodiment of the application, the style attribute of the page comprises positioning, background color and background picture address. Style attributes of the composite component include location, width, height, background color, background picture address, frame, rounded corners, and transparency. Style attributes of the sub-components include common attributes including location, width, height, background color, background picture address, frame, rounded corners, and transparency, and content type component attributes. Content type component attributes include text, pictures, and buttons. Text may also include fonts, font sizes, word weights, line heights, colors, paragraph alignments, vertical alignments; the picture includes shadows; since the button is composed of text and picture, style attributes of the button include style attributes of the text and style attributes of the picture.
In some embodiments, the visualization tool platform designs the visualization tool platform according to the dragged multiple business components, assembles the business pages, derives the configuration resource package, and supplies the configuration resource package to the applet project engineering side for dynamic rendering.
In the embodiment of the application, the service page can be dynamically rendered, namely the dynamic compiling rendering can be realized in the engineering project of the applet base template according to the plurality of service components dragged out in the front and the resource configuration package exported by the visualization tool platform. The dragged service components correspond to the target service components in other embodiments.
Referring to fig. 16, multiple business component libraries 1601, configuration resource packages 1602, quick preview pages 1603, etc. may be dynamically compiled and rendered to obtain rendered business pages 1604.
And configuring the service components in the resource package mapping applet engineering codes, transmitting the configuration of the corresponding service components, performing dynamic rendering, such as displaying or hiding, changing basic patterns and the like, and finally achieving a real configuration effect interface.
Referring to fig. 17, configuration content 1701 is included in the configuration resource package, where the configuration content 1701 is to expose business component a, business component C, and business component D, and hide business component B. In the embodiment of the application, the identifier of whether the service component is displayed is stored in the configuration resource package. The configuration resource package is stored in a local or cloud end. Then, dynamically rendering 1702 the configuration resource package, in the dynamic rendering process, judging whether each service component is displayed or not in sequence based on whether the identifier is displayed or not until the judgment of each service component is completed, so as to judge that the service component A, the service component C and the service component D are displayed and hide the service component B; finally, a page effect 1703 is output, where the page effect 1703 is a dynamically rendered page effect, that is, the service component a, the service component C, and the service component D are displayed.
In some embodiments, the locally started applet dynamic loading platform tool uploads the configuration resource package to the cloud, and the dynamic configuration page effect can be checked in real time through the mobile terminal. The latest configuration effect of the applet can be seen by refreshing the page only by synchronizing the configuration file to the cloud end every time the applet is configured once without compiling the applet every time, so that the characteristic of the online hot update function module can be realized.
The small program processing method provided by the embodiment of the application can support the dynamic addition or removal of the functional module; supporting a dynamic theme; the support is used for quickly previewing and viewing, so that the aim of obtaining the view is fulfilled; support quick release and secondary development.
It may be appreciated that in the embodiment of the present application, related data such as a predefined service component library, an updated configuration resource package, a basic project engineering code, an updated configuration resource package, identification information of a target service component, etc. is involved, and the collection, use and processing of the related data need to comply with related laws and regulations and standards of related countries and regions.
Continuing with the description below of an exemplary architecture of the applet processing device 455 implemented as a software module provided by embodiments of the application, in some embodiments, as shown in fig. 2, the software modules stored in the applet processing device 455 of the memory 450 may include:
A first obtaining module 4551, configured to obtain at least one target service component from a predefined service component library in response to a received component selection instruction, where the predefined service component library includes a plurality of service components with different functions;
a first response module 4552, configured to obtain an updated configuration resource packet of the target service component in response to a received configuration operation for the target service component;
and the compiling module 4553 is configured to dynamically compile the received applet generation instruction based on the updated configuration resource package to generate a target applet.
In some embodiments, the compiling module 4553 is further to:
acquiring a basic project engineering code of a basic applet, wherein the basic applet is an applet of an initial version corresponding to the target applet;
generating a target project engineering code based on the basic project engineering code and the updated configuration resource package;
and dynamically compiling the target project engineering codes to generate the target applet.
In some embodiments, the compiling module 4553 is further to:
when the basic project engineering code does not contain the configuration resource package before updating the target business component, adding the target business component and the updated configuration resource package of the target business component to the basic project engineering code to obtain the target project engineering code;
When the basic project engineering code contains a configuration resource package before updating the target service component, acquiring the configuration resource package before updating the target service component; and updating the basic project engineering code by using the updated configuration resource package to obtain the target project engineering code.
In some embodiments, the compiling module 4553 is further to:
acquiring the identification information of the target service component;
based on the identification information of the target service component, determining a configuration resource package before updating the target service component from the basic project engineering code;
and replacing the pre-updated configuration resource package in the basic project engineering code with the updated configuration resource package to obtain the target project engineering code.
In some embodiments, the applet processing apparatus 455 further comprises:
the second response module is used for responding to the received code export instruction and exporting the target project engineering code;
the third response module is used for responding to the received target project code updating instruction to obtain updated target project codes;
and the fourth response module is used for responding to the received applet updating instruction, dynamically compiling the updated target project engineering code and generating an updated target applet.
In some embodiments, the applet processing apparatus 455 further comprises:
a fifth response module, configured to load the updated configuration resource package in response to the received preview instruction;
the rendering module is used for dynamically rendering the target service component based on the updated configuration resource package to obtain a preview interface;
and the output module is used for outputting the preview interface.
In some embodiments, the applet processing apparatus 455 further comprises:
a sixth response module, configured to respond to an operation instruction for the target applet when the updated configuration resource packet indicates that the target service component is hidden, where a display interface of the target applet does not include the target service component;
and a seventh response module, configured to, when the updated configuration resource package represents and displays the target service component and the updated configuration resource package includes style attribute information of the target service component, respond to the operation instruction, and display the target service component of the target applet according to the style attribute information.
In some embodiments, the seventh response module is further to:
When the style attribute information is a changed background picture of the target service component, displaying the target service component of the target applet according to the changed background picture;
and when the style attribute information is changed text attribute information of the sub-assembly, displaying the sub-assembly of the target service assembly in the target applet according to the changed text attribute information, wherein the target service assembly comprises a plurality of sub-assemblies.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the applet processing method according to the embodiment of the application.
Embodiments of the present application provide a computer readable storage medium having stored therein executable instructions that, when executed by a processor, cause the processor to perform the applet processing methods provided by embodiments of the present application, for example, the applet processing methods as shown in fig. 3, 7 and 8.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EP ROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup language (Hyper Text Markup Language, HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
Executing on a plurality of computing devices connected.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (12)

1. A method of applet processing, the method comprising:
in response to a received component selection instruction, at least one target business component is acquired from a predefined business component library, wherein the predefined business component library comprises a plurality of business components with different functions;
responding to the received configuration operation aiming at the target service component, and obtaining an updated configuration resource package of the target service component;
and responding to the received applet generation instruction, and dynamically compiling based on the updated configuration resource package to generate the target applet.
2. The method of claim 1, wherein dynamically compiling the updated configuration resource package to generate the target applet comprises:
acquiring a basic project engineering code of a basic applet, wherein the basic applet is an applet of an initial version corresponding to the target applet;
Generating a target project engineering code based on the basic project engineering code and the updated configuration resource package;
and dynamically compiling the target project engineering codes to generate the target applet.
3. The method of claim 2, wherein generating the target project code based on the base project code and the updated configuration resource package comprises:
when the basic project engineering code does not contain the configuration resource package before updating the target business component, adding the target business component and the updated configuration resource package of the target business component to the basic project engineering code to obtain the target project engineering code;
when the basic project engineering code contains a configuration resource package before updating the target service component, acquiring the configuration resource package before updating the target service component; and updating the basic project engineering code by using the updated configuration resource package to obtain the target project engineering code.
4. A method as claimed in claim 3, further comprising:
acquiring the identification information of the target service component;
Based on the identification information of the target service component, determining a configuration resource package before updating the target service component from the basic project engineering code;
correspondingly, the updating processing is carried out on the basic project engineering code by using the updated configuration resource package to obtain the target project engineering code, which comprises the following steps:
and replacing the pre-updated configuration resource package in the basic project engineering code with the updated configuration resource package to obtain the target project engineering code.
5. The method according to any one of claims 2 to 4, further comprising:
deriving the target project engineering code in response to the received code derivation instruction;
responding to the received target project code updating instruction to obtain updated target project code;
and responding to the received applet updating instruction, dynamically compiling the updated target project engineering code, and generating an updated target applet.
6. The method according to any one of claims 1 to 4, wherein after said obtaining an updated configuration resource package for said target business component, the method further comprises:
Loading the updated configuration resource package in response to the received preview instruction;
dynamically rendering the target service component based on the updated configuration resource package to obtain a preview interface;
and outputting the preview interface.
7. The method according to any one of claims 1 to 4, further comprising:
when the updated configuration resource pack represents and conceals the target service component, responding to an operation instruction aiming at the target applet, and displaying the target applet, wherein a display interface of the target applet does not contain the target service component;
and when the updated configuration resource package represents and displays the target service component and the updated configuration resource package comprises style attribute information of the target service component, responding to the running instruction and displaying the target service component of the target applet according to the style attribute information.
8. The method according to claim 7, wherein said exposing the target business component of the target applet according to the style attribute information comprises:
when the style attribute information is a changed background picture of the target service component, displaying the target service component of the target applet according to the changed background picture;
And when the style attribute information is changed text attribute information of the sub-assembly, displaying the sub-assembly of the target service assembly in the target applet according to the changed text attribute information, wherein the target service assembly comprises a plurality of sub-assemblies.
9. An applet processing apparatus, said apparatus comprising:
the first acquisition module is used for responding to the received component selection instruction and acquiring at least one target service component from a predefined service component library, wherein the predefined service component library comprises a plurality of service components with different functions;
the first response module is used for responding to the received configuration operation aiming at the target service component to obtain an updated configuration resource package of the target service component;
and the compiling module is used for responding to the received applet generation instruction, dynamically compiling based on the updated configuration resource package and generating a target applet.
10. A computer device, the computer device comprising:
a memory for storing computer executable instructions;
a processor for implementing the applet processing method according to any one of claims 1 to 8 when executing computer executable instructions stored in said memory.
11. A computer readable storage medium storing computer executable instructions which when executed by a processor implement the applet processing method according to any one of claims 1 to 8.
12. A computer program product comprising a computer program or computer-executable instructions which, when executed by a processor, implement the applet processing method according to any one of claims 1 to 8.
CN202310551473.XA 2023-05-16 2023-05-16 Applet processing method, device, apparatus and computer readable storage medium Pending CN116974557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310551473.XA CN116974557A (en) 2023-05-16 2023-05-16 Applet processing method, device, apparatus and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310551473.XA CN116974557A (en) 2023-05-16 2023-05-16 Applet processing method, device, apparatus and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116974557A true CN116974557A (en) 2023-10-31

Family

ID=88482247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310551473.XA Pending CN116974557A (en) 2023-05-16 2023-05-16 Applet processing method, device, apparatus and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116974557A (en)

Similar Documents

Publication Publication Date Title
US20230229406A1 (en) Page rendering method, apparatus, electronic device, computer-readable storage medium, and computer program product
Panigrahy Xamarin Mobile Application Development for Android
CN114217789A (en) Function component expansion method, device, equipment, storage medium and program product
CN115113850A (en) Cross-platform application construction and operation method, server, terminal and system
CN111399836A (en) Method and device for modifying page attribute
CN116974557A (en) Applet processing method, device, apparatus and computer readable storage medium
KR20150099345A (en) A recording media recognized by computer for providing an application developing environment program
CN111694723B (en) Method for editing nodes and components when product runs under H5 and storage medium
KR20150097181A (en) A system for providing an application developing environment
KR20150099279A (en) A system for providing an application developing environment
KR20150097190A (en) A system for providing an application developing environment
KR20150099319A (en) A recording media specialized for an application developing environment program recording recognized by computer
KR20150099261A (en) A recording media recognized by computer for providing an application developing environment program
KR20150097201A (en) A system for providing an application developing environment
KR20150097179A (en) A system for providing an application developing environment
KR20150099301A (en) A method for providing an application developing environment
KR20150099328A (en) A method for providing an application developing environment
KR20150099323A (en) A method for providing an application developing environment
KR20150097157A (en) A method for providing an application developing environment
KR20150097108A (en) A method for providing an application developing environment
KR20150097106A (en) A method for providing an application developing environment
KR20150099264A (en) A recording media recognized by computer for providing an application developing environment program
KR20150097178A (en) A system for providing an application developing environment
KR20150097143A (en) A method for providing an application developing environment
KR20150097144A (en) A method for providing an application developing environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication