zhzhenqin 1 rok temu
commit
600b1b653d

+ 1 - 0
404.md

@@ -0,0 +1 @@
+# 该页面不存在或已被删除

+ 1 - 0
CNAME

@@ -0,0 +1 @@
+clklog.com

+ 661 - 0
LICENSE

@@ -0,0 +1,661 @@
+                    GNU AFFERO GENERAL PUBLIC LICENSE
+                       Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+  A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate.  Many developers of free software are heartened and
+encouraged by the resulting cooperation.  However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+  The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community.  It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server.  Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+  An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals.  This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU Affero General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Remote Network Interaction; Use with the GNU General Public License.
+
+  Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software.  This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time.  Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU Affero General Public License as published
+    by the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU Affero General Public License for more details.
+
+    You should have received a copy of the GNU Affero General Public License
+    along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source.  For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code.  There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<https://www.gnu.org/licenses/>.

+ 0 - 0
README.md


+ 24 - 0
_coverpage.md

@@ -0,0 +1,24 @@
+<!-- _coverpage.md -->
+# <div class="logo"><img title="" src="assets/imgs/logo1.png" alt="" data-align="center" width="229"></div>
+>
+> ### 记录点击,洞悉用户
+>
+
+>
+>
+>
+> ## **轻量级的用户访问分析系统**
+
+- [快速上手](/introduce.md)
+- [快速上手](/introduce.md)
+
+<div class="features"><div class="feature"><h2>面向二次开发</h2> <p>社区版代码开源,提供开放API、脚本、文档和示例、社区和技术支持、易于二次开发和业务系统集成。</p></div><div class="feature"><h2>业务功能完善</h2> <p>覆盖用户需求和常见功能、即开即用。 采用轻量级架构,提供SaaS服务和私有化部署,支持商业化合作。</p></div></div>
+
+<!-- background image -->
+
+<!-- ![](_media/bg.png) -->
+
+<!-- background color -->
+<div class="copyright"> Copyright © 景行数科 . 2023 All rights reserved.</div>
+
+![color](#fff)

+ 1 - 0
_footer.md

@@ -0,0 +1 @@
+<div class="copyright">Copyright © 景行数科 . 2023 All rights reserved.</div>

+ 8 - 0
_navbar.md

@@ -0,0 +1,8 @@
+<!-- _navbar.md -->
+
+* [主页](/#/)
+* [演示环境](https://demo.clklog.com)
+* [API文档](https://demo.clklog.com/api/doc.html#/home)
+* 源码下载
+  * [<img src="assets/imgs/export.png" height="10"/> GitHub](https://github.com/clklog)
+  * [<img src="assets/imgs/export.png" height="10"/> Gitee](https://gitee.com/clklog)

+ 21 - 0
_sidebar.md

@@ -0,0 +1,21 @@
+<!-- _sidebar.md -->
+
+- 项目架构
+  - [项目介绍](/introduce.md)
+  - [视频架构](/video_arch_notes.md)
+  - [前后端架构](/project_arch_notes.md)
+  
+- 视频监控
+  - [版本说明](/changelog.md)
+  - [演示环境](https://demo.clklog.com)
+
+- 告警规则
+  - [版本说明](/changelog.md)
+
+- 一张图
+  - [版本说明](/changelog.md)
+
+- 安装和部署
+  - [环境配置](/quickstart/preparation.md)
+  - [应用部署](/quickstart/deployment.md)
+  - [常见问题](/quickstart/question.md)

+ 109 - 0
access_page_path_cleaning.md

@@ -0,0 +1,109 @@
+# 访问页面路径清理
+
+## 背景知识
+
+当我们访问一个网站时,在任一页面上点击链接、按钮等会访问另一个页面,如此往复,形成访问链。
+
+每个页面有一个路径,路径分配到对应处理程序,即为路由。路由,最早出现在后端,因为早期的网页都是服务端渲染的。随着前端功能的进化,出现了前端路由。
+
+不论是后端路由还是前端路由,都应当有合理的组织逻辑。
+
+## 合理的路由
+
+现今主流,我们用`/`作为层次分级,每进一级代表更细粒度。
+
+以一个店铺网站为例:
+
+- `/` 最顶层,页面展示本店铺的品牌形象和各板块导航。
+- `/shop` 商品陈列模块,页面展示一些热卖商品、优惠推荐等。
+- `/shop/category/<category_id>` 商品分类模块,页面展示特定品类下的商品集。
+- `/shop/product/<product_id>` 商品详情模块,页面展示特定商品的细节信息。
+- `/order` 订单模块,页面展示待付款订单、待收货订单。
+- `/order/<order_id>` 订单详情模块,页面展示特定订单的细节信息。
+- `/cart` 购物车模块,页面展示添加在购物车中的商品清单,总价等。
+- `/account` 账户模块,页面展示账户信息,包括头像、昵称、积分等。
+- `/contact` 联系模块,页面展示如何与店铺取得联系的方法。
+
+### 前端hash模式路由
+
+对于前端路由,需要特别注意基于`hash`模式的情形。路径类似是这样的:
+
+- `https://exmaple.com/#/`
+- `https://exmaple.com/#/shop`
+- `https://exmaple.com/#/shop/category/<category_id>`
+- `https://exmaple.com/#/shop/product/<product_id>`
+- `https://exmaple.com/#/order`
+- `https://exmaple.com/#/order/<order_id>`
+- `https://exmaple.com/#/account`
+- `https://exmaple.com/#/contact`
+
+在实现良好的情况下,不会有问题,路径的层次关系是一致的。
+
+如果是带有搜索参数的情况,路径类似这样:
+
+- `https://exmaple.com/#/shop/search?keyword=abc&price_max=100`
+
+我们可以将`?keyword=abc&price_max=100`分离出去,留下的部分则是符合标准的路径。
+
+对于下面的情况,则需要避免:
+
+- `https://exmaple.com/?r=0.1234#/shop` 通过添加随机参数,强制从服务器获取未缓存页面资源。
+- `https://exmaple.com/?token=abcd#/shop` 将外部跳转过来的链接参数,持续保留。
+- `https://exmaple.com/?token=abcd#/shop?keyword=abc&price_max=100` 在技术层面,这是完全合法的,但一定会给人带来困惑。
+
+这样不仅不美观,而且导致页面路径无法有效归类。后续处理程序需要花费大量精力去补救。
+
+### 前端history模式路由
+
+另外一种前端路由则是基于`history`模式,从形成的路径来看,和后端路由基本是相同的。路径类似是这样的:
+
+- `https://exmaple.com/`
+- `https://exmaple.com/shop`
+- `https://exmaple.com/shop/category/<category_id>`
+- `https://exmaple.com/shop/product/<product_id>`
+- `https://exmaple.com/order`
+- `https://exmaple.com/order/<order_id>`
+- `https://exmaple.com/account`
+- `https://exmaple.com/contact`
+
+在实现良好的情况下,不会有问题,路径的层次关系是一致的。
+
+如果是带有搜索参数的情况,路径类似这样:
+
+- `https://exmaple.com/shop/search?keyword=abc&price_max=100`
+
+我们可以将`?keyword=abc&price_max=100`分离出去,留下的部分则是符合标准的路径。
+
+由于自身的技术上的限制,不会出现两处搜索参数。
+
+以上两种模式,可以看出前端history模式路由,路径更简洁,可能存在的混乱情况更少。技术上来说,前端hash模式路由通用性更广,而前端history模式路由需要服务器端支持。实践上来说,前端history模式路由几乎没有什么障碍,甚至对象存储之类的服务也可以支持。
+
+## 处理程序和补救措施
+
+对于采集到的日志,在入库之前通常需要做一些处理。
+
+这里仅限于访问日志范畴,进行讨论。
+
+### 路径信息提取
+
+URL通常由以下部分组成,通过正则表达式可以容易提取:
+
+`scheme://host:port/path?query`
+
+通常以`host:port`定义站点集,`/path`则是日志分析的路径,`query`则属于补充信息,可以采用KV模式拆分。
+
+对于前端hash模式路由,则稍有不同:
+
+`scheme://host:port/app#fragment?query`
+
+通常以`host:port/app`定义站点集(应用),`fragment`则是日志分析的路径,`query`则属于补充信息,可以采用KV模式拆分。
+
+对于`/shop/product/1`这样的路径,一般在日志处理阶段,转化为`/shop/product/<product_id>`。
+
+### 补救措施
+
+如果客户端实现不良,可以处理阶段补救,当然最好是在源头解决。
+
+- 可能会出现路径大小写不统一,可以在处理阶段统一为小写。
+- 可能会出现路径连续`//`,可以更新为`/`。
+- 可能会同时出现路径`/shop`、`/shop/`,一般意义上是相同页面,可以统一为`/shop`。

+ 228 - 0
assets/css/font.css

@@ -0,0 +1,228 @@
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Roboto Mono';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/robotomono/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_SeW4Ep0.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Roboto Mono';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/robotomono/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_QOW4Ep0.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek */
+@font-face {
+  font-family: 'Roboto Mono';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/robotomono/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_R-W4Ep0.woff2) format('woff2');
+  unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Roboto Mono';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/robotomono/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_S-W4Ep0.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
+    U+0329, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Roboto Mono';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/robotomono/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_SuW4Ep0.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,
+    U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Roboto Mono';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/robotomono/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_ROW4.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
+    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 300;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmhduz8A.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 300;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwkxduz8A.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 300;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmxduz8A.woff2) format('woff2');
+  unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 300;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlBduz8A.woff2) format('woff2');
+  unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 300;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmBduz8A.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
+    U+0329, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 300;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmRduz8A.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,
+    U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 300;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
+    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/sourcesanspro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lqDY.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/sourcesanspro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lqDY.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/sourcesanspro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lqDY.woff2) format('woff2');
+  unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/sourcesanspro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lqDY.woff2) format('woff2');
+  unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/sourcesanspro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lqDY.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
+    U+0329, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/sourcesanspro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lqDY.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,
+    U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fontface/sourcesanspro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
+    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 600;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmhduz8A.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 600;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwkxduz8A.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 600;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmxduz8A.woff2) format('woff2');
+  unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 600;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlBduz8A.woff2) format('woff2');
+  unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 600;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmBduz8A.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
+    U+0329, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 600;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmRduz8A.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,
+    U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Source Sans Pro';
+  font-style: normal;
+  font-weight: 600;
+  src: url(../fontface/sourcesanspro/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
+    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}

+ 1041 - 0
assets/css/style@1.1.2.css

@@ -0,0 +1,1041 @@
+@import url('font.css');
+* {
+  -webkit-font-smoothing: antialiased;
+  -webkit-overflow-scrolling: touch;
+  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+  -webkit-text-size-adjust: none;
+  -webkit-touch-callout: none;
+  box-sizing: border-box;
+}
+body:not(.ready) {
+  overflow: hidden;
+}
+body:not(.ready) [data-cloak],
+body:not(.ready) .app-nav,
+body:not(.ready) > nav {
+  display: none;
+}
+div#app {
+  font-size: 30px;
+  font-weight: lighter;
+  margin: 40vh auto;
+  text-align: center;
+}
+div#app:empty::before {
+  content: 'Loading...';
+}
+img.emoji {
+  height: 1.2em;
+  vertical-align: middle;
+}
+span.emoji {
+  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
+  font-size: 1.2em;
+  vertical-align: middle;
+}
+.progress {
+  background-color: #0074d9;
+  background-color: var(--theme-color, #0074d9);
+  height: 2px;
+  left: 0px;
+  position: fixed;
+  right: 0px;
+  top: 0px;
+  transition: width 0.2s, opacity 0.4s;
+  width: 0%;
+  z-index: 999999;
+}
+.search a:hover {
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+}
+.search .search-keyword {
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+  font-style: normal;
+  font-weight: bold;
+}
+html,
+body {
+  height: 100%;
+}
+body {
+  -moz-osx-font-smoothing: grayscale;
+  -webkit-font-smoothing: antialiased;
+  color: #34495e;
+  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
+  font-size: 15px;
+  letter-spacing: 0;
+  margin: 0;
+  overflow-x: hidden;
+}
+img {
+  max-width: 100%;
+}
+a[disabled] {
+  cursor: not-allowed;
+  opacity: 0.6;
+}
+kbd {
+  border: solid 1px #ccc;
+  border-radius: 3px;
+  display: inline-block;
+  font-size: 12px !important;
+  line-height: 12px;
+  margin-bottom: 3px;
+  padding: 3px 5px;
+  vertical-align: middle;
+}
+li input[type='checkbox'] {
+  margin: 0 0.2em 0.25em 0;
+  vertical-align: middle;
+}
+.app-nav {
+  padding: 10px 0px;
+  position: fixed;
+  right: 0;
+  text-align: right;
+  z-index: 10;
+  background: transparent;
+  height: 50px;
+  left: 284px;
+  top: 0;
+  right: 0;
+}
+.app-nav.no-badge {
+  margin: 0px 0px;
+}
+.app-nav p {
+  margin: 0;
+}
+.app-nav > a {
+  margin: 0 1rem;
+  padding: 5px 0;
+}
+.app-nav ul,
+.app-nav li {
+  display: inline-block;
+  list-style: none;
+  margin: 0;
+}
+.app-nav a {
+  color: inherit;
+  font-size: 16px;
+  text-decoration: none;
+  transition: color 0.3s;
+}
+.app-nav a:hover {
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+}
+.app-nav a.active {
+  border-bottom: 2px solid #0074d9;
+  border-bottom: 2px solid var(--theme-color, #0074d9);
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+}
+.app-nav li {
+  display: inline-block;
+  margin: 0 1rem;
+  padding: 5px 0;
+  position: relative;
+  cursor: pointer;
+}
+.app-nav li ul {
+  background-color: #fff;
+  border: 1px solid #ddd;
+  border-bottom-color: #ccc;
+  border-radius: 4px;
+  box-sizing: border-box;
+  display: none;
+  max-height: calc(100vh - 61px);
+  overflow-y: auto;
+  padding: 10px 0;
+  position: absolute;
+  right: -15px;
+  text-align: left;
+  top: 100%;
+  white-space: nowrap;
+}
+.app-nav li ul li {
+  display: block;
+  font-size: 14px;
+  line-height: 1rem;
+  margin: 0;
+  margin: 8px 14px;
+  white-space: nowrap;
+}
+.app-nav li ul a {
+  display: block;
+  font-size: inherit;
+  margin: 0;
+  padding: 0;
+}
+.app-nav li ul a.active {
+  border-bottom: 0;
+}
+.app-nav li:hover ul {
+  display: block;
+}
+.github-corner {
+  border-bottom: 0;
+  position: fixed;
+  right: 0;
+  text-decoration: none;
+  top: 0;
+  z-index: 100;
+}
+.github-corner:hover .octo-arm {
+  animation: octocat-wave 560ms ease-in-out;
+}
+.github-corner svg {
+  color: #fff;
+  fill: #0074d9;
+  fill: var(--theme-color, #0074d9);
+  height: 80px;
+  width: 80px;
+}
+main {
+  display: block;
+  position: relative;
+  width: 100vw;
+  height: 100%;
+  z-index: 0;
+}
+main.hidden {
+  display: none;
+}
+.anchor {
+  display: inline-block;
+  text-decoration: none;
+  transition: all 0.3s;
+}
+.anchor span {
+  color: #34495e;
+}
+.anchor:hover {
+  text-decoration: underline;
+}
+.sidebar {
+  border-right: 1px solid rgba(0, 0, 0, 0.07);
+  overflow-y: auto;
+  padding: 40px 0 0;
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  transition: transform 250ms ease-out;
+  width: 300px;
+  z-index: 20;
+}
+.sidebar > h1 {
+  margin: 0 auto 1rem 15px;
+  font-size: 1.5rem;
+  font-weight: 300;
+  text-align: left;
+}
+.sidebar > h1 a {
+  color: inherit;
+  text-decoration: none;
+}
+.sidebar > h1 .app-nav {
+  display: block;
+  position: static;
+}
+.sidebar > h1 img {
+  width: 150px;
+}
+.sidebar .sidebar-nav {
+  line-height: 2em;
+  padding-bottom: 40px;
+}
+.sidebar li.collapse .app-sub-sidebar {
+  display: none;
+}
+.sidebar ul {
+  margin: 0 0 0 15px;
+  padding: 0;
+}
+.sidebar li > p {
+  font-weight: 600;
+  margin: 0;
+}
+.sidebar ul,
+.sidebar ul li {
+  list-style: none;
+}
+.sidebar ul li a {
+  border-bottom: none;
+  display: block;
+}
+.sidebar ul li ul {
+  padding-left: 20px;
+}
+.sidebar::-webkit-scrollbar {
+  width: 4px;
+}
+.sidebar::-webkit-scrollbar-thumb {
+  background: transparent;
+  border-radius: 4px;
+}
+.sidebar:hover::-webkit-scrollbar-thumb {
+  background: rgba(136, 136, 136, 0.4);
+}
+.sidebar:hover::-webkit-scrollbar-track {
+  background: rgba(136, 136, 136, 0.1);
+}
+.sidebar-toggle {
+  background-color: transparent;
+  background-color: rgba(255, 255, 255, 0.8);
+  border: 0;
+  outline: none;
+  padding: 10px;
+  position: absolute;
+  bottom: 0;
+  left: 0;
+  text-align: center;
+  transition: opacity 0.3s;
+  width: 284px;
+  z-index: 30;
+  cursor: pointer;
+}
+.sidebar-toggle:hover .sidebar-toggle-button {
+  opacity: 0.4;
+}
+.sidebar-toggle span {
+  background-color: #0074d9;
+  background-color: var(--theme-color, #0074d9);
+  display: block;
+  margin-bottom: 4px;
+  width: 16px;
+  height: 2px;
+}
+body.sticky .sidebar,
+body.sticky .sidebar-toggle {
+  position: fixed;
+}
+.content {
+  padding-top: 60px;
+  position: absolute;
+  top: 0;
+  right: 0;
+  bottom: 0;
+  left: 300px;
+  transition: left 250ms ease;
+}
+.markdown-section {
+  margin: 0 auto;
+  max-width: 80%;
+  padding: 30px 15px 40px 15px;
+  position: relative;
+}
+.markdown-section > * {
+  box-sizing: border-box;
+  font-size: inherit;
+}
+.markdown-section > :first-child {
+  margin-top: 0 !important;
+}
+.markdown-section hr {
+  border: none;
+  border-bottom: 1px solid #eee;
+  margin: 2em 0;
+}
+.markdown-section iframe {
+  border: 1px solid #eee;
+  /* fix horizontal overflow on iOS Safari */
+  width: 1px;
+  min-width: 100%;
+}
+.markdown-section table {
+  border-collapse: collapse;
+  border-spacing: 0;
+  display: block;
+  margin-bottom: 1rem;
+  overflow: auto;
+  width: 100%;
+}
+.markdown-section th {
+  border: 1px solid #ddd;
+  font-weight: bold;
+  padding: 6px 13px;
+}
+.markdown-section td {
+  border: 1px solid #ddd;
+  padding: 6px 13px;
+}
+.markdown-section tr {
+  border-top: 1px solid #ccc;
+}
+.markdown-section tr:nth-child(2n) {
+  background-color: #f8f8f8;
+}
+.markdown-section p.tip {
+  background-color: #f8f8f8;
+  border-bottom-right-radius: 2px;
+  border-left: 4px solid #f66;
+  border-top-right-radius: 2px;
+  margin: 2em 0;
+  padding: 12px 24px 12px 30px;
+  position: relative;
+}
+.markdown-section p.tip:before {
+  background-color: #f66;
+  border-radius: 100%;
+  color: #fff;
+  content: '!';
+  font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
+  font-size: 14px;
+  font-weight: bold;
+  left: -12px;
+  line-height: 20px;
+  position: absolute;
+  height: 20px;
+  width: 20px;
+  text-align: center;
+  top: 14px;
+}
+.markdown-section p.tip code {
+  background-color: #efefef;
+}
+.markdown-section p.tip em {
+  color: #34495e;
+}
+.markdown-section p.warn {
+  background: rgba(66, 185, 131, 0.1);
+  border-radius: 2px;
+  padding: 1rem;
+}
+.markdown-section ul.task-list > li {
+  list-style-type: none;
+}
+body.close .sidebar {
+  transform: translateX(-300px);
+}
+body.close .sidebar-toggle {
+  width: auto;
+}
+body.close .content {
+  left: 0;
+}
+@media print {
+  .github-corner,
+  .sidebar-toggle,
+  .sidebar,
+  .app-nav {
+    display: none;
+  }
+}
+@media screen and (max-width: 768px) {
+  .cover-main .features {
+    flex-direction: column;
+  }
+
+  .cover-main .feature {
+    max-width: 100% !important;
+    padding: 0 2.5rem;
+  }
+  .github-corner,
+  .sidebar-toggle,
+  .sidebar {
+    position: fixed;
+  }
+  .app-nav {
+    margin-top: 16px;
+  }
+  .app-nav li ul {
+    top: 30px;
+  }
+  main {
+    height: auto;
+    min-height: 100vh;
+    overflow-x: hidden;
+  }
+  .sidebar {
+    left: -300px;
+    transition: transform 250ms ease-out;
+  }
+  .content {
+    left: 0;
+    max-width: 100vw;
+    position: static;
+    padding-top: 20px;
+    transition: transform 250ms ease;
+  }
+  .app-nav,
+  .github-corner {
+    transition: transform 250ms ease-out;
+  }
+  .sidebar-toggle {
+    background-color: transparent;
+    width: auto;
+    padding: 30px 30px 10px 10px;
+  }
+  body.close .sidebar {
+    transform: translateX(300px);
+  }
+  body.close .sidebar-toggle {
+    background-color: rgba(255, 255, 255, 0.8);
+    transition: 1s background-color;
+    width: 284px;
+    padding: 10px;
+  }
+  body.close .content {
+    transform: translateX(300px);
+  }
+  body.close .app-nav,
+  body.close .github-corner {
+    display: none;
+  }
+  .github-corner:hover .octo-arm {
+    animation: none;
+  }
+  .github-corner .octo-arm {
+    animation: octocat-wave 560ms ease-in-out;
+  }
+}
+@keyframes octocat-wave {
+  0%,
+  100% {
+    transform: rotate(0);
+  }
+  20%,
+  60% {
+    transform: rotate(-25deg);
+  }
+  40%,
+  80% {
+    transform: rotate(10deg);
+  }
+}
+section.cover {
+  position: relative;
+  align-items: center;
+  background-position: center center;
+  background-repeat: no-repeat;
+  background-size: cover;
+  min-height: 100vh;
+  width: 100%;
+  display: none;
+}
+section.cover.show {
+  display: flex;
+}
+section.cover.has-mask .mask {
+  background-color: #fff;
+  opacity: 0.8;
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  width: 100%;
+}
+section.cover .cover-main {
+  flex: 1;
+  margin: 100px auto 0px;
+  text-align: center;
+  position: relative;
+  max-width: 960px;
+}
+section.cover a {
+  color: inherit;
+  text-decoration: none;
+}
+section.cover a:hover {
+  text-decoration: none;
+}
+section.cover p {
+  line-height: 1.5rem;
+  margin: 1em 0;
+}
+section.cover h1 {
+  color: inherit;
+  font-size: 2.5rem;
+  font-weight: 300;
+  margin: 0.625rem 0 2.5rem;
+  position: relative;
+  text-align: center;
+}
+section.cover h1 a {
+  display: block;
+}
+section.cover h1 small {
+  bottom: -0.4375rem;
+  font-size: 1rem;
+  position: absolute;
+}
+section.cover blockquote {
+  font-size: 1.5rem;
+  text-align: center;
+}
+section.cover ul {
+  line-height: 1.8;
+  list-style-type: none;
+  margin: 1em auto;
+  max-width: 500px;
+  padding: 0;
+}
+section.cover .cover-main > p:last-child a {
+  border-color: #0074d9;
+  border-color: var(--theme-color, #0074d9);
+  border-radius: 2rem;
+  border-style: solid;
+  border-width: 1px;
+  box-sizing: border-box;
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+  display: inline-block;
+  font-size: 1.05rem;
+  letter-spacing: 0.1rem;
+  margin: 0.5rem 1rem;
+  padding: 0.75em 2rem;
+  text-decoration: none;
+  transition: all 0.15s ease;
+}
+section.cover .cover-main > p:last-child a:last-child {
+  background-color: #0074d9;
+  background-color: var(--theme-color, #0074d9);
+  color: #fff;
+}
+section.cover .cover-main > p:last-child a:last-child:hover {
+  color: inherit;
+  opacity: 0.8;
+}
+
+section.cover .cover-main a[href='#/introduce']:last-child {
+  border-color: #0074d9;
+  border-radius: 2rem;
+  border-style: solid;
+  border-width: 1px;
+  box-sizing: border-box;
+  color: #fff;
+  background: #0074d9;
+  display: inline-block;
+  font-size: 1.05rem;
+  letter-spacing: 0.1rem;
+  margin: 0.5rem 1rem;
+  padding: 0.75em 2rem;
+  text-decoration: none;
+  transition: all 0.15s ease;
+}
+section.cover .cover-main a[href='#/introduce']:hover {
+  color: inherit;
+  opacity: 0.8;
+  color: #fff;
+}
+section.cover .cover-main > p:last-child a:hover {
+  color: inherit;
+}
+section.cover .cover-main .features {
+  border-top: 1px solid #eaecef;
+  padding: 1.2rem 0;
+  margin-top: 2.5rem;
+  display: flex;
+  flex-wrap: wrap;
+  align-items: flex-start;
+  align-content: stretch;
+  justify-content: space-between;
+}
+section.cover .cover-main .feature {
+  flex-grow: 1;
+  flex-basis: 30%;
+  max-width: 30%;
+  text-align: left;
+}
+
+section.cover blockquote > p > a {
+  border-bottom: 2px solid #0074d9;
+  border-bottom: 2px solid #0074d9;
+  transition: color 0.3s;
+  background: #0074d9;
+}
+section.cover blockquote > p > a:hover {
+  color: #fff;
+}
+body {
+  background-color: #fff;
+}
+/* sidebar */
+.sidebar {
+  background-color: #fff;
+  color: #364149;
+}
+.sidebar li {
+  margin: 6px 0 6px 0;
+}
+.sidebar ul li a {
+  color: #364149;
+  font-size: 14px;
+  font-weight: normal;
+  overflow: hidden;
+  text-decoration: none;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+.sidebar ul li a:hover {
+  text-decoration: underline;
+}
+.sidebar ul li ul {
+  padding: 0;
+}
+.sidebar ul li.active > a {
+  border-right: 2px solid;
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+  font-weight: 600;
+}
+.app-sub-sidebar li::before {
+  content: '-';
+  padding-right: 4px;
+  float: left;
+}
+/* markdown content found on pages */
+.markdown-section h1,
+.markdown-section h2,
+.markdown-section h3,
+.markdown-section h4,
+.markdown-section strong {
+  color: #2c3e50;
+  font-weight: 600;
+}
+.markdown-section a {
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+  font-weight: 600;
+}
+.markdown-section h1 {
+  font-size: 2rem;
+  margin: 0 0 1rem;
+}
+.markdown-section h2 {
+  font-size: 1.75rem;
+  margin: 45px 0 0.8rem;
+}
+.markdown-section h3 {
+  font-size: 1.5rem;
+  margin: 40px 0 0.6rem;
+}
+.markdown-section h4 {
+  font-size: 1.25rem;
+}
+.markdown-section h5 {
+  font-size: 1rem;
+}
+.markdown-section h6 {
+  color: #777;
+  font-size: 1rem;
+}
+.markdown-section figure,
+.markdown-section p {
+  margin: 1.2em 0;
+}
+.markdown-section p,
+.markdown-section ul,
+.markdown-section ol {
+  line-height: 1.6rem;
+  word-spacing: 0.05rem;
+}
+.markdown-section ul,
+.markdown-section ol {
+  padding-left: 1.5rem;
+}
+.markdown-section blockquote {
+  border-left: 4px solid #0074d9;
+  border-left: 4px solid var(--theme-color, #0074d9);
+  color: #858585;
+  margin: 2em 0;
+  padding-left: 20px;
+}
+.markdown-section blockquote p {
+  font-weight: 600;
+  margin-left: 0;
+}
+.markdown-section iframe {
+  margin: 1em 0;
+}
+.markdown-section em {
+  color: #7f8c8d;
+}
+.markdown-section code,
+.markdown-section pre,
+.markdown-section output::after {
+  font-family: 'Roboto Mono', Monaco, courier, monospace;
+}
+.markdown-section code,
+.markdown-section pre {
+  background-color: #f8f8f8;
+}
+.markdown-section pre,
+.markdown-section output {
+  margin: 1.2em 0;
+  position: relative;
+}
+.markdown-section pre > code,
+.markdown-section output {
+  border-radius: 2px;
+  display: block;
+}
+.markdown-section pre > code,
+.markdown-section output::after {
+  -moz-osx-font-smoothing: initial;
+  -webkit-font-smoothing: initial;
+}
+.markdown-section code {
+  border-radius: 2px;
+  color: #e96900;
+  margin: 0 2px;
+  padding: 3px 5px;
+  white-space: pre-wrap;
+}
+.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
+  font-size: 0.8rem;
+}
+.markdown-section pre {
+  padding: 0 1.4rem;
+  line-height: 1.5rem;
+  overflow: auto;
+  word-wrap: normal;
+}
+.markdown-section pre > code {
+  color: #525252;
+  font-size: 0.8rem;
+  padding: 2.2em 5px;
+  line-height: inherit;
+  margin: 0 2px;
+  max-width: inherit;
+  overflow: inherit;
+  white-space: inherit;
+}
+.markdown-section output {
+  padding: 1.7rem 1.4rem;
+  border: 1px dotted #ccc;
+}
+.markdown-section output > :first-child {
+  margin-top: 0;
+}
+.markdown-section output > :last-child {
+  margin-bottom: 0;
+}
+.markdown-section code::after,
+.markdown-section code::before,
+.markdown-section output::after,
+.markdown-section output::before {
+  letter-spacing: 0.05rem;
+}
+.markdown-section pre::after,
+.markdown-section output::after {
+  color: #ccc;
+  font-size: 0.6rem;
+  font-weight: 600;
+  height: 15px;
+  line-height: 15px;
+  padding: 5px 10px 0;
+  position: absolute;
+  right: 0;
+  text-align: right;
+  top: 0;
+}
+.markdown-section pre::after,
+.markdown-section output::after {
+  content: attr(data-lang);
+}
+/* code highlight */
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+  color: #8e908c;
+}
+.token.namespace {
+  opacity: 0.7;
+}
+.token.boolean,
+.token.number {
+  color: #c76b29;
+}
+.token.punctuation {
+  color: #525252;
+}
+.token.property {
+  color: #c08b30;
+}
+.token.tag {
+  color: #2973b7;
+}
+.token.string {
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+}
+.token.selector {
+  color: #6679cc;
+}
+.token.attr-name {
+  color: #2973b7;
+}
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string {
+  color: #22a2c9;
+}
+.token.attr-value,
+.token.control,
+.token.directive,
+.token.unit {
+  color: #0074d9;
+  color: var(--theme-color, #0074d9);
+}
+.token.keyword,
+.token.function {
+  color: #e96900;
+}
+.token.statement,
+.token.regex,
+.token.atrule {
+  color: #22a2c9;
+}
+.token.placeholder,
+.token.variable {
+  color: #3d8fd1;
+}
+.token.deleted {
+  text-decoration: line-through;
+}
+.token.inserted {
+  border-bottom: 1px dotted #202746;
+  text-decoration: none;
+}
+.token.italic {
+  font-style: italic;
+}
+.token.important,
+.token.bold {
+  font-weight: bold;
+}
+.token.important {
+  color: #c94922;
+}
+.token.entity {
+  cursor: help;
+}
+code .token {
+  -moz-osx-font-smoothing: initial;
+  -webkit-font-smoothing: initial;
+  min-height: 1.5rem;
+  position: relative;
+  left: auto;
+}
+section.cover .copyright {
+  bottom: 5px;
+  position: fixed;
+  left: 0;
+  right: 0;
+  text-align: center;
+}
+
+main .content .copyright {
+  bottom: 5px;
+  position: absolute;
+  left: 10px;
+  right: 0;
+  text-align: left;
+}
+
+.markdown-section .clklog-contact-items {
+  position: fixed;
+  right: 5px;
+  top: calc((100vh - 168px) / 2);
+  z-index: 9999;
+  /* background-color: #eaf2fc; */
+  /* border-radius: 56px; */
+  width: 55px;
+  padding-left: 0px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item {
+  width: 55px;
+  height: 55px;
+  position: relative;
+  margin: 5px 0;
+  list-style: none;
+  background-color: #eaf2fc;
+  border-radius: 36px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item:hover .clklog-contact-item-content {
+  display: block;
+  position: absolute;
+  left: -150px;
+  top: 5px;
+  z-index: 9999;
+  background-color: #eaf2fc;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.phone:hover .clklog-contact-item-content {
+  left: -138px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.wechat:hover .clklog-contact-item-content {
+  left: -150px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.email:hover .clklog-contact-item-content {
+  left: -140px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item .clklog-contact-item-content .triangle {
+  display: inline-block;
+  width: 0;
+  height: 0;
+  border-top: 8px solid transparent;
+  border-bottom: 8px solid transparent;
+  border-left: 8px solid #eaf2fc;
+  position: absolute;
+  right: -8px;
+  top: 15px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item {
+  background-position: center;
+  background-repeat: no-repeat;
+  cursor: pointer;
+}
+
+.markdown-section .clklog-contact-items .clklog-contact-item.phone .info {
+  font-size: 20px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.email .info {
+  font-size: 16px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.wechat .info {
+  text-align: center;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.phone {
+  background-image: url(../imgs/phone.png);
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.phone:hover {
+  background-image: url(../imgs/phone.png);
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.wechat {
+  background-image: url(../imgs/wechat.png);
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.wechat:hover {
+  background-image: url(../imgs/wechat.png);
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.email {
+  background-image: url(../imgs/email.png);
+}
+.markdown-section .clklog-contact-items .clklog-contact-item.email:hover {
+  background-image: url(../imgs/email.png);
+}
+.markdown-section .clklog-contact-items .clklog-contact-item .clklog-contact-item-content {
+  display: none;
+}
+
+.markdown-section .clklog-contact-items .clklog-contact-item:hover .clklog-contact-item-content {
+  border-radius: 5px;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item:hover .clklog-contact-item-content.wechat p {
+  text-align: center;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item:hover .clklog-contact-item-content p {
+  margin-top: 0;
+  margin-bottom: 0;
+}
+.markdown-section .clklog-contact-items .clklog-contact-item:hover .clklog-contact-item-content.wechat p {
+}
+.markdown-section .clklog-contact-items .clklog-contact-item:hover .clklog-contact-item-content .contentwrap {
+  padding: 10px;
+}

BIN
assets/imgs/3.png


BIN
assets/imgs/4.png


BIN
assets/imgs/5.png


BIN
assets/imgs/6.png


BIN
assets/imgs/7.png


BIN
assets/imgs/8.png


BIN
assets/imgs/checktopic.png


Plik diff jest za duży
+ 0 - 0
assets/plugins/session-event/index.es6.js


Plik diff jest za duży
+ 0 - 0
assets/plugins/session-event/index.js


+ 22 - 0
assets/plugins/session-event/readme.md

@@ -0,0 +1,22 @@
+## 12h/30min session 切割事件采集
+## 功能
+给所有事件新增 `$event_session_id` 属性,标记当前事件属于哪个 session。
+
+原理: session 的切割规则满足以下两个条件中的一个:
+
+1. 两个连续的时间必须小于 30 分钟
+2. 当前时间 - 首次 session 切割时间 小于 12 小时
+在这个规则内的使用的是一个 session_id,否则会新开一个 session。
+
+## 集成
+### ES Module 方式
+```js
+import sessionEvent  from '/dist/web/plugin/session-event/index.es6.js';
+sensors.use(sessionEvent);
+```
+## 变动
+- 新增 cookie 存储:`sensorsdata2015jssdksession`。
+- 新增属性:`event_session_id`,表示事件会话 ID。
+## ⚠️ 注意
+- session 规则很多,当前只是一种实现,并不是一种通用实现,具体需求还需要具体分析
+- 插件和 SDK 必须在同一个版本中,请勿混合不同版本的 SDK 和插件进行使用。

+ 18 - 0
changelog.md

@@ -0,0 +1,18 @@
+# 版本说明
+
+## ClickLog 版本 2023-9-5 v0.5.0
+
+### 功能
+
+- 从不同维度,展示、统计、查看、下载用户访问的流量趋势数据
+- 按地域,从不同维度统计、查看、下载各地域下的用户访问流量指标数据
+- 按受访页面,从不同维度统计、查看、下载各个页面的用户访问流量指标数据
+- 按来源网站,从不同维度统计、查看、下载各个来源网站的用户访问流量指标数据
+- 按新老访客,从不同维度统计、查看、下载新老访客的用户访问流量指标数据
+- 按用户忠诚度,从不同维度统计、查看、下载用户访问忠诚度相关指标数据
+- 按设备,从不同维度统计、查看、下载各类型设备的用户访问流量指标数据
+- 按渠道,从不同维度统计、查看、下载各渠道下的用户访问流量指标数据
+- 从不同维度,展示、统计、查看、下载站外搜索关键词的访问流量指标数据
+
+<!-- ### 优化&修复 -->
+<!-- ### 新贡献者 -->

BIN
contributor/clklogagreement.doc


+ 30 - 0
contributor/guide.md

@@ -0,0 +1,30 @@
+# 贡献者指南
+
+## Issues 管理
+
+- 清晰的 Issue 标题和描述:确保每个 Issue 都有一个简洁明了的标题和详细的描述,以便其他贡献者理解问题的本质。
+- 使用标签:为每个 Issue 添加适当的标签,以便分类和过滤问题,例如 bug、feature、documentation 等。
+- 分配问题:将问题分配给相关的负责人,以确保问题得到适时处理。
+
+## 代码提交
+
+- 提交信息:每次代码提交应该附带有描述性的提交信息,解释了你所做的更改以及为何做出这些更改。
+- 小而频繁的提交:尽量保持代码提交的规模小而频繁,以便更容易进行审查和集成。
+- 遵循代码风格:遵循项目的代码风格指南,以确保代码风格的一致性。
+
+## 分支管理
+
+- 主分支保护:项目应该保护主分支(main)以防止直接推送,只能通过 PR 进行更改。
+- 分支命名规范:定义分支命名规范,例如使用特性分支(feature branches)来开发新功能,使用修复分支(fix branches)来解决 bug。
+
+## Release 发布
+
+- 版本号管理:使用语义化版本号(Semantic Versioning)或其他合适的版本管理方式来标识发布的版本。
+- 发布说明:为每个发布编写清晰的发布说明,包括新增功能、修复的 bug、已知问题等信息。
+
+## Pull Request 提交
+
+- PR 标题和描述:编写有意义的 PR 标题和描述,解释你的更改和目的。
+- 关联 Issue:如果你的 PR 关联到某个 Issue,确保在描述中引用它,以便自动关联 Issue 和 PR。
+- 针对目标分支:确保你的 PR 是基于正确的目标分支创建的,并解决了相关问题。
+- 通过自动构建和测试:在提交 PR 之前,确保代码通过了项目的自动构建和测试流程。

BIN
favicon.ico


BIN
icon.png


+ 119 - 0
index.html

@@ -0,0 +1,119 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <title>龚嘴水电一张图应用平台</title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+    <meta name="name" content="ClkLog" />
+    <meta
+      name="keywords"
+      content="开源,埋点系统,Java,Clickhouse,访问统计系统,日志分析系统,用户行为跟踪,性能分析,埋点统计,采集与分析系统,可视化埋点分析"
+    />
+    <meta
+      name="description"
+      content="ClkLog是记录用户行为分析和画像的免费可商用开源软件,可自由定制和扩展,技术人员可快速搭建私有的应用系统。灵活设置、管理埋点,可拓展的自定义事件、属性,提供数据报告与可视化图表。通过用户行为数据,分析用户画像,追踪和监测用户行为。"
+    />
+    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
+    <link rel="Bookmark" href="favicon.ico" type="image/x-icon" />
+    <link rel="apple-touch-icon" sizes="any" href="favicon.ico" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
+    <link rel="stylesheet" href="assets/css/font.css" />
+    <link rel="stylesheet" href="assets/css/style@1.1.2.css" />
+    <script src="assets/plugins/autotrack@2.2.js"></script>
+    <script>
+      window.$docsify = {
+        name: 'CLKLOG',
+        logo: 'assets/imgs/logo1.png',
+        // repo: 'https://github.com/clklog',
+        auto2top: true,
+        autoHeader: true,
+        // 侧边栏支持,默认加载的是项目根目录下的_sidebar.md文件
+        loadSidebar: true,
+        // 导航栏支持,默认加载的是项目根目录下的_navbar.md文件
+        loadNavbar: true,
+        // 封面支持,默认加载的是项目根目录下的_coverpage.md文件
+        coverpage: true,
+        onlyCover: true,
+        // 页脚信息插件
+        loadFooter: true,
+        // 封面支持,默认加载的是项目根目录下的_footer.md文件
+        // 最大支持渲染的标题层级
+        maxLevel: 3,
+        // 自定义侧边栏后默认不会再生成目录,设置生成目录的最大层级(建议配置为2-4)
+        subMaxLevel: 3,
+        // 小屏设备下合并导航栏到侧边栏
+        mergeNavbar: true,
+        notFoundPage: '404.md',
+        search: {
+          paths: 'auto',
+          placeholder: '搜索',
+          noData: '没有您想要的结果',
+          depth: 3
+        },
+        count: {
+          countable: true,
+          fontsize: '0.9em',
+          color: 'rgb(90,90,90)',
+          language: 'chinese'
+        },
+        // pagination: {
+        //   // previousText: '上一页',
+        //   // nextText: '下一页',
+        //   crossChapter: true,
+        //   crossChapterText: true
+        // },
+        // share: { reddit: true, linkedin: true, facebook: true, twitter: true, whatsapp: true, telegram: true }
+        'flexible-alerts': {
+          style: 'flat',
+          note: {
+            label: '信息'
+          },
+          tip: {
+            label: '提示'
+          },
+          warning: {
+            label: '注意'
+          },
+          attention: {
+            label: '切记'
+          }
+        },
+        plugins: [
+          function (hook, vm) {
+            hook.doneEach(function () {
+              sensors.quick('autoTrackSinglePage')
+            })
+          },
+          function pageContact(hook, vm) {
+            var contactHtml = [
+              '<ul class="clklog-contact-items">',
+              '<li class="clklog-contact-item phone"><div class="clklog-contact-item-content "><span class="triangle "></span><div class="contentwrap"><p class="text">咨询电话:</p><p class="info">16621363853</p></div></div></li>',
+              '<li class="clklog-contact-item wechat"><div class="clklog-contact-item-content"><span class="triangle "></span><div class="contentwrap"><p><img src="/assets/imgs/contactqrcode.jpg" width="120"/></p><p class="info">微信扫码咨询</p></div></div></li>',
+              '<li class="clklog-contact-item email"><div class="clklog-contact-item-content"><span class="triangle "></span><div class="contentwrap"><p class="text">咨询邮箱:</p><p class="info">info@clklog.com</p></div></div></li>',
+              '</ul>'
+            ].join('')
+            hook.afterEach(function (html) {
+              return html + contactHtml
+            })
+          }
+        ]
+      }
+    </script>
+  </head>
+  <body>
+    <nav>
+      <a href="www.clklog.com"> </a>
+    </nav>
+    <div id="app"></div>
+    <!-- Docsify v4 -->
+    <script src="assets/plugins/docsify@4.js"></script>
+    <script src="assets/plugins/search.min.js" rel="stylesheet"></script>
+    <script src="assets/plugins/zoom-image.min.js" rel="stylesheet"></script>
+    <script src="assets/plugins/docsify-copy-code.js" rel="stylesheet"></script>
+    <!-- <script src="assets/plugins/countable.js" rel="stylesheet"></script> -->
+    <script src="assets/plugins/prismjs@1.22.0/components/prism-java.min.js" rel="stylesheet"></script>
+    <script src="assets/plugins/docsify-footer.min.js"></script>
+    <script src="assets/plugins/docsify-pagination.min.js"></script>
+    <!-- <script src="//unpkg.com/docsify-share/build/index.min.js"></script> -->
+  </body>
+</html>

+ 21 - 0
introduce.md

@@ -0,0 +1,21 @@
+
+
+## 项目组成
+
+- **接收服务 【clklog-receiver】**:接收客服端采集的日志,存入kafka。
+
+- **处理脚本 【clickhouse-script】**:基于Clickhouse集群中的log_analysis表进行多维计算,获得各个维度上的统计报表。使用Cron来进行任务的定时调度。
+
+- **处理服务  【clklog-processing】**: 依托flink,消费kafka数据,存入clickhouse。
+
+- **统计接口 【clklog-api】**: 提供多维度数据统计接口。
+
+- **统计展示 【clklog-ui】**:基于 vue-element-admin 实现的统计分析数据界面展示。
+
+## 示意图
+
+| ![](assets/imgs/1.png) | ![](assets/imgs/2.png) |
+| ------------------------- | ------------------------- |
+| ![](assets/imgs/3.png) | ![](assets/imgs/4.png) |
+| ![](assets/imgs/5.png) | ![](assets/imgs/6.png) |
+| ![](assets/imgs/7.png) | ![](assets/imgs/8.png) |

+ 17 - 0
license.md

@@ -0,0 +1,17 @@
+## 协议许可
+
+- 开源协议:[AGPL V3.0](https://www.gnu.org/licenses/agpl-3.0.en.html)
+
+- 免费使用:使用 Clklog 的组织或个人在复制、分发、转发或修改时请遵守[AGPL V3.0](https://www.gnu.org/licenses/agpl-3.0.en.html)相关条款,不得移除ClkLog相关版权标识进行。如有违反,开发者保留对侵权者追究责任的权利。
+
+- 商业使用:请联系邮箱`info@clklog.com`进行细节咨询
+
+## 联系我们
+
+- 客服邮箱:<info@clklog.com>
+
+- 客服手机:16621363853
+
+- 客服微信:opensoft66
+
+- 客服二维码:<img title="" src="/assets/imgs/contactqrcode.jpg" alt="" data-align="center" width="120" style="vertical-align:top">

+ 25 - 0
project_arch_notes.md

@@ -0,0 +1,25 @@
+# 项目介绍
+
+## 什么是ClkLog
+
+ClkLog是一款记录用户行为分析和画像的免费可商用开源软件,技术人员可快速搭建私有的应用系统。项目基于神策分析SDK,采用ClickHouse数据库对采集数据进行存储,采用前后端分离的方式来实现的访问统计和用户画像分析系统。在这里,你可以轻松看到用户访问网页、APP、小程序或业务系统的行为轨迹,同时也可以从时间、地域、渠道、用户访客类型等多维度了解用户的全方位信息。
+
+## 核心功能
+
+- **数据采集**:支持网页、小程序、IOS、Android等多端数据采集
+
+<!-- - **数据治理**:制定清洗规制、实现数据自动化清洗和治理 -->
+
+- **流量概览**:提供流量渠道、设备、地域、访客类型多维度分析
+
+- **用户画像**:解析用户唯一ID,定位追踪用户全生命周期画像
+
+- **数据下载**:支持各项汇总数据、明细数据的下载
+
+## 技术栈选择
+
+- **后端**:Redis 、Zookeeper、Kafka 、Flink
+
+- **前端**:vue、vue-element-admin、element-ui 、echarts
+
+- **数据**:Clickhouse

+ 501 - 0
quickstart/deployment.md

@@ -0,0 +1,501 @@
+
+# 应用部署
+
+## 1.准备 linux 服务器
+
+假设IP 为 `10.10.222.21`
+
+## 2.数据库初始化
+
+<!-- > 下载源码:
+<a href="https://github.com/clklog/clklog-scripts" target="_blank">[GitHub 下载]</a> -->
+
+1. 在clickhouse里创建数据库`clklog`
+
+    ```
+    CREATE DATABASE clklog ENGINE = Atomic
+    ```
+
+2. 根据 `scripts` 下的`sql脚本.txt`文件创建表
+
+## 3.部署接收服务 clklog-receiver
+
+<!-- > 下载源码:
+<a href="https://github.com/clklog/clklog-receiver" target="_blank">[GitHub 下载]</a> -->
+
+1. 编译应用程序
+
+2. 上传程序文件
+
+    将`clklog_receiver.jar`包和 `application.yml`文件拷贝至`/usr/local/services/`目录:
+
+    ```
+    cd /usr/local/services/
+    mkdir clklogreceiver
+    chmod 500 clklog_receiver.jar
+    ```
+
+3. 修改配置文件
+
+    根据前面安装的组件配置,修改`application.yml`中`redis`、`kafka`相关配置,代码如下:
+
+    ```
+    server: 
+      tomcat: 
+        #日志配配置
+        accesslog: 
+          #目录
+          directory: /usr/local/services/receiverlogs      
+    logging:
+      file:
+        path: log
+    spring:
+      kafka:
+        bootstrap-servers: localhost:9092
+      redis:
+        # 单机配置
+        host: localhost
+        port: 6379
+        # password: nW2zFwS41tdf
+        # 哨兵配置
+        # sentinel:
+        # master: gct
+        # nodes: 10.100.2.1:26379,10.100.2.2:26379,10.100.2.3:26379
+    receiver: 
+      app-list: clklogapp
+    ```
+
+4. 创建服务
+
+    ```
+    vim /etc/systemd/system/clklogreceiver.service
+    ```
+
+    内容如下:
+
+    ```
+    [Unit]
+    Description=clklogreceiver
+    After=syslog.target
+
+    [Service]
+    ExecStart=/usr/local/services/clklogreceiver/clklog_receiver-1.0.0.jar
+    SuccessExitStatus=143
+
+    [Install]
+    WantedBy=multi-user.target
+    ```
+
+    更新服务配置
+
+    ```
+    systemctl daemon-reload
+    ```
+
+5. 启动应用程序
+
+    ```
+    systemctl start clklogreceiver
+    ```
+
+## 4.部署处理服务 clklog-processing
+
+<!-- > 下载源码:
+<a href="https://github.com/clklog/clklog-processing" target="_blank">[GitHub 下载]</a> -->
+
+1. 编译应用程序
+
+2. 上传程序文件
+
+   拷贝`clklog-processing-1.0.0-jar-with-dependencies.jar`包和 `config.properties`文件至`/usr/local/services/clklogprocessing`目录
+
+    ```
+    cd /usr/local/services/
+    mkdir /usr/local/services/clklogprocessing
+    chmod 500  clklog-processing-1.0.0-jar-with-dependencies.jar
+    ```
+
+3. 修改配置项
+
+   ```
+    vim config.properties
+
+    # clickhouse 数据库连接配置
+    clickhouse.host=localhost:8123
+    clickhouse.database=clklog
+    clickhouse.username=default
+    clickhouse.password=123456
+
+    # kafka 连接配置
+    kafka.bootstrap.server=localhost:9092
+    kafka.topic=clklog
+    kafka.group-id=clklog-group
+    
+    # flink 配置
+    flink.data-source-name=KafkaSource
+    flink.checkpoint=file:///usr/local/services/clklogprocessing/checkpoints
+    flink.parallelism=1
+    ```
+
+4. 启动应用程序
+
+    ```
+    cd /usr/local/services/clklogprocessing
+
+    /usr/local/services/flink-1.14.6/bin/flink run -s file: /usr/local/services/clklogprocessing/checkpoints/41f3b324752da77ed7821033d45d1d2f/chk-2737882  -c com.zcunsoft.clklog.analysis.entry.JieXiJson /usr/local/services/clklogprocessing/clklog-processing-1.0.0-jar-with-dependencies.jar
+    ```
+
+    其中 `-s` 参数为`checkpoint`位置。对于中断后再执行的任务,需要指定该参数,如不指定则从头开始消费`kafka`消息。
+
+## 5. 部署计算脚本clklog-script
+
+<!-- > 下载脚本: <a href="https://github.com/clklog/clklog-scripts" target="_blank">[GitHub 下载]</a> -->
+
+- 计算脚本是基于Clickhouse集群中的`log_analysis`表进行多维计算,获得各个维度上的统计报表。
+    使用Cron来进行任务的定时调度。
+
+1. 创建脚本及日志存放目录
+
+    ```
+    mkdir /usr/local/services/scripts
+    mkdir /usr/local/services/scripts/sh
+    mkdir /usr/local/services/scripts/flock
+    mkdir /usr/local/services/scripts/crontab_log
+    mkdir /usr/local/services/scripts/cklog
+    ```
+
+2. 上传sh计算脚本
+
+   - **注意:上传脚本时,需设置迁移类型为ASCII(I)**
+  
+    脚本上传于`/usr/local/services/scripts/sh`目录,  为防止出现权限问题导致脚本不能执行,建议上传完脚本以后执行以下代码:
+
+    ```
+    chmod 500 *.sh
+    ```
+
+1. 修改脚本中的数据库链接配置
+
+    根据clickhouse配置,修改脚本中连接clickhouse的`用户名、密码`配置信息:
+
+    ````
+    ck_login="clickhouse-client -u default --password 123456"
+    ck_log_db="clklog."
+    ck_stat_db="clklog."
+    ````
+
+2. 设置调度任务
+
+    ```
+    crontab -e
+    ```
+
+    将 `scripts`目录下的 `定时脚本.txt`文件,内容复制过去`.wq`保存。
+
+    备注:脚本的日志在`/usr/local/services/scripts/cklog/`
+<br>
+
+## 6. 部署统计接口 clklog-api
+
+<!-- > 下载源码:
+<a href="https://github.com/clklog/clklog-api" target="_blank">[GitHub 下载]</a> -->
+
+1. 编译应用程序
+
+2. 上传程序文件
+
+   拷贝`clklog-api-1.0.0.jar`包和`application.yml`文件至`/usr/local/services/clklogapi`目录:
+
+    ```
+    cd /usr/local/services
+    mkdir /usr/local/services/clklogapi
+    chmod 500 clklog-api-1.0.0.jar
+    ```
+
+3. 修改配置文件
+
+    根据前面安装的组件配置,修改`application.yml`中的相关配置,代码如下:
+
+    ```
+    springdoc:
+      swagger-ui:
+        enabled: true
+        tagsSorter: alpha
+      api-docs:
+        path: /api/v3/api-docs
+        enabled: true
+      group-configs:
+        - group: 'default'
+          paths-to-match: '/**'
+          packages-to-scan: com.zcunsoft.tracking.api.controllers
+    server:
+      port: 8087
+    spring:
+      application.name: clklog-api
+      datasource:
+        clickhouse:
+          jdbc-url: jdbc:clickhouse://localhost:8123/clklog
+          username: default
+          password: 123456
+          driver-class-name: com.clickhouse.jdbc.ClickHouseDriver
+          connection-timeout: 20000
+          maximum-pool-size: 5
+    logging:
+      file:
+        path: log
+    trackingapi:
+      access-control-allow-origin: "*"
+      project-name: clklogapp
+    ```
+
+4. 创建服务
+
+    ```
+    vim /etc/systemd/system/clklogapi.service
+    ```
+
+    内容如下:
+
+    ```
+    [Unit]
+    Description=clklog-api
+    After=syslog.target
+
+    [Service]
+    ExecStart=/usr/local/services/clklogapi/clklog-api-1.0.0.jar
+    SuccessExitStatus=143
+
+    [Install]
+    WantedBy=multi-user.target
+    ```
+
+    更新服务
+
+    ```
+    systemctl daemon-reload
+    ```
+
+5. 启动应用程序
+
+    ```
+    systemctl start clklogapi
+    ```
+
+## 7. nginx 路由设置参考
+
+1. 创建配置文件,设置路由
+
+    ```
+    vim /etc/nginx/conf.d/clklog.conf
+    ```
+
+    内容如下:
+
+    ```
+    upstream clklog_api_server {
+            server localhost:8087; 
+        }
+
+    upstream clklog_receiver_server {
+            server localhost:8002; 
+        }
+
+    upstream clklog_flink_server{
+            server localhost:8081; 
+        }
+
+    server {
+        listen 80;
+        listen [::]:80;
+        server_name localhost;
+
+    location / {
+                root   /usr/share/nginx/html;
+                index  index.html index.htm;
+                proxy_set_header Host $host;
+                proxy_set_header X-Real-IP $remote_addr;
+                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            }
+
+    location /clklog_receiver/ {
+                proxy_pass http://clklog_receiver_server/; 
+                proxy_set_header Host $host:$server_port; 
+                proxy_set_header X-Real-IP $remote_addr;
+                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            }
+
+    location /api/ {
+                proxy_pass http://clklog_api_server/; 
+                proxy_set_header Host $host:$server_port; 
+            }
+
+    location /api/v3/ {
+                proxy_pass http://clklog_api_server/api/v3/; 
+                proxy_set_header Host $host:$server_port; 
+                proxy_set_header X-Real-IP $remote_addr;
+                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            }
+
+    location /clklog_flink/ {
+                proxy_pass http://clklog_flink_server/;
+                proxy_set_header Host $host:$server_port;
+            } 
+    }
+    ```
+
+2. 重启nginx
+
+    ```
+    systemctl restart nginx
+    ```
+
+## 8. 部署环境验证
+
+1. Flink后台地址
+
+    ```
+    http://10.10.222.21/clklog_flink/#/overview
+    ```
+
+2. 日志接收地址
+
+    ```
+    http://10.10.222.21/clklog_receiver/api/gp
+    ```
+
+3. 接口地址
+
+    ```
+    http://10.10.222.21/api/doc.html#/home
+    ```
+
+## 9. sdk 埋点集成
+
+#### 1. Web JS 埋点集成参考
+
+1. 下载神策 WEB JS SDK
+
+    [下载 sensorsdata.js](https://github.com/sensorsdata/sa-sdk-javascript/blob/v1.25.15/dist/web/sensorsdata.js)
+
+    [下载插件 session-event](https://github.com/sensorsdata/sa-sdk-javascript/blob/v1.25.15/dist/web/plugin/session-event/index.js)
+
+2. 引用插件
+
+    插件引用按目录结构参考如下:
+
+    ```
+      dist
+    ├── web
+        ├── plugin
+        │   ├── session-event
+        │   │   ├── index.js
+        |── sensorsdata.js
+    ```
+
+3. 接入代码
+
+    创建文件`autotrack.js`,然后在web网站引用即可.
+
+    请注意下方`autotrack.js`代码中关于`server_url` 接收服务地址配置信息的修改,clklog数据采集地址和神策埋点略有不同,clklog数据采集必须传入`project`和`token`参数,详细代码如下:
+
+    ```
+    (function (para) {
+      var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script', x = null, y = null;
+      if (typeof (w['sensorsDataAnalytic201505']) !== 'undefined') {
+        return false;
+      }
+      w['sensorsDataAnalytic201505'] = n;
+      w[n] = w[n] || function (a) { return function () { (w[n]._q = w[n]._q || []).push([a, arguments]); } };
+      var ifs = ['track', 'quick', 'register', 'registerPage', 'registerOnce', 'trackSignup', 'trackAbtest', 'setProfile', 'setOnceProfile', 'appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify', 'login', 'logout', 'trackLink', 'clearAllRegister', 'getAppStatus'];
+      for (var i = 0; i < ifs.length; i++) {
+        w[n][ifs[i]] = w[n].call(null, ifs[i]);
+      }
+      if (!w[n]._t) {
+        x = d.createElement(s), y = d.getElementsByTagName(s)[0];
+        x.async = 1;
+        x.src = 'plugin/session-event/index.js';//引用的session-event插件路径
+        x.setAttribute('charset', 'UTF-8');
+        w[n].para = para;
+        y.parentNode.insertBefore(x, y);
+        x = d.createElement(s), y = d.getElementsByTagName(s)[0];
+        x.async = 1;
+        x.src = p;
+        x.setAttribute('charset', 'UTF-8');
+        w[n].para = para;
+        y.parentNode.insertBefore(x, y);
+      }
+      sensors.quick("isReady", function () {
+        sensors.use('PageLeave', { heartbeat_interval_time: 5 });
+        sensors.use('PageLoad');
+        sensors.use('SessionEvent');
+      });
+      sensors.quick("autoTrackSinglePage")
+    })({
+      sdk_url: 'sensorsdata.js',
+      name: 'sensors',
+      show_log: true,
+      is_track_single_page: true, 
+      // send_type:'beacon',
+      server_url: 'http://10.10.222.21/clklog_receiver/api/gp?project=clklogapp&token=gfdsg325432gfsgfds', //接收地址为clklog_receiver 的接收服务地址,必须传入project和token参数
+      heatmap: {
+        clickmap: 'default', scroll_notice_map: 'default', collect_tags: {
+          div: true,
+          img: true
+        }
+      },
+      preset_properties: { latest_referrer_host: true }
+    });
+    ```
+
+- **单页面应用数据采集说明**
+
+  1)如果是单页面应用,标题不变但需要自动采集页面浏览事件,需要将`autotrack.js`中的`is_track_single_page`值设置为`ture`。
+
+  2)如果是单页面应用,标题会随着页面变化,同时也需要采集页面浏览事件,需要将`autotrack.js` 中的`is_track_single_page` 值设置为`false`,同时在页面标题改变结束后执行代码:  `sensors.quick('autoTrackSinglePage');`
+
+1. 发布WEB站点到服务器
+2. 访问站点
+
+#### 2. Android SDK埋点集成
+
+  集成方式参考 [神策Android SDK集成文档](https://manual.sensorsdata.cn/sa/latest/zh_cn/android-7541696.html) , 集成时将数据接收地址更换成clklog_receiver的接收服务地址。
+
+#### 3. IOS SDK埋点集成
+
+  集成方式参考 [神策IOS SDK集成文档](https://manual.sensorsdata.cn/sa/latest/zh_cn/ios-7538614.html) , 集成时将数据接收地址更换成clklog_receiver的接收服务地址。
+
+#### 4. 小程序 SDK埋点集成
+
+  集成方式参考 [神策微信小程序 SDK集成文档](https://manual.sensorsdata.cn/sa/latest/zh_cn/%E9%9B%86%E6%88%90%E6%96%87%E6%A1%A3%EF%BC%88%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%EF%BC%89-1573892.html) , 集成时将数据接收地址更换成clklog_receiver的接收服务地址。
+
+## 10. 统计后台前端展示 clklog-ui
+
+1. 开发环境编译前端应用程序
+
+    本地前端代码运行步骤参考:
+
+    1)安装依赖
+
+    ```
+    npm install
+    ```
+  
+    2)启动服务
+
+    ```
+    npm run dev
+    ```
+
+    3)浏览器访问
+
+    接入埋点代码后,当统计后台前端展示页面能够正常显示统计相关数据,说明整个流程正常运行。
+
+2. 打包
+
+    ```
+    npm run build
+    ```
+
+3. 部署
+
+   将`dist`目录文件拷贝至web服务器(nginx或者apache或iis)。

+ 260 - 0
quickstart/preparation.md

@@ -0,0 +1,260 @@
+
+# 环境配置
+
+## 环境准备
+<!-- - Ubuntu SMP -->
+- CentOS 7
+- JDK 1.8
+- Nginx 1.18
+- Redis 3.2.4
+- Zookeeper 3.7.1
+- Kafka 2.12-3.3.1
+- Flink 1.14.6
+- Clickhouse 23.2.1
+- nodejs >= 8.9
+- npm >=3.0.0
+
+# 初始化步骤参考
+
+创建安装目录
+
+```
+mkdir /usr/local/services
+```
+
+## Java 1.8 安装参考
+
+下载 jdk-8u211-linux-x64.rpm
+
+```
+rpm -ivh jdk-8u211-linux-x64.rpm
+```
+
+## nginx 安装参考
+
+```
+yum install nginx
+systemctl start nginx
+```
+
+- ###### [nginx安装注意事项](question.md#nginx安装注意事项)
+
+## Redis 3.2.4 安装参考
+
+1. 从 Redis 官网下载安装包
+
+    ```
+    wget https://download.redis.io/releases/redis-3.2.4.tar.gz
+    ```
+
+2. 解压
+
+    将安装包拷贝至`/usr/local/services/`目录并解压, 解压后进入`redis`安装目录:
+
+    ```
+    cd /usr/local/services/
+    tar xzf redis-3.2.4.tar.gz
+    cd redis-3.2.4
+    ```
+
+3. 编译
+
+    ```
+    make
+    ```
+
+4. 安装
+
+    ```
+    make install
+    ```
+
+    默认情况下,Redis 会被安装在`/usr/local/bin`目录下
+
+- ###### [redis安装注意事项](question.md#redis安装注意事项)
+
+5. 修改配置
+
+    拷贝`redis.conf` 至`/etc/redis/redis.conf`
+
+    ```
+    mkdir /etc/redis
+    cp redis.conf /etc/redis/redis.conf
+    ```
+
+    修改配置文件:`/etc/redis/redis.conf`
+
+    ```
+    vim /etc/redis/redis.conf
+
+    protected-mode no
+    daemonize yes
+    appendonly yes
+    ```  
+
+6. 启动服务
+
+    ```
+    /usr/local/bin/redis-server /etc/redis/redis.conf
+    ```
+
+7. 检查安装是否成功
+
+    ```
+    cd /usr/local/bin
+    ./redis-cli
+    ```
+
+<br>
+
+## Zookeeper 3.7.1 安装参考
+
+1. 从  Zookeeper  官网下载安装包
+
+    ```
+    wget --no-check-certificate https://dlcdn.apache.org/zookeeper/zookeeper-3.7.1/apache-zookeeper-3.7.1-bin.tar.gz
+    ```
+
+2. 解压
+
+    将安装包拷贝至`/usr/local/services/`目录并解压, 解压后进入`Zookeeper`安装目录:
+
+    ```
+    cd /usr/local/services/
+    tar -zxvf apache-zookeeper-3.7.1-bin.tar.gz
+    cd apache-zookeeper-3.7.1-bin
+    ```
+
+3. 修改配置
+
+    拷贝配置文件,并增加配置项
+
+    ```
+    cp ./conf/zoo_sample.cfg ./conf/zoo.cfg
+
+    admin.serverPort=8887
+    ```
+
+4. 启动zk
+
+    ```
+    ./bin/zkServer.sh start
+    ```
+
+5. 检查
+
+    ```
+    ./bin/zkServer.sh status
+    ```
+
+    ![](/assets/imgs/zookeepercheck.png)
+
+    未启动成功,从`./logs`里查看启动日志
+
+<br>
+
+## Kafka 2.12-3.3.1 安装参考
+
+1. 从 Kafka 官网下载安装包
+
+    ```
+    wget --no-check-certificate https://archive.apache.org/dist/kafka/3.3.1/kafka_2.12-3.3.1.tgz
+    ```
+
+2. 解压
+
+    将安装包拷贝至`/usr/local/services/`目录并解压, 解压后进入`Kafka`安装目录:
+
+    ```
+    cd /usr/local/services/
+    tar -xzf kafka_2.12-3.3.1.tgz
+    cd kafka_2.12-3.3.1
+    ```
+
+3. 启动
+
+    ```
+    ./bin/kafka-server-start.sh  -daemon config/server.properties
+    ```
+
+4. 检查
+
+    创建名为`test`的`topic`
+
+    ```
+    ./bin/kafka-topics.sh --create --bootstrap-server 127.0.0.1:9092 --replication-factor 1 --partitions 1 --topic test
+    ```
+
+    ![](/assets/imgs/createtop.png)
+
+    查看`topic`
+
+    ```
+    ./bin/kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --describe --topic test
+    ```
+
+    ![](/assets/imgs/checktopic.png)
+
+    不报错正常,如果未启动成功,从`./logs`里查看启动日志
+
+## Flink 1.14.6 安装参考
+
+1. 从 Flink官网下载安装包
+
+    ```
+    wget https://archive.apache.org/dist/flink/flink-1.14.6/flink-1.14.6-bin-scala_2.12.tgz
+    ```
+
+2. 解压
+
+    将安装包拷贝至`/usr/local/services/`目录,重命名为`flink-1.14.6.tgz`后解压, 解压后进入`Flink`安装目录:
+
+    ```
+    cd /usr/local/services/
+    mv flink-1.14.6-bin-scala_2.12.tgz flink-1.14.6.tgz
+    tar -xzf flink-1.14.6.tgz
+    cd flink-1.14.6
+    ```
+
+3. 启动
+
+    ```
+    ./bin/start-cluster.sh
+    ```
+
+4. 检查
+
+    <http://localhost:8081/>
+
+    ![](/assets/imgs/preview.png)
+
+## Clickhouse 23.2.1 安装参考
+
+1. 安装clickhouse
+
+    ```
+    yum install -y yum-utils
+    rpm --import https://repo.yandex.ru/clickhouse/CLICKHOUSE-KEY.GPG
+    yum-config-manager --add-repo https://repo.yandex.ru/clickhouse/rpm/stable/x86_64
+    yum install clickhouse-server clickhouse-client
+    ```
+
+2. 修改用户验证信息
+
+    修改`/etc/clickhouse-server/users.xml`文件,在<users>标签下设置用户验证信息。比如,我们设定一个用户名为`default`,密码为`123456`。
+
+    更多设置请参考ClickHouse官方文档。
+
+3. 启动数据库
+
+    ```
+    sudo systemctl enable clickhouse-server  
+    sudo systemctl start clickhouse-server  
+    sudo systemctl status clickhouse-server  
+    ```
+
+4. 登录数据库
+
+    ```
+    clickhouse-client -u default --password 123456
+    ```

+ 76 - 0
quickstart/question.md

@@ -0,0 +1,76 @@
+# 常见问题
+
+- ## nginx安装注意事项
+
+    如下图所示,yum install nginx 安装nginx可能会出现没有本地yum源中没有nginx的情况
+
+    ![](assets/imgs/nginxinstallerror.png)
+
+    出现这个的原因是因为本地yum源中没有我们想要的nginx,那么我们就需要创建一个/etc/yum.repos.d/nginx.repo的文件,新增一个yum源。
+
+1. 创建nginx.repo的文件
+
+    ```
+    vi /etc/yum.repos.d/nginx.repo
+    ```
+
+2. 在文件中写入以下内容
+
+    ```
+    [nginx]
+    name=nginx repo
+    baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
+    gpgcheck=0
+    enabled=1
+    ```
+
+3. 退出保存后,重新执行安装
+
+    [查看nginx安装步骤](preparation.md#nginx安装注意事项)
+
+- ## redis安装注意事项
+
+    如下图所示,make install 安装redis可能会出现系统无gcc环境的情况
+
+    ![](assets/imgs/redisinstallerror.png)
+
+    解决方案如下:
+
+1. 安装gcc
+
+    ```
+    yum install gcc-c++
+    ```
+
+2. 清空上次编译失败残留文件
+
+    ```
+    yum make distclean
+    ```
+
+3. 执行编译及安装
+
+    ```
+    yum make install
+    ```
+
+    [查看Redis安装步骤](preparation.md#redis安装注意事项)
+
+- ## nginx 出现权限问题(13:Permission denied)
+
+    解决方案如下:
+
+1. 将SELINUX=enforcing 修改为 SELINUX=disabled 状态
+
+    ```
+    vi /etc/selinux/config
+    
+    #SELINUX=enforcing
+    SELINUX=disabled
+    ```
+
+2. 重启生效
+
+    ```
+    reboot
+    ```

+ 11 - 0
video_arch_notes.md

@@ -0,0 +1,11 @@
+### 视频监控前后端组件选型背景
+
+在遍地都是摄像头的今天,往往需要在各种信息化、数字化、可视化等B/S系统中集成实时视频流播放等功能,海康、大华、华为等厂家摄像头或录像机等设备一般也都遵循安防行业标准,支持国际标准的视频主流传输协议RTSP(实时视频流)输出,不幸的是Chrome、Edge、Firefox等新一代浏览器从2015年开始不再支持NPAPI插件加载运行,直接导致RTSP视频流从此无法在高版本浏览器网页中原生播放。对于绝大部分没有影视频处理经验的前、后端工程师来说是一个非常棘手的问题,专业性强,技术门槛高,而对做B/S系统集成的大多数公司来说,为了这部分的功能单独招聘专职音视频研发人员来负责的话,成本高昂不说,还未必做的好。
+
+当前主流版本浏览器既然已都不支持原生播放RTSP流,为了能够播放RTSP流,不少公司各显神通,出了各种商用及开源方案,不过总的说来就是在后端先转码再转流给前端播放的方案,这也是号称无插件的技术方案。对浏览器可直接硬件加速播放的H.264编码视频流,现在一般是在服务器端将RTSP流转为WebRTC通讯标准的视频流,前端接收后可通过Vedio标签播放;对于浏览器不能支持加速播放的其它编码视频流,要么在后端先转流转码为H.264编码后按前述方案播放,要么后端转流到前端,前端再通过对应编码的WASM程序利用CPU软解码播放。转流到前端WASM转码播放时,即使配置了性能不错的电脑,受限于WASM的固有缺陷,比如多线程支持差、能使用的内存大小始终受限,无法充分利用终端电脑显卡的硬件加速能力(GPU),这就导致同时播放多路或高清RTSP流时也会比较吃力,而且大量占用终端电脑的CPU和内存资源,其它操作基本无法进行,对音视频格式的兼容能力也很有限。
+
+虽然无插件播放方案能够播放出画面,但是往往延迟高,高分辨率视频流基本上都在数秒之久,在一些对延迟敏感的场合客户要求的是毫秒级延迟,显然无插件技术方案是无法满足的;而且首屏画面显示慢,这就导致切换播放源时迟迟看不到画面出来,用户体验很差;况且无插件技术方案,需要在后端或前端持续运行高负荷运转的视频转码转流服务,也有部分采用WebSocket直接从摄像头拉流播放的方案,不过需要设备支持才行,适用性不够。如果摄像头路数多、高清甚至是4K视频或需要在线播放的终端比较多,服务器的压力就会很大,播放卡顿、花屏、黑屏、断播等现象就会时常出现,很难让客户满意。为了解决这些问题,相关硬件、软件的投入和持续不断的带宽占用往往也让客户难以接受。现在越来越多的客户追求高大上的视频播放效果,采用高清摄像头的越来越多,播放显示器1080P已是低配,2K甚至4K大屏正在成为主流之选。这种无插件技术方案,在中高配的屏幕上如果只能播放出慢如蜗牛的画面,想不让客户吐槽实在是太难。
+
+一个好的RTSP视频流网页播放方案,首先是要能做到持续稳定播放多路视频,还需同时支持H.264、H.265编码及其它编码格式、兼容RTSP、RTMP、HLS等流协议播放,最核心的是要做到低延迟、切换画面快,最好能支持高清甚至4K视频流畅播放。另外就是对当前主流版本的浏览器兼容能力要强,多路播放时分屏样式多,还有就是开发接口丰富并可定制,如果还能做到开源或采用免费的主流播放引擎实现,那就最好不过了,毕竟开源在商业领域的应用越来越多,是大趋势。从系统集成商的角度来说,尽可能采用成熟开源工程来使用意味着有更多的自主可控机会来降低整个系统的实施风险。
+
+![WX20240102-170635](assets/imgs/WX20240102-170635.png)

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików