1.0.32 • Published 3 months ago

strapi-plugin-generate-data v1.0.32

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

Strapi plugin generate-data

This plugin is for generating data for your content-types.

Preview

Features

  • It supports only string with RegExp pattern, email, richtext, integer, decimal, date, media(videos, images, audios, files), boolean enumeration, password, UID, relation, json fields of your content types.
  • Ability to publish data if you have draft mode for your type
  • Ability of choosing which field should be included in generating data
  • It has preview of data in table, which you want to upload
  • Ability of flushing data of the content type you want to upload the generated data
  • It creates content in draft if the content type has draft & publish option

Installations

To install this plugin, you need to add an NPM dependency to your Strapi application:

# Using Yarn
yarn add strapi-plugin-generate-data

# Or using NPM
npm install strapi-plugin-generate-data

It should be activated by default, but if you don't have it in your admin then enable the plugin manually in config/plugins

{
    ...,
    "generate-data": {
        enabled: true,
    },
}

Possible issues

  1. If you don't see generated images on ui and see in console error like content security policy for each image url then you need to update middleware strapi::security in config/middlewares like
...,
 {
    name: "strapi::security",
    config: {
      contentSecurityPolicy: {
        useDefaults: true,
        directives: {
          "connect-src": ["'self'", "https:"],
          "img-src": ["'self'", "data:", "blob:", `https://loremflickr.com/`],
          upgradeInsecureRequests: null,
        },
      },
    },
  },
...
  1. If you have issue with upload data locally try to use 127.0.0.1 instead of localhost
  2. If you have issue with no Generate data plugin in left panel, try to run strapi build command it will build your app with plugins Preview

Environment

  • Strapi version 4.x.x

Future plans

  • Custom fields
  • Dynamic zones
  • Components
1.0.32

3 months ago

1.0.31

3 months ago

1.0.30

6 months ago

1.0.29

7 months ago

1.0.26

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.22

1 year ago

1.0.23

12 months ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago