Skip to content

Commit 1d1cf96

Browse files
committed
standardized src folder
1 parent 3cbc49d commit 1d1cf96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+13
-13
lines changed

README.md

+4-4

docs/labeling-interface.png

-1.9 MB

plugins/different-images-per-label/data.json

-5
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"data": {
3+
"image": "/static/plugins/src/different-images-per-label/img/demo-sample.png"
4+
}
5+
}

plugins/different-images-per-label/plugin.js renamed to src/different-images-per-label/plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
const IMG_ID = "img_uniq";
77
// TODO: use your own keys and values here for label lookup and data objects to display
8-
const imagesRoot = "/static/plugins/different-images-per-label/img";
8+
const imagesRoot = "/static/plugins/src/different-images-per-label/img";
99
const images = {
1010
Addressee: `${imagesRoot}/demo-addressee.jpg`,
1111
"Account number": `${imagesRoot}/demo-routing-number.png`,

plugins/different-images-per-label/view.xml renamed to src/different-images-per-label/view.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!--
2323
{
2424
"data": {
25-
"image": "/static/plugins/different-images-per-label/img/demo-sample.png"
25+
"image": "/static/plugins/src/different-images-per-label/img/demo-sample.png"
2626
}
2727
}
2828
-->
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

validate-structure.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const MANIFEST_FILE = join(ROOT_DIR, "manifest.json");
88
const PLUGIN_FILENAME = "plugin.js";
99
const VIEW_FILENAME = "view.xml";
1010
const DATA_FILENAME = "data.json";
11-
const PLUGINS_DIR = join(ROOT_DIR, "plugins");
11+
const PLUGINS_DIR = join(ROOT_DIR, "src");
1212

1313
const validateStructure = () => {
1414
if (!existsSync(MANIFEST_FILE)) {
@@ -24,7 +24,7 @@ const validateStructure = () => {
2424
}
2525

2626
if (!existsSync(PLUGINS_DIR)) {
27-
console.error("Missing plugins directory");
27+
console.error("Missing src directory");
2828
process.exit(1);
2929
}
3030

0 commit comments

Comments
 (0)