Web page configuration method and device, storage medium and electronic equipment
By introducing audit steps into the web page configuration method, ensuring the security and compliance of the page to be reviewed, the problem of low security of web pages in the existing technology is solved, and the independent and controllable web pages are achieved.
Patent Information
- Application Number
- CN202510376293.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, web pages lack the necessary audit operations when configuring web pages, resulting in higher risk systems in areas with higher security and lower security of web pages.
Provides a method for configuring a web page, including obtaining the target component library, building the target topic area library, configuring the initial page, and reviewing the page to be reviewed until the review is passed to ensure the security and compliance of the page.
Through the auditing steps, the security of web page content is increased, the risk factor is reduced, the independent control of web pages is achieved, and the problem of low security of web pages in the existing technology is solved.
Smart Images

Figure CN120234489A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular, to a method for configuring a web page, a device for configuring a web page, a computer-readable storage medium, and an electronic device. Background Art
[0002] In the prior art, when most systems configure a page, there is a lack of necessary audit operations, resulting in a higher risk of the system in fields with high security requirements such as the financial industry.
[0003] Therefore, there is an urgent need for a method to solve the technical problem of low security of web pages in the prior art. Summary of the Invention
[0004] The main purpose of the present application is to provide a method for configuring a web page, a device for configuring a web page, a computer-readable storage medium, and an electronic device, so as to at least solve the problem of low security of web pages in the prior art.
[0005] According to an aspect of the present application, there is provided a method for configuring a web page, including: an obtaining step of obtaining a target component library, where the target component library is used to store a plurality of target components that make up a web page and component information of the target components, the target components at least include pictures, links, and applets, and the component information includes a description of the target component, a category of the target component, a unique identifier of the target component, and a usage scenario of the target component; a constructing step of constructing a target theme area library according to the target components, where the target theme area library includes a plurality of target theme areas, and the target theme area is an area in the web page for content display and function setting around a predetermined theme; a configuring step of obtaining an initial page and configuring the initial page according to the target theme area to obtain a page to be audited; an auditing step of auditing the page to be audited to ensure the security and compliance of the configuration of the page to be audited; a first determining step of determining the page to be audited as a target page in the case of passing the audit to implement the configuration of the web page; a first repeating step of, in the case of not passing the audit, sequentially repeating the configuring step and the auditing step at least once until the page to be audited passes the audit, and determining the page to be audited as a target page to implement the configuration of the web page.
[0006] Optionally, the obtaining step includes: obtaining an initial component library for storing a plurality of initial components that constitute a web page; performing a first predetermined operation on the plurality of initial components in the initial component library to obtain a plurality of target components, where the first predetermined operation includes at least one of adding the initial components, modifying the initial components, and deleting the initial components; classifying the plurality of target components according to the categories of the target components to obtain a classification result of the target components; and classifying and storing the plurality of target components according to the classification result to obtain the target component library.
[0007] Optionally, the constructing step includes: obtaining an initial theme area library including a plurality of initial theme areas; invoking the target components and performing an adjustment process on the target components to obtain preprocessed components, where the adjustment process includes at least one of adjusting the size of the target components, adjusting the position of the target components, and adjusting the style of the target components, and the style at least includes the color, font, and border of the target components; combining the preprocessed components of different categories to obtain the target theme area and displaying the target theme area on a display interface; and performing a second predetermined operation on the initial theme area library to obtain the target theme area library, where the second predetermined operation includes at least one of adding the target theme area, modifying the initial theme areas, and deleting the initial theme areas.
[0008] Optionally, after performing the adjustment process on the target components to obtain the preprocessed components and before combining the preprocessed components of different categories to obtain the target theme area, the method further includes: determining a uniform resource locator of the preprocessed components according to the preprocessed components to implement the positioning of the preprocessed components.
[0009] Optionally, configuring the initial page according to the target theme area to obtain a page to be reviewed includes: an adding step of adding the target theme area to a predetermined position of the initial page to obtain a preliminary page and displaying the preliminary page on a display interface; a second determining step of determining whether the preliminary page meets the configuration requirements of the user; a third determining step of determining the preliminary page as the page to be reviewed when the preliminary page meets the configuration requirements of the user; and a second repeating step of, when the preliminary page does not meet the configuration requirements of the user, repeating the adding step and the second determining step at least once in sequence, and the predetermined position in the repeating adding step is different until the preliminary page meets the configuration requirements of the user.
[0010] Optionally, the auditing step includes: obtaining the source of the target component, performing a security audit on the source of the target component; determining whether the page to be audited meets the compliance requirements; and determining whether the functions of the page to be audited are operating properly.
[0011] Optionally, determining the page to be audited as the target page to implement the configuration of the web page includes: deploying the configuration of the target page to the server.
[0012] According to another aspect of the present application, there is provided a web page configuration device, including: an acquisition unit for an acquisition step, acquiring a target component library, where the target component library is used to store a plurality of target components constituting the web page and component information of the target components, the target components at least include pictures, links, and applets, and the component information includes a description of the target component, a category of the target component, a unique identifier of the target component, and a usage scenario of the target component; a construction unit for a construction step, constructing a target theme area library according to the target components, where the target theme area library includes a plurality of target theme areas, and the target theme area is an area in the web page for content display and function setting around a predetermined theme; a configuration unit for a configuration step, acquiring an initial page and configuring the initial page according to the target theme area to obtain a page to be audited; an auditing unit for an auditing step, auditing the page to be audited to ensure the security and compliance of the configuration of the page to be audited; a first determination unit for a first determination step, determining the page to be audited as the target page in the case of passing the audit to implement the configuration of the web page; a first repetition unit for a first repetition step, in the case of failing the audit, sequentially repeating the configuration step and the auditing step at least once until the page to be audited passes the audit, and determining the page to be audited as the target page to implement the configuration of the web page.
[0013] According to still another aspect of the present application, there is provided a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, it controls the device where the computer-readable storage medium is located to execute any one of the methods.
[0014] According to yet another aspect of the present application, there is provided an electronic device, including: one or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include those for executing any one of the methods.
[0015] Applying the technical solution of the present application, a method for configuring a web page is provided. First, in the acquisition step, a target component library is acquired. The target component library is used to store multiple target components that make up the web page and the component information of the target components. The target components include at least pictures, links, and applets. The component information includes the description of the target component, the category of the target component, the unique identifier of the target component, and the usage scenario of the target component. In the construction step, according to the target components, a target theme area library is constructed. Among them, the target theme area library includes multiple target theme areas. The target theme area is an area in the web page for content display and function setting around a predetermined theme. In the configuration step, an initial page is acquired, and the initial page is configured according to the target theme area to obtain a page to be reviewed. In the review step, the page to be reviewed is reviewed to ensure the security and compliance of the configuration of the page to be reviewed. In the first determination step, when the review is passed, the page to be reviewed is determined as the target page to implement the configuration of the web page. In the first repetition step, when the review fails, the configuration step and the review step are sequentially repeated at least once until the page to be reviewed passes the review, and the page to be reviewed is determined as the target page to implement the configuration of the web page. Through the operation of the review step in the present application, the security of the content of the web page can be increased. By reviewing the built page, the risk coefficient is minimized, thereby achieving the purpose of being independently controllable, and solving the technical problem of low security of web pages in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings forming a part of this application are used to provide a further understanding of this application. The schematic embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation of this application. In the drawings:
[0017] Figure 1 The hardware structure block diagram of a mobile terminal for implementing a method for configuring a web page according to an embodiment of the present application is shown;
[0018] Figure 2 The flowchart of a method for configuring a web page according to an embodiment of the present application is shown;
[0019] Figure 3 The structure block diagram of a device for configuring a web page according to an embodiment of the present application is shown.
[0020] Among them, the above-mentioned accompanying drawings include the following reference numerals:
[0021] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0022] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The following will describe the present application in detail with reference to the drawings and in combination with the embodiments.
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances for the embodiments of the present application described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0025] As introduced in the background art, the security of web pages in the prior art is low. To solve the above problems, embodiments of the present application provide a method for configuring a web page, a device for configuring a web page, a computer-readable storage medium, and an electronic device.
[0026] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.
[0027] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal of a method for configuring a web page according to an embodiment of the present invention. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in Figure 1The structure shown is only illustrative and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may further include more or fewer components than those shown in Figure 1 or have a different configuration from that shown in Figure 1 .
[0028] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the web page configuration method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the mobile terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include the wireless network provided by the communication provider of the mobile terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (Radio Frequency, abbreviated as RF) module, which is used to communicate with the Internet wirelessly.
[0029] In this embodiment, a web page configuration method running on a mobile terminal, a computer terminal, or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from that here.
[0030] Figure 2 is a flowchart of the web page configuration method according to an embodiment of the present application. As Figure 2 shown, the method includes the following steps:
[0031] Step S201, acquisition step: Acquire a target component library, where the target component library is used to store multiple target components that make up a web page and component information of the target components. The target components at least include pictures, links, and applets, and the component information includes descriptions of the target components, categories of the target components, unique identifiers of the target components, and usage scenarios of the target components.
[0032] Specifically, a web component refers to a reusable and customizable independent functional unit used to build a user interface in web development. These components can be regarded as encapsulated code blocks that have independent styles, behaviors, and data, and can be inserted into different positions of a web page to achieve specific functions or present specific content. The above target components can also include buttons, input boxes, navigation menus, tables, cards, video players, etc. These components can be developed using front-end technologies such as HTML, CSS, JavaScript, or created through modern front-end frameworks such as React, Vue, Angular, etc.
[0033] Step S202, construction step: Build a target theme area library according to the above target components, where the target theme area library includes multiple target theme areas, and the target theme areas are areas in the web page for content display and function setting around a predetermined theme.
[0034] Specifically, in the process of building the target theme area library, the above various target components can be reused. And the quantity and type of target components can be set, and links or pictures can be configured for each target component to obtain the above target theme area library. In the target theme area, multiple menu style patterns can be preset, such as: one picture per page, one picture per column, two pictures in two columns on the left and right, etc.
[0035] Step S203, configuration step: Acquire an initial page and configure the initial page according to the above target theme area to obtain a page to be reviewed.
[0036] Specifically, when web page requirements change, users can use the existing target theme areas in the target theme area library or upload and configure new target theme areas according to the requirements to achieve rapid personalization configuration of the web page and obtain the above page to be reviewed.
[0037] Step S204, review step: Review the above page to be reviewed to ensure the security and compliance of the configuration of the page to be reviewed.
[0038] In practical applications, an operator can actively submit a version release request. The system will conduct a preliminary verification on the links, input content, and pictures. The reviewer will further review the verification of sensitive words, copyright material authorization files, the accuracy of information disclosure, and the legality of the links to ensure the compliance and reliability of the layout release.
[0039] Step S205, the first determination step. When the review is passed, determine the to-be-reviewed page as the target page to implement the configuration of the above web page.
[0040] Step S206, the first repetition step. When the review fails, repeat the above configuration step and the above review step at least once in sequence until the to-be-reviewed page passes the review, and determine the to-be-reviewed page as the target page to implement the configuration of the above web page.
[0041] Specifically, the above review step can be carried out by an administrator with review authority to review the to-be-reviewed page. When the review is passed, directly use the to-be-reviewed page as the final target page. When the review fails, the target component and the target theme area can be reselected to implement the reconfiguration of the to-be-reviewed page until the review is passed. The above steps can be implemented based on the Python language.
[0042] Through this embodiment, a method for configuring a web page is provided. First, in the acquisition step, a target component library is obtained. The target component library is used to store multiple target components that make up the web page and the component information of the target components. The target components at least include pictures, links, and applets. The component information includes the description of the target component, the category of the target component, the unique identifier of the target component, and the usage scenario of the target component. In the construction step, according to the target components, a target theme area library is constructed. Among them, the target theme area library includes multiple target theme areas. The target theme area is an area in the web page for content display and function setting around a predetermined theme. In the configuration step, an initial page is obtained and the initial page is configured according to the target theme area to obtain a to-be-reviewed page. In the review step, the to-be-reviewed page is reviewed to ensure the security and compliance of the configuration of the to-be-reviewed page. In the first determination step, when the review is passed, the to-be-reviewed page is determined as the target page to implement the configuration of the web page. In the first repetition step, when the review fails, the configuration step and the review step are repeated at least once in sequence until the to-be-reviewed page passes the review, and the to-be-reviewed page is determined as the target page to implement the configuration of the web page. Through the operation of the review step in this application, the security of the content of the web page can be increased. By reviewing the built page, the risk coefficient can be minimized, thereby achieving the purpose of being independently controllable and solving the technical problem of low security of web pages in the prior art.
[0043] In the specific implementation process, the above step S201 can be implemented through the following steps: Step S2011, obtain an initial component library, where the above initial component library is used to store a plurality of initial components that make up a web page; Step S2012, perform a first predetermined operation on the plurality of above initial components in the above initial component library to obtain a plurality of above target components, where the above first predetermined operation includes at least one of adding the above initial components, modifying the above initial components, and deleting the above initial components; Step S2013, classify the plurality of above target components according to the categories of the above target components to obtain the classification result of the above target components; Step S2014, classify and store the plurality of above target components according to the above classification result to obtain the above target component library. This method can further enrich the above target component library.
[0044] Specifically, operations such as adding, modifying, and deleting target components such as required pictures, links, and applets can be performed according to the user's needs, and new types of target components can also be added. In practical applications, the front-end page of the initial component library displays an information list of the added components such as pictures, links, and applets. On the front-end page, after the user clicks the add, modify, and delete buttons, corresponding add, modify, and delete operations are performed on the corresponding initial components, and various information of the uploaded components is filled in. After the operation is completed, the above component data will be saved in the initial component library to obtain the target component library for repeated use when needed, avoiding resource waste.
[0045] To further enrich the above target theme area library, the above step S202 of the present application can be implemented through the following steps: Step S2021, obtain an initial theme area library, where the above initial theme area library includes a plurality of initial theme areas; Step S2022, call the above target components and perform adjustment processing on the above target components to obtain preprocessed components, where the above adjustment processing includes at least one of adjusting the size of the above target components, adjusting the position of the above target components, and adjusting the style of the above target components, and the above style at least includes the color, font, and border of the above target components; Step S2023, combine the preprocessed components of different categories to obtain the above target theme area and display the above target theme area on the display interface; Step S2024, perform a second predetermined operation on the above initial theme area library to obtain the above target theme area library, where the above second predetermined operation includes at least one of adding the above target theme area, modifying the above initial theme area, and deleting the above initial theme area. This method can further reduce the complexity of the process of constructing the target theme area library, simplify the construction process, and at the same time can further enrich the above target theme area library.
[0046] Specifically, in the target theme area, multiple style menus can be preset. Users can select the corresponding style according to their needs. In the target theme area, existing target components such as pictures, links, and applets in the target component library can be called. According to the theme of the required special zone, the corresponding picture, link, and applet components are used to configure the target theme area that meets the requirements, and the configuration effect can be previewed in real time. In practical applications, when displaying the information list of the configured target theme area on the front-end page and performing addition, modification, and deletion operations, users can click the corresponding buttons on the front-end page to operate.
[0047] After the above step S2022 and before the above step S2023, it can also be implemented in other ways. For example: Step S2025, according to the above preprocessing component, determine the uniform resource locator of the above preprocessing component to achieve the positioning of the above preprocessing component. In a multi-component and multi-functional system, using the above uniform resource locator, the preprocessing component can be located, which can further simplify the page configuration and update process. Only the uniform resource locator of the preprocessing component needs to be updated, without modifying the code or configuration of the page reference component, which can further greatly reduce the workload and error rate and further improve the web page configuration efficiency.
[0048] Specifically, the Uniform Resource Locator (URL for short) can provide a unique network address for the preprocessing component, ensuring the uniqueness and accessibility of the component. This means that no matter which server the preprocessing component is stored on, as long as the URL remains unchanged, users can stably access and reference the component through the URL, further ensuring the stability and availability of the component.
[0049] In some embodiments, the above step S203 can be specifically implemented through the following steps: Step S2031, an addition step, add the above target theme area to a predetermined position on the above initial page to obtain a preparatory page, and display the above preparatory page on the display interface; Step S2032, a second determination step, determine whether the above preparatory page meets the user's configuration requirements; Step S2033, a third determination step, in the case where the above preparatory page meets the above user's configuration requirements, determine the above preparatory page as the above page to be reviewed; Step S2034, a second repetition step, in the case where the above preparatory page does not meet the above user's configuration requirements, repeat the above addition step and the above second determination step at least once in sequence, and the above predetermined position in the repeated addition step is different until the above preparatory page meets the above user's configuration requirements. This method can further quickly configure the above page to be reviewed.
[0050] Specifically, through the management operation of the web page, the configured target theme area in the target theme area library is called to implement the operations of adding, modifying, and deleting pages. In practical applications, the list of configured page information can be displayed on the front-end page, and the corresponding add, modify, and delete buttons can be clicked to implement the corresponding page configuration operations. In fact, the above-mentioned preparatory pages include one of a general layout, a custom sharing page, and an audit record. Among them, the general layout is mainly responsible for the above-mentioned layout configuration function, and realizes the operations of adding, modifying, and deleting layout configurations. Custom sharing can set parameters such as the title, description, and picture when the web page layout is shared. Custom sharing settings can be implemented for different web page layouts to make sharing more diversified. The audit record module can query the audit process status of the web page layout management, which is convenient for viewing which stage the current audit process is in and facilitating audit approval. Consistent with the above-mentioned target component library and target theme area library, the page to be audited also has an instant preview function, which can real-time preview the actual effect diagram of the page configuration, further enhancing the user experience, enabling users to instantaneously adjust and optimize the page configuration, and realizing the needs of users.
[0051] The above step S204 can be implemented through the following steps: Step S2041, obtain the source of the above target component and conduct a security audit on the source of the above target component; Step S2042, determine whether the above page to be audited meets the compliance requirements; Step S2043, determine whether the functions of the above page to be audited are running normally. This method can further improve the accuracy of the audit of the above page to be audited.
[0052] Specifically, the above audit steps reflect the risk controllability of the entire page configuration process. The page to be audited can finally be presented to the customer group browsing the web page, and only the page that has been audited and confirmed to be risk-free can be put into use on schedule.
[0053] The above step S205 or the above step S206 can be implemented through the following steps: Step S2051, deploy the above target page configuration to the server. This method can further improve the page loading speed and response time, reduce the server load, and improve the overall system performance.
[0054] Specifically, the above deployment process is as follows: Package all the configuration data of the target page that has passed the review, including resources such as layout, components, styles, scripts, and images. Save the packaged page configuration data to the database, and update the page status to "Reviewed" and "Deployable". Upload the static resources required by the target page (such as images, CSS files, and JS files) to the corresponding directories on the server. Generate or update HTML, CSS, and JavaScript code using the page configuration data to ensure that the code is consistent with the configuration data. Add the routing rules for the target page to the routing configuration of the server to ensure that the URL can correctly point to the deployed page. Perform performance optimization on the page, such as code compression, image optimization, cache settings, etc., to speed up page loading and reduce server resource consumption. After the deployment is completed, conduct a page loading test to verify the integrity and correctness of the page on the server. After the page deployment is verified to be correct, notify the relevant personnel that the page is online and can be used or tested.
[0055] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the configuration method for web pages of the present application will be described in detail below with reference to specific embodiments.
[0056] This embodiment relates to a specific configuration method for web pages, including the following steps:
[0057] Step S1: When the page requirements change, the user first views the front-end page of the layout management. If there is a configured web page that meets the requirements, there is no need to configure the same page again. If not, the user configures the corresponding page according to the requirements.
[0058] Step S2: During configuration, the user opens the front-end page of the component library module and checks whether all the component data required for this requirement exists in the component list. According to the difference between the configured component data and the required component data, the user clicks the add button to add new component data.
[0059] Step S3: The user opens the front-end page of the zone management module and checks the configured theme zone data in the theme zone list. If the required theme zone is not in the list, the user needs to add the corresponding theme zone. When adding a theme zone, the user selects the corresponding style from the preset zone style menu according to the requirements, and then calls the component library module. By clicking, the configured components in the component library module are added to the theme zone configuration area, and the theme zone effect is previewed. After the requirements are met, the configuration is saved.
[0060] Step S4: The user opens the front-end page of layout management, adds a new requirement layout, calls the function of the special zone management module, adds the configured theme special zone of the special zone management module to the layout configuration area by clicking, previews the configuration effect of the web page, optimizes and adjusts the page configuration according to the preview effect, saves it after the requirements are met, and this operation will be automatically submitted to the audit management module.
[0061] Step S5: An administrator with audit permission audits the submitted page configuration operation in the audit management module. After the audit is passed, the page configuration data implemented by the user in the layout management module will be saved in the database and deployed to the server at a predetermined time using this page configuration.
[0062] The embodiment of the present application also provides a device for configuring a web page. It should be noted that the device for configuring a web page in the embodiment of the present application can be used to execute the method for configuring a web page provided by the embodiment of the present application. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0063] The following introduces the device for configuring a web page provided by the embodiment of the present application.
[0064] Figure 3 is a schematic diagram of the device for configuring a web page according to the embodiment of the present application. As Figure 3 shown, the device includes:
[0065] An acquisition unit 10, configured to acquire steps, acquire a target component library, where the target component library is used to store a plurality of target components constituting a web page and component information of the target components, the target components at least include pictures, links, and applets, and the component information includes descriptions of the target components, categories of the target components, unique identifiers of the target components, and usage scenarios of the target components;
[0066] Specifically, a web component refers to a reusable and customizable independent functional unit used to build a user interface in web development. These components can be regarded as encapsulated code blocks, which have independent styles, behaviors, and data, and can be inserted into different positions of a web page to achieve specific functions or present specific content. The above target components may further include content such as buttons, input boxes, navigation menus, tables, cards, video players, etc. These components can be developed using front-end technologies such as HTML, CSS, JavaScript, etc., or created through modern front-end frameworks such as React, Vue, Angular, etc.
[0067] The construction unit 20 is used for the construction step to construct a target theme area library according to the above-mentioned target components. The target theme area library includes multiple target theme areas, and the target theme area is an area on the web page for content display and function setting around a predetermined theme;
[0068] Specifically, in the process of constructing the target theme area library, the above-mentioned various target components can be reused. Moreover, the quantity and type of the target components can be set, and links, pictures, etc. can be configured for each target component to obtain the above-mentioned target theme area library. In the target theme area, multiple menu style patterns can be preset, for example: one picture per page, one picture per column, two pictures in two columns on the left and right, etc.
[0069] The configuration unit 30 is used for the configuration step to obtain an initial page and configure the initial page according to the above-mentioned target theme area to obtain a page to be reviewed;
[0070] Specifically, when the web page requirements change, the user can use the existing target theme areas in the target theme area library according to the requirements or upload and configure new target theme areas to achieve rapid personalized configuration of the web page and obtain the above-mentioned page to be reviewed.
[0071] The review unit 40 is used for the review step to review the above-mentioned page to be reviewed to ensure the security and compliance of the configuration of the page to be reviewed;
[0072] In practical applications, the operator can actively submit a version release request. The system will perform a preliminary verification on the links, input content, and pictures. The reviewer will further review the verification of sensitive words, copyright material authorization files, information disclosure accuracy, and link legality to ensure the compliance and reliability of the layout release.
[0073] The first determination unit 50 is used for the first determination step. In the case of passing the review, it is determined that the above-mentioned page to be reviewed is the target page to achieve the configuration of the above-mentioned web page;
[0074] The first repetition unit 60 is used for the first repetition step. In the case of failing the review, the above-mentioned configuration step and the above-mentioned review step are repeated at least once in sequence until the above-mentioned page to be reviewed passes the review, and it is determined that the above-mentioned page to be reviewed is the target page to achieve the configuration of the above-mentioned web page.
[0075] Specifically, the above-mentioned review step can be carried out by an administrator with review authority to review the above-mentioned page to be reviewed. In the case of passing the review, the page to be reviewed is directly used as the final target page. In the case of failing the review, the target components and target theme areas can be reselected to achieve the reconfiguration of the page to be reviewed until the review passes. The above steps can be implemented based on the Python language.
[0076] Through this embodiment, a configuration device for a web page is provided. The obtaining step obtains a target component library, which is used to store a plurality of target components that make up the web page and the component information of the target components. The target components at least include pictures, links, and applets, and the component information includes the description of the target component, the category of the target component, the unique identifier of the target component, and the usage scenario of the target component; the building step builds a target theme area library according to the target components, where the target theme area library includes a plurality of target theme areas, and the target theme area is an area in the web page for content display and function setting around a predetermined theme; the configuration step obtains an initial page and configures the initial page according to the target theme area to obtain a page to be reviewed; the review step reviews the page to be reviewed to ensure the security and compliance of the configuration of the page to be reviewed; the first determination step determines the page to be reviewed as the target page in the case of passing the review to implement the configuration of the web page; the first repetition step, in the case of failing the review, repeats the configuration step and the review step at least once in sequence until the page to be reviewed passes the review, and determines the page to be reviewed as the target page to implement the configuration of the web page. Through the operation of the review step in this application, the security of the web page content can be increased. By reviewing the built page, the risk coefficient can be minimized, so as to achieve the purpose of being independently controllable, and the technical problem of low security of web pages in the prior art is solved.
[0077] In the specific implementation process, the above-mentioned obtaining unit includes a first obtaining module, a first processing module, a classification module, and a storage module. Among them, the first obtaining module is used to obtain an initial component library, and the initial component library is used to store a plurality of initial components that make up the web page; the first processing module is used to perform a first predetermined operation on the plurality of initial components in the initial component library to obtain a plurality of the target components, where the first predetermined operation includes at least one of adding the initial component, modifying the initial component, and deleting the initial component; the classification module is used to classify the plurality of target components according to the category of the target component to obtain the classification result of the target component; the storage module is used to classify and store the plurality of target components according to the classification result to obtain the target component library. This device can further enrich the target component library.
[0078] Specifically, operations such as adding, modifying, and deleting target components such as required pictures, links, and applets can be performed according to the user's needs, and new types of target components can also be added. In practical applications, the front-end page of the initial component library displays an information list of the added components such as pictures, links, and applets. On the front-end page, after the user clicks the add, modify, and delete buttons, corresponding addition, modification, and deletion operations are performed on the corresponding initial components, and various information of the uploaded components is filled in. After the operations are completed, the above component data will be saved in the initial component library to obtain the target component library for repeated use when needed, avoiding resource waste.
[0079] To further enrich the above target theme area library, the above construction unit of the present application includes a second acquisition module, a call module, a combination module, and a second processing module. Among them, the second acquisition module is used to acquire the initial theme area library, and the above initial theme area library includes multiple initial theme areas; the call module is used to call the above target components and perform adjustment processing on the above target components to obtain preprocessed components. Among them, the above adjustment processing includes at least one of adjusting the size of the above target component, adjusting the position of the above target component, and adjusting the style of the above target component. The above style at least includes the color, font, and border of the above target component; the combination module is used to combine the preprocessed components of different categories to obtain the above target theme area and display the above target theme area on the display interface; the second processing module is used to perform a second predetermined operation on the above initial theme area library to obtain the above target theme area library. Among them, the above second predetermined operation includes at least one of adding the above target theme area, modifying the above initial theme area, and deleting the above initial theme area. This device can further reduce the complexity of the process of constructing the target theme area library, simplify the construction process, and at the same time can further enrich the above target theme area library.
[0080] Specifically, in the target theme area, multiple style menus can be preset, and users can select corresponding styles according to their needs. In the target theme area, target components such as pictures, links, and applets already existing in the target component library can be called, and corresponding picture, link, and applet components can be used according to the theme of the required special zone to configure a target theme area that meets the requirements, and the configuration effect can be previewed in real time. In practical applications, when an information list of the configured target theme area is displayed on the front-end page and addition, modification, and deletion operations are performed, the user can click the corresponding button on the front-end page to perform the operations.
[0081] The above-mentioned building unit includes a determination module, which is used to determine the Uniform Resource Locator (URL) of the above-mentioned preprocessing component according to the above-mentioned preprocessing component, so as to locate the above-mentioned preprocessing component. In a multi-component and multi-functional system, using the above-mentioned URL, the preprocessing component can be located, which can further simplify the page configuration and update process. Only the URL of the preprocessing component needs to be updated, without modifying the code or configuration of the page reference component, which can further greatly reduce the workload and error rate, and further improve the web page configuration efficiency.
[0082] Specifically, the Uniform Resource Locator (URL) can provide a unique network address for the preprocessing component, ensuring the uniqueness and accessibility of the component. This means that no matter which server the preprocessing component is stored on, as long as the URL remains unchanged, users can stably access and reference the component through this URL, further ensuring the stability and availability of the component.
[0083] In some embodiments, the above-mentioned configuration unit includes an adding module, a second determination module, a third determination module, and a second repetition module. Among them, the adding module is used for the adding step of adding the above-mentioned target theme area to a predetermined position of the above-mentioned initial page to obtain a preliminary page, and displaying the above-mentioned preliminary page on the display interface; the second determination module is used for the second determination step of determining whether the above-mentioned preliminary page meets the user's configuration requirements; the third determination module is used for the third determination step of determining the above-mentioned preliminary page as the above-mentioned page to be reviewed when the above-mentioned preliminary page meets the user's configuration requirements; the second repetition module is used for the second repetition step of, when the above-mentioned preliminary page does not meet the user's configuration requirements, sequentially repeating the above-mentioned adding step and the above-mentioned second determination step at least once, and the above-mentioned predetermined position in the above-mentioned adding step is different during the repeated process until the above-mentioned preliminary page meets the user's configuration requirements. This device can further quickly configure the above-mentioned page to be reviewed.
[0084] Specifically, through the management operation of the web page, the configured target theme area in the target theme area library is called to implement the operations of adding, modifying, and deleting pages. In practical applications, the configured page information list can be displayed on the front-end page, and the corresponding add, modify, and delete buttons can be clicked to implement the corresponding page configuration operations. In fact, the above-mentioned preparatory pages include one of a general layout, a custom sharing page, and an audit record. Among them, the general layout is mainly responsible for the above-mentioned layout configuration function, and implements the operations of adding, modifying, and deleting the layout configuration. Custom sharing can set parameters such as the title, description, and picture when the web page layout is shared. Custom sharing settings can be implemented for different web page layouts to make sharing more diversified. The audit record module can query the audit process status of the web page layout management, which is convenient for viewing which stage the current audit process is in and facilitating audit approval. Consistent with the above-mentioned target component library and target theme area library, the page to be audited also has an instant preview function, which can preview the actual effect diagram of the page configuration in real time, further enhancing the user experience, enabling users to adjust and optimize the page configuration immediately, and meeting the needs of users.
[0085] The above-mentioned audit unit includes a third acquisition module, a fourth determination module, and a fifth determination module. Among them, the third acquisition module is used to acquire the source of the above-mentioned target component and conduct a security audit on the source of the above-mentioned target component; the fourth determination module is used to determine whether the above-mentioned page to be audited meets the compliance requirements; the fifth determination module is used to determine whether the functions of the above-mentioned page to be audited are running normally. This device can further improve the accuracy of the audit of the above-mentioned page to be audited.
[0086] Specifically, the above-mentioned audit steps reflect the risk controllability of the entire page configuration process. The page to be audited can finally be presented to the customer group browsing the web page, and only the page that has been audited and confirmed to be risk-free can be put into use on schedule.
[0087] The above-mentioned first determination unit further includes a deployment module for deploying the above-mentioned target page configuration to the server. This device can further improve the page loading speed and response time, reduce the server load, and improve the overall system performance.
[0088] Specifically, the above deployment process is as follows: Package all the configuration data of the target page that has passed the review, including resources such as layout, components, styles, scripts, and images. Save the packaged page configuration data to the database, and update the page status to "Reviewed" and "Deployable". Upload the static resources required by the target page (such as images, CSS files, and JS files) to the corresponding directories on the server. Generate or update HTML, CSS, and JavaScript code using the page configuration data to ensure that the code is consistent with the configuration data. Add the routing rules for the target page to the routing configuration of the server to ensure that the URL can correctly point to the deployed page. Perform performance optimization processing on the page, such as code compression, image optimization, cache settings, etc., to speed up page loading and reduce server resource consumption. After the deployment is completed, conduct a page loading test to verify the integrity and correctness of the page on the server. After the page deployment is verified to be correct, notify the relevant personnel that the page is online and can be used or tested.
[0089] The above configuration device for the web page includes a processor and a memory. The above obtaining unit, building unit, configuration unit, review unit, first determination unit, and first repetition unit, etc. are all stored in the memory as program units, and the processor executes the above program units stored in the memory to implement the corresponding functions. The above modules are all located in the same processor; or, the above each module is located in different processors in any combination form.
[0090] The processor contains a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set, and the web page is configured by adjusting the kernel parameters.
[0091] The memory may include non-permanent memory in the computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip.
[0092] An embodiment of the present invention provides a computer-readable storage medium. The above computer-readable storage medium includes a stored program, wherein when the above program runs, it controls the device where the computer-readable storage medium is located to execute the above configuration method for the web page.
[0093] Specifically, the configuration method for the web page includes:
[0094] Step S201, Acquisition Step: Obtain the target component library, where the target component library is used to store multiple target components that make up a web page and the component information of the target components. The target components at least include images, links, and applets, and the component information includes the description of the target component, the category of the target component, the unique identifier of the target component, and the usage scenario of the target component.
[0095] Specifically, a web component refers to a reusable and customizable independent functional unit used to build a user interface in web development. These components can be regarded as encapsulated code blocks that have independent styles, behaviors, and data, and can be inserted into different positions of a web page to achieve specific functions or present specific content. The above target components can also include buttons, input boxes, navigation menus, tables, cards, video players, etc. These components can be developed using front-end technologies such as HTML, CSS, JavaScript, or created through modern front-end frameworks such as React, Vue, Angular, etc.
[0096] Step S202, Construction Step: Build a target theme area library according to the above target components. The target theme area library includes multiple target theme areas, and the target theme area is an area in the web page for content display and function setting around a predetermined theme.
[0097] Specifically, during the process of building the target theme area library, the above various target components can be reused. And the quantity and type of the target components can be set, and links or images can be configured for each target component to obtain the above target theme area library. In the target theme area, multiple menu style patterns can be preset, such as: one picture per page, one picture per column, two pictures in two columns on the left and right, etc.
[0098] Step S203, Configuration Step: Obtain the initial page and configure the initial page according to the above target theme area to obtain the page to be reviewed.
[0099] Specifically, when the web page requirements change, the user can use the existing target theme areas in the target theme area library or upload and configure new target theme areas according to the requirements to achieve rapid personalized configuration of the web page and obtain the above page to be reviewed.
[0100] Step S204, Review Step: Review the above page to be reviewed to ensure the security and compliance of the configuration of the page to be reviewed.
[0101] In practical applications, an operator can actively submit a version release request. The system will conduct a preliminary verification on the links, input content, and pictures. The reviewer will conduct a further review on verifying sensitive words, copyright material authorization files, the accuracy of information disclosure, and the legality of links to ensure the compliance and reliability of the layout release.
[0102] Step S205, the first determination step. When the review is passed, determine the to-be-reviewed page as the target page to implement the configuration of the above web page.
[0103] Step S206, the first repetition step. When the review is not passed, repeat the above configuration step and the above review step at least once in sequence until the to-be-reviewed page passes the review, and determine the to-be-reviewed page as the target page to implement the configuration of the above web page.
[0104] Specifically, the above review step can be performed by an administrator with review permissions on the to-be-reviewed page. When the review is passed, directly use the to-be-reviewed page as the final target page. When the review is not passed, the target component and the target theme area can be reselected to reconfigure the to-be-reviewed page until the review is passed. The above steps can be implemented based on the Python language.
[0105] An embodiment of the present invention provides a processor, which is used to run a program. When the program runs, it executes the configuration method of the above web page.
[0106] Specifically, the configuration method of the web page includes:
[0107] Step S201, the acquisition step. Acquire a target component library, where the target component library is used to store multiple target components that make up the web page and the component information of the target components. The target components at least include pictures, links, and applets. The component information includes the description of the target component, the category of the target component, the unique identifier of the target component, and the usage scenario of the target component.
[0108] Specifically, a web component refers to a reusable and customizable independent functional unit used to build a user interface in web development. These components can be regarded as encapsulated code blocks that have independent styles, behaviors, and data, and can be inserted into different positions of the web page to achieve specific functions or present specific content. The above target components can also include content such as buttons, input boxes, navigation menus, tables, cards, video players, etc. These components can be developed using front-end technologies such as HTML, CSS, JavaScript, or created through modern front-end frameworks such as React, Vue, Angular, etc.
[0109] Step S202, Construction Step: Based on the above-mentioned target components, construct a target theme area library. The target theme area library includes multiple target theme areas, and the target theme area is an area on the web page for content display and function setting around a predetermined theme;
[0110] Specifically, during the process of constructing the target theme area library, the above-mentioned various target components can be reused. Moreover, the quantity and type of the target components can be set, and links, pictures, etc. can be configured for each target component to obtain the above-mentioned target theme area library. In the target theme area, various menu style patterns can be preset, such as: one picture per page, one picture per column, two pictures in two columns on the left and right, etc.
[0111] Step S203, Configuration Step: Obtain the initial page and configure the initial page according to the above-mentioned target theme area to obtain the page to be reviewed;
[0112] Specifically, when the web page requirements change, the user can use the existing target theme areas in the target theme area library according to the requirements or upload and configure new target theme areas to achieve rapid personalization configuration of the web page and obtain the above-mentioned page to be reviewed.
[0113] Step S204, Review Step: Review the above-mentioned page to be reviewed to ensure the security and compliance of the configuration of the page to be reviewed;
[0114] In practical applications, the operator can actively submit a version release request. The system will perform a preliminary verification on the links, input content, and pictures. The reviewer will further review the verification of sensitive words, copyright material authorization files, information disclosure accuracy, and link legality to ensure the compliance and reliability of the layout release.
[0115] Step S205, First Determination Step: In the case of passing the review, determine the above-mentioned page to be reviewed as the target page to achieve the configuration of the above-mentioned web page;
[0116] Step S206, First Repetition Step: In the case of failing the review, repeat the above-mentioned configuration step and the above-mentioned review step at least once in sequence until the above-mentioned page to be reviewed passes the review, and determine the above-mentioned page to be reviewed as the target page to achieve the configuration of the above-mentioned web page.
[0117] Specifically, the above-mentioned review step can be carried out by an administrator with review authority to review the above-mentioned page to be reviewed. In the case of passing the review, directly use the page to be reviewed as the final target page. In the case of failing the review, the target components and target theme areas can be reselected to achieve the reconfiguration of the page to be reviewed until the review passes. The above steps can be implemented based on the Python language.
[0118] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, it implements at least the following steps:
[0119] Step S201, an acquisition step, to acquire a target component library, where the target component library is used to store a plurality of target components that make up a web page and component information of the target components. The target components at least include pictures, links, and applets, and the component information includes a description of the target component, a category of the target component, a unique identifier of the target component, and a usage scenario of the target component;
[0120] Step S202, a construction step, to construct a target theme area library according to the target components, where the target theme area library includes a plurality of target theme areas, and the target theme area is an area in the web page for content display and function setting around a predetermined theme;
[0121] Step S203, a configuration step, to acquire an initial page and configure the initial page according to the target theme area to obtain a page to be reviewed;
[0122] Step S204, a review step, to review the page to be reviewed to ensure the security and compliance of the configuration of the page to be reviewed;
[0123] Step S205, a first determination step, in the case of passing the review, determine the page to be reviewed as the target page to implement the configuration of the web page;
[0124] Step S206, a first repetition step, in the case of failing the review, repeat the above configuration step and the above review step at least once in sequence until the page to be reviewed passes the review, and determine the page to be reviewed as the target page to implement the configuration of the web page.
[0125] The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0126] The present application also provides a computer program product, which is suitable for executing a program initialized with at least the following method steps when executed on a data processing device:
[0127] Step S201, an acquisition step, to acquire a target component library, where the target component library is used to store a plurality of target components that make up a web page and component information of the target components. The target components at least include pictures, links, and applets, and the component information includes a description of the target component, a category of the target component, a unique identifier of the target component, and a usage scenario of the target component;
[0128] Step S202, construction step: Based on the above target components, construct a target theme area library, where the target theme area library includes multiple target theme areas, and the target theme area is an area on the web page for content display and function setting around a predetermined theme;
[0129] Step S203, configuration step: Obtain an initial page, and configure the initial page according to the above target theme areas to obtain a page to be reviewed;
[0130] Step S204, review step: Review the page to be reviewed to ensure the security and compliance of the configuration of the page to be reviewed;
[0131] Step S205, first determination step: In the case of passing the review, determine the page to be reviewed as the target page to implement the configuration of the web page;
[0132] Step S206, first repetition step: In the case of failing the review, repeat the above configuration step and the above review step at least once in sequence until the page to be reviewed passes the review, and determine the page to be reviewed as the target page to implement the configuration of the web page.
[0133] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present invention is not limited to any specific combination of hardware and software.
[0134] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0135] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0136] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction means that implements the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0138] In a typical configuration, a computing device includes one or more processors, an input / output interface, a network interface, and a memory.
[0139] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory is an example of computer-readable media.
[0140] A computer-readable medium includes permanent and non-permanent, removable and non-removable media that can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0141] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or also includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.
[0142] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0143] 1) The method for configuring a web page of the present application. First, in the acquisition step, a target component library is acquired. The target component library is used to store multiple target components that make up the web page and the component information of the target components. The target components at least include pictures, links, and applets. The component information includes the description of the target component, the category of the target component, the unique identifier of the target component, and the usage scenario of the target component. In the construction step, according to the target components, a target theme area library is constructed. Among them, the target theme area library includes multiple target theme areas, and the target theme area is an area in the web page for content display and function setting around a predetermined theme. In the configuration step, an initial page is acquired, and the initial page is configured according to the target theme area to obtain a page to be reviewed. In the review step, the page to be reviewed is reviewed to ensure the security and compliance of the configuration of the page to be reviewed. In the first determination step, when the review is passed, the page to be reviewed is determined as the target page to achieve the configuration of the web page. In the first repetition step, when the review fails, the configuration step and the review step are sequentially repeated at least once until the page to be reviewed passes the review, and the page to be reviewed is determined as the target page to achieve the configuration of the web page. Through the operation of the review step in the present application, the security of the content of the web page can be increased. By reviewing the built page, the risk coefficient can be minimized, thereby achieving the purpose of being independently controllable, and solving the technical problem of low security of web pages in the prior art.
[0144] 2) The device for configuring a web page of the present application. In the acquisition step, a target component library is acquired. The target component library is used to store multiple target components that make up the web page and the component information of the target components. The target components at least include pictures, links, and applets. The component information includes the description of the target component, the category of the target component, the unique identifier of the target component, and the usage scenario of the target component. In the construction step, according to the target components, a target theme area library is constructed. Among them, the target theme area library includes multiple target theme areas, and the target theme area is an area in the web page for content display and function setting around a predetermined theme. In the configuration step, an initial page is acquired, and the initial page is configured according to the target theme area to obtain a page to be reviewed. In the review step, the page to be reviewed is reviewed to ensure the security and compliance of the configuration of the page to be reviewed. In the first determination step, when the review is passed, the page to be reviewed is determined as the target page to achieve the configuration of the web page. In the first repetition step, when the review fails, the configuration step and the review step are sequentially repeated at least once until the page to be reviewed passes the review, and the page to be reviewed is determined as the target page to achieve the configuration of the web page. Through the operation of the review step in the present application, the security of the content of the web page can be increased. By reviewing the built page, the risk coefficient can be minimized, thereby achieving the purpose of being independently controllable, and solving the technical problem of low security of web pages in the prior art.
[0145] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A method for configuring a web page, characterized in that: include: An acquisition step of acquiring a target component library, wherein the target component library is used to store a plurality of target components constituting a web page and component information of the target components, wherein the target components include at least pictures, links, and applets, and the component information includes a description of the target component, a category of the target component, a unique identifier of the target component, and a usage scenario of the target component; A construction step, constructing a target subject area library according to the target component, wherein the target subject area library includes a plurality of target subject areas, and the target subject area is an area in the web page for content display and function setting around a predetermined subject; A configuration step, obtaining an initial page, and configuring the initial page according to the target subject area to obtain a page to be reviewed; An audit step is to audit the page to be audited to ensure the security and compliance of the configuration of the page to be audited; The first determination step is to determine the page to be reviewed as the target page if the review is passed, so as to implement the configuration of the web page; The first repetition step is to repeat the configuration step and the audit step at least once in sequence if the audit fails, until the page to be audited passes the audit, and the page to be audited is determined to be the target page to implement the configuration of the web page.
2. The method according to claim 1, characterized in that The obtaining step comprises: Acquire an initial component library, where the initial component library is used to store a plurality of initial components constituting a web page; Performing a first predetermined operation on a plurality of the initial components in the initial component library to obtain a plurality of the target components, wherein the first predetermined operation includes at least one of adding the initial component, modifying the initial component, and deleting the initial component; Classifying the plurality of target components according to the categories of the target components to obtain classification results of the target components; According to the classification result, the plurality of target components are classified and stored to obtain the target component library.
3. The method according to claim 1, characterized in that The construction steps include: Acquire an initial subject area library, wherein the initial subject area library includes a plurality of initial subject areas; Calling the target component and performing adjustment processing on the target component to obtain a preprocessing component, wherein the adjustment processing includes at least one of adjusting the size of the target component, adjusting the position of the target component, and adjusting the style of the target component, and the style at least includes the color, font, and border of the target component; Combining the preprocessing components of different categories to obtain the target subject area, and displaying the target subject area on a display interface; A second predetermined operation is performed on the initial subject area library to obtain the target subject area library, wherein the second predetermined operation includes at least one of adding the target subject area, modifying the initial subject area, and deleting the initial subject area.
4. The method according to claim 3, characterized in that After adjusting the target component to obtain the preprocessing component, and before combining the preprocessing components of different categories to obtain the target subject area, the method further includes: According to the preprocessing component, the uniform resource locator of the preprocessing component is determined to achieve the positioning of the preprocessing component.
5. The method according to claim 1, characterized in that According to the target subject area, the initial page is configured to obtain a page to be reviewed, including: An adding step of adding the target subject area to a predetermined position of the initial page to obtain a preliminary page, and displaying the preliminary page on a display interface; A second determination step is to determine whether the provisioning page meets the configuration requirements of the user; A third determination step, in which, if the prepared page meets the configuration requirements of the user, the prepared page is determined to be the page to be reviewed; The second repetition step is to repeat the adding step and the second determining step at least once in sequence when the preparation page does not meet the configuration requirements of the user, and the predetermined position in the adding step is different during the repetition until the preparation page meets the configuration requirements of the user.
6. The method according to claim 1, characterized in that The review steps include: Obtaining the source of the target component and performing a security audit on the source of the target component; Determine whether the page to be reviewed meets compliance requirements; Determine whether the functionality of the page to be reviewed is functioning properly.
7. The method according to claim 1, characterized in that Determining the page to be reviewed as a target page to implement the configuration of the web page includes: Deploy the target page configuration to the server.
8. A web page configuration device, characterized in that: include: an acquisition unit, configured to acquire a target component library in an acquisition step, wherein the target component library is configured to store a plurality of target components constituting a web page and component information of the target components, wherein the target components include at least images, links, and applets, and the component information includes a description of the target component, a category of the target component, a unique identifier of the target component, and a usage scenario of the target component; A construction unit, used for the construction step, constructing a target subject area library according to the target component, wherein the target subject area library includes a plurality of target subject areas, and the target subject area is an area in the web page for content display and function setting around a predetermined subject; A configuration unit, used for the configuration step, obtaining an initial page, and configuring the initial page according to the target subject area to obtain a page to be reviewed; An audit unit, used for the audit step, auditing the page to be audited to ensure the security and compliance of the configuration of the page to be audited; A first determination unit is used for the first determination step, in the case of passing the audit, determining the page to be audited as the target page to implement the configuration of the web page; The first repeating unit is used for the first repeating step. If the audit fails, the configuration step and the audit step are repeated in sequence at least once until the page to be audited passes the audit and the page to be audited is determined to be the target page to implement the configuration of the web page.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.