Skip to content

Commit

Permalink
update ipfs gateway url
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed May 17, 2024
1 parent 453f91d commit 4dfe7f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ If the trap verification fails, the job returns in 'waiting' state (and the *Ver
[^3]: In the next version of the protocol, the client will also add its trap in order to check *verifier*'s loyalty.


## Smart Contract Web UI

A web interface showing the smart contract status is available here: [https://dakk.github.io/dqpu/app/](https://dakk.github.io/dqpu/app/)


## Installation

```python setup.py install```
Expand Down
4 changes: 2 additions & 2 deletions dqpu-frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@
</template>

<template v-slot:item.result_file="{ item }">
<a :href="'http://localhost:8080/ipfs/' + item.result_file" target="_blank"
<a :href="ipfs_gateway + item.result_file" target="_blank"
v-if="item.result_file">
<v-icon icon="fa fa-file"></v-icon>
</a>
</template>
<template v-slot:item.job_file="{ item }">
<a :href="'http://localhost:8080/ipfs/' + item.job_file" target="_blank"
<a :href="ipfs_gateway + item.job_file" target="_blank"
v-if="item.job_file">
<v-icon icon="fa fa-file"></v-icon>
</a>
Expand Down
1 change: 1 addition & 0 deletions dqpu-frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async function viewMethod(method, args = {}) {
const app = Vue.createApp({
data() {
return {
ipfs_gateway: 'http://51.77.230.39:8080/ipfs/',
tab: 'joblist',
jobs: [],
job_stats: {},
Expand Down

0 comments on commit 4dfe7f5

Please sign in to comment.