Skip to content

Commit

Permalink
Loading image and variable category images
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn committed May 17, 2020
1 parent aab1ce2 commit 75f4143
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 46 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
if(window.location.href.indexOf('api/docs') !== -1){
url = document.location.origin + "/api/docs/swagger/swagger.json?access_token=demo";
}
if(window.location.href.indexOf('dev-docs') !== -1){
url = document.location.origin + "/dev-docs/swagger/swagger.json?access_token=demo";
}
if(window.location.host === "docs.quantimo.do"){url = "https://docs.quantimo.do/swagger/swagger.json?access_token=demo"}
window.ui = SwaggerUIBundle({
url: url,
Expand Down
54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31983,7 +31983,7 @@ <h2 class="panel-title">
</dt>
<dd>
<p>Ex:
<a href="https://maxcdn.icons8.com/Color/PNG/96/Healthcare/pill-96.png">https://maxcdn.icons8.com/Color/PNG/96/Healthcare/pill-96.png</a>
<a href="https://static.quantimo.do/img/variable_categories/pill-96.png">https://static.quantimo.do/img/variable_categories/pill-96.png</a>
</p>
</dd>
<dt data-property-name="variableCategoryName" class="has-description">
Expand Down Expand Up @@ -35365,7 +35365,7 @@ <h2 class="panel-title">
</dt>
<dd>
<p>Ex:
<a href="https://maxcdn.icons8.com/Color/PNG/96/Household/sleeping_in_bed-96.png">https://maxcdn.icons8.com/Color/PNG/96/Household/sleeping_in_bed-96.png</a>
<a href="https://static.quantimo.do/img/variable_categories/sleeping_in_bed-96.png">https://static.quantimo.do/img/variable_categories/sleeping_in_bed-96.png</a>
</p>
</dd>
<dt data-property-name="causeVariableIonIcon" class="has-description">
Expand All @@ -35383,7 +35383,7 @@ <h2 class="panel-title">
</dt>
<dd>
<p>Ex:
<a href="https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png">https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png</a>
<a href="https://static.quantimo.do/img/variable_categories/theatre_mask-96.png">https://static.quantimo.do/img/variable_categories/theatre_mask-96.png</a>
</p>
</dd>
<dt data-property-name="effectVariableIonIcon" class="has-description">
Expand Down Expand Up @@ -37021,7 +37021,7 @@ <h2 class="panel-title">
</dt>
<dd>
<p>Ex:
<a href="https://maxcdn.icons8.com/Color/PNG/96/Messaging/sad-96.png">https://maxcdn.icons8.com/Color/PNG/96/Messaging/sad-96.png</a>
<a href="https://static.quantimo.do/img/variable_categories/sad-96.png">https://static.quantimo.do/img/variable_categories/sad-96.png</a>
</p>
</dd>
<dt data-property-name="variableCategoryName" class="has-description">
Expand Down Expand Up @@ -37975,7 +37975,7 @@ <h2 class="panel-title">
</dt>
<dd>
<p>Ex:
<a href="https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png">https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png</a>
<a href="https://static.quantimo.do/img/variable_categories/theatre_mask-96.png">https://static.quantimo.do/img/variable_categories/theatre_mask-96.png</a>
</p>
</dd>
<dt data-property-name="variableCategoryName" class="has-description">
Expand Down Expand Up @@ -41430,7 +41430,7 @@ <h2 class="panel-title">
</dt>
<dd>
<p>Ex:
<a href="https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png">https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png</a>
<a href="https://static.quantimo.do/img/variable_categories/theatre_mask-96.png">https://static.quantimo.do/img/variable_categories/theatre_mask-96.png</a>
</p>
</dd>
<dt data-property-name="ionIcon" class="has-description">
Expand Down
2 changes: 1 addition & 1 deletion swagger-ui-bundle.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@
"type": "integer"
},
"variableCategoryImageUrl": {
"description": "Ex: https://maxcdn.icons8.com/Color/PNG/96/Healthcare/pill-96.png",
"description": "Ex: https://static.quantimo.do/img/variable_categories/pill-96.png",
"type": "string"
},
"variableCategoryName": {
Expand Down Expand Up @@ -2853,15 +2853,15 @@
"StudyImages": {
"properties": {
"causeVariableImageUrl": {
"description": "Ex: https://maxcdn.icons8.com/Color/PNG/96/Household/sleeping_in_bed-96.png",
"description": "Ex: https://static.quantimo.do/img/variable_categories/sleeping_in_bed-96.png",
"type": "string"
},
"causeVariableIonIcon": {
"description": "Ex: ion-ios-cloudy-night-outline",
"type": "string"
},
"effectVariableImageUrl": {
"description": "Ex: https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png",
"description": "Ex: https://static.quantimo.do/img/variable_categories/theatre_mask-96.png",
"type": "string"
},
"effectVariableIonIcon": {
Expand Down Expand Up @@ -3501,7 +3501,7 @@
"type": "integer"
},
"variableCategoryImageUrl": {
"description": "Ex: https://maxcdn.icons8.com/Color/PNG/96/Messaging/sad-96.png",
"description": "Ex: https://static.quantimo.do/img/variable_categories/sad-96.png",
"type": "string"
},
"variableCategoryName": {
Expand Down Expand Up @@ -3902,7 +3902,7 @@
"type": "integer"
},
"variableCategoryImageUrl": {
"description": "Ex: https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png",
"description": "Ex: https://static.quantimo.do/img/variable_categories/theatre_mask-96.png",
"type": "string"
},
"variableCategoryName": {
Expand Down Expand Up @@ -5245,7 +5245,7 @@
"type": "integer"
},
"imageUrl": {
"description": "Ex: https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png",
"description": "Ex: https://static.quantimo.do/img/variable_categories/theatre_mask-96.png",
"type": "string"
},
"ionIcon": {
Expand Down
12 changes: 6 additions & 6 deletions swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ definitions:
description: 'Ex: 13'
type: integer
variableCategoryImageUrl:
description: 'Ex: https://maxcdn.icons8.com/Color/PNG/96/Healthcare/pill-96.png'
description: 'Ex: https://static.quantimo.do/img/variable_categories/pill-96.png'
type: string
variableCategoryName:
description: 'Ex: Emotions, Treatments, Symptoms...'
Expand Down Expand Up @@ -2099,13 +2099,13 @@ definitions:
StudyImages:
properties:
causeVariableImageUrl:
description: 'Ex: https://maxcdn.icons8.com/Color/PNG/96/Household/sleeping_in_bed-96.png'
description: 'Ex: https://static.quantimo.do/img/variable_categories/sleeping_in_bed-96.png'
type: string
causeVariableIonIcon:
description: 'Ex: ion-ios-cloudy-night-outline'
type: string
effectVariableImageUrl:
description: 'Ex: https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png'
description: 'Ex: https://static.quantimo.do/img/variable_categories/theatre_mask-96.png'
type: string
effectVariableIonIcon:
description: 'Ex: ion-happy-outline'
Expand Down Expand Up @@ -2615,7 +2615,7 @@ definitions:
description: 'Ex: 10'
type: integer
variableCategoryImageUrl:
description: 'Ex: https://maxcdn.icons8.com/Color/PNG/96/Messaging/sad-96.png'
description: 'Ex: https://static.quantimo.do/img/variable_categories/sad-96.png'
type: string
variableCategoryName:
description: 'Ex: Emotions, Treatments, Symptoms...'
Expand Down Expand Up @@ -2921,7 +2921,7 @@ definitions:
description: 'Ex: 1'
type: integer
variableCategoryImageUrl:
description: 'Ex: https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png'
description: 'Ex: https://static.quantimo.do/img/variable_categories/theatre_mask-96.png'
type: string
variableCategoryName:
description: 'Ex: Emotions, Treatments, Symptoms...'
Expand Down Expand Up @@ -3938,7 +3938,7 @@ definitions:
description: 'Ex: 1'
type: integer
imageUrl:
description: 'Ex: https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png'
description: 'Ex: https://static.quantimo.do/img/variable_categories/theatre_mask-96.png'
type: string
ionIcon:
description: 'Ex: ion-happy-outline'
Expand Down

0 comments on commit 75f4143

Please sign in to comment.