Skip to content

Commit 74fce40

Browse files
authored
Merge pull request #6 from rfcx/feature/CE-1262-set-up-authentication-page
CE-1262 Set up authentication page
2 parents 82b2563 + fc86f6a commit 74fce40

36 files changed

+837
-110
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
],
3232
'import/newline-after-import': ['error'],
3333
'unused-imports/no-unused-imports-ts': 'error',
34-
'simple-import-sort/exports': ['error']
34+
'simple-import-sort/exports': ['error'],
35+
'no-void': ['error', { allowAsStatement: true }]
3536
}
3637
}

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
* **setup:** CE-1261 Setup biodiversity analytics project ([CE-1261](https://jira.rfcx.org/browse/CE-1261))
66
* **setup:** CE-1297 Setup biodiversity analytics deployment ([CE-1297](https://jira.rfcx.org/browse/CE-1297))
7+
* **setup:** CE-1262 Set up authentication page ([CE-1262](https://jira.rfcx.org/browse/CE-1262))
8+
* **setup:** CE-1348 Set up biodiversity analytics store data tool([CE-1348](https://jira.rfcx.org/browse/CE-1348))
9+
* **setup:** Set up api service for calling an api
710

811
* **features:** CE-1327 User can see the comparison box at the top of report ([CE-1327](https://jira.rfcx.org/browse/CE-1327))

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Biodiversity Analytics
22

3-
Biodiversity analytics website build with Vue 3 + Typescript + Vite + Windi CSS
3+
Biodiversity analytics website build with Vue 3, Typescript, Vite, Windi CSS, and Vuex
44

5-
## Getting started
5+
## Requirements
6+
7+
- node 14+
8+
- npm 7+
69

7-
Requirements:
8-
- node 14+, npm 7+
10+
## Getting started
911

1012
1. Install dependencies:
1113

index.html

+27-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,34 @@
99
</head>
1010

1111
<body class="min-h-screen bg-mirage-grey">
12+
<div id="preload" class="bg-mirage-grey h-10 w-10 top-1/2 left-1/2">
13+
<svg class="animate-spin bg-mirage-grey text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
14+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
15+
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
16+
</svg>
17+
</div>
1218
<div id="app"></div>
1319
<script type="module" src="/src/main.ts"></script>
1420
</body>
1521

16-
</html>
22+
</html>
23+
24+
<script lang="ts">
25+
document.onreadystatechange = function () {
26+
const state = document.readyState
27+
if (state == 'interactive') {
28+
document.getElementById('preload').style.visibility = 'visible'
29+
document.getElementById('app').style.visibility = 'hidden'
30+
} else if (state == 'complete') {
31+
setTimeout(function () {
32+
document.getElementById('preload').remove()
33+
document.getElementById('app').style.visibility = 'visible'
34+
}, 3000)
35+
}
36+
}
37+
</script>
38+
<style>
39+
#preload {
40+
position: fixed;
41+
}
42+
</style>

0 commit comments

Comments
 (0)