Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Structure Design Page (Lab Notebook) #50

Merged
merged 23 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6276cc6
remove unecessary commented code
IcedTea2K Oct 24, 2023
5d506e6
add initial strucutre design page and its routing
IcedTea2K Oct 24, 2023
b236af3
equation can now go into display mode (for multiline equations)
IcedTea2K Oct 24, 2023
f6149c0
implement structure design
IcedTea2K Oct 24, 2023
063975a
Added all graphics except n-gons
daniel-panhead Oct 27, 2023
3c56f81
fix typo in the content
IcedTea2K Oct 27, 2023
4b8f454
make the style of x-gon sections more consistent with the rest
IcedTea2K Oct 27, 2023
0bfe3d7
add captions to figure 6 and add reference in the body
IcedTea2K Oct 27, 2023
03853ce
fix content for structure design
IcedTea2K Oct 28, 2023
a80bc64
Tweaked spacing and added content at end of results and discussion se…
daniel-panhead Oct 28, 2023
5127c89
Make ol/ul wider on mobile for responsiveness
daniel-panhead Oct 28, 2023
020a8da
Merge branch 'main' of github.com:biomod2023/biomod2023 into minh/str…
daniel-panhead Oct 28, 2023
99230af
Make table/equations responsive
daniel-panhead Oct 28, 2023
33522d9
Fix p tag error
daniel-panhead Oct 28, 2023
92efaff
Fixed another p tag error and prettified code
daniel-panhead Oct 28, 2023
28e32a1
Prettified Code!
daniel-panhead Oct 28, 2023
f3930ef
Merge branch 'main' of github.com:biomod2023/biomod2023 into minh/str…
daniel-panhead Oct 28, 2023
abb4031
Prettified Code!
daniel-panhead Oct 28, 2023
ab3519e
add transparent images
IcedTea2K Oct 28, 2023
0ecde95
Prettified Code!
IcedTea2K Oct 28, 2023
73de03e
Merge branch 'main' of github.com:biomod2023/biomod2023 into minh/str…
daniel-panhead Oct 28, 2023
7bd33df
Fix equation to be span + fix EOF error + make references always drop…
daniel-panhead Oct 28, 2023
53846af
Prettified Code!
daniel-panhead Oct 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/structure-design/3gon_view1.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/structure-design/3gon_view2.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/structure-design/3gon_view3.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/structure-design/4gon_view1.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/structure-design/4gon_view2.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/structure-design/4gon_view3.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/structure-design/5gon_view1.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/structure-design/5gon_view2.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/structure-design/5gon_view3.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/structure-design/Octahedron.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/structure-design/Pentagonal.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/structure-design/Trigonal.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/structure-design/arb-scaffold.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/structure-design/nanoscale.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.
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.
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/structure-design/regular-polygons.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/structure-design/rmsf-anim.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 21 additions & 18 deletions src/components/Equation.vue
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
<script setup lang="ts">
import katex from 'katex'
import { type Ref, ref, onMounted } from 'vue'
const props = defineProps<{
formula: string
}>()
const containerRef = ref(null) as unknown as Ref<HTMLElement>
const props = withDefaults(
defineProps<{
formula: string
displayMode?: boolean
}>(),
{
formula: '',
displayMode: false
}
)

const containerRef = ref(null) as unknown as Ref<HTMLElement>
onMounted(() => {
katex.render(props.formula, containerRef.value, { throwOnError: false })
katex.render(props.formula, containerRef.value, {
throwOnError: false,
displayMode: props.displayMode
})
})
</script>
<template>
<div
<span
ref="containerRef"
class="w-full overflow-x-scroll bg-transparent invisible-scroller text-center"
></div>
>
</span>
</template>
<!--
<template>

<!-- <template>
hello
<vue-mathjax :formula="formula"></vue-mathjax>
</template>

<script lang="ts">
import { VueMathjax } from 'vue-mathjax'
export default {
components: {
'vue-mathjax': VueMathjax
}}
</script> -->
</template> -->
2 changes: 1 addition & 1 deletion src/components/navbar/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const tree: Tree[] = [
children: [
{
name: 'Structure Design',
url: '#'
url: '/computational-simulation/structure-design'
},
{
name: 'Docking of Dnase I',
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './assets/main.css'

import { VueElement, createApp } from 'vue'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

Expand Down
6 changes: 6 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const IdeasView = () => import('@/views/IdeasView.vue')
const TeamView = () => import('@/views/TeamView.vue')
const ELSIView = () => import('@/views/ELSIView.vue')
const SponsorsView = () => import('@/views/SponsorsView.vue')
const StructureDesignView = () => import('@/views/computational-simulation/StructureDesignView.vue')
const DockingDNASE = () => import('@/views/computational-simulation/DockingDNASE.vue')
const GroupAView = () => import('@/views/lab-validation/GroupAView.vue')
const GroupBView = () => import('@/views/lab-validation/GroupBView.vue')
Expand Down Expand Up @@ -43,6 +44,11 @@ const router = createRouter({
name: 'sponsors',
component: SponsorsView
},
{
path: '/computational-simulation/structure-design',
name: 'structure-design',
component: StructureDesignView
},
{
path: '/computational-simulation/docking-of-dnase-i',
name: 'docking-of-dnase-i',
Expand Down
707 changes: 707 additions & 0 deletions src/views/computational-simulation/StructureDesignView.vue

Large diffs are not rendered by default.