Skip to content

Commit d33f543

Browse files
committed
small changes to improve refresh handling and other small issues
1 parent 6717783 commit d33f543

6 files changed

Lines changed: 35 additions & 71 deletions

File tree

src/components/EditPrivacy.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,7 @@ export default {
10811081
/* creates files and directories if not already present */
10821082
async createStuff() {
10831083
await createInboxWithACL(this.selectedPodUrl, this.webId);
1084+
await this.getGeneralData();
10841085
this.$forceUpdate(); // Forces a re-render of the component
10851086
},
10861087
/* Takes in the emitted value from ContainerNav.vue */

src/components/Guides/LandingGuide.vue

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<i class="material-icons arrow-bullet">chevron_right</i> Manage files
2020
in your pod
2121
</h3>
22-
<p>Upload, delete, and move resources in your Solid Pod.</p>
22+
<p>Upload and delete resources in your Solid Pod.</p>
2323
<h3 class="req">
2424
<i class="material-icons arrow-bullet">chevron_right</i> Query your
2525
pod (and SPARQL endpoints you specify)
@@ -37,11 +37,11 @@
3737
notify others of the changes.
3838
</p>
3939
<p class="middle-line">
40-
Save query and results to a query cache in your pod
40+
Save SPARQL queries and results to a query cache in your pod
4141
</p>
4242
<p class="last-line">
4343
Share queries and results from your query cache and improve query
44-
performance with the cache
44+
performance by using the cache
4545
</p>
4646
</div>
4747
</div>
@@ -109,36 +109,6 @@
109109
running 🚀
110110
</p>
111111

112-
<div class="triple-item">
113-
<button class="dropdown-toggle" @click="toggleObjectives">
114-
<h4>🎯 Objectives of This Guide</h4>
115-
<i class="material-icons dropdown-arrow">
116-
{{
117-
objectivesOpen ? "keyboard_arrow_down" : "chevron_right"
118-
}}</i
119-
>
120-
</button>
121-
<div v-if="objectivesOpen">
122-
<ol>
123-
<li>
124-
Setting up a Solid Pod (that is accessible via the internet)
125-
</li>
126-
<li>
127-
Logging into your Pod at any time (after setting it up)
128-
</li>
129-
<li>
130-
Understanding the features and functionalities of the Solid
131-
Cockpit app.
132-
</li>
133-
<li>
134-
Overview of future capabilities, such as managing pod
135-
contents, adjusting data privacy, and querying data using
136-
SPARQL.
137-
</li>
138-
</ol>
139-
</div>
140-
</div>
141-
142112
<div class="triple-item">
143113
<button class="dropdown-toggle" @click="toggleSetupPod">
144114
<h4>🌐 Setting Up a Solid Pod (Online)</h4>
@@ -167,10 +137,7 @@
167137
>https://triple.ilabt.imec.be/</a
168138
>
169139
</p>
170-
<p>Use the following credentials to enter the site:</p>
171-
<ul>
172-
<li><strong>Password</strong>: <code>triple</code></li>
173-
</ul>
140+
<p>Use the Password: <code>triple</code></p>
174141
</li>
175142
<li>
176143
<strong>🔐 Sign Up to make a Pod</strong>
@@ -221,10 +188,7 @@
221188
>https://triple.ilabt.imec.be/</a
222189
>
223190
</p>
224-
<p>Use the following credentials to enter the site:</p>
225-
<ul>
226-
<li><strong>Password</strong>: <code>triple</code></li>
227-
</ul>
191+
<p>Use the Password: <code>triple</code></p>
228192
</li>
229193
<li>
230194
<strong>Login using your credentials</strong>
@@ -273,29 +237,19 @@
273237
managing and interacting with your Solid Pod.
274238
</p>
275239

276-
<button
277-
class="dropdown-toggle"
278-
@click="toggleAvailableFeatures"
240+
<h3>✨ Available Features</h3>
241+
<i class="material-icons dropdown-arrow">
242+
{{
243+
availableFeaturesOpen
244+
? "keyboard_arrow_down"
245+
: "chevron_right"
246+
}}</i
279247
>
280-
<h5>✨ Available Features</h5>
281-
<i class="material-icons dropdown-arrow">
282-
{{
283-
availableFeaturesOpen
284-
? "keyboard_arrow_down"
285-
: "chevron_right"
286-
}}</i
287-
>
288-
</button>
289-
<div v-if="availableFeaturesOpen">
248+
<div>
290249
<ol>
291250
<li>
292251
<strong>📝 Data Upload</strong>
293252
<p>Upload data to your Pod.</p>
294-
<p>
295-
When uploading RDF data, file validity can be assessed
296-
before uploading.
297-
</p>
298-
<p>Specify and modify the metadata of uploaded files.</p>
299253
</li>
300254
<li>
301255
<strong>🗂️ Data Browser</strong> (under construction)

src/components/PodRegistration.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ export default {
160160
/* For TRIPLE consortium */
161161
if (this.customPodUrl === "") {
162162
await webIdDataset(currentWebId(), this.customPodUrl);
163-
this.$forceUpdate(); // Forces a re-render of the component
163+
await this.findPodList();
164164
} else {
165165
/* For provided URL */
166166
if (!checkUrl(this.customPodUrl, this.currentPod)) {
167167
await webIdDataset(currentWebId(), this.customPodUrl);
168-
this.$forceUpdate(); // Forces a re-render of the component
168+
await this.findPodList();
169169
} else {
170170
/* For invalid URL
171171
TODO: make this a little prettier */

src/components/Styling/SharedWith.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<span class="shared-title">Shared With Others</span>
8686

8787
<div class="no-items" v-if="sharedItems.length === 0">
88-
<p>You havbe not shared any resources with others.</p>
88+
<p>You have not shared any resources with others.</p>
8989
</div>
9090
<div v-else>
9191
<!-- Iterates over list of resources in sharedWithOthers.tll -->

src/components/Styling/TheHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default {
144144
const authStore = useAuthStore();
145145
authStore.clearAuth();
146146
this.notloggedOut = await logOut();
147-
window.location.reload();
147+
window.location.href = '/';
148148
},
149149
homepageRedir(): void {
150150
redirectToHomepage();

src/components/privacyEdit.ts

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,21 +290,21 @@ export async function createInboxWithACL(
290290
await saveSolidDatasetAt(userWebId, profileDataset, { fetch });
291291
console.log(`Added ldp:inbox (${inboxUrl}) to ${userWebId}`);
292292

293-
// Grant append access to anyone (foaf:Agent)
294-
const solidDataWAcl = await getSolidDatasetWithAcl(inboxUrl, {
295-
fetch: fetch,
296-
});
297293
// // Apply the public append ACL rule
298294
const access = {
299295
read: false,
300296
append: true,
301297
write: false,
302298
control: false,
303299
};
304-
const updatedAclDataset = setPublicResourceAccess(aclDataset, access);
305-
const aupdatedAcl = setPublicDefaultAccess(updatedAclDataset, access);
306-
// // Save the updated ACL dataset
307-
await saveAclFor(solidDataWAcl, aupdatedAcl);
300+
// Grant append access to anyone (foaf:Agent)
301+
// const solidDataWAcl = await getSolidDatasetWithAcl(inboxUrl, {
302+
// fetch: fetch,
303+
// });
304+
// const updatedAclDataset = setPublicResourceAccess(aclDataset, access);
305+
// const aupdatedAcl = setPublicDefaultAccess(updatedAclDataset, access);
306+
// // // Save the updated ACL dataset
307+
// await saveAclFor(solidDataWAcl, aupdatedAcl);
308308

309309
// Initialize the sharedWithMe.ttl file
310310
const mefileName = "sharedWithMe.ttl";
@@ -316,6 +316,15 @@ export async function createInboxWithACL(
316316
await saveSolidDatasetAt(inboxUrl + mefileName, newDataset, { fetch });
317317
console.log(`CREATED sharedWithMe.ttl`);
318318

319+
// Grant append access (for sharedWithMe.ttl) to anyone (foaf:Agent)
320+
const swmeAcl = await getSolidDatasetWithAcl(inboxUrl + mefileName, {
321+
fetch: fetch,
322+
});
323+
const swmeaclDataset = await generateAcl(inboxUrl + mefileName, userWebId);
324+
const updatedswmeAcl = setPublicResourceAccess(swmeaclDataset, access);
325+
await saveAclFor(swmeAcl, updatedswmeAcl);
326+
console.log(`ADDED .acl for sharedWithMe.ttl`);
327+
319328
// Initialize the sharedWithOthers.ttl file
320329
const othersfileName = "sharedWithOthers.ttl";
321330
const otherdataset = createSolidDataset();

0 commit comments

Comments
 (0)