Skip to content

Commit

Permalink
Merge pull request #14 from Carifio24/naming-cleanup
Browse files Browse the repository at this point in the history
Naming cleanup
  • Loading branch information
Carifio24 authored Dec 11, 2024
2 parents fbf682b + d07942c commit 735927f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ title=$(space_split_pascal ${pascal_case_name})
cd src
sed -i.bak "s/MainComponent/${pascal_case_name}/g" main.ts
sed -i.bak "s/MainComponent/${pascal_case_name}/g" MainComponent.vue
sed -i.bak "s/wwt-minids-template/$name/g" main.ts
sed -i.bak "s/vue-ds-template/$name/g" main.ts
sed -i.bak "s/vue-ds-template/$name/g" MainComponent.vue
rm -f main.ts.bak
mv MainComponent.vue ${pascal_case_name}.vue

cd ../public
sed -i.bak "s/minids-template/$name/g" index.html
sed -i.bak "s/CosmicDS data story template/$pascal_case_name/g" index.html
sed -i.bak "s/CosmicDS Vue template/$title/g" index.html
sed -i.bak "s/CosmicDS Vue Template/$title/g" index.html
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const { updatePackageData } = require("./utils");

const name = argv[2];
if (!name) {
console.error("Missing name of new mini!");
console.error("Missing name of new story!");
exit(1);
}

updatePackageData((data) => {
data.name = name;
return data;
});
});
2 changes: 1 addition & 1 deletion src/MainComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ const touchscreen = supportsTouchscreen();
const { smAndDown } = useDisplay();
const props = withDefaults(defineProps<MainComponentProps>(), {
wwtNamespace: "MainComponent",
wwtNamespace: "vue-ds-template",
initialCameraParams: () => {
return {
raRad: 0,
Expand Down

0 comments on commit 735927f

Please sign in to comment.