Skip to content

Instantly share code, notes, and snippets.

View haxzie's full-sized avatar

Musthaq Ahamad haxzie

View GitHub Profile
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,
@haxzie
haxzie / index.js
Last active October 19, 2019 07:25
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,
@haxzie
haxzie / index.js
Last active October 19, 2019 07:25
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';
@haxzie
haxzie / index.js
Last active October 19, 2019 07:26
/**
* 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
<!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>
@haxzie
haxzie / style.css
Created September 28, 2019 08:59
Theming CSS
html, body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
.theme-light {
--color-primary: #0060df;
--color-secondary: #fbfbfe;
--color-accent: #fd6f53;