{"id":17621513,"url":"https://github.com/sql-mistermagoo/blazor.mm.solid.file.client","last_synced_at":"2025-03-30T01:27:48.772Z","repository":{"id":91797671,"uuid":"166081620","full_name":"SQL-MisterMagoo/Blazor.MM.Solid.File.Client","owner":"SQL-MisterMagoo","description":"Blazor Library Wrapper around solid-file-client","archived":false,"fork":false,"pushed_at":"2020-06-15T15:18:46.000Z","size":1899,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-05T03:23:40.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SQL-MisterMagoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-16T17:27:07.000Z","updated_at":"2022-09-17T13:01:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0459bf9-8c7e-4b19-aac2-cbbafec70b49","html_url":"https://github.com/SQL-MisterMagoo/Blazor.MM.Solid.File.Client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SQL-MisterMagoo%2FBlazor.MM.Solid.File.Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SQL-MisterMagoo%2FBlazor.MM.Solid.File.Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SQL-MisterMagoo%2FBlazor.MM.Solid.File.Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SQL-MisterMagoo%2FBlazor.MM.Solid.File.Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SQL-MisterMagoo","download_url":"https://codeload.github.com/SQL-MisterMagoo/Blazor.MM.Solid.File.Client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246263987,"owners_count":20749384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T20:43:40.941Z","updated_at":"2025-03-30T01:27:48.743Z","avatar_url":"https://github.com/SQL-MisterMagoo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blazor.MM.Solid.File.Client\nBlazor Library Wrapper around solid-file-client\n\nThis is a Blazor library that can be used to connect/login to a Solid Pod (https://solid.community) to read files and folders.\n\n### TODO\n - [ ] Finish wrappers for all solid-file-client methods\n - [ ] Add samples for all methods to the sample file browser app.\n \n### Features\n - [x] Login\n - [x] Logout\n - [x] ReadFolder\n - [x] ReadFile\n - [x] LoginChanged - event to notify subscriber pages that the user has logged in/out\n - [x] NameChanged - event to notify subscriber pages that the user name (foaf:name) has been retrieved\n \n### Usage\n \nAdd the library as a reference (not published anywhere yet - so you have to build it)\n \n#### LoginChanged\n```\nbool IsLoggedIn;\nprotected override void OnInit()\n{\n  SolidFileClient.LoginStateChanged += LoginChanged;\n}\n\nvoid LoginChanged(bool loggedin)\n{\n  IsLoggedIn = loggedin;\n  StateHasChanged();\n}\n```\n#### Login\n```\nTask DoLogin()\n{\n  return SolidFileClient.Login(Webid);\n}\n```\n#### Logout\n```\nTask DoLogout()\n{\n  return SolidFileClient.Logout();\n}\n```\n#### ReadFolder\n```\nFolder[] folders;\nFile[] files;\n\nTask ReadFolder(string path)\n{\n  var folder = await SolidFileClient.ReadFolder(path);\n  folders = folder?.folders;\n  files = folder?.files;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsql-mistermagoo%2Fblazor.mm.solid.file.client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsql-mistermagoo%2Fblazor.mm.solid.file.client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsql-mistermagoo%2Fblazor.mm.solid.file.client/lists"}