-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
210 lines (183 loc) · 9.99 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/x-icon" href="favicon.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script id="rendered-js" src="scripts/yaml-prop.js"></script>
<meta name="google-site-verification" content="BCjSwBqP4XS2yH1CVwXNsntcBvNIjNuhN8M8aGM670Q" />
<meta name="msvalidate.01" content="654C959A926C63EAED391D1C87EE6A47" />
<meta name="keywords"
content="YAML, tools, Mulesoft, mule4, keys, YAML to properties converter, mule, yaml for mule, yaml to properties, yaml keys, yaml parse, mule properties">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="googlebot" content="index, follow">
<!-- HTML Meta Tags -->
<title>YAML to Properties Converter | Mulesoft</title>
<meta name="description" content="One stop for required yaml operations in one page for mulesoft.">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://upendra-thunuguntla.github.io/mule-yaml-tools/">
<meta property="og:type" content="website">
<meta property="og:title" content="YAML to Properties Converter | Mulesoft">
<meta property="og:description" content="One stop for required yaml operations in one page for mulesoft.">
<meta property="og:image"
content="https://raw.githubusercontent.com/Upendra-Thunuguntla/mule-yaml-tools/main/mule-yaml-tools-img.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="upendra-thunuguntla.github.io">
<meta property="twitter:url" content="https://upendra-thunuguntla.github.io/mule-yaml-tools/">
<meta name="twitter:title" content="YAML to Properties Converter | Mulesoft">
<meta name="twitter:description" content="One stop for required yaml operations in one page for mulesoft.">
<meta name="twitter:image"
content="https://raw.githubusercontent.com/Upendra-Thunuguntla/mule-yaml-tools/main/mule-yaml-tools-img.png">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QQ0JYCN3RS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-QQ0JYCN3RS');
</script>
<body onload="loadPage()">
<nav class="navbar navbar-expand-lg navbar-light bg-primary navbar-dark bg-primary">
<a class="navbar-brand" href="index.html">YAML tools</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<!-- <li class="nav-item dropdown">
<a class="nav-link " href="index.html" role="button">Home 🏠</a>
</li> -->
<li class="nav-item dropdown">
<a class="nav-link " href="prop-to-yaml.html" role="button">Properties to YAML Converter 💻</a>
</li>
<!-- <li class="nav-item dropdown">
<a class="nav-link " href="FAQs.html" role="button" >FAQs 💡</a>
</li> -->
</ul>
</div>
</nav>
<div class="container my-5">
<div id="app">
<div class="row my-7">
<div class="col-12">
<h1>YAML to Properties converter</h1>
</div>
<div class="col-md-9 col-sm-12">Transform your YAML to Properties or fetch keys to use them in the mule
processors</div>
</div>
<div class="row my-3">
<div class="col-md-6">
<label>Input File : </label>
<div class="custom-file">
<label class="custom-file-label" id="yamlFileInputLabel" for="inputFile1">Choose a yaml
file...</label>
<input type="file" class="form-control custom-file-input" name="yamlFileInput"
id="yamlFileInput" accept=".yaml,.yml" onchange='openFile(event)'>
</div>
<br>
<label for="input">(or) <br> Paste your YAML here : </label>
<textarea rows="10" class="form-control" id="yamlTextarea"
placeholder="Add YAML Content"></textarea>
<div class="form-check" data-toggle="tooltip" data-placement="top"
title="If you choose this option you will get all keys without values">
<input class="form-check-input" type="checkbox" value="" id="keysOnly"
onclick="checkCheckboxes('keysOnly')">
<label class="form-check-label" for="keysOnly">
Get Keys only
<svg height="16" width="16" viewBox="0 0 16 16">
<path fill="#skin_color_information"
d="M8 0c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zM8.9 13h-2v-2h2v2zM11 8.1c-0.4 0.4-0.8 0.6-1.2 0.7-0.6 0.4-0.8 0.2-0.8 1.2h-2c0-2 1.2-2.6 2-3 0.3-0.1 0.5-0.2 0.7-0.4 0.1-0.1 0.3-0.3 0.1-0.7-0.2-0.5-0.8-1-1.7-1-1.4 0-1.6 1.2-1.7 1.5l-2-0.3c0.1-1.1 1-3.2 3.6-3.2 1.6 0 3 0.9 3.6 2.2 0.4 1.1 0.2 2.2-0.6 3z">
</path>
</svg>
</label>
</div>
<div class="form-check" data-toggle="tooltip" data-placement="top"
title="If you choose this option all the keys will be enclosed in ${**key**}">
<input class="form-check-input" type="checkbox" value="" id="addGenericProp"
onclick="checkCheckboxes('addGenericProp')" disabled>
<label class="form-check-label" for="addGenericProp">
Enclose in ${**key**}
<svg height="16" width="16" viewBox="0 0 16 16">
<path fill="#skin_color_information"
d="M8 0c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zM8.9 13h-2v-2h2v2zM11 8.1c-0.4 0.4-0.8 0.6-1.2 0.7-0.6 0.4-0.8 0.2-0.8 1.2h-2c0-2 1.2-2.6 2-3 0.3-0.1 0.5-0.2 0.7-0.4 0.1-0.1 0.3-0.3 0.1-0.7-0.2-0.5-0.8-1-1.7-1-1.4 0-1.6 1.2-1.7 1.5l-2-0.3c0.1-1.1 1-3.2 3.6-3.2 1.6 0 3 0.9 3.6 2.2 0.4 1.1 0.2 2.2-0.6 3z">
</path>
</svg>
</label>
</div>
<div class="form-check" data-toggle="tooltip" data-placement="top"
title='If you choose this option all the keys will be enclosed in Mule::p("**key**")'>
<input class="form-check-input" type="checkbox" value="" id="addMuleProp"
onclick="checkCheckboxes('addMuleProp')" disabled>
<label class="form-check-label" for="addMuleProp">
Enclose in Mule::p("**key**")
<svg height="16" width="16" viewBox="0 0 16 16">
<path fill="#skin_color_information"
d="M8 0c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zM8.9 13h-2v-2h2v2zM11 8.1c-0.4 0.4-0.8 0.6-1.2 0.7-0.6 0.4-0.8 0.2-0.8 1.2h-2c0-2 1.2-2.6 2-3 0.3-0.1 0.5-0.2 0.7-0.4 0.1-0.1 0.3-0.3 0.1-0.7-0.2-0.5-0.8-1-1.7-1-1.4 0-1.6 1.2-1.7 1.5l-2-0.3c0.1-1.1 1-3.2 3.6-3.2 1.6 0 3 0.9 3.6 2.2 0.4 1.1 0.2 2.2-0.6 3z">
</path>
</svg>
</label>
</div>
<button onclick="loadExample()" class="btn btn-info my-3" id="exampleButton">Load Example</button>
<button onclick="clearContents()" class="btn btn-light my-3" id="clearButton">Clear</button>
<button data-toggle="tooltip" data-placement="top"
title='If you choose this option all the values will be replaced with empty strings. So, you can use that in another env'
onclick="removeYamlValues()" class="btn btn-success" id="removeValuesButton">Remove YAML
Values</button>
<button onclick="convert()" class="btn btn-success" id="convertButton">Convert</button>
</div>
<div class="col-md-6">
<label for="filterProp">Filter on elements: </label>
<input disabled id="filterProp" class="form-control" value="" onkeyup="filterOp(this)"
placeholder="Start typing to use filter">
<br>
<label for="propertiesOutput">Result</label>
<textarea rows="11" class="form-control" readonly id="propertiesOutput"
placeholder="Result will be shown here"></textarea>
<br>
<div class="input-group mb-3" id="propFileNameGroup" hidden="true">
<input id="propFileName" class="form-control" value="" placeholder="Name for properties file">
<div class="input-group-append">
<span class="input-group-text" id="basic-addon2">.properties</span>
</div>
</div>
<button onclick="copy()" class="copy btn btn-success my-3">Copy to clipboard</button>
<button onclick="downloadProp()" class="btn btn-primary" id="downloadProp">Download to properties
file</button>
</div>
</div>
</div>
</div>
<footer style="position: absolute; bottom: 5; width: 100%; text-align: center;">
Designed & Developed by
<a href="mailto:[email protected]">Upendra Thunuguntla ❤️</a> |
<a href="https://www.linkedin.com/in/upendra-thunuguntla/">LinkedIn</a> |
<a href="https://github.com/Upendra-Thunuguntla/mule-yaml-tools">Github Repo</a>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="scripts/js-yaml-min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/4d12237a8a.js" crossorigin="anonymous"></script>
<style>
body {
/* margin-top:20px; */
background-color: #f5f5ff;
}
</style>
</body>
</html>