turbo_ready 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,57 @@
1
+ <svg
2
+ version="1.0"
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ xmlns:xlink="http://www.w3.org/1999/xlink"
5
+ width="800"
6
+ height="600"
7
+ >
8
+ <svg
9
+ version="1.0"
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ width="0"
12
+ height="0"
13
+ viewBox="0 0 340.000000 250.000000"
14
+ preserveAspectRatio="xMidYMid meet"
15
+ color-interpolation-filters="sRGB"
16
+ xmlns:xlink="http://www.w3.org/1999/xlink"
17
+ >
18
+ <defs>
19
+ <pattern
20
+ id="watermark"
21
+ patternUnits="userSpaceOnUse"
22
+ width="100%"
23
+ height="100%"
24
+ >
25
+ <image
26
+ xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAGQCAYAAAAUdV17AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTVGN0VCRjlGMjcwMTFFOUIyNjM4MDRGRkI5QkJENjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTVGN0VCRkFGMjcwMTFFOUIyNjM4MDRGRkI5QkJENjEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpFNUY3RUJGN0YyNzAxMUU5QjI2MzgwNEZGQjlCQkQ2MSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpFNUY3RUJGOEYyNzAxMUU5QjI2MzgwNEZGQjlCQkQ2MSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pgp++w8AAAPuSURBVHja7NSxDQAACMMw+v/R5QoGJPuEDEnbAfgghgUYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYgGEZFmBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBhmVYgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgUYlgqAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQGGZViAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBRiWYQGGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWYFiGBRgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFiAYakAGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQFcWgEGAJzsrR2jCcEwAAAAAElFTkSuQmCC"
27
+ x="0"
28
+ y="0"
29
+ width="100%"
30
+ height="100%"
31
+ ></image>
32
+ </pattern>
33
+ </defs>
34
+ </svg>
35
+ <rect
36
+ x="0"
37
+ y="0"
38
+ width="100%"
39
+ height="100%"
40
+ fill="#ffffff"
41
+ fill-opacity="1"
42
+ ></rect>
43
+ <svg
44
+ version="1.0"
45
+ xmlns="http://www.w3.org/2000/svg"
46
+ xmlns:xlink="http://www.w3.org/1999/xlink"
47
+ x="0"
48
+ y="0"
49
+ width="800"
50
+ height="600"
51
+ viewBox="0 0 340.000000 250.000000"
52
+ preserveAspectRatio="xMidYMid meet"
53
+ color-interpolation-filters="sRGB"
54
+ >
55
+ <defs><linearGradient id="92" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#fa71cd"/> <stop offset="100%" stop-color="#9b59b6"/></linearGradient><linearGradient id="93" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#f9d423"/> <stop offset="100%" stop-color="#f83600"/></linearGradient><linearGradient id="94" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#0064d2"/> <stop offset="100%" stop-color="#1cb0f6"/></linearGradient><linearGradient id="95" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#f00978"/> <stop offset="100%" stop-color="#3f51b1"/></linearGradient><linearGradient id="96" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#7873f5"/> <stop offset="100%" stop-color="#ec77ab"/></linearGradient><linearGradient id="97" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#f9d423"/> <stop offset="100%" stop-color="#e14fad"/></linearGradient><linearGradient id="98" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#009efd"/> <stop offset="100%" stop-color="#2af598"/></linearGradient><linearGradient id="99" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#ffcc00"/> <stop offset="100%" stop-color="#00b140"/></linearGradient><linearGradient id="100" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#d51007"/> <stop offset="100%" stop-color="#ff8177"/></linearGradient><linearGradient id="102" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#a2b6df"/> <stop offset="100%" stop-color="#0c3483"/></linearGradient><linearGradient id="103" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#7ac5d8"/> <stop offset="100%" stop-color="#eea2a2"/></linearGradient><linearGradient id="104" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#00ecbc"/> <stop offset="100%" stop-color="#007adf"/></linearGradient><linearGradient id="105" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#b88746"/> <stop offset="100%" stop-color="#fdf5a6"/></linearGradient></defs> <g fill="#333333" class="iconbordersvg" transform="translate(111.33499908447266,58.848602294921875)"><g><g><rect stroke-width="2" class="i-icon-bg" x="0" y="0" width="117.33000183105469" height="132.30279541015625" fill-opacity="0" stroke="rgb(51, 51, 51)"/> </g> <g transform="translate(0,0)"><g transform="translate(3.6650009155273438,0)"><g><rect stroke-width="2" class="i-icon-bg" x="0" y="0" width="110" height="103.34278869628906" fill-opacity="0"/> </g> <g transform="translate(5,5)"><g class="iconsvg-imagesvg"><g> <svg filter="url(#colors6771706738)" x="0" y="0" width="100" height="93.34279206959638" filtersec="colorsf4508885472" class="image-svg-svg primary" style="overflow: visible;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="15.999709129333496 31.97178840637207 480.00042724609375 448.04376220703125" x="0px" y="0px"><g><path d="M486.226,82.911A64.15,64.15,0,0,0,440.568,64,8.578,8.578,0,0,0,432,72.568V88.284A7.724,7.724,0,0,1,424.284,96,8.293,8.293,0,0,1,416,87.716V80.729a8.568,8.568,0,0,0-10.646-8.313L375.018,80H317.975A64,64,0,0,0,192,96v40H115.214a154.477,154.477,0,0,0-96.125,33.686,8,8,0,0,0-.746,11.971l.568.569A87.424,87.424,0,0,0,81.137,208H192v48H40a8,8,0,0,0-5.657,2.343l-16,16a8,8,0,0,0,0,11.314l16,16A8,8,0,0,0,40,304H192v40H168a24.039,24.039,0,0,0-22.624,16H112l-9.6-12.8a8,8,0,0,0-12.8,9.6L92,360H80l-9.6-12.8a8,8,0,0,0-12.8,9.6L60,360H48l-9.6-12.8a8,8,0,0,0-12.8,9.6L28,360H24a8,8,0,0,0,0,16H40l9.6,12.8a8,8,0,1,0,12.8-9.6L60,376H72l9.6,12.8a8,8,0,1,0,12.8-9.6L92,376h12l9.6,12.8a8,8,0,1,0,12.8-9.6L124,376h21.376A24.039,24.039,0,0,0,168,392h24.518a64.106,64.106,0,0,0,56.211,55.575,40,40,0,1,0,65.727-37.568A63.456,63.456,0,0,0,319.482,392h94.629l14.311,7.155A7.994,7.994,0,0,0,432,400h56a8,8,0,0,0,8-8V344a8,8,0,0,0-8-8H432a7.994,7.994,0,0,0-3.578.845L414.111,344H320V304h48a8,8,0,0,0,6.074-2.794l9.147-10.671,11.122,11.122A8,8,0,0,0,400,304h36.223a65.527,65.527,0,0,0,58.932-36.422A8,8,0,0,0,488,256H419.313l-3.494-3.5,3.861-4.5H488a8,8,0,0,0,7.155-11.578A65.527,65.527,0,0,0,436.223,200H400a8,8,0,0,0-6.2,2.947l-6.353,7.8-4.789-7.184A8,8,0,0,0,376,200H320V144H487.432A8.578,8.578,0,0,0,496,135.432V106.177a32.364,32.364,0,0,0-9.539-23.031ZM192,376H168a8,8,0,0,1,0-16h24Zm0-88H43.313l-8-8,8-8H192Zm0-96H81.137A71.448,71.448,0,0,1,36.6,176.586,138.574,138.574,0,0,1,115.214,152H192Zm64,240a48.053,48.053,0,0,1-48-48V96a48,48,0,0,1,96,0V384A48.053,48.053,0,0,1,256,432Zm32,32a24.039,24.039,0,0,1-22.849-16.665,63.993,63.993,0,0,0,40.738-23.312A23.984,23.984,0,0,1,288,464ZM472,352h8v32h-8Zm-56,8a7.994,7.994,0,0,0,3.578-.845L433.889,352H456v32H433.889l-14.311-7.155A7.994,7.994,0,0,0,416,376H320V360ZM320,248h37.1l-6.517,8H320Zm96,24h56.874a49.594,49.594,0,0,1-36.651,16h-32.91l-9.648-9.649,11.71-13.662,4.968,4.968A8,8,0,0,0,416,272Zm-12.2-56h32.421a49.594,49.594,0,0,1,36.651,16H416a8,8,0,0,0-6.074,2.794L364.32,288H320V272h34.381a8,8,0,0,0,6.2-2.947Zm-32.083,0,5.151,7.727L370.13,232H320V216ZM480,128H320V96h55.93a8.551,8.551,0,0,0,1.962-.228c.039-.008.078-.018.117-.028l22.119-5.529A24.317,24.317,0,0,0,424.284,112,23.743,23.743,0,0,0,448,88.284V80.562a48.188,48.188,0,0,1,26.911,13.664l.235.235A16.458,16.458,0,0,1,480,106.177Z"/><rect x="88" y="160" width="24" height="16"/><path d="M232,264a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V272A8,8,0,0,0,232,264Z"/><path d="M232,320a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V328A8,8,0,0,0,232,320Z"/><path d="M256,64a32,32,0,1,0,32,32A32.036,32.036,0,0,0,256,64Zm0,48a16,16,0,1,1,16-16A16.019,16.019,0,0,1,256,112Z"/></g></svg></svg> <defs><filter id="colors6771706738"><feColorMatrix type="matrix" values="0 0 0 0 0.19921875 0 0 0 0 0.19921875 0 0 0 0 0.19921875 0 0 0 1 0" class="icon-feColorMatrix "/></filter> <filter id="colorsf4508885472"><feColorMatrix type="matrix" values="0 0 0 0 0.99609375 0 0 0 0 0.99609375 0 0 0 0 0.99609375 0 0 0 1 0" class="icon-fecolormatrix"/></filter> <filter id="colorsb5328629419"><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" class="icon-fecolormatrix"/></filter></defs></g></g></g></g> <g transform="translate(0,103.34278869628906)" mask="url(#bf1e0ea4-b39a-4751-a544-4fca866e2939)"><g><rect stroke-width="2" class="i-icon-bg" x="0" y="0" width="117.33000183105469" height="28.96000099182129" fill-opacity="1"/> </g> <g transform="translate(5,5)"><g fill-rule="" class="tp-name"><g transform="scale(1)"><g><path d="M6.29 0L6.29 0Q5.73 0 5.37-0.35 5-0.71 5-1.23L5-1.23 5-12.93 7.62-12.93 7.62-1.23Q7.62-0.71 7.25-0.35 6.88 0 6.29 0ZM10.79-11.8L1.84-11.8Q1.31-11.8 0.96-12.12 0.61-12.44 0.61-12.97L0.61-12.97Q0.61-13.49 0.96-13.81 1.31-14.12 1.84-14.12L1.84-14.12 10.79-14.12Q11.32-14.12 11.67-13.8 12.02-13.47 12.02-12.95L12.02-12.95Q12.02-12.42 11.67-12.11 11.32-11.8 10.79-11.8L10.79-11.8ZM18.52-10.79L18.52-10.79Q19.05-10.79 19.39-10.44 19.73-10.08 19.73-9.56L19.73-9.56 19.73-4.44Q19.73-2.3 18.54-1.05 17.35 0.2 15.12 0.2L15.12 0.2Q12.88 0.2 11.7-1.05 10.52-2.3 10.52-4.44L10.52-4.44 10.52-9.56Q10.52-10.08 10.86-10.44 11.2-10.79 11.73-10.79L11.73-10.79Q12.25-10.79 12.59-10.44 12.94-10.08 12.94-9.56L12.94-9.56 12.94-4.44Q12.94-3.21 13.48-2.61 14.03-2.02 15.12-2.02L15.12-2.02Q16.22-2.02 16.77-2.61 17.31-3.21 17.31-4.44L17.31-4.44 17.31-9.56Q17.31-10.08 17.66-10.44 18-10.79 18.52-10.79ZM22.57 0L22.57 0Q22.04 0 21.7-0.35 21.36-0.71 21.36-1.23L21.36-1.23 21.36-9.56Q21.36-10.08 21.7-10.44 22.04-10.79 22.57-10.79L22.57-10.79Q23.09-10.79 23.43-10.44 23.78-10.08 23.78-9.56L23.78-9.56 23.78-7.66 23.64-9.02Q23.86-9.5 24.21-9.87 24.56-10.25 25.01-10.5 25.45-10.75 25.95-10.87 26.46-10.99 26.96-10.99L26.96-10.99Q27.57-10.99 27.98-10.65 28.4-10.31 28.4-9.84L28.4-9.84Q28.4-9.18 28.05-8.88 27.71-8.59 27.31-8.59L27.31-8.59Q26.92-8.59 26.61-8.73 26.3-8.87 25.89-8.87L25.89-8.87Q25.53-8.87 25.16-8.7 24.78-8.53 24.47-8.17 24.16-7.81 23.97-7.27 23.78-6.74 23.78-6.01L23.78-6.01 23.78-1.23Q23.78-0.71 23.43-0.35 23.09 0 22.57 0ZM34.7-10.99L34.7-10.99Q36.11-10.99 37.23-10.28 38.35-9.56 39-8.31 39.66-7.06 39.66-5.41L39.66-5.41Q39.66-3.75 39-2.49 38.35-1.23 37.25-0.51 36.15 0.2 34.78 0.2L34.78 0.2Q33.97 0.2 33.26-0.06 32.56-0.32 32.02-0.73 31.49-1.13 31.2-1.54 30.9-1.96 30.9-2.24L30.9-2.24 31.53-2.5 31.53-1.03Q31.53-0.5 31.19-0.15 30.84 0.2 30.32 0.2L30.32 0.2Q29.8 0.2 29.45-0.14 29.11-0.48 29.11-1.03L29.11-1.03 29.11-13.7Q29.11-14.22 29.45-14.57 29.8-14.93 30.32-14.93L30.32-14.93Q30.84-14.93 31.19-14.57 31.53-14.22 31.53-13.7L31.53-13.7 31.53-8.57 31.19-8.75Q31.19-9.02 31.47-9.39 31.75-9.76 32.24-10.14 32.72-10.51 33.36-10.75 33.99-10.99 34.7-10.99ZM34.39-8.77L34.39-8.77Q33.51-8.77 32.84-8.33 32.18-7.89 31.8-7.13 31.43-6.37 31.43-5.41L31.43-5.41Q31.43-4.46 31.8-3.68 32.18-2.9 32.84-2.46 33.51-2.02 34.39-2.02L34.39-2.02Q35.28-2.02 35.94-2.46 36.59-2.9 36.97-3.68 37.34-4.46 37.34-5.41L37.34-5.41Q37.34-6.37 36.97-7.13 36.59-7.89 35.94-8.33 35.28-8.77 34.39-8.77ZM51.04-5.39L51.04-5.39Q51.04-3.73 50.31-2.47 49.57-1.21 48.33-0.5 47.09 0.2 45.56 0.2L45.56 0.2Q44.02 0.2 42.78-0.5 41.54-1.21 40.81-2.47 40.07-3.73 40.07-5.39L40.07-5.39Q40.07-7.04 40.81-8.3 41.54-9.56 42.78-10.28 44.02-10.99 45.56-10.99L45.56-10.99Q47.09-10.99 48.33-10.28 49.57-9.56 50.31-8.3 51.04-7.04 51.04-5.39ZM48.62-5.39L48.62-5.39Q48.62-6.41 48.21-7.17 47.8-7.93 47.1-8.35 46.4-8.77 45.56-8.77L45.56-8.77Q44.71-8.77 44.01-8.35 43.32-7.93 42.9-7.17 42.49-6.41 42.49-5.39L42.49-5.39Q42.49-4.38 42.9-3.62 43.32-2.86 44.01-2.44 44.71-2.02 45.56-2.02L45.56-2.02Q46.4-2.02 47.1-2.44 47.8-2.86 48.21-3.62 48.62-4.38 48.62-5.39ZM53.71 0L53.71 0Q53.15 0 52.7-0.35 52.26-0.71 52.26-1.23L52.26-1.23 52.26-12.89Q52.26-13.41 52.61-13.77 52.97-14.12 53.49-14.12L53.49-14.12 59.3-14.12Q60.35-14.12 61.27-13.56 62.18-13.01 62.75-12.03 63.31-11.05 63.31-9.78L63.31-9.78Q63.31-9.02 63-8.29 62.69-7.56 62.15-6.98 61.62-6.39 60.95-6.07L60.95-6.07 60.97-6.53Q61.54-6.23 61.91-5.82 62.29-5.41 62.5-4.93 62.71-4.46 62.75-3.91L62.75-3.91Q62.83-3.41 62.86-3.03 62.89-2.64 62.98-2.38 63.07-2.12 63.33-1.98L63.33-1.98Q63.78-1.71 63.89-1.22 64-0.73 63.66-0.34L63.66-0.34Q63.43-0.08 63.09-0.01 62.75 0.06 62.41-0.01 62.06-0.08 61.84-0.2L61.84-0.2Q61.5-0.4 61.16-0.8 60.81-1.19 60.6-1.86 60.39-2.52 60.39-3.57L60.39-3.57Q60.39-3.91 60.27-4.21 60.15-4.5 59.93-4.71 59.7-4.92 59.36-5.03 59.02-5.14 58.55-5.14L58.55-5.14 54.48-5.14 54.78-5.61 54.78-1.23Q54.78-0.71 54.5-0.35 54.22 0 53.71 0ZM54.78-6.74L54.5-7.22 59.2-7.22Q59.56-7.22 59.91-7.55 60.25-7.89 60.47-8.46 60.69-9.04 60.69-9.72L60.69-9.72Q60.69-10.61 60.22-11.2 59.74-11.8 59.2-11.8L59.2-11.8 54.54-11.8 54.78-12.44 54.78-6.74ZM69.8 0.2L69.8 0.2Q68.08 0.2 66.82-0.51 65.56-1.23 64.89-2.46 64.21-3.69 64.21-5.24L64.21-5.24Q64.21-7.06 64.95-8.34 65.68-9.62 66.87-10.31 68.06-10.99 69.39-10.99L69.39-10.99Q70.42-10.99 71.34-10.57 72.26-10.15 72.96-9.41 73.67-8.67 74.08-7.7 74.5-6.74 74.5-5.65L74.5-5.65Q74.48-5.16 74.11-4.86 73.75-4.56 73.27-4.56L73.27-4.56 65.56-4.56 64.96-6.58 72.36-6.58 71.91-6.17 71.91-6.72Q71.87-7.3 71.5-7.77 71.13-8.23 70.57-8.5 70.02-8.77 69.39-8.77L69.39-8.77Q68.79-8.77 68.26-8.61 67.74-8.45 67.36-8.07 66.97-7.68 66.75-7.04 66.53-6.39 66.53-5.41L66.53-5.41Q66.53-4.32 66.98-3.56 67.44-2.8 68.15-2.41 68.87-2.02 69.68-2.02L69.68-2.02Q70.42-2.02 70.87-2.14 71.31-2.26 71.58-2.43 71.85-2.6 72.08-2.72L72.08-2.72Q72.44-2.9 72.76-2.9L72.76-2.9Q73.21-2.9 73.5-2.6 73.79-2.3 73.79-1.9L73.79-1.9Q73.79-1.35 73.23-0.91L73.23-0.91Q72.7-0.46 71.75-0.13 70.81 0.2 69.8 0.2ZM84.33-10.99L84.33-10.99Q84.85-10.99 85.19-10.65 85.54-10.31 85.54-9.76L85.54-9.76 85.54-1.23Q85.54-0.71 85.19-0.35 84.85 0 84.33 0L84.33 0Q83.8 0 83.46-0.35 83.12-0.71 83.12-1.23L83.12-1.23 83.12-2.22 83.56-2.04Q83.56-1.77 83.28-1.4 83-1.03 82.51-0.67 82.03-0.3 81.37-0.05 80.72 0.2 79.95 0.2L79.95 0.2Q78.56 0.2 77.43-0.51 76.3-1.23 75.64-2.49 74.99-3.75 74.99-5.39L74.99-5.39Q74.99-7.04 75.64-8.3 76.3-9.56 77.41-10.28 78.52-10.99 79.87-10.99L79.87-10.99Q80.74-10.99 81.46-10.73 82.19-10.47 82.72-10.06 83.26-9.66 83.55-9.25 83.84-8.83 83.84-8.55L83.84-8.55 83.12-8.29 83.12-9.76Q83.12-10.29 83.46-10.64 83.8-10.99 84.33-10.99ZM80.25-2.02L80.25-2.02Q81.14-2.02 81.81-2.46 82.47-2.9 82.84-3.67 83.22-4.44 83.22-5.39L83.22-5.39Q83.22-6.35 82.84-7.12 82.47-7.89 81.81-8.33 81.14-8.77 80.25-8.77L80.25-8.77Q79.39-8.77 78.72-8.33 78.05-7.89 77.68-7.12 77.31-6.35 77.31-5.39L77.31-5.39Q77.31-4.44 77.68-3.67 78.05-2.9 78.72-2.46 79.39-2.02 80.25-2.02ZM95.89-14.93L95.89-14.93Q96.42-14.93 96.76-14.58 97.1-14.24 97.1-13.7L97.1-13.7 97.1-1.23Q97.1-0.71 96.76-0.35 96.42 0 95.89 0L95.89 0Q95.37 0 95.03-0.35 94.68-0.71 94.68-1.23L94.68-1.23 94.68-2.22 95.13-2.04Q95.13-1.77 94.84-1.4 94.56-1.03 94.08-0.67 93.59-0.3 92.94-0.05 92.28 0.2 91.52 0.2L91.52 0.2Q90.12 0.2 88.99-0.51 87.87-1.23 87.21-2.49 86.55-3.75 86.55-5.39L86.55-5.39Q86.55-7.04 87.21-8.3 87.87-9.56 88.97-10.28 90.08-10.99 91.44-10.99L91.44-10.99Q92.3-10.99 93.03-10.73 93.75-10.47 94.29-10.06 94.82-9.66 95.12-9.25 95.41-8.83 95.41-8.55L95.41-8.55 94.68-8.29 94.68-13.7Q94.68-14.22 95.03-14.57 95.37-14.93 95.89-14.93ZM91.82-2.02L91.82-2.02Q92.71-2.02 93.37-2.46 94.04-2.9 94.41-3.67 94.78-4.44 94.78-5.39L94.78-5.39Q94.78-6.35 94.41-7.12 94.04-7.89 93.37-8.33 92.71-8.77 91.82-8.77L91.82-8.77Q90.95-8.77 90.29-8.33 89.62-7.89 89.25-7.12 88.87-6.35 88.87-5.39L88.87-5.39Q88.87-4.44 89.25-3.67 89.62-2.9 90.29-2.46 90.95-2.02 91.82-2.02ZM106.73-10.79L106.73-10.79Q107.26-10.79 107.6-10.44 107.94-10.08 107.94-9.56L107.94-9.56 107.94-0.99Q107.94 0.87 107.25 1.97 106.55 3.07 105.38 3.55 104.21 4.03 102.76 4.03L102.76 4.03Q102.11 4.03 101.39 3.93 100.66 3.83 100.2 3.63L100.2 3.63Q99.59 3.37 99.36 2.97 99.13 2.58 99.27 2.14L99.27 2.14Q99.45 1.55 99.85 1.34 100.26 1.13 100.7 1.29L100.7 1.29Q101.02 1.39 101.55 1.6 102.07 1.82 102.76 1.82L102.76 1.82Q103.69 1.82 104.3 1.56 104.92 1.31 105.23 0.72 105.54 0.12 105.54-0.91L105.54-0.91 105.54-2.26 105.97-1.77Q105.62-1.11 105.11-0.68 104.59-0.24 103.89-0.02 103.18 0.2 102.27 0.2L102.27 0.2Q101.21 0.2 100.41-0.29 99.61-0.79 99.17-1.66 98.72-2.54 98.72-3.67L98.72-3.67 98.72-9.56Q98.72-10.08 99.07-10.44 99.41-10.79 99.94-10.79L99.94-10.79Q100.46-10.79 100.8-10.44 101.15-10.08 101.15-9.56L101.15-9.56 101.15-4.4Q101.15-3.09 101.72-2.55 102.29-2.02 103.32-2.02L103.32-2.02Q104.03-2.02 104.51-2.29 105-2.56 105.26-3.1 105.52-3.63 105.52-4.4L105.52-4.4 105.52-9.56Q105.52-10.08 105.86-10.44 106.21-10.79 106.73-10.79Z" transform="translate(-0.6100000143051147, 14.930000305175781)"/></g> </g></g> </g></g></g></g></g><mask id="bf1e0ea4-b39a-4751-a544-4fca866e2939"><g fill="white"><rect stroke-width="2" class="i-icon-bg" x="0" y="0" width="117.33000183105469" height="28.96000099182129" fill-opacity="1"/> </g> <g transform="translate(5,5)" fill="black"><g fill-rule="" class="tp-name"><g transform="scale(1)"><g><path d="M6.29 0L6.29 0Q5.73 0 5.37-0.35 5-0.71 5-1.23L5-1.23 5-12.93 7.62-12.93 7.62-1.23Q7.62-0.71 7.25-0.35 6.88 0 6.29 0ZM10.79-11.8L1.84-11.8Q1.31-11.8 0.96-12.12 0.61-12.44 0.61-12.97L0.61-12.97Q0.61-13.49 0.96-13.81 1.31-14.12 1.84-14.12L1.84-14.12 10.79-14.12Q11.32-14.12 11.67-13.8 12.02-13.47 12.02-12.95L12.02-12.95Q12.02-12.42 11.67-12.11 11.32-11.8 10.79-11.8L10.79-11.8ZM18.52-10.79L18.52-10.79Q19.05-10.79 19.39-10.44 19.73-10.08 19.73-9.56L19.73-9.56 19.73-4.44Q19.73-2.3 18.54-1.05 17.35 0.2 15.12 0.2L15.12 0.2Q12.88 0.2 11.7-1.05 10.52-2.3 10.52-4.44L10.52-4.44 10.52-9.56Q10.52-10.08 10.86-10.44 11.2-10.79 11.73-10.79L11.73-10.79Q12.25-10.79 12.59-10.44 12.94-10.08 12.94-9.56L12.94-9.56 12.94-4.44Q12.94-3.21 13.48-2.61 14.03-2.02 15.12-2.02L15.12-2.02Q16.22-2.02 16.77-2.61 17.31-3.21 17.31-4.44L17.31-4.44 17.31-9.56Q17.31-10.08 17.66-10.44 18-10.79 18.52-10.79ZM22.57 0L22.57 0Q22.04 0 21.7-0.35 21.36-0.71 21.36-1.23L21.36-1.23 21.36-9.56Q21.36-10.08 21.7-10.44 22.04-10.79 22.57-10.79L22.57-10.79Q23.09-10.79 23.43-10.44 23.78-10.08 23.78-9.56L23.78-9.56 23.78-7.66 23.64-9.02Q23.86-9.5 24.21-9.87 24.56-10.25 25.01-10.5 25.45-10.75 25.95-10.87 26.46-10.99 26.96-10.99L26.96-10.99Q27.57-10.99 27.98-10.65 28.4-10.31 28.4-9.84L28.4-9.84Q28.4-9.18 28.05-8.88 27.71-8.59 27.31-8.59L27.31-8.59Q26.92-8.59 26.61-8.73 26.3-8.87 25.89-8.87L25.89-8.87Q25.53-8.87 25.16-8.7 24.78-8.53 24.47-8.17 24.16-7.81 23.97-7.27 23.78-6.74 23.78-6.01L23.78-6.01 23.78-1.23Q23.78-0.71 23.43-0.35 23.09 0 22.57 0ZM34.7-10.99L34.7-10.99Q36.11-10.99 37.23-10.28 38.35-9.56 39-8.31 39.66-7.06 39.66-5.41L39.66-5.41Q39.66-3.75 39-2.49 38.35-1.23 37.25-0.51 36.15 0.2 34.78 0.2L34.78 0.2Q33.97 0.2 33.26-0.06 32.56-0.32 32.02-0.73 31.49-1.13 31.2-1.54 30.9-1.96 30.9-2.24L30.9-2.24 31.53-2.5 31.53-1.03Q31.53-0.5 31.19-0.15 30.84 0.2 30.32 0.2L30.32 0.2Q29.8 0.2 29.45-0.14 29.11-0.48 29.11-1.03L29.11-1.03 29.11-13.7Q29.11-14.22 29.45-14.57 29.8-14.93 30.32-14.93L30.32-14.93Q30.84-14.93 31.19-14.57 31.53-14.22 31.53-13.7L31.53-13.7 31.53-8.57 31.19-8.75Q31.19-9.02 31.47-9.39 31.75-9.76 32.24-10.14 32.72-10.51 33.36-10.75 33.99-10.99 34.7-10.99ZM34.39-8.77L34.39-8.77Q33.51-8.77 32.84-8.33 32.18-7.89 31.8-7.13 31.43-6.37 31.43-5.41L31.43-5.41Q31.43-4.46 31.8-3.68 32.18-2.9 32.84-2.46 33.51-2.02 34.39-2.02L34.39-2.02Q35.28-2.02 35.94-2.46 36.59-2.9 36.97-3.68 37.34-4.46 37.34-5.41L37.34-5.41Q37.34-6.37 36.97-7.13 36.59-7.89 35.94-8.33 35.28-8.77 34.39-8.77ZM51.04-5.39L51.04-5.39Q51.04-3.73 50.31-2.47 49.57-1.21 48.33-0.5 47.09 0.2 45.56 0.2L45.56 0.2Q44.02 0.2 42.78-0.5 41.54-1.21 40.81-2.47 40.07-3.73 40.07-5.39L40.07-5.39Q40.07-7.04 40.81-8.3 41.54-9.56 42.78-10.28 44.02-10.99 45.56-10.99L45.56-10.99Q47.09-10.99 48.33-10.28 49.57-9.56 50.31-8.3 51.04-7.04 51.04-5.39ZM48.62-5.39L48.62-5.39Q48.62-6.41 48.21-7.17 47.8-7.93 47.1-8.35 46.4-8.77 45.56-8.77L45.56-8.77Q44.71-8.77 44.01-8.35 43.32-7.93 42.9-7.17 42.49-6.41 42.49-5.39L42.49-5.39Q42.49-4.38 42.9-3.62 43.32-2.86 44.01-2.44 44.71-2.02 45.56-2.02L45.56-2.02Q46.4-2.02 47.1-2.44 47.8-2.86 48.21-3.62 48.62-4.38 48.62-5.39ZM53.71 0L53.71 0Q53.15 0 52.7-0.35 52.26-0.71 52.26-1.23L52.26-1.23 52.26-12.89Q52.26-13.41 52.61-13.77 52.97-14.12 53.49-14.12L53.49-14.12 59.3-14.12Q60.35-14.12 61.27-13.56 62.18-13.01 62.75-12.03 63.31-11.05 63.31-9.78L63.31-9.78Q63.31-9.02 63-8.29 62.69-7.56 62.15-6.98 61.62-6.39 60.95-6.07L60.95-6.07 60.97-6.53Q61.54-6.23 61.91-5.82 62.29-5.41 62.5-4.93 62.71-4.46 62.75-3.91L62.75-3.91Q62.83-3.41 62.86-3.03 62.89-2.64 62.98-2.38 63.07-2.12 63.33-1.98L63.33-1.98Q63.78-1.71 63.89-1.22 64-0.73 63.66-0.34L63.66-0.34Q63.43-0.08 63.09-0.01 62.75 0.06 62.41-0.01 62.06-0.08 61.84-0.2L61.84-0.2Q61.5-0.4 61.16-0.8 60.81-1.19 60.6-1.86 60.39-2.52 60.39-3.57L60.39-3.57Q60.39-3.91 60.27-4.21 60.15-4.5 59.93-4.71 59.7-4.92 59.36-5.03 59.02-5.14 58.55-5.14L58.55-5.14 54.48-5.14 54.78-5.61 54.78-1.23Q54.78-0.71 54.5-0.35 54.22 0 53.71 0ZM54.78-6.74L54.5-7.22 59.2-7.22Q59.56-7.22 59.91-7.55 60.25-7.89 60.47-8.46 60.69-9.04 60.69-9.72L60.69-9.72Q60.69-10.61 60.22-11.2 59.74-11.8 59.2-11.8L59.2-11.8 54.54-11.8 54.78-12.44 54.78-6.74ZM69.8 0.2L69.8 0.2Q68.08 0.2 66.82-0.51 65.56-1.23 64.89-2.46 64.21-3.69 64.21-5.24L64.21-5.24Q64.21-7.06 64.95-8.34 65.68-9.62 66.87-10.31 68.06-10.99 69.39-10.99L69.39-10.99Q70.42-10.99 71.34-10.57 72.26-10.15 72.96-9.41 73.67-8.67 74.08-7.7 74.5-6.74 74.5-5.65L74.5-5.65Q74.48-5.16 74.11-4.86 73.75-4.56 73.27-4.56L73.27-4.56 65.56-4.56 64.96-6.58 72.36-6.58 71.91-6.17 71.91-6.72Q71.87-7.3 71.5-7.77 71.13-8.23 70.57-8.5 70.02-8.77 69.39-8.77L69.39-8.77Q68.79-8.77 68.26-8.61 67.74-8.45 67.36-8.07 66.97-7.68 66.75-7.04 66.53-6.39 66.53-5.41L66.53-5.41Q66.53-4.32 66.98-3.56 67.44-2.8 68.15-2.41 68.87-2.02 69.68-2.02L69.68-2.02Q70.42-2.02 70.87-2.14 71.31-2.26 71.58-2.43 71.85-2.6 72.08-2.72L72.08-2.72Q72.44-2.9 72.76-2.9L72.76-2.9Q73.21-2.9 73.5-2.6 73.79-2.3 73.79-1.9L73.79-1.9Q73.79-1.35 73.23-0.91L73.23-0.91Q72.7-0.46 71.75-0.13 70.81 0.2 69.8 0.2ZM84.33-10.99L84.33-10.99Q84.85-10.99 85.19-10.65 85.54-10.31 85.54-9.76L85.54-9.76 85.54-1.23Q85.54-0.71 85.19-0.35 84.85 0 84.33 0L84.33 0Q83.8 0 83.46-0.35 83.12-0.71 83.12-1.23L83.12-1.23 83.12-2.22 83.56-2.04Q83.56-1.77 83.28-1.4 83-1.03 82.51-0.67 82.03-0.3 81.37-0.05 80.72 0.2 79.95 0.2L79.95 0.2Q78.56 0.2 77.43-0.51 76.3-1.23 75.64-2.49 74.99-3.75 74.99-5.39L74.99-5.39Q74.99-7.04 75.64-8.3 76.3-9.56 77.41-10.28 78.52-10.99 79.87-10.99L79.87-10.99Q80.74-10.99 81.46-10.73 82.19-10.47 82.72-10.06 83.26-9.66 83.55-9.25 83.84-8.83 83.84-8.55L83.84-8.55 83.12-8.29 83.12-9.76Q83.12-10.29 83.46-10.64 83.8-10.99 84.33-10.99ZM80.25-2.02L80.25-2.02Q81.14-2.02 81.81-2.46 82.47-2.9 82.84-3.67 83.22-4.44 83.22-5.39L83.22-5.39Q83.22-6.35 82.84-7.12 82.47-7.89 81.81-8.33 81.14-8.77 80.25-8.77L80.25-8.77Q79.39-8.77 78.72-8.33 78.05-7.89 77.68-7.12 77.31-6.35 77.31-5.39L77.31-5.39Q77.31-4.44 77.68-3.67 78.05-2.9 78.72-2.46 79.39-2.02 80.25-2.02ZM95.89-14.93L95.89-14.93Q96.42-14.93 96.76-14.58 97.1-14.24 97.1-13.7L97.1-13.7 97.1-1.23Q97.1-0.71 96.76-0.35 96.42 0 95.89 0L95.89 0Q95.37 0 95.03-0.35 94.68-0.71 94.68-1.23L94.68-1.23 94.68-2.22 95.13-2.04Q95.13-1.77 94.84-1.4 94.56-1.03 94.08-0.67 93.59-0.3 92.94-0.05 92.28 0.2 91.52 0.2L91.52 0.2Q90.12 0.2 88.99-0.51 87.87-1.23 87.21-2.49 86.55-3.75 86.55-5.39L86.55-5.39Q86.55-7.04 87.21-8.3 87.87-9.56 88.97-10.28 90.08-10.99 91.44-10.99L91.44-10.99Q92.3-10.99 93.03-10.73 93.75-10.47 94.29-10.06 94.82-9.66 95.12-9.25 95.41-8.83 95.41-8.55L95.41-8.55 94.68-8.29 94.68-13.7Q94.68-14.22 95.03-14.57 95.37-14.93 95.89-14.93ZM91.82-2.02L91.82-2.02Q92.71-2.02 93.37-2.46 94.04-2.9 94.41-3.67 94.78-4.44 94.78-5.39L94.78-5.39Q94.78-6.35 94.41-7.12 94.04-7.89 93.37-8.33 92.71-8.77 91.82-8.77L91.82-8.77Q90.95-8.77 90.29-8.33 89.62-7.89 89.25-7.12 88.87-6.35 88.87-5.39L88.87-5.39Q88.87-4.44 89.25-3.67 89.62-2.9 90.29-2.46 90.95-2.02 91.82-2.02ZM106.73-10.79L106.73-10.79Q107.26-10.79 107.6-10.44 107.94-10.08 107.94-9.56L107.94-9.56 107.94-0.99Q107.94 0.87 107.25 1.97 106.55 3.07 105.38 3.55 104.21 4.03 102.76 4.03L102.76 4.03Q102.11 4.03 101.39 3.93 100.66 3.83 100.2 3.63L100.2 3.63Q99.59 3.37 99.36 2.97 99.13 2.58 99.27 2.14L99.27 2.14Q99.45 1.55 99.85 1.34 100.26 1.13 100.7 1.29L100.7 1.29Q101.02 1.39 101.55 1.6 102.07 1.82 102.76 1.82L102.76 1.82Q103.69 1.82 104.3 1.56 104.92 1.31 105.23 0.72 105.54 0.12 105.54-0.91L105.54-0.91 105.54-2.26 105.97-1.77Q105.62-1.11 105.11-0.68 104.59-0.24 103.89-0.02 103.18 0.2 102.27 0.2L102.27 0.2Q101.21 0.2 100.41-0.29 99.61-0.79 99.17-1.66 98.72-2.54 98.72-3.67L98.72-3.67 98.72-9.56Q98.72-10.08 99.07-10.44 99.41-10.79 99.94-10.79L99.94-10.79Q100.46-10.79 100.8-10.44 101.15-10.08 101.15-9.56L101.15-9.56 101.15-4.4Q101.15-3.09 101.72-2.55 102.29-2.02 103.32-2.02L103.32-2.02Q104.03-2.02 104.51-2.29 105-2.56 105.26-3.1 105.52-3.63 105.52-4.4L105.52-4.4 105.52-9.56Q105.52-10.08 105.86-10.44 106.21-10.79 106.73-10.79Z" transform="translate(-0.6100000143051147, 14.930000305175781)"/></g> </g></g> </g></mask><defs v-gra="od"/>
56
+ </svg>
57
+ </svg>
@@ -0,0 +1,28 @@
1
+ function invoke () {
2
+ const payload = JSON.parse(this.templateContent.textContent)
3
+ const { id, method, args, receiver, selector } = payload
4
+ let receivers = [self]
5
+ if (selector) receivers = Array.from(document.querySelectorAll(selector))
6
+
7
+ if (receiver) {
8
+ receivers = receivers.map(r => {
9
+ let context = r
10
+ const chain = receiver.split('.')
11
+ while (chain.length > 0) context = context[chain.shift()]
12
+ return context
13
+ })
14
+ }
15
+
16
+ switch (method) {
17
+ case 'dispatchEvent':
18
+ const evt = new CustomEvent(args[0], args[1] || {})
19
+ receivers.forEach(r => r.dispatchEvent(evt))
20
+ break
21
+ default:
22
+ receivers.forEach(r => r[method].apply(r, args))
23
+ }
24
+ }
25
+
26
+ export default {
27
+ initialize: streamActions => (streamActions.invoke = invoke)
28
+ }
data/bin/loc ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ cloc --exclude-dir=Gemfile,Dockerfile,bin,builds,db,docs,log,node_modules,Procfile,public,storage,tmp --exclude-ext=example,json,lock,md,ru,toml,sql,svg,txt,yml "${1:-.}"
data/bin/standardize ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ bundle exec magic_frozen_string_literal
4
+ bundle exec standardrb --fix
5
+ yarn run prettier-standard "app/javascript/**/*.js"
data/bin/test ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ $: << File.expand_path("../test", __dir__)
3
+
4
+ require "bundler/setup"
5
+ require "rails/plugin/test"
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TurboReady
4
+ class Railtie < ::Rails::Railtie
5
+ end
6
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TurboReady
4
+ class String
5
+ attr_reader :ruby_string, :turbo_ready_tag_builder
6
+
7
+ delegate_missing_to :ruby_string
8
+
9
+ def initialize(ruby_string, turbo_ready_tag_builder:)
10
+ @ruby_string = ruby_string
11
+ @turbo_ready_tag_builder = turbo_ready_tag_builder
12
+ turbo_ready_tags << ruby_string
13
+ end
14
+
15
+ def turbo_ready_tags
16
+ @turbo_ready_tags ||= Set.new
17
+ end
18
+
19
+ def invoke(method, *args, **kwargs)
20
+ prior_turbo_ready_tags = turbo_ready_tags
21
+ turbo_ready_tag_builder.invoke(method, *args, **kwargs).tap do |turbo_ready_string|
22
+ turbo_ready_string.instance_eval do
23
+ @turbo_ready_tags = prior_turbo_ready_tags
24
+ @turbo_ready_tags << turbo_ready_string.ruby_string
25
+ end
26
+ end
27
+ end
28
+
29
+ def flush
30
+ turbo_ready_tags.to_a.join("\n").html_safe
31
+ ensure
32
+ turbo_ready_tags.clear
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TurboReady
4
+ # 🙈 Additive monkey patch for Turbo::Streams::TagBuilder
5
+ # SEE: https://github.com/hotwired/turbo-rails/blob/main/app/models/turbo/streams/tag_builder.rb
6
+ module TagBuilder
7
+ def invoke(method, *args, selector: nil, camelize: true, id: nil)
8
+ id ||= SecureRandom.uuid
9
+
10
+ method_parts = method.to_s.split(".")
11
+ method_parts = method_parts.map { |part| part.camelize(:lower) } if camelize
12
+ method = method_parts.pop
13
+ receiver = method_parts.join(".")
14
+
15
+ if camelize
16
+ args.each do |param|
17
+ next unless param.is_a?(Hash)
18
+ param.transform_keys! { |key| key.to_s.camelize(:lower) }
19
+ end
20
+ end
21
+
22
+ payload = {
23
+ id: id,
24
+ method: method,
25
+ args: args,
26
+ receiver: receiver,
27
+ selector: selector
28
+ }
29
+
30
+ TurboReady::String.new action(:invoke, "DOM", payload.to_json), turbo_ready_tag_builder: self
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TurboReady
4
+ VERSION = "0.0.1"
5
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "turbo_ready/version"
4
+ require "turbo_ready/railtie"
5
+ require "turbo_ready/string"
6
+ require "turbo_ready/tag_builder"
7
+
8
+ module TurboReady
9
+ def self.patch!
10
+ Turbo::Streams::TagBuilder.send :include, TurboReady::TagBuilder
11
+ end
12
+ end
data/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "turbo_ready",
3
+ "version": "0.0.1",
4
+ "description": "Take full control of the DOM with TurboStreams",
5
+ "main": "app/assets/builds/turbo_ready.js",
6
+ "repository": "https://github.com/hopsoft/turbo_ready",
7
+ "author": "Nate Hopkins (hopsoft) <natehop@gmail.com>",
8
+ "license": "MIT",
9
+ "peerDependencies": {
10
+ "@hotwired/turbo-rails": ">= 7.1"
11
+ },
12
+ "devDependencies": {
13
+ "esbuild": "^0.14.48",
14
+ "eslint": "^8.19.0",
15
+ "prettier-standard": "^16.4.1"
16
+ },
17
+ "scripts": {
18
+ "build": "esbuild app/javascript/*.* --bundle --minify --sourcemap --format=esm --outdir=app/assets/builds"
19
+ }
20
+ }
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/turbo_ready/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "turbo_ready"
7
+ spec.version = TurboReady::VERSION
8
+ spec.authors = ["Nate Hopkins (hopsoft)"]
9
+ spec.email = ["natehop@gmail.com"]
10
+ spec.homepage = "https://github.com/hopsoft/turbo_ready"
11
+ spec.summary = "Take full control of the DOM with TurboStreams"
12
+ spec.description = spec.summary
13
+ spec.license = "MIT"
14
+
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = spec.homepage
17
+ spec.metadata["changelog_uri"] = spec.homepage + "/blob/master/CHANGELOG.md"
18
+
19
+ spec.files = Dir["lib/**/*.rb", "app/**/*", "bin/*", "[A-Z]*"]
20
+
21
+ spec.add_dependency "rails", ">= 7.0"
22
+ spec.add_dependency "turbo-rails", ">= 1.1"
23
+
24
+ spec.add_development_dependency "magic_frozen_string_literal"
25
+ spec.add_development_dependency "pry-byebug"
26
+ spec.add_development_dependency "standardrb"
27
+ spec.add_development_dependency "tocer"
28
+ end
data/yarn-error.log ADDED
@@ -0,0 +1,36 @@
1
+ Arguments:
2
+ /Users/nathan/.asdf/installs/nodejs/16.14.0/bin/node /opt/homebrew/Cellar/yarn/1.22.19/libexec/bin/yarn.js init
3
+
4
+ PATH:
5
+ /Users/nathan/.asdf/plugins/nodejs/shims:/Users/nathan/.asdf/installs/nodejs/16.14.0/.npm/bin:/Users/nathan/.asdf/installs/nodejs/16.14.0/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/nathan/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/nathan/.dotfiles/bin:/opt/homebrew/opt/fzf/bin
6
+
7
+ Yarn version:
8
+ 1.22.19
9
+
10
+ Node version:
11
+ 16.14.0
12
+
13
+ Platform:
14
+ darwin arm64
15
+
16
+ Trace:
17
+ Error: canceled
18
+ at Interface.<anonymous> (/opt/homebrew/Cellar/yarn/1.22.19/libexec/lib/cli.js:137150:13)
19
+ at Interface.emit (node:events:520:28)
20
+ at Interface._ttyWrite (node:readline:1081:16)
21
+ at ReadStream.onkeypress (node:readline:288:10)
22
+ at ReadStream.emit (node:events:520:28)
23
+ at emitKeys (node:internal/readline/utils:358:14)
24
+ at emitKeys.next (<anonymous>)
25
+ at ReadStream.onData (node:internal/readline/emitKeypressEvents:61:36)
26
+ at ReadStream.emit (node:events:520:28)
27
+ at addChunk (node:internal/streams/readable:315:12)
28
+
29
+ npm manifest:
30
+ No manifest
31
+
32
+ yarn manifest:
33
+ No manifest
34
+
35
+ Lockfile:
36
+ No lockfile