From 4898d9f2cb5ee7bc27f2b9a2a398143a7525a406 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 18:13:33 +0200 Subject: [PATCH 01/12] Update dependencies --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9fd36b9..911a0fa 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ gtag('config', 'G-HW60Z9TDXB'); - + @@ -77,10 +77,10 @@ - - + + - + From 26eccbe7818bc51e3f2df5b37c5c7c33f7853f93 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 19:11:58 +0200 Subject: [PATCH 02/12] Initial router implementation --- index.html | 58 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/index.html b/index.html index 911a0fa..6b7e63d 100644 --- a/index.html +++ b/index.html @@ -26,30 +26,31 @@ - + mdi-home-outline Home - + mdi-newspaper-variant-outline News - + mdi-speedometer - Benchmarks - + Benchmarks + + mdi-book-open-page-variant-outline Documentation - + mdi-school-outline Tutorials - + mdi-vector-combine Ecosystem - + mdi-account-group-outline Development @@ -57,13 +58,13 @@ - - - - - - - + + + + + + + @@ -78,6 +79,7 @@ + @@ -88,20 +90,24 @@ From 12cb6ca1e09e1e18fff332aa74b3d0f4d68406e8 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 19:27:38 +0200 Subject: [PATCH 03/12] Fix the router base --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 6b7e63d..26b4c0c 100644 --- a/index.html +++ b/index.html @@ -91,6 +91,7 @@ Vue.use(hljs.vuePlugin); marked.setOptions({ highlight: (code, lang) => hljs.highlight(lang, code).value }); const router = new VueRouter({ + base: '/openmm-org/', mode: 'history', routes: [ { path: '/', component: httpVueLoader('home.vue') }, From c81e3c24f1d9ed1f0aca4c5f038c5d4c636586c8 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 19:33:47 +0200 Subject: [PATCH 04/12] Make the router base conditional --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 26b4c0c..6cf1c6b 100644 --- a/index.html +++ b/index.html @@ -91,7 +91,7 @@ Vue.use(hljs.vuePlugin); marked.setOptions({ highlight: (code, lang) => hljs.highlight(lang, code).value }); const router = new VueRouter({ - base: '/openmm-org/', + base: document.URL.includes('/openmm-org') ? '/openmm-org/' : '/', mode: 'history', routes: [ { path: '/', component: httpVueLoader('home.vue') }, From 5639bbb7fd4be762093280d1cc7cb98f3d298398 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 19:41:39 +0200 Subject: [PATCH 05/12] Fix a missing URL --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 6cf1c6b..24defc4 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@ - + From a04ae4809bd9140ceebdbcac0535d928a94aca4e Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 19:43:20 +0200 Subject: [PATCH 06/12] Fix the history mode --- 404.html | 1 + 1 file changed, 1 insertion(+) create mode 120000 404.html diff --git a/404.html b/404.html new file mode 120000 index 0000000..64233a9 --- /dev/null +++ b/404.html @@ -0,0 +1 @@ +index.html \ No newline at end of file From b186cacd6474fa68bc50dff637b98b8eab38b2df Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 20:06:06 +0200 Subject: [PATCH 07/12] Simplify implementation --- index.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 24defc4..587cbb4 100644 --- a/index.html +++ b/index.html @@ -58,13 +58,9 @@ - - - - - - - + + + @@ -108,7 +104,7 @@ router, vuetify: new Vuetify(), components: { 'top': httpVueLoader('top.vue') }, - data: { tab: null } + data: { tab: '/' } }); From fc86f8ee4cf35f1c1b7065f6fab4fb0dcddedbc6 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 21:04:26 +0200 Subject: [PATCH 08/12] More code simplification --- index.html | 60 ++++++++++++++++++------------------------------------ 1 file changed, 20 insertions(+), 40 deletions(-) diff --git a/index.html b/index.html index 587cbb4..efa0a96 100644 --- a/index.html +++ b/index.html @@ -25,40 +25,15 @@ - - - mdi-home-outline - Home - - - mdi-newspaper-variant-outline - News - - - mdi-speedometer - Benchmarks - - - mdi-book-open-page-variant-outline - Documentation - - - mdi-school-outline - Tutorials - - - mdi-vector-combine - Ecosystem - - - mdi-account-group-outline - Development + + + {{ tab.icon }}{{ tab.name }} - - + + @@ -86,25 +61,30 @@ From 6b4ab6fc2551c941aa570924761d60dd1d8e5da5 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 21:19:07 +0200 Subject: [PATCH 09/12] Update the interal links --- home.vue | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home.vue b/home.vue index 252ad69..735c7c4 100644 --- a/home.vue +++ b/home.vue @@ -9,7 +9,7 @@ - + Highly Optimized Optimized for the latest generation of compute hardware, including NVIDIA, AMD, and Intel GPUs. We also heavily optimize for CPUs. diff --git a/index.html b/index.html index efa0a96..8a1ad41 100644 --- a/index.html +++ b/index.html @@ -79,7 +79,7 @@ mode: 'history', routes }) - var app = new Vue({ + const app = new Vue({ el: '#app', router, vuetify: new Vuetify(), From 6bc6b50c786ae98c654d8404c96b5f60e53481b0 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 21:25:19 +0200 Subject: [PATCH 10/12] Fix formating --- index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 8a1ad41..132b628 100644 --- a/index.html +++ b/index.html @@ -62,13 +62,13 @@ Vue.use(hljs.vuePlugin); marked.setOptions({ highlight: (code, lang) => hljs.highlight(lang, code).value }); const tabs = [ - { name: 'Home', path: '/', icon: 'mdi-home-outline'}, - { name: 'News', path: '/news', icon: 'mdi-newspaper-variant-outline'}, - { name: 'Benchmarks', path: '/benchmarks', icon: 'mdi-speedometer'}, - { name: 'Documentation', path: '/documentation', icon: 'mdi-book-open-page-variant-outline'}, - { name: 'Tutorials', path: '/tutorials', icon: 'mdi-school-outline'}, - { name: 'Ecosystem', path: '/ecosystem', icon: 'mdi-vector-combine'}, - { name: 'Development', path: '/development', icon: 'mdi-account-group-outline'}, + { name: 'Home', path: '/', icon: 'mdi-home-outline' }, + { name: 'News', path: '/news', icon: 'mdi-newspaper-variant-outline' }, + { name: 'Benchmarks', path: '/benchmarks', icon: 'mdi-speedometer' }, + { name: 'Documentation', path: '/documentation', icon: 'mdi-book-open-page-variant-outline' }, + { name: 'Tutorials', path: '/tutorials', icon: 'mdi-school-outline' }, + { name: 'Ecosystem', path: '/ecosystem', icon: 'mdi-vector-combine' }, + { name: 'Development', path: '/development', icon: 'mdi-account-group-outline' }, ] const routes = tabs.map(tab => { const component = httpVueLoader(`${tab.name.toLowerCase()}.vue`) From a5b4841e698d3b2212b8312db49fe75df9215037 Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 21:29:30 +0200 Subject: [PATCH 11/12] Add the redirection form /documentation.html --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 132b628..c439978 100644 --- a/index.html +++ b/index.html @@ -73,7 +73,9 @@ const routes = tabs.map(tab => { const component = httpVueLoader(`${tab.name.toLowerCase()}.vue`) return { path: tab.path, component } - }) + }).concat([ + { path: '/documentation.html', redirect: '/documentation'} + ]) const router = new VueRouter({ base: document.URL.includes('/openmm-org') ? '/openmm-org/' : '/', mode: 'history', From 35587ac48f29effd63a762f0ea26eb8733649e0a Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Fri, 16 Jul 2021 21:33:07 +0200 Subject: [PATCH 12/12] Add the default redirection --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index c439978..e73a890 100644 --- a/index.html +++ b/index.html @@ -74,7 +74,8 @@ const component = httpVueLoader(`${tab.name.toLowerCase()}.vue`) return { path: tab.path, component } }).concat([ - { path: '/documentation.html', redirect: '/documentation'} + { path: '/documentation.html', redirect: '/documentation'}, + { path: '*', redirect: '/'}, ]) const router = new VueRouter({ base: document.URL.includes('/openmm-org') ? '/openmm-org/' : '/',