- "La Mia Lavagna" ora è visibile il numero di Invitati che hanno i requisiti, dei propri invitati.
- Sistemato la funzione di poter Donare un invitato a qualcun'altro. - Aggiornati testi sul BOT. - Se devo verificare telegram, mi compare nella parte in alto del sito! Per Staff Admin: - Notifica sul BOT per ogni modifica dell'invitante o eliminazione di un invitato.
@@ -19,3 +19,6 @@ MixinMetaTags
|
||||
description: "",
|
||||
keywords: "" } ) }}
|
||||
</span>
|
||||
|
||||
|
||||
👇 Backhand Index Pointing Down U+1F447 👇
|
||||
|
||||
1
src/emoji.json
Normal file
@@ -94,7 +94,7 @@
|
||||
|
||||
</CVerifyEmail>
|
||||
|
||||
<CVerifyTelegram v-if="TelegCode">
|
||||
<CVerifyTelegram v-if="TelegCode || !TelegVerificato">
|
||||
|
||||
</CVerifyTelegram>
|
||||
|
||||
@@ -112,21 +112,9 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<CNextZoom>
|
||||
|
||||
</CNextZoom>
|
||||
|
||||
<CStatusReg>
|
||||
|
||||
</CStatusReg>
|
||||
|
||||
<div v-if="isLogged">
|
||||
<CStatus></CStatus>
|
||||
</div>
|
||||
|
||||
|
||||
<div v-if="false">
|
||||
<CTitleBanner class="q-pa-xs" :title="$t('text.how')" bgcolor="bg-primary" clcolor="text-white"
|
||||
<CTitleBanner v-if="false" class="q-pa-xs" :title="$t('text.how')" bgcolor="bg-primary" clcolor="text-white"
|
||||
mystyle=" " myclass="myshad" canopen="true">
|
||||
<CImgText src="">
|
||||
<q-icon name="fas fa-gift" size="lg" inverted color="primary"></q-icon>
|
||||
@@ -266,8 +254,8 @@
|
||||
<div class="subtitle_small text-blue" v-html="tools.getvideotitle(index, true)"></div>
|
||||
<div class="">
|
||||
<iframe
|
||||
:width="tools.getwidthscale(mythis(), getValDb('YT_W', false), 800)"
|
||||
:height="tools.getheightbywidth(mythis(), getValDb('YT_W', false), getValDb('YT_H', false), 800)"
|
||||
:width="tools.getwidthscale(mythis, getValDb('YT_W', false), 800)"
|
||||
:height="tools.getheightbywidth(mythis, getValDb('YT_W', false), getValDb('YT_H', false), 800)"
|
||||
:src="arrvideo_yt[index]"
|
||||
frameborder="0"
|
||||
allowfullscreen
|
||||
@@ -331,6 +319,21 @@
|
||||
|
||||
</div>
|
||||
|
||||
<CNextZoom>
|
||||
|
||||
</CNextZoom>
|
||||
|
||||
<CStatusReg>
|
||||
|
||||
</CStatusReg>
|
||||
|
||||
|
||||
<div v-if="isLogged">
|
||||
<CStatus></CStatus>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</CMyPage>
|
||||
</q-page>
|
||||
|
||||
BIN
src/statics/icons/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/statics/icons/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/statics/icons/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
41
src/statics/icons/flag_ch.svg
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve">
|
||||
<path style="fill:#FF4B55;" d="M503.172,423.725H8.828c-4.875,0-8.828-3.953-8.828-8.828V97.104c0-4.875,3.953-8.828,8.828-8.828
|
||||
h494.345c4.875,0,8.828,3.953,8.828,8.828v317.793C512,419.773,508.047,423.725,503.172,423.725z"/>
|
||||
<path style="fill:#F5F5F5;" d="M353.103,220.691H291.31v-61.793c0-4.875-3.953-8.828-8.828-8.828h-52.966
|
||||
c-4.875,0-8.828,3.953-8.828,8.828v61.793h-61.793c-4.875,0-8.828,3.953-8.828,8.828v52.966c0,4.875,3.953,8.828,8.828,8.828h61.793
|
||||
v61.793c0,4.875,3.953,8.828,8.828,8.828h52.966c4.875,0,8.828-3.953,8.828-8.828v-61.795h61.793c4.875,0,8.828-3.953,8.828-8.828
|
||||
v-52.966C361.931,224.643,357.978,220.691,353.103,220.691z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
44
src/statics/icons/flag_cl.svg
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#F5F5F5;" d="M473.655,88.276H158.897c4.875,0,8.828,3.953,8.828,8.828v150.069c0,4.875-3.953,8.828-8.828,8.828
|
||||
H512v-129.38C512,105.443,494.833,88.276,473.655,88.276z"/>
|
||||
<path style="fill:#FF4B55;" d="M17.655,256H8.828C3.953,256,0,252.047,0,247.172V256v8.828V385.38
|
||||
c0,21.177,17.167,38.345,38.345,38.345h435.31c21.177,0,38.345-17.167,38.345-38.345V256H158.897H17.655z"/>
|
||||
<path style="fill:#41479B;" d="M8.828,256h8.828h141.241c4.875,0,8.828-3.953,8.828-8.828V97.103c0-4.875-3.953-8.828-8.828-8.828
|
||||
H38.345C17.167,88.276,0,105.443,0,126.621v120.552C0,252.047,3.953,256,8.828,256z"/>
|
||||
<path style="fill:#F5F5F5;" d="M87.262,134.487l8.416,25.234l26.6,0.206c3.444,0.026,4.872,4.422,2.101,6.467l-21.398,15.801
|
||||
l8.023,25.362c1.038,3.284-2.7,5.999-5.502,3.997l-21.64-15.467l-21.641,15.468c-2.802,2.003-6.54-0.714-5.502-3.997l8.023-25.362
|
||||
l-21.398-15.801c-2.771-2.046-1.342-6.441,2.101-6.467l26.6-0.206l8.416-25.234C81.551,131.22,86.173,131.22,87.262,134.487z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
46
src/statics/icons/flag_cm.svg
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#73AF00;" d="M38.345,423.721h132.322V88.273H38.345C17.167,88.273,0,105.44,0,126.618v258.759
|
||||
C0,406.554,17.167,423.721,38.345,423.721z"/>
|
||||
<rect x="170.67" y="88.277" style="fill:#FF4B55;" width="170.67" height="335.45"/>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M473.655,423.721c21.177,0,38.345-17.167,38.345-38.345V126.618
|
||||
c0-21.177-17.167-38.345-38.345-38.345H341.334v335.448H473.655z"/>
|
||||
<path style="fill:#FFE15A;" d="M257.834,223.641l7.584,22.741l23.971,0.185c1.857,0.014,2.627,2.385,1.133,3.488l-19.284,14.24
|
||||
l7.231,22.856c0.561,1.771-1.455,3.235-2.967,2.155L256,275.366l-19.502,13.94c-1.511,1.08-3.527-0.385-2.967-2.155l7.231-22.856
|
||||
l-19.284-14.24c-1.494-1.103-0.724-3.474,1.133-3.488l23.971-0.185l7.584-22.741C254.754,221.879,257.246,221.879,257.834,223.641z
|
||||
"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
40
src/statics/icons/flag_co.svg
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FF4B55;" d="M0,385.379c0,21.177,17.167,38.345,38.345,38.345h435.31c21.177,0,38.345-17.167,38.345-38.345
|
||||
v-45.517H0V385.379z"/>
|
||||
<path style="fill:#FFE15A;" d="M473.655,88.276H38.345C17.167,88.276,0,105.443,0,126.621V256h512V126.621
|
||||
C512,105.443,494.833,88.276,473.655,88.276z"/>
|
||||
<rect y="256" style="fill:#41479B;" width="512" height="83.86"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 860 B |
40
src/statics/icons/flag_fr.svg
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M38.345,88.273C17.167,88.273,0,105.44,0,126.618v258.759c0,21.177,17.167,38.345,38.345,38.345
|
||||
h132.322V88.273H38.345z"/>
|
||||
<rect x="170.67" y="88.277" style="fill:#F5F5F5;" width="170.67" height="335.45"/>
|
||||
<path style="fill:#FF4B55;" d="M473.655,88.273H341.333v335.448h132.322c21.177,0,38.345-17.167,38.345-38.345V126.618
|
||||
C512,105.44,494.833,88.273,473.655,88.273z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 894 B |
126
src/statics/icons/flag_hr.svg
Normal file
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M0,385.38c0,21.176,17.167,38.345,38.345,38.345h435.311c21.165,0,38.324-17.148,38.344-38.307
|
||||
v-73.509H0V385.38z"/>
|
||||
<path style="fill:#FF4B55;" d="M473.656,88.275H38.345C17.167,88.275,0,105.443,0,126.62v73.471h512v-73.509
|
||||
C511.98,105.424,494.821,88.275,473.656,88.275z"/>
|
||||
<rect y="200.089" style="fill:#F5F5F5;" width="512" height="111.81"/>
|
||||
<g>
|
||||
<rect x="194.21" y="203.029" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
<rect x="243.64" y="203.029" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
<rect x="218.93" y="231.279" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
<rect x="293.08" y="203.029" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
<rect x="268.36" y="231.279" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="218.93" y="203.029" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
<rect x="268.36" y="203.029" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
<rect x="194.21" y="231.279" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
<rect x="243.64" y="231.279" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
<rect x="293.08" y="231.279" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="243.64" y="259.529" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
<rect x="218.93" y="287.779" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
<rect x="268.36" y="287.779" style="fill:#FF4B55;" width="24.717" height="28.25"/>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="218.93" y="259.529" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
<rect x="268.36" y="259.529" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
<rect x="243.64" y="287.779" style="fill:#F5F5F5;" width="24.717" height="28.25"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FF4B55;" d="M317.793,203.035v79.448c0,34.128-27.666,61.793-61.793,61.793s-61.793-27.666-61.793-61.793
|
||||
v-79.448H317.793 M322.206,198.62h-4.414H194.206h-4.414v4.414v79.448c0,36.507,29.7,66.207,66.207,66.207
|
||||
s66.207-29.701,66.207-66.207v-79.448V198.62L322.206,198.62z"/>
|
||||
<path style="fill:#FF4B55;" d="M218.924,287.779v-28.249h-24.717v22.953c0,1.789,0.118,3.546,0.267,5.297L218.924,287.779
|
||||
L218.924,287.779z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M317.526,287.779h-24.45v28.248h14.774C313.211,307.758,316.644,298.14,317.526,287.779z"/>
|
||||
<path style="fill:#F5F5F5;" d="M204.149,316.028h14.774v-28.248h-24.45C195.355,298.14,198.788,307.758,204.149,316.028z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FF4B55;" d="M293.075,287.779h24.45c0.149-1.749,0.267-3.508,0.267-5.297v-22.952h-24.717V287.779z"/>
|
||||
<path style="fill:#FF4B55;" d="M218.924,331.833v-15.805H204.15C208.107,322.133,213.122,327.467,218.924,331.833z"/>
|
||||
<path style="fill:#FF4B55;" d="M307.849,316.028h-14.774v15.806C298.876,327.467,303.89,322.133,307.849,316.028z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M218.924,331.833c7.195,5.415,15.567,9.345,24.717,11.202v-27.007h-24.717V331.833z"/>
|
||||
<path style="fill:#F5F5F5;" d="M268.358,343.034c9.15-1.857,17.523-5.788,24.717-11.202v-15.805h-24.717V343.034z"/>
|
||||
</g>
|
||||
<path style="fill:#FF4B55;" d="M268.358,316.028h-24.717v27.008c3.993,0.811,8.126,1.241,12.359,1.241
|
||||
c4.233,0,8.365-0.43,12.359-1.241v-27.008H268.358z"/>
|
||||
<g>
|
||||
<path style="fill:#4173CD;" d="M211.27,156.29c-5.378-0.832-10.88-1.432-16.489-1.779c-4.338,3.571-8.473,7.294-12.398,11.15
|
||||
c3.942,9.515,7.883,19.03,11.823,28.545c7.913-3.277,16.021-5.9,24.247-7.867C216.059,176.324,213.664,166.307,211.27,156.29z"/>
|
||||
<path style="fill:#4173CD;" d="M271.002,151.604c-4.833-2.445-9.837-4.706-15.003-6.765c-5.165,2.06-10.17,4.321-15.003,6.765
|
||||
c0.803,10.267,1.607,20.534,2.41,30.803c8.382-0.657,16.804-0.657,25.186,0C269.395,172.139,270.199,161.872,271.002,151.604z"/>
|
||||
<path style="fill:#4173CD;" d="M329.616,165.661c-3.925-3.855-8.061-7.578-12.398-11.15c-5.609,0.346-11.111,0.947-16.489,1.779
|
||||
c-2.395,10.017-4.789,20.033-7.184,30.049c8.226,1.967,16.334,4.589,24.247,7.867C321.734,184.69,325.676,175.175,329.616,165.661z
|
||||
"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#41479B;" d="M240.996,151.604c-5.154-1.663-10.456-3.118-15.894-4.346c-4.798,2.841-9.411,5.858-13.832,9.033
|
||||
c2.394,10.017,4.789,20.033,7.183,30.049c8.226-1.967,16.569-3.277,24.952-3.933C242.602,172.139,241.799,161.872,240.996,151.604z
|
||||
"/>
|
||||
<path style="fill:#41479B;" d="M300.729,156.29c-4.422-3.175-9.035-6.193-13.832-9.033c-5.438,1.228-10.741,2.685-15.894,4.346
|
||||
c-0.803,10.267-1.607,20.534-2.41,30.803c8.383,0.655,16.726,1.966,24.952,3.933C295.94,176.324,298.334,166.307,300.729,156.29z"
|
||||
/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FF4B55;" d="M241.96,163.925c-9.345,0.73-18.646,2.191-27.817,4.385c-0.479-2.003-0.958-4.007-1.437-6.011
|
||||
c9.485-2.266,19.105-3.778,28.771-4.535C241.639,159.818,241.799,161.871,241.96,163.925z"/>
|
||||
<path style="fill:#FF4B55;" d="M242.925,176.245c-8.703,0.681-17.366,2.042-25.907,4.084c-0.48-2.003-0.958-4.007-1.437-6.009
|
||||
c8.855-2.118,17.838-3.529,26.862-4.234C242.602,172.137,242.764,174.193,242.925,176.245z"/>
|
||||
</g>
|
||||
<path style="fill:#FFE15A;" d="M285.326,178.32c-2.155-0.383-4.316-0.724-6.482-1.022c-3.562-0.492-6.215-3.516-5.906-6.915l0,0
|
||||
c0.308-3.398,3.713-5.863,7.59-5.327c2.325,0.32,4.646,0.685,6.959,1.097c3.859,0.682,6.357,4.082,5.604,7.406l0,0
|
||||
C292.341,176.891,288.873,178.945,285.326,178.32z"/>
|
||||
<path style="fill:#FF4B55;" d="M320.157,188.497c-8.215-3.402-16.636-6.125-25.175-8.168c0.48-2.003,0.958-4.007,1.437-6.009
|
||||
c8.855,2.116,17.585,4.94,26.103,8.468C321.734,184.69,320.945,186.594,320.157,188.497z"/>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M317.952,169.958c-0.873,2.407-3.817,3.552-6.599,2.647c-2.781-0.906-4.483-3.55-3.779-6.012
|
||||
c0.704-2.462,3.686-3.765,6.636-2.806C317.163,164.744,318.826,167.551,317.952,169.958z"/>
|
||||
<path style="fill:#FFE15A;" d="M204.424,166.594c0.703,2.464-1,5.109-3.779,6.012c-2.781,0.9-5.725-0.245-6.599-2.647
|
||||
c-0.874-2.408,0.79-5.214,3.742-6.171C200.738,162.832,203.722,164.134,204.424,166.594z"/>
|
||||
<path style="fill:#FFE15A;" d="M254.589,162.548c0.006,2.047-1.834,3.714-4.114,3.784c-2.279,0.073-4.222-1.481-4.342-3.52
|
||||
c-0.119-2.04,1.719-3.806,4.111-3.883C252.637,158.854,254.58,160.501,254.589,162.548z"/>
|
||||
<path style="fill:#FFE15A;" d="M265.865,162.811c-0.121,2.044-2.065,3.593-4.342,3.52c-2.279-0.07-4.119-1.737-4.114-3.784
|
||||
c0.009-2.045,1.953-3.697,4.344-3.619C264.146,159.001,265.982,160.77,265.865,162.811z"/>
|
||||
<path style="fill:#FFE15A;" d="M260.007,172.079c-0.057,2.047-1.85,3.657-4.008,3.657c-2.156-0.001-3.949-1.609-4.008-3.657
|
||||
c-0.056-2.041,1.737-3.755,4.008-3.75C258.27,168.324,260.063,170.036,260.007,172.079z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.8 KiB |
40
src/statics/icons/flag_pe.svg
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FF4B55;" d="M38.345,88.273C17.167,88.273,0,105.44,0,126.618v258.759c0,21.177,17.167,38.345,38.345,38.345
|
||||
h132.322V88.273H38.345z"/>
|
||||
<rect x="170.67" y="88.277" style="fill:#F5F5F5;" width="170.67" height="335.45"/>
|
||||
<path style="fill:#FF4B55;" d="M473.655,88.273H341.333v335.448h132.322c21.177,0,38.345-17.167,38.345-38.345V126.618
|
||||
C512,105.44,494.833,88.273,473.655,88.273z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 894 B |
40
src/statics/icons/flag_ro.svg
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M38.345,88.273C17.167,88.273,0,105.44,0,126.618v258.759c0,21.177,17.167,38.345,38.345,38.345
|
||||
h132.322V88.273H38.345z"/>
|
||||
<rect x="170.67" y="88.277" style="fill:#FFE15A;" width="170.67" height="335.45"/>
|
||||
<path style="fill:#FF4B55;" d="M473.655,88.273H341.333v335.448h132.322c21.177,0,38.345-17.167,38.345-38.345V126.618
|
||||
C512,105.44,494.833,88.273,473.655,88.273z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 894 B |
84
src/statics/icons/flag_si.svg
Normal file
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#F5F5F5;" d="M400,0H112C50.144,0,0,50.144,0,112v58.667h512V112C512,50.144,461.856,0,400,0z"/>
|
||||
<path style="fill:#FF4B55;" d="M0,400c0,61.856,50.144,112,112,112h288c61.856,0,112-50.144,112-112v-58.667H0V400z"/>
|
||||
<g>
|
||||
<rect y="170.67" style="fill:#41479B;" width="512" height="170.67"/>
|
||||
<path style="fill:#41479B;" d="M211.809,105.46c0,0-2.713,86.432-14.842,110.703c-15.013,29.832-30.106,38.534-52.563,46.575
|
||||
c-22.454-8.038-37.548-16.736-52.563-46.575C79.716,191.889,76.998,105.467,77,105.46C119.853,86.11,168.956,86.11,211.809,105.46z
|
||||
"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M163.923,225.318c-1.642-1.053-2.827-1.807-5.522-1.807c-2.688,0-3.873,0.753-5.507,1.807
|
||||
c-1.872,1.192-4.202,2.684-8.532,2.684c-4.333,0-6.663-1.492-8.535-2.691c-1.635-1.046-2.816-1.799-5.504-1.799
|
||||
s-3.869,0.753-5.504,1.799c-1.769,1.134-4.006,2.485-7.893,2.636c8.183,9.98,16.763,14.713,27.472,18.825
|
||||
c10.702-4.111,19.28-8.842,27.465-18.821C167.945,227.808,165.698,226.447,163.923,225.318z"/>
|
||||
<path style="fill:#F5F5F5;" d="M110.795,209.351c1.635,1.046,2.812,1.799,5.493,1.799c2.688,0,3.869-0.753,5.504-1.799
|
||||
c1.872-1.199,4.202-2.691,8.532-2.691c4.33,0,6.659,1.492,8.532,2.684c1.635,1.053,2.819,1.807,5.507,1.807
|
||||
s3.869-0.753,5.504-1.799c1.872-1.199,4.202-2.691,8.535-2.691c4.337,0,6.67,1.492,8.543,2.684
|
||||
c1.642,1.053,2.823,1.807,5.518,1.807s3.88-0.753,5.522-1.807c1.565-0.997,3.529-2.15,6.64-2.52
|
||||
c0.816-2.123,1.606-4.541,2.345-7.48l-20.102-33.503l-7.489,14.979L144.4,150.863l-14.98,29.957l-7.489-14.979l-20.089,33.483
|
||||
c0.735,2.937,1.524,5.367,2.34,7.502C107.28,207.197,109.234,208.349,110.795,209.351z"/>
|
||||
<path style="fill:#F5F5F5;" d="M181.004,214.083c-1.872,1.192-4.206,2.684-8.543,2.684c-4.333,0-6.667-1.492-8.539-2.684
|
||||
c-1.642-1.053-2.827-1.807-5.522-1.807c-2.688,0-3.873,0.753-5.507,1.807c-1.872,1.192-4.202,2.684-8.532,2.684
|
||||
c-4.333,0-6.663-1.492-8.535-2.691c-1.635-1.046-2.816-1.799-5.504-1.799s-3.869,0.753-5.504,1.799
|
||||
c-1.872,1.2-4.202,2.691-8.532,2.691c-4.326,0-6.652-1.492-8.521-2.691c-0.009-0.005-0.016-0.01-0.026-0.016
|
||||
c1.468,2.664,2.936,5.112,4.398,7.332c1.094,0.599,2.236,0.993,4.148,0.993c2.688,0,3.869-0.753,5.504-1.799
|
||||
c1.872-1.199,4.202-2.691,8.532-2.691c4.33,0,6.659,1.492,8.532,2.684c1.635,1.053,2.819,1.807,5.507,1.807
|
||||
s3.869-0.753,5.504-1.799c1.872-1.199,4.202-2.691,8.535-2.691c4.337,0,6.67,1.492,8.543,2.684
|
||||
c1.642,1.053,2.823,1.807,5.518,1.807c1.941,0,3.095-0.4,4.204-1.012c1.461-2.217,2.927-4.663,4.394-7.324
|
||||
C181.041,214.061,181.024,214.071,181.004,214.083z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M144.7,125.076l1.314,4.294l4.376-1.009c0.297-0.069,0.504,0.289,0.296,0.512l-3.062,3.285
|
||||
l3.062,3.285c0.208,0.223,0.001,0.581-0.296,0.512l-4.376-1.009l-1.314,4.294c-0.089,0.292-0.502,0.292-0.591,0l-1.314-4.294
|
||||
l-4.376,1.009c-0.297,0.068-0.504-0.289-0.296-0.512l3.062-3.285l-3.062-3.285c-0.208-0.223-0.001-0.581,0.296-0.512l4.376,1.009
|
||||
l1.314-4.294C144.198,124.785,144.611,124.785,144.7,125.076z"/>
|
||||
<path style="fill:#FFE15A;" d="M123.168,104.44l1.314,4.294l4.376-1.009c0.297-0.069,0.504,0.289,0.296,0.512l-3.062,3.285
|
||||
l3.062,3.285c0.208,0.223,0.001,0.581-0.296,0.512l-4.376-1.009l-1.314,4.294c-0.089,0.292-0.502,0.292-0.591,0l-1.314-4.294
|
||||
l-4.376,1.009c-0.297,0.069-0.504-0.289-0.296-0.512l3.062-3.285l-3.062-3.285c-0.208-0.223-0.001-0.581,0.296-0.512l4.376,1.009
|
||||
l1.314-4.294C122.666,104.148,123.079,104.148,123.168,104.44z"/>
|
||||
<path style="fill:#FFE15A;" d="M166.388,104.44l1.314,4.294l4.376-1.009c0.297-0.069,0.504,0.289,0.296,0.512l-3.062,3.285
|
||||
l3.062,3.285c0.208,0.223,0.001,0.581-0.296,0.512l-4.376-1.009l-1.314,4.294c-0.089,0.292-0.502,0.292-0.591,0l-1.314-4.294
|
||||
l-4.376,1.009c-0.297,0.069-0.504-0.289-0.296-0.512l3.062-3.285l-3.062-3.285c-0.208-0.223-0.002-0.581,0.296-0.512l4.376,1.009
|
||||
l1.314-4.294C165.886,104.148,166.299,104.148,166.388,104.44z"/>
|
||||
</g>
|
||||
<path style="fill:#FF1722;" d="M204.056,102.205c0.045,2.388,0.085,4.799,0.085,7.4c-1.081,27.021-5.101,85.868-13.864,103.59
|
||||
c-12.917,25.942-24.844,34.516-45.873,42.419c-21.029-7.901-32.954-16.473-45.863-42.398
|
||||
c-8.793-17.791-12.843-77.637-13.876-103.609c0-2.605,0.042-4.988,0.079-7.397c-2.593,1.015-5.169,2.089-7.72,3.24
|
||||
c0.18,5.248,1.487,39.672,5.411,69.941c2.214,16.897,5.259,32.471,9.407,40.773c15.015,29.839,30.109,38.537,52.563,46.575
|
||||
c22.457-8.042,37.55-16.743,52.563-46.575c4.148-8.301,7.194-23.875,9.407-40.773c3.923-30.268,5.228-64.693,5.409-69.941
|
||||
C209.23,104.296,206.652,103.221,204.056,102.205z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.8 KiB |
84
src/statics/icons/flag_si2.svg
Normal file
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#F5F5F5;" d="M400,0H112C50.144,0,0,50.144,0,112v58.667h512V112C512,50.144,461.856,0,400,0z"/>
|
||||
<path style="fill:#FF4B55;" d="M0,400c0,61.856,50.144,112,112,112h288c61.856,0,112-50.144,112-112v-58.667H0V400z"/>
|
||||
<g>
|
||||
<rect y="170.67" style="fill:#41479B;" width="512" height="170.67"/>
|
||||
<path style="fill:#41479B;" d="M211.809,105.46c0,0-2.713,86.432-14.842,110.703c-15.013,29.832-30.106,38.534-52.563,46.575
|
||||
c-22.454-8.038-37.548-16.736-52.563-46.575C79.716,191.889,76.998,105.467,77,105.46C119.853,86.11,168.956,86.11,211.809,105.46z
|
||||
"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M163.923,225.318c-1.642-1.053-2.827-1.807-5.522-1.807c-2.688,0-3.873,0.753-5.507,1.807
|
||||
c-1.872,1.192-4.202,2.684-8.532,2.684c-4.333,0-6.663-1.492-8.535-2.691c-1.635-1.046-2.816-1.799-5.504-1.799
|
||||
s-3.869,0.753-5.504,1.799c-1.769,1.134-4.006,2.485-7.893,2.636c8.183,9.98,16.763,14.713,27.472,18.825
|
||||
c10.702-4.111,19.28-8.842,27.465-18.821C167.945,227.808,165.698,226.447,163.923,225.318z"/>
|
||||
<path style="fill:#F5F5F5;" d="M110.795,209.351c1.635,1.046,2.812,1.799,5.493,1.799c2.688,0,3.869-0.753,5.504-1.799
|
||||
c1.872-1.199,4.202-2.691,8.532-2.691c4.33,0,6.659,1.492,8.532,2.684c1.635,1.053,2.819,1.807,5.507,1.807
|
||||
s3.869-0.753,5.504-1.799c1.872-1.199,4.202-2.691,8.535-2.691c4.337,0,6.67,1.492,8.543,2.684
|
||||
c1.642,1.053,2.823,1.807,5.518,1.807s3.88-0.753,5.522-1.807c1.565-0.997,3.529-2.15,6.64-2.52
|
||||
c0.816-2.123,1.606-4.541,2.345-7.48l-20.102-33.503l-7.489,14.979L144.4,150.863l-14.98,29.957l-7.489-14.979l-20.089,33.483
|
||||
c0.735,2.937,1.524,5.367,2.34,7.502C107.28,207.197,109.234,208.349,110.795,209.351z"/>
|
||||
<path style="fill:#F5F5F5;" d="M181.004,214.083c-1.872,1.192-4.206,2.684-8.543,2.684c-4.333,0-6.667-1.492-8.539-2.684
|
||||
c-1.642-1.053-2.827-1.807-5.522-1.807c-2.688,0-3.873,0.753-5.507,1.807c-1.872,1.192-4.202,2.684-8.532,2.684
|
||||
c-4.333,0-6.663-1.492-8.535-2.691c-1.635-1.046-2.816-1.799-5.504-1.799s-3.869,0.753-5.504,1.799
|
||||
c-1.872,1.2-4.202,2.691-8.532,2.691c-4.326,0-6.652-1.492-8.521-2.691c-0.009-0.005-0.016-0.01-0.026-0.016
|
||||
c1.468,2.664,2.936,5.112,4.398,7.332c1.094,0.599,2.236,0.993,4.148,0.993c2.688,0,3.869-0.753,5.504-1.799
|
||||
c1.872-1.199,4.202-2.691,8.532-2.691c4.33,0,6.659,1.492,8.532,2.684c1.635,1.053,2.819,1.807,5.507,1.807
|
||||
s3.869-0.753,5.504-1.799c1.872-1.199,4.202-2.691,8.535-2.691c4.337,0,6.67,1.492,8.543,2.684
|
||||
c1.642,1.053,2.823,1.807,5.518,1.807c1.941,0,3.095-0.4,4.204-1.012c1.461-2.217,2.927-4.663,4.394-7.324
|
||||
C181.041,214.061,181.024,214.071,181.004,214.083z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M144.7,125.076l1.314,4.294l4.376-1.009c0.297-0.069,0.504,0.289,0.296,0.512l-3.062,3.285
|
||||
l3.062,3.285c0.208,0.223,0.001,0.581-0.296,0.512l-4.376-1.009l-1.314,4.294c-0.089,0.292-0.502,0.292-0.591,0l-1.314-4.294
|
||||
l-4.376,1.009c-0.297,0.068-0.504-0.289-0.296-0.512l3.062-3.285l-3.062-3.285c-0.208-0.223-0.001-0.581,0.296-0.512l4.376,1.009
|
||||
l1.314-4.294C144.198,124.785,144.611,124.785,144.7,125.076z"/>
|
||||
<path style="fill:#FFE15A;" d="M123.168,104.44l1.314,4.294l4.376-1.009c0.297-0.069,0.504,0.289,0.296,0.512l-3.062,3.285
|
||||
l3.062,3.285c0.208,0.223,0.001,0.581-0.296,0.512l-4.376-1.009l-1.314,4.294c-0.089,0.292-0.502,0.292-0.591,0l-1.314-4.294
|
||||
l-4.376,1.009c-0.297,0.069-0.504-0.289-0.296-0.512l3.062-3.285l-3.062-3.285c-0.208-0.223-0.001-0.581,0.296-0.512l4.376,1.009
|
||||
l1.314-4.294C122.666,104.148,123.079,104.148,123.168,104.44z"/>
|
||||
<path style="fill:#FFE15A;" d="M166.388,104.44l1.314,4.294l4.376-1.009c0.297-0.069,0.504,0.289,0.296,0.512l-3.062,3.285
|
||||
l3.062,3.285c0.208,0.223,0.001,0.581-0.296,0.512l-4.376-1.009l-1.314,4.294c-0.089,0.292-0.502,0.292-0.591,0l-1.314-4.294
|
||||
l-4.376,1.009c-0.297,0.069-0.504-0.289-0.296-0.512l3.062-3.285l-3.062-3.285c-0.208-0.223-0.002-0.581,0.296-0.512l4.376,1.009
|
||||
l1.314-4.294C165.886,104.148,166.299,104.148,166.388,104.44z"/>
|
||||
</g>
|
||||
<path style="fill:#FF1722;" d="M204.056,102.205c0.045,2.388,0.085,4.799,0.085,7.4c-1.081,27.021-5.101,85.868-13.864,103.59
|
||||
c-12.917,25.942-24.844,34.516-45.873,42.419c-21.029-7.901-32.954-16.473-45.863-42.398
|
||||
c-8.793-17.791-12.843-77.637-13.876-103.609c0-2.605,0.042-4.988,0.079-7.397c-2.593,1.015-5.169,2.089-7.72,3.24
|
||||
c0.18,5.248,1.487,39.672,5.411,69.941c2.214,16.897,5.259,32.471,9.407,40.773c15.015,29.839,30.109,38.537,52.563,46.575
|
||||
c22.457-8.042,37.55-16.743,52.563-46.575c4.148-8.301,7.194-23.875,9.407-40.773c3.923-30.268,5.228-64.693,5.409-69.941
|
||||
C209.23,104.296,206.652,103.221,204.056,102.205z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.8 KiB |
207
src/statics/icons/flag_sm.svg
Normal file
@@ -0,0 +1,207 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#F5F5F5;" d="M473.885,88.279H38.115C17.045,88.403,0,105.517,0,126.617v129.385h512V126.617
|
||||
C512,105.517,494.955,88.403,473.885,88.279z"/>
|
||||
<path style="fill:#82AFFF;" d="M0,385.376c0,21.177,17.167,38.345,38.345,38.345h435.31c21.177,0,38.345-17.167,38.345-38.345
|
||||
V256.003H0V385.376z"/>
|
||||
<path style="fill:#B46446;" d="M256.82,327.983c-1.495-0.065-36.791-1.87-54.505-26.14c-10.324-14.142-12.384-32.952-6.123-55.907
|
||||
l2.529,0.69c-6.038,22.143-4.12,40.195,5.704,53.662c16.958,23.249,52.154,25.06,52.51,25.075L256.82,327.983z"/>
|
||||
<g>
|
||||
<path style="fill:#41AA5A;" d="M196.167,235.758c-1.74,4.533-1.343,9.28,0.672,12.878c3.906-1.325,7.377-4.587,9.118-9.12
|
||||
c1.74-4.533,1.343-9.28-0.672-12.878C201.378,227.965,197.907,231.225,196.167,235.758z"/>
|
||||
<path style="fill:#41AA5A;" d="M218.275,298.426c-1.932,3.187-2.439,7.46-1.007,11.608c1.336,3.876,4.094,6.735,7.29,8.178
|
||||
c-3.105-1.628-7.054-2.035-10.93-0.698c-4.148,1.43-7.2,4.463-8.52,7.948c3.187,1.931,7.459,2.439,11.608,1.007
|
||||
c4.148-1.43,7.2-4.463,8.52-7.948l-0.004-0.002c1.916-3.183,2.418-7.439,0.992-11.573
|
||||
C224.793,302.798,221.761,299.746,218.275,298.426z"/>
|
||||
<path style="fill:#41AA5A;" d="M210.717,286.858c-2.98,2.237-5.044,6.013-5.263,10.395c-0.205,4.095,1.288,7.776,3.715,10.306
|
||||
c-2.275-2.668-5.788-4.519-9.88-4.724c-4.382-0.22-8.345,1.457-10.869,4.199c2.237,2.98,6.013,5.044,10.394,5.263
|
||||
s8.345-1.457,10.869-4.199c-0.001-0.001-0.002-0.002-0.002-0.002c2.963-2.241,5.015-6.003,5.235-10.37
|
||||
C215.135,293.345,213.459,289.382,210.717,286.858z"/>
|
||||
<path style="fill:#41AA5A;" d="M207.448,273.816c-3.604,0.947-6.941,3.665-8.797,7.639c-1.736,3.715-1.742,7.687-0.449,10.946
|
||||
c-1.1-3.329-3.654-6.369-7.368-8.104c-3.976-1.857-8.278-1.801-11.649-0.214c0.947,3.604,3.665,6.941,7.639,8.797
|
||||
c3.976,1.857,8.278,1.801,11.649,0.214c0,0-0.001-0.003-0.002-0.004c3.591-0.956,6.911-3.665,8.761-7.626
|
||||
C209.091,281.491,209.036,277.188,207.448,273.816z"/>
|
||||
<path style="fill:#41AA5A;" d="M209.302,260.875c-3.709-0.369-7.783,1.017-10.908,4.096c-2.921,2.878-4.312,6.599-4.235,10.104
|
||||
c0.129-3.503-1.206-7.243-4.083-10.163c-3.08-3.126-7.132-4.572-10.845-4.259c-0.369,3.709,1.016,7.782,4.096,10.908
|
||||
c3.08,3.126,7.132,4.572,10.845,4.259c0,0,0-0.003,0-0.006c3.699,0.355,7.755-1.026,10.87-4.095
|
||||
C208.169,268.641,209.615,264.588,209.302,260.875z"/>
|
||||
<path style="fill:#41AA5A;" d="M211.924,248.557c-3.596-0.978-7.843-0.285-11.435,2.234c-3.357,2.355-5.344,5.794-5.848,9.265
|
||||
c0.707-3.434,0.009-7.342-2.344-10.698c-2.519-3.592-6.276-5.689-9.991-5.995c-0.978,3.596-0.285,7.843,2.234,11.435
|
||||
c2.519,3.592,6.276,5.689,9.991,5.995c0-0.002,0-0.003,0-0.003c3.588,0.961,7.818,0.269,11.398-2.242
|
||||
C209.521,256.028,211.618,252.27,211.924,248.557z"/>
|
||||
</g>
|
||||
<g>
|
||||
<circle style="fill:#FFE15A;" cx="212.97" cy="316.51" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="225.52" cy="318.05" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="205.76" cy="295.87" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="188.39" cy="275.33" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="200.52" cy="261.43" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="195.92" cy="247.17" r="2.731"/>
|
||||
</g>
|
||||
<path style="fill:#B46446;" d="M256.932,327.983l-0.115-2.622c0.355-0.013,35.552-1.826,52.51-25.075
|
||||
c9.824-13.465,11.742-31.519,5.704-53.662l2.529-0.69c6.26,22.955,4.2,41.766-6.123,55.907
|
||||
C293.724,326.113,258.428,327.918,256.932,327.983z"/>
|
||||
<g>
|
||||
<path style="fill:#41AA5A;" d="M317.586,235.758c1.74,4.533,1.343,9.28-0.672,12.878c-3.906-1.325-7.377-4.587-9.118-9.12
|
||||
c-1.74-4.533-1.343-9.28,0.672-12.878C312.374,227.965,315.845,231.225,317.586,235.758z"/>
|
||||
<path style="fill:#41AA5A;" d="M295.476,298.426c1.932,3.187,2.439,7.46,1.007,11.608c-1.336,3.876-4.094,6.735-7.29,8.178
|
||||
c3.105-1.628,7.054-2.035,10.93-0.698c4.148,1.43,7.2,4.463,8.52,7.948c-3.187,1.931-7.459,2.439-11.608,1.007
|
||||
c-4.148-1.43-7.2-4.463-8.52-7.948c0.001-0.001,0.003-0.001,0.003-0.001c-1.913-3.185-2.415-7.441-0.99-11.574
|
||||
C288.958,302.798,291.991,299.746,295.476,298.426z"/>
|
||||
<path style="fill:#41AA5A;" d="M303.036,286.858c2.98,2.237,5.044,6.013,5.263,10.395c0.205,4.095-1.288,7.776-3.715,10.306
|
||||
c2.275-2.668,5.788-4.519,9.88-4.724c4.382-0.22,8.345,1.457,10.869,4.199c-2.237,2.98-6.013,5.044-10.395,5.263
|
||||
s-8.345-1.457-10.869-4.199c0.001-0.001,0.002-0.002,0.002-0.002c-2.963-2.241-5.016-6.003-5.235-10.37
|
||||
C298.617,293.345,300.294,289.382,303.036,286.858z"/>
|
||||
<path style="fill:#41AA5A;" d="M306.304,273.816c3.604,0.947,6.941,3.665,8.797,7.639c1.736,3.715,1.742,7.687,0.449,10.946
|
||||
c1.1-3.329,3.654-6.369,7.368-8.104c3.976-1.857,8.278-1.801,11.649-0.214c-0.947,3.604-3.665,6.941-7.639,8.797
|
||||
c-3.976,1.857-8.278,1.801-11.649,0.214c0,0,0.001-0.003,0.002-0.004c-3.591-0.956-6.911-3.665-8.761-7.626
|
||||
C304.66,281.491,304.716,277.188,306.304,273.816z"/>
|
||||
<path style="fill:#41AA5A;" d="M304.45,260.875c3.709-0.369,7.783,1.017,10.908,4.096c2.921,2.878,4.312,6.599,4.235,10.104
|
||||
c-0.129-3.503,1.206-7.243,4.083-10.163c3.08-3.126,7.132-4.572,10.845-4.259c0.369,3.709-1.016,7.782-4.096,10.908
|
||||
c-3.08,3.126-7.132,4.572-10.845,4.259c0,0,0-0.003,0-0.006c-3.699,0.355-7.755-1.026-10.87-4.095
|
||||
C305.583,268.641,304.137,264.588,304.45,260.875z"/>
|
||||
<path style="fill:#41AA5A;" d="M301.828,248.557c3.596-0.978,7.843-0.285,11.435,2.234c3.357,2.355,5.344,5.794,5.848,9.265
|
||||
c-0.707-3.434-0.009-7.342,2.344-10.698c2.519-3.592,6.276-5.689,9.991-5.995c0.978,3.596,0.285,7.843-2.234,11.435
|
||||
c-2.519,3.592-6.276,5.689-9.991,5.995c0-0.002,0-0.003,0-0.003c-3.588,0.961-7.818,0.269-11.398-2.242
|
||||
C304.231,256.028,302.134,252.27,301.828,248.557z"/>
|
||||
</g>
|
||||
<g>
|
||||
<circle style="fill:#FFE15A;" cx="300.79" cy="316.51" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="288.22" cy="318.05" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="307.99" cy="295.87" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="325.36" cy="275.33" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="313.24" cy="261.43" r="2.731"/>
|
||||
<circle style="fill:#FFE15A;" cx="317.84" cy="247.17" r="2.731"/>
|
||||
</g>
|
||||
<path style="fill:#8CD7FF;" d="M272.247,236.246h-31.325c-9.751,0-17.655,7.904-17.655,17.655v27.595
|
||||
c0,9.752,7.904,17.655,17.655,17.655h31.325c9.75,0,17.655-7.903,17.655-17.655v-27.595
|
||||
C289.902,244.15,281.998,236.246,272.247,236.246z"/>
|
||||
<g>
|
||||
<polygon style="fill:#F5F5F5;" points="261.753,260.263 261.753,263.757 258.259,263.757 258.259,260.263 255.567,260.263
|
||||
255.567,263.757 252.072,263.757 252.072,260.263 249.886,260.263 249.886,267.253 251.634,269.466 251.634,295.215
|
||||
262.119,295.215 262.119,269.466 263.866,267.253 263.866,260.263 "/>
|
||||
<path style="fill:#F5F5F5;" d="M257.386,249.194c1.729-0.838,2.185,2.695,2.185,2.695c3.641-1.821,2.691-4.776,1.821-6.189
|
||||
c-1.165-1.894-5.825-2.622-7.791,1.311s3.35,11.724,3.35,11.724C257.24,256.33,255.128,250.286,257.386,249.194z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="279.722,266.78 279.722,270.275 276.226,270.275 276.226,266.78 273.535,266.78
|
||||
273.535,270.275 270.039,270.275 270.039,266.78 267.853,266.78 267.853,273.77 269.601,275.983 269.601,301.732 280.087,301.732
|
||||
280.087,275.983 281.834,273.77 281.834,266.78 "/>
|
||||
<path style="fill:#F5F5F5;" d="M275.353,255.711c1.729-0.838,2.185,2.695,2.185,2.695c3.641-1.821,2.691-4.776,1.821-6.189
|
||||
c-1.165-1.894-5.825-2.622-7.791,1.311c-1.966,3.933,3.35,11.724,3.35,11.724C275.208,262.848,273.097,256.804,275.353,255.711z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="243.786,266.78 243.786,270.275 240.29,270.275 240.29,266.78 237.599,266.78
|
||||
237.599,270.275 234.104,270.275 234.104,266.78 231.917,266.78 231.917,273.77 233.665,275.983 233.665,301.732 244.151,301.732
|
||||
244.151,275.983 245.899,273.77 245.899,266.78 "/>
|
||||
<path style="fill:#F5F5F5;" d="M239.417,255.711c1.729-0.838,2.185,2.695,2.185,2.695c3.641-1.821,2.691-4.776,1.821-6.189
|
||||
c-1.165-1.894-5.825-2.622-7.791,1.311c-1.966,3.933,3.35,11.724,3.35,11.724C239.273,262.848,237.161,256.804,239.417,255.711z"/>
|
||||
</g>
|
||||
<path style="fill:#6EC86E;" d="M285.554,297.079c-2.334-1.154-4.926-1.864-7.706-1.864c-2.979,0-5.741,0.815-8.196,2.13
|
||||
c-3.191-3.439-7.713-5.625-12.776-5.625s-9.583,2.186-12.776,5.625c-2.455-1.315-5.217-2.13-8.196-2.13
|
||||
c-2.781,0-5.373,0.71-7.706,1.864c4.99,9.152,14.546,23.941,28.678,29.593C271.008,321.02,280.564,306.231,285.554,297.079z"/>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M256.718,179.949l0.158-0.078C256.876,179.871,256.823,179.885,256.718,179.949z"/>
|
||||
<path style="fill:#FFE15A;" d="M256.876,179.871l0.158,0.078C256.928,179.885,256.876,179.871,256.876,179.871z"/>
|
||||
<path style="fill:#FFE15A;" d="M290.409,194.835c-0.983-5.679-8.301-6.663-16.712-7.209c-8.41-0.546-12.015-5.352-12.015-5.352
|
||||
h-9.612c0,0-3.605,4.806-12.015,5.352s-15.729,1.529-16.712,7.209c-0.983,5.679,6.226,14.636,6.226,14.636l6.335-5.133
|
||||
c0,0-7.755-7.427-3.933-10.158c3.775-2.697,14.782-0.829,19.684-7.303c-0.207,1.353-0.135,3.023,0.704,5.081
|
||||
c1.602,3.933,1.02,8.884,1.02,8.884h3.496h3.496c0,0-0.583-4.952,1.02-8.884c0.839-2.058,0.913-3.729,0.704-5.081
|
||||
c4.903,6.474,15.91,4.606,19.684,7.303c3.823,2.731-3.933,10.158-3.933,10.158l6.335,5.133
|
||||
C284.183,209.472,291.392,200.515,290.409,194.835z"/>
|
||||
<path style="fill:#FFE15A;" d="M260.444,162.613h-1.821v-1.966c0-0.966-0.782-1.748-1.748-1.748s-1.748,0.782-1.748,1.748v1.966
|
||||
h-1.894c-0.966,0-1.748,0.782-1.748,1.748s0.782,1.748,1.748,1.748h1.894v5.024c0,0.966,0.782,1.748,1.748,1.748
|
||||
s1.748-0.782,1.748-1.748v-5.024h1.821c0.966,0,1.748-0.782,1.748-1.748C262.191,163.395,261.409,162.613,260.444,162.613z"/>
|
||||
</g>
|
||||
<circle style="fill:#FFF0E1;" cx="256.87" cy="172.88" r="3.496"/>
|
||||
<g>
|
||||
<path style="fill:#FFC75A;" d="M231.827,243.223c1.408,0.703,3.052,1.311,4.733,1.311c5.791,0,8.629-3.275,8.629-9.066
|
||||
s-3.494-10.158-9.284-10.158c0,0-0.653,0.011-1.699,0.171c-0.225,0.036-0.448,0.07-0.668,0.12
|
||||
c-5.567,1.062-19.325,6.191-22.1,31.166c-3.879,34.912,24.467,66.41,45.439,73.4v-3.496
|
||||
C256.876,326.673,207.36,288.808,231.827,243.223z"/>
|
||||
<polygon style="fill:#FFC75A;" points="235.904,228.804 256.876,235.796 235.904,242.786 "/>
|
||||
</g>
|
||||
<g>
|
||||
<polygon style="fill:#FFE15A;" points="277.847,242.786 256.876,235.796 277.847,228.804 "/>
|
||||
<path style="fill:#FFE15A;" d="M214.911,257.153c2.504-22.538,14.317-27.172,19.406-28.145c0.111-0.025,0.225-0.042,0.417-0.073
|
||||
c0.64-0.098,1.081-0.125,1.219-0.131c3.832,0.026,6.359,2.913,6.359,6.408c0,3.854-2.258,5.315-4.514,5.388
|
||||
c0,0,1.821-3.787-1.894-4.806c-2.506-0.689-5.679,1.311-5.388,4.951c0.205,2.559,2.634,5.024,5.388,5.024
|
||||
c5.791,0,10.486-4.185,10.486-9.976s-4.695-10.486-10.486-10.486c0,0-0.653,0.011-1.699,0.171c-0.225,0.036-0.448,0.07-0.668,0.12
|
||||
c-5.567,1.062-19.325,6.191-22.1,31.166c-3.879,34.912,24.467,66.41,45.439,73.4v-3.496c0,0-7.427-3.714-12.505-7.321
|
||||
C228.682,308.205,212.079,282.644,214.911,257.153z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFC75A;" d="M281.926,243.223c-1.408,0.703-3.052,1.311-4.733,1.311c-5.791,0-8.629-3.275-8.629-9.066
|
||||
s3.494-10.158,9.284-10.158c0,0,0.653,0.011,1.699,0.171c0.225,0.036,0.448,0.07,0.668,0.12c5.567,1.062,19.325,6.191,22.1,31.166
|
||||
c3.879,34.912-24.467,66.41-45.439,73.4v-3.496C256.876,326.673,306.392,288.808,281.926,243.223z"/>
|
||||
<polygon style="fill:#FFC75A;" points="277.847,228.804 256.876,235.796 277.847,242.786 "/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M298.84,257.153c-2.504-22.538-14.317-27.172-19.406-28.145c-0.111-0.025-0.225-0.042-0.417-0.073
|
||||
c-0.64-0.098-1.081-0.125-1.219-0.131c-3.832,0.026-6.359,2.913-6.359,6.408c0,3.854,2.258,5.315,4.514,5.388
|
||||
c0,0-1.821-3.787,1.894-4.806c2.506-0.689,5.679,1.311,5.388,4.951c-0.205,2.559-2.634,5.024-5.388,5.024
|
||||
c-5.791,0-10.486-4.185-10.486-9.976s4.695-10.486,10.486-10.486c0,0,0.653,0.011,1.699,0.171c0.225,0.036,0.448,0.07,0.668,0.12
|
||||
c5.567,1.062,19.325,6.191,22.1,31.166c3.879,34.912-24.467,66.41-45.439,73.4v-3.496c0,0,7.427-3.714,12.505-7.321
|
||||
C285.07,308.205,301.673,282.644,298.84,257.153z"/>
|
||||
<circle style="fill:#FFE15A;" cx="256.87" cy="235.8" r="3.496"/>
|
||||
</g>
|
||||
<path style="fill:#FFC75A;" d="M281.834,207.724c0.928-2.403-0.328-5.625-0.328-5.625c-3.222-0.109-5.461,2.239-5.461,2.239
|
||||
c0.273-2.894-0.983-5.516-0.983-5.516c-4.151,0.491-5.516,2.95-5.516,2.95c-0.218-4.533-2.95-6.39-2.95-6.39
|
||||
c-3.605,1.092-4.696,5.024-4.696,5.024c-0.546-4.478-5.024-6.553-5.024-6.553s-4.478,2.076-5.024,6.553c0,0-1.092-3.933-4.696-5.024
|
||||
c0,0-2.731,1.857-2.95,6.39c0,0-1.365-2.457-5.516-2.95c0,0-1.256,2.622-0.983,5.516c0,0-2.239-2.348-5.461-2.239
|
||||
c0,0-1.256,3.222-0.328,5.625c0,0-3.659-1.146-6.663,0.6c0,0,5.506,2.13,7.341,4.751h48.561c1.834-2.622,7.341-4.751,7.341-4.751
|
||||
C285.494,206.578,281.834,207.724,281.834,207.724z"/>
|
||||
<path style="fill:#FFE15A;" d="M281.156,213.076c0,1.572-3.674,6.434-3.674,6.434s-11.914,1.658-20.606,1.658
|
||||
c-8.748,0-20.689-1.704-20.689-1.704s-3.592-4.835-3.592-6.39c0-4.47,10.871-8.094,24.28-8.094
|
||||
C270.285,204.981,281.156,208.606,281.156,213.076z"/>
|
||||
<g>
|
||||
<ellipse style="fill:#FFC75A;" cx="256.87" cy="218.32" rx="20.977" ry="6.99"/>
|
||||
<path style="fill:#FFC75A;" d="M262.009,179.543c0-2.294-1.711-5.207-5.133-3.168c-3.423-2.039-5.133,0.874-5.133,3.168
|
||||
s-2.622,2.622-2.95,2.403c0,0,2.185,2.84,4.696,0.983c0,0,1.347,1.966,3.386,1.966c2.039,0,3.387-1.966,3.387-1.966
|
||||
c2.513,1.857,4.696-0.983,4.696-0.983C264.631,182.165,262.009,181.837,262.009,179.543z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#B46446;" d="M249.884,348.954c-0.196,0-0.396-0.044-0.584-0.14c-0.649-0.321-0.911-1.109-0.587-1.758
|
||||
l6.99-13.981c0.324-0.642,1.111-0.911,1.758-0.584c0.649,0.321,0.911,1.109,0.587,1.758l-6.99,13.981
|
||||
C250.827,348.689,250.365,348.954,249.884,348.954z"/>
|
||||
<path style="fill:#B46446;" d="M263.869,348.954c-0.481,0-0.943-0.266-1.174-0.724l-6.99-13.981
|
||||
c-0.324-0.649-0.062-1.437,0.587-1.758c0.646-0.331,1.433-0.062,1.758,0.584l6.99,13.981c0.324,0.649,0.062,1.437-0.587,1.758
|
||||
C264.264,348.91,264.065,348.954,263.869,348.954z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M288.333,336.722c-20.716,4.631-42.199,4.631-62.915,0c0-3.496,0-10.038,0-13.533
|
||||
c20.716,4.631,42.199,4.631,62.915,0C288.333,326.684,288.333,333.226,288.333,336.722z"/>
|
||||
<path style="fill:#F5F5F5;" d="M242.749,331.626c-13.377,2.581-27.086,3.289-40.727,2.015c0.23,1.802,11.017,7.158,11.017,7.158
|
||||
s-9.518,4.6-9.306,6.266c13.058,1.22,26.183,0.638,39.016-1.677V331.626L242.749,331.626z"/>
|
||||
<path style="fill:#F5F5F5;" d="M271.054,331.626c13.377,2.581,27.086,3.289,40.727,2.015c-0.23,1.802-11.017,7.158-11.017,7.158
|
||||
s9.518,4.6,9.306,6.266c-13.058,1.22-26.183,0.638-39.016-1.677V331.626L271.054,331.626z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 14 KiB |
BIN
src/statics/images/ayni_bot.jpg
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
src/statics/images/background_old.jpg
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
src/statics/images/logo-old.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
src/statics/images/logo.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
src/statics/images/logo_full.png
Normal file
|
After Width: | Height: | Size: 469 KiB |
BIN
src/statics/images/logo_old2.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
src/statics/images/sl.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
461
src/statics/js/fetch.js
Normal file
@@ -0,0 +1,461 @@
|
||||
(function(self) {
|
||||
'use strict';
|
||||
|
||||
if (self.fetch) {
|
||||
return
|
||||
}
|
||||
|
||||
var support = {
|
||||
searchParams: 'URLSearchParams' in self,
|
||||
iterable: 'Symbol' in self && 'iterator' in Symbol,
|
||||
blob: 'FileReader' in self && 'Blob' in self && (function() {
|
||||
try {
|
||||
new Blob()
|
||||
return true
|
||||
} catch(e) {
|
||||
return false
|
||||
}
|
||||
})(),
|
||||
formData: 'FormData' in self,
|
||||
arrayBuffer: 'ArrayBuffer' in self
|
||||
}
|
||||
|
||||
if (support.arrayBuffer) {
|
||||
var viewClasses = [
|
||||
'[object Int8Array]',
|
||||
'[object Uint8Array]',
|
||||
'[object Uint8ClampedArray]',
|
||||
'[object Int16Array]',
|
||||
'[object Uint16Array]',
|
||||
'[object Int32Array]',
|
||||
'[object Uint32Array]',
|
||||
'[object Float32Array]',
|
||||
'[object Float64Array]'
|
||||
]
|
||||
|
||||
var isDataView = function(obj) {
|
||||
return obj && DataView.prototype.isPrototypeOf(obj)
|
||||
}
|
||||
|
||||
var isArrayBufferView = ArrayBuffer.isView || function(obj) {
|
||||
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
|
||||
}
|
||||
}
|
||||
|
||||
function normalizeName(name) {
|
||||
if (typeof name !== 'string') {
|
||||
name = String(name)
|
||||
}
|
||||
if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) {
|
||||
throw new TypeError('Invalid character in header field nametranslate')
|
||||
}
|
||||
return name.toLowerCase()
|
||||
}
|
||||
|
||||
function normalizeValue(value) {
|
||||
if (typeof value !== 'string') {
|
||||
value = String(value)
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
// Build a destructive iterator for the value list
|
||||
function iteratorFor(items) {
|
||||
var iterator = {
|
||||
next: function() {
|
||||
var value = items.shift()
|
||||
return {done: value === undefined, value: value}
|
||||
}
|
||||
}
|
||||
|
||||
if (support.iterable) {
|
||||
iterator[Symbol.iterator] = function() {
|
||||
return iterator
|
||||
}
|
||||
}
|
||||
|
||||
return iterator
|
||||
}
|
||||
|
||||
function Headers(headers) {
|
||||
this.map = {}
|
||||
|
||||
if (headers instanceof Headers) {
|
||||
headers.forEach(function(value, name) {
|
||||
this.append(name, value)
|
||||
}, this)
|
||||
} else if (Array.isArray(headers)) {
|
||||
headers.forEach(function(header) {
|
||||
this.append(header[0], header[1])
|
||||
}, this)
|
||||
} else if (headers) {
|
||||
Object.getOwnPropertyNames(headers).forEach(function(name) {
|
||||
this.append(name, headers[name])
|
||||
}, this)
|
||||
}
|
||||
}
|
||||
|
||||
Headers.prototype.append = function(name, value) {
|
||||
name = normalizeName(name)
|
||||
value = normalizeValue(value)
|
||||
var oldValue = this.map[name]
|
||||
this.map[name] = oldValue ? oldValue+','+value : value
|
||||
}
|
||||
|
||||
Headers.prototype['delete'] = function(name) {
|
||||
delete this.map[normalizeName(name)]
|
||||
}
|
||||
|
||||
Headers.prototype.get = function(name) {
|
||||
name = normalizeName(name)
|
||||
return this.has(name) ? this.map[name] : null
|
||||
}
|
||||
|
||||
Headers.prototype.has = function(name) {
|
||||
return this.map.hasOwnProperty(normalizeName(name))
|
||||
}
|
||||
|
||||
Headers.prototype.set = function(name, value) {
|
||||
this.map[normalizeName(name)] = normalizeValue(value)
|
||||
}
|
||||
|
||||
Headers.prototype.forEach = function(callback, thisArg) {
|
||||
for (var name in this.map) {
|
||||
if (this.map.hasOwnProperty(name)) {
|
||||
callback.call(thisArg, this.map[name], name, this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Headers.prototype.keys = function() {
|
||||
var items = []
|
||||
this.forEach(function(value, name) { items.push(name) })
|
||||
return iteratorFor(items)
|
||||
}
|
||||
|
||||
Headers.prototype.values = function() {
|
||||
var items = []
|
||||
this.forEach(function(value) { items.push(value) })
|
||||
return iteratorFor(items)
|
||||
}
|
||||
|
||||
Headers.prototype.entries = function() {
|
||||
var items = []
|
||||
this.forEach(function(value, name) { items.push([name, value]) })
|
||||
return iteratorFor(items)
|
||||
}
|
||||
|
||||
if (support.iterable) {
|
||||
Headers.prototype[Symbol.iterator] = Headers.prototype.entries
|
||||
}
|
||||
|
||||
function consumed(body) {
|
||||
if (body.bodyUsed) {
|
||||
return Promise.reject(new TypeError('Already read'))
|
||||
}
|
||||
body.bodyUsed = true
|
||||
}
|
||||
|
||||
function fileReaderReady(reader) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
reader.onload = function() {
|
||||
resolve(reader.result)
|
||||
}
|
||||
reader.onerror = function() {
|
||||
reject(reader.error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function readBlobAsArrayBuffer(blob) {
|
||||
var reader = new FileReader()
|
||||
var promise = fileReaderReady(reader)
|
||||
reader.readAsArrayBuffer(blob)
|
||||
return promise
|
||||
}
|
||||
|
||||
function readBlobAsText(blob) {
|
||||
var reader = new FileReader()
|
||||
var promise = fileReaderReady(reader)
|
||||
reader.readAsText(blob)
|
||||
return promise
|
||||
}
|
||||
|
||||
function readArrayBufferAsText(buf) {
|
||||
var view = new Uint8Array(buf)
|
||||
var chars = new Array(view.length)
|
||||
|
||||
for (var i = 0; i < view.length; i++) {
|
||||
chars[i] = String.fromCharCode(view[i])
|
||||
}
|
||||
return chars.join('')
|
||||
}
|
||||
|
||||
function bufferClone(buf) {
|
||||
if (buf.slice) {
|
||||
return buf.slice(0)
|
||||
} else {
|
||||
var view = new Uint8Array(buf.byteLength)
|
||||
view.set(new Uint8Array(buf))
|
||||
return view.buffer
|
||||
}
|
||||
}
|
||||
|
||||
function Body() {
|
||||
this.bodyUsed = false
|
||||
|
||||
this._initBody = function(body) {
|
||||
this._bodyInit = body
|
||||
if (!body) {
|
||||
this._bodyText = ''
|
||||
} else if (typeof body === 'string') {
|
||||
this._bodyText = body
|
||||
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
||||
this._bodyBlob = body
|
||||
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
||||
this._bodyFormData = body
|
||||
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
||||
this._bodyText = body.toString()
|
||||
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
||||
this._bodyArrayBuffer = bufferClone(body.buffer)
|
||||
// IE 10-11 can't handle a DataView body.
|
||||
this._bodyInit = new Blob([this._bodyArrayBuffer])
|
||||
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
||||
this._bodyArrayBuffer = bufferClone(body)
|
||||
} else {
|
||||
throw new Error('unsupported BodyInit type')
|
||||
}
|
||||
|
||||
if (!this.headers.get('content-type')) {
|
||||
if (typeof body === 'string') {
|
||||
this.headers.set('content-type', 'text/plain;charset=UTF-8')
|
||||
} else if (this._bodyBlob && this._bodyBlob.type) {
|
||||
this.headers.set('content-type', this._bodyBlob.type)
|
||||
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
||||
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (support.blob) {
|
||||
this.blob = function() {
|
||||
var rejected = consumed(this)
|
||||
if (rejected) {
|
||||
return rejected
|
||||
}
|
||||
|
||||
if (this._bodyBlob) {
|
||||
return Promise.resolve(this._bodyBlob)
|
||||
} else if (this._bodyArrayBuffer) {
|
||||
return Promise.resolve(new Blob([this._bodyArrayBuffer]))
|
||||
} else if (this._bodyFormData) {
|
||||
throw new Error('could not read FormData body as blob')
|
||||
} else {
|
||||
return Promise.resolve(new Blob([this._bodyText]))
|
||||
}
|
||||
}
|
||||
|
||||
this.arrayBuffer = function() {
|
||||
if (this._bodyArrayBuffer) {
|
||||
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
||||
} else {
|
||||
return this.blob().then(readBlobAsArrayBuffer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.text = function() {
|
||||
var rejected = consumed(this)
|
||||
if (rejected) {
|
||||
return rejected
|
||||
}
|
||||
|
||||
if (this._bodyBlob) {
|
||||
return readBlobAsText(this._bodyBlob)
|
||||
} else if (this._bodyArrayBuffer) {
|
||||
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
||||
} else if (this._bodyFormData) {
|
||||
throw new Error('could not read FormData body as text')
|
||||
} else {
|
||||
return Promise.resolve(this._bodyText)
|
||||
}
|
||||
}
|
||||
|
||||
if (support.formData) {
|
||||
this.formData = function() {
|
||||
return this.text().then(decode)
|
||||
}
|
||||
}
|
||||
|
||||
this.json = function() {
|
||||
return this.text().then(JSON.parse)
|
||||
}
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
// HTTP methods whose capitalization should be normalized
|
||||
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']
|
||||
|
||||
function normalizeMethod(method) {
|
||||
var upcased = method.toUpperCase()
|
||||
return (methods.indexOf(upcased) > -1) ? upcased : method
|
||||
}
|
||||
|
||||
function Request(input, options) {
|
||||
options = options || {}
|
||||
var body = options.body
|
||||
|
||||
if (input instanceof Request) {
|
||||
if (input.bodyUsed) {
|
||||
throw new TypeError('Already read')
|
||||
}
|
||||
this.url = input.url
|
||||
this.credentials = input.credentials
|
||||
if (!options.headers) {
|
||||
this.headers = new Headers(input.headers)
|
||||
}
|
||||
this.method = input.method
|
||||
this.mode = input.mode
|
||||
if (!body && input._bodyInit != null) {
|
||||
body = input._bodyInit
|
||||
input.bodyUsed = true
|
||||
}
|
||||
} else {
|
||||
this.url = String(input)
|
||||
}
|
||||
|
||||
this.credentials = options.credentials || this.credentials || 'omit'
|
||||
if (options.headers || !this.headers) {
|
||||
this.headers = new Headers(options.headers)
|
||||
}
|
||||
this.method = normalizeMethod(options.method || this.method || 'GET')
|
||||
this.mode = options.mode || this.mode || null
|
||||
this.referrer = null
|
||||
|
||||
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
||||
throw new TypeError('Body not allowed for GET or HEAD requests')
|
||||
}
|
||||
this._initBody(body)
|
||||
}
|
||||
|
||||
Request.prototype.clone = function() {
|
||||
return new Request(this, { body: this._bodyInit })
|
||||
}
|
||||
|
||||
function decode(body) {
|
||||
var form = new FormData()
|
||||
body.trim().split('&').forEach(function(bytes) {
|
||||
if (bytes) {
|
||||
var split = bytes.split('=')
|
||||
var name = split.shift().replace(/\+/g, ' ')
|
||||
var value = split.join('=').replace(/\+/g, ' ')
|
||||
form.append(decodeURIComponent(name), decodeURIComponent(value))
|
||||
}
|
||||
})
|
||||
return form
|
||||
}
|
||||
|
||||
function parseHeaders(rawHeaders) {
|
||||
var headers = new Headers()
|
||||
rawHeaders.split(/\r?\n/).forEach(function(line) {
|
||||
var parts = line.split(':')
|
||||
var key = parts.shift().trim()
|
||||
if (key) {
|
||||
var value = parts.join(':').trim()
|
||||
headers.append(key, value)
|
||||
}
|
||||
})
|
||||
return headers
|
||||
}
|
||||
|
||||
Body.call(Request.prototype)
|
||||
|
||||
function Response(bodyInit, options) {
|
||||
if (!options) {
|
||||
options = {}
|
||||
}
|
||||
|
||||
this.type = 'default'
|
||||
this.status = 'status' in options ? options.status : 200
|
||||
this.ok = this.status >= 200 && this.status < 300
|
||||
this.statusText = 'statusText' in options ? options.statusText : 'OK'
|
||||
this.headers = new Headers(options.headers)
|
||||
this.url = options.url || ''
|
||||
this._initBody(bodyInit)
|
||||
}
|
||||
|
||||
Body.call(Response.prototype)
|
||||
|
||||
Response.prototype.clone = function() {
|
||||
return new Response(this._bodyInit, {
|
||||
status: this.status,
|
||||
statusText: this.statusText,
|
||||
headers: new Headers(this.headers),
|
||||
url: this.url
|
||||
})
|
||||
}
|
||||
|
||||
Response.error = function() {
|
||||
var response = new Response(null, {status: 0, statusText: ''})
|
||||
response.type = 'error'
|
||||
return response
|
||||
}
|
||||
|
||||
var redirectStatuses = [301, 302, 303, 307, 308]
|
||||
|
||||
Response.redirect = function(url, status) {
|
||||
if (redirectStatuses.indexOf(status) === -1) {
|
||||
throw new RangeError('Invalid status code')
|
||||
}
|
||||
|
||||
return new Response(null, {status: status, headers: {location: url}})
|
||||
}
|
||||
|
||||
self.Headers = Headers
|
||||
self.Request = Request
|
||||
self.Response = Response
|
||||
|
||||
self.fetch = function(input, init) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var request = new Request(input, init)
|
||||
var xhr = new XMLHttpRequest()
|
||||
|
||||
xhr.onload = function() {
|
||||
var options = {
|
||||
status: xhr.status,
|
||||
statusText: xhr.statusText,
|
||||
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
||||
}
|
||||
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')
|
||||
var body = 'response' in xhr ? xhr.response : xhr.responseText
|
||||
resolve(new Response(body, options))
|
||||
}
|
||||
|
||||
xhr.onerror = function() {
|
||||
reject(new TypeError('Network request failed'))
|
||||
}
|
||||
|
||||
xhr.ontimeout = function() {
|
||||
reject(new TypeError('Network request failed'))
|
||||
}
|
||||
|
||||
xhr.open(request.method, request.url, true)
|
||||
|
||||
if (request.credentials === 'include') {
|
||||
xhr.withCredentials = true
|
||||
}
|
||||
|
||||
if ('responseType' in xhr && support.blob) {
|
||||
xhr.responseType = 'blob'
|
||||
}
|
||||
|
||||
request.headers.forEach(function(value, name) {
|
||||
xhr.setRequestHeader(name, value)
|
||||
})
|
||||
|
||||
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)
|
||||
})
|
||||
}
|
||||
self.fetch.polyfill = true
|
||||
})(typeof self !== 'undefined' ? self : this);
|
||||
26
src/statics/js/globalenv.js
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
// importScripts('/statics/js/immortal-db.min.js');
|
||||
|
||||
/*
|
||||
const cfgenv = {
|
||||
website: 'http://localhost:8081',
|
||||
serverweb: 'http://localhost:3000',
|
||||
dbname: 'mydb3',
|
||||
dbversion: 10,
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
async function clearAllDataImmortal(table) {
|
||||
console.log('clearAllDataImmortal', table)
|
||||
const db = ImmortalDB.ImmortalDB
|
||||
await db.remove(table)
|
||||
}
|
||||
|
||||
async function writeDataImmortal(table, datavalue) {
|
||||
console.log('writeDataImmortal', table, datavalue)
|
||||
const db = ImmortalDB.ImmortalDB
|
||||
await db.set(table, datavalue)
|
||||
}
|
||||
|
||||
*/
|
||||
311
src/statics/js/idb.js
Normal file
@@ -0,0 +1,311 @@
|
||||
'use strict';
|
||||
|
||||
(function() {
|
||||
function toArray(arr) {
|
||||
return Array.prototype.slice.call(arr);
|
||||
}
|
||||
|
||||
function promisifyRequest(request) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
request.onsuccess = function() {
|
||||
resolve(request.result);
|
||||
};
|
||||
|
||||
request.onerror = function() {
|
||||
reject(request.error);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function promisifyRequestCall(obj, method, args) {
|
||||
var request;
|
||||
var p = new Promise(function(resolve, reject) {
|
||||
request = obj[method].apply(obj, args);
|
||||
promisifyRequest(request).then(resolve, reject);
|
||||
});
|
||||
|
||||
p.request = request;
|
||||
return p;
|
||||
}
|
||||
|
||||
function promisifyCursorRequestCall(obj, method, args) {
|
||||
var p = promisifyRequestCall(obj, method, args);
|
||||
return p.then(function(value) {
|
||||
if (!value) return;
|
||||
return new Cursor(value, p.request);
|
||||
});
|
||||
}
|
||||
|
||||
function proxyProperties(ProxyClass, targetProp, properties) {
|
||||
properties.forEach(function(prop) {
|
||||
Object.defineProperty(ProxyClass.prototype, prop, {
|
||||
get: function() {
|
||||
return this[targetProp][prop];
|
||||
},
|
||||
set: function(val) {
|
||||
this[targetProp][prop] = val;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function proxyRequestMethods(ProxyClass, targetProp, Constructor, properties) {
|
||||
properties.forEach(function(prop) {
|
||||
if (!(prop in Constructor.prototype)) return;
|
||||
ProxyClass.prototype[prop] = function() {
|
||||
return promisifyRequestCall(this[targetProp], prop, arguments);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function proxyMethods(ProxyClass, targetProp, Constructor, properties) {
|
||||
properties.forEach(function(prop) {
|
||||
if (!(prop in Constructor.prototype)) return;
|
||||
ProxyClass.prototype[prop] = function() {
|
||||
return this[targetProp][prop].apply(this[targetProp], arguments);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function proxyCursorRequestMethods(ProxyClass, targetProp, Constructor, properties) {
|
||||
properties.forEach(function(prop) {
|
||||
if (!(prop in Constructor.prototype)) return;
|
||||
ProxyClass.prototype[prop] = function() {
|
||||
return promisifyCursorRequestCall(this[targetProp], prop, arguments);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function Index(index) {
|
||||
this._index = index;
|
||||
}
|
||||
|
||||
proxyProperties(Index, '_index', [
|
||||
'name',
|
||||
'keyPath',
|
||||
'multiEntry',
|
||||
'unique'
|
||||
]);
|
||||
|
||||
proxyRequestMethods(Index, '_index', IDBIndex, [
|
||||
'get',
|
||||
'getKey',
|
||||
'getAll',
|
||||
'getAllKeys',
|
||||
'count'
|
||||
]);
|
||||
|
||||
proxyCursorRequestMethods(Index, '_index', IDBIndex, [
|
||||
'openCursor',
|
||||
'openKeyCursor'
|
||||
]);
|
||||
|
||||
function Cursor(cursor, request) {
|
||||
this._cursor = cursor;
|
||||
this._request = request;
|
||||
}
|
||||
|
||||
proxyProperties(Cursor, '_cursor', [
|
||||
'direction',
|
||||
'key',
|
||||
'primaryKey',
|
||||
'value'
|
||||
]);
|
||||
|
||||
proxyRequestMethods(Cursor, '_cursor', IDBCursor, [
|
||||
'update',
|
||||
'delete'
|
||||
]);
|
||||
|
||||
// proxy 'next' methods
|
||||
['advance', 'continue', 'continuePrimaryKey'].forEach(function(methodName) {
|
||||
if (!(methodName in IDBCursor.prototype)) return;
|
||||
Cursor.prototype[methodName] = function() {
|
||||
var cursor = this;
|
||||
var args = arguments;
|
||||
return Promise.resolve().then(function() {
|
||||
cursor._cursor[methodName].apply(cursor._cursor, args);
|
||||
return promisifyRequest(cursor._request).then(function(value) {
|
||||
if (!value) return;
|
||||
return new Cursor(value, cursor._request);
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
function ObjectStore(store) {
|
||||
this._store = store;
|
||||
}
|
||||
|
||||
ObjectStore.prototype.createIndex = function() {
|
||||
return new Index(this._store.createIndex.apply(this._store, arguments));
|
||||
};
|
||||
|
||||
ObjectStore.prototype.index = function() {
|
||||
return new Index(this._store.index.apply(this._store, arguments));
|
||||
};
|
||||
|
||||
proxyProperties(ObjectStore, '_store', [
|
||||
'name',
|
||||
'keyPath',
|
||||
'indexNames',
|
||||
'autoIncrement'
|
||||
]);
|
||||
|
||||
proxyRequestMethods(ObjectStore, '_store', IDBObjectStore, [
|
||||
'put',
|
||||
'add',
|
||||
'delete',
|
||||
'clear',
|
||||
'get',
|
||||
'getAll',
|
||||
'getKey',
|
||||
'getAllKeys',
|
||||
'count'
|
||||
]);
|
||||
|
||||
proxyCursorRequestMethods(ObjectStore, '_store', IDBObjectStore, [
|
||||
'openCursor',
|
||||
'openKeyCursor'
|
||||
]);
|
||||
|
||||
proxyMethods(ObjectStore, '_store', IDBObjectStore, [
|
||||
'deleteIndex'
|
||||
]);
|
||||
|
||||
function Transaction(idbTransaction) {
|
||||
this._tx = idbTransaction;
|
||||
this.complete = new Promise(function(resolve, reject) {
|
||||
idbTransaction.oncomplete = function() {
|
||||
resolve();
|
||||
};
|
||||
idbTransaction.onerror = function() {
|
||||
reject(idbTransaction.error);
|
||||
};
|
||||
idbTransaction.onabort = function() {
|
||||
reject(idbTransaction.error);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Transaction.prototype.objectStore = function() {
|
||||
return new ObjectStore(this._tx.objectStore.apply(this._tx, arguments));
|
||||
};
|
||||
|
||||
proxyProperties(Transaction, '_tx', [
|
||||
'objectStoreNames',
|
||||
'mode'
|
||||
]);
|
||||
|
||||
proxyMethods(Transaction, '_tx', IDBTransaction, [
|
||||
'abort'
|
||||
]);
|
||||
|
||||
function UpgradeDB(db, oldVersion, transaction) {
|
||||
this._db = db;
|
||||
this.oldVersion = oldVersion;
|
||||
this.transaction = new Transaction(transaction);
|
||||
}
|
||||
|
||||
UpgradeDB.prototype.createObjectStore = function() {
|
||||
return new ObjectStore(this._db.createObjectStore.apply(this._db, arguments));
|
||||
};
|
||||
|
||||
proxyProperties(UpgradeDB, '_db', [
|
||||
'name',
|
||||
'version',
|
||||
'objectStoreNames'
|
||||
]);
|
||||
|
||||
proxyMethods(UpgradeDB, '_db', IDBDatabase, [
|
||||
'deleteObjectStore',
|
||||
'close'
|
||||
]);
|
||||
|
||||
function DB(db) {
|
||||
this._db = db;
|
||||
}
|
||||
|
||||
DB.prototype.transaction = function() {
|
||||
return new Transaction(this._db.transaction.apply(this._db, arguments));
|
||||
};
|
||||
|
||||
proxyProperties(DB, '_db', [
|
||||
'name',
|
||||
'version',
|
||||
'objectStoreNames'
|
||||
]);
|
||||
|
||||
proxyMethods(DB, '_db', IDBDatabase, [
|
||||
'close'
|
||||
]);
|
||||
|
||||
// Add cursor iterators
|
||||
// TODO: remove this once browsers do the right thing with promises
|
||||
['openCursor', 'openKeyCursor'].forEach(function(funcName) {
|
||||
[ObjectStore, Index].forEach(function(Constructor) {
|
||||
Constructor.prototype[funcName.replace('open', 'iterate')] = function() {
|
||||
var args = toArray(arguments);
|
||||
var callback = args[args.length - 1];
|
||||
var nativeObject = this._store || this._index;
|
||||
var request = nativeObject[funcName].apply(nativeObject, args.slice(0, -1));
|
||||
request.onsuccess = function() {
|
||||
callback(request.result);
|
||||
};
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
// polyfill getAll
|
||||
[Index, ObjectStore].forEach(function(Constructor) {
|
||||
if (Constructor.prototype.getAll) return;
|
||||
Constructor.prototype.getAll = function(query, count) {
|
||||
var instance = this;
|
||||
var items = [];
|
||||
|
||||
return new Promise(function(resolve) {
|
||||
instance.iterateCursor(query, function(cursor) {
|
||||
if (!cursor) {
|
||||
resolve(items);
|
||||
return;
|
||||
}
|
||||
items.push(cursor.value);
|
||||
|
||||
if (!!count && items.length == count) {
|
||||
resolve(items);
|
||||
return;
|
||||
}
|
||||
cursor.continue();
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
var exp = {
|
||||
open: function(name, version, upgradeCallback) {
|
||||
var p = promisifyRequestCall(indexedDB, 'open', [name, version]);
|
||||
var request = p.request;
|
||||
|
||||
request.onupgradeneeded = function(event) {
|
||||
if (upgradeCallback) {
|
||||
upgradeCallback(new UpgradeDB(request.result, event.oldVersion, request.transaction));
|
||||
}
|
||||
};
|
||||
|
||||
return p.then(function(db) {
|
||||
return new DB(db);
|
||||
});
|
||||
},
|
||||
delete: function(name) {
|
||||
return promisifyRequestCall(indexedDB, 'deleteDatabase', [name]);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof module !== 'undefined') {
|
||||
module.exports = exp;
|
||||
module.exports.default = module.exports;
|
||||
}
|
||||
else {
|
||||
self.idb = exp;
|
||||
}
|
||||
}());
|
||||
10
src/statics/js/material.min.js
vendored
Normal file
372
src/statics/js/promise.js
Normal file
@@ -0,0 +1,372 @@
|
||||
/**
|
||||
* setImmediate polyfill v1.0.1, supports IE9+
|
||||
* © 2014–2015 Dmitry Korobkin
|
||||
* Released under the MIT license
|
||||
* github.com/Octane/setImmediate
|
||||
*/
|
||||
window.setImmediate || function () {'use strict';
|
||||
|
||||
var uid = 0;
|
||||
var storage = {};
|
||||
var firstCall = true;
|
||||
var slice = Array.prototype.slice;
|
||||
var message = 'setImmediatePolyfillMessage';
|
||||
|
||||
function fastApply(args) {
|
||||
var func = args[0];
|
||||
switch (args.length) {
|
||||
case 1:
|
||||
return func();
|
||||
case 2:
|
||||
return func(args[1]);
|
||||
case 3:
|
||||
return func(args[1], args[2]);
|
||||
}
|
||||
return func.apply(window, slice.call(args, 1));
|
||||
}
|
||||
|
||||
function callback(event) {
|
||||
var key = event.data;
|
||||
var data;
|
||||
if (typeof key == 'string' && key.indexOf(message) == 0) {
|
||||
data = storage[key];
|
||||
if (data) {
|
||||
delete storage[key];
|
||||
fastApply(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.setImmediate = function setImmediate() {
|
||||
var id = uid++;
|
||||
var key = message + id;
|
||||
var i = arguments.length;
|
||||
var args = new Array(i);
|
||||
while (i--) {
|
||||
args[i] = arguments[i];
|
||||
}
|
||||
storage[key] = args;
|
||||
if (firstCall) {
|
||||
firstCall = false;
|
||||
window.addEventListener('message', callback);
|
||||
}
|
||||
window.postMessage(key, '*');
|
||||
return id;
|
||||
};
|
||||
|
||||
window.clearImmediate = function clearImmediate(id) {
|
||||
delete storage[message + id];
|
||||
};
|
||||
|
||||
}();
|
||||
|
||||
/**
|
||||
* Promise polyfill v1.0.10
|
||||
* requires setImmediate
|
||||
*
|
||||
* © 2014–2015 Dmitry Korobkin
|
||||
* Released under the MIT license
|
||||
* github.com/Octane/Promise
|
||||
*/
|
||||
(function (global) {'use strict';
|
||||
|
||||
var STATUS = '[[PromiseStatus]]';
|
||||
var VALUE = '[[PromiseValue]]';
|
||||
var ON_FUlFILLED = '[[OnFulfilled]]';
|
||||
var ON_REJECTED = '[[OnRejected]]';
|
||||
var ORIGINAL_ERROR = '[[OriginalError]]';
|
||||
var PENDING = 'pending';
|
||||
var INTERNAL_PENDING = 'internal pending';
|
||||
var FULFILLED = 'fulfilled';
|
||||
var REJECTED = 'rejected';
|
||||
var NOT_ARRAY = 'not an array.';
|
||||
var REQUIRES_NEW = 'constructor Promise requires "new".';
|
||||
var CHAINING_CYCLE = 'then() cannot return same Promise that it resolves.';
|
||||
|
||||
var setImmediate = global.setImmediate || require('timers').setImmediate;
|
||||
var isArray = Array.isArray || function (anything) {
|
||||
return Object.prototype.toString.call(anything) == '[object Array]';
|
||||
};
|
||||
|
||||
function InternalError(originalError) {
|
||||
this[ORIGINAL_ERROR] = originalError;
|
||||
}
|
||||
|
||||
function isInternalError(anything) {
|
||||
return anything instanceof InternalError;
|
||||
}
|
||||
|
||||
function isObject(anything) {
|
||||
//Object.create(null) instanceof Object → false
|
||||
return Object(anything) === anything;
|
||||
}
|
||||
|
||||
function isCallable(anything) {
|
||||
return typeof anything == 'function';
|
||||
}
|
||||
|
||||
function isPromise(anything) {
|
||||
return anything instanceof Promise;
|
||||
}
|
||||
|
||||
function identity(value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
function thrower(reason) {
|
||||
throw reason;
|
||||
}
|
||||
|
||||
function enqueue(promise, onFulfilled, onRejected) {
|
||||
if (!promise[ON_FUlFILLED]) {
|
||||
promise[ON_FUlFILLED] = [];
|
||||
promise[ON_REJECTED] = [];
|
||||
}
|
||||
promise[ON_FUlFILLED].push(onFulfilled);
|
||||
promise[ON_REJECTED].push(onRejected);
|
||||
}
|
||||
|
||||
function clearAllQueues(promise) {
|
||||
delete promise[ON_FUlFILLED];
|
||||
delete promise[ON_REJECTED];
|
||||
}
|
||||
|
||||
function callEach(queue) {
|
||||
var i;
|
||||
var length = queue.length;
|
||||
for (i = 0; i < length; i++) {
|
||||
queue[i]();
|
||||
}
|
||||
}
|
||||
|
||||
function call(resolve, reject, value) {
|
||||
var anything = toPromise(value);
|
||||
if (isPromise(anything)) {
|
||||
anything.then(resolve, reject);
|
||||
} else if (isInternalError(anything)) {
|
||||
reject(anything[ORIGINAL_ERROR]);
|
||||
} else {
|
||||
resolve(value);
|
||||
}
|
||||
}
|
||||
|
||||
function toPromise(anything) {
|
||||
var then;
|
||||
if (isPromise(anything)) {
|
||||
return anything;
|
||||
}
|
||||
if(isObject(anything)) {
|
||||
try {
|
||||
then = anything.then;
|
||||
} catch (error) {
|
||||
return new InternalError(error);
|
||||
}
|
||||
if (isCallable(then)) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
setImmediate(function () {
|
||||
try {
|
||||
then.call(anything, resolve, reject);
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function resolvePromise(promise, resolver) {
|
||||
function resolve(value) {
|
||||
if (promise[STATUS] == PENDING) {
|
||||
fulfillPromise(promise, value);
|
||||
}
|
||||
}
|
||||
function reject(reason) {
|
||||
if (promise[STATUS] == PENDING) {
|
||||
rejectPromise(promise, reason);
|
||||
}
|
||||
}
|
||||
try {
|
||||
resolver(resolve, reject);
|
||||
} catch(error) {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
|
||||
function fulfillPromise(promise, value) {
|
||||
var queue;
|
||||
var anything = toPromise(value);
|
||||
if (isPromise(anything)) {
|
||||
promise[STATUS] = INTERNAL_PENDING;
|
||||
anything.then(
|
||||
function (value) {
|
||||
fulfillPromise(promise, value);
|
||||
},
|
||||
function (reason) {
|
||||
rejectPromise(promise, reason);
|
||||
}
|
||||
);
|
||||
} else if (isInternalError(anything)) {
|
||||
rejectPromise(promise, anything[ORIGINAL_ERROR]);
|
||||
} else {
|
||||
promise[STATUS] = FULFILLED;
|
||||
promise[VALUE] = value;
|
||||
queue = promise[ON_FUlFILLED];
|
||||
if (queue && queue.length) {
|
||||
clearAllQueues(promise);
|
||||
callEach(queue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function rejectPromise(promise, reason) {
|
||||
var queue = promise[ON_REJECTED];
|
||||
promise[STATUS] = REJECTED;
|
||||
promise[VALUE] = reason;
|
||||
if (queue && queue.length) {
|
||||
clearAllQueues(promise);
|
||||
callEach(queue);
|
||||
}
|
||||
}
|
||||
|
||||
function Promise(resolver) {
|
||||
var promise = this;
|
||||
if (!isPromise(promise)) {
|
||||
throw new TypeError(REQUIRES_NEW);
|
||||
}
|
||||
promise[STATUS] = PENDING;
|
||||
promise[VALUE] = undefined;
|
||||
resolvePromise(promise, resolver);
|
||||
}
|
||||
|
||||
Promise.prototype.then = function (onFulfilled, onRejected) {
|
||||
var promise = this;
|
||||
var nextPromise;
|
||||
onFulfilled = isCallable(onFulfilled) ? onFulfilled : identity;
|
||||
onRejected = isCallable(onRejected) ? onRejected : thrower;
|
||||
nextPromise = new Promise(function (resolve, reject) {
|
||||
function tryCall(func) {
|
||||
var value;
|
||||
try {
|
||||
value = func(promise[VALUE]);
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
if (value === nextPromise) {
|
||||
reject(new TypeError(CHAINING_CYCLE));
|
||||
} else {
|
||||
call(resolve, reject, value);
|
||||
}
|
||||
}
|
||||
function asyncOnFulfilled() {
|
||||
setImmediate(tryCall, onFulfilled);
|
||||
}
|
||||
function asyncOnRejected() {
|
||||
setImmediate(tryCall, onRejected);
|
||||
}
|
||||
switch (promise[STATUS]) {
|
||||
case FULFILLED:
|
||||
asyncOnFulfilled();
|
||||
break;
|
||||
case REJECTED:
|
||||
asyncOnRejected();
|
||||
break;
|
||||
default:
|
||||
enqueue(promise, asyncOnFulfilled, asyncOnRejected);
|
||||
}
|
||||
});
|
||||
return nextPromise;
|
||||
};
|
||||
|
||||
Promise.prototype['catch'] = function (onRejected) {
|
||||
return this.then(identity, onRejected);
|
||||
};
|
||||
|
||||
Promise.resolve = function (value) {
|
||||
var anything = toPromise(value);
|
||||
if (isPromise(anything)) {
|
||||
return anything;
|
||||
}
|
||||
return new Promise(function (resolve, reject) {
|
||||
if (isInternalError(anything)) {
|
||||
reject(anything[ORIGINAL_ERROR]);
|
||||
} else {
|
||||
resolve(value);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Promise.reject = function (reason) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
reject(reason);
|
||||
});
|
||||
};
|
||||
|
||||
Promise.race = function (values) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var i;
|
||||
var length;
|
||||
if (isArray(values)) {
|
||||
length = values.length;
|
||||
for (i = 0; i < length; i++) {
|
||||
call(resolve, reject, values[i]);
|
||||
}
|
||||
} else {
|
||||
reject(new TypeError(NOT_ARRAY));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Promise.all = function (values) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var fulfilledCount = 0;
|
||||
var promiseCount = 0;
|
||||
var anything;
|
||||
var length;
|
||||
var value;
|
||||
var i;
|
||||
if (isArray(values)) {
|
||||
values = values.slice(0);
|
||||
length = values.length;
|
||||
for (i = 0; i < length; i++) {
|
||||
value = values[i];
|
||||
anything = toPromise(value);
|
||||
if (isPromise(anything)) {
|
||||
promiseCount++;
|
||||
anything.then(
|
||||
function (index) {
|
||||
return function (value) {
|
||||
values[index] = value;
|
||||
fulfilledCount++;
|
||||
if (fulfilledCount == promiseCount) {
|
||||
resolve(values);
|
||||
}
|
||||
};
|
||||
}(i),
|
||||
reject
|
||||
);
|
||||
} else if (isInternalError(anything)) {
|
||||
reject(anything[ORIGINAL_ERROR]);
|
||||
} else {
|
||||
//[1, , 3] → [1, undefined, 3]
|
||||
values[i] = value;
|
||||
}
|
||||
}
|
||||
if (!promiseCount) {
|
||||
resolve(values);
|
||||
}
|
||||
} else {
|
||||
reject(new TypeError(NOT_ARRAY));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
if (typeof module != 'undefined' && module.exports) {
|
||||
module.exports = global.Promise || Promise;
|
||||
} else if (!global.Promise) {
|
||||
global.Promise = Promise;
|
||||
}
|
||||
|
||||
}(this));
|
||||
147
src/statics/js/storage.js
Normal file
@@ -0,0 +1,147 @@
|
||||
const OtherTables = ['categories', 'config', 'swmsg']
|
||||
const MainTables = ['todos', 'projects']
|
||||
const allMethod = ['sync_post_', 'sync_patch_', 'delete_']
|
||||
|
||||
|
||||
// -------------------------------------
|
||||
|
||||
|
||||
let idbKeyval = (() => {
|
||||
let db;
|
||||
|
||||
// console.log('idbKeyval...')
|
||||
|
||||
function getDB() {
|
||||
if (!db) {
|
||||
// console.log('CREO DB STORAGE JS !')
|
||||
db = new Promise((resolve, reject) => {
|
||||
const openreq = indexedDB.open('mydb3', 11);
|
||||
|
||||
openreq.onerror = () => {
|
||||
reject(openreq.error);
|
||||
};
|
||||
|
||||
openreq.onupgradeneeded = () => {
|
||||
// First time setup: create an empty object store
|
||||
for (let mytab of MainTables) {
|
||||
openreq.result.createObjectStore(mytab, { keyPath: '_id' });
|
||||
for (let mymeth of allMethod) {
|
||||
const tab = mymeth + mytab
|
||||
openreq.result.createObjectStore(tab, { keyPath: '_id' });
|
||||
}
|
||||
}
|
||||
for (let mytab of OtherTables) {
|
||||
openreq.result.createObjectStore(mytab, { keyPath: '_id' });
|
||||
}
|
||||
};
|
||||
|
||||
openreq.onsuccess = () => {
|
||||
resolve(openreq.result);
|
||||
};
|
||||
});
|
||||
}
|
||||
return db;
|
||||
}
|
||||
|
||||
async function withStore(type, table, callback,) {
|
||||
const db = await getDB();
|
||||
return new Promise((resolve, reject) => {
|
||||
const transaction = db.transaction(table, type);
|
||||
transaction.oncomplete = () => resolve();
|
||||
transaction.onerror = () => reject(transaction.error);
|
||||
callback(transaction.objectStore(table));
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
getArrayByTable(nametable, data) {
|
||||
if (nametable === 'todos') {
|
||||
return data.todos
|
||||
} else if (nametable === 'projects') {
|
||||
return data.projects
|
||||
}
|
||||
},
|
||||
|
||||
async get(key) {
|
||||
let req;
|
||||
await withStore('readonly', 'keyval', store => {
|
||||
req = store.get(key);
|
||||
});
|
||||
return req.result;
|
||||
},
|
||||
|
||||
// jsonCopy(src) {
|
||||
// return JSON.parse(JSON.stringify(src));
|
||||
// },
|
||||
|
||||
// contains(a, b) {
|
||||
// // array matches
|
||||
// if (Array.isArray(b)) {
|
||||
// return b.some(x => a.indexOf(x) > -1);
|
||||
// }
|
||||
// // string match
|
||||
// return a.indexOf(b) > -1;
|
||||
// },
|
||||
|
||||
async getdata(table, key) {
|
||||
let req;
|
||||
|
||||
await withStore('readonly', table, store => {
|
||||
// console.log('store', store, 'key', key)
|
||||
req = store.get(key);
|
||||
});
|
||||
|
||||
return req.result;
|
||||
},
|
||||
async getalldata(table) {
|
||||
let req;
|
||||
await withStore('readonly', table, store => {
|
||||
req = store.getAll();
|
||||
});
|
||||
return req.result;
|
||||
},
|
||||
async set(key, value) {
|
||||
let req;
|
||||
await withStore('readwrite', 'keyval', store => {
|
||||
req = store.put(value, key);
|
||||
});
|
||||
return req.result;
|
||||
},
|
||||
async setdata(table, value) {
|
||||
let req;
|
||||
// console.log('setdata', table, value)
|
||||
|
||||
await withStore('readwrite', table, store => {
|
||||
|
||||
req = store.put(value);
|
||||
});
|
||||
return req.result;
|
||||
},
|
||||
async delete(key) {
|
||||
return await withStore('readwrite', 'keyval', store => {
|
||||
store.delete(key);
|
||||
});
|
||||
},
|
||||
async deletedata(table, key) {
|
||||
return await withStore('readwrite', table, store => {
|
||||
store.delete(key);
|
||||
});
|
||||
},
|
||||
async clearalldata(table) {
|
||||
// console.log('clearalldata', table)
|
||||
return await withStore('readwrite', table, store => {
|
||||
store.clear();
|
||||
});
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
||||
// iOS add-to-homescreen is missing IDB, or at least it used to.
|
||||
// I haven't tested this in a while.
|
||||
if (!self.indexedDB) {
|
||||
idbKeyval = {
|
||||
get: key => Promise.resolve(localStorage.getItem(key)),
|
||||
set: (key, val) => Promise.resolve(localStorage.setItem(key, val)),
|
||||
delete: key => Promise.resolve(localStorage.removeItem(key))
|
||||
};
|
||||
}
|
||||
39
src/statics/js/track.js
Normal file
@@ -0,0 +1,39 @@
|
||||
function geturl() {
|
||||
const miaurl = document.location.href
|
||||
|
||||
if (miaurl.includes('localhost')) {
|
||||
return 'http://localhost:8085/'
|
||||
} else {
|
||||
return 'https://ayni.gifteconomy.app/'
|
||||
}
|
||||
}
|
||||
|
||||
function getidtrack() {
|
||||
const miaurl = document.location.href
|
||||
|
||||
if (miaurl.includes('test.') || miaurl.includes('localhost')) {
|
||||
return '4c40a07bc88a9c50c9b70dc9c5cd8e2e'
|
||||
} else {
|
||||
return 'ccfd6c90e17b6809f9717675764c3f5d' // Associazione Shen
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let owa_baseUrl = geturl() + 'owa/';
|
||||
if (owa_cmds)
|
||||
var owa_cmds = [];
|
||||
else
|
||||
var owa_cmds = owa_cmds || [];
|
||||
owa_cmds.push(['setSiteId', getidtrack()]);
|
||||
owa_cmds.push(['trackPageView']);
|
||||
// owa_cmds.push(['trackClicks']);
|
||||
|
||||
(function () {
|
||||
const _owa = document.createElement('script');
|
||||
_owa.type = 'text/javascript';
|
||||
_owa.async = true;
|
||||
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl);
|
||||
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
|
||||
const _owa_s = document.getElementsByTagName('script')[0];
|
||||
_owa_s.parentNode.insertBefore(_owa, _owa_s);
|
||||
}());
|
||||
3
src/statics/js/workbox-sw-3-0-0.js
Normal file
@@ -0,0 +1,3 @@
|
||||
var workbox=function(){"use strict";try{self.workbox.v["workbox:sw:3.0.0"]=1}catch(t){}const t="https://storage.googleapis.com/workbox-cdn/releases/3.0.0",e={backgroundSync:"background-sync",core:"core",expiration:"cache-expiration",googleAnalytics:"google-analytics",strategies:"strategies",precaching:"precaching",routing:"routing",cacheableResponse:"cacheable-response",broadcastUpdate:"broadcast-cache-update",rangeRequests:"range-requests"};return new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.e=this.t.debug?"dev":"prod",this.s=!1,new Proxy(this,{get(t,s){if(t[s])return t[s];const o=e[s];return o&&t.loadModule(`workbox-${o}`),t[s]}})}setConfig(t={}){if(this.s)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.e=this.t.debug?"dev":"prod"}skipWaiting(){self.addEventListener("install",()=>self.skipWaiting())}clientsClaim(){self.addEventListener("activate",()=>self.clients.claim())}loadModule(t){const e=this.o(t);try{importScripts(e),this.s=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}o(e){if(this.t.modulePathCb)return this.t.modulePathCb(e,this.t.debug);let s=[t];const o=`${e}.${this.e}.js`,r=this.t.modulePathPrefix;return r&&""===(s=r.split("/"))[s.length-1]&&s.splice(s.length-1,1),s.push(o),s.join("/")}}}();
|
||||
|
||||
//# sourceMappingURL=workbox-sw.js.map
|
||||
3
src/statics/js/workbox-sw.js
Normal file
@@ -0,0 +1,3 @@
|
||||
var workbox=function(){"use strict";try{self.workbox.v["workbox:sw:3.4.1"]=1}catch(t){}const t="https://storage.googleapis.com/workbox-cdn/releases/3.4.1",e={backgroundSync:"background-sync",broadcastUpdate:"broadcast-cache-update",cacheableResponse:"cacheable-response",core:"core",expiration:"cache-expiration",googleAnalytics:"google-analytics",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};return new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.e=this.t.debug?"dev":"prod",this.s=!1,new Proxy(this,{get(t,s){if(t[s])return t[s];const o=e[s];return o&&t.loadModule(`workbox-${o}`),t[s]}})}setConfig(t={}){if(this.s)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.e=this.t.debug?"dev":"prod"}skipWaiting(){self.addEventListener("install",()=>self.skipWaiting())}clientsClaim(){self.addEventListener("activate",()=>self.clients.claim())}loadModule(t){const e=this.o(t);try{importScripts(e),this.s=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}o(e){if(this.t.modulePathCb)return this.t.modulePathCb(e,this.t.debug);let s=[t];const o=`${e}.${this.e}.js`,r=this.t.modulePathPrefix;return r&&""===(s=r.split("/"))[s.length-1]&&s.splice(s.length-1,1),s.push(o),s.join("/")}}}();
|
||||
|
||||
//# sourceMappingURL=workbox-sw.js.map
|
||||
3
src/statics/js/workbox-sw3-4-1.js
Normal file
@@ -0,0 +1,3 @@
|
||||
var workbox=function(){"use strict";try{self.workbox.v["workbox:sw:3.4.1"]=1}catch(t){}const t="https://storage.googleapis.com/workbox-cdn/releases/3.4.1",e={backgroundSync:"background-sync",broadcastUpdate:"broadcast-cache-update",cacheableResponse:"cacheable-response",core:"core",expiration:"cache-expiration",googleAnalytics:"google-analytics",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};return new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.e=this.t.debug?"dev":"prod",this.s=!1,new Proxy(this,{get(t,s){if(t[s])return t[s];const o=e[s];return o&&t.loadModule(`workbox-${o}`),t[s]}})}setConfig(t={}){if(this.s)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.e=this.t.debug?"dev":"prod"}skipWaiting(){self.addEventListener("install",()=>self.skipWaiting())}clientsClaim(){self.addEventListener("activate",()=>self.clients.claim())}loadModule(t){const e=this.o(t);try{importScripts(e),this.s=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}o(e){if(this.t.modulePathCb)return this.t.modulePathCb(e,this.t.debug);let s=[t];const o=`${e}.${this.e}.js`,r=this.t.modulePathPrefix;return r&&""===(s=r.split("/"))[s.length-1]&&s.splice(s.length-1,1),s.push(o),s.join("/")}}}();
|
||||
|
||||
//# sourceMappingURL=workbox-sw.js.map
|
||||