Skip to content

Commit

Permalink
pod registration script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Crum authored and Elias Crum committed May 16, 2024
1 parent 45ee6c7 commit 5b9824d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .data/test/profile/card$.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<http://localhost:3000/test/profile/card#me>

solid:oidcIssuer <http://localhost:3000/>;
a foaf:Person.
a foaf:Person;
<http://www.w3.org/ns/pim/space#storage> <../> .
13 changes: 0 additions & 13 deletions deploy.sh

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "The TRIPLE Solid pod access application",
"main": "~/src/App.vue",
"homepage": "https://ecrum19.github.io/TRIPLE_App",
"repository": "https://github.com/ecrum19/TRIPLE_App/tree/EDC_active",
"author": "Elias Crum",
"license": "MIT",
Expand Down
10 changes: 3 additions & 7 deletions podRegistration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
# get current dir and navigate to the user's WebID card
read -p "Enter the name of your pod: " pod
current_directory=$(pwd)
for _ in 1; do
echo "$current_directory"
current_directory=$(dirname "$current_directory")
done

# designates the file to add the Pod info to
target_directory="$current_directory/.data/$pod/profile"
file_name="card$.ttl"
full_path="$target_directory/$file_name"

echo $full_path
# check to make sure the directory is accurate
if [ ! -d "$target_directory" ]; then
echo "Error: $target_directory does not exist..."
Expand All @@ -22,7 +18,7 @@ fi
# replaces the "." with a ";" for ttl format continuity
to_replace="a foaf:Person."
fixed="a foaf:Person;"
sed -i "s@$to_replace@$fixednew-text@g" "$full_path"
sed -i '' -e "s|$to_replace|$fixed|g" "$full_path"

# makes it visible where your pod is using <../pim/space#storage>
#echo " <http://www.w3.org/ns/pim/space#storage> <../> ." >> $full_path
echo " <http://www.w3.org/ns/pim/space#storage> <../>." >> $full_path
3 changes: 0 additions & 3 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
publicPath: process.env.NODE_ENV === 'production'
? '/app/'
: '/'
});


0 comments on commit 5b9824d

Please sign in to comment.