11import {
2- ISessionInfo ,
2+ // ISessionInfo,
33 Session ,
44 getDefaultSession ,
55 handleIncomingRedirect ,
@@ -32,7 +32,7 @@ export async function doLogin() {
3232 await login ( {
3333 clientName : "solid-soukai-bookmarks" ,
3434 oidcIssuer : "https://pivot.pondersource.com" ,
35- clientId : "https://sosobo.5apps.com/clientid.jsonld"
35+ // clientId: "https://sosobo.5apps.com/clientid.jsonld"
3636 } ) ;
3737}
3838
@@ -47,7 +47,7 @@ export function doLogout() {
4747export async function handleRedirectAfterLogin (
4848 cb : ( loggedInSession : Session ) => void
4949) {
50- const sessionInfo : ISessionInfo | undefined = await handleIncomingRedirect ( {
50+ /* const sessionInfo: ISessionInfo | undefined =*/ await handleIncomingRedirect ( {
5151 restorePreviousSession : true ,
5252 } ) ; // no-op if not part of login redirect
5353 const session = getDefaultSession ( ) ;
@@ -59,14 +59,17 @@ export async function handleRedirectAfterLogin(
5959}
6060
6161export function bootSoukai ( fetch ?: Fetch ) {
62+ console . log ( 'bootSolidModels' ) ;
6263 bootSolidModels ( ) ;
64+ console . log ( 'bootModels' ) ;
6365 bootModels ( {
6466 Bookmark : Bookmark ,
6567 BookmarkModel : BookmarkModel ,
6668 TopicModel : TopicModel ,
6769 TypeIndex : SolidTypeIndex ,
6870 SolidTypeIndex : SolidTypeIndex ,
6971 } ) ;
72+ console . log ( 'setEngine' ) ;
7073 setEngine ( new SolidEngine ( fetch ) ) ;
7174}
7275
@@ -138,12 +141,12 @@ export const fetchContainerUrl = async (args: FetchContainrURLArgs) => {
138141} ;
139142
140143// export const findOrCreateTasksContainer = async (session: any): Promise<SolidContainer> => {
141- export const findOrCreateTasksContainer = async ( session : any ) => {
144+ export const findOrCreateTasksContainer = async ( /* session: any*/ ) => {
142145 // const name = 'Bookmarks';
143146 // const url = "https://reza-soltani.solidcommunity.net/bookmarks";
144147 // const typeIndex = await Solid.findOrCreatePrivateTypeIndex();
145- const typeIndexUrl =
146- "https://reza-soltani.solidcommunity.net/settings/privateTypeIndex.ttl" ;
148+ // const typeIndexUrl =
149+ // "https://reza-soltani.solidcommunity.net/settings/privateTypeIndex.ttl";
147150 // const containers = await SolidContainer.withEngine(getEngine()).fromTypeIndex(typeIndexUrl, Bookmark);
148151 // return (
149152 // containers.find((container) => container.url === url)
0 commit comments