You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2022/09/12 14:56:16 UTC
[airavata-sandbox] 08/13: refactored code
This is an automated email from the ASF dual-hosted git repository.
smarru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-sandbox.git
commit 1dbb954fbaf065ee86ceab4b0624e8bef18b0da3
Author: BECOB257_Aishwarya Sinhasane <av...@iu.edu>
AuthorDate: Thu Jul 21 03:43:57 2022 -0400
refactored code
---
gsoc2022/seagrid-rich-client/main.js | 8 ++++----
gsoc2022/seagrid-rich-client/{ => ui}/1aho.pdb | 0
gsoc2022/seagrid-rich-client/{ => ui/css}/styles.css | 0
gsoc2022/seagrid-rich-client/{ => ui}/nanocad.html | 0
gsoc2022/seagrid-rich-client/{ => ui}/ngl.js | 0
gsoc2022/seagrid-rich-client/{ => ui}/samplemol.html | 1 -
gsoc2022/seagrid-rich-client/{ => ui}/samplengl.html | 0
gsoc2022/seagrid-rich-client/{ => ui}/summary.html | 0
8 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/gsoc2022/seagrid-rich-client/main.js b/gsoc2022/seagrid-rich-client/main.js
index ab5a06af..b9f64f71 100644
--- a/gsoc2022/seagrid-rich-client/main.js
+++ b/gsoc2022/seagrid-rich-client/main.js
@@ -51,7 +51,7 @@ function createJSMolWindow () {
})
// and load the login page for app
- JSMolWindow.loadFile("samplengl.html")
+ JSMolWindow.loadFile("C:\\Users\\aishw\\gsoc\\airavata-gsoc2022\\airavata-sandbox\\gsoc2022\\seagrid-rich-client\\ui\\samplemol.html")
//editorWindow.loadURL("http://nglviewer.org/ngl/?script=showcase/ferredoxin")
}
// This method will be called when Electron has finished
@@ -70,16 +70,16 @@ app.whenReady().then(() => {
// Add custom menu
menu.splice(1,0,{
- label: 'Molecule Editor',
+ label: 'Molecule Viewer',
submenu: [
{
- label: 'nanocad',
+ label: 'NGLViewer',
click: (item, focusedWindow) => {
createMolWindow()
}
},
{
- label: 'JSMol Editor',
+ label: 'JSMol Viewer',
click: (item, focusedWindow) => {
createJSMolWindow()
}
diff --git a/gsoc2022/seagrid-rich-client/1aho.pdb b/gsoc2022/seagrid-rich-client/ui/1aho.pdb
similarity index 100%
rename from gsoc2022/seagrid-rich-client/1aho.pdb
rename to gsoc2022/seagrid-rich-client/ui/1aho.pdb
diff --git a/gsoc2022/seagrid-rich-client/styles.css b/gsoc2022/seagrid-rich-client/ui/css/styles.css
similarity index 100%
rename from gsoc2022/seagrid-rich-client/styles.css
rename to gsoc2022/seagrid-rich-client/ui/css/styles.css
diff --git a/gsoc2022/seagrid-rich-client/nanocad.html b/gsoc2022/seagrid-rich-client/ui/nanocad.html
similarity index 100%
rename from gsoc2022/seagrid-rich-client/nanocad.html
rename to gsoc2022/seagrid-rich-client/ui/nanocad.html
diff --git a/gsoc2022/seagrid-rich-client/ngl.js b/gsoc2022/seagrid-rich-client/ui/ngl.js
similarity index 100%
rename from gsoc2022/seagrid-rich-client/ngl.js
rename to gsoc2022/seagrid-rich-client/ui/ngl.js
diff --git a/gsoc2022/seagrid-rich-client/samplemol.html b/gsoc2022/seagrid-rich-client/ui/samplemol.html
similarity index 98%
rename from gsoc2022/seagrid-rich-client/samplemol.html
rename to gsoc2022/seagrid-rich-client/ui/samplemol.html
index 953d585d..215220db 100644
--- a/gsoc2022/seagrid-rich-client/samplemol.html
+++ b/gsoc2022/seagrid-rich-client/ui/samplemol.html
@@ -10,7 +10,6 @@
<body>
here is structure
<script>
-
jmolApplet(400,"load 1aho.pdb","0");
</script>
</body>
diff --git a/gsoc2022/seagrid-rich-client/samplengl.html b/gsoc2022/seagrid-rich-client/ui/samplengl.html
similarity index 100%
rename from gsoc2022/seagrid-rich-client/samplengl.html
rename to gsoc2022/seagrid-rich-client/ui/samplengl.html
diff --git a/gsoc2022/seagrid-rich-client/summary.html b/gsoc2022/seagrid-rich-client/ui/summary.html
similarity index 100%
rename from gsoc2022/seagrid-rich-client/summary.html
rename to gsoc2022/seagrid-rich-client/ui/summary.html