@livecms/live-edit

0.0.31 • Public • Published

@livecms/live-edit

npm version npm downloads Github Actions CI Codecov License

Live content edit

📖 Release Notes

Setup

  1. Add @livecms/live-edit dependency to your project
yarn add @livecms/live-edit # or npm install @livecms/live-edit
  1. Add @livecms/live-edit to the modules section of nuxt.config.js
{
  modules: [
    '@livecms/live-edit',
  ],

  liveEdit: {
    api: process.env.LIVE_EDIT_API, // https://example.livecms.cz/api or custom API
    assets: process.env.LIVE_EDIT_ASSETS, // S3 storage - https://s3.eu-central-1..
    imagekit: process.env.LIVE_EDIT_IMAGEKIT, // Imagekit url - https://ik.imagekit.io/something
  },
}
  1. Add <live-edit /> to layouts/default.vue

  2. Fetch texts

async fetch() {
  await this.$liveEdit.loadTexts();
},

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) David Veselý jsem@davidvesely.cz

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.310latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.310
0.0.300
0.0.290
0.0.270
0.0.260
0.0.250
0.0.240
0.0.230
0.0.220
0.0.210
0.0.200
0.0.190
0.0.180
0.0.170
0.0.160
0.0.140
0.0.130
0.0.120
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.50
0.0.40
0.0.30

Package Sidebar

Install

npm i @livecms/live-edit

Weekly Downloads

0

Version

0.0.31

License

MIT

Unpacked Size

51 kB

Total Files

18

Last publish

Collaborators

  • vesely