Skip to content

Commit 9d2e16e

Browse files
committed
Initial map
1 parent b5bc56a commit 9d2e16e

37 files changed

+11240
-1
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: node_js
2+
node_js:
3+
- "13"
4+
5+
cache:
6+
directories:
7+
- "node_modules"
8+
9+
branches:
10+
only:
11+
- master
12+
13+
before_install:
14+
- npm i -g yarn
15+
16+
install:
17+
- yarn
18+
- yarn generate:gh-pages
19+
20+
deploy:
21+
- provider: pages
22+
skip_cleanup: true
23+
github_token: $GITHUB_ACCESS_TOKEN
24+
target_branch: gh-pages
25+
local_dir: dist
26+
on:
27+
branch: master

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# covid-tracker
1+
# COVID-19 Tracker
22
tracks COVID-19 around the world

api/confirmed.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// import axios from 'axios'
2+
3+
// export default async (req, res, next) => {
4+
// await axios.get('https://coronavirus-tracker-api.herokuapp.com/all')
5+
// .then(res => {
6+
// if (res.status === 200) {
7+
// const { confirmed } = res.data
8+
// res.json(confirmed)
9+
// }
10+
// })
11+
// .catch(err => {
12+
// console.log('API error.', err)
13+
// })
14+
// // return axios.get('http://example.com/getsession')
15+
// // .then(res => {
16+
// // store.commit('setSession', res)
17+
// // next()
18+
// // })
19+
// // .catch(() => {
20+
// // store.commit('clearSession')
21+
// // })
22+
// }

assets/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ASSETS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
6+
7+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).

assets/css/base.scss

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*------------------------------------*\
2+
#BASE
3+
\*------------------------------------*/
4+
5+
html {
6+
display: flex;
7+
font-size: 62.5%;
8+
}
9+
10+
body {
11+
margin: 0;
12+
width: 100%;
13+
font-family: 'Roboto';
14+
font-size: 14px;
15+
font-weight: 100;
16+
letter-spacing: 0.1rem;
17+
color: #ffffff;
18+
background: #000000;
19+
}
20+
21+
.wrapper {
22+
min-height: 100vh;
23+
width: 100%;
24+
display: flex;
25+
flex-direction: column;
26+
}
27+
28+
.wrap-header,
29+
.wrap-footer {
30+
padding: 0 16px;
31+
flex-shrink: 0;
32+
}
33+
34+
.wrap-header {
35+
padding-top: 32px;
36+
padding-bottom: 32px;
37+
font-size: 1.8rem;
38+
letter-spacing: 1px;
39+
font-weight: 100;
40+
}
41+
42+
.wrap-footer {
43+
font-size: 1rem;
44+
text-align: center;
45+
text-transform: uppercase;
46+
}
47+
48+
.main-content {
49+
flex-grow: 1;
50+
}

babel.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
function isBabelLoader(caller) {
2+
return caller && caller.name === 'babel-loader'
3+
}
4+
5+
module.exports = function(api) {
6+
if (api.env('test') && !api.caller(isBabelLoader)) {
7+
return {
8+
presets: [
9+
[
10+
'@babel/preset-env',
11+
{
12+
targets: {
13+
node: 'current'
14+
}
15+
}
16+
]
17+
]
18+
}
19+
}
20+
return {}
21+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Footer renders properly 1`] = `
4+
<footer>
5+
<p>© 2020 Randell Quitain</p>
6+
</footer>
7+
`;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { shallowMount } from '@vue/test-utils'
2+
import Footer from '../index.vue'
3+
4+
const factory = () => {
5+
return shallowMount(Footer, {})
6+
}
7+
8+
describe('Footer', () => {
9+
test('mounts properly', () => {
10+
const wrapper = factory()
11+
expect(wrapper.isVueInstance()).toBeTruthy()
12+
})
13+
14+
test('renders properly', () => {
15+
const wrapper = factory()
16+
expect(wrapper.html()).toMatchSnapshot()
17+
})
18+
})

components/Footer/index.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template>
2+
<footer>
3+
<p>© 2020</p>
4+
</footer>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: 'Footer',
10+
data() {
11+
return {}
12+
}
13+
}
14+
</script>
15+
16+
<style lang="scss" scoped>
17+
footer {
18+
font-weight: 300;
19+
font-size: 1.2rem;
20+
text-align: center;
21+
text-transform: uppercase;
22+
}
23+
</style>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Header renders properly 1`] = `<header></header>`;

0 commit comments

Comments
 (0)