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
<template> | |
<div class="card"> | |
<div class="table-container"> | |
<h6>{{tabletitle}}</h6> | |
<p v-html="tabledesc"> | |
</p> | |
<table class="table" > | |
<thead> | |
<tr> |
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
'use strict'; | |
const doc = require('dynamodb-doc'); | |
const AWS = require('aws-sdk'); | |
var dynamo = new doc.DynamoDB(); | |
dynamo = require('dynamodb'); | |
const Joi = require('joi'); | |
/** |
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 React from "react"; | |
import { Page, Card } from "@shopify/polaris"; | |
// require('../../scss/style.scss'); | |
import CategoryList from "../containers/categorylist.js"; | |
import ActiveCategory from "../containers/activecategory.js"; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<div> |
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 "babel-polyfill"; | |
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import { Provider } from "react-redux"; | |
import { createStore, applyMiddleware } from "redux"; | |
import thunkMiddleware from "redux-thunk"; | |
import { createLogger } from "redux-logger"; | |
import allReducers from "./reducers"; | |
import App from "./components/App"; | |
import "@shopify/polaris/styles.css"; |
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
export default function(state = null, action) { | |
return [ | |
{ | |
id: 1, | |
name: "Category 1" | |
}, | |
{ | |
id: 2, | |
name: "Category 2" | |
}, |
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
export default (state = null, action) => { | |
switch (action.type) { | |
case "RECEIVE_POSTS": | |
return action.payload; | |
break; | |
case "REQUEST_POSTS": | |
return action.payload; | |
break; | |
case "ERROR_GETTING_POSTS": | |
return action.payload; |
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 Rx from "rx"; | |
import axios from "axios"; | |
export const requestPosts = category => { | |
return { | |
type: "REQUEST_POSTS", | |
payload: { | |
category: category, | |
posts: [], | |
fetching: true |
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 React, { Component } from "react"; | |
import { bindActionCreators } from "redux"; | |
import { connect } from "react-redux"; | |
import { | |
Banner, | |
EmptyState, | |
Card, | |
DescriptionList, | |
TextStyle |
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 React, { Component } from "react"; | |
import { bindActionCreators } from "redux"; | |
import { connect } from "react-redux"; | |
import { fetchPosts } from "../actions"; | |
import { Card, Button, DescriptionList } from "@shopify/polaris"; | |
class CategoryList extends Component { | |
createListItems() { | |
let items = this.props.categories.map(category => ({ | |
term: category.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
0xF545C526f6C6E4e34B87A8c26962ea3A2BF760a5 |
NewerOlder