[skip CI] switched from yaml/yaml.js to js-yaml

This commit is contained in:
Klemek
2019-07-18 09:14:00 +02:00
parent a8504b8cc4
commit 15779410fe
7 changed files with 10 additions and 37 deletions
+3 -3
View File
@@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8">
<title>fa-diagrams example</title>
<script src="jquery-3.4.1.min.js"></script>
<script src="yaml.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-yaml@3.13.1/dist/js-yaml.min.js"></script>
<script src="github-cdn.js"></script>
<style>
* {
@@ -67,7 +67,7 @@
data[key] = data[key].replace(/\\n/gm, '\n');
});
};
let data = YAML.parse($('#input').val());
let data = jsyaml.load($('#input').val());
findLineBreaks(data);
$('#right').html(faDiagrams.compute(data));
} catch (err) {
-2
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -1,16 +1,16 @@
nodes:
- name: node1
icon: laptop-code
color: "#4E342E"
color: '#4E342E'
bottom: my app
- name: node2
icon: globe
color: "#455A64"
color: '#455A64'
bottom: world
links:
- from: node1
to: node2
color: "#333333"
color: '#333333'
top:
icon: envelope
bottom: '"hello"'
-1
View File
File diff suppressed because one or more lines are too long