Skip to content
Snippets Groups Projects
Commit 51c0178c authored by Eric Rosenbaum's avatar Eric Rosenbaum
Browse files

Load extension library content from a js file

With locally loaded png image
parent 02d35e12
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import VM from 'scratch-vm';
import extensionLibraryContent from '../lib/libraries/extensions.json';
import extensionLibraryContent from '../lib/libraries/extensions/index';
import LibraryComponent from '../components/library/library.jsx';
import extensionIcon from '../components/sprite-selector/icon--sprite.svg';
......
[
{
"name": "Pen",
"extensionURL": "pen",
"md5": "1a2ec605e73000897797f0c851134f5b.png",
"description": "Draw with your sprites.",
"featured": true
}
]
import penImage from './pen.png';
export default [
{
name: 'Pen',
extensionURL: 'pen',
iconURL: penImage,
description: 'Draw with your sprites.',
featured: true
}
];
src/lib/libraries/extensions/pen.png

8.08 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment