Giter Club home page Giter Club logo

reaction-devtools's Introduction

⚠️ THIS PLUGIN IS DEPRECATED — Use with Reaction Commerce 2.0 to 2.9.1 only

This is an old devtools plugin made for Reaction Commerce 2.x. If you're looking for a similar devtools plugin for Reaction Commerce 3.0 onwards, check out @outgrowio/reaction-dummy-data.

reaction-devtools

This is a plugin that creates a new dashboard panel that allows you to load datasets for testing

You have a choice of three different datasets and optionally attach random images:

  1. Small - 7 products (+ variants and options), 100 orders
  2. Medium - 1000 products (+ variants and options), 10,000 orders
  3. Large - 50,000 products (+ variants and options), 50,000 orders

Note Loading the "Large" dataset on a local dev box is discouraged

To install

  1. Clone this repo into /imports/plugins/custom/
  2. meteor npm install jpeg-js (for random image generation)
  3. reaction reset

Usage

  1. Browse to http://localhost:3000
  2. Login
  3. Click on DevTools (note this is only visible when running in development mode)
  4. DevTools
  5. Click the buttons to trigger an action

reaction-devtools's People

Contributors

akarshit avatar aldeed avatar brent-hoover avatar dependabot[bot] avatar loan-laux avatar mikemurray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reaction-devtools's Issues

Unsupported image format

I am getting this error when loading puppy images:

reaction_1   | {"line":"452","file":"webapp_server.js","message":"Error serving static file Error: ENOENT: no such file or directory, stat '/opt/reaction/src/.meteor/local/build/programs/web.browser/app/resources/placeholder.gif'","time":{"$date":1524162124509},"level":"error"}
reaction_1   | adding image to  L
reaction_1   | adding image to  XL
reaction_1   | adding image to  Reaction Mens Shirt
reaction_1   | adding image to  Blue
reaction_1   | adding image to  SM
reaction_1   | adding image to  M
reaction_1   | adding image to  L
reaction_1   | adding image to  XL
reaction_1   | adding image to  Reaction Sticker
reaction_1   | adding image to  One Size
reaction_1   | adding image to  Reaction Hoodie
reaction_1   | adding image to  Black
reaction_1   | adding image to  S
reaction_1   | adding image to  M
reaction_1   | adding image to  L
reaction_1   | adding image to  XL
reaction_1   | adding image to  Reaction Camp Shirt
reaction_1   | adding image to  Black
reaction_1   | adding image to  S
reaction_1   | adding image to  M
reaction_1   | adding image to  L
reaction_1   | events.js:183
reaction_1   |       throw er; // Unhandled 'error' event
reaction_1   |       ^
reaction_1   |
reaction_1   | Error: Input buffer contains unsupported image format
reaction_1   |
reaction_1   | (sharp:334): GLib-CRITICAL **: 18:22:22.219: g_hash_table_lookup: assertion 'hash_table != NULL' failed
reaction_1   | => Exited with code: 1

Error loading images

When I click the "Load Images" button in the dev tools I get the below error message in my logs. I tried resetting the data and loading again and got same error. The other buttons work fine.

Exception while invoking method 'devtools/loaddata/images' Error: Match error: Expected string, got undefined
] at check (packages/check/match.js:35:15)
] at MethodInvocation.methods.loadImages (imports/plugins/custom/reaction-devtools/server/methods.js:538:3)
] at packages/check/match.js:108:16
] at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:15)
] at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:107:41)
] at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1765:18)
] at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
] at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:15)
] at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
] at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:15)
] at Promise (packages/ddp-server/livedata_server.js:715:46)
] at new Promise ()
] at Session.method (packages/ddp-server/livedata_server.js:689:23)
] at packages/ddp-server/livedata_server.js:559:43
] Sanitized and reported to the client as: Match failed [400]
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.