[skip CI] switched from yaml/yaml.js to js-yaml
This commit is contained in:
+3
-3
@@ -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) {
|
||||
|
||||
Vendored
-2
File diff suppressed because one or more lines are too long
+3
-3
@@ -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"'
|
||||
|
||||
Vendored
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user