Skip to content

Commit

Permalink
JSON export structure
Browse files Browse the repository at this point in the history
  • Loading branch information
filak committed Mar 27, 2019
1 parent 861a276 commit 75b206f
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 21 deletions.
69 changes: 69 additions & 0 deletions flask-app/instance/_data/out/structure.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"descriptors": {
"D1...": {
"eng": "dname_eng",
"trx": "dname_trx",
"dc": "1",
"pa": [
"D..."
]
},
"D2...": {
"eng": "dname_eng",
"trx": "dname_trx",
"dc": "2",
"active": false
}
},
"descriptors_eng": [
{
"<dname_eng>": "D1..."
}
],
"descriptors_trx": [
{
"<dname_trx>": "D2..."
}
],
"qualifiers": {
"Q1...": {
"eng": "<qname_eng>",
"trx": "<qname_trx>"
},
"Q2...": {
"eng": "<qname_eng>",
"trx": "<qname_trx>",
"active": false
}
},
"qualifiers_eng": [
{
"<qname_engA>": {
"id": "Q1...",
"eng": "<qname_eng>",
"trx": "<qname_trx>"
},
"<qname_engB>": {
"id": "Q2...",
"eng": "<qname_eng>",
"trx": "<qname_trx>",
"active": false
}
}
],
"qualifiers_trx": [
{
"<qname_trxA>": {
"id": "Q1...",
"eng": "<qname_eng>",
"trx": "<qname_trx>"
},
"<qname_trxB>": {
"id": "Q2...",
"eng": "<qname_eng>",
"trx": "<qname_trx>",
"active": false
}
}
]
}
35 changes: 15 additions & 20 deletions flask-app/instance/conf/js_all_stru.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"D1...": {
"eng": "dname_eng",
"trx": "dname_trx",
"active": "false",
"dc": "1",
"pa": [
"D..."
Expand All @@ -12,63 +11,59 @@
"D2...": {
"eng": "dname_eng",
"trx": "dname_trx",
"active": "false",
"dc": "1",
"pa": [
"D..."
]
"dc": "2",
"active": false
}
},
"descriptors_eng": [
{
"<dname_eng>": "D..."
"<dname_eng>": "D1..."
}
],
"descriptors_trx": [
{
"<dname_trx>": "D..."
"<dname_trx>": "D2..."
}
],
"qualifiers": {
"Q1...": {
"eng": "<qname_eng>",
"trx": "<qname_trx>",
"active": "false"
"trx": "<qname_trx>"
},
"Q2...": {
"eng": "<qname_eng>",
"trx": "<qname_trx>",
"active": "false"
"active": false
}
},
"qualifiers_eng": [
{
"<qname_engA>": {
"id": "Q...",
"id": "Q1...",
"eng": "<qname_eng>",
"trx": "<qname_trx>",
"active": "false"
"trx": "<qname_trx>"
},
"<qname_engB>": {
"id": "Q...",
"id": "Q2...",
"eng": "<qname_eng>",
"trx": "<qname_trx>",
"active": "false"
"active": false
}
}
],
"qualifiers_trx": [
{
"<qname_trxA>": {
"id": "Q...",
"id": "Q1...",
"eng": "<qname_eng>",
"trx": "<qname_trx>"
},
"<qname_trxB>": {
"id": "Q...",
"id": "Q2...",
"eng": "<qname_eng>",
"trx": "<qname_trx>"
"trx": "<qname_trx>",
"active": false
}
}
]
}
}
2 changes: 1 addition & 1 deletion flask-app/mtw/templates/manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ <h4>LookUps</h4>

<div class="row mb-4">
<div class="col">
<h5>JSON <small class="text-info">for Javascript</small></h5>
<h5>JSON <small class="text-info">for Javascript</small> <small>[<a href="{{ url_for('download', fname='structure.json') }}">structure</a>]</small></h5>
<form action="{{ url_for('update_stats', stat='js_all') }}" method="post">
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">

Expand Down

0 comments on commit 75b206f

Please sign in to comment.