1.0.6 • Published 3 years ago

spread-eagle v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

spread-eagle

Content Management System via Google Sheet

NPM JavaScript Style Guide

Install

npm install spread-eagle
yarn add spread-eagle

Usage

  1. Create a Google Sheet that follows this structure.
  • A template sheet is mandatory
  • At least one "blueprint" sheet is mandatory
  1. Publish the sheet to the web.
  • File > Publish to the Web (Entire Document, Web)
  1. Pass in the workbook ID via props (bookId) and the corresponding sheet (sheetName)
import React, { useState, useEffect } from 'react'

import { Spread, getSheets } from 'spread-eagle'
import 'spread-eagle/dist/index.css'
const App = () => {
  const [sheets, setSheets] = useState()
  useEffect(() => {
    getSheets('16oebHDZ46f7noY1fEn7EaiJ8f1CtxfO0Fd0R2jsODfo').then((res) =>
      setSheets(res)
    )
  }, [])
  return (
    <>
      <Spread sheetName='home' sheets={sheets} />
    </>
  )
}

export default App

License

MIT © miles-moran

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago