Skip to content

Commit

Permalink
Merge branch 'main' of github.com:biomod2023/biomod2023 into minh/pop…
Browse files Browse the repository at this point in the history
…ulate-advisor
  • Loading branch information
daniel-panhead committed Oct 28, 2023
2 parents 47abd6c + 8e22027 commit b4fdd78
Show file tree
Hide file tree
Showing 94 changed files with 4,150 additions and 833 deletions.
24 changes: 22 additions & 2 deletions NOTEBOOK.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# Notebook
# Notebook & General Documentation

You're welcome. \
Co-author: Daniel + Minh :D

# General Documentation

## ClickDetection

Wrapper component to detect if the user click outside of your component. First, `import @/components/utils/ClickDetection.vue`. Then, wrap the component outside of your target component with a few extra twists (work arounds):

You're welcome.
- `yourCallBackFunc` - the method that will be called when the user clicks outside of your component. You have to define this yourself. It varies depending on the need.
- `setRef` - is a function from `<ClickDetection>` that allows you to to specify the Ref of the target component. With it, we can check if the component has been clicked, whenever there's a click.

```html
<ClickDetection :callback"yourCallBackFunc" v-slot"{setRef}">
<YourComponent :ref="(el) => setRef(el)">
...
</YourComponent>
</ClickDetection>
```

# Notebook

## Usage

Expand Down
2 changes: 1 addition & 1 deletion THEME.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The notebook text and bubble background colors can be accessed with the `noteboo

```html
<div class="bg-notebookBg">
<p class="text-notebookText">Body</p>
<p class="text-notebookText">Body</p>
</div>
```

Expand Down
47 changes: 45 additions & 2 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"@vueuse/core": "^10.5.0",
"katex": "^0.16.9",
"oh-vue-icons": "^1.0.0-rc3",
"v-click-outside": "^3.2.0",
"vue": "^3.3.4",
"vue-router": "^4.2.2",
"vue-window-size": "^2.0.0"
"vue-window-size": "^2.0.0",
"vuetify": "^3.3.23"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.2.0",
Expand Down
Binary file added src/assets/dna_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/dnase-i/all-buffers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/dnase-i/hepes-buffer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/dnase-i/manu-buffer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/dnase-i/te-buffer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/docking-dnase/DNAse1 Pymol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/docking-dnase/DNAse1 active site.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/docking-dnase/DNAse1+Maleimdie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/elsi-graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/homepage/abstract_graphic.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/homepage/title_background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/homepage/title_graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Arnaz_Dhalla.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Emma_Lo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Erica_Chu.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Ethan_Rajkumar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Karina_Akhmedove.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/profile_pictures/Kshemaka.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Maggie_Wang.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Melanie_Chan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/profile_pictures/Miguel.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Paniz_Ghavimi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Rosalie_Zhou.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/profile_pictures/Talia_Feng.jpg
Binary file added src/assets/profile_pictures/Tianne_Kussat.png
Binary file added src/assets/profile_pictures/Tiffany_Yu.jpg
Binary file added src/assets/profile_pictures/Vivian_Zheng.jpg
Binary file not shown.
Binary file added src/assets/structure-design/3gon_view1.png
Binary file added src/assets/structure-design/3gon_view2.png
Binary file added src/assets/structure-design/3gon_view3.png
Binary file added src/assets/structure-design/4gon_view1.png
Binary file added src/assets/structure-design/4gon_view2.png
Binary file added src/assets/structure-design/4gon_view3.png
Binary file added src/assets/structure-design/5gon_view1.png
Binary file added src/assets/structure-design/5gon_view2.png
Binary file added src/assets/structure-design/5gon_view3.png
Binary file added src/assets/structure-design/Octahedron.png
Binary file added src/assets/structure-design/Pentagonal.png
Binary file added src/assets/structure-design/Trigonal.png
Binary file added src/assets/structure-design/arb-scaffold.png
Binary file added src/assets/structure-design/nanoscale.png
Binary file added src/assets/structure-design/regular-polygons.png
Binary file added src/assets/structure-design/rmsf-anim.gif
Binary file added src/assets/structure-imaging/sample-1.jpeg
Binary file added src/assets/structure-imaging/sample-2.jpeg
Binary file added src/assets/structure-imaging/sample-3.jpeg
Binary file added src/assets/structure-imaging/sample-4.jpeg
Binary file added src/assets/thiolation.png
39 changes: 39 additions & 0 deletions src/components/CustomTable2.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<script setup lang="ts">
defineProps<{
tableData: {
headers: string[]
rowHeaders: string[]
rowsPerRowHeader: number
data: any[][]
}
}>()
const border = 'border-notebookText'

Check warning on line 11 in src/components/CustomTable2.vue

View workflow job for this annotation

GitHub Actions / Lint and Test Build

'border' is assigned a value but never used
</script>

<template>
<table class="table-fixed border-collapse lg:w-full">
<tr class="bg-slate">
<th
v-for="(header, i) in tableData.headers"
:key="i"
:class="'w-1/' + tableData.headers.length"
class="py-2 px-4 text-sm lg:text-base"
>
{{ header }}
</th>
</tr>
<tbody class="bg-[#303030]">
<tr v-for="(row, i) in tableData.data" :key="i">
<th
v-if="i % tableData.rowsPerRowHeader == 0"
:rowspan="tableData.rowsPerRowHeader"
class="text-sm lg:text-base"
>
{{ tableData.rowHeaders[i / tableData.rowsPerRowHeader] }}
</th>
<td v-for="(item, j) in row" :key="j" class="py-4 px-2 lg:text-lg">{{ item }}</td>
</tr>
</tbody>
</table>
</template>
Loading

0 comments on commit b4fdd78

Please sign in to comment.