CN113515292B - Framework transformation method, device and equipment for client application program - Google Patents

Framework transformation method, device and equipment for client application program Download PDF

Info

Publication number
CN113515292B
CN113515292B CN202110453281.6A CN202110453281A CN113515292B CN 113515292 B CN113515292 B CN 113515292B CN 202110453281 A CN202110453281 A CN 202110453281A CN 113515292 B CN113515292 B CN 113515292B
Authority
CN
China
Prior art keywords
application program
converted
architecture
client
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110453281.6A
Other languages
Chinese (zh)
Other versions
CN113515292A (en
Inventor
崔文强
陈郑渊明
童家庆
沈树茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110453281.6A priority Critical patent/CN113515292B/en
Publication of CN113515292A publication Critical patent/CN113515292A/en
Application granted granted Critical
Publication of CN113515292B publication Critical patent/CN113515292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the specification relates to the financial field or other fields, and discloses a method, a device and equipment for transforming the architecture of a client application program, which can be applied to the financial field in the application program of a client, such as: a front-end architecture transformation scenario for a finance-related application, the method comprising: firstly, browser kernels and WEB page codes of appointed versions are packaged into a client installation program through an electron, then, an application program of an old architecture is used for calling the application program of a new architecture, and functions based on a new front-end and rear-end separation architecture are written in the application program packaged based on the electron, so that the application program of the new architecture is obtained. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the noninductive transformation of the front-end architecture of the PC software. Moreover, the browser kernel is of a specified version, so that the problem of incompatibility of the browser is avoided.

Description

Framework transformation method, device and equipment for client application program
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for transforming a framework of a client application program.
Background
Most of the applications in the general clients use a C/S (Client/Server) architecture, and with the development of the computer internet, a B/S (Browser/Server) architecture appears, which is a change or improved architecture of the C/S architecture with the rise of the internet technology. Architecture transformation may be required for C/S developed applications, such as: the scheme of operating the webpage by the DELPHI native method is that a WebBrowser control is adopted, the kernel of the control is an IE7 browser, and the method is equivalent to opening a corresponding webpage in the IE browser, so that transformation of an application program architecture is realized. Delphi is a well-known rapid application development tool (Rapid Application Development, abbreviated as RAD) under a Windows platform. However, the kernel version of WebBrowser control invocation relies on the version of the client-installed IE browser, which is not friendly to the new HTML5 standard support, and the latest version of the current mainstream framework does not adapt to the IE browser, such as the front-end framework VUE (a set of progressive frameworks used to build the user interface).
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
An objective of the embodiments of the present disclosure is to provide a method, an apparatus, and a device for transforming a framework of a client application, so as to implement a non-inductive transformation of the client application.
In one aspect, embodiments of the present disclosure provide a method for transforming an architecture of a client application, the method including:
selecting a browser kernel of a designated version and a function page code of an application program to be converted;
using an electron to package the browser kernel of the appointed version and the functional page codes to be converted into an application program installation package, and installing the application program installation package in a client to obtain a new architecture application program;
and sending the installation path of the application program installation package to the application program to be converted, so that the application program to be converted calls the new architecture application program to complete the corresponding function through the installation path.
Further, the method further comprises:
and unloading the application program to be converted in the client after all the functional modules of the application program to be converted complete the framework conversion.
Further, the method further comprises:
and after the new architecture application program is installed and obtained, deleting the function module corresponding to the function page code in the application program to be converted.
Further, the selecting a browser kernel of a specified version includes:
and selecting the latest version of the chromoum kernel as the browser kernel of the appointed version.
Further, the application installation package supports MAC, windows, linux platform.
In another aspect, the present specification provides an architecture transformation apparatus for a client application, the apparatus comprising:
the device comprises:
the function page selection module is used for selecting a browser kernel of a designated version and function page codes of an application program to be converted;
the new architecture packaging module is used for packaging the browser kernel of the appointed version and the functional page codes to be converted into an application program installation package by using an electron, and installing the application program installation package in the client to obtain a new architecture application program;
and the new architecture application use module is used for sending the installation path of the application program installation package to the application program to be converted so that the application program to be converted calls the new architecture application program to complete the corresponding function through the installation path.
Further, the apparatus further comprises an application deletion module for:
and unloading the application program to be converted in the client after all the functional modules of the application program to be converted complete the framework conversion.
Further, the apparatus further comprises an application deletion module for:
and unloading the application program to be converted in the client after all the functional modules of the application program to be converted complete the framework conversion.
In yet another aspect, embodiments of the present disclosure provide a device for transforming a framework of a client application, where the device is applied to a server, and the device includes at least one processor and a memory for storing instructions executable by the processor, and the instructions when executed by the processor implement a method for transforming a framework including the client application.
According to the framework transformation method, device and equipment for the client application program, provided by the specification, browser kernels and WEB page codes of specified versions are packaged into a client installation program through an electron, then the application program is called through Delphi items, and functions based on a new front-end and rear-end separation framework are written in the application program packaged based on the electron, so that the application program of a new framework is obtained. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the noninductive transformation of the front-end architecture of the PC software. Moreover, the browser kernel is of a specified version, so that the problem of incompatibility of the browser is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of a method for architecture transformation of a client application provided in an embodiment of the present disclosure;
FIG. 2 is a schematic flow diagram of a framework transformation of a client application in one scenario example of the present description;
FIG. 3 is a schematic diagram of a configuration transformation device of a client application according to one embodiment of the present disclosure;
fig. 4 is a block diagram of a hardware structure of an architecture transformation server of a client application in one embodiment of the present specification.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The method, device and equipment for transforming the architecture of the client application program provided in the embodiments of the present disclosure are mainly used for transforming the architecture of the front end of the software of a PC (personal computer ), where the client may be mainly a PC, and of course, according to the actual use needs, the client may also be other terminals capable of installing the application program, such as: smart phones, tablet computers, smart wearable devices, etc., the embodiments of the present disclosure are not limited specifically. An application is primarily understood as a computer program capable of performing one or more specific tasks, which runs in a user mode, can interact with a user, and has a visual user interface. The architecture transformation can be mainly understood as transforming from a C/S architecture to a B/S architecture, wherein the C/S architecture, namely a Client/Server architecture, is a well-known software system architecture, and the communication overhead of the system is reduced by reasonably distributing tasks to a Client end and a Server end, so that the Client needs to be installed for management operation. The B/S architecture, namely Browser and Server architecture modes, is a change or improved architecture of the C/S architecture with the rise of Internet technology, under which a user work interface is realized through a Browser, little part of transaction logic is realized at a front end (Browser), but main transaction logic is realized at a Server end (Server), and a so-called three-layer 3-tier structure is formed. The B/S architecture is a network architecture mode after the WEB is raised, and the WEB browser is the most main application software of the client. The mode unifies the client, concentrates the core part of system function realization on the server, and simplifies the development, maintenance and use of the system. The client only needs to install a Browser (e.g., netscape Navigator or Internet Explorer), and the Server installs Oracle, sybase, informix or SQL Server database. The browser performs data interaction with the database through the Web Server. Therefore, the load of the client computer is greatly simplified, the cost and the workload of system maintenance and upgrading are reduced, and the overall cost of a user is reduced.
In some scenarios, B/S architecture has great advantages, so applications of C/S architecture need to be converted into B/S architecture. Generally, after the application architecture is transformed, there may be a problem of browser compatibility, which results in that the functions of the application cannot be used normally. According to the embodiment of the specification, the kernel and the function page code of the appointed version are packaged into the application program installation package by using the electron, the old application program can directly use the business function of the new application program by calling the new application program, the new application program uses the electron to package, the architecture of the new application program is a B/S architecture, the architecture transformation of the application program is completed, and the problem of browser compatibility does not exist.
It should be noted that the method, apparatus and device for transforming the architecture of the client application program provided in the embodiments of the present disclosure may be applied to applications in the financial field where the client application program is performed, for example: the front-end architecture transformation scenario of the finance-related application may also be applied to any field other than the finance field, such as: the application fields of the method, the device and the equipment for transforming the architecture of the client application program provided in the embodiments of the present disclosure are not particularly limited.
Fig. 1 is a flowchart of an embodiment of a method for transforming a framework of a client application according to an embodiment of the present disclosure. Although the present description provides methods and apparatus structures as shown in the examples or figures described below, more or fewer steps or modular units may be included in the methods or apparatus, either conventionally or without inventive effort. In the steps or the structures where there is no necessary causal relationship logically, the execution order of the steps or the module structure of the apparatus is not limited to the execution order or the module structure shown in the embodiments or the drawings of the present specification. In actual implementation, the apparatus, the server, or the end product of the method or the module structure of (a) may execute sequentially or in parallel (e.g., in a parallel processor or a multi-threaded processing environment, or even in an implementation environment including distributed processing, server clusters) according to an embodiment or a method or a module structure shown in the drawings.
In a specific embodiment, as shown in fig. 1, in one embodiment of a method for transforming a framework of a client application provided in the present disclosure, the method may be applied to a device such as a computer, a smart phone, a tablet computer, a server, and the like, where the method may include the following steps:
step 102, selecting a browser kernel with a specified version and functional page codes of an application program to be converted.
In a particular implementation, the kernel is the most basic part of the operating system, which is a piece of software that provides many applications with secure access to computer hardware, where such access is limited, and determines how long a program will operate on a piece of hardware. In the embodiment of the specification, a user can select a browser kernel of a specified version according to actual use requirements, and can select a corresponding browser kernel according to a browser used in a user client, wherein the browser kernel is mainly used for ensuring that a functional page of an application program can be normally opened, and generally, a browser kernel with the latest version or stable performance can be selected as the browser kernel of the specified version.
In some embodiments of the present description, the most recent version of the chromium kernel may be selected as the browser kernel for the specified version. Wherein, chromium is a web browser. The programming language is developed, so that the new version of the browser kernel is more powerful, but a developer does not know what the browser kernel is used by the user and what the version is, so that a great deal of time and effort are required to do browser compatible work, and functional pages can be ensured to work normally in different browsers. According to the embodiment of the specification, the latest stable version of the chromium kernel is packaged to the client, the version of the browser kernel used by the client is not required to be determined one by one, and the problem that the functional page of the application program cannot be opened normally due to incompatibility of the browser kernel versions can be rapidly avoided.
After the browser kernel is determined, the function page code of the application program to be converted can be determined, wherein the application program to be converted can be understood as the application program needing to be subjected to architecture conversion, specifically can be determined based on actual use requirements, the function page code can be understood as the webpage code corresponding to the function module of the application program needing to be converted, and the webpage code can comprise html, css and js, namely the code of the function page of the system.
In some embodiments of the present disclosure, the selecting the function page code of the application to be converted includes: and developing the function page of the application program to be converted by using an H5+CSS3+Vue+elementUI technology to obtain the function page code.
In a specific implementation process, the H5+CSS3+Vue+elementUI WEB page technology can be selected to develop a functional page of the application program to be converted, wherein H5 is HTML5, which can be understood as a core language of the world Wide Web, and a fifth major modification of the application Hypertext markup language (HTML) in a standard universal markup language, which can be understood as a standard. CSS3 is an upgraded version of CSS (Cascading Style Sheets, cascading style sheet) technology, which is a computer language used to represent file styles such as HTML (an application of standard universal markup language) or XML (a subset of standard universal markup language), and can not only statically modify a web page, but also dynamically format elements of the web page in coordination with various scripting languages. Vue is a progressive framework for constructing a user interface, is one of three front end frameworks, and elementUI is a UI (User Interface Design, interface design) framework, and has many basic components, so that development efficiency can be improved. Through superposition of H5, CSS3, vue and elementUI, a required WEB page, namely a functional page, can be rapidly and accurately designed.
104, using electronics to package the browser kernel of the appointed version and the function page code to be converted into an application program installation package, and installing the application program installation package in the client to obtain a new architecture application program
In a specific implementation process, after selecting a browser kernel of a designated version and designing a function page code needing to be subjected to architecture transformation, an electron can be used for packing the selected browser kernel and the designed function page code to obtain an application program installation package, and then the packed application program installation package is installed in a client side to obtain a new architecture application program which can be understood as an application program of a B/S architecture. The Electron can be understood as a cross-platform desktop application development tool, which is a cross-platform desktop application development tool published by Github, supports Web technology to develop desktop applications, is developed based on C++, and has a GUI core from Chrome and a JavaScript engine using v8. The application program installation package based on the electronics package is the application program of the B/S architecture. The JS is used as a front-end scripting language, and when a browser (BS architecture) runs, the permissions of a client (such as a PC) system are basically absent, such as operations of acquiring a system catalog, creating the catalog, setting catalog permissions, reading files, modifying files, connecting databases and the like, and the permission browser is absent, but the permission nodejs are all provided, and the application program developed for nodejs based on an application program installation package obtained based on electronics packaging is more powerful than the application program of the B/S architecture.
In the embodiment of the present specification, the application installation package supports a MAC, windows, linux platform. Namely, the application program installation package obtained by the electronics package in the embodiment of the specification can support a full platform (MAC, windows, linux), and has wide applicability. Among them, MAC can be understood as a personal consumer computer developed starting with "Macintosh", windows can be understood as a set of operating systems developed by microsoft, and Linux can be understood as a cloning system developed based on UNIX operating system.
And step 106, sending the installation path of the application program installation package to the application program to be converted, so that the application program to be converted calls the new architecture application program to complete the corresponding function through the installation path.
In a specific implementation process, after the application program with the new architecture is obtained, an installation path of an application program installation package corresponding to the application program with the new architecture can be sent to the application program to be converted, namely, the application program with the old architecture, and the application program to be converted can call the corresponding application program with the new architecture through the installation path, so that the corresponding function is completed by using the application program with the new architecture, and the noninductive conversion of the front-end architecture of the application program is realized.
In addition, in the embodiment of the specification, the function modules of the application program can be divided into a plurality of times for architecture transformation, all the function modules of the application program do not need to be transformed once, and each time, the function page codes needing to be transformed are packaged together with the browser kernel, so that the architecture transformation of the function modules corresponding to the function pages can be realized. Each function page code and the browser kernel can be packaged to obtain an installation program package, the installation program package can be an application program sub-application program of the new architecture application program and can be an executable program, and the application program of the old architecture can call the corresponding executable program based on the installation path corresponding to each sub-application program and can complete the corresponding function.
Of course, the user can also directly and independently use the new architecture application program, the new architecture application program can also be correspondingly provided with a shortcut entry icon, the user can enter the new architecture application program through clicking and other operations, and then the corresponding function is used based on the requirement.
In some embodiments of the present description, the method further comprises:
and unloading the application program to be converted in the client after all the functional modules of the application program to be converted complete the framework conversion.
In a specific implementation process, after all functional modules of the application program to be converted complete the architecture conversion, the application program to be converted, namely, the application program of the old architecture, can be unloaded in the client, namely, after all the architecture conversion of the application program is completed, the application program under the old architecture can be deleted, and the memory space is saved. Of course, if the user wants to have two application programs with two architectures, the user can also keep the application programs, so that the user can have two application programs with two architectures at the same time in the client, and the user can use the application programs according to the needs.
In some embodiments of the present description, the method further comprises:
and after the new architecture application program is installed and obtained, deleting the function module corresponding to the function page code in the application program to be converted.
In a specific implementation process, in the embodiment of the present disclosure, a function module and a function module of an application program to be converted may be converted, and after the conversion of the architecture is completed by the function module, the function module in the old architecture application program may be deleted, so that the memory space is saved on the premise of ensuring that the function of the application program can be normally used. Of course, if the user wishes to have two architected applications, then this may be retained.
According to the architecture transformation method of the client application program, firstly, a designated version of the chromoum kernel and the WEB page code are packaged into a client installation program through an electron, then the application program is called through Delphi items, namely an application program of an old architecture (an application program of a C/S architecture), and functions based on a new front-end and rear-end separation architecture are written in the application program packaged based on the electron, so that the application program of a new architecture is obtained. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the noninductive transformation of the front-end architecture of the PC software. Moreover, the browser kernel is of a specified version, so that the problem of incompatibility of the browser is avoided.
Fig. 2 is a schematic flow chart of a transformation principle of a client application program in a scenario example of the present specification, and specifically describes a procedure of a transformation method of a client application program in an embodiment of the present specification with reference to fig. 2, as shown in fig. 2, first, WEB page technology selection is performed, and as described in the foregoing embodiment, in the embodiment of the present specification, h5+css3+vue+elementui may be selected to quickly implement our front-end function, where Vue is one of front-end 3 big frames, elementUI is a UI frame, and many basic components are provided, so that our development efficiency can be accelerated. Based on the selected WEB page technology type, a proper kernel is selected, and the most recent version of stable Chromium kernel is suggested to be selected. Selected kernels and web pages are packaged into installation packages based on an electron, which can support a full platform, noting that the installed installation path suggests dead fixes, which path is to be passed to the old architecture application. The old Delphi application, namely the application program of the old architecture, calls the corresponding executable file under the path through the transferred installation path, and realizes the call.
According to the embodiment of the specification, seamless switching of the new and old architecture client application programs can be realized, and after all modules are reconstructed, the old application programs can be directly unloaded. The kernel of the new client application program can be manually designated during packaging, so that the problem of browser compatibility is solved, and the consistency of the performance is ensured. The electronics-based packaged client makes it more powerful in system privileges than a normal browser-based BS application through nodejs. The novel technology of H5 and the like and all main stream frameworks including but not limited to Vue and practice are comprehensively supported, so that the development efficiency and the development cost are lower. The CS application of other languages and architectures can also use the thought of the invention in the process of transforming the architecture, and has universality.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts of each embodiment are referred to each other, and each embodiment mainly describes differences from other embodiments. Reference is made to the description of parts of the method embodiments where relevant.
Based on the above method for transforming the architecture of the client application program, one or more embodiments of the present disclosure further provide an apparatus for transforming the architecture of the client application program. The apparatus may include a system (including a distributed system), software (applications), modules, components, servers, clients, etc. that employ the methodologies of the embodiments of the present specification, in combination with the necessary apparatus to implement the hardware. Based on the same innovative concepts, embodiments of the present description provide for devices in one or more embodiments, such as the following embodiments. Because the implementation schemes and methods of the device for solving the problems are similar, the implementation of the device in the embodiments of the present disclosure may refer to the implementation of the foregoing method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the systems, apparatus 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.
Fig. 3 is a schematic structural diagram of an architecture transformation device of a client application in one embodiment of the present disclosure, as shown in fig. 3, where the architecture transformation device of a client application provided in some embodiments of the present disclosure may specifically include:
a function page selection module 31, configured to select a browser kernel of a specified version and a function page code of an application program to be converted;
the new architecture packaging module 32 is configured to package the browser kernel of the specified version and the functional page code to be converted into an application program installation package by using an electron, and install the application program installation package in the client to obtain a new architecture application program;
the new architecture application usage module 33 is configured to send an installation path of the application installation package to the application to be converted, so that the application to be converted invokes the new architecture application to complete a corresponding function through the installation path.
According to the architecture transformation device of the client application program, provided by the embodiment of the specification, a chromic kernel and a WEB page code of a designated version are packaged into a client installation program through an electron, then the application program is called through a Delphi item, and the function based on a new front-end and rear-end separation architecture is written in the client packaged based on the electron. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the noninductive transformation of the front-end architecture of the PC software. Moreover, the browser kernel is of a specified version, so that the problem of incompatibility of the browser is avoided.
In some embodiments of the present disclosure, the apparatus further includes an application deletion module configured to:
and unloading the application program to be converted in the client after all the functional modules of the application program to be converted complete the framework conversion.
After the embodiment of the specification completes the transformation of all the architectures of the application program, the application program under the old architecture can be deleted, and the memory space is saved.
In some embodiments of the present disclosure, the function page selection module is specifically configured to:
and selecting the latest version of the chromoum kernel as the browser kernel of the appointed version.
According to the embodiment of the specification, the latest stable version of the chromium kernel is packaged to the client, the version of the browser kernel used by the client is not required to be determined one by one, and the problem that the functional page of the application program cannot be opened normally due to incompatibility of the browser kernel versions can be rapidly avoided.
It should be noted that the above-mentioned device may further include other embodiments according to the description of the corresponding method embodiment. Specific implementation manner may refer to the description of the corresponding method embodiments, which is not described herein in detail.
The embodiments of the present disclosure also provide a device for transforming a framework of a client application, where the device includes at least one processor and a memory for storing instructions executable by the processor, and the instructions when executed by the processor implement a method for transforming a framework of a client application including the foregoing embodiments, for example:
selecting a browser kernel of a designated version and a function page code of an application program to be converted;
using an electron to package the browser kernel of the appointed version and the functional page codes to be converted into an application program installation package, and installing the application program installation package in a client to obtain a new architecture application program;
and sending the installation path of the application program installation package to the application program to be converted, so that the application program to be converted calls the new architecture application program to complete the corresponding function through the installation path.
It should be noted that the above description of the apparatus according to the method embodiment may also include other implementations. Specific implementation may refer to descriptions of related method embodiments, which are not described herein in detail.
The method or apparatus of the above embodiments provided in the present specification may implement service logic by a computer program and be recorded on a storage medium, and the storage medium may be read and executed by a computer to implement the effects of the schemes described in the embodiments of the present specification.
The method embodiments provided in the embodiments of the present specification may be performed in a mobile terminal, a computer terminal, a server, or similar computing device. Taking the example of running on a server, fig. 4 is a block diagram of a hardware structure of a client application architecture transformation server in one embodiment of the present disclosure, and the computer terminal may be the client application architecture transformation server or the client application architecture transformation processing device in the above embodiment. The server 10 as shown in fig. 4 may include one or more (only one is shown in the figure) processors 100 (the processor 100 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA), a nonvolatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 4 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, server 10 may also include more or fewer components than shown in FIG. 4, for example, may also include other processing hardware such as a database or multi-level cache, a GPU, or have a different configuration than that shown in FIG. 4.
The nonvolatile memory 200 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the driving data processing method in the embodiment of the present disclosure, and the processor 100 executes the software programs and modules stored in the nonvolatile memory 200, thereby executing various functional applications and resource data updates. The non-volatile memory 200 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the non-volatile memory 200 may further include memory located remotely from the processor 100, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, office and networks, mobile communication networks, and combinations thereof.
The transmission module 300 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission module 300 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The method or apparatus for transforming the architecture of the client application provided in the embodiments of the present disclosure may be implemented in a computer by executing corresponding program instructions by a processor, for example, implemented on a PC side using the c++ language of a windows operating system, implemented by a linux system, or implemented on an intelligent terminal using, for example, android, iOS system programming languages, and implemented based on processing logic of a quantum computer.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment is mainly described in a different manner from other embodiments. In particular, for a hardware + program class embodiment, the description is relatively simple as it is substantially similar to the method embodiment, and reference is made to the partial description of the method embodiment where relevant.
Although one or more embodiments of the present description provide method operational steps as embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. In actual implementation of the apparatus or the terminal product, the methods illustrated in the embodiments or the drawings may be performed sequentially or in parallel (e.g., in a parallel processor or a multi-threaded processing environment, or even in a distributed resource data update environment). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises an element. The terms first, second, etc. are used to denote a name, but not any particular order.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when one or more of the present description is implemented, the functions of each module may be implemented in the same piece or pieces of software and/or hardware, or a module that implements the same function may be implemented by a plurality of sub-modules or a combination of sub-units, or the like. The above-described apparatus embodiments are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment is mainly described in a different manner from other embodiments. In particular, for system embodiments, the description is relatively simple as it is substantially similar to method embodiments, and reference is made to the section of the method embodiments where relevant. In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present specification. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The foregoing is merely an example of one or more embodiments of the present specification and is not intended to limit the one or more embodiments of the present specification. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of the present specification, should be included in the scope of the claims.

Claims (9)

1. A method for transforming a framework of a client application, the method comprising:
selecting a browser kernel of a designated version and a function page code of an application program to be converted; wherein, the selecting the function page code of the application program to be converted comprises: developing a function page of the application program to be converted by using an H5+CSS3+Vue+elementUI technology to obtain a function page code;
using an electron to package the browser kernel of the appointed version and the functional page codes to be converted into an application program installation package, and installing the application program installation package in a client to obtain a new architecture application program;
and sending the installation path of the application program installation package to the application program to be converted, so that the application program to be converted calls the new architecture application program to complete the corresponding function through the installation path.
2. The method of claim 1, wherein the method further comprises:
and unloading the application program to be converted in the client after all the functional modules of the application program to be converted complete the framework conversion.
3. The method of claim 1, wherein the method further comprises:
and after the new architecture application program is installed and obtained, deleting the function module corresponding to the function page code in the application program to be converted.
4. The method of claim 1, wherein selecting the browser kernel of the specified version comprises:
and selecting the latest version of the chromoum kernel as the browser kernel of the appointed version.
5. The method of claim 1, wherein the application installation package supports a MAC, windows, linux platform.
6. An architecture transformation apparatus for a client application, the apparatus comprising:
the function page selection module is used for selecting a browser kernel of a designated version and function page codes of an application program to be converted; the selecting the function page code of the application program to be converted comprises the following steps: developing a function page of the application program to be converted by using an H5+CSS3+Vue+elementUI technology to obtain a function page code;
the new architecture packaging module is used for packaging the browser kernel of the appointed version and the functional page codes to be converted into an application program installation package by using an electron, and installing the application program installation package in the client to obtain a new architecture application program;
and the new architecture application use module is used for sending the installation path of the application program installation package to the application program to be converted so that the application program to be converted calls the new architecture application program to complete the corresponding function through the installation path.
7. The apparatus of claim 6, wherein the apparatus further comprises an application deletion module to:
and unloading the application program to be converted in the client after all the functional modules of the application program to be converted complete the framework conversion.
8. The apparatus of claim 6, wherein the function page selection module is specifically configured to:
and selecting the latest version of the chromoum kernel as the browser kernel of the appointed version.
9. An architecture transformation device for a client application, comprising: at least one processor and a memory for storing processor executable instructions which when executed by the processor perform steps comprising the method of any of the preceding claims 1-5.
CN202110453281.6A 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program Active CN113515292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110453281.6A CN113515292B (en) 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110453281.6A CN113515292B (en) 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program

Publications (2)

Publication Number Publication Date
CN113515292A CN113515292A (en) 2021-10-19
CN113515292B true CN113515292B (en) 2024-04-05

Family

ID=78063511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110453281.6A Active CN113515292B (en) 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program

Country Status (1)

Country Link
CN (1) CN113515292B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838556A (en) * 2012-11-23 2014-06-04 苏州精易会信息技术有限公司 Method for achieving design of client program
CN107122187A (en) * 2017-04-26 2017-09-01 四川中电启明星信息技术有限公司 A kind of operation system OS accesses design method
CN107256161A (en) * 2017-06-13 2017-10-17 广发证券股份有限公司 Client side upgrading method based on electron technologies
CN110704136A (en) * 2019-09-27 2020-01-17 北京百度网讯科技有限公司 Rendering method of small program assembly, client, electronic device and storage medium
CN111831368A (en) * 2020-05-25 2020-10-27 武汉烽火众智数字技术有限责任公司 Method, system and storage medium for interaction between browser application and desktop application
CN112118285A (en) * 2020-07-31 2020-12-22 山东鲁能软件技术有限公司 Data transmission method and system suitable for client full-version browser

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838556A (en) * 2012-11-23 2014-06-04 苏州精易会信息技术有限公司 Method for achieving design of client program
CN107122187A (en) * 2017-04-26 2017-09-01 四川中电启明星信息技术有限公司 A kind of operation system OS accesses design method
CN107256161A (en) * 2017-06-13 2017-10-17 广发证券股份有限公司 Client side upgrading method based on electron technologies
CN110704136A (en) * 2019-09-27 2020-01-17 北京百度网讯科技有限公司 Rendering method of small program assembly, client, electronic device and storage medium
CN111831368A (en) * 2020-05-25 2020-10-27 武汉烽火众智数字技术有限责任公司 Method, system and storage medium for interaction between browser application and desktop application
CN112118285A (en) * 2020-07-31 2020-12-22 山东鲁能软件技术有限公司 Data transmission method and system suitable for client full-version browser

Also Published As

Publication number Publication date
CN113515292A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
US10015264B2 (en) Generalized proxy architecture to provide remote access to an application framework
US7836439B2 (en) System and method for extending a component-based application platform with custom services
US8181151B2 (en) Modeling and managing heterogeneous applications
US7814404B2 (en) System and method for applying workflow of generic services to component based applications for devices
EP1818820A1 (en) System and method for installing custom services on a component-based application platform
US20180173586A1 (en) Method for fault handling in a distributed it environment
US10802954B2 (en) Automated-application-release-management subsystem that provides efficient code-change check-in
US11003466B2 (en) Information-technology workflows using executable tiles with plural user interfaces
US20210182055A1 (en) Automatic source code refactoring
CN107403110A (en) HDFS data desensitization method and device
EP4121848A1 (en) Web-based robotic process automation designer systems and automations for virtual machines, sessions, and containers
CA2538561A1 (en) System and method for conversion of web services applications into component based applications for devices
US20040172407A1 (en) Method and system of processing an encapsulated file at a management computer
CN110795139A (en) Client batch packaging method and device, computer equipment and storage medium
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN113515292B (en) Framework transformation method, device and equipment for client application program
CN115857898B (en) Application system construction and operation method and device
US20200293383A1 (en) System and Method for Developing Modularized Application
CN110825622A (en) Software testing method, device, equipment and computer readable medium
US10732947B2 (en) Information-technology workflow using tiles that declaratively specify datatypes
AU2019100212A4 (en) System and method for developing modularized application
CN108804236B (en) AIDL file sharing method and system
US11537411B1 (en) Inter-environment communication with environment isolation
Frías Gómez Arquitectura Limpia en. Net Core
CA2538531C (en) System and method for applying workflow of generic services to component based applications for devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant