WIP - export functionality

This commit is contained in:
Jason Snelders 2019-11-12 13:37:27 +11:00
parent 3f12f776a5
commit 924980e752
2 changed files with 13 additions and 1 deletions

View File

@ -85,6 +85,12 @@ var app = new Vue({
// username: "", // username: "",
// searchString: "", // searchString: "",
/**
* The complete JSON document
*/
jsonDocument: "",
/** /**
* Details of the current page/route. * Details of the current page/route.
*/ */

View File

@ -487,7 +487,13 @@
<template type="text/x-template" id="export-template" lang="html"> <template type="text/x-template" id="export-template" lang="html">
<div id="export-root"> <div id="export-root">
Export <p>
Copy the following text in a text file and save it with the exctension ".json" (.e.g resume.json).
</p>
<div>
{{$parent.jsonDocument}}
</div>
<textarea rows="20" class="w3-input w3-border" type="text"></textarea>
</div> </div>
</template> </template>