├── LICENSE
├── README.md
├── gulpfile.js
├── package-lock.json
├── package.json
└── src
├── chat-src.js
└── dom.js
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # chatroom-frontend
2 | An anonymous chatroom UI
3 |
4 | ---
5 |
6 | npm install
7 |
8 | gulp
9 |
10 | (then modify any .js file in /src directory, save changes, and /dist will be created...)
11 |
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | const gulp = require('gulp');
2 | const browserify = require('browserify');
3 | const babelify = require('babelify');
4 | const source = require('vinyl-source-stream');
5 | const buffer = require('vinyl-buffer');
6 | const uglify = require('gulp-uglify');
7 |
8 | gulp.task('default',()=>{});
9 |
10 | gulp.watch('./src/*.js', ()=>{
11 | console.log('build complete')
12 | return browserify({
13 | entries: ['./src/chat-src.js']
14 | })
15 | .transform(babelify, {
16 | presets: ['es2015']
17 | }) //使用babel转换es6代码
18 | .bundle() //合并打包
19 | .pipe(source('./chat.js')) //将常规流转换为包含Stream的vinyl对象,并且重命名
20 | .pipe(buffer()) //将vinyl对象内容中的Stream转换为Buffer
21 | .pipe(uglify())
22 | .pipe(gulp.dest('./dist/'))
23 | })
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "requires": true,
3 | "lockfileVersion": 1,
4 | "dependencies": {
5 | "babel-core": {
6 | "version": "6.26.3",
7 | "resolved": "http://registry.npm.taobao.org/babel-core/download/babel-core-6.26.3.tgz",
8 | "dev": true,
9 | "requires": {
10 | "babel-runtime": "^6.26.0"
11 | },
12 | "dependencies": {
13 | "babel-code-frame": {
14 | "version": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz",
15 | "bundled": true,
16 | "dependencies": {
17 | "chalk": {
18 | "version": "http://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz",
19 | "bundled": true
20 | },
21 | "esutils": {
22 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
23 | "bundled": true
24 | },
25 | "js-tokens": {
26 | "version": "http://registry.npm.taobao.org/js-tokens/download/js-tokens-3.0.2.tgz",
27 | "bundled": true
28 | }
29 | }
30 | },
31 | "babel-generator": {
32 | "version": "http://registry.npm.taobao.org/babel-generator/download/babel-generator-6.26.1.tgz",
33 | "bundled": true
34 | },
35 | "babel-helpers": {
36 | "version": "http://registry.npm.taobao.org/babel-helpers/download/babel-helpers-6.24.1.tgz",
37 | "bundled": true
38 | },
39 | "babel-messages": {
40 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
41 | "bundled": true,
42 | "dependencies": {
43 | "babel-runtime": {
44 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz"
45 | }
46 | }
47 | },
48 | "babel-register": {
49 | "version": "http://registry.npm.taobao.org/babel-register/download/babel-register-6.26.0.tgz",
50 | "bundled": true
51 | },
52 | "babel-runtime": {
53 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
54 | "bundled": true,
55 | "dependencies": {
56 | "core-js": {
57 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
58 | "bundled": true
59 | },
60 | "regenerator-runtime": {
61 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
62 | "bundled": true
63 | }
64 | }
65 | },
66 | "babel-template": {
67 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
68 | "bundled": true,
69 | "dependencies": {
70 | "babel-runtime": {
71 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
72 | "bundled": true,
73 | "dependencies": {
74 | "core-js": {
75 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
76 | "bundled": true
77 | },
78 | "regenerator-runtime": {
79 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
80 | "bundled": true
81 | }
82 | }
83 | },
84 | "babel-traverse": {
85 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
86 | "bundled": true
87 | },
88 | "babel-types": {
89 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
90 | "bundled": true,
91 | "dependencies": {
92 | "babel-runtime": {
93 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
94 | "bundled": true,
95 | "dependencies": {
96 | "core-js": {
97 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
98 | "bundled": true
99 | },
100 | "regenerator-runtime": {
101 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
102 | "bundled": true
103 | }
104 | }
105 | },
106 | "esutils": {
107 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
108 | "bundled": true
109 | },
110 | "lodash": {
111 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
112 | "bundled": true
113 | },
114 | "to-fast-properties": {
115 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
116 | "bundled": true
117 | }
118 | }
119 | },
120 | "babylon": {
121 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
122 | "bundled": true
123 | },
124 | "lodash": {
125 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
126 | "bundled": true
127 | }
128 | }
129 | },
130 | "babel-traverse": {
131 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
132 | "bundled": true,
133 | "dependencies": {
134 | "babel-code-frame": {
135 | "version": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz",
136 | "bundled": true
137 | },
138 | "babel-messages": {
139 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
140 | "bundled": true,
141 | "dependencies": {
142 | "babel-runtime": {
143 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz"
144 | }
145 | }
146 | },
147 | "babel-runtime": {
148 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
149 | "bundled": true,
150 | "dependencies": {
151 | "core-js": {
152 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
153 | "bundled": true
154 | },
155 | "regenerator-runtime": {
156 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
157 | "bundled": true
158 | }
159 | }
160 | },
161 | "babel-types": {
162 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
163 | "bundled": true,
164 | "dependencies": {
165 | "babel-runtime": {
166 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
167 | "bundled": true,
168 | "dependencies": {}
169 | },
170 | "esutils": {
171 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
172 | "bundled": true
173 | },
174 | "lodash": {
175 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
176 | "bundled": true
177 | },
178 | "to-fast-properties": {
179 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
180 | "bundled": true
181 | }
182 | }
183 | },
184 | "babylon": {
185 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
186 | "bundled": true
187 | },
188 | "debug": {
189 | "version": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
190 | "bundled": true,
191 | "dependencies": {
192 | "ms": {
193 | "version": "http://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz",
194 | "bundled": true
195 | }
196 | }
197 | },
198 | "globals": {
199 | "version": "http://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz",
200 | "bundled": true
201 | },
202 | "invariant": {
203 | "version": "http://registry.npm.taobao.org/invariant/download/invariant-2.2.4.tgz",
204 | "bundled": true
205 | },
206 | "lodash": {
207 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
208 | "bundled": true
209 | }
210 | }
211 | },
212 | "babel-types": {
213 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
214 | "bundled": true,
215 | "dependencies": {
216 | "babel-runtime": {
217 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
218 | "bundled": true,
219 | "dependencies": {}
220 | },
221 | "esutils": {
222 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
223 | "bundled": true
224 | },
225 | "lodash": {
226 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
227 | "bundled": true
228 | },
229 | "to-fast-properties": {
230 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
231 | "bundled": true
232 | }
233 | }
234 | },
235 | "babylon": {
236 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
237 | "bundled": true
238 | },
239 | "convert-source-map": {
240 | "version": "http://registry.npm.taobao.org/convert-source-map/download/convert-source-map-1.5.1.tgz",
241 | "bundled": true
242 | },
243 | "debug": {
244 | "version": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
245 | "bundled": true,
246 | "dependencies": {
247 | "ms": {
248 | "version": "http://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz",
249 | "bundled": true
250 | }
251 | }
252 | },
253 | "json5": {
254 | "version": "http://registry.npm.taobao.org/json5/download/json5-0.5.1.tgz",
255 | "bundled": true
256 | },
257 | "lodash": {
258 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
259 | "bundled": true
260 | },
261 | "minimatch": {
262 | "version": "http://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz",
263 | "bundled": true,
264 | "dependencies": {
265 | "brace-expansion": {
266 | "version": "http://registry.npm.taobao.org/brace-expansion/download/brace-expansion-1.1.11.tgz",
267 | "dependencies": {
268 | "balanced-match": {
269 | "version": "http://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.0.tgz"
270 | },
271 | "concat-map": {
272 | "version": "http://registry.npm.taobao.org/concat-map/download/concat-map-0.0.1.tgz"
273 | }
274 | }
275 | }
276 | }
277 | },
278 | "path-is-absolute": {
279 | "version": "http://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz",
280 | "bundled": true
281 | },
282 | "private": {
283 | "version": "http://registry.npm.taobao.org/private/download/private-0.1.8.tgz",
284 | "bundled": true
285 | },
286 | "slash": {
287 | "version": "http://registry.npm.taobao.org/slash/download/slash-1.0.0.tgz",
288 | "bundled": true
289 | },
290 | "source-map": {
291 | "version": "http://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz",
292 | "bundled": true
293 | }
294 | }
295 | },
296 | "babel-helper-function-name": {
297 | "version": "6.24.1",
298 | "resolved": "http://registry.npm.taobao.org/babel-helper-function-name/download/babel-helper-function-name-6.24.1.tgz",
299 | "dev": true,
300 | "requires": {
301 | "babel-runtime": "^6.22.0"
302 | },
303 | "dependencies": {
304 | "babel-helper-get-function-arity": {
305 | "version": "http://registry.npm.taobao.org/babel-helper-get-function-arity/download/babel-helper-get-function-arity-6.24.1.tgz",
306 | "bundled": true
307 | },
308 | "babel-runtime": {
309 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
310 | "bundled": true,
311 | "dependencies": {
312 | "core-js": {
313 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
314 | "bundled": true
315 | },
316 | "regenerator-runtime": {
317 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
318 | "bundled": true
319 | }
320 | }
321 | },
322 | "babel-template": {
323 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
324 | "bundled": true,
325 | "dependencies": {
326 | "babel-runtime": {
327 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
328 | "bundled": true,
329 | "dependencies": {}
330 | },
331 | "babel-traverse": {
332 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
333 | "bundled": true
334 | },
335 | "babel-types": {
336 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
337 | "bundled": true,
338 | "dependencies": {}
339 | },
340 | "babylon": {
341 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
342 | "bundled": true
343 | },
344 | "lodash": {
345 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
346 | "bundled": true
347 | }
348 | }
349 | },
350 | "babel-traverse": {
351 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
352 | "bundled": true,
353 | "dependencies": {
354 | "babel-code-frame": {
355 | "version": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz",
356 | "bundled": true
357 | },
358 | "babel-messages": {
359 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
360 | "bundled": true,
361 | "dependencies": {}
362 | },
363 | "babel-runtime": {
364 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
365 | "bundled": true,
366 | "dependencies": {}
367 | },
368 | "babel-types": {
369 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
370 | "bundled": true,
371 | "dependencies": {}
372 | },
373 | "babylon": {
374 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
375 | "bundled": true
376 | },
377 | "debug": {
378 | "version": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
379 | "bundled": true,
380 | "dependencies": {}
381 | },
382 | "globals": {
383 | "version": "http://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz",
384 | "bundled": true
385 | },
386 | "invariant": {
387 | "version": "http://registry.npm.taobao.org/invariant/download/invariant-2.2.4.tgz",
388 | "bundled": true
389 | },
390 | "lodash": {
391 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
392 | "bundled": true
393 | }
394 | }
395 | },
396 | "babel-types": {
397 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
398 | "bundled": true,
399 | "dependencies": {
400 | "babel-runtime": {
401 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
402 | "bundled": true,
403 | "dependencies": {}
404 | },
405 | "esutils": {
406 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
407 | "bundled": true
408 | },
409 | "lodash": {
410 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
411 | "bundled": true
412 | },
413 | "to-fast-properties": {
414 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
415 | "bundled": true
416 | }
417 | }
418 | }
419 | }
420 | },
421 | "babel-helper-remap-async-to-generator": {
422 | "version": "6.24.1",
423 | "resolved": "http://registry.npm.taobao.org/babel-helper-remap-async-to-generator/download/babel-helper-remap-async-to-generator-6.24.1.tgz",
424 | "dev": true,
425 | "requires": {
426 | "babel-helper-function-name": "^6.24.1",
427 | "babel-runtime": "^6.22.0"
428 | },
429 | "dependencies": {
430 | "babel-helper-function-name": {
431 | "version": "http://registry.npm.taobao.org/babel-helper-function-name/download/babel-helper-function-name-6.24.1.tgz",
432 | "bundled": true
433 | },
434 | "babel-runtime": {
435 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
436 | "bundled": true,
437 | "dependencies": {
438 | "core-js": {
439 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
440 | "bundled": true
441 | },
442 | "regenerator-runtime": {
443 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
444 | "bundled": true
445 | }
446 | }
447 | },
448 | "babel-template": {
449 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
450 | "bundled": true,
451 | "dependencies": {
452 | "babel-runtime": {
453 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
454 | "bundled": true,
455 | "dependencies": {}
456 | },
457 | "babel-traverse": {
458 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
459 | "bundled": true
460 | },
461 | "babel-types": {
462 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
463 | "bundled": true,
464 | "dependencies": {}
465 | },
466 | "babylon": {
467 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
468 | "bundled": true
469 | },
470 | "lodash": {
471 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
472 | "bundled": true
473 | }
474 | }
475 | },
476 | "babel-traverse": {
477 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
478 | "bundled": true,
479 | "dependencies": {
480 | "babel-code-frame": {
481 | "version": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz",
482 | "bundled": true
483 | },
484 | "babel-messages": {
485 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
486 | "bundled": true,
487 | "dependencies": {}
488 | },
489 | "babel-runtime": {
490 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
491 | "bundled": true,
492 | "dependencies": {}
493 | },
494 | "babel-types": {
495 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
496 | "bundled": true,
497 | "dependencies": {}
498 | },
499 | "babylon": {
500 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
501 | "bundled": true
502 | },
503 | "debug": {
504 | "version": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
505 | "bundled": true,
506 | "dependencies": {}
507 | },
508 | "globals": {
509 | "version": "http://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz",
510 | "bundled": true
511 | },
512 | "invariant": {
513 | "version": "http://registry.npm.taobao.org/invariant/download/invariant-2.2.4.tgz",
514 | "bundled": true
515 | },
516 | "lodash": {
517 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
518 | "bundled": true
519 | }
520 | }
521 | },
522 | "babel-types": {
523 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
524 | "bundled": true,
525 | "dependencies": {
526 | "babel-runtime": {
527 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
528 | "bundled": true,
529 | "dependencies": {}
530 | },
531 | "esutils": {
532 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
533 | "bundled": true
534 | },
535 | "lodash": {
536 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
537 | "bundled": true
538 | },
539 | "to-fast-properties": {
540 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
541 | "bundled": true
542 | }
543 | }
544 | }
545 | }
546 | },
547 | "babel-preset-es2015": {
548 | "version": "6.24.1",
549 | "resolved": "http://registry.npm.taobao.org/babel-preset-es2015/download/babel-preset-es2015-6.24.1.tgz",
550 | "dev": true,
551 | "dependencies": {
552 | "babel-plugin-check-es2015-constants": {
553 | "version": "http://registry.npm.taobao.org/babel-plugin-check-es2015-constants/download/babel-plugin-check-es2015-constants-6.22.0.tgz",
554 | "bundled": true
555 | },
556 | "babel-plugin-transform-es2015-arrow-functions": {
557 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-arrow-functions/download/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz",
558 | "bundled": true
559 | },
560 | "babel-plugin-transform-es2015-block-scoped-functions": {
561 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-block-scoped-functions/download/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz",
562 | "bundled": true
563 | },
564 | "babel-plugin-transform-es2015-block-scoping": {
565 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-block-scoping/download/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz",
566 | "bundled": true
567 | },
568 | "babel-plugin-transform-es2015-classes": {
569 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-classes/download/babel-plugin-transform-es2015-classes-6.24.1.tgz",
570 | "bundled": true,
571 | "dependencies": {
572 | "babel-helper-define-map": {
573 | "version": "http://registry.npm.taobao.org/babel-helper-define-map/download/babel-helper-define-map-6.26.0.tgz",
574 | "bundled": true
575 | },
576 | "babel-helper-function-name": {
577 | "version": "http://registry.npm.taobao.org/babel-helper-function-name/download/babel-helper-function-name-6.24.1.tgz",
578 | "bundled": true,
579 | "dependencies": {
580 | "babel-helper-get-function-arity": {
581 | "version": "http://registry.npm.taobao.org/babel-helper-get-function-arity/download/babel-helper-get-function-arity-6.24.1.tgz",
582 | "bundled": true
583 | },
584 | "babel-runtime": {
585 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
586 | "bundled": true,
587 | "dependencies": {}
588 | },
589 | "babel-template": {
590 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
591 | "bundled": true,
592 | "dependencies": {}
593 | },
594 | "babel-traverse": {
595 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
596 | "bundled": true,
597 | "dependencies": {}
598 | },
599 | "babel-types": {
600 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
601 | "bundled": true,
602 | "dependencies": {}
603 | }
604 | }
605 | },
606 | "babel-helper-optimise-call-expression": {
607 | "version": "http://registry.npm.taobao.org/babel-helper-optimise-call-expression/download/babel-helper-optimise-call-expression-6.24.1.tgz",
608 | "bundled": true,
609 | "dependencies": {
610 | "babel-runtime": {
611 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
612 | "dependencies": {
613 | "core-js": {
614 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
615 | "bundled": true
616 | },
617 | "regenerator-runtime": {
618 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
619 | "bundled": true
620 | }
621 | }
622 | },
623 | "babel-types": {
624 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
625 | "dependencies": {
626 | "babel-runtime": {
627 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
628 | "bundled": true,
629 | "dependencies": {}
630 | },
631 | "esutils": {
632 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
633 | "bundled": true
634 | },
635 | "lodash": {
636 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
637 | "bundled": true
638 | },
639 | "to-fast-properties": {
640 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
641 | "bundled": true
642 | }
643 | }
644 | }
645 | }
646 | },
647 | "babel-helper-replace-supers": {
648 | "version": "http://registry.npm.taobao.org/babel-helper-replace-supers/download/babel-helper-replace-supers-6.24.1.tgz",
649 | "bundled": true,
650 | "dependencies": {
651 | "babel-helper-optimise-call-expression": {
652 | "version": "http://registry.npm.taobao.org/babel-helper-optimise-call-expression/download/babel-helper-optimise-call-expression-6.24.1.tgz"
653 | },
654 | "babel-messages": {
655 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
656 | "dependencies": {
657 | "babel-runtime": {
658 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz"
659 | }
660 | }
661 | },
662 | "babel-runtime": {
663 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
664 | "dependencies": {
665 | "core-js": {
666 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
667 | "bundled": true
668 | },
669 | "regenerator-runtime": {
670 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
671 | "bundled": true
672 | }
673 | }
674 | },
675 | "babel-template": {
676 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
677 | "dependencies": {
678 | "babel-runtime": {
679 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
680 | "bundled": true,
681 | "dependencies": {}
682 | },
683 | "babel-traverse": {
684 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
685 | "bundled": true
686 | },
687 | "babel-types": {
688 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
689 | "bundled": true,
690 | "dependencies": {}
691 | },
692 | "babylon": {
693 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
694 | "bundled": true
695 | },
696 | "lodash": {
697 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
698 | "bundled": true
699 | }
700 | }
701 | },
702 | "babel-traverse": {
703 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
704 | "dependencies": {
705 | "babel-code-frame": {
706 | "version": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz",
707 | "bundled": true
708 | },
709 | "babel-messages": {
710 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
711 | "bundled": true,
712 | "dependencies": {}
713 | },
714 | "babel-runtime": {
715 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
716 | "bundled": true,
717 | "dependencies": {}
718 | },
719 | "babel-types": {
720 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
721 | "bundled": true,
722 | "dependencies": {}
723 | },
724 | "babylon": {
725 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
726 | "bundled": true
727 | },
728 | "debug": {
729 | "version": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
730 | "bundled": true,
731 | "dependencies": {}
732 | },
733 | "globals": {
734 | "version": "http://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz",
735 | "bundled": true
736 | },
737 | "invariant": {
738 | "version": "http://registry.npm.taobao.org/invariant/download/invariant-2.2.4.tgz",
739 | "bundled": true
740 | },
741 | "lodash": {
742 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
743 | "bundled": true
744 | }
745 | }
746 | },
747 | "babel-types": {
748 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
749 | "dependencies": {
750 | "babel-runtime": {
751 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
752 | "bundled": true,
753 | "dependencies": {}
754 | },
755 | "esutils": {
756 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
757 | "bundled": true
758 | },
759 | "lodash": {
760 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
761 | "bundled": true
762 | },
763 | "to-fast-properties": {
764 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
765 | "bundled": true
766 | }
767 | }
768 | }
769 | }
770 | },
771 | "babel-messages": {
772 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
773 | "bundled": true,
774 | "dependencies": {
775 | "babel-runtime": {
776 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz"
777 | }
778 | }
779 | },
780 | "babel-runtime": {
781 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
782 | "bundled": true,
783 | "dependencies": {
784 | "core-js": {
785 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
786 | "bundled": true
787 | },
788 | "regenerator-runtime": {
789 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
790 | "bundled": true
791 | }
792 | }
793 | },
794 | "babel-template": {
795 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
796 | "bundled": true,
797 | "dependencies": {
798 | "babel-runtime": {
799 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
800 | "bundled": true,
801 | "dependencies": {}
802 | },
803 | "babel-traverse": {
804 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
805 | "bundled": true
806 | },
807 | "babel-types": {
808 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
809 | "bundled": true,
810 | "dependencies": {}
811 | },
812 | "babylon": {
813 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
814 | "bundled": true
815 | },
816 | "lodash": {
817 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
818 | "bundled": true
819 | }
820 | }
821 | },
822 | "babel-traverse": {
823 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
824 | "bundled": true,
825 | "dependencies": {
826 | "babel-code-frame": {
827 | "version": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz",
828 | "bundled": true
829 | },
830 | "babel-messages": {
831 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
832 | "bundled": true,
833 | "dependencies": {}
834 | },
835 | "babel-runtime": {
836 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
837 | "bundled": true,
838 | "dependencies": {}
839 | },
840 | "babel-types": {
841 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
842 | "bundled": true,
843 | "dependencies": {}
844 | },
845 | "babylon": {
846 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
847 | "bundled": true
848 | },
849 | "debug": {
850 | "version": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
851 | "bundled": true,
852 | "dependencies": {}
853 | },
854 | "globals": {
855 | "version": "http://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz",
856 | "bundled": true
857 | },
858 | "invariant": {
859 | "version": "http://registry.npm.taobao.org/invariant/download/invariant-2.2.4.tgz",
860 | "bundled": true
861 | },
862 | "lodash": {
863 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
864 | "bundled": true
865 | }
866 | }
867 | },
868 | "babel-types": {
869 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
870 | "bundled": true,
871 | "dependencies": {
872 | "babel-runtime": {
873 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
874 | "bundled": true,
875 | "dependencies": {}
876 | },
877 | "esutils": {
878 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
879 | "bundled": true
880 | },
881 | "lodash": {
882 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
883 | "bundled": true
884 | },
885 | "to-fast-properties": {
886 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
887 | "bundled": true
888 | }
889 | }
890 | }
891 | }
892 | },
893 | "babel-plugin-transform-es2015-computed-properties": {
894 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-computed-properties/download/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz",
895 | "bundled": true
896 | },
897 | "babel-plugin-transform-es2015-destructuring": {
898 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-destructuring/download/babel-plugin-transform-es2015-destructuring-6.23.0.tgz",
899 | "bundled": true
900 | },
901 | "babel-plugin-transform-es2015-duplicate-keys": {
902 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-duplicate-keys/download/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz",
903 | "bundled": true
904 | },
905 | "babel-plugin-transform-es2015-for-of": {
906 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-for-of/download/babel-plugin-transform-es2015-for-of-6.23.0.tgz",
907 | "bundled": true
908 | },
909 | "babel-plugin-transform-es2015-function-name": {
910 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-function-name/download/babel-plugin-transform-es2015-function-name-6.24.1.tgz",
911 | "bundled": true,
912 | "dependencies": {
913 | "babel-helper-function-name": {
914 | "version": "http://registry.npm.taobao.org/babel-helper-function-name/download/babel-helper-function-name-6.24.1.tgz",
915 | "bundled": true,
916 | "dependencies": {
917 | "babel-helper-get-function-arity": {
918 | "version": "http://registry.npm.taobao.org/babel-helper-get-function-arity/download/babel-helper-get-function-arity-6.24.1.tgz",
919 | "bundled": true
920 | },
921 | "babel-runtime": {
922 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
923 | "bundled": true,
924 | "dependencies": {}
925 | },
926 | "babel-template": {
927 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
928 | "bundled": true,
929 | "dependencies": {}
930 | },
931 | "babel-traverse": {
932 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
933 | "bundled": true,
934 | "dependencies": {}
935 | },
936 | "babel-types": {
937 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
938 | "bundled": true,
939 | "dependencies": {}
940 | }
941 | }
942 | },
943 | "babel-runtime": {
944 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
945 | "bundled": true,
946 | "dependencies": {
947 | "core-js": {
948 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
949 | "bundled": true
950 | },
951 | "regenerator-runtime": {
952 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
953 | "bundled": true
954 | }
955 | }
956 | },
957 | "babel-types": {
958 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
959 | "bundled": true,
960 | "dependencies": {
961 | "babel-runtime": {
962 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
963 | "bundled": true,
964 | "dependencies": {}
965 | },
966 | "esutils": {
967 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
968 | "bundled": true
969 | },
970 | "lodash": {
971 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
972 | "bundled": true
973 | },
974 | "to-fast-properties": {
975 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
976 | "bundled": true
977 | }
978 | }
979 | }
980 | }
981 | },
982 | "babel-plugin-transform-es2015-literals": {
983 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-literals/download/babel-plugin-transform-es2015-literals-6.22.0.tgz",
984 | "bundled": true
985 | },
986 | "babel-plugin-transform-es2015-modules-amd": {
987 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-amd/download/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz",
988 | "bundled": true
989 | },
990 | "babel-plugin-transform-es2015-modules-commonjs": {
991 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-commonjs/download/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz",
992 | "bundled": true,
993 | "dependencies": {
994 | "babel-plugin-transform-strict-mode": {
995 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-strict-mode/download/babel-plugin-transform-strict-mode-6.24.1.tgz"
996 | },
997 | "babel-runtime": {
998 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
999 | "dependencies": {
1000 | "core-js": {
1001 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1002 | "bundled": true
1003 | },
1004 | "regenerator-runtime": {
1005 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1006 | "bundled": true
1007 | }
1008 | }
1009 | },
1010 | "babel-template": {
1011 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
1012 | "dependencies": {
1013 | "babel-runtime": {
1014 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1015 | "bundled": true,
1016 | "dependencies": {}
1017 | },
1018 | "babel-traverse": {
1019 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
1020 | "bundled": true
1021 | },
1022 | "babel-types": {
1023 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1024 | "bundled": true,
1025 | "dependencies": {}
1026 | },
1027 | "babylon": {
1028 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
1029 | "bundled": true
1030 | },
1031 | "lodash": {
1032 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1033 | "bundled": true
1034 | }
1035 | }
1036 | },
1037 | "babel-types": {
1038 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1039 | "dependencies": {
1040 | "babel-runtime": {
1041 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1042 | "bundled": true,
1043 | "dependencies": {}
1044 | },
1045 | "esutils": {
1046 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
1047 | "bundled": true
1048 | },
1049 | "lodash": {
1050 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1051 | "bundled": true
1052 | },
1053 | "to-fast-properties": {
1054 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
1055 | "bundled": true
1056 | }
1057 | }
1058 | }
1059 | }
1060 | },
1061 | "babel-plugin-transform-es2015-modules-systemjs": {
1062 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-systemjs/download/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz",
1063 | "bundled": true,
1064 | "dependencies": {
1065 | "babel-helper-hoist-variables": {
1066 | "version": "http://registry.npm.taobao.org/babel-helper-hoist-variables/download/babel-helper-hoist-variables-6.24.1.tgz",
1067 | "bundled": true,
1068 | "dependencies": {
1069 | "babel-runtime": {
1070 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1071 | "dependencies": {
1072 | "core-js": {
1073 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1074 | "bundled": true
1075 | },
1076 | "regenerator-runtime": {
1077 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1078 | "bundled": true
1079 | }
1080 | }
1081 | },
1082 | "babel-types": {
1083 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1084 | "dependencies": {
1085 | "babel-runtime": {
1086 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1087 | "bundled": true,
1088 | "dependencies": {}
1089 | },
1090 | "esutils": {
1091 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
1092 | "bundled": true
1093 | },
1094 | "lodash": {
1095 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1096 | "bundled": true
1097 | },
1098 | "to-fast-properties": {
1099 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
1100 | "bundled": true
1101 | }
1102 | }
1103 | }
1104 | }
1105 | },
1106 | "babel-runtime": {
1107 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1108 | "bundled": true,
1109 | "dependencies": {
1110 | "core-js": {
1111 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1112 | "bundled": true
1113 | },
1114 | "regenerator-runtime": {
1115 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1116 | "bundled": true
1117 | }
1118 | }
1119 | },
1120 | "babel-template": {
1121 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
1122 | "bundled": true,
1123 | "dependencies": {
1124 | "babel-runtime": {
1125 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1126 | "bundled": true,
1127 | "dependencies": {}
1128 | },
1129 | "babel-traverse": {
1130 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
1131 | "bundled": true
1132 | },
1133 | "babel-types": {
1134 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1135 | "bundled": true,
1136 | "dependencies": {}
1137 | },
1138 | "babylon": {
1139 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
1140 | "bundled": true
1141 | },
1142 | "lodash": {
1143 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1144 | "bundled": true
1145 | }
1146 | }
1147 | }
1148 | }
1149 | },
1150 | "babel-plugin-transform-es2015-modules-umd": {
1151 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-umd/download/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz",
1152 | "bundled": true,
1153 | "dependencies": {
1154 | "babel-plugin-transform-es2015-modules-amd": {
1155 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-amd/download/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz",
1156 | "dependencies": {
1157 | "babel-plugin-transform-es2015-modules-commonjs": {
1158 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-commonjs/download/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz"
1159 | },
1160 | "babel-runtime": {
1161 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1162 | "dependencies": {
1163 | "core-js": {
1164 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1165 | "bundled": true
1166 | },
1167 | "regenerator-runtime": {
1168 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1169 | "bundled": true
1170 | }
1171 | }
1172 | },
1173 | "babel-template": {
1174 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
1175 | "dependencies": {
1176 | "babel-runtime": {
1177 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1178 | "bundled": true,
1179 | "dependencies": {}
1180 | },
1181 | "babel-traverse": {
1182 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
1183 | "bundled": true
1184 | },
1185 | "babel-types": {
1186 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1187 | "bundled": true,
1188 | "dependencies": {}
1189 | },
1190 | "babylon": {
1191 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
1192 | "bundled": true
1193 | },
1194 | "lodash": {
1195 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1196 | "bundled": true
1197 | }
1198 | }
1199 | }
1200 | }
1201 | },
1202 | "babel-runtime": {
1203 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1204 | "dependencies": {
1205 | "core-js": {
1206 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1207 | "bundled": true
1208 | },
1209 | "regenerator-runtime": {
1210 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1211 | "bundled": true
1212 | }
1213 | }
1214 | },
1215 | "babel-template": {
1216 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
1217 | "dependencies": {
1218 | "babel-runtime": {
1219 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1220 | "bundled": true,
1221 | "dependencies": {}
1222 | },
1223 | "babel-traverse": {
1224 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
1225 | "bundled": true
1226 | },
1227 | "babel-types": {
1228 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1229 | "bundled": true,
1230 | "dependencies": {}
1231 | },
1232 | "babylon": {
1233 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
1234 | "bundled": true
1235 | },
1236 | "lodash": {
1237 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1238 | "bundled": true
1239 | }
1240 | }
1241 | }
1242 | }
1243 | },
1244 | "babel-plugin-transform-es2015-object-super": {
1245 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-object-super/download/babel-plugin-transform-es2015-object-super-6.24.1.tgz",
1246 | "bundled": true,
1247 | "dependencies": {
1248 | "babel-helper-replace-supers": {
1249 | "version": "http://registry.npm.taobao.org/babel-helper-replace-supers/download/babel-helper-replace-supers-6.24.1.tgz",
1250 | "dependencies": {
1251 | "babel-helper-optimise-call-expression": {
1252 | "version": "http://registry.npm.taobao.org/babel-helper-optimise-call-expression/download/babel-helper-optimise-call-expression-6.24.1.tgz"
1253 | },
1254 | "babel-messages": {
1255 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
1256 | "dependencies": {}
1257 | },
1258 | "babel-runtime": {
1259 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1260 | "dependencies": {}
1261 | },
1262 | "babel-template": {
1263 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
1264 | "dependencies": {}
1265 | },
1266 | "babel-traverse": {
1267 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
1268 | "dependencies": {}
1269 | },
1270 | "babel-types": {
1271 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1272 | "dependencies": {}
1273 | }
1274 | }
1275 | },
1276 | "babel-runtime": {
1277 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1278 | "dependencies": {
1279 | "core-js": {
1280 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1281 | "bundled": true
1282 | },
1283 | "regenerator-runtime": {
1284 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1285 | "bundled": true
1286 | }
1287 | }
1288 | }
1289 | }
1290 | },
1291 | "babel-plugin-transform-es2015-parameters": {
1292 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-parameters/download/babel-plugin-transform-es2015-parameters-6.24.1.tgz",
1293 | "bundled": true,
1294 | "dependencies": {
1295 | "babel-helper-call-delegate": {
1296 | "version": "http://registry.npm.taobao.org/babel-helper-call-delegate/download/babel-helper-call-delegate-6.24.1.tgz"
1297 | },
1298 | "babel-helper-get-function-arity": {
1299 | "version": "http://registry.npm.taobao.org/babel-helper-get-function-arity/download/babel-helper-get-function-arity-6.24.1.tgz",
1300 | "dependencies": {
1301 | "babel-runtime": {
1302 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1303 | "bundled": true,
1304 | "dependencies": {
1305 | "core-js": {
1306 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1307 | "bundled": true
1308 | },
1309 | "regenerator-runtime": {
1310 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1311 | "bundled": true
1312 | }
1313 | }
1314 | },
1315 | "babel-types": {
1316 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1317 | "bundled": true,
1318 | "dependencies": {
1319 | "babel-runtime": {
1320 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1321 | "bundled": true,
1322 | "dependencies": {}
1323 | },
1324 | "esutils": {
1325 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
1326 | "bundled": true
1327 | },
1328 | "lodash": {
1329 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1330 | "bundled": true
1331 | },
1332 | "to-fast-properties": {
1333 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
1334 | "bundled": true
1335 | }
1336 | }
1337 | }
1338 | }
1339 | },
1340 | "babel-runtime": {
1341 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1342 | "dependencies": {
1343 | "core-js": {
1344 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1345 | "bundled": true
1346 | },
1347 | "regenerator-runtime": {
1348 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1349 | "bundled": true
1350 | }
1351 | }
1352 | },
1353 | "babel-template": {
1354 | "version": "http://registry.npm.taobao.org/babel-template/download/babel-template-6.26.0.tgz",
1355 | "dependencies": {
1356 | "babel-runtime": {
1357 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1358 | "bundled": true,
1359 | "dependencies": {}
1360 | },
1361 | "babel-traverse": {
1362 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
1363 | "bundled": true
1364 | },
1365 | "babel-types": {
1366 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1367 | "bundled": true,
1368 | "dependencies": {}
1369 | },
1370 | "babylon": {
1371 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
1372 | "bundled": true
1373 | },
1374 | "lodash": {
1375 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1376 | "bundled": true
1377 | }
1378 | }
1379 | },
1380 | "babel-traverse": {
1381 | "version": "http://registry.npm.taobao.org/babel-traverse/download/babel-traverse-6.26.0.tgz",
1382 | "dependencies": {
1383 | "babel-code-frame": {
1384 | "version": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz",
1385 | "bundled": true
1386 | },
1387 | "babel-messages": {
1388 | "version": "http://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz",
1389 | "bundled": true,
1390 | "dependencies": {}
1391 | },
1392 | "babel-runtime": {
1393 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1394 | "bundled": true,
1395 | "dependencies": {}
1396 | },
1397 | "babel-types": {
1398 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1399 | "bundled": true,
1400 | "dependencies": {}
1401 | },
1402 | "babylon": {
1403 | "version": "http://registry.npm.taobao.org/babylon/download/babylon-6.18.0.tgz",
1404 | "bundled": true
1405 | },
1406 | "debug": {
1407 | "version": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
1408 | "bundled": true,
1409 | "dependencies": {}
1410 | },
1411 | "globals": {
1412 | "version": "http://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz",
1413 | "bundled": true
1414 | },
1415 | "invariant": {
1416 | "version": "http://registry.npm.taobao.org/invariant/download/invariant-2.2.4.tgz",
1417 | "bundled": true
1418 | },
1419 | "lodash": {
1420 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1421 | "bundled": true
1422 | }
1423 | }
1424 | },
1425 | "babel-types": {
1426 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1427 | "dependencies": {
1428 | "babel-runtime": {
1429 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1430 | "bundled": true,
1431 | "dependencies": {}
1432 | },
1433 | "esutils": {
1434 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
1435 | "bundled": true
1436 | },
1437 | "lodash": {
1438 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1439 | "bundled": true
1440 | },
1441 | "to-fast-properties": {
1442 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
1443 | "bundled": true
1444 | }
1445 | }
1446 | }
1447 | }
1448 | },
1449 | "babel-plugin-transform-es2015-shorthand-properties": {
1450 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-shorthand-properties/download/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz",
1451 | "bundled": true
1452 | },
1453 | "babel-plugin-transform-es2015-spread": {
1454 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-spread/download/babel-plugin-transform-es2015-spread-6.22.0.tgz",
1455 | "bundled": true
1456 | },
1457 | "babel-plugin-transform-es2015-sticky-regex": {
1458 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-sticky-regex/download/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz",
1459 | "bundled": true
1460 | },
1461 | "babel-plugin-transform-es2015-template-literals": {
1462 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-template-literals/download/babel-plugin-transform-es2015-template-literals-6.22.0.tgz",
1463 | "bundled": true
1464 | },
1465 | "babel-plugin-transform-es2015-typeof-symbol": {
1466 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-typeof-symbol/download/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz",
1467 | "bundled": true
1468 | },
1469 | "babel-plugin-transform-es2015-unicode-regex": {
1470 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-unicode-regex/download/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz",
1471 | "bundled": true,
1472 | "dependencies": {
1473 | "babel-helper-regex": {
1474 | "version": "http://registry.npm.taobao.org/babel-helper-regex/download/babel-helper-regex-6.26.0.tgz",
1475 | "bundled": true,
1476 | "dependencies": {
1477 | "babel-runtime": {
1478 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1479 | "bundled": true,
1480 | "dependencies": {
1481 | "core-js": {
1482 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1483 | "bundled": true
1484 | },
1485 | "regenerator-runtime": {
1486 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1487 | "bundled": true
1488 | }
1489 | }
1490 | },
1491 | "babel-types": {
1492 | "version": "http://registry.npm.taobao.org/babel-types/download/babel-types-6.26.0.tgz",
1493 | "bundled": true,
1494 | "dependencies": {
1495 | "babel-runtime": {
1496 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1497 | "bundled": true,
1498 | "dependencies": {}
1499 | },
1500 | "esutils": {
1501 | "version": "http://registry.npm.taobao.org/esutils/download/esutils-2.0.2.tgz",
1502 | "bundled": true
1503 | },
1504 | "lodash": {
1505 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1506 | "bundled": true
1507 | },
1508 | "to-fast-properties": {
1509 | "version": "http://registry.npm.taobao.org/to-fast-properties/download/to-fast-properties-1.0.3.tgz",
1510 | "bundled": true
1511 | }
1512 | }
1513 | },
1514 | "lodash": {
1515 | "version": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1516 | "bundled": true
1517 | }
1518 | }
1519 | },
1520 | "babel-runtime": {
1521 | "version": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1522 | "bundled": true,
1523 | "dependencies": {
1524 | "core-js": {
1525 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1526 | "bundled": true
1527 | },
1528 | "regenerator-runtime": {
1529 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1530 | "bundled": true
1531 | }
1532 | }
1533 | },
1534 | "regexpu-core": {
1535 | "version": "http://registry.npm.taobao.org/regexpu-core/download/regexpu-core-2.0.0.tgz",
1536 | "bundled": true
1537 | }
1538 | }
1539 | },
1540 | "babel-plugin-transform-regenerator": {
1541 | "version": "http://registry.npm.taobao.org/babel-plugin-transform-regenerator/download/babel-plugin-transform-regenerator-6.26.0.tgz",
1542 | "bundled": true
1543 | }
1544 | }
1545 | },
1546 | "babel-preset-es2016": {
1547 | "version": "6.24.1",
1548 | "resolved": "http://registry.npm.taobao.org/babel-preset-es2016/download/babel-preset-es2016-6.24.1.tgz",
1549 | "dev": true
1550 | },
1551 | "babel-preset-es2017": {
1552 | "version": "6.24.1",
1553 | "resolved": "http://registry.npm.taobao.org/babel-preset-es2017/download/babel-preset-es2017-6.24.1.tgz",
1554 | "integrity": "sha1-WXvq37n38gi8/YoS6bKym4svFNE=",
1555 | "dev": true,
1556 | "requires": {
1557 | "babel-plugin-syntax-trailing-function-commas": "^6.22.0",
1558 | "babel-plugin-transform-async-to-generator": "^6.24.1"
1559 | },
1560 | "dependencies": {
1561 | "babel-plugin-syntax-async-functions": {
1562 | "version": "6.13.0",
1563 | "resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-async-functions/download/babel-plugin-syntax-async-functions-6.13.0.tgz",
1564 | "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=",
1565 | "dev": true
1566 | },
1567 | "babel-plugin-syntax-trailing-function-commas": {
1568 | "version": "6.22.0",
1569 | "resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-trailing-function-commas/download/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz",
1570 | "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=",
1571 | "dev": true
1572 | },
1573 | "babel-plugin-transform-async-to-generator": {
1574 | "version": "6.24.1",
1575 | "resolved": "http://registry.npm.taobao.org/babel-plugin-transform-async-to-generator/download/babel-plugin-transform-async-to-generator-6.24.1.tgz",
1576 | "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=",
1577 | "dev": true,
1578 | "requires": {
1579 | "babel-helper-remap-async-to-generator": "^6.24.1",
1580 | "babel-plugin-syntax-async-functions": "^6.8.0",
1581 | "babel-runtime": "^6.22.0"
1582 | }
1583 | }
1584 | }
1585 | },
1586 | "babel-preset-es2018": {
1587 | "version": "1.0.0",
1588 | "resolved": "http://registry.npm.taobao.org/babel-preset-es2018/download/babel-preset-es2018-1.0.0.tgz",
1589 | "integrity": "sha1-3wg+ySTFw8hTErnldcuRrFdVkjY=",
1590 | "dev": true
1591 | },
1592 | "babel-runtime": {
1593 | "version": "6.26.0",
1594 | "resolved": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
1595 | "dev": true,
1596 | "dependencies": {
1597 | "core-js": {
1598 | "version": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.7.tgz",
1599 | "bundled": true
1600 | },
1601 | "regenerator-runtime": {
1602 | "version": "http://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
1603 | "bundled": true
1604 | }
1605 | }
1606 | },
1607 | "gulp": {
1608 | "version": "3.9.1",
1609 | "resolved": "http://registry.npm.taobao.org/gulp/download/gulp-3.9.1.tgz",
1610 | "dev": true,
1611 | "dependencies": {
1612 | "archy": {
1613 | "version": "http://registry.npm.taobao.org/archy/download/archy-1.0.0.tgz",
1614 | "bundled": true
1615 | },
1616 | "chalk": {
1617 | "version": "http://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz",
1618 | "bundled": true,
1619 | "dependencies": {
1620 | "ansi-styles": {
1621 | "version": "http://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz"
1622 | },
1623 | "escape-string-regexp": {
1624 | "version": "http://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz"
1625 | },
1626 | "has-ansi": {
1627 | "version": "http://registry.npm.taobao.org/has-ansi/download/has-ansi-2.0.0.tgz"
1628 | },
1629 | "strip-ansi": {
1630 | "version": "http://registry.npm.taobao.org/strip-ansi/download/strip-ansi-3.0.1.tgz"
1631 | },
1632 | "supports-color": {
1633 | "version": "http://registry.npm.taobao.org/supports-color/download/supports-color-2.0.0.tgz"
1634 | }
1635 | }
1636 | },
1637 | "deprecated": {
1638 | "version": "http://registry.npm.taobao.org/deprecated/download/deprecated-0.0.1.tgz",
1639 | "bundled": true
1640 | },
1641 | "gulp-util": {
1642 | "version": "http://registry.npm.taobao.org/gulp-util/download/gulp-util-3.0.8.tgz",
1643 | "bundled": true
1644 | },
1645 | "interpret": {
1646 | "version": "http://registry.npm.taobao.org/interpret/download/interpret-1.1.0.tgz",
1647 | "bundled": true
1648 | },
1649 | "liftoff": {
1650 | "version": "http://registry.npm.taobao.org/liftoff/download/liftoff-2.5.0.tgz",
1651 | "bundled": true
1652 | },
1653 | "minimist": {
1654 | "version": "http://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz",
1655 | "bundled": true
1656 | },
1657 | "orchestrator": {
1658 | "version": "http://registry.npm.taobao.org/orchestrator/download/orchestrator-0.3.8.tgz",
1659 | "bundled": true
1660 | },
1661 | "pretty-hrtime": {
1662 | "version": "http://registry.npm.taobao.org/pretty-hrtime/download/pretty-hrtime-1.0.3.tgz",
1663 | "bundled": true
1664 | },
1665 | "semver": {
1666 | "version": "http://registry.npm.taobao.org/semver/download/semver-4.3.6.tgz",
1667 | "bundled": true
1668 | },
1669 | "tildify": {
1670 | "version": "http://registry.npm.taobao.org/tildify/download/tildify-1.2.0.tgz",
1671 | "bundled": true
1672 | },
1673 | "v8flags": {
1674 | "version": "http://registry.npm.taobao.org/v8flags/download/v8flags-2.1.1.tgz",
1675 | "bundled": true
1676 | },
1677 | "vinyl-fs": {
1678 | "version": "http://registry.npm.taobao.org/vinyl-fs/download/vinyl-fs-0.3.14.tgz",
1679 | "bundled": true
1680 | }
1681 | }
1682 | },
1683 | "gulp-babel": {
1684 | "version": "7.0.1",
1685 | "resolved": "http://registry.npm.taobao.org/gulp-babel/download/gulp-babel-7.0.1.tgz",
1686 | "dev": true,
1687 | "requires": {
1688 | "through2": "^2.0.0"
1689 | },
1690 | "dependencies": {
1691 | "plugin-error": {
1692 | "version": "http://registry.npm.taobao.org/plugin-error/download/plugin-error-1.0.1.tgz",
1693 | "bundled": true
1694 | },
1695 | "replace-ext": {
1696 | "version": "http://registry.npm.taobao.org/replace-ext/download/replace-ext-0.0.1.tgz",
1697 | "bundled": true
1698 | },
1699 | "through2": {
1700 | "version": "http://registry.npm.taobao.org/through2/download/through2-2.0.3.tgz",
1701 | "bundled": true,
1702 | "dependencies": {
1703 | "readable-stream": {
1704 | "version": "http://registry.npm.taobao.org/readable-stream/download/readable-stream-2.3.6.tgz",
1705 | "bundled": true
1706 | },
1707 | "xtend": {
1708 | "version": "http://registry.npm.taobao.org/xtend/download/xtend-4.0.1.tgz",
1709 | "bundled": true
1710 | }
1711 | }
1712 | },
1713 | "vinyl-sourcemaps-apply": {
1714 | "version": "http://registry.npm.taobao.org/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.2.1.tgz",
1715 | "bundled": true
1716 | }
1717 | }
1718 | },
1719 | "gulp-uglify": {
1720 | "version": "3.0.1",
1721 | "resolved": "http://registry.npm.taobao.org/gulp-uglify/download/gulp-uglify-3.0.1.tgz",
1722 | "integrity": "sha1-jT7uRmUhvqaxD9dd/3Kt+LfqLZc=",
1723 | "dev": true,
1724 | "requires": {
1725 | "gulplog": "^1.0.0",
1726 | "has-gulplog": "^0.1.0",
1727 | "lodash": "^4.13.1",
1728 | "make-error-cause": "^1.1.1",
1729 | "safe-buffer": "^5.1.2",
1730 | "through2": "^2.0.0",
1731 | "uglify-js": "^3.0.5",
1732 | "vinyl-sourcemaps-apply": "^0.2.0"
1733 | },
1734 | "dependencies": {
1735 | "commander": {
1736 | "version": "2.16.0",
1737 | "resolved": "http://registry.npm.taobao.org/commander/download/commander-2.16.0.tgz",
1738 | "integrity": "sha1-8WOQWTmWzrTz7rAgsx14Uo9/ilA=",
1739 | "dev": true
1740 | },
1741 | "has-gulplog": {
1742 | "version": "0.1.0",
1743 | "resolved": "http://registry.npm.taobao.org/has-gulplog/download/has-gulplog-0.1.0.tgz",
1744 | "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=",
1745 | "dev": true,
1746 | "requires": {
1747 | "sparkles": "^1.0.0"
1748 | }
1749 | },
1750 | "lodash": {
1751 | "version": "4.17.10",
1752 | "resolved": "http://registry.npm.taobao.org/lodash/download/lodash-4.17.10.tgz",
1753 | "integrity": "sha1-G3eTz3JZ6jj7NmHU04syYK+K5Oc=",
1754 | "dev": true
1755 | },
1756 | "source-map": {
1757 | "version": "0.6.1",
1758 | "resolved": "http://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
1759 | "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
1760 | "dev": true
1761 | },
1762 | "uglify-js": {
1763 | "version": "3.4.7",
1764 | "resolved": "http://registry.npm.taobao.org/uglify-js/download/uglify-js-3.4.7.tgz",
1765 | "integrity": "sha1-Tfa5LlR4mqkholTLHjNwTW7BK4k=",
1766 | "dev": true,
1767 | "requires": {
1768 | "commander": "~2.16.0",
1769 | "source-map": "~0.6.1"
1770 | }
1771 | },
1772 | "vinyl-sourcemaps-apply": {
1773 | "version": "0.2.1",
1774 | "resolved": "http://registry.npm.taobao.org/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.2.1.tgz",
1775 | "integrity": "sha1-q2VJ1h0XLCsbh75cUI0jnI74dwU=",
1776 | "dev": true,
1777 | "requires": {
1778 | "source-map": "^0.5.1"
1779 | },
1780 | "dependencies": {
1781 | "source-map": {
1782 | "version": "0.5.7",
1783 | "resolved": "http://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz",
1784 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
1785 | "dev": true
1786 | }
1787 | }
1788 | }
1789 | }
1790 | },
1791 | "gulplog": {
1792 | "version": "1.0.0",
1793 | "resolved": "http://registry.npm.taobao.org/gulplog/download/gulplog-1.0.0.tgz",
1794 | "dev": true,
1795 | "dependencies": {
1796 | "glogg": {
1797 | "version": "http://registry.npm.taobao.org/glogg/download/glogg-1.0.1.tgz",
1798 | "bundled": true
1799 | }
1800 | }
1801 | },
1802 | "make-error-cause": {
1803 | "version": "1.2.2",
1804 | "resolved": "http://registry.npm.taobao.org/make-error-cause/download/make-error-cause-1.2.2.tgz",
1805 | "dev": true,
1806 | "dependencies": {
1807 | "make-error": {
1808 | "version": "http://registry.npm.taobao.org/make-error/download/make-error-1.3.4.tgz",
1809 | "bundled": true
1810 | }
1811 | }
1812 | },
1813 | "safe-buffer": {
1814 | "version": "5.1.2",
1815 | "resolved": "http://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.1.2.tgz",
1816 | "dev": true
1817 | },
1818 | "sparkles": {
1819 | "version": "1.0.1",
1820 | "resolved": "http://registry.npm.taobao.org/sparkles/download/sparkles-1.0.1.tgz",
1821 | "dev": true
1822 | },
1823 | "through2": {
1824 | "version": "2.0.3",
1825 | "resolved": "http://registry.npm.taobao.org/through2/download/through2-2.0.3.tgz",
1826 | "dev": true,
1827 | "dependencies": {
1828 | "readable-stream": {
1829 | "version": "http://registry.npm.taobao.org/readable-stream/download/readable-stream-2.3.6.tgz",
1830 | "bundled": true
1831 | },
1832 | "xtend": {
1833 | "version": "http://registry.npm.taobao.org/xtend/download/xtend-4.0.1.tgz",
1834 | "bundled": true
1835 | }
1836 | }
1837 | }
1838 | }
1839 | }
1840 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "@babel/core": "^7.0.0-rc.1",
4 | "@babel/preset-env": "^7.0.0-rc.1",
5 | "babel-core": "^6.26.3",
6 | "babel-polyfill": "^6.26.0",
7 | "babel-preset-es2015": "^6.24.1",
8 | "babel-preset-es2016": "^6.24.1",
9 | "babel-preset-es2017": "^6.24.1",
10 | "babelify": "^8.0.0",
11 | "browserify": "^16.2.2",
12 | "gulp": "^3.9.1",
13 | "gulp-babel": "^7.0.1",
14 | "gulp-cmd-pack": "^1.0.9",
15 | "gulp-cssnano": "^2.1.3",
16 | "gulp-uglify": "^3.0.1",
17 | "vinyl-buffer": "^1.0.1",
18 | "vinyl-source-stream": "^2.0.0"
19 | },
20 | "dependencies": {
21 | "jquery-slim": "^3.0.0"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/chat-src.js:
--------------------------------------------------------------------------------
1 | ;(function(){
2 | if(window._hasCtrmInjected){
3 | document.querySelector('.ctrm-title').click();
4 | return;
5 | };
6 | window._hasCtrmInjected = true;
7 |
8 | let $, ws, isWaiting, isReconnecting, checkTimer, myChatId, myChatName;
9 | let memberList;
10 | const wsServer = 'wss://topurl.cn:9001';
11 |
12 | if(!window.jQuery){
13 | $ = require('jQuery-slim');
14 | } else {
15 | $ = window.jQuery;
16 | }
17 | const $dom = $(require('./dom.js'));
18 | const $body = $(document.body);
19 | $body.append($dom);
20 | initWs();
21 | const $ctrm = $('#ctrm_');
22 | const $title = $ctrm.find('.ctrm-title');
23 | const $url = $ctrm.find('.ctrm-title-url');
24 | const $panel = $ctrm.find('.ctrm-panel');
25 | const $dialog = $ctrm.find('.ctrm-dialog');
26 | const $textarea = $ctrm.find('.ctrm-textarea textarea');
27 | const $emit = $ctrm.find('.ctrm-emit');
28 | const $online = $ctrm.find('.ctrm-online-wrap');
29 | const $domain = $ctrm.find('.ctrm-domain-wrap');
30 | const $countwrap = $ctrm.find('.ctrm-title-countwrap');
31 | const $count = $ctrm.find('.ctrm-title-count');
32 | const $close = $ctrm.find('.ctrm-title-close');
33 | const $reconn = $ctrm.find('.ctrm-title-reconn');
34 | bindEvent();
35 |
36 | function bindEvent(){
37 | $close.click((e)=>{
38 | $ctrm.addClass('ctrm-close');
39 | $close.hide();
40 | $reconn.hide();
41 | $url.hide();
42 | $countwrap.show();
43 | e.stopPropagation();
44 | });
45 | $title.click(()=>{
46 | if($ctrm.hasClass('ctrm-close')){
47 | $ctrm.removeClass('ctrm-close');
48 | $close.show();
49 | $reconn.show();
50 | $countwrap.hide();
51 | onResize();
52 | }
53 | });
54 | $reconn.click(tryToReconnect);
55 | $emit.click(sendMessage);
56 | $textarea.on('keydown',function(event) {
57 | if(event.keyCode===13){
58 | event.preventDefault();
59 | }
60 | });
61 | $textarea.on('keyup',function(event) {
62 | if(event.keyCode===13){
63 | sendMessage();
64 | }
65 | });
66 | }
67 |
68 | function initWs(){
69 | ws = new WebSocket(wsServer);
70 | ws.onopen = () => {
71 | let json = {
72 | type: 'update',
73 | data: {
74 | domainFrom: location.hostname
75 | }
76 | }
77 | ws.send(JSON.stringify(json));
78 | ws.onmessage = msg => proceedMessage(msg);
79 | ws.onclose = () => noticeDisconnect();
80 | clearInterval(checkTimer);
81 | checkTimer = setInterval(checkIfOnline,15000);
82 | window.addEventListener('beforeunload', ()=>ws.close());
83 | }
84 | }
85 |
86 | function checkIfOnline(){
87 | if(ws.readyState !== ws.OPEN){
88 | noticeDisconnect();
89 | }
90 | }
91 |
92 | function proceedMessage(raw){
93 | let json = JSON.parse(raw.data);
94 | let type = json.type;
95 | let data = json.data;
96 | switch(type){
97 | case 'identity':
98 | myChatId = data.id;
99 | myChatName = data.name;
100 | setDomain(data.domain);
101 | loadHistory(data.history);
102 | loadBillboard(data.billboard);
103 | break;
104 | case 'memberList':
105 | renderMemberList(data);
106 | break;
107 | case 'chat':
108 | renderChat(data);
109 | break;
110 | case 'ack':
111 | $textarea.val('');
112 | break;
113 | }
114 | }
115 |
116 | function setDomain(domain){
117 | domain ? (domain = domain+' ') : (domain = '异次元');
118 | $('.ctrm-title-domain').text(domain);
119 | }
120 |
121 | function loadHistory(arr){
122 | if(!arr || arr.length===0) return;
123 | arr.forEach(i=>{
124 | renderChat(i);
125 | });
126 | }
127 |
128 | function loadBillboard(arr){
129 | $domain.empty();
130 | if(!arr || arr.length===0) return;
131 | arr.sort((i,j)=>(j.times-i.times));
132 | arr.forEach(i=>{
133 | let $item = $(`${i.domainFrom}`);
134 | $domain.append($item);
135 | })
136 | }
137 |
138 | function renderMemberList(data){
139 | memberList = data;
140 | getColor(memberList);
141 | $online.empty();
142 | memberList.forEach(i=>{
143 | let item = $(`
${i.name}
`);
144 | $online.append(item);
145 | item.click(function(){
146 | let name = this.innerText;
147 | $textarea.val('@'+name+' ');
148 | $textarea.get(0).focus();
149 | });
150 | });
151 | }
152 |
153 | function getColor(input){
154 | let f = (id) => {
155 | let str = id.toString();
156 | let base = +str.slice(-4,-1);
157 | let r = base*11%256;
158 | let g = base*7%256;
159 | let b = base*5%256;
160 | return `rgba(${r}, ${g}, ${b}, 0.3)`;
161 | }
162 | if(input.id) {
163 | input.color = f(input.id);
164 | } else {
165 | input.forEach(i=>{
166 | i.color = f(i.id);
167 | })
168 | }
169 | }
170 |
171 | function getPreZero(input, flag){
172 | let date = new Date(input);
173 | let output;
174 | if(flag==='hours'){
175 | output = ''+date.getHours();
176 | } else {
177 | output = ''+date.getMinutes();
178 | }
179 | (output === output[0]) && (output = '0'+output);
180 | return output;
181 | }
182 |
183 | function renderChat(data){
184 | getColor(data);
185 | let dom = `
186 |