Skip to content

Commit

Permalink
Use filename for report download
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-haertl committed Aug 22, 2024
1 parent 29f4448 commit 2aacb13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ <h2 class="title is-spaced" v-bind:data="validationReport">glTF Validator</h2>
<p>Number of infos: {{validationReport?.issues?.numInfos ?? 0}}</p>
</div>
<button class="button is-rounded" style="width: fit-content; flex-shrink: 0; margin-bottom: 12px;" v-on:click="copyToClipboard(JSON.stringify(validationReport, undefined, 4))">Copy</button>
<button class="button is-rounded" style="width: fit-content; flex-shrink: 0;" v-on:click="downloadJSON('validationReport.json', validationReport)">Download</button>
<button class="button is-rounded" style="width: fit-content; flex-shrink: 0;" v-on:click="downloadJSON(validationReport?.uri?.substring(validationReport.uri.lastIndexOf('/') + 1) + '.report.json', validationReport)">Download</button>
<span style="margin-top: 5px;">Powered by <a href="https://github.com/KhronosGroup/glTF-Validator" target="_blank" rel="noopener noreferrer">glTF-Validator</a></span>
</b-field>
</div>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"build:ui": {
"patterns": [
"src",
"main.js"
"main.js",
"index.html"
],
"extensions": "js,scss,html",
"delay": 1000,
Expand Down

0 comments on commit 2aacb13

Please sign in to comment.