Page generation method and device, storage medium and electronic device
By using characters without text semantics in the network page file as the component identification, and modify the page file according to the corresponding relationship of the component name and the identifier, the problem of low page information security in the existing technology has been solved, and the page file is improved to improve the page files. Effect of information security.
Patent Information
- Application Number
- CN202011356170.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2041-01-28
AI Technical Summary
The information security of existing network pages is low because the correspondence between component names and project content is clear in the page file, and it is easy for others to extract specific project information by crawling the page file.
By using characters without text semantics as the logo of the page component, and according to the corresponding relationship of the preset component name and the component identification, modify the component identification and content in the page file, thereby reducing the correlation between the component name and the project content Essence
It improved the information security of the page, making it difficult for others to extract specific project information from the page file, and enhance the security of the page file.
Smart Images

Figure CN112487331B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of web pages, and in particular, to a page generation method and device, a storage medium, and an electronic device. Background Art
[0002] Currently, web pages are usually generated by rendering page files. There are two ways to edit page files: one is to edit the page file directly, and the other is to edit the page file through an editor. In these two ways, in order to facilitate user editing, the component name and the content of the project are usually set to be consistent or related, so that users can quickly find the location of the component to be edited, improving the efficiency of page editing. However, both methods have the problem of high correspondence between the component name and the component project content. After the page is launched, it is easy to obtain the information of the project corresponding to each component by crawling the page file, resulting in low information security in the page. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a page generation method, the method comprising: in response to a user's editing operation, determining a component name of a page component edited by the user, and component content input by the user for the page component; determining a component identifier of the page component in a page file according to a correspondence between a preset component name and a component identifier, wherein the component identifier is a character without textual semantics; modifying the page file based on the component identifier and the component content; and generating a page based on the page file.
[0005] In a second aspect, the present disclosure provides a page generation device, which includes: an acquisition module, used to determine the component name of the page component edited by the user and the component content input by the user for the page component in response to the user's editing operation; a determination module, used to determine the component identifier of the page component in the page file according to the correspondence between the preset component name and the component identifier, wherein the component identifier is a character without textual semantics; a modification module, used to modify the page file based on the component identifier and the component content; and a generation module, used to generate a page based on the page file.
[0006] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of any one of the methods described in the first aspect of the present disclosure.
[0007] In a fourth aspect, the present disclosure provides an electronic device, comprising a storage device and a processing device, wherein a computer program is stored in the storage device, and the processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods described in the first aspect of the present disclosure.
[0008] Through the above technical solution, at least the following technical effects can be achieved:
[0009] Different page components are distinguished in a page file by component identifiers of characters that do not have textual semantics, and through the correspondence between component names and component identifiers, the user's input content for the page component is modified to the part of the page file corresponding to the page component, and a page is generated based on the page file. In this way, the correlation between the component name in the page file used to generate the page and the project content can be reduced, making it difficult for others to extract specific project information from the page file, thereby improving the information security of the page.
[0010] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0012] Figure 1 The invention is a flow chart showing a method for generating a page according to an exemplary disclosed embodiment.
[0013] Figure 2 It is a schematic diagram of a page editing interface according to an exemplary disclosed embodiment.
[0014] Figure 3 It is a block diagram of a page generating device according to an exemplary disclosed embodiment.
[0015] Figure 4 It is a block diagram of an electronic device according to an exemplary disclosed embodiment. DETAILED DESCRIPTION
[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0017] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0018] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0022] Figure 1 is a flow chart of a page generation method according to an exemplary disclosed embodiment. Figure 1 As shown, the method includes:
[0023] S11. In response to the user's editing operation, determine the component name of the page component edited by the user and the component content input by the user for the page component.
[0024] Among them, the component name can be described by the project name. For example, the component name of the component describing the user name can be user_name, and the component name of the component describing the company name can be company_name. In this way, the user can quickly find the component that needs to be edited by searching for the component name, thereby preventing editing errors caused by confusion of component names.
[0025] S12: Determine the component identifier of the page component in the page file according to the preset correspondence between the component name and the component identifier.
[0026] Wherein, the component identifier is a character without textual semantics. The component identifier can be a character string composed of a random combination of numbers and letters. For example, the component identifier of the page component at the first position of the page can be defined as B39sdhoNJu28, and the component identifier of the page component at the second position of the page can be defined as OIYH279Whuwi3. When it is necessary to edit the component content of the page component at the first position of the page, the field in the page file used to describe the page component with the component identifier of B39sdhoNJu28 can be modified. When it is necessary to edit the component content of the page component at the second position of the page, the field in the page file used to describe the page component with the component identifier of OIYH279Whuwi3 can be modified. In this way, there is no information related to the project name composed of characters with textual semantics such as user_name or company_name in the page file. When the page is generated, even if others crawl the page file, they cannot crawl the corresponding relationship between the specific project name and the component content.
[0027] In the present disclosure, the component identifier of the page component in the page file can be determined through the correspondence between the component name and the component identifier. In this way, after the user edits the page component, the field of the component identifier corresponding to the component name of the page component in the page file can be modified, so that the user's modification of the page component can be mapped to the page file. On the basis of ensuring the editing efficiency of the page, the effect of not leaving component names or project names with literal meaning in the page file is achieved, thereby improving the information security in the page.
[0028] The correspondence between the preset component name and the component identifier may be stored in the form of a JSON file. For example, MapJSON may be used to describe the mapping relationship between the component name and the component identifier. For example, the mapping relationship may be "company name company_name; component identifier: OIYH279Whuwi3".
[0029] For example, when editing a page, in order to facilitate users to accurately edit the page components that need to be edited, the page component used to describe the company name is named "company_name" in the page file. When the editor obtains the input operation of "company_name", the content of the field in the page file can be modified to complete the editing of the page component. In this way, after the page is generated, the crawler program can easily crawl "company_name: ABCD" and other information from the page file; in the present disclosure, when editing the page component used to describe the company name, the editor The crawler can obtain the value entered by the user for "company_name", and through the JSON file used for query, it can be found that the component identifier corresponding to "company_name" is "OIYH279Whuwi3", and the field corresponding to "OIYH279Whuwi3" in the page file is modified to complete the editing of the page component. In this way, there is no description related to "company_name" in the page file. Even if the page file is crawled, only information such as "OIYH279Whuwi3: ABCD" can be obtained. This makes it impossible to directly use the crawled information, thereby improving information security.
[0030] S13. Modify the page file based on the component identifier and the component content.
[0031] Through the component identification and component content, the field in the page file used to describe the page component corresponding to the component identification can be modified to the component content, or a reference link corresponding to the component content can be inserted into the field of the page component corresponding to the component identification.
[0032] S14: Generate a page based on the page file.
[0033] The final page can be obtained by rendering the page file, and the page can be a website page, an application page, a game page, etc.
[0034] In a possible implementation, a preview page can be rendered in real time based on the page file. That is, a preview page can be generated based on the original page file, and after being modified based on the user's editing operation, the preview page is updated based on the modified page file.
[0035] That is to say, once the user performs an editing operation, the editing operation can be previewed and displayed in real time by rendering the modified page file, thereby improving the convenience of visual editing.
[0036] In a possible implementation, the preview page includes an editing control for receiving user editing operations; in response to a user click operation on the editing control in the preview page, a component name corresponding to the editing control is determined; and in response to a user input operation on the editing control, component content input by the user is determined.
[0037] In one possible implementation, the editing control is configured in the form of a JSON file. The component content in the page can be configured in the form of an input box through the JSON file used for editing. Specifically, the input box can also be configured at the position of the page component corresponding to the input box in the preview page to receive the user's editing operations on the page component.
[0038] The editing operation in S11 can be performed by inputting text, pictures, videos, etc. in the input box of the project name, or by editing the editing control, for example, Figure 2 Shown is a schematic diagram of a page editing interface. Shown on the left is an edit box for the project name, and shown on the right is a preview page equipped with an editing control. By entering content in the input box on the left or right, you can complete the editing of the component corresponding to the input box. In actual use, you can use only the input box shown on the left, or only the input box shown on the right that is consistent with the component position, or a combination of the two.
[0039] In a possible implementation, based on a user's selection operation on a page template, a page file and a page editing file corresponding to the page template are determined, wherein the page editing file includes the editing control for receiving the user's editing operation.
[0040] Among them, the page template can also include a preview image, and the image of the page generated by the page file corresponding to the page template can be used as the preview image. In response to the user's click operation on the preview image, it can be determined that the user has selected the page template corresponding to the preview image, thereby pulling the page editing file and page file corresponding to the page template, so that the user can modify the page components in the page through the editing controls provided by the page editing file, thereby obtaining the modified page file.
[0041] In a possible implementation, the user's modification operation on the page component in the preview page can also be obtained, and the description content of the page component in the page file can be modified to make the page component in the page file consistent with the user's modification operation. For example, when the user drags and enlarges the size of a page component in the preview page, the component name of the page component can be determined through the adjustment control, and the component identifier can be determined through the component name, and the size of the page component corresponding to the component identifier in the page file can be modified to adapt to the adjustment. It is worth noting that the adjustment control can be generated by the page editing file.
[0042] In the case where the modification operation is a move operation, the description content of the edit control in the page editing file is modified so that the position of the edit control is consistent with the position of the page component. That is to say, when the modification operation is a move operation, not only the description content of the page component in the page file is modified, but also the description content of the edit control in the page editing file is modified so that the position of the edit control is consistent with the position of the modified page component, so as to avoid the edit control being unable to correctly receive the edit operation for the corresponding page component.
[0043] In a possible implementation, after completing the modification of the page component, the current page file and page editing file may be exported and stored as corresponding page templates, so that the page template can be adjusted visually, thereby improving the convenience of page design.
[0044] In one possible implementation, an operation of adding or deleting a page component in a preview page by a user is obtained; a page component is added or deleted in the page file, and an editing control is added or deleted in the page editing file; and when an operation of adding a page component is obtained, a component name corresponding to the newly added editing control and a component identifier of the newly added page component are stored as a preset corresponding relationship.
[0045] For example, if a user adds a new page component at a certain location in the preview page, a component identifier can be randomly generated in the page file, and a description of the location and style of the page component can be added, and an editing control for the page component can be added to the page editing file, where the component name corresponding to the editing control can be defined by the user or randomly generated, and the component name and component identifier can be stored as a preset correspondence.
[0046] In a possible implementation, in order to further improve the security of page information, a character string may be randomly generated each time a new page template is saved, and the component identifier in the current page file may be updated based on the randomly generated character string, and based on the updated component identifier, the correspondence between the preset component name and the component identifier may be updated, and the updated file page and the current page editing file may be exported and stored as corresponding page templates. In other words, in each newly generated page file, the component identifiers used to describe the page components of the same project may be different, and the correspondence between the component name and the component identifier in each page template is different, which can prevent the problem of reduced information security due to the leakage of files storing the correspondence, and can also prevent the problem of reduced information security of web pages under other templates due to others manually associating the project name and component identifier in a page and then applying it to other web page templates.
[0047] Through the above technical solution, at least the following technical effects can be achieved:
[0048] Different page components are distinguished in a page file by component identifiers of characters that do not have textual semantics, and through the correspondence between component names and component identifiers, the user's input content for the page component is modified to the part of the page file corresponding to the page component, and a page is generated based on the page file. In this way, the correlation between the component name in the page file used to generate the page and the project content can be reduced, making it difficult for others to extract specific project information from the page file, thereby improving the information security of the page.
[0049] Figure 3 is a block diagram of a page generation device according to an exemplary disclosed embodiment. Figure 3 As shown, the device 300 includes:
[0050] The acquisition module 310 is used to determine the component name of the page component edited by the user and the component content input by the user for the page component in response to the user's editing operation.
[0051] The determination module 320 is used to determine the component identifier of the page component in the page file according to the preset correspondence between the component name and the component identifier, wherein the component identifier is a character without textual semantics.
[0052] The modification module 330 is used to modify the page file based on the component identifier and the component content.
[0053] The generating module 340 is used to generate a page based on the page file.
[0054] In a possible implementation, the device further includes a preview module, which is used to generate a preview page based on the original page file, and update the preview page based on the modified page file.
[0055] In a possible implementation, the preview page includes an editing control for receiving user editing operations; the acquisition module 310 is used to determine the component name corresponding to the editing control in response to a user click operation on the editing control in the preview page, and to determine the component content input by the user in response to the user input operation on the editing control.
[0056] In a possible implementation, the device further includes a selection module for determining a page file and a page editing file corresponding to the page template based on a user's selection operation on the page template, wherein the page editing file includes the editing control for receiving the user's editing operation.
[0057] In a possible implementation, the device also includes an editing module, which is used to obtain the user's modification operation on the page component in the preview page; modify the description content of the page component in the page file so that the page component in the page file is consistent with the user's modification operation; modify the description content of the editing control in the page editing file so that the position of the editing control is consistent with the position of the page component; export the current page file and page editing file, and store them accordingly as page templates.
[0058] In a possible implementation, the editing module is also used to obtain the user's addition or deletion operation on the page component in the preview page; add or delete the page component in the page file, and add or delete the editing control in the page editing file; when the addition operation on the page component is obtained, the component name corresponding to the newly added editing control and the component identifier of the newly added page component are stored as a preset corresponding relationship.
[0059] In a possible implementation, the editing module is also used to randomly generate a string and update the component identifier in the current page file based on the randomly generated string; based on the updated component identifier, update the correspondence between the preset component name and the component identifier; export the updated file page and the current page editing file, and store them accordingly as page templates.
[0060] The specific steps performed by each module in the above-mentioned device have been described in detail in the embodiment of the method part of the present disclosure regarding the device, and will not be repeated here.
[0061] Through the above technical solution, at least the following technical effects can be achieved:
[0062] Different page components are distinguished in a page file by component identifiers of characters that do not have textual semantics, and through the correspondence between component names and component identifiers, the user's input content for the page component is modified to the part of the page file corresponding to the page component, and a page is generated based on the page file. In this way, the correlation between the component name in the page file used to generate the page and the project content can be reduced, making it difficult for others to extract specific project information from the page file, thereby improving the information security of the page.
[0063] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 400 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0064] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0065] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0066] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0067] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0068] In some embodiments, the electronic device can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0069] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0070] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0071] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0072] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.
[0073] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0074] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0075] According to one or more embodiments of the present disclosure, Example 1 provides a page generation method, the method comprising: in response to a user's editing operation, determining a component name of a page component edited by the user, and component content input by the user for the page component; determining a component identifier of the page component in a page file according to a correspondence between a preset component name and a component identifier, wherein the component identifier is a character without textual semantics; modifying the page file based on the component identifier and the component content; and generating a page based on the page file.
[0076] In one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein the method further includes: generating a preview page based on the original page file; after modifying the page file based on the component identifier and the component content, the method further includes: updating the preview page based on the modified page file.
[0077] In one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the preview page includes an editing control for receiving a user editing operation; the method of determining, in response to the user's editing operation, the component name of the page component edited by the user and the component content input by the user for the page component comprises: determining, in response to a user click operation on the editing control in the preview page, the component name corresponding to the editing control; and determining, in response to the user input operation on the editing control, the component content input by the user.
[0078] In one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, which further includes: based on the user's selection operation on the page template, determining the page file and page editing file corresponding to the page template, wherein the page editing file includes the editing control for receiving the user's editing operation.
[0079] In one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, which further includes: obtaining a user's modification operation on a page component in a preview page; modifying the description content of the page component in the page file so that the page component in the page file is consistent with the user's modification operation; when the modification operation is a move operation, the method further includes: modifying the description content of the edit control in the page editing file so that the position of the edit control is consistent with the position of the page component; the method further includes: exporting the current page file and page editing file, and storing them as corresponding page templates.
[0080] In one or more embodiments of the present disclosure, Example 6 provides the method of Example 5, wherein obtaining the user's modification operation on the page component in the preview page also includes: obtaining the user's addition operation or deletion operation on the page component in the preview page; the method also includes: adding or deleting the page component in the page file, and adding or deleting the editing control in the page editing file; when the addition operation on the page component is obtained, the component name corresponding to the newly added editing control and the component identifier of the newly added page component are stored as a preset corresponding relationship.
[0081] One or more embodiments of the present disclosure, Example 7 provides the method of Example 5, which exports the current page file and page editing file and stores them as corresponding page templates, including: randomly generating a string, and updating the component identifier in the current page file according to the randomly generated string; based on the updated component identifier, updating the correspondence between the preset component name and the component identifier; exporting the updated file page and the current page editing file, and storing them as corresponding page templates.
[0082] According to one or more embodiments of the present disclosure, Example 8 provides a page generation device, which includes: an acquisition module, used to determine the component name of the page component edited by the user and the component content input by the user for the page component in response to the user's editing operation; a determination module, used to determine the component identifier of the page component in the page file according to the correspondence between the preset component name and the component identifier, wherein the component identifier is a character without textual semantics; a modification module, used to modify the page file based on the component identifier and the component content; and a generation module, used to generate a page based on the page file.
[0083] According to one or more embodiments of the present disclosure, Example 9 provides the apparatus of Example 8, wherein the apparatus further includes a preview module for generating a preview page based on an original page file and updating the preview page based on a modified page file.
[0084] According to one or more embodiments of the present disclosure, Example 10 provides the device of Example 9, wherein the preview page includes an editing control for receiving user editing operations; the acquisition module is used to determine the component name corresponding to the editing control in response to a user click operation on the editing control in the preview page, and to determine the component content input by the user in response to the user input operation on the editing control.
[0085] According to one or more embodiments of the present disclosure, Example 11 provides the device of Example 10, which also includes a selection module for determining the page file and page editing file corresponding to the page template based on the user's selection operation on the page template, wherein the page editing file includes the editing control for receiving the user editing operation.
[0086] According to one or more embodiments of the present disclosure, Example 12 provides the device of Example 11, which also includes an editing module for obtaining a user's modification operation on a page component in a preview page; modifying the description content of the page component in the page file so that the page component in the page file is consistent with the user's modification operation; modifying the description content of the edit control in the page editing file so that the position of the edit control is consistent with the position of the page component; exporting the current page file and page editing file, and storing them accordingly as page templates.
[0087] According to one or more embodiments of the present disclosure, Example 13 provides the device of Example 12, wherein the editing module is further used to obtain the user's adding or deleting operation on the page component in the preview page; add or delete the page component in the page file, and add or delete the editing control in the page editing file; when the adding operation on the page component is obtained, the component name corresponding to the newly added editing control and the component identifier of the newly added page component are stored as a preset corresponding relationship.
[0088] According to one or more embodiments of the present disclosure, Example 14 provides the device of Example 12, wherein the editing module is further used to randomly generate a string, and update the component identifier in the current page file according to the randomly generated string; based on the updated component identifier, update the correspondence between the preset component name and the component identifier; export the updated file page and the current page editing file, and store them accordingly as page templates.
[0089] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
[0090] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0091] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A page generation method, characterized in that: The method comprises: In response to the user's editing operation, determining the component name of the page component edited by the user and the component content input by the user for the page component; Determine the component identifier of the page component in the page file according to the preset correspondence between the component name and the component identifier, wherein the component identifier is a character without textual semantics; Modifying the page file based on the component identifier and the component content; Generate a page based on the page file; The method further comprises: Based on the user's selection operation on the page template, determining a page file and a page editing file corresponding to the page template, wherein the page editing file includes an editing control for receiving the user's editing operation; After modifying the page file, a character string is randomly generated, and the component identifier in the current page file is updated according to the randomly generated character string. Based on the updated component identifier, the correspondence between the preset component name and the component identifier is updated, and the updated file page and the current page editing file are exported and stored accordingly as page templates, wherein the correspondence between the component name and the component identifier in each page template is different, and the component identifier used to describe the page component of the same project in each newly generated page file is different.
2. The method according to claim 1, characterized in that The method further comprises: Generate a preview page based on the original page file; After modifying the page file based on the component identifier and the component content, the method further includes: Based on the modified page file, the preview page is updated.
3. The method according to claim 2, characterized in that The preview page includes the editing control for receiving the user editing operation; The step of determining, in response to the user's editing operation, the component name of the page component edited by the user and the component content input by the user for the page component comprises: In response to a user clicking operation on an edit control in the preview page, determining a component name corresponding to the edit control; In response to a user input operation on the editing control, component content input by the user is determined.
4. The method according to claim 3, characterized in that The method further comprises: Get the user's modification operation on the page components in the preview page; Modify the description content of the page component in the page file so that the page component in the page file is consistent with the modification operation of the user; In the case where the modification operation is a move operation, the method further includes: The description content of the editing control in the page editing file is modified so that the position of the editing control is consistent with the position of the page component.
5. The method according to claim 4, characterized in that The obtaining of the user's modification operation on the page component in the preview page also includes: Get the user's adding or deleting operations on the page components in the preview page; The method further comprises: Add or delete page components in the page file, and add or delete edit controls in the page edit file; When an adding operation on a page component is obtained, the component name corresponding to the newly added edit control and the component identifier of the newly added page component are stored as a preset corresponding relationship.
6. A page generation device, characterized in that: The device comprises: An acquisition module, configured to determine, in response to a user's editing operation, a component name of a page component edited by the user and component content input by the user for the page component; A determination module, used to determine the component identifier of the page component in the page file according to a preset correspondence between the component name and the component identifier, wherein the component identifier is a character without textual semantics; A modification module, used for modifying the page file based on the component identifier and the component content; A generation module, used for generating a page based on the page file; A selection module, configured to determine a page file and a page editing file corresponding to the page template based on a user's selection operation on the page template, wherein the page editing file includes an editing control for receiving a user's editing operation; An editing module is used to randomly generate a character string after modifying the page file, and update the component identifier in the current page file according to the randomly generated character string, update the correspondence between the preset component name and the component identifier based on the updated component identifier, export the updated file page and the current page editing file, and store them as page templates, wherein the correspondence between the component name and the component identifier in each page template is different, and the component identifier used to describe the page component of the same project in each newly generated page file is different.
7. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 5 are implemented.
8. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and apparatus for virtualizing window information
CN101065727A
Page editing method and device
CN106201489A
Network page making method and device
CN108376153A
Page generation method and device and storage medium
CN111488546A