This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
axios.get('https://api.github.com/repos/athul/shelby/releases') | |
.then(response => { | |
return response.data; | |
}).then(data => { | |
const asset_downloads = data.map(release => { | |
return { | |
name: release.tag_name, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import Vuex from 'vuex' | |
import createLogger from 'vuex/dist/logger' | |
import modules from './modules'; | |
Vue.use(Vuex); | |
const debug = process.env.NODE_ENV !== 'production'; | |
export default new Vuex.Store({ | |
modules, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import Vuex from 'vuex' | |
import createLogger from 'vuex/dist/logger' | |
// import the auto exporter | |
import modules from './modules'; | |
Vue.use(Vuex); | |
const debug = process.env.NODE_ENV !== 'production'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Automatically imports all the modules and exports as a single module object | |
*/ | |
const requireModule = require.context('.', false, /\.store\.js$/); | |
const modules = {}; | |
requireModule.keys().forEach(filename => { | |
// create the module name from fileName | |
// remove the store.js extension and capitalize | |
const moduleName = filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" class="theme-light"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="./styles.css" type="text/css" /> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
width: 100%; | |
} | |
.theme-light { | |
--color-primary: #0060df; | |
--color-secondary: #fbfbfe; | |
--color-accent: #fd6f53; |