Commit 47bb71f1 authored by Jacob Durrant's avatar Jacob Durrant
Browse files

Added version number to header.

parent d6cf66ec
...@@ -39,8 +39,8 @@ body:"<p>The output PDBQT file does not appear to be properly formatted.</p>"}); ...@@ -39,8 +39,8 @@ body:"<p>The output PDBQT file does not appear to be properly formatted.</p>"});
props:{},computed:{},data:function(){return{msg:"",Z:0}},methods:{}})})();q.a();d.a();(function(){Vue.component("vina-existing-output",{template:'\n <b-form>\n <b-card\n class="mb-2 text-center"\n style="margin-bottom:1.4rem !important;"\n >\n <b-card-text>\n Use this tab if you\'ve already run Webina or Vina and\n have an existing docked-ligand PDBQT output file.\n </b-card-text>\n </b-card>\n\n <sub-section title="Existing Output Files">\n <file-input\n label="Receptor"\n id="receptor"\n description="The rigid part of the receptor (PDBQT or PDB)."\n accept=".pdbqt, .pdb"\n ></file-input>\n\n <file-input\n label="Docked Output"\n id="output"\n description="The Webina/Vina output file (PDBQT, OUT, VINA, or TXT) containing docked ligand poses."\n accept=".pdbqt, .out, .vina, .txt"\n ></file-input>\n\n <file-input\n label="Correct Pose"\n id="crystal"\n :required="false"\n description="The correct ligand pose, if known from experiment. This PDBQT or PDB file is optional."\n accept=".pdbqt, .pdb"\n ></file-input>\n </sub-section>\n\n <form-button cls="float-right mb-4" @click.native="onSubmitClick" variant="primary">Load Files</form-button>\n <form-button @click.native="useExampleOutputFiles" cls="float-right mr-2">Use Example Files</form-button>\n </b-form>\n ', props:{},computed:{},data:function(){return{msg:"",Z:0}},methods:{}})})();q.a();d.a();(function(){Vue.component("vina-existing-output",{template:'\n <b-form>\n <b-card\n class="mb-2 text-center"\n style="margin-bottom:1.4rem !important;"\n >\n <b-card-text>\n Use this tab if you\'ve already run Webina or Vina and\n have an existing docked-ligand PDBQT output file.\n </b-card-text>\n </b-card>\n\n <sub-section title="Existing Output Files">\n <file-input\n label="Receptor"\n id="receptor"\n description="The rigid part of the receptor (PDBQT or PDB)."\n accept=".pdbqt, .pdb"\n ></file-input>\n\n <file-input\n label="Docked Output"\n id="output"\n description="The Webina/Vina output file (PDBQT, OUT, VINA, or TXT) containing docked ligand poses."\n accept=".pdbqt, .out, .vina, .txt"\n ></file-input>\n\n <file-input\n label="Correct Pose"\n id="crystal"\n :required="false"\n description="The correct ligand pose, if known from experiment. This PDBQT or PDB file is optional."\n accept=".pdbqt, .pdb"\n ></file-input>\n </sub-section>\n\n <form-button cls="float-right mb-4" @click.native="onSubmitClick" variant="primary">Load Files</form-button>\n <form-button @click.native="useExampleOutputFiles" cls="float-right mr-2">Use Example Files</form-button>\n </b-form>\n ',
props:{},computed:{},data:function(){return{}},methods:{useExampleOutputFiles:function(){for(var b=this,a=["receptor","output"],c=a.length,e=0;e<c;e++)this.$store.commit("setValidationParam",{name:a[e],f:!0});a=new Promise(function(g){setTimeout(function(){b.$store.commit("setVar",{name:"receptorContents",f:b.$store.state.receptorContentsExample});b.$store.commit("setVar",{name:"outputContents",f:b.$store.state.outputContentsExample});b.$store.commit("setVar",{name:"crystalContents",f:b.$store.state.crystalContentsExample}); props:{},computed:{},data:function(){return{}},methods:{useExampleOutputFiles:function(){for(var b=this,a=["receptor","output"],c=a.length,e=0;e<c;e++)this.$store.commit("setValidationParam",{name:a[e],f:!0});a=new Promise(function(g){setTimeout(function(){b.$store.commit("setVar",{name:"receptorContents",f:b.$store.state.receptorContentsExample});b.$store.commit("setVar",{name:"outputContents",f:b.$store.state.outputContentsExample});b.$store.commit("setVar",{name:"crystalContents",f:b.$store.state.crystalContentsExample});
g()},100)});this.onSubmitClick(null,a)},onSubmitClick:function(b,a){var c=this;void 0===a&&(a=void 0);!0===this.validate()&&(this.$store.commit("disableTabs",{parametersTabDisabled:!0,runningTabDisabled:!0,existingVinaOutputTabDisabled:!0,outputTabDisabled:!1,startOverTabDisabled:!1}),Vue.nextTick(function(){c.$store.commit("setVar",{name:"tabIdx",f:3});void 0!==a?a.then(function(){c.$store.commit("outputToData")}):c.$store.commit("outputToData")}))},validate:function(){var b=this.$store.state.validation, g()},100)});this.onSubmitClick(null,a)},onSubmitClick:function(b,a){var c=this;void 0===a&&(a=void 0);!0===this.validate()&&(this.$store.commit("disableTabs",{parametersTabDisabled:!0,runningTabDisabled:!0,existingVinaOutputTabDisabled:!0,outputTabDisabled:!1,startOverTabDisabled:!1}),Vue.nextTick(function(){c.$store.commit("setVar",{name:"tabIdx",f:3});void 0!==a?a.then(function(){c.$store.commit("outputToData")}):c.$store.commit("outputToData")}))},validate:function(){var b=this.$store.state.validation,
a=[];!1===b.receptor&&a.push("receptor");!1===b.output&&a.push("output");b=0===a.length;!1===b&&this.$store.commit("openModal",{title:"Invalid Parameters!",body:"<p>Please correct the following parameter(s) before continuing: <code>"+a.join(" ")+"</code></p>"});return b}}})})();(function(){new Vue({el:"#app",store:p.a,template:'\n <div class="container-fluid">\n <open-modal></open-modal>\n <div id="no-mobile">\n <b-jumbotron class="jumbo" header="Webina" lead="AutoDock Vina Ported to WebAssembly">\n <p>Webina is not designed to work on mobile phones. Please use a device with a larger screen.</p>\n </b-jumbotron>\n </div>\n\n <b-jumbotron class="jumbo" style="background-image:url('+ a=[];!1===b.receptor&&a.push("receptor");!1===b.output&&a.push("output");b=0===a.length;!1===b&&this.$store.commit("openModal",{title:"Invalid Parameters!",body:"<p>Please correct the following parameter(s) before continuing: <code>"+a.join(" ")+"</code></p>"});return b}}})})();(function(){new Vue({el:"#app",store:p.a,template:'\n <div class="container-fluid">\n <open-modal></open-modal>\n <div id="no-mobile">\n <b-jumbotron class="jumbo" header="Webina 1.0.0" lead="AutoDock Vina Ported to WebAssembly">\n <p>Webina 1.0.0 is not designed to work on mobile phones. Please use a device with a larger screen.</p>\n </b-jumbotron>\n </div>\n\n <b-jumbotron class="jumbo" style="background-image:url('+
r.a()+'webina_logo.jpg);" header="Webina" lead="AutoDock Vina Ported to WebAssembly">\n <p>Brought to you by the Durrant Lab.</p>\n <b-button variant="primary" target="_blank" href="http://durrantlab.com">More Info</b-button>\n </b-jumbotron>\n\n <b-card no-body class="mb-3">\n <b-tabs v-model="tabIdx" card fill pills vertical content-class="mt-3"> \x3c!-- vertical --\x3e\n <b-tab title="Input Parameters" active :disabled="parametersTabDisabled">\n <b-card-text>\n <vina-params></vina-params>\n </b-card-text>\n </b-tab>\n <b-tab title="Existing Vina Output" :disabled="existingVinaOutputTabDisabled">\n <b-card-text>\n <vina-existing-output></vina-existing-output>\n </b-card-text>\n </b-tab>\n <b-tab title="Running Webina" :disabled="runningTabDisabled">\n <b-card-text>\n <vina-running></vina-running>\n </b-card-text>\n </b-tab>\n <b-tab title="Output" :disabled="outputTabDisabled">\n <b-card-text>\n <vina-output></vina-output>\n </b-card-text>\n </b-tab>\n <b-tab title="Start Over" :disabled="startOverTabDisabled">\n <b-card-text>\n <start-over></start-over>\n </b-card-text>\n </b-tab>\n </b-tabs>\n </b-card>\n </div>\n ', r.a()+'webina_logo.jpg);" header="Webina 1.0.0" lead="AutoDock Vina Ported to WebAssembly">\n <p>Brought to you by the <a target="_blank" href="http://durrantlab.com">Durrant Lab</a>.</p>\n <b-button variant="primary" target="_blank" href="http://durrantlab.com">More Info</b-button>\n </b-jumbotron>\n\n <b-card no-body class="mb-3">\n <b-tabs v-model="tabIdx" card fill pills vertical content-class="mt-3"> \x3c!-- vertical --\x3e\n <b-tab title="Input Parameters" active :disabled="parametersTabDisabled">\n <b-card-text>\n <vina-params></vina-params>\n </b-card-text>\n </b-tab>\n <b-tab title="Existing Vina Output" :disabled="existingVinaOutputTabDisabled">\n <b-card-text>\n <vina-existing-output></vina-existing-output>\n </b-card-text>\n </b-tab>\n <b-tab title="Running Webina" :disabled="runningTabDisabled">\n <b-card-text>\n <vina-running></vina-running>\n </b-card-text>\n </b-tab>\n <b-tab title="Output" :disabled="outputTabDisabled">\n <b-card-text>\n <vina-output></vina-output>\n </b-card-text>\n </b-tab>\n <b-tab title="Start Over" :disabled="startOverTabDisabled">\n <b-card-text>\n <start-over></start-over>\n </b-card-text>\n </b-tab>\n </b-tabs>\n </b-card>\n </div>\n ',
data:function(){return{receptorFile:!1,ligandFile:!1}},computed:{tabIdx:{get:function(){return this.$store.state.tabIdx},set:function(b){this.$store.commit("setVar",{name:"tabIdx",f:b})}},parametersTabDisabled:function(){return this.$store.state.parametersTabDisabled},runningTabDisabled:function(){return this.$store.state.runningTabDisabled},outputTabDisabled:function(){return this.$store.state.outputTabDisabled},existingVinaOutputTabDisabled:function(){return this.$store.state.existingVinaOutputTabDisabled}, data:function(){return{receptorFile:!1,ligandFile:!1}},computed:{tabIdx:{get:function(){return this.$store.state.tabIdx},set:function(b){this.$store.commit("setVar",{name:"tabIdx",f:b})}},parametersTabDisabled:function(){return this.$store.state.parametersTabDisabled},runningTabDisabled:function(){return this.$store.state.runningTabDisabled},outputTabDisabled:function(){return this.$store.state.outputTabDisabled},existingVinaOutputTabDisabled:function(){return this.$store.state.existingVinaOutputTabDisabled},
startOverTabDisabled:function(){return this.$store.state.startOverTabDisabled}},methods:{},mounted:function(){}})})();-1!==window.location.href.indexOf("durrantlab")&&setTimeout(function(){(function(b,a,c,e,g,l,h){b.GoogleAnalyticsObject=g;b[g]=b[g]||function(){(b[g].q=b[g].q||[]).push(arguments)};b[g].Y=(new Date).getTime();l=a.createElement(c);h=a.getElementsByTagName(c)[0];l.async=1;l.src=e;h.parentNode.insertBefore(l,h)})(window,document,"script","https://www.google-analytics.com/analytics.js", startOverTabDisabled:function(){return this.$store.state.startOverTabDisabled}},methods:{},mounted:function(){}})})();-1!==window.location.href.indexOf("durrantlab")&&setTimeout(function(){(function(b,a,c,e,g,l,h){b.GoogleAnalyticsObject=g;b[g]=b[g]||function(){(b[g].q=b[g].q||[]).push(arguments)};b[g].Y=(new Date).getTime();l=a.createElement(c);h=a.getElementsByTagName(c)[0];l.async=1;l.src=e;h.parentNode.insertBefore(l,h)})(window,document,"script","https://www.google-analytics.com/analytics.js",
"ga");ga("create","UA-144382730-1",{name:"webina"});ga("webina.send",{hitType:"event",eventCategory:"webina",eventAction:"pageview",eventLabel:window.location.href})},0)},"/dHQ":function(n,f,k){(function(p){function r(){Vue.component("file-input",{data:function(){return{file:!1}},methods:{},template:'\n <form-group\n :label="label"\n :id="\'input-group-\' + id"\n :description="description"\n >\n <b-form-file\n v-model="val"\n :state="Boolean(file)"\n placeholder="Choose a file or drop it here..."\n drop-placeholder="Drop file here..."\n :class="id" :accept="accept"\n :required="required"\n ></b-form-file>\n <small v-if="(!isValid) && (required === true)" alert tabindex="-1" class="text-danger form-text">{{invalidMsg}}</small>\n </form-group>\n ', "ga");ga("create","UA-144382730-1",{name:"webina"});ga("webina.send",{hitType:"event",eventCategory:"webina",eventAction:"pageview",eventLabel:window.location.href})},0)},"/dHQ":function(n,f,k){(function(p){function r(){Vue.component("file-input",{data:function(){return{file:!1}},methods:{},template:'\n <form-group\n :label="label"\n :id="\'input-group-\' + id"\n :description="description"\n >\n <b-form-file\n v-model="val"\n :state="Boolean(file)"\n placeholder="Choose a file or drop it here..."\n drop-placeholder="Drop file here..."\n :class="id" :accept="accept"\n :required="required"\n ></b-form-file>\n <small v-if="(!isValid) && (required === true)" alert tabindex="-1" class="text-danger form-text">{{invalidMsg}}</small>\n </form-group>\n ',
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Webina</title> <title>Webina</title>
<link rel="shortcut icon" href="favicon.ico"><link href="vendors.ba6bc77155b7ef7dbaec.1.css" rel="stylesheet"><link href="styles.ba6bc77155b7ef7dbaec.3.css" rel="stylesheet"></head> <link rel="shortcut icon" href="favicon.ico"><link href="vendors.24f544c55bbf0fea1b2d.1.css" rel="stylesheet"><link href="styles.24f544c55bbf0fea1b2d.3.css" rel="stylesheet"></head>
<body> <body>
<div id="app"></div> <div id="app"></div>
...@@ -19,6 +19,6 @@ ...@@ -19,6 +19,6 @@
<script src="vue.min.js"></script> <script src="vue.min.js"></script>
<script src="vuex.min.js"></script> <script src="vuex.min.js"></script>
<script src="bootstrap-vue.min.js"></script> <script src="bootstrap-vue.min.js"></script>
<script type="text/javascript" src="runtime.ba6bc77155b7ef7dbaec.js"></script><script type="text/javascript" src="vendors.ba6bc77155b7ef7dbaec.js"></script><script type="text/javascript" src="app.ba6bc77155b7ef7dbaec.js"></script><script type="text/javascript" src="styles.ba6bc77155b7ef7dbaec.js"></script><script type="text/javascript" src="styles.css.ba6bc77155b7ef7dbaec.js"></script></body> <script type="text/javascript" src="runtime.24f544c55bbf0fea1b2d.js"></script><script type="text/javascript" src="vendors.24f544c55bbf0fea1b2d.js"></script><script type="text/javascript" src="app.24f544c55bbf0fea1b2d.js"></script><script type="text/javascript" src="styles.24f544c55bbf0fea1b2d.js"></script><script type="text/javascript" src="styles.css.24f544c55bbf0fea1b2d.js"></script></body>
</html> </html>
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import * as Store from "../Vue/Store"; import * as Store from "../Vue/Store";
import * as Utils from "../Utils"; import * as Utils from "../Utils";
import { VERSION } from "../Version";
declare var Vue; declare var Vue;
...@@ -20,13 +21,13 @@ export function setup(): void { ...@@ -20,13 +21,13 @@ export function setup(): void {
<div class="container-fluid"> <div class="container-fluid">
<open-modal></open-modal> <open-modal></open-modal>
<div id="no-mobile"> <div id="no-mobile">
<b-jumbotron class="jumbo" header="Webina" lead="AutoDock Vina Ported to WebAssembly"> <b-jumbotron class="jumbo" header="Webina ${VERSION}" lead="AutoDock Vina Ported to WebAssembly">
<p>Webina is not designed to work on mobile phones. Please use a device with a larger screen.</p> <p>Webina ${VERSION} is not designed to work on mobile phones. Please use a device with a larger screen.</p>
</b-jumbotron> </b-jumbotron>
</div> </div>
<b-jumbotron class="jumbo" style="background-image:url(${Utils.curPath()}webina_logo.jpg);" header="Webina" lead="AutoDock Vina Ported to WebAssembly"> <b-jumbotron class="jumbo" style="background-image:url(${Utils.curPath()}webina_logo.jpg);" header="Webina ${VERSION}" lead="AutoDock Vina Ported to WebAssembly">
<p>Brought to you by the Durrant Lab.</p> <p>Brought to you by the <a target="_blank" href="http://durrantlab.com">Durrant Lab</a>.</p>
<b-button variant="primary" target="_blank" href="http://durrantlab.com">More Info</b-button> <b-button variant="primary" target="_blank" href="http://durrantlab.com">More Info</b-button>
</b-jumbotron> </b-jumbotron>
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment