From 5d8fc303b6e3a5659483a9f3238f839c4940cf59 Mon Sep 17 00:00:00 2001 From: ecrum19 Date: Thu, 6 Jun 2024 12:19:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20pages=20from=20@=20ecrum19/TRI?= =?UTF-8?q?PLE=5FApp@9c5a335eb42583aed5f1e44f56b5b3e8b4bed462=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/app.c89bc904.css | 1 - css/app.e2cef03c.css | 1 + dataUpload/index.html | 2 +- home/index.html | 2 +- index.html | 2 +- js/app.16f8e12c.js | 2 ++ js/app.16f8e12c.js.map | 1 + js/app.3ee924fa.js | 2 -- js/app.3ee924fa.js.map | 1 - login/index.html | 2 +- podBrowser/index.html | 2 +- privacy/index.html | 2 +- 12 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 css/app.c89bc904.css create mode 100644 css/app.e2cef03c.css create mode 100644 js/app.16f8e12c.js create mode 100644 js/app.16f8e12c.js.map delete mode 100644 js/app.3ee924fa.js delete mode 100644 js/app.3ee924fa.js.map diff --git a/css/app.c89bc904.css b/css/app.c89bc904.css deleted file mode 100644 index 2bad58d..0000000 --- a/css/app.c89bc904.css +++ /dev/null @@ -1 +0,0 @@ -a.router-link-active[data-v-119e7496],a[data-v-119e7496]:not(.router-link-active){text-decoration:none}h1[data-v-db0f22aa]{color:#000;margin:0;font-family:Courier New,monospace;font-size:3rem;text-align:center}.account[data-v-db0f22aa]{position:absolute;right:0;top:0;padding:15px}body{background-color:#b0c4de;font-family:Arial,sans-serif;margin:0}#app{color:#333}.entry[data-v-73d556d7]{font-family:Courier New,monospace;text-align:center}.guide[data-v-73d556d7]{text-align:Left}.req[data-v-73d556d7]{margin-top:10px}.detail[data-v-73d556d7]{font-size:.9em}p[data-v-73d556d7]{margin-bottom:15px}body[data-v-73d556d7]{line-height:1.6;margin:15px;background-color:#f4f4f4}code[data-v-73d556d7]{background:#f4f4f4;border:1px solid #ddd;padding:10px;border-radius:5px;overflow-x:auto}pre[data-v-73d556d7]{padding-left:10px;padding-bottom:10px;margin-bottom:15px}ol[data-v-73d556d7],ul[data-v-73d556d7]{margin-left:20px;margin-bottom:15px;margin-top:5px}ol li[data-v-73d556d7]{margin-bottom:10px;margin-left:20px;list-style-type:upper-roman;align-items:Left}a[data-v-73d556d7]{color:#06c;text-decoration:none}a[data-v-73d556d7]:hover{text-decoration:underline}.container[data-v-73d556d7]{font-family:Courier New,monospace;max-width:900px;margin:auto;padding:20px;background:#d0e0fc;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,.1)}#errorIndicator[data-v-e84e271a]{border:2px solid #d72920;border-radius:5px;background-color:#fcc}#errorIndicator[data-v-e84e271a],#loggedIn[data-v-e84e271a]{padding:2px 2px;margin-bottom:10px;margin-right:2rem;font-size:14px;font-style:italic}#loggedIn[data-v-e84e271a]{border:2px solid #307104;border-radius:5px;background-color:#9fe8b7}button[data-v-e84e271a]:hover{background-color:#bda6fd}button[data-v-e84e271a]:active{background-color:#9b77ff}body[data-v-644d5724]{line-height:1.6;margin:15px}.container[data-v-644d5724],body[data-v-644d5724]{font-family:Courier New,monospace;max-width:900px;margin:auto;padding:20px;background:#d0e0fc;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,.1)}.v-btn[data-v-644d5724]{margin-left:15px;margin-bottom:15px}ol[data-v-644d5724],ul[data-v-644d5724]{margin-left:20px;margin-bottom:15px;margin-top:5px}ol li[data-v-644d5724]{margin-bottom:10px;margin-left:20px;list-style-type:upper-roman;align-items:Left}.guide[data-v-644d5724]{text-align:Left}.req[data-v-644d5724]{margin-top:10px} \ No newline at end of file diff --git a/css/app.e2cef03c.css b/css/app.e2cef03c.css new file mode 100644 index 0000000..8359c9e --- /dev/null +++ b/css/app.e2cef03c.css @@ -0,0 +1 @@ +a.router-link-active[data-v-694cb628],a[data-v-694cb628]:not(.router-link-active){text-decoration:none}h1[data-v-db0f22aa]{color:#000;margin:0;font-family:Courier New,monospace;font-size:3rem;text-align:center}.account[data-v-db0f22aa]{position:absolute;right:0;top:0;padding:15px}body{background-color:#b0c4de;font-family:Arial,sans-serif;margin:0}#app{color:#333}.entry[data-v-edafff74]{font-family:Courier New,monospace;text-align:center}.guide[data-v-edafff74]{text-align:Left}.req[data-v-edafff74]{margin-top:10px}.detail[data-v-edafff74]{font-size:.9em}p[data-v-edafff74]{margin-bottom:15px}body[data-v-edafff74]{line-height:1.6;margin:15px;background-color:#f4f4f4}code[data-v-edafff74]{background:#f4f4f4;border:1px solid #ddd;padding:10px;border-radius:5px;overflow-x:auto}pre[data-v-edafff74]{padding-left:10px;padding-bottom:10px;margin-bottom:15px}ol[data-v-edafff74],ul[data-v-edafff74]{margin-left:20px;margin-bottom:15px;margin-top:5px}ol li[data-v-edafff74]{margin-bottom:10px;margin-left:20px;list-style-type:upper-roman;align-items:Left}a[data-v-edafff74]{color:#06c;text-decoration:none}a[data-v-edafff74]:hover{text-decoration:underline}.container[data-v-edafff74]{font-family:Courier New,monospace;max-width:900px;margin:auto;padding:20px;background:#d0e0fc;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,.1)}#errorIndicator[data-v-e84e271a]{border:2px solid #d72920;border-radius:5px;background-color:#fcc}#errorIndicator[data-v-e84e271a],#loggedIn[data-v-e84e271a]{padding:2px 2px;margin-bottom:10px;margin-right:2rem;font-size:14px;font-style:italic}#loggedIn[data-v-e84e271a]{border:2px solid #307104;border-radius:5px;background-color:#9fe8b7}button[data-v-e84e271a]:hover{background-color:#bda6fd}button[data-v-e84e271a]:active{background-color:#9b77ff}body[data-v-57e562db]{line-height:1.6;margin:15px}.container[data-v-57e562db],body[data-v-57e562db]{font-family:Courier New,monospace;max-width:900px;margin:auto;padding:20px;background:#d0e0fc;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,.1)}.v-btn[data-v-57e562db]{margin-left:15px;margin-bottom:15px}ol[data-v-57e562db],ul[data-v-57e562db]{margin-left:20px;margin-bottom:15px;margin-top:5px}ol li[data-v-57e562db]{margin-bottom:10px;margin-left:20px;list-style-type:upper-roman;align-items:Left}.guide[data-v-57e562db]{text-align:Left}.req[data-v-57e562db]{margin-top:10px} \ No newline at end of file diff --git a/dataUpload/index.html b/dataUpload/index.html index fdb8805..18c30ac 100644 --- a/dataUpload/index.html +++ b/dataUpload/index.html @@ -1 +1 @@ -triple_app
\ No newline at end of file +triple_app
\ No newline at end of file diff --git a/home/index.html b/home/index.html index fdb8805..18c30ac 100644 --- a/home/index.html +++ b/home/index.html @@ -1 +1 @@ -triple_app
\ No newline at end of file +triple_app
\ No newline at end of file diff --git a/index.html b/index.html index fdb8805..18c30ac 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -triple_app
\ No newline at end of file +triple_app
\ No newline at end of file diff --git a/js/app.16f8e12c.js b/js/app.16f8e12c.js new file mode 100644 index 0000000..353c0c9 --- /dev/null +++ b/js/app.16f8e12c.js @@ -0,0 +1,2 @@ +(function(){"use strict";var e={227:function(e,t,n){Object.defineProperty(t,"B",{value:!0});var o=n(97678),r=n(39531);t.A={name:"App",components:{TheHeader:r.default,FunctionSelector:o.default}}},5246:function(e,t,n){n(44114);var o=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{u(o.next(e))}catch(t){a(t)}}function l(e){try{u(o["throw"](e))}catch(t){a(t)}}function u(e){e.done?n(e.value):r(e.value).then(i,l)}u((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(r=2&a[0]?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1] ?o .\n }",{sources:[e],"@comunica/actor-http-inrupt-solid-client-authn:session":t})];case 1:return n=o.sent(),[4,n.toArray()];case 2:return[2,o.sent()]}}))}))}t.executeQuery=l},49220:function(e,t,n){var o=n(71175),r=n(7233),a=n(77636);n(35524);var i=n(43859),l=n(28554),u=n(53739),c=n(8221),f=(0,i.createVuetify)({components:l,directives:u,icons:{defaultSet:"mdi",aliases:c.aliases,sets:{mdi:c.mdi}}}),d=(0,o.createApp)(r.default).use(f);d.use(a.default),d.mount("#app")},77636:function(e,t,n){n(44114);var o=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{u(o.next(e))}catch(t){a(t)}}function l(e){try{u(o["throw"](e))}catch(t){a(t)}}function u(e){e.done?n(e.value):r(e.value).then(i,l)}u((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(r=2&a[0]?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1][(0,o.bF)(u,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)(l,{title:"Query Data",variant:"tonal",justify:"center",class:"mx-auto",color:"indigo-darken-3"})])),_:1})])),_:1})}var a={data:()=>({user:{webId:"...",fullName:"John Doe",email:"john.doe@doe.com"}})},i=n(71241);const l=(0,i.A)(a,[["render",r]]);var u=l},74241:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var o=n(56768);function r(e,t,n,r,a,i){const l=(0,o.g2)("v-card"),u=(0,o.g2)("v-col"),c=(0,o.g2)("v-container");return(0,o.uX)(),(0,o.Wv)(c,null,{default:(0,o.k6)((()=>[(0,o.bF)(u,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)(l,{title:"Change Privacy of Data",variant:"tonal",justify:"center",class:"mx-auto",color:"indigo-darken-3"})])),_:1})])),_:1})}var a={data:()=>({user:{webId:"...",fullName:"John Doe",email:"john.doe@doe.com"}})},i=n(71241);const l=(0,i.A)(a,[["render",r]]);var u=l},71782:function(e,t,n){n.r(t),n.d(t,{default:function(){return s}});var o=n(56768);const r=e=>((0,o.Qi)("data-v-edafff74"),e=e(),(0,o.jt)(),e),a=r((()=>(0,o.Lk)("div",{class:"entry"},[(0,o.Lk)("h1",null,"Welcome to the TRIPLE App!"),(0,o.Lk)("h2",null,"Below is a guide to get you started."),(0,o.Lk)("h3",null,"(Similar instructions found in the README)")],-1))),i=(0,o.Fv)('

Getting Started:


Requirements:


1. Repo Cloning and Starting your local Solid pod

  1. Clone the project git repo (it has some useful scripts for later).
    For help see git clone guide.
$ git clone https://github.com/ecrum19/TRIPLE_App.git
  1. To start pod set-up, within the TRIPLE_App/ directory execute the following command:
$ bash makePod.sh

2. Setting up the Solid pod

  1. Using a web browser navigate to http://localhost:3000/
  2. Click the link: "Sign up for an account"
  3. Fill out the fields and click "Register"
  4. On the "Your Account" page, click on "Create pod"
  5. Enter a name for the pod and click "Create pod"
  6. Return to the home page by clicking "Back"

Voila, you now have a pod hosted by your local machine!
(Please note that if the terminal window you executed the bash script above is terminated, the Solid pod will no longer be accessible until it is re-launched. For more info see Community Solid Server Documentation.)


3. Register your Pod on your new WebID

  1. Within the TRIPLE_App/ directory, execute the command below:
  2. $ bash podRegistration.sh
  3. At the prompt, enter the name of your pod from above (E.g. test)

4. Solid Pod Login within the TRIPLE App

  1. Click the "Data Upload" tab in the nav bar within the TRIPLE App
  2. If you followed the above sections to launch a local Solid Pod, simply click the "Login" button that appears (because your pod provider is localhost:3000)
  3. After the redirect, click the "Authorize" button
  4. Once redirected back to the main page of the TRIPLE App, use the nav bar to select the "Data Upload" tab

5. Data Upload Functionality

  1. Click the "Data Upload" tab of the nav bar above
',1);function l(e,t,n,r,l,u){const c=(0,o.g2)("v-card"),f=(0,o.g2)("v-col"),d=(0,o.g2)("v-container");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.bF)(d,null,{default:(0,o.k6)((()=>[(0,o.bF)(f,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)(c,{variant:"tonal",justify:"center",class:"mx-auto",color:"indigo-darken-3"},{default:(0,o.k6)((()=>[a])),_:1})])),_:1})])),_:1}),i],64)}var u=n(31359),c={data:()=>({login_status:!0}),methods:{async credentials(){(0,u.handleRedirectAfterPageLoad)()},loggedIn(){return(0,u.isLoggedin)()},mounted(){this.credentials(),setTimeout((()=>{this.login_status=this.loggedIn(),console.log(this.login_status)}),200)}}},f=n(71241);const d=(0,f.A)(c,[["render",l],["__scopeId","data-v-edafff74"]]);var s=d},32394:function(e,t,n){n.r(t);var o=n(11080),r=n(87417),a={};for(var i in r)"default"!==i&&(a[i]=function(e){return r[e]}.bind(0,i));n.d(t,a);var l=n(71241);const u=(0,l.A)(r["default"],[["render",o.X]]);t["default"]=u},63241:function(e,t,n){n.r(t);var o=n(9304),r=n(39746),a={};for(var i in r)"default"!==i&&(a[i]=function(e){return r[e]}.bind(0,i));n.d(t,a);n(52794);var l=n(71241);const u=(0,l.A)(r["default"],[["render",o.X],["__scopeId","data-v-e84e271a"]]);t["default"]=u},79485:function(e,t,n){n.r(t);var o=n(18595),r=n(84934),a={};for(var i in r)"default"!==i&&(a[i]=function(e){return r[e]}.bind(0,i));n.d(t,a);n(57817);var l=n(71241);const u=(0,l.A)(r["default"],[["render",o.X],["__scopeId","data-v-57e562db"]]);t["default"]=u},97678:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var o=n(56768),r=n(24232);function a(e,t,n,a,i,l){const u=(0,o.g2)("v-tab"),c=(0,o.g2)("v-tabs"),f=(0,o.g2)("v-card");return(0,o.uX)(),(0,o.Wv)(f,null,{default:(0,o.k6)((()=>[(0,o.Lk)("nav",null,[(0,o.bF)(c,{modelValue:e.tab,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tab=t),"align-tabs":"center",color:"deep-purple-accent-4","bg-color":"#9fbbdf","fixed-tabs":""},{default:(0,o.k6)((()=>[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.items,(e=>((0,o.uX)(),(0,o.Wv)(u,{border:"sm",key:e,to:{name:e}},{default:(0,o.k6)((()=>[(0,o.eW)((0,r.v_)(e),1)])),_:2},1032,["to"])))),128))])),_:1},8,["modelValue"])])])),_:1})}var i={data:()=>({tab:null,items:["Home","Data Upload","Pod Browser","Query","Data Privacy"]})},l=n(71241);const u=(0,l.A)(i,[["render",a],["__scopeId","data-v-694cb628"]]);var c=u},9385:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var o=n(56768);function r(e,t){const n=(0,o.g2)("router-link");return(0,o.uX)(),(0,o.CE)("h2",null,[(0,o.eW)(" Page not found... Please return "),(0,o.bF)(n,{to:"/"},{default:(0,o.k6)((()=>[(0,o.eW)("Home")])),_:1})])}var a=n(71241);const i={},l=(0,a.A)(i,[["render",r]]);var u=l},39531:function(e,t,n){n.r(t),n.d(t,{__esModule:function(){return r.B},default:function(){return l}});var o=n(23207),r=n(16648),a=n(71241);const i=(0,a.A)(r.A,[["render",o.X],["__scopeId","data-v-db0f22aa"]]);var l=i},52794:function(){},57817:function(){},87417:function(e,t,n){n.r(t),n.d(t,{default:function(){return r.a}});var o=n(5246),r=n.n(o),a={};for(var i in o)"default"!==i&&(a[i]=function(e){return o[e]}.bind(0,i));n.d(t,a)},39746:function(e,t,n){n.r(t),n.d(t,{default:function(){return r.a}});var o=n(35009),r=n.n(o),a={};for(var i in o)"default"!==i&&(a[i]=function(e){return o[e]}.bind(0,i));n.d(t,a)},84934:function(e,t,n){n.r(t),n.d(t,{default:function(){return r.a}});var o=n(2099),r=n.n(o),a={};for(var i in o)"default"!==i&&(a[i]=function(e){return o[e]}.bind(0,i));n.d(t,a)},11080:function(e,t,n){n.d(t,{X:function(){return o.X}});var o=n(89235)},9304:function(e,t,n){n.d(t,{X:function(){return o.X}});var o=n(18423)},18595:function(e,t,n){n.d(t,{X:function(){return o.X}});var o=n(83586)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.m=e,function(){var e=[];n.O=function(t,o,r,a){if(!o){var i=1/0;for(f=0;f=a)&&Object.keys(n.O).every((function(e){return n.O[e](o[u])}))?o.splice(u--,1):(l=!1,a0&&e[f-1][2]>a;f--)e[f]=e[f-1];e[f]=[o,r,a]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={524:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,a,i=o[0],l=o[1],u=o[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(u)var f=u(n)}for(t&&t(o);c <../> . on User card$.ttl\n * III. Web hosting of the application -- github pages\n *\n * Data Upload:\n * 1. a way to designate where a file is uploaded to (i.e. directory structure)\n * 2. a drag and drop interface\n * 3. a loading icon (to tell when file upload is done)\n *\n * Data Browser:\n * 4. a Pod data browser -- use new Comunica engine\n * 5. designate a way to display the directory structure (along with the files)\n *\n * Data Query:\n * 6. Area to write the query\n * 7. Area to designate sources\n * 8. submit query button\n * 9. streamed output display\n *\n * Data Privacy:\n * 10. A view of the current privacy\n * 11. A way to add/change privacy\n */\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar login_1 = require(\"./login\");\nvar fileUpload_1 = require(\"./fileUpload\");\nvar queryPod_1 = require(\"./queryPod\");\nexports.default = {\n data: function () {\n return {\n loggedIn: false,\n webId: \"\",\n podURLs: [],\n pod: \"\",\n queryItems: [],\n };\n },\n methods: {\n /*\n Calls getPodURLs() from fileUpload.ts to obtain a list of pods from the logged-in user's webID.\n Obtains 'pod' variable (URL path to user's Pod).\n */\n getPodURL: function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n this.webId = (0, login_1.currentWebId)(); // fetches user webID from login.ts\n _a = this;\n return [4 /*yield*/, (0, fileUpload_1.getPodURLs)(this.webId)];\n case 1:\n _a.podURLs = _b.sent(); // calls async function to get Pod URLs\n this.pod = this.podURLs[0]; // can fix this to handle multiple pods (<< FUTURE >>)\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Calls executeQuery from queryPod.ts to obtain all data from logged-in user's Pod.\n Obtains items variable (IRIs of all Pod data).\n */\n // COOL IDEA --> << Interactable Knowledge graph (with tabular display toggle) >>\n podContentsQuery: function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, (0, queryPod_1.executeQuery)(this.pod, login_1.session)];\n case 1:\n _a.queryItems = _b.sent();\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Filters the binding stream to show only useful stuff...\n */\n filteredItems: function () {\n // not sure\n },\n /*\n For the loading of the Pod data display\n */\n },\n mounted: function () {\n var _this = this;\n // Delays the execution of these functions on page reload (to avoid async-related errors)\n setTimeout(function () {\n _this.getPodURL();\n }, 200);\n setTimeout(function () {\n _this.podContentsQuery();\n }, 400);\n },\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar login_1 = require(\"./login\");\nexports.default = {\n name: \"LoginComponent\",\n data: function () {\n return {\n userUrl: \"http://localhost:3000/\",\n loggedIn: false,\n isError: false,\n error: '',\n newPodDirections: false,\n webId: '',\n isActive: false,\n };\n },\n methods: {\n /*\n For the login to a Solid pod, calls startLogin from login.ts\n */\n handleLogin: function () {\n return __awaiter(this, void 0, void 0, function () {\n var stat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, (0, login_1.startLogin)(this.userUrl)];\n case 1:\n stat = _a.sent();\n if (stat === \"error\") {\n this.error = \"Cannot login properly...\";\n }\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Checks if user's current session is logged-in and displays the active webID.\n Obtains the loggedIn boolean and webId string.\n */\n loginCheck: function () {\n this.loggedIn = (0, login_1.isLoggedin)();\n this.webId = (0, login_1.currentWebId)();\n },\n /*\n Redirects user back to homepage (for \"create a pod\" directions)\n uses href to handle the redirect\n */\n homepageRedir: function () {\n (0, login_1.redirectToHomepage)();\n }\n },\n mounted: function () {\n var _this = this;\n // Delays the execution loginCheck() on page reload (to avoid async-related errors)\n setTimeout(function () {\n _this.loginCheck();\n }, 200); // Delay of 2 seconds\n },\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fileUpload_1 = require(\"./fileUpload\");\nvar login_1 = require(\"./login\");\nexports.default = {\n data: function () {\n return {\n webId: \"\",\n podURLs: [],\n pod: \"\",\n fileUploaded: false,\n initialLoad: true,\n files: FileList,\n };\n },\n methods: {\n /*\n Calls getPodURLs() from fileUpload.ts to obtain a list of pods from the logged-in user's webID.\n Obtains 'pod' variable (URL path to user's Pod).\n */\n getPodURL: function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n this.webId = (0, login_1.currentWebId)(); // fetches user webID from login.ts\n _a = this;\n return [4 /*yield*/, (0, fileUpload_1.getPodURLs)(this.webId)];\n case 1:\n _a.podURLs = _b.sent(); // calls async function to get Pod URLs\n this.pod = this.podURLs[0]; // can fix this to handle multiple pods (<< FUTURE >>)\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Calls uploadFile() from fileUpload.ts to upload a file to the user's pod.\n obtains 'files' variable (a FileList that contains references to all files selected using the upload UI).\n */\n uploadFile: function (event) {\n this.files = event.target.files;\n },\n /*\n Calls handleFiles() from fileUpload.ts parse the files selected for upload + uploads the to the pod using the overwriteFile() method from @inrupt/solid-client.\n 'files' variable is a FileList that contains references to all files selected using the upload UI.\n */\n submitUpload: function () {\n this.fileUploaded = (0, fileUpload_1.handleFiles)(this.files, this.pod);\n this.initialLoad = false;\n },\n },\n mounted: function () {\n var _this = this;\n // Delays the execution of these functions on page reload (to avoid async-related errors)\n setTimeout(function () {\n _this.getPodURL();\n }, 200);\n },\n props: {},\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n data: function () { return ({\n loggedIn: false,\n webID: '',\n menu: false,\n message: false,\n }); },\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getPodURLs = exports.handleFiles = void 0;\nvar solid_client_1 = require(\"@inrupt/solid-client\");\nvar solid_client_authn_browser_1 = require(\"@inrupt/solid-client-authn-browser\");\n/**\n * Fetches a logged-in user's Pod URLs using a webID.\n *\n * @param webid The webID URL of the current user.\n * @returns A Promise that resolves to a string[] of user Pod URLs, if available, or `undefined` if no pods are found.\n*/\nfunction getPodURLs(webid) {\n return __awaiter(this, void 0, Promise, function () {\n var pods, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n pods = [];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, (0, solid_client_1.getPodUrlAll)(webid, { fetch: solid_client_authn_browser_1.fetch })];\n case 2:\n pods = _a.sent();\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n pods = [\"Error: probably not logged in\"];\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/, pods];\n }\n });\n });\n}\nexports.getPodURLs = getPodURLs;\n/**\n * Iterates through a FileList and uploads files to a Solid Pod via the uploadToPod() method.\n *\n * @param fileList The list of files to be uploaded to the Pod.\n * @param podURL The URL of the Pod files are to be uploaded to.\n*/\nfunction handleFiles(fileList, podURL) {\n Array.from(fileList).forEach(function (file) {\n uploadToPod(\"\".concat(podURL, \"uploads/\").concat(file.name), file, solid_client_authn_browser_1.fetch);\n });\n}\nexports.handleFiles = handleFiles;\n/**\n * Takes in a File and upload is to a Solid Pod using the @inrupt/solid-client method overwriteFile().\n *\n * The directory designated in targetURL does not need to exist before execuation.\n * The overwriteFile() method will create the conatiner (directory) path if it does not already exist.\n *\n * @param targetURL The URL where the files are to be uploaded.\n * @param file The file that is to be uploaded to the Pod.\n * @param fetch A window.fetch that includes the current User's credentials (to allow for Write access).\n * @returns A Promise that resolves to a string[] of user Pod URLs, if available, or `undefined` if no pods are found.\n*/\nfunction uploadToPod(targetURL, file, fetch) {\n return __awaiter(this, void 0, Promise, function () {\n var savedFile, error_2, savedFile, error_3;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(file.type != '')) return [3 /*break*/, 5];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, (0, solid_client_1.overwriteFile)(targetURL, file, {\n contentType: file.type,\n fetch: fetch,\n })];\n case 2:\n savedFile = _a.sent();\n console.log(\"File saved at \".concat(targetURL));\n console.log(savedFile);\n return [2 /*return*/, true];\n case 3:\n error_2 = _a.sent();\n console.error(error_2);\n return [3 /*break*/, 4];\n case 4: return [3 /*break*/, 8];\n case 5:\n _a.trys.push([5, 7, , 8]);\n return [4 /*yield*/, (0, solid_client_1.overwriteFile)(targetURL, file, {\n fetch: fetch,\n })];\n case 6:\n savedFile = _a.sent();\n console.log(\"File saved at \".concat(targetURL));\n console.log(savedFile);\n return [2 /*return*/, true];\n case 7:\n error_3 = _a.sent();\n console.error(error_3);\n return [3 /*break*/, 8];\n case 8: return [2 /*return*/];\n }\n });\n });\n}\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.session = exports.redirectToHomepage = exports.currentWebId = exports.handleRedirectAfterPageLoad = exports.isLoggedin = exports.startLogin = void 0;\nvar solid_client_authn_browser_1 = require(\"@inrupt/solid-client-authn-browser\");\n/*\nCalls handleRedirectAfterPageLoad() on page reload.\nCrucially, stores credentials in session and fetch objects.\n*/\nvar session = (0, solid_client_authn_browser_1.getDefaultSession)();\nexports.session = session;\nhandleRedirectAfterPageLoad();\n/**\n * Begins the User login process via the login() method from @inrupt/solid-client by following a Pod Provider URL link.\n *\n * @param purl The URL of user's Pod Provider.\n * @returns A Promise that resolves to a string, if there is an error, it is returned in this string.\n*/\nfunction startLogin(purl) {\n return __awaiter(this, void 0, Promise, function () {\n var status, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n status = '';\n if (!!session.info.isLoggedIn) return [3 /*break*/, 4];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, session.login({\n oidcIssuer: purl,\n redirectUrl: new URL(\"/TRIPLE_App/\", window.location.href).toString(),\n clientName: \"TRIPLE app\"\n })];\n case 2:\n _a.sent();\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n console.error('Error:', error_1);\n status = 'error';\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/, status];\n }\n });\n });\n}\nexports.startLogin = startLogin;\n/**\n * Checks if the current User is logged-in to a Solid Pod.\n *\n * @returns a boolean obtained from the session object that signifies login status\n*/\nfunction isLoggedin() {\n return session.info.isLoggedIn;\n}\nexports.isLoggedin = isLoggedin;\n/**\n * Obtains the current user's webID from the session object.\n *\n * @returns a user's webID URL as a string.\n*/\nfunction currentWebId() {\n return session.info.webId;\n}\nexports.currentWebId = currentWebId;\n/**\n * Redirects the user back to the TRIPLE App homepage\n*/\nfunction redirectToHomepage() {\n window.location.href = new URL(\"/TRIPLE_App/\", window.location.href).toString();\n}\nexports.redirectToHomepage = redirectToHomepage;\n/**\n * Checks if the current User is logged-in to a Solid Pod after page-reload.\n*/\nfunction handleRedirectAfterPageLoad() {\n return __awaiter(this, void 0, Promise, function () {\n return __generator(this, function (_a) {\n try {\n (0, solid_client_authn_browser_1.handleIncomingRedirect)({ restorePreviousSession: true });\n }\n catch (error) {\n console.error('Error:', error);\n }\n return [2 /*return*/];\n });\n });\n}\nexports.handleRedirectAfterPageLoad = handleRedirectAfterPageLoad;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.executeQuery = void 0;\nvar query_sparql_link_traversal_solid_1 = require(\"@comunica/query-sparql-link-traversal-solid\");\nvar myEngine = new query_sparql_link_traversal_solid_1.QueryEngine();\n/**\n * Fetches a logged-in user's Pod URLs using a webID.\n *\n * @param webid The webID URL of the current user.\n * @returns A Promise that resolves to a string[] of user Pod URLs, if available, or `undefined` if no pods are found.\n*/\nfunction executeQuery(source, session) {\n return __awaiter(this, void 0, Promise, function () {\n var bindingsStream;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, myEngine.queryBindings(\"\\n SELECT ?o WHERE {\\n ?s ?o .\\n }\", {\n sources: [source],\n '@comunica/actor-http-inrupt-solid-client-authn:session': session\n })];\n case 1:\n bindingsStream = _a.sent();\n return [4 /*yield*/, bindingsStream.toArray()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n}\nexports.executeQuery = executeQuery;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar vue_1 = require(\"vue\");\nvar App_vue_1 = require(\"./App.vue\");\nvar router_1 = require(\"./router\");\nrequire(\"vuetify/styles\");\nvar vuetify_1 = require(\"vuetify\");\nvar components = require(\"vuetify/components\");\nvar directives = require(\"vuetify/directives\");\nvar mdi_1 = require(\"vuetify/iconsets/mdi\");\nvar vuetify = (0, vuetify_1.createVuetify)({\n components: components,\n directives: directives,\n icons: {\n defaultSet: 'mdi',\n aliases: mdi_1.aliases,\n sets: {\n mdi: mdi_1.mdi,\n },\n },\n});\nvar app = (0, vue_1.createApp)(App_vue_1.default).use(vuetify);\napp.use(router_1.default);\napp.mount('#app');\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar vue_router_1 = require(\"vue-router\");\nvar LandingPage_vue_1 = require(\"./components/LandingPage.vue\");\n// import TheFooter from './components/Styling/TheFooter.vue'\nvar PodLogin_vue_1 = require(\"./components/PodLogin.vue\");\nvar PodUpload_vue_1 = require(\"./components/PodUpload.vue\");\nvar PodBrowser_vue_1 = require(\"./components/PodBrowser.vue\");\nvar DataQuery_vue_1 = require(\"./components/DataQuery.vue\");\nvar EditPrivacy_vue_1 = require(\"./components/EditPrivacy.vue\");\nvar NotFound_vue_1 = require(\"./components/Styling/NotFound.vue\");\n// Async components to optimize loading of components as necessary\n// const PodUpload = () => import('./components/PodUpload.vue');\n// const NotFound = () => import('./components/Styling/NotFound.vue');\nvar login_1 = require(\"./components/login\");\n/**\n * The router here allows for navigation between different functional pages of the TRIPLE App\n */\nvar router = (0, vue_router_1.createRouter)({\n history: (0, vue_router_1.createWebHistory)('/TRIPLE_App/'),\n routes: [\n {\n name: \"root\",\n path: \"/\",\n redirect: { name: \"Home\" }\n },\n {\n name: \"Home\",\n path: \"/home\",\n components: { default: LandingPage_vue_1.default },\n },\n {\n name: \"Login Page\",\n path: \"/login\",\n components: { default: PodLogin_vue_1.default },\n },\n {\n name: \"Data Upload\",\n path: \"/dataUpload\",\n components: { default: PodUpload_vue_1.default },\n },\n {\n name: \"Pod Browser\",\n path: \"/podBrowser\",\n components: { default: PodBrowser_vue_1.default },\n },\n {\n name: \"Query\",\n path: \"/dataQuery\",\n components: { default: DataQuery_vue_1.default },\n },\n {\n name: \"Data Privacy\",\n path: \"/privacy\",\n components: { default: EditPrivacy_vue_1.default },\n },\n {\n name: \"CatchAll\",\n path: '/:notFound(.*)',\n components: NotFound_vue_1.default,\n }\n ],\n});\n/**\n * A timeout here is necessary because the isLoggedin() function relies on an async function handleRedirectAfterPageLoad() to return boolean\n * The result is the routing of the web page flow from the login page to the functional parts of the app\n * (and returning to the login page if logged out at any point)\n */\nsetTimeout(function () {\n router.beforeEach(function (to, from) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n // make sure the user is authenticated\n if (!(0, login_1.isLoggedin)() && to.name !== \"Login Page\" && from.name === \"Home\") {\n return [2 /*return*/, { name: \"Login Page\" }];\n }\n else if (!(0, login_1.isLoggedin)() && to.name === \"Home\" && from.name !== \"Login Page\") {\n return [2 /*return*/, { name: \"Home\" }];\n }\n else if (!(0, login_1.isLoggedin)() && to.name !== \"Home\" && from.name === \"Login Page\") {\n return [2 /*return*/, { name: \"Login Page\" }];\n }\n else if ((0, login_1.isLoggedin)() && to.name === \"Login Page\") {\n return [2 /*return*/, { name: \"Home\" }];\n }\n return [2 /*return*/];\n });\n }); });\n}, 100);\n/* router.afterEach(function (to, from) {\n // sending analytics data\n console.log(to, from);\n}); */\nexports.default = router;\n","import { render } from \"./App.vue?vue&type=template&id=16b444ab&ts=true\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\n\nimport \"./assets/main.css?vue&type=style&index=0&lang=css&external\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./DataQuery.vue?vue&type=template&id=8fc8314e\"\nimport script from \"./DataQuery.vue?vue&type=script&lang=js\"\nexport * from \"./DataQuery.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./EditPrivacy.vue?vue&type=template&id=34268620\"\nimport script from \"./EditPrivacy.vue?vue&type=script&lang=js\"\nexport * from \"./EditPrivacy.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LandingPage.vue?vue&type=template&id=edafff74&scoped=true\"\nimport script from \"./LandingPage.vue?vue&type=script&lang=js\"\nexport * from \"./LandingPage.vue?vue&type=script&lang=js\"\n\nimport \"./LandingPage.vue?vue&type=style&index=0&id=edafff74&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-edafff74\"]])\n\nexport default __exports__","import { render } from \"./PodBrowser.vue?vue&type=template&id=f21a29f2&ts=true\"\nimport script from \"./PodBrowser.vue?vue&type=script&lang=ts\"\nexport * from \"./PodBrowser.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./PodLogin.vue?vue&type=template&id=e84e271a&scoped=true&ts=true\"\nimport script from \"./PodLogin.vue?vue&type=script&lang=ts\"\nexport * from \"./PodLogin.vue?vue&type=script&lang=ts\"\n\nimport \"./PodLogin.vue?vue&type=style&index=0&id=e84e271a&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e84e271a\"]])\n\nexport default __exports__","import { render } from \"./PodUpload.vue?vue&type=template&id=57e562db&scoped=true&ts=true\"\nimport script from \"./PodUpload.vue?vue&type=script&lang=ts\"\nexport * from \"./PodUpload.vue?vue&type=script&lang=ts\"\n\nimport \"./PodUpload.vue?vue&type=style&index=0&id=57e562db&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-57e562db\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./FunctionSelector.vue?vue&type=template&id=694cb628&scoped=true\"\nimport script from \"./FunctionSelector.vue?vue&type=script&lang=js\"\nexport * from \"./FunctionSelector.vue?vue&type=script&lang=js\"\n\nimport \"./FunctionSelector.vue?vue&type=style&index=0&id=694cb628&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-694cb628\"]])\n\nexport default __exports__","\n","import { render } from \"./NotFound.vue?vue&type=template&id=221b543a\"\nconst script = {}\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./TheHeader.vue?vue&type=template&id=db0f22aa&scoped=true&ts=true\"\nimport script from \"./TheHeader.vue?vue&type=script&lang=ts\"\nexport * from \"./TheHeader.vue?vue&type=script&lang=ts\"\n\nimport \"./TheHeader.vue?vue&type=style&index=0&id=db0f22aa&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-db0f22aa\"]])\n\nexport default __exports__","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunktriple_app\"] = self[\"webpackChunktriple_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(49220); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["Object","defineProperty","exports","value","FunctionSelector_vue_1","require","TheHeader_vue_1","name","components","TheHeader","default","FunctionSelector","__awaiter","this","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","Symbol","iterator","n","v","op","TypeError","call","pop","length","push","login_1","fileUpload_1","queryPod_1","data","loggedIn","webId","podURLs","pod","queryItems","methods","getPodURL","_a","_b","currentWebId","getPodURLs","podContentsQuery","executeQuery","session","filteredItems","mounted","_this","setTimeout","userUrl","isError","error","newPodDirections","isActive","handleLogin","stat","startLogin","loginCheck","isLoggedin","homepageRedir","redirectToHomepage","fileUploaded","initialLoad","files","FileList","uploadFile","event","target","submitUpload","handleFiles","props","webID","menu","message","vue_1","_hoisted_1","id","render","_ctx","_cache","$props","$setup","$data","$options","_component_the_header","resolveComponent","_component_function_selector","_component_router_view","openBlock","createElementBlock","Fragment","createVNode","createElementVNode","_component_v_infinite_scroll","_component_v_card","_component_v_col","_component_v_container","createBlock","withCtx","cols","title","variant","justify","class","color","loading","renderList","item","index","key","normalizeClass","toDisplayString","_hoisted_2","_component_v_icon","_component_v_tooltip","_component_v_btn","_component_v_text_field","_component_v_row","_component_v_form","_component_v_alert","_component_v_dialog","withDirectives","modelValue","$event","type","clearable","required","prepend","location","activator","mergeProps","fab","size","icon","createTextVNode","append","onClick","closable","createCommentVNode","activatorProps","text","vShow","_withScopeId","pushScopeId","popScopeId","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_component_v_chip","_component_v_file_input","placeholder","onChange","ref","counter","multiple","selection","fileNames","fileName","rounded","_component_v_card_title","align","solid_client_1","solid_client_authn_browser_1","webid","pods","getPodUrlAll","fetch","fileList","podURL","Array","from","forEach","file","uploadToPod","concat","targetURL","error_2","savedFile","error_3","overwriteFile","contentType","console","log","handleRedirectAfterPageLoad","getDefaultSession","purl","status","error_1","info","isLoggedIn","login","oidcIssuer","redirectUrl","URL","window","href","toString","clientName","handleIncomingRedirect","restorePreviousSession","query_sparql_link_traversal_solid_1","myEngine","QueryEngine","source","bindingsStream","queryBindings","sources","toArray","App_vue_1","router_1","vuetify_1","directives","mdi_1","vuetify","createVuetify","icons","defaultSet","aliases","sets","mdi","app","createApp","use","mount","vue_router_1","LandingPage_vue_1","PodLogin_vue_1","PodUpload_vue_1","PodBrowser_vue_1","DataQuery_vue_1","EditPrivacy_vue_1","NotFound_vue_1","router","createRouter","history","createWebHistory","routes","path","redirect","beforeEach","to","__exports__","_createBlock","_withCtx","_createVNode","user","fullName","email","_createElementVNode","_createStaticVNode","_createElementBlock","_Fragment","login_status","credentials","_component_v_tabs","tab","_renderList","items","tabName","_component_v_tab","border","_createTextVNode","_toDisplayString","_component_router_link","script","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","j","keys","every","splice","r","getter","__esModule","d","a","definition","o","enumerable","get","globalThis","Function","obj","prop","prototype","hasOwnProperty","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/app.3ee924fa.js b/js/app.3ee924fa.js deleted file mode 100644 index 666aef8..0000000 --- a/js/app.3ee924fa.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={227:function(e,t,n){Object.defineProperty(t,"B",{value:!0});var o=n(63804),r=n(39531);t.A={name:"App",components:{TheHeader:r.default,FunctionSelector:o.default}}},5246:function(e,t,n){n(44114);var o=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{u(o.next(e))}catch(t){a(t)}}function l(e){try{u(o["throw"](e))}catch(t){a(t)}}function u(e){e.done?n(e.value):r(e.value).then(i,l)}u((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(r=2&a[0]?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1] ?o .\n }",{sources:[e],"@comunica/actor-http-inrupt-solid-client-authn:session":t})];case 1:return n=o.sent(),[4,n.toArray()];case 2:return[2,o.sent()]}}))}))}t.executeQuery=l},49220:function(e,t,n){var o=n(71175),r=n(7233),a=n(77636);n(35524);var i=n(43859),l=n(28554),u=n(53739),c=n(8221),d=(0,i.createVuetify)({components:l,directives:u,icons:{defaultSet:"mdi",aliases:c.aliases,sets:{mdi:c.mdi}}}),s=(0,o.createApp)(r.default).use(d);s.use(a.default),s.mount("#app")},77636:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(50973),r=n(89133),a=n(63241),i=n(79485),l=n(32394),u=n(37558),c=n(74241),d=n(9385),s=n(31359),f=(0,o.createRouter)({history:(0,o.createWebHistory)("/TRIPLE_App/"),routes:[{path:"/",redirect:{name:"Home"}},{name:"Home",path:"/home",components:{default:r.default}},{name:"Login Page",path:"/login",components:{default:a.default}},{name:"Data Upload",path:"/dataUpload",components:{default:i.default}},{name:"Pod Browser",path:"/podBrowser",components:{default:l.default}},{name:"Query",path:"/dataQuery",components:{default:u.default}},{name:"Data Privacy",path:"/privacy",components:{default:c.default}},{name:"CatchAll",path:"/:notFound(.*)",components:d.default}]});setTimeout((function(){f.beforeEach((function(e,t,n){((0,s.isLoggedin)()||"Login Page"===e.name||"Home"===e.name)&&((0,s.isLoggedin)()||"Login Page"===e.name)?(0,s.isLoggedin)()&&"Login Page"===e.name?n({name:"Home"}):n():n({name:"Login Page"})}))}),100),t["default"]=f},7233:function(e,t,n){n.r(t),n.d(t,{__esModule:function(){return r.B},default:function(){return l}});var o=n(51661),r=n(227),a=n(71241);const i=(0,a.A)(r.A,[["render",o.X]]);var l=i},37558:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var o=n(56768);function r(e,t,n,r,a,i){const l=(0,o.g2)("v-card"),u=(0,o.g2)("v-col"),c=(0,o.g2)("v-container");return(0,o.uX)(),(0,o.Wv)(c,null,{default:(0,o.k6)((()=>[(0,o.bF)(u,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)(l,{title:"Query Data",variant:"tonal",justify:"center",class:"mx-auto",color:"indigo-darken-3"})])),_:1})])),_:1})}var a={data:()=>({user:{webId:"...",fullName:"John Doe",email:"john.doe@doe.com"}})},i=n(71241);const l=(0,i.A)(a,[["render",r]]);var u=l},74241:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var o=n(56768);function r(e,t,n,r,a,i){const l=(0,o.g2)("v-card"),u=(0,o.g2)("v-col"),c=(0,o.g2)("v-container");return(0,o.uX)(),(0,o.Wv)(c,null,{default:(0,o.k6)((()=>[(0,o.bF)(u,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)(l,{title:"Change Privacy of Data",variant:"tonal",justify:"center",class:"mx-auto",color:"indigo-darken-3"})])),_:1})])),_:1})}var a={data:()=>({user:{webId:"...",fullName:"John Doe",email:"john.doe@doe.com"}})},i=n(71241);const l=(0,i.A)(a,[["render",r]]);var u=l},89133:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var o=n(56768);const r=e=>((0,o.Qi)("data-v-73d556d7"),e=e(),(0,o.jt)(),e),a=r((()=>(0,o.Lk)("div",{class:"entry"},[(0,o.Lk)("h1",null,"Welcome to the TRIPLE App!"),(0,o.Lk)("h2",null,"Below is a guide to get you started."),(0,o.Lk)("h3",null,"(Similar instructions found in the README)")],-1))),i=(0,o.Fv)('

Getting Started:


Requirements:


1. Repo Cloning and Starting your local Solid pod

  1. Clone the project git repo (it has some useful scripts for later).
    For help see git clone guide.
$ git clone https://github.com/ecrum19/TRIPLE_App.git
  1. To start pod set-up, within the TRIPLE_App/ directory execute the following command:
$ bash makePod.sh

2. Setting up the Solid pod

  1. Using a web browser navigate to http://localhost:3000/
  2. Click the link: "Sign up for an account"
  3. Fill out the fields and click "Register"
  4. On the "Your Account" page, click on "Create pod"
  5. Enter a name for the pod and click "Create pod"
  6. Return to the home page by clicking "Back"

Voila, you now have a pod hosted by your local machine!
(Please note that if the terminal window you executed the bash script above is terminated, the Solid pod will no longer be accessible until it is re-launched. For more info see Community Solid Server Documentation.)


3. Register your Pod on your new WebID

  1. Within the TRIPLE_App/ directory, execute the command below:
  2. $ bash podRegistration.sh
  3. At the prompt, enter the name of your pod from above (E.g. test)

4. Solid Pod Login within the TRIPLE App

  1. Click the "Data Upload" tab in the nav bar within the TRIPLE App
  2. If you followed the above sections to launch a local Solid Pod, simply click the "Login" button that appears (because your pod provider is localhost:3000)
  3. After the redirect, click the "Authorize" button
  4. Once redirected back to the main page of the TRIPLE App, use the nav bar to select the "Data Upload" tab

5. Data Uplod Functionality

  1. Click the "Data Upload" tab of the nav bar above
',1);function l(e,t,n,r,l,u){const c=(0,o.g2)("v-card"),d=(0,o.g2)("v-col"),s=(0,o.g2)("v-container");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.bF)(s,null,{default:(0,o.k6)((()=>[(0,o.bF)(d,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)(c,{variant:"tonal",justify:"center",class:"mx-auto",color:"indigo-darken-3"},{default:(0,o.k6)((()=>[a])),_:1})])),_:1})])),_:1}),i],64)}var u=n(31359),c={data:()=>({login_status:!0}),methods:{async credentials(){(0,u.handleRedirectAfterPageLoad)()},loggedIn(){return(0,u.isLoggedin)()},mounted(){this.credentials(),setTimeout((()=>{this.login_status=this.loggedIn(),console.log(this.login_status)}),200)}}},d=n(71241);const s=(0,d.A)(c,[["render",l],["__scopeId","data-v-73d556d7"]]);var f=s},32394:function(e,t,n){n.r(t);var o=n(11080),r=n(87417),a={};for(var i in r)"default"!==i&&(a[i]=function(e){return r[e]}.bind(0,i));n.d(t,a);var l=n(71241);const u=(0,l.A)(r["default"],[["render",o.X]]);t["default"]=u},63241:function(e,t,n){n.r(t);var o=n(9304),r=n(39746),a={};for(var i in r)"default"!==i&&(a[i]=function(e){return r[e]}.bind(0,i));n.d(t,a);n(52794);var l=n(71241);const u=(0,l.A)(r["default"],[["render",o.X],["__scopeId","data-v-e84e271a"]]);t["default"]=u},79485:function(e,t,n){n.r(t);var o=n(92803),r=n(84934),a={};for(var i in r)"default"!==i&&(a[i]=function(e){return r[e]}.bind(0,i));n.d(t,a);n(75043);var l=n(71241);const u=(0,l.A)(r["default"],[["render",o.X],["__scopeId","data-v-644d5724"]]);t["default"]=u},63804:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var o=n(56768),r=n(24232);function a(e,t,n,a,i,l){const u=(0,o.g2)("router-link"),c=(0,o.g2)("v-tab"),d=(0,o.g2)("v-tabs"),s=(0,o.g2)("v-card");return(0,o.uX)(),(0,o.Wv)(s,null,{default:(0,o.k6)((()=>[(0,o.Lk)("nav",null,[(0,o.bF)(d,{modelValue:e.tab,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tab=t),"align-tabs":"center",color:"deep-purple-accent-4","bg-color":"#9fbbdf","fixed-tabs":""},{default:(0,o.k6)((()=>[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.items,(e=>((0,o.uX)(),(0,o.Wv)(c,{key:e},{default:(0,o.k6)((()=>[(0,o.bF)(u,{to:{name:e}},{default:(0,o.k6)((()=>[(0,o.eW)((0,r.v_)(e),1)])),_:2},1032,["to"])])),_:2},1024)))),128))])),_:1},8,["modelValue"])])])),_:1})}var i={data:()=>({tab:null,items:["Home","Data Upload","Pod Browser","Query","Data Privacy"]})},l=n(71241);const u=(0,l.A)(i,[["render",a],["__scopeId","data-v-119e7496"]]);var c=u},9385:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var o=n(56768);function r(e,t){const n=(0,o.g2)("router-link");return(0,o.uX)(),(0,o.CE)("h2",null,[(0,o.eW)(" Page not found... Please return "),(0,o.bF)(n,{to:"/"},{default:(0,o.k6)((()=>[(0,o.eW)("Home")])),_:1})])}var a=n(71241);const i={},l=(0,a.A)(i,[["render",r]]);var u=l},39531:function(e,t,n){n.r(t),n.d(t,{__esModule:function(){return r.B},default:function(){return l}});var o=n(23207),r=n(16648),a=n(71241);const i=(0,a.A)(r.A,[["render",o.X],["__scopeId","data-v-db0f22aa"]]);var l=i},52794:function(){},75043:function(){},87417:function(e,t,n){n.r(t),n.d(t,{default:function(){return r.a}});var o=n(5246),r=n.n(o),a={};for(var i in o)"default"!==i&&(a[i]=function(e){return o[e]}.bind(0,i));n.d(t,a)},39746:function(e,t,n){n.r(t),n.d(t,{default:function(){return r.a}});var o=n(35009),r=n.n(o),a={};for(var i in o)"default"!==i&&(a[i]=function(e){return o[e]}.bind(0,i));n.d(t,a)},84934:function(e,t,n){n.r(t),n.d(t,{default:function(){return r.a}});var o=n(2099),r=n.n(o),a={};for(var i in o)"default"!==i&&(a[i]=function(e){return o[e]}.bind(0,i));n.d(t,a)},11080:function(e,t,n){n.d(t,{X:function(){return o.X}});var o=n(89235)},9304:function(e,t,n){n.d(t,{X:function(){return o.X}});var o=n(18423)},92803:function(e,t,n){n.d(t,{X:function(){return o.X}});var o=n(59698)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.m=e,function(){var e=[];n.O=function(t,o,r,a){if(!o){var i=1/0;for(d=0;d=a)&&Object.keys(n.O).every((function(e){return n.O[e](o[u])}))?o.splice(u--,1):(l=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,r,a]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={524:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,a,i=o[0],l=o[1],u=o[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(u)var d=u(n)}for(t&&t(o);c <../> . on User card$.ttl\n * III. Web hosting of the application -- github pages\n *\n * Data Upload:\n * 1. a way to designate where a file is uploaded to (i.e. directory structure)\n * 2. a drag and drop interface\n * 3. a loading icon (to tell when file upload is done)\n *\n * Data Browser:\n * 4. a Pod data browser -- use new Comunica engine\n * 5. designate a way to display the directory structure (along with the files)\n *\n * Data Query:\n * 6. Area to write the query\n * 7. Area to designate sources\n * 8. submit query button\n * 9. streamed output display\n *\n * Data Privacy:\n * 10. A view of the current privacy\n * 11. A way to add/change privacy\n */\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar login_1 = require(\"./login\");\nvar fileUpload_1 = require(\"./fileUpload\");\nvar queryPod_1 = require(\"./queryPod\");\nexports.default = {\n data: function () {\n return {\n loggedIn: false,\n webId: \"\",\n podURLs: [],\n pod: \"\",\n queryItems: [],\n };\n },\n methods: {\n /*\n Calls getPodURLs() from fileUpload.ts to obtain a list of pods from the logged-in user's webID.\n Obtains 'pod' variable (URL path to user's Pod).\n */\n getPodURL: function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n this.webId = (0, login_1.currentWebId)(); // fetches user webID from login.ts\n _a = this;\n return [4 /*yield*/, (0, fileUpload_1.getPodURLs)(this.webId)];\n case 1:\n _a.podURLs = _b.sent(); // calls async function to get Pod URLs\n this.pod = this.podURLs[0]; // can fix this to handle multiple pods (<< FUTURE >>)\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Calls executeQuery from queryPod.ts to obtain all data from logged-in user's Pod.\n Obtains items variable (IRIs of all Pod data).\n */\n // COOL IDEA --> << Interactable Knowledge graph (with tabular display toggle) >>\n podContentsQuery: function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, (0, queryPod_1.executeQuery)(this.pod, login_1.session)];\n case 1:\n _a.queryItems = _b.sent();\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Filters the binding stream to show only useful stuff...\n */\n filteredItems: function () {\n // not sure\n },\n /*\n For the loading of the Pod data display\n */\n },\n mounted: function () {\n var _this = this;\n // Delays the execution of these functions on page reload (to avoid async-related errors)\n setTimeout(function () {\n _this.getPodURL();\n }, 200);\n setTimeout(function () {\n _this.podContentsQuery();\n }, 400);\n },\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar login_1 = require(\"./login\");\nexports.default = {\n name: \"LoginComponent\",\n data: function () {\n return {\n userUrl: \"http://localhost:3000/\",\n loggedIn: false,\n isError: false,\n error: '',\n newPodDirections: false,\n webId: '',\n isActive: false,\n };\n },\n methods: {\n /*\n For the login to a Solid pod, calls startLogin from login.ts\n */\n handleLogin: function () {\n return __awaiter(this, void 0, void 0, function () {\n var stat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, (0, login_1.startLogin)(this.userUrl)];\n case 1:\n stat = _a.sent();\n if (stat === \"error\") {\n this.error = \"Cannot login properly...\";\n }\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Checks if user's current session is logged-in and displays the active webID.\n Obtains the loggedIn boolean and webId string.\n */\n loginCheck: function () {\n this.loggedIn = (0, login_1.isLoggedin)();\n this.webId = (0, login_1.currentWebId)();\n },\n /*\n Redirects user back to homepage (for \"create a pod\" directions)\n uses href to handle the redirect\n */\n homepageRedir: function () {\n (0, login_1.redirectToHomepage)();\n }\n },\n mounted: function () {\n var _this = this;\n // Delays the execution loginCheck() on page reload (to avoid async-related errors)\n setTimeout(function () {\n _this.loginCheck();\n }, 200); // Delay of 2 seconds\n },\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fileUpload_1 = require(\"./fileUpload\");\nvar login_1 = require(\"./login\");\nexports.default = {\n data: function () {\n return {\n webId: \"\",\n podURLs: [],\n pod: \"\",\n fileUploaded: false,\n initialLoad: true,\n files: FileList,\n };\n },\n methods: {\n /*\n Calls getPodURLs() from fileUpload.ts to obtain a list of pods from the logged-in user's webID.\n Obtains 'pod' variable (URL path to user's Pod).\n */\n getPodURL: function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n this.webId = (0, login_1.currentWebId)(); // fetches user webID from login.ts\n _a = this;\n return [4 /*yield*/, (0, fileUpload_1.getPodURLs)(this.webId)];\n case 1:\n _a.podURLs = _b.sent(); // calls async function to get Pod URLs\n this.pod = this.podURLs[0]; // can fix this to handle multiple pods (<< FUTURE >>)\n return [2 /*return*/];\n }\n });\n });\n },\n /*\n Calls uploadFile() from fileUpload.ts to upload a file to the user's pod.\n obtains 'files' variable (a FileList that contains references to all files selected using the upload UI).\n */\n uploadFile: function (event) {\n this.files = event.target.files;\n },\n /*\n Calls handleFiles() from fileUpload.ts parse the files selected for upload + uploads the to the pod using the overwriteFile() method from @inrupt/solid-client.\n 'files' variable is a FileList that contains references to all files selected using the upload UI.\n */\n submitUpload: function () {\n this.fileUploaded = (0, fileUpload_1.handleFiles)(this.files, this.pod);\n this.initialLoad = false;\n },\n },\n mounted: function () {\n var _this = this;\n // Delays the execution of these functions on page reload (to avoid async-related errors)\n setTimeout(function () {\n _this.getPodURL();\n }, 200);\n },\n props: {},\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n data: function () { return ({\n loggedIn: false,\n webID: '',\n menu: false,\n message: false,\n }); },\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getPodURLs = exports.handleFiles = void 0;\nvar solid_client_1 = require(\"@inrupt/solid-client\");\nvar solid_client_authn_browser_1 = require(\"@inrupt/solid-client-authn-browser\");\n/**\n * Fetches a logged-in user's Pod URLs using a webID.\n *\n * @param webid The webID URL of the current user.\n * @returns A Promise that resolves to a string[] of user Pod URLs, if available, or `undefined` if no pods are found.\n*/\nfunction getPodURLs(webid) {\n return __awaiter(this, void 0, Promise, function () {\n var pods, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n pods = [];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, (0, solid_client_1.getPodUrlAll)(webid, { fetch: solid_client_authn_browser_1.fetch })];\n case 2:\n pods = _a.sent();\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n pods = [\"Error: probably not logged in\"];\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/, pods];\n }\n });\n });\n}\nexports.getPodURLs = getPodURLs;\n/**\n * Iterates through a FileList and uploads files to a Solid Pod via the uploadToPod() method.\n *\n * @param fileList The list of files to be uploaded to the Pod.\n * @param podURL The URL of the Pod files are to be uploaded to.\n*/\nfunction handleFiles(fileList, podURL) {\n Array.from(fileList).forEach(function (file) {\n uploadToPod(\"\".concat(podURL, \"uploads/\").concat(file.name), file, solid_client_authn_browser_1.fetch);\n });\n}\nexports.handleFiles = handleFiles;\n/**\n * Takes in a File and upload is to a Solid Pod using the @inrupt/solid-client method overwriteFile().\n *\n * The directory designated in targetURL does not need to exist before execuation.\n * The overwriteFile() method will create the conatiner (directory) path if it does not already exist.\n *\n * @param targetURL The URL where the files are to be uploaded.\n * @param file The file that is to be uploaded to the Pod.\n * @param fetch A window.fetch that includes the current User's credentials (to allow for Write access).\n * @returns A Promise that resolves to a string[] of user Pod URLs, if available, or `undefined` if no pods are found.\n*/\nfunction uploadToPod(targetURL, file, fetch) {\n return __awaiter(this, void 0, Promise, function () {\n var savedFile, error_2, savedFile, error_3;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(file.type != '')) return [3 /*break*/, 5];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, (0, solid_client_1.overwriteFile)(targetURL, file, {\n contentType: file.type,\n fetch: fetch,\n })];\n case 2:\n savedFile = _a.sent();\n console.log(\"File saved at \".concat(targetURL));\n console.log(savedFile);\n return [2 /*return*/, true];\n case 3:\n error_2 = _a.sent();\n console.error(error_2);\n return [3 /*break*/, 4];\n case 4: return [3 /*break*/, 8];\n case 5:\n _a.trys.push([5, 7, , 8]);\n return [4 /*yield*/, (0, solid_client_1.overwriteFile)(targetURL, file, {\n fetch: fetch,\n })];\n case 6:\n savedFile = _a.sent();\n console.log(\"File saved at \".concat(targetURL));\n console.log(savedFile);\n return [2 /*return*/, true];\n case 7:\n error_3 = _a.sent();\n console.error(error_3);\n return [3 /*break*/, 8];\n case 8: return [2 /*return*/];\n }\n });\n });\n}\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.session = exports.redirectToHomepage = exports.currentWebId = exports.handleRedirectAfterPageLoad = exports.isLoggedin = exports.startLogin = void 0;\nvar solid_client_authn_browser_1 = require(\"@inrupt/solid-client-authn-browser\");\n/*\nCalls handleRedirectAfterPageLoad() on page reload.\nCrucially, stores credentials in session and fetch objects.\n*/\nvar session = (0, solid_client_authn_browser_1.getDefaultSession)();\nexports.session = session;\nhandleRedirectAfterPageLoad();\n/**\n * Begins the User login process via the login() method from @inrupt/solid-client by following a Pod Provider URL link.\n *\n * @param purl The URL of user's Pod Provider.\n * @returns A Promise that resolves to a string, if there is an error, it is returned in this string.\n*/\nfunction startLogin(purl) {\n return __awaiter(this, void 0, Promise, function () {\n var status, error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n status = '';\n if (!!session.info.isLoggedIn) return [3 /*break*/, 4];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, session.login({\n oidcIssuer: purl,\n redirectUrl: new URL(\"/TRIPLE_App/\", window.location.href).toString(),\n clientName: \"TRIPLE app\"\n })];\n case 2:\n _a.sent();\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n console.error('Error:', error_1);\n status = 'error';\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/, status];\n }\n });\n });\n}\nexports.startLogin = startLogin;\n/**\n * Checks if the current User is logged-in to a Solid Pod.\n *\n * @returns a boolean obtained from the session object that signifies login status\n*/\nfunction isLoggedin() {\n return session.info.isLoggedIn;\n}\nexports.isLoggedin = isLoggedin;\n/**\n * Obtains the current user's webID from the session object.\n *\n * @returns a user's webID URL as a string.\n*/\nfunction currentWebId() {\n return session.info.webId;\n}\nexports.currentWebId = currentWebId;\n/**\n * Redirects the user back to the TRIPLE App homepage\n*/\nfunction redirectToHomepage() {\n window.location.href = new URL(\"/TRIPLE_App/\", window.location.href).toString();\n}\nexports.redirectToHomepage = redirectToHomepage;\n/**\n * Checks if the current User is logged-in to a Solid Pod after page-reload.\n*/\nfunction handleRedirectAfterPageLoad() {\n return __awaiter(this, void 0, Promise, function () {\n return __generator(this, function (_a) {\n try {\n (0, solid_client_authn_browser_1.handleIncomingRedirect)({ restorePreviousSession: true });\n }\n catch (error) {\n console.error('Error:', error);\n }\n return [2 /*return*/];\n });\n });\n}\nexports.handleRedirectAfterPageLoad = handleRedirectAfterPageLoad;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.executeQuery = void 0;\nvar query_sparql_link_traversal_solid_1 = require(\"@comunica/query-sparql-link-traversal-solid\");\nvar myEngine = new query_sparql_link_traversal_solid_1.QueryEngine();\n/**\n * Fetches a logged-in user's Pod URLs using a webID.\n *\n * @param webid The webID URL of the current user.\n * @returns A Promise that resolves to a string[] of user Pod URLs, if available, or `undefined` if no pods are found.\n*/\nfunction executeQuery(source, session) {\n return __awaiter(this, void 0, Promise, function () {\n var bindingsStream;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, myEngine.queryBindings(\"\\n SELECT ?o WHERE {\\n ?s ?o .\\n }\", {\n sources: [source],\n '@comunica/actor-http-inrupt-solid-client-authn:session': session\n })];\n case 1:\n bindingsStream = _a.sent();\n return [4 /*yield*/, bindingsStream.toArray()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n}\nexports.executeQuery = executeQuery;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar vue_1 = require(\"vue\");\nvar App_vue_1 = require(\"./App.vue\");\nvar router_1 = require(\"./router\");\nrequire(\"vuetify/styles\");\nvar vuetify_1 = require(\"vuetify\");\nvar components = require(\"vuetify/components\");\nvar directives = require(\"vuetify/directives\");\nvar mdi_1 = require(\"vuetify/iconsets/mdi\");\nvar vuetify = (0, vuetify_1.createVuetify)({\n components: components,\n directives: directives,\n icons: {\n defaultSet: 'mdi',\n aliases: mdi_1.aliases,\n sets: {\n mdi: mdi_1.mdi,\n },\n },\n});\nvar app = (0, vue_1.createApp)(App_vue_1.default).use(vuetify);\napp.use(router_1.default);\napp.mount('#app');\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar vue_router_1 = require(\"vue-router\");\nvar LandingPage_vue_1 = require(\"./components/LandingPage.vue\");\n// import TheFooter from './components/Styling/TheFooter.vue'\nvar PodLogin_vue_1 = require(\"./components/PodLogin.vue\");\nvar PodUpload_vue_1 = require(\"./components/PodUpload.vue\");\nvar PodBrowser_vue_1 = require(\"./components/PodBrowser.vue\");\nvar DataQuery_vue_1 = require(\"./components/DataQuery.vue\");\nvar EditPrivacy_vue_1 = require(\"./components/EditPrivacy.vue\");\nvar NotFound_vue_1 = require(\"./components/Styling/NotFound.vue\");\n// Async components to optimize loading of components as necessary\n// const PodUpload = () => import('./components/PodUpload.vue');\n// const NotFound = () => import('./components/Styling/NotFound.vue');\nvar login_1 = require(\"./components/login\");\n/**\n * The router here allows for navigation between different functional pages of the TRIPLE App\n */\nvar router = (0, vue_router_1.createRouter)({\n history: (0, vue_router_1.createWebHistory)('/TRIPLE_App/'),\n routes: [\n {\n path: \"/\",\n redirect: { name: \"Home\" }\n },\n {\n name: \"Home\",\n path: \"/home\",\n components: { default: LandingPage_vue_1.default },\n },\n {\n name: \"Login Page\",\n path: \"/login\",\n components: { default: PodLogin_vue_1.default },\n },\n {\n name: \"Data Upload\",\n path: \"/dataUpload\",\n components: { default: PodUpload_vue_1.default },\n },\n {\n name: \"Pod Browser\",\n path: \"/podBrowser\",\n components: { default: PodBrowser_vue_1.default },\n },\n {\n name: \"Query\",\n path: \"/dataQuery\",\n components: { default: DataQuery_vue_1.default },\n },\n {\n name: \"Data Privacy\",\n path: \"/privacy\",\n components: { default: EditPrivacy_vue_1.default },\n },\n {\n name: \"CatchAll\",\n path: '/:notFound(.*)',\n components: NotFound_vue_1.default,\n }\n ],\n});\n/**\n * A timeout here is necessary because the isLoggedin() function relies on an async function handleRedirectAfterPageLoad() to return boolean\n * The result is the routing of the web page flow from the login page to the functional parts of the app\n * (and returning to the login page if logged out at any point)\n */\nsetTimeout(function () {\n router.beforeEach(function (to, from, next) {\n // make sure the user is authenticated\n if (!(0, login_1.isLoggedin)() && to.name !== \"Login Page\" && to.name !== \"Home\") {\n next({ name: \"Login Page\" });\n }\n else if (!(0, login_1.isLoggedin)() && to.name !== \"Login Page\") {\n next({ name: \"Login Page\" });\n }\n else if ((0, login_1.isLoggedin)() && to.name === \"Login Page\") {\n next({ name: \"Home\" });\n }\n else {\n next();\n }\n });\n}, 100);\n/* router.afterEach(function (to, from) {\n // sending analytics data\n console.log(to, from);\n}); */\nexports.default = router;\n","import { render } from \"./App.vue?vue&type=template&id=16b444ab&ts=true\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\n\nimport \"./assets/main.css?vue&type=style&index=0&lang=css&external\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./DataQuery.vue?vue&type=template&id=8fc8314e\"\nimport script from \"./DataQuery.vue?vue&type=script&lang=js\"\nexport * from \"./DataQuery.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./EditPrivacy.vue?vue&type=template&id=34268620\"\nimport script from \"./EditPrivacy.vue?vue&type=script&lang=js\"\nexport * from \"./EditPrivacy.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LandingPage.vue?vue&type=template&id=73d556d7&scoped=true\"\nimport script from \"./LandingPage.vue?vue&type=script&lang=js\"\nexport * from \"./LandingPage.vue?vue&type=script&lang=js\"\n\nimport \"./LandingPage.vue?vue&type=style&index=0&id=73d556d7&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-73d556d7\"]])\n\nexport default __exports__","import { render } from \"./PodBrowser.vue?vue&type=template&id=f21a29f2&ts=true\"\nimport script from \"./PodBrowser.vue?vue&type=script&lang=ts\"\nexport * from \"./PodBrowser.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./PodLogin.vue?vue&type=template&id=e84e271a&scoped=true&ts=true\"\nimport script from \"./PodLogin.vue?vue&type=script&lang=ts\"\nexport * from \"./PodLogin.vue?vue&type=script&lang=ts\"\n\nimport \"./PodLogin.vue?vue&type=style&index=0&id=e84e271a&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e84e271a\"]])\n\nexport default __exports__","import { render } from \"./PodUpload.vue?vue&type=template&id=644d5724&scoped=true&ts=true\"\nimport script from \"./PodUpload.vue?vue&type=script&lang=ts\"\nexport * from \"./PodUpload.vue?vue&type=script&lang=ts\"\n\nimport \"./PodUpload.vue?vue&type=style&index=0&id=644d5724&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-644d5724\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./FunctionSelector.vue?vue&type=template&id=119e7496&scoped=true\"\nimport script from \"./FunctionSelector.vue?vue&type=script&lang=js\"\nexport * from \"./FunctionSelector.vue?vue&type=script&lang=js\"\n\nimport \"./FunctionSelector.vue?vue&type=style&index=0&id=119e7496&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-119e7496\"]])\n\nexport default __exports__","\n","import { render } from \"./NotFound.vue?vue&type=template&id=221b543a\"\nconst script = {}\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./TheHeader.vue?vue&type=template&id=db0f22aa&scoped=true&ts=true\"\nimport script from \"./TheHeader.vue?vue&type=script&lang=ts\"\nexport * from \"./TheHeader.vue?vue&type=script&lang=ts\"\n\nimport \"./TheHeader.vue?vue&type=style&index=0&id=db0f22aa&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-db0f22aa\"]])\n\nexport default __exports__","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunktriple_app\"] = self[\"webpackChunktriple_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(49220); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["Object","defineProperty","exports","value","FunctionSelector_vue_1","require","TheHeader_vue_1","name","components","TheHeader","default","FunctionSelector","__awaiter","this","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","Symbol","iterator","n","v","op","TypeError","call","pop","length","push","login_1","fileUpload_1","queryPod_1","data","loggedIn","webId","podURLs","pod","queryItems","methods","getPodURL","_a","_b","currentWebId","getPodURLs","podContentsQuery","executeQuery","session","filteredItems","mounted","_this","setTimeout","userUrl","isError","error","newPodDirections","isActive","handleLogin","stat","startLogin","loginCheck","isLoggedin","homepageRedir","redirectToHomepage","fileUploaded","initialLoad","files","FileList","uploadFile","event","target","submitUpload","handleFiles","props","webID","menu","message","vue_1","_hoisted_1","id","render","_ctx","_cache","$props","$setup","$data","$options","_component_the_header","resolveComponent","_component_function_selector","_component_router_view","openBlock","createElementBlock","Fragment","createVNode","createElementVNode","_component_v_infinite_scroll","_component_v_card","_component_v_col","_component_v_container","createBlock","withCtx","cols","title","variant","justify","class","color","loading","renderList","item","index","key","normalizeClass","toDisplayString","_hoisted_2","_component_v_icon","_component_v_tooltip","_component_v_btn","_component_v_text_field","_component_v_row","_component_v_form","_component_v_alert","_component_v_dialog","withDirectives","modelValue","$event","type","clearable","required","prepend","location","activator","mergeProps","fab","size","icon","createTextVNode","append","onClick","closable","createCommentVNode","activatorProps","text","vShow","_withScopeId","pushScopeId","popScopeId","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_component_v_chip","_component_v_file_input","placeholder","onChange","ref","counter","multiple","selection","fileNames","fileName","rounded","_component_v_card_title","align","solid_client_1","solid_client_authn_browser_1","webid","pods","getPodUrlAll","fetch","fileList","podURL","Array","from","forEach","file","uploadToPod","concat","targetURL","error_2","savedFile","error_3","overwriteFile","contentType","console","log","handleRedirectAfterPageLoad","getDefaultSession","purl","status","error_1","info","isLoggedIn","login","oidcIssuer","redirectUrl","URL","window","href","toString","clientName","handleIncomingRedirect","restorePreviousSession","query_sparql_link_traversal_solid_1","myEngine","QueryEngine","source","bindingsStream","queryBindings","sources","toArray","App_vue_1","router_1","vuetify_1","directives","mdi_1","vuetify","createVuetify","icons","defaultSet","aliases","sets","mdi","app","createApp","use","mount","vue_router_1","LandingPage_vue_1","PodLogin_vue_1","PodUpload_vue_1","PodBrowser_vue_1","DataQuery_vue_1","EditPrivacy_vue_1","NotFound_vue_1","router","createRouter","history","createWebHistory","routes","path","redirect","beforeEach","to","__exports__","_createBlock","_withCtx","_createVNode","user","fullName","email","_createElementVNode","_createStaticVNode","_createElementBlock","_Fragment","login_status","credentials","_component_v_tabs","tab","_renderList","items","tabName","_component_v_tab","_component_router_link","_createTextVNode","_toDisplayString","script","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","j","keys","every","splice","r","getter","__esModule","d","a","definition","o","enumerable","get","globalThis","Function","obj","prop","prototype","hasOwnProperty","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/login/index.html b/login/index.html index fdb8805..18c30ac 100644 --- a/login/index.html +++ b/login/index.html @@ -1 +1 @@ -triple_app
\ No newline at end of file +triple_app
\ No newline at end of file diff --git a/podBrowser/index.html b/podBrowser/index.html index fdb8805..18c30ac 100644 --- a/podBrowser/index.html +++ b/podBrowser/index.html @@ -1 +1 @@ -triple_app
\ No newline at end of file +triple_app
\ No newline at end of file diff --git a/privacy/index.html b/privacy/index.html index fdb8805..18c30ac 100644 --- a/privacy/index.html +++ b/privacy/index.html @@ -1 +1 @@ -triple_app
\ No newline at end of file +triple_app
\ No newline at end of file