Skip to content

Commit

Permalink
Merge pull request #28 from ciatph/maintenance-page
Browse files Browse the repository at this point in the history
maintenance page
  • Loading branch information
ciatph authored Nov 11, 2020
2 parents 2d413f5 + 2e9fefd commit 8075563
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ Contains updated content with new AMIA Phase 2 information and documents.
<br>


## Requirements

The following requirements and dependencies were used for this project. Other system and software configurations are open for testing.

1. Windows 10 Pro
2. NodeJS
- npm version 10.16.3
- npm version 6.9.0

## Build Setup

1. Clone the project. <br>
Expand Down
15 changes: 15 additions & 0 deletions src/components/templates/Maintenance.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template lang="pug">
b-row(
class="text-center thumbnail-container")
b-col(sm="12")
h3 This page is currently down for maintenance.
br
br
br
</template>

<script>
export default {
name: 'Maintenance'
}
</script>
16 changes: 16 additions & 0 deletions src/components/widgets/PageMaintenance.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template lang="pug">
b-container(fluid class="container-fluid-custom bg-greylight")
maintenance

</template>

<script>
import Maintenance from '@/components/templates/Maintenance'
export default {
name: 'PageMaintenance',
components: {
Maintenance
}
}
</script>
4 changes: 2 additions & 2 deletions src/defines/menumaps/links-mainmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ module.exports = {
},
{
'title': 'CBA Tool',
'link': 'http://cbatool.ciat.cgiar.org/',
'external': 'true',
'link': '/maintenance',
'external': 'false',
'children': []
},
{
Expand Down
6 changes: 6 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Home from '@/components/pages/Home'
import Maps from '@/components/pages/Maps'
import Documents from '@/components/pages/Documents'
import PageRedirect from '@/components/widgets/PageRedirect'
import PageMaintenance from '@/components/widgets/PageMaintenance'
import CraDs from '@/components/pages/CraDs'
import Crva from '@/components/pages/Crva'
import MonitoringEvaluation from '@/components/pages/MonitoringEvaluation'
Expand Down Expand Up @@ -111,6 +112,11 @@ export default new Router({
name: 'questionnaires',
component: Questionnaires
},
{
path: '/maintenance',
name: 'PageMaintenace',
component: PageMaintenance
},
{
path: '/:projects',
name: 'PageRedirect',
Expand Down

0 comments on commit 8075563

Please sign in to comment.