Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
# Conflicts:
#	published-plugins.json
#	src/data_interactive_map.json
  • Loading branch information
bfinzer committed Apr 5, 2024
2 parents ef34fac + 04d82cf commit 6de6f86
Show file tree
Hide file tree
Showing 79 changed files with 11,788 additions and 154 deletions.
2 changes: 1 addition & 1 deletion Common/js/build-include.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
window.codapPluginConfig = {
buildNumber: "0063"
buildNumber: "0064"
}
6 changes: 3 additions & 3 deletions TP-Sampler/src/codap-com.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ CodapCom.prototype = {
if (oldDeviceName !== deviceName) {
codapInterface.sendRequest({
action: "update",
resource: `dataContext[${targetDataSetName}].collection[items].attribute[${oldDeviceName}]`,
resource: `dataContext[${targetDataSetName}].collection[${collectionNames.items}].attribute[${oldDeviceName}]`,
values: {
"name": deviceName
}
Expand Down Expand Up @@ -315,13 +315,13 @@ CodapCom.prototype = {
} else {
codapInterface.sendRequest({
action: "get",
resource: `dataContext[${targetDataSetName}].collection[items].attributeList`,
resource: `dataContext[${targetDataSetName}].collection[${collectionNames.items}].attributeList`,
}).then((res) => {
const {values} = res;
if (!values.length || !values.find((attr) => attr.name === deviceName)) {
codapInterface.sendRequest({
action: "create",
resource: `dataContext[${targetDataSetName}].collection[items].attribute`,
resource: `dataContext[${targetDataSetName}].collection[${collectionNames.items}].attribute`,
values: [
{
name: deviceName,
Expand Down
6 changes: 5 additions & 1 deletion bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ function buildPlugins() {
PLUGIN_BUILD_DIR=target
fi
echo Building $plugin
( cd $plugin && npm install && npm run build && cp -r $PLUGIN_BUILD_DIR "$BUILD_DIR/$PLUGIN_NAME" )
if [ "$plugin" == "../noaa-codap-plugin" ] ; then
( cd $plugin && npm install && npm run build && cp -r "dist" "$BUILD_DIR/$PLUGIN_NAME" )
else
( cd $plugin && npm install && npm run build && cp -r $PLUGIN_BUILD_DIR "$BUILD_DIR/$PLUGIN_NAME" )
fi
done
}

Expand Down
Loading

0 comments on commit 6de6f86

Please sign in to comment.