cradova 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +6 -0
- package/contributing.md +2 -2
- package/dist/{types.js → site/app.d.ts} +0 -0
- package/dist/site/app.js +2 -0
- package/dist/site/assets/badge.svg +85 -0
- package/dist/site/assets/bulb.png +0 -0
- package/dist/site/assets/cloud.png +0 -0
- package/dist/site/assets/correct.svg +1 -0
- package/dist/site/assets/cradova.png +0 -0
- package/dist/site/assets/des.svg +132 -0
- package/dist/site/assets/sacho.png +0 -0
- package/dist/site/assets/shoot.svg +1 -0
- package/dist/site/assets/spaceship.svg +1 -0
- package/dist/site/assets/star.svg +11 -0
- package/dist/site/assets/support.svg +1 -0
- package/dist/site/doc/about.d.ts +2 -0
- package/dist/site/doc/about.js +17 -0
- package/dist/site/doc/home.d.ts +2 -0
- package/dist/site/doc/home.js +31 -0
- package/dist/site/doc/info.d.ts +2 -0
- package/dist/site/doc/info.js +67 -0
- package/dist/site/index.d.ts +5 -0
- package/dist/site/index.html +40 -0
- package/dist/site/index.js +22 -0
- package/dist/site/prism/prism.css +3 -0
- package/dist/site/prism/prism.js +1013 -0
- package/dist/site/styles/style.css +201 -0
- package/dist/src/index.d.ts +46 -0
- package/dist/src/index.js +1505 -0
- package/dist/src/index.js.map +1 -0
- package/dist/{module.js → src/module.js} +130 -87
- package/dist/src/module.js.map +1 -0
- package/dist/src/sacho/loadCss.d.ts +1 -0
- package/dist/{sacho → src/sacho}/loadCss.js +0 -0
- package/dist/src/sacho/swipe.d.ts +12 -0
- package/dist/{sacho → src/sacho}/swipe.js +13 -25
- package/dist/src/sacho/swipe1.d.ts +12 -0
- package/dist/{sacho → src/sacho}/swipe1.js +0 -0
- package/dist/src/scripts/Router.d.ts +8 -0
- package/dist/{scripts → src/scripts}/Router.js +3 -5
- package/dist/src/scripts/Scaffold.d.ts +8 -0
- package/dist/{scripts → src/scripts}/Scaffold.js +19 -5
- package/dist/src/scripts/Screen.d.ts +54 -0
- package/dist/{scripts → src/scripts}/Screen.js +40 -29
- package/dist/src/scripts/ajax.d.ts +16 -0
- package/dist/{scripts → src/scripts}/ajax.js +0 -0
- package/dist/src/scripts/createSignal.d.ts +124 -0
- package/dist/{scripts → src/scripts}/createSignal.js +0 -0
- package/dist/src/scripts/fns.d.ts +151 -0
- package/dist/{scripts → src/scripts}/fns.js +15 -3
- package/dist/src/scripts/init.d.ts +1 -0
- package/dist/src/scripts/init.js +10 -0
- package/dist/src/scripts/track.d.ts +8 -0
- package/dist/{scripts → src/scripts}/track.js +6 -1
- package/dist/src/scripts/utils.d.ts +1 -0
- package/dist/src/scripts/utils.js +10 -0
- package/dist/{index.d.ts → src/types.d.ts} +18 -9
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +1 -0
- package/package.json +10 -8
- package/site/app.ts +3 -0
- package/site/assets/badge.svg +85 -0
- package/site/assets/bulb.png +0 -0
- package/site/assets/cloud.png +0 -0
- package/site/assets/correct.svg +1 -0
- package/site/assets/cradova.png +0 -0
- package/site/assets/des.svg +132 -0
- package/site/assets/sacho.png +0 -0
- package/site/assets/shoot.svg +1 -0
- package/site/assets/spaceship.svg +1 -0
- package/site/assets/star.svg +11 -0
- package/site/assets/support.svg +1 -0
- package/site/doc/about.ts +26 -0
- package/site/doc/home.ts +41 -0
- package/site/doc/info.ts +147 -0
- package/site/index.html +40 -0
- package/site/index.ts +24 -0
- package/site/manifest.json +37 -0
- package/site/package.json +15 -0
- package/site/prism/prism.css +3 -0
- package/site/prism/prism.js +1013 -0
- package/site/styles/style.css +201 -0
- package/site/sw.js +58 -0
- package/site/workers/online-only-after-initial-cache.ts +131 -0
- package/site/workers/service-worker.ts +60 -0
- package/src/index.ts +53 -42
- package/src/sacho/swipe.ts +15 -27
- package/src/scripts/Router.ts +4 -5
- package/src/scripts/Scaffold.ts +22 -5
- package/src/scripts/Screen.ts +44 -36
- package/src/scripts/fns.ts +15 -3
- package/src/scripts/init.ts +4 -3
- package/src/scripts/track.ts +7 -1
- package/src/scripts/utils.ts +12 -0
- package/src/types.ts +8 -1
- package/tsconfig.json +1 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -415
- package/dist/index.js.map +0 -1
- package/dist/module.js.map +0 -1
- package/dist/scripts/init.js +0 -9
package/CHANGELOG.md
CHANGED
package/contributing.md
CHANGED
|
File without changes
|
package/dist/site/app.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="102px" height="102px" viewBox="0 0 102 102" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>Generic Trophy and Badge/generic-badge</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<rect id="path-1" x="0" y="0" width="94.3396226" height="94.3396226" rx="47.1698113"></rect>
|
|
6
|
+
<filter x="-2.9%" y="-2.9%" width="106.4%" height="106.4%" filterUnits="objectBoundingBox" id="filter-3">
|
|
7
|
+
<feMorphology radius="2.5" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
|
|
8
|
+
<feOffset dx="0.5" dy="0.5" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
|
|
9
|
+
<feMorphology radius="1" operator="erode" in="SourceAlpha" result="shadowInner"></feMorphology>
|
|
10
|
+
<feOffset dx="0.5" dy="0.5" in="shadowInner" result="shadowInner"></feOffset>
|
|
11
|
+
<feComposite in="shadowOffsetOuter1" in2="shadowInner" operator="out" result="shadowOffsetOuter1"></feComposite>
|
|
12
|
+
<feColorMatrix values="0 0 0 0 0.821822822 0 0 0 0 0.831640661 0 0 0 0 0.835737288 0 0 0 1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
|
|
13
|
+
</filter>
|
|
14
|
+
<linearGradient x1="77.8299825%" y1="11.1997378%" x2="-99.6885927%" y2="253.807911%" id="linearGradient-4">
|
|
15
|
+
<stop stop-color="#FFFFFF" offset="0%"></stop>
|
|
16
|
+
<stop stop-color="#000000" stop-opacity="0.5" offset="100%"></stop>
|
|
17
|
+
</linearGradient>
|
|
18
|
+
<rect id="path-5" x="0" y="0" width="94.3396226" height="94.3396226"></rect>
|
|
19
|
+
<path d="M47.1698113,0 C73.2209788,0 94.3396226,21.1186439 94.3396226,47.1698113 C94.3396226,73.2209788 73.2209788,94.3396226 47.1698113,94.3396226 C21.1186439,94.3396226 0,73.2209788 0,47.1698113 C0,21.1186439 21.1186439,0 47.1698113,0 Z M47.1698113,3.77358491 C23.2027373,3.77358491 3.77358491,23.2027373 3.77358491,47.1698113 C3.77358491,71.1368854 23.2027373,90.5660377 47.1698113,90.5660377 C71.1368854,90.5660377 90.5660377,71.1368854 90.5660377,47.1698113 C90.5660377,23.2027373 71.1368854,3.77358491 47.1698113,3.77358491 Z" id="path-6"></path>
|
|
20
|
+
<filter x="-22.6%" y="-16.7%" width="145.3%" height="133.3%" filterUnits="objectBoundingBox" id="filter-8">
|
|
21
|
+
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
22
|
+
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
23
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
|
24
|
+
<feMerge>
|
|
25
|
+
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
|
26
|
+
<feMergeNode in="SourceGraphic"></feMergeNode>
|
|
27
|
+
</feMerge>
|
|
28
|
+
</filter>
|
|
29
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.6885557%" id="linearGradient-9">
|
|
30
|
+
<stop stop-color="#D83F26" offset="0%"></stop>
|
|
31
|
+
<stop stop-color="#F15925" offset="100%"></stop>
|
|
32
|
+
</linearGradient>
|
|
33
|
+
<linearGradient x1="50%" y1="2.04550253%" x2="50%" y2="100%" id="linearGradient-10">
|
|
34
|
+
<stop stop-color="#FFE02A" offset="0%"></stop>
|
|
35
|
+
<stop stop-color="#FFB518" offset="100%"></stop>
|
|
36
|
+
</linearGradient>
|
|
37
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="88.3498733%" id="linearGradient-11">
|
|
38
|
+
<stop stop-color="#FFD000" offset="0%"></stop>
|
|
39
|
+
<stop stop-color="#F28200" offset="100%"></stop>
|
|
40
|
+
</linearGradient>
|
|
41
|
+
</defs>
|
|
42
|
+
<g id="Badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
43
|
+
<g id="Generic-Trophy-and-Badge" transform="translate(-159.000000, -319.000000)">
|
|
44
|
+
<g id="Generic-Trophy-and-Badge/generic-badge" transform="translate(160.000000, 320.000000)">
|
|
45
|
+
<g id="Badge-Plates/Circle">
|
|
46
|
+
<g id="BG" transform="translate(2.830189, 2.830189)">
|
|
47
|
+
<mask id="mask-2" fill="white">
|
|
48
|
+
<use xlink:href="#path-1"></use>
|
|
49
|
+
</mask>
|
|
50
|
+
<g>
|
|
51
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-3)" xlink:href="#path-1"></use>
|
|
52
|
+
<rect stroke="#F2F1F0" stroke-width="2.5" x="-1.25" y="-1.25" width="96.8396226" height="96.8396226" rx="48.4198113"></rect>
|
|
53
|
+
</g>
|
|
54
|
+
<g id="Colors/Microsoft-365/BG-Solid-Badge" mask="url(#mask-2)">
|
|
55
|
+
<g id="Rectangle">
|
|
56
|
+
<use fill="#0078D4" xlink:href="#path-5"></use>
|
|
57
|
+
<use fill-opacity="0.4" fill="url(#linearGradient-4)" xlink:href="#path-5"></use>
|
|
58
|
+
</g>
|
|
59
|
+
</g>
|
|
60
|
+
</g>
|
|
61
|
+
<g id="Border" transform="translate(2.830189, 2.830189)">
|
|
62
|
+
<mask id="mask-7" fill="white">
|
|
63
|
+
<use xlink:href="#path-6"></use>
|
|
64
|
+
</mask>
|
|
65
|
+
<use id="Boarder" fill="#0078D4" fill-rule="nonzero" xlink:href="#path-6"></use>
|
|
66
|
+
<g id="Colors/Microsoft-365/Border" mask="url(#mask-7)" fill="#0076D7">
|
|
67
|
+
<rect id="Microsoft-365/Border" x="0" y="0" width="94.3396226" height="94.3396226"></rect>
|
|
68
|
+
</g>
|
|
69
|
+
</g>
|
|
70
|
+
</g>
|
|
71
|
+
<g id="Certification" filter="url(#filter-8)" transform="translate(23.000000, 15.000000)">
|
|
72
|
+
<path d="M12,39 L12,66.8796423 C12,67.9842118 12.8954305,68.8796423 14,68.8796423 C14.5586623,68.8796423 15.0918609,68.6459784 15.4705154,68.2352176 L21.245247,61.9708432 C24.2399013,58.7222703 29.301037,58.5164287 32.5496099,61.5110831 C32.7364099,61.6832823 32.914901,61.8642823 33.0844763,62.0534675 L38.510708,68.1071994 C39.2479636,68.9297127 40.512406,68.9988277 41.3349193,68.2615721 C41.7581633,67.8821995 42,67.340663 42,66.7722802 L42,39 L42,39" id="Path-49" fill="url(#linearGradient-9)"></path>
|
|
73
|
+
<path d="M23.5703083,2.67912011 L23.5100155,2.73287324 C21.6645494,4.37816897 19.1320978,5.01894467 16.7262077,4.44935189 L16.5297423,4.40283886 C14.5105667,3.92480046 12.4822487,5.15884268 11.9786015,7.17178341 C11.4171205,9.41586981 9.69179733,11.1843769 7.46227424,11.801152 L7.16185374,11.8842603 C5.05024943,12.4684143 3.81200632,14.6537582 4.39616035,16.7653625 C4.40389192,16.7933107 4.41192971,16.8211732 4.42027225,16.8489451 L4.53659946,17.2361924 C5.21449139,19.4928599 4.54940608,21.938619 2.82204828,23.541217 C1.30524699,24.9484662 1.21643741,27.3188774 2.62368653,28.8356787 C2.64675896,28.8605473 2.67016811,28.8851013 2.6939075,28.9093341 L3.25574282,29.4828457 C4.74502642,31.0030802 5.36259433,33.1743733 4.89629404,35.2508229 C4.47243517,37.1382795 5.55438618,39.0382988 7.39390649,39.636892 L8.93408738,40.138078 C10.8206504,40.7519793 12.2335586,42.3297841 12.6363333,44.2724028 C13.0023333,46.0376535 14.6788488,47.2132499 16.4631705,46.9558351 L17.2161276,46.8472099 C19.3570512,46.53835 21.5318012,47.1096124 23.2445565,48.430755 L23.5703083,48.6820254 C25.3489636,50.0540003 27.8216977,50.0803882 29.6292267,48.7466834 L30.1801477,48.3401804 C31.8943855,47.0753115 34.042325,46.5464214 36.1478706,46.8707397 L36.3275279,46.8984124 C38.2879871,47.200383 40.1982455,46.1125438 40.9388315,44.2724028 C41.7413993,42.2782549 43.3745718,40.7338682 45.4104234,40.0439047 L46.0587256,39.8241908 C48.13917,39.1191145 49.3430348,36.948386 48.8394255,34.8102188 L48.8104891,34.6873638 C48.2727911,32.4044666 48.8958336,30.0032719 50.475663,28.2698135 C51.908217,26.6979523 51.9150634,24.2958437 50.4914928,22.715842 L50.475663,22.6982728 C48.8929695,20.9416628 48.2637492,18.5249209 48.7888631,16.2195245 L48.8797004,15.8207235 C49.3235545,13.8720803 48.1036819,11.932578 46.1550387,11.4887239 C46.0921592,11.4744015 46.0289082,11.4617625 45.9653532,11.4508205 L45.8595006,11.4325963 C43.6526654,11.0526548 41.9016722,9.36352995 41.4426248,7.17178341 C41.0316525,5.20957375 39.1078084,3.9520474 37.1455988,4.3630197 C37.1197432,4.36843497 37.0939476,4.37413231 37.0682165,4.38011072 L36.7702016,4.44935189 C34.3099504,5.02096999 31.7244116,4.39120617 29.8025956,2.75224094 L29.6386224,2.6124011 C27.883273,1.11540205 25.2923194,1.14388869 23.5703083,2.67912011 Z" id="Path-48" fill="url(#linearGradient-10)"></path>
|
|
74
|
+
<circle id="Oval" fill="url(#linearGradient-11)" cx="27" cy="26" r="16"></circle>
|
|
75
|
+
<polygon id="Star" fill="#FFFFFF" points="27 31.25 21.4160401 34.1856614 22.4824815 27.9678307 17.9649631 23.5643386 24.2080201 22.6571693 27 17 29.7919799 22.6571693 36.0350369 23.5643386 31.5175185 27.9678307 32.5839599 34.1856614"></polygon>
|
|
76
|
+
</g>
|
|
77
|
+
<path d="M76.2568845,73 C75.7442605,68.5006063 75.3589337,68.250147 71.2568845,70.4998725 C75.1033997,67.750402 74.9748106,67.2496266 71,64.9997866 C75.3591099,66.8748823 75.7431155,66.624423 75.7431155,62 C76.2557395,66.6244802 76.6410663,66.8749395 80.7431155,64.5001275 C76.8966003,67.249598 77.0251894,67.7503734 81,70.1252999 C76.6408901,68.2502043 76.2568845,68.5006636 76.2568845,73 Z" id="Spark" fill="#FFFFFF"></path>
|
|
78
|
+
<path d="M23.8853268,75 C23.1163907,68.0463916 22.5384006,67.6593181 16.3853268,71.1361666 C22.1550995,66.886985 21.962216,66.1130593 16,62.6360339 C22.5386648,65.5339089 23.1146732,65.1468355 23.1146732,58 C23.8836093,65.146924 24.4615994,65.5339974 30.6146732,61.8638334 C24.8449005,66.113015 25.037784,66.8869407 31,70.5572817 C24.4613352,67.6594066 23.8853268,68.04648 23.8853268,75 Z" id="Spark" fill="#FFFFFF"></path>
|
|
79
|
+
<path d="M62.8339499,28 C62.1675386,21.8644631 61.6666138,21.5229278 56.3339499,24.5907352 C61.3344196,20.8414573 61.1672538,20.1585817 56,17.0906181 C61.6668428,19.6475667 62.1660501,19.3060313 62.1660501,13 C62.8324614,19.3061094 63.3333862,19.6476448 68.6660501,16.4092648 C63.6655804,20.1585427 63.8327462,20.8414183 69,24.0799544 C63.3331572,21.5230058 62.8339499,21.8645412 62.8339499,28 Z" id="Spark" fill="#FFFFFF"></path>
|
|
80
|
+
<path d="M82.8853268,55 C82.1163907,48.0463916 81.5384006,47.6593181 75.3853268,51.1361666 C81.1550995,46.886985 80.962216,46.1130593 75,42.6360339 C81.5386648,45.5339089 82.1146732,45.1468355 82.1146732,38 C82.8836093,45.146924 83.4615994,45.5339974 89.6146732,41.8638334 C83.8449005,46.113015 84.037784,46.8869407 90,50.5572817 C83.4613352,47.6594066 82.8853268,48.04648 82.8853268,55 Z" id="Spark" fill="#FFFFFF"></path>
|
|
81
|
+
<path d="M19.7311961,42 C19.2698344,37.9096421 18.9230403,37.6819518 15.2311961,39.7271568 C18.6930597,37.2276382 18.5773296,36.7723878 15,34.7270787 C18.9231989,36.4317111 19.2688039,36.2040209 19.2688039,32 C19.7301656,36.2040729 20.0769597,36.4317632 23.7688039,34.2728432 C20.3069403,36.7723618 20.4226704,37.2276122 24,39.3866363 C20.0768011,37.6820039 19.7311961,37.9096941 19.7311961,42 Z" id="Spark" fill="#FFFFFF"></path>
|
|
82
|
+
</g>
|
|
83
|
+
</g>
|
|
84
|
+
</g>
|
|
85
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" width="16" height="16"><g class="nc-icon-wrapper" fill="lightgreen"><path fill="lighten" d="M16,3.6L15.2,2C8.3,4,4.8,8.4,4.8,8.4L1.6,6L0,7.6L4.8,14C8.5,7.1,16,3.6,16,3.6z"/></g></svg>
|
|
Binary file
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<path style="fill:lightskyblue;" d="M36.782,142.419c12.152-13.258,24.886-25.188,38.907-36.264c1.649-1.302,4.023,0.257,3.471,2.284
|
|
7
|
+
c-7.859,28.885-21.59,57.431-42.757,78.652C35.452,172.235,35.438,157.255,36.782,142.419z"/>
|
|
8
|
+
<path style="fill:lightskyblue;" d="M36.404,187.102c-12.221-14.748-22.723-29.996-32.185-46.458c-1.082-1.882-3.96-1.211-4.07,0.958
|
|
9
|
+
c-1.707,33.721,11.177,73.177,42.567,89.091C39.588,216.353,37.334,201.76,36.404,187.102z"/>
|
|
10
|
+
<path style="fill:lightskyblue;" d="M42.714,230.682c7.691-15.825,16.3-30.548,26.391-44.819c1.197-1.693,3.882-0.917,3.969,1.155
|
|
11
|
+
c1.229,29.129-3.769,59.921-17.726,85.491C50.174,258.899,45.81,244.919,42.714,230.682z"/>
|
|
12
|
+
<path style="fill:lightskyblue;" d="M55.351,272.519c-15.869-10.199-30.365-21.35-44.27-33.876c-1.604-1.445-4.12,0.064-3.577,2.153
|
|
13
|
+
c8.377,32.209,32.333,65.262,66.439,71.1C66.853,299.236,60.502,286.095,55.351,272.519z"/>
|
|
14
|
+
<path style="fill:lightskyblue;" d="M73.937,311.887c2.78-17.264,6.756-33.733,12.291-50.198c0.658-1.958,3.439-1.996,4.129-0.048
|
|
15
|
+
c9.68,27.328,13.601,58.159,7.761,86.493C89.24,336.644,81.027,324.569,73.937,311.887z"/>
|
|
16
|
+
<path style="fill:lightskyblue;" d="M98.124,348.143c-18.089-5.125-35.179-11.534-52.104-19.39c-1.955-0.908-3.915,1.268-2.788,3.105
|
|
17
|
+
c17.402,28.379,49.982,52.949,84.297,48.715C116.995,370.481,107.041,359.7,98.124,348.143z"/>
|
|
18
|
+
<path style="fill:lightskyblue;" d="M127.521,380.566c-2.468-17.394-3.517-34.359-3.032-51.798c0.057-2.067,2.709-2.914,3.937-1.25
|
|
19
|
+
c17.332,23.498,30.262,52.042,33.356,80.981C149.73,400.029,138.158,390.771,127.521,380.566z"/>
|
|
20
|
+
<path style="fill:lightskyblue;" d="M475.218,142.419c-12.152-13.258-24.886-25.188-38.907-36.264c-1.649-1.302-4.023,0.257-3.471,2.284
|
|
21
|
+
c7.859,28.885,21.59,57.431,42.757,78.652C476.548,172.235,476.562,157.255,475.218,142.419z"/>
|
|
22
|
+
<path style="fill:lightskyblue;" d="M475.596,187.102c12.221-14.748,22.723-29.996,32.185-46.458c1.082-1.882,3.96-1.211,4.07,0.958
|
|
23
|
+
c1.707,33.721-11.177,73.177-42.567,89.091C472.412,216.353,474.666,201.76,475.596,187.102z"/>
|
|
24
|
+
<path style="fill:lightskyblue;" d="M469.286,230.682c-7.691-15.825-16.3-30.548-26.391-44.819c-1.197-1.693-3.882-0.917-3.969,1.155
|
|
25
|
+
c-1.229,29.129,3.769,59.921,17.726,85.491C461.826,258.899,466.19,244.919,469.286,230.682z"/>
|
|
26
|
+
<path style="fill:lightskyblue;" d="M456.649,272.519c15.869-10.199,30.365-21.35,44.27-33.876c1.604-1.445,4.12,0.064,3.577,2.153
|
|
27
|
+
c-8.377,32.209-32.333,65.262-66.439,71.1C445.147,299.236,451.498,286.095,456.649,272.519z"/>
|
|
28
|
+
<path style="fill:lightskyblue;" d="M438.063,311.887c-2.78-17.264-6.756-33.733-12.291-50.198c-0.658-1.958-3.439-1.996-4.129-0.048
|
|
29
|
+
c-9.68,27.328-13.601,58.159-7.761,86.493C422.76,336.644,430.973,324.569,438.063,311.887z"/>
|
|
30
|
+
<path style="fill:lightskyblue;" d="M413.876,348.143c18.089-5.125,35.179-11.534,52.104-19.39c1.955-0.908,3.915,1.268,2.788,3.105
|
|
31
|
+
c-17.402,28.379-49.982,52.949-84.297,48.715C395.005,370.481,404.959,359.7,413.876,348.143z"/>
|
|
32
|
+
<path style="fill:lightskyblue;" d="M384.479,380.566c2.468-17.394,3.517-34.359,3.032-51.798c-0.057-2.067-2.709-2.914-3.937-1.25
|
|
33
|
+
c-17.332,23.498-30.262,52.042-33.356,80.981C362.27,400.029,373.842,390.771,384.479,380.566z"/>
|
|
34
|
+
</g>
|
|
35
|
+
<g>
|
|
36
|
+
<path style="fill:lightskyblue;" d="M204.103,424.371c-13.849-6.829-26.508-14.259-37.627-22.081c-0.003-0.002-0.005-0.003-0.008-0.005
|
|
37
|
+
c-0.002-0.001-0.003-0.003-0.005-0.004c-12.409-8.72-23.597-17.839-33.257-27.106c-0.002-0.002-0.004-0.005-0.006-0.007
|
|
38
|
+
c-10.843-10.386-20.451-20.98-28.559-31.489c-0.002-0.003-0.005-0.006-0.007-0.009c-0.001-0.001-0.001-0.002-0.002-0.003
|
|
39
|
+
c-9.146-11.838-17.049-23.681-23.489-35.203c-0.003-0.006-0.007-0.011-0.01-0.017c-7.304-13.047-13.377-25.906-18.049-38.222
|
|
40
|
+
c-0.002-0.005-0.004-0.009-0.006-0.013v-0.001c-5.336-14.041-9.465-27.707-12.274-40.619c0-0.002-0.001-0.003-0.001-0.004
|
|
41
|
+
c-3.225-14.785-5.288-29.022-6.131-42.313c0-0.007-0.002-0.013-0.002-0.019c-0.98-15.307-0.858-29.897,0.363-43.364
|
|
42
|
+
c0.015-0.163,0.015-0.325,0.019-0.487c1.612-20.825,5.467-41.7,11.477-62.057c1.208-4.093-1.131-8.39-5.224-9.598
|
|
43
|
+
c-4.091-1.209-8.39,1.129-9.598,5.224c-6.381,21.615-10.46,43.794-12.123,65.921c-0.011,0.151-0.008,0.299-0.011,0.448
|
|
44
|
+
c-1.222,14.022-1.337,29.12-0.326,44.903c0,0.003,0,0.005,0,0.008c0.892,14.055,3.061,29.055,6.448,44.586
|
|
45
|
+
c0.003,0.012,0.004,0.025,0.006,0.037c2.971,13.66,7.321,28.069,12.93,42.824l0,0c0.001,0.002,0.001,0.004,0.002,0.006
|
|
46
|
+
c4.943,13.028,11.341,26.585,19.017,40.294c0.001,0.002,0.002,0.004,0.003,0.006c0.003,0.005,0.005,0.009,0.008,0.013
|
|
47
|
+
c0,0,0,0,0.001,0.001l0,0c6.811,12.18,15.134,24.66,24.74,37.094c0.004,0.005,0.008,0.008,0.011,0.013
|
|
48
|
+
c8.571,11.107,18.69,22.271,30.077,33.18c0.003,0.003,0.005,0.006,0.008,0.009c10.225,9.811,22.028,19.436,35.082,28.609
|
|
49
|
+
c0.002,0.001,0.003,0.002,0.005,0.003l0,0c11.768,8.281,25.12,16.121,39.683,23.303c1.1,0.542,2.265,0.799,3.412,0.799
|
|
50
|
+
c2.849,0,5.591-1.583,6.936-4.311C209.503,430.892,207.93,426.259,204.103,424.371z"/>
|
|
51
|
+
<path style="fill:lightskyblue;" d="M482.427,143.343c-0.003-0.149,0-0.296-0.011-0.446c-1.663-22.131-5.742-44.311-12.123-65.922
|
|
52
|
+
c-1.208-4.092-5.504-6.426-9.599-5.223c-4.093,1.208-6.431,5.506-5.223,9.599c6.009,20.352,9.864,41.226,11.477,62.053
|
|
53
|
+
c0.005,0.163,0.005,0.326,0.02,0.49c1.221,13.462,1.343,28.053,0.363,43.366c0,0.003,0,0.006,0,0.008
|
|
54
|
+
c0,0.003-0.001,0.005-0.001,0.008c-0.843,13.285-2.906,27.521-6.132,42.313c0,0.001-0.001,0.003-0.001,0.004
|
|
55
|
+
c-2.807,12.912-6.937,26.578-12.274,40.618c-0.001,0.002-0.001,0.003-0.002,0.005c-0.001,0.004-0.003,0.007-0.005,0.01
|
|
56
|
+
c-4.671,12.315-10.746,25.178-18.056,38.235c-0.001,0.001-0.002,0.003-0.003,0.004c-6.439,11.519-14.342,23.362-23.49,35.203
|
|
57
|
+
c-0.002,0.003-0.004,0.006-0.006,0.009c-0.001,0.001-0.001,0.001-0.002,0.002c-8.105,10.505-17.715,21.099-28.559,31.489
|
|
58
|
+
c-0.002,0.002-0.004,0.005-0.006,0.007c-9.656,9.264-20.846,18.384-33.258,27.106c-0.003,0.002-0.006,0.005-0.01,0.008
|
|
59
|
+
c-0.001,0-0.002,0.001-0.003,0.001c-11.119,7.824-23.778,15.253-37.627,22.081c-3.828,1.887-5.401,6.52-3.513,10.347
|
|
60
|
+
c1.345,2.73,4.086,4.312,6.936,4.312c1.147,0,2.312-0.257,3.411-0.799c14.561-7.18,27.911-15.019,39.679-23.299
|
|
61
|
+
c0.004-0.003,0.008-0.004,0.012-0.007c13.056-9.176,24.859-18.801,35.081-28.609c0.003-0.003,0.005-0.006,0.008-0.009
|
|
62
|
+
c11.392-10.916,21.514-22.082,30.083-33.188c0.001,0,0.001-0.001,0.002-0.002s0.002-0.002,0.003-0.003
|
|
63
|
+
c9.611-12.442,17.939-24.927,24.749-37.108c0.005-0.008,0.008-0.016,0.012-0.024c7.674-13.708,14.069-27.259,19.006-40.275
|
|
64
|
+
c0-0.001,0.001-0.001,0.001-0.003c0-0.001,0.001-0.001,0.001-0.003c5.606-14.747,9.953-29.147,12.924-42.801
|
|
65
|
+
c0.001-0.003,0.002-0.005,0.003-0.008c3.393-15.557,5.566-30.575,6.458-44.639c0.001-0.011,0-0.021,0-0.031
|
|
66
|
+
C483.763,172.442,483.648,157.352,482.427,143.343z"/>
|
|
67
|
+
</g>
|
|
68
|
+
<g>
|
|
69
|
+
<path style="fill:lightskyblue;" d="M212.092,296.012c-22.276,0.001-43.988-7.892-61.265-22.594
|
|
70
|
+
c-21.314-18.138-33.539-44.588-33.539-72.567v-26.128c0-3.02,1.178-5.86,3.316-7.993c2.131-2.125,4.961-3.295,7.969-3.295
|
|
71
|
+
c0.01,0,0.02,0,0.03,0l68.408,0.15c4.267,0.009,7.719,3.476,7.71,7.744c-0.01,4.261-3.468,7.71-7.726,7.71
|
|
72
|
+
c-0.006,0-0.012,0-0.018,0l-64.235-0.141l-0.001,21.952c0,23.44,10.242,45.6,28.1,60.797c17.721,15.08,41.018,21.603,63.905,17.89
|
|
73
|
+
c0.794-0.129,1.593-0.264,2.4-0.405c4.208-0.729,8.208,2.075,8.944,6.278c0.736,4.204-2.075,8.208-6.278,8.944
|
|
74
|
+
c-0.871,0.152-1.736,0.299-2.593,0.438C222.18,295.61,217.12,296.012,212.092,296.012z"/>
|
|
75
|
+
<path style="fill:lightskyblue;" d="M299.908,296.012c-5.03,0-10.086-0.402-15.128-1.219c-0.857-0.139-1.722-0.286-2.593-0.438
|
|
76
|
+
c-4.204-0.736-7.014-4.741-6.278-8.944c0.736-4.204,4.745-7.009,8.944-6.278c0.806,0.142,1.606,0.277,2.4,0.405
|
|
77
|
+
c22.892,3.71,46.184-2.81,63.905-17.89c17.858-15.196,28.1-37.356,28.1-60.797v-21.952l-64.235,0.141c-0.006,0-0.012,0-0.018,0
|
|
78
|
+
c-4.259,0-7.717-3.448-7.726-7.71c-0.01-4.268,3.442-7.735,7.71-7.744l68.411-0.15c0.01,0,0.02,0,0.03,0
|
|
79
|
+
c3.006,0,5.835,1.169,7.967,3.295c2.138,2.134,3.316,4.972,3.316,7.993v26.128c0,27.979-12.224,54.429-33.539,72.567
|
|
80
|
+
C343.897,288.119,322.183,296.012,299.908,296.012z"/>
|
|
81
|
+
</g>
|
|
82
|
+
<path style="fill:lightskyblue;" d="M205.195,407.993h101.609c-42.089-53.374-37.697-130.296-37.697-130.296H256h-13.107
|
|
83
|
+
C242.893,277.698,247.285,354.62,205.195,407.993z"/>
|
|
84
|
+
<path style="fill:lightskyblue;" d="M269.107,277.698H256h-13.107c0,0,0.68,11.943-1.069,29.681
|
|
85
|
+
c-3.334,33.811,5.053,67.919,24.841,95.536c1.228,1.714,2.5,3.408,3.817,5.078h36.323
|
|
86
|
+
C264.715,354.62,269.107,277.698,269.107,277.698z"/>
|
|
87
|
+
<path style="fill:lightskyblue;" d="M179.353,141.293v67.411c0,39.882,18.955,77.39,51.064,101.046l0,0
|
|
88
|
+
c15.214,11.208,35.952,11.208,51.166,0l0,0c32.109-23.655,51.064-61.164,51.064-101.046v-67.411L179.353,141.293L179.353,141.293z"
|
|
89
|
+
/>
|
|
90
|
+
<path style="fill:lightskyblue;" d="M296.152,141.293v67.411c0,39.882-18.955,77.39-51.064,101.046l0,0
|
|
91
|
+
c-2.329,1.716-4.788,3.166-7.336,4.356c14.098,6.587,30.945,5.137,43.83-4.356l0,0c32.109-23.655,51.064-61.164,51.064-101.046
|
|
92
|
+
v-67.411L296.152,141.293L296.152,141.293z"/>
|
|
93
|
+
<path style="fill:lightskyblue;" d="M338.138,151.823H173.862c-2.476,0-4.483-2.007-4.483-4.483v-18.578c0-2.476,2.007-4.483,4.483-4.483
|
|
94
|
+
h164.276c2.476,0,4.483,2.007,4.483,4.483v18.578C342.62,149.816,340.613,151.823,338.138,151.823z"/>
|
|
95
|
+
<path style="fill:lightskyblue;" d="M338.138,124.28h-32.012v27.543h32.012c2.476,0,4.482-2.007,4.482-4.483v-18.578
|
|
96
|
+
C342.62,126.287,340.613,124.28,338.138,124.28z"/>
|
|
97
|
+
<path style="fill:lightskyblue;" d="M343.164,440.569h-173.64c-2.517,0-4.264-2.507-3.392-4.868l12.895-34.94
|
|
98
|
+
c0.524-1.421,1.878-2.364,3.392-2.364h147.85c1.514,0,2.868,0.943,3.392,2.364l12.895,34.94
|
|
99
|
+
C347.428,438.062,345.681,440.569,343.164,440.569z"/>
|
|
100
|
+
<path style="fill:lightskyblue;" d="M346.557,435.701l-12.895-34.94c-0.525-1.421-1.878-2.364-3.393-2.364h-35.266l15.564,42.172h32.597
|
|
101
|
+
C345.681,440.569,347.428,438.062,346.557,435.701z"/>
|
|
102
|
+
<g>
|
|
103
|
+
</g>
|
|
104
|
+
<g>
|
|
105
|
+
</g>
|
|
106
|
+
<g>
|
|
107
|
+
</g>
|
|
108
|
+
<g>
|
|
109
|
+
</g>
|
|
110
|
+
<g>
|
|
111
|
+
</g>
|
|
112
|
+
<g>
|
|
113
|
+
</g>
|
|
114
|
+
<g>
|
|
115
|
+
</g>
|
|
116
|
+
<g>
|
|
117
|
+
</g>
|
|
118
|
+
<g>
|
|
119
|
+
</g>
|
|
120
|
+
<g>
|
|
121
|
+
</g>
|
|
122
|
+
<g>
|
|
123
|
+
</g>
|
|
124
|
+
<g>
|
|
125
|
+
</g>
|
|
126
|
+
<g>
|
|
127
|
+
</g>
|
|
128
|
+
<g>
|
|
129
|
+
</g>
|
|
130
|
+
<g>
|
|
131
|
+
</g>
|
|
132
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><circle fill="lightskyblue" cx="18" cy="18" r="18"/><circle fill="#FFF" cx="18" cy="18" r="13.5"/><circle fill="lightskyblue" cx="18" cy="18" r="10"/><circle fill="#FFF" cx="18" cy="18" r="6"/><circle fill="lightskyblue" cx="18" cy="18" r="3"/><path opacity=".2" d="M18.24 18.282l13.144 11.754s-2.647 3.376-7.89 5.109L17.579 18.42l.661-.138z"/><path fill="#FFAC33" d="M18.294 19c-.255 0-.509-.097-.704-.292-.389-.389-.389-1.018 0-1.407l.563-.563c.389-.389 1.018-.389 1.408 0 .388.389.388 1.018 0 1.407l-.564.563c-.194.195-.448.292-.703.292z"/><path fill="#55ACEE" d="M24.016 6.981c-.403 2.079 0 4.691 0 4.691l7.054-7.388c.291-1.454-.528-3.932-1.718-4.238-1.19-.306-4.079.803-5.336 6.935zm5.003 5.003c-2.079.403-4.691 0-4.691 0l7.388-7.054c1.454-.291 3.932.528 4.238 1.718.306 1.19-.803 4.079-6.935 5.336z"/><path fill="#3A87C2" d="M32.798 4.485L21.176 17.587c-.362.362-1.673.882-2.51.046-.836-.836-.419-2.08-.057-2.443L31.815 3.501s.676-.635 1.159-.152-.176 1.136-.176 1.136z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24" width="24" height="24"><g class="nc-icon-wrapper" fill="#1382fd"><path d="M23.58.424A1,1,0,0,0,22.819.13C8.791.862,3.609,13.358,3.559,13.484a1,1,0,0,0,.22,1.08l5.657,5.657a1,1,0,0,0,1.085.218c.125-.051,12.554-5.291,13.348-19.253A1,1,0,0,0,23.58.424Zm-8.166,10.99a2,2,0,1,1,0-2.828A2,2,0,0,1,15.414,11.414Z" fill="#1382fd"/> <path data-color="color-2" d="M1.113,18.844a2.844,2.844,0,1,1,4.022,4.022C4.024,23.977,0,24,0,24S0,19.954,1.113,18.844Z" fill="#1382fd"/> <path id="color-2" d="M10.357,2.341A8.911,8.911,0,0,0,2.522,4.825a9.084,9.084,0,0,0-1.384,1.8,1,1,0,0,0,.155,1.215l1.989,1.99A26.623,26.623,0,0,1,10.357,2.341Z" fill="#1382fd"/> <path id="color-3" d="M21.659,13.643a8.911,8.911,0,0,1-2.484,7.835,9.084,9.084,0,0,1-1.8,1.384,1,1,0,0,1-1.215-.155l-1.99-1.989A26.623,26.623,0,0,0,21.659,13.643Z" fill="#1382fd"/></g></svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="80" height="72" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<g fill-rule="nonzero" fill="none">
|
|
4
|
+
<path d="M40 71.52L.48 25.6 17.6 2.4 40 0l22.4 2.4 17.12 23.2z" fill="#FFAE00"/>
|
|
5
|
+
<path d="M40 71.52L.48 25.6h79.04z" fill="#EC6C00"/>
|
|
6
|
+
<path d="M40 71.52L16.48 25.6h47.04z" fill="#FFAE00"/>
|
|
7
|
+
<path d="M40 0L16.48 25.6h47.04z" fill="#FFEFB4"/>
|
|
8
|
+
<path d="M17.6 2.4L8.8 14.08.48 25.6h16.16zM62.4 2.4l8.8 11.68 8.32 11.52H63.36z" fill="#FFAE00"/>
|
|
9
|
+
<path d="M17.6 2.4l-1.12 23.2L40 0zM62.4 2.4l1.12 23.2L40 0z" fill="#FED305"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" width="16" height="16"><g class="nc-icon-wrapper" fill="#1382fd"><path fill="#1382fd" d="M8,0C3.6,0,0,3.6,0,8c0,4.4,3.6,8,8,8s8-3.6,8-8C16,3.6,12.4,0,8,0z M8,10c-1.1,0-2-0.9-2-2c0-1.1,0.9-2,2-2 s2,0.9,2,2C10,9.1,9.1,10,8,10z M8,2c0.9,0,1.8,0.2,2.6,0.6L9.044,4.156c-0.761-0.207-1.327-0.207-2.089,0L5.4,2.6 C6.2,2.2,7.1,2,8,2z M2,8c0-0.9,0.2-1.8,0.6-2.6l1.556,1.556c-0.207,0.761-0.207,1.327,0,2.089L2.6,10.6C2.2,9.8,2,8.9,2,8z M8,14 c-0.9,0-1.8-0.2-2.6-0.6l1.556-1.556c0.761,0.207,1.327,0.207,2.089,0L10.6,13.4C9.8,13.8,8.9,14,8,14z M13.4,10.6l-1.556-1.556 c0.207-0.761,0.207-1.327,0-2.089L13.4,5.4C13.8,6.2,14,7.1,14,8C14,8.9,13.8,9.8,13.4,10.6z"/></g></svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import _, { Screen } from "../../dist/src/module.js";
|
|
3
|
+
import sm from "../index";
|
|
4
|
+
function header() {
|
|
5
|
+
return _("div", _("img", { src: "assets/cradova.png" }), _("h1.cradova|About Cradova"), _("h2", { text: "Build apps that feels native" }), _("a|go to info screen", {
|
|
6
|
+
href: "/info",
|
|
7
|
+
}), _("button|pop it", {
|
|
8
|
+
onclick() {
|
|
9
|
+
sm.pop();
|
|
10
|
+
},
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
const home = new Screen({
|
|
14
|
+
name: "Cradova",
|
|
15
|
+
template: header,
|
|
16
|
+
});
|
|
17
|
+
export default home;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable no-undef */
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import _, { Screen } from "../../dist/src";
|
|
4
|
+
import sm from "../index";
|
|
5
|
+
// import about from "./about";
|
|
6
|
+
// import home from "./info";
|
|
7
|
+
Screen;
|
|
8
|
+
function header(data) {
|
|
9
|
+
data = data || 0;
|
|
10
|
+
this.effect(() => {
|
|
11
|
+
data = data ? data + 1 : 1;
|
|
12
|
+
return data;
|
|
13
|
+
});
|
|
14
|
+
return _("div", _("img#hello", { src: "assets/cradova.png" }), _("h1.cradova|Cradova"), _("h1.cradova|Current data is => " + data), _("h2", { text: "Build apps that feels native" }), _("a|go to info screen", {
|
|
15
|
+
href: "/info",
|
|
16
|
+
}), _("button|home", {
|
|
17
|
+
// backgroundColor: "black",
|
|
18
|
+
onclick() {
|
|
19
|
+
sm.push("info");
|
|
20
|
+
},
|
|
21
|
+
}), _("button|pop", {
|
|
22
|
+
// backgroundColor: "black",
|
|
23
|
+
onclick() {
|
|
24
|
+
sm.pop();
|
|
25
|
+
},
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
export default new Screen({
|
|
29
|
+
name: "Cradova",
|
|
30
|
+
template: header,
|
|
31
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import _, { Screen, frag } from "../../dist/src/src";
|
|
3
|
+
import sm from "../index";
|
|
4
|
+
// reusable elements
|
|
5
|
+
const logo = _("img.doming", {
|
|
6
|
+
src: "assets/cradova.png",
|
|
7
|
+
});
|
|
8
|
+
const h3 = _("h3|Build apps that feels native", {
|
|
9
|
+
style: { margin: "auto" },
|
|
10
|
+
});
|
|
11
|
+
const h2 = _("h2| Cradova Documentation page", {
|
|
12
|
+
style: { margin: "10px auto" },
|
|
13
|
+
});
|
|
14
|
+
const p = _("p.paragraph");
|
|
15
|
+
const code = (code, type = "js") => _("pre", { class: "language-" + type, tabindex: 0 }, _("code", { class: "language-" + type }, code));
|
|
16
|
+
const a = _("a");
|
|
17
|
+
const div = _("div", {
|
|
18
|
+
style: {
|
|
19
|
+
margin: "8px",
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* header
|
|
24
|
+
*/
|
|
25
|
+
const head = frag(h2, _ `br`, logo, _ `br`, _ `br`, h3, _ `hr`);
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* document body
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
const body = _("div.section", {
|
|
32
|
+
margin: "8px",
|
|
33
|
+
}, head, h2({
|
|
34
|
+
text: "version 1.0.3 docs",
|
|
35
|
+
style: { margin: "auto" },
|
|
36
|
+
}), p("Some features in this version", {
|
|
37
|
+
style: {
|
|
38
|
+
borderBottom: "2px black solid",
|
|
39
|
+
width: "fit-content",
|
|
40
|
+
},
|
|
41
|
+
onclick() {
|
|
42
|
+
sm.push("home");
|
|
43
|
+
},
|
|
44
|
+
}), _("ul", { style: { margin: "20px" } }, _ `li| Easy to use template engine syntax`, _ `li| State management`, _ `li| Screens, Routes, CreateSignal, ajax, Ref and more .`),
|
|
45
|
+
//
|
|
46
|
+
p("Content Index", {
|
|
47
|
+
style: {
|
|
48
|
+
borderBottom: "2px black solid",
|
|
49
|
+
width: "fit-content",
|
|
50
|
+
},
|
|
51
|
+
}), _("ul", { style: { margin: "20px" } }, a(_ `li| creating a Cradova project`, { href: "#create" }), a(_ `li| creating elements Cradova`, { href: "#elements" })),
|
|
52
|
+
// creating a cradova project
|
|
53
|
+
div({
|
|
54
|
+
id: "create",
|
|
55
|
+
}, h2({ text: "Creating a Cradova project" }), p(`To create a Cradova project you have 2 options at your finger tips,
|
|
56
|
+
\n
|
|
57
|
+
and you can do this by either installing Cradova from npm or using the CLI tool.`), code(` $ npm install cradova --save `), code(` $ npx create-cradova-app myappname `), p(`With that you have a clean Cradova app project to start building.`), p(`use npx if you a beginner or don't want to set things up yourself.`)),
|
|
58
|
+
// elements
|
|
59
|
+
div({
|
|
60
|
+
id: "elements",
|
|
61
|
+
}, h2({ text: "Creating elements in Cradova" }), p(`There two types of elements in Cradova, which are dynamic and static `), p(`Static elements don't require any state update in the way they are constructed, they have an unchanged life cycle in the app, examples are .`), code(`_("p") // creates a p tag only`), code(`_("p.paragraph") // with class`), code(`_("p#paragraph") // with id`), code(`_("p.paragraph#paragraph") // with both`), code(`_("p.paragraph| hello world") // with text`), p("where every given above optional"), p(`Dynamic elements can be given props at call time and also undergo state update, examples are.`), code(`_("p") // creates a p tag only`), code(`_("p.paragraph") // with class `), code(`_("p#paragraph") // with id `), code(`_("p.paragraph#paragraph") // both`), code(`_("p| hello world") // adding text`), code(`_("p.para", {class:"pa", id: "pa}) //props`), code(`_("p.pa",{style: {color: "aqua"}}) //styles`), p(`Dynamic element declaration like these return function not html, and by so you can add and overwrite props and add more children later on`), p(`When creating elements with _ both dynamic or static be sure to follow the follow the order selector, properties, children,
|
|
62
|
+
it's not important when calling dynamic components`)));
|
|
63
|
+
function page() {
|
|
64
|
+
return body;
|
|
65
|
+
}
|
|
66
|
+
const info = new Screen({ name: "set up cradova", template: page });
|
|
67
|
+
export default info;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title></title>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<link rel="shortcut icon" href="assets/cradova.png" type="image/x-icon" />
|
|
9
|
+
<link rel="stylesheet" href="styles/style.css" />
|
|
10
|
+
<meta name="description" content="cradova app." />
|
|
11
|
+
<link rel="icon" type="image/png" href="assets/cradova.png" />
|
|
12
|
+
<meta name="theme-color" content="#1a237e" />
|
|
13
|
+
|
|
14
|
+
<!-- Add to homescreen for Chrome on Android. -->
|
|
15
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
16
|
+
<meta name="application-name" content="cradova" />
|
|
17
|
+
<!-- Default twitter cards -->
|
|
18
|
+
<meta name="twitter:card" content="summary" />
|
|
19
|
+
<meta name="twitter:title" content=".app" />
|
|
20
|
+
<meta name="twitter:description" content="cradova" />
|
|
21
|
+
<meta name="twitter:image" content="assets/cradova.png" />
|
|
22
|
+
<meta name="twitter:creator" content="@fridaycandour" />
|
|
23
|
+
|
|
24
|
+
<!-- Other sharing -->
|
|
25
|
+
<meta property="og:title" content=".app" />
|
|
26
|
+
<meta property="og:type" content="website" />
|
|
27
|
+
<meta property="og:image" content="assets/cradova.png" />
|
|
28
|
+
<meta property="og:description" content="cradova" />
|
|
29
|
+
<link rel="stylesheet" href="styles/style.css" />
|
|
30
|
+
<link href="prism/prism.css" rel="stylesheet" />
|
|
31
|
+
</head>
|
|
32
|
+
<body>
|
|
33
|
+
<button id="butInstall" aria-label="Install" class="download-app hide">
|
|
34
|
+
Instal
|
|
35
|
+
</button>
|
|
36
|
+
<script type="module" src="index.js"></script>
|
|
37
|
+
<script type="module" src="app.js"></script>
|
|
38
|
+
<script src="prism/prism.js"></script>
|
|
39
|
+
</body>
|
|
40
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import { Scaffold } from "../dist/src/module.js";
|
|
3
|
+
/**
|
|
4
|
+
* import screens
|
|
5
|
+
*/
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import home from "./doc/home.js";
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import info from "./doc/info.js";
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
const sm = new Scaffold();
|
|
12
|
+
sm.addScaffolds({
|
|
13
|
+
home,
|
|
14
|
+
info,
|
|
15
|
+
});
|
|
16
|
+
export default sm;
|
|
17
|
+
/**
|
|
18
|
+
* Router setup.
|
|
19
|
+
*/
|
|
20
|
+
// Router.route("/dist/site/index.html", home);
|
|
21
|
+
// Router.route("/", home);
|
|
22
|
+
// Router.route("/info", info);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* PrismJS 1.29.0
|
|
2
|
+
https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+bash+css-extras */
|
|
3
|
+
code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#8292a2}.token.punctuation{color:#f8f8f2}.token.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#a6e22e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#e6db74}.token.keyword{color:#66d9ef}.token.important,.token.regex{color:#fd971f}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
|