{"id":21014012,"url":"https://github.com/brianlparker/cleanview","last_synced_at":"2025-06-20T16:12:43.195Z","repository":{"id":136033235,"uuid":"275411378","full_name":"BrianLParker/CleanView","owner":"BrianLParker","description":"Clean view is a wrapper for MainLayout for blazor project. As it has customizable components a wrapper allows easier definition than a replacing MainLayout.","archived":false,"fork":false,"pushed_at":"2020-11-13T01:43:43.000Z","size":5816,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T16:11:42.058Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrianLParker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-06-27T16:30:43.000Z","updated_at":"2022-01-12T20:35:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9f9af43-7281-4631-b8b9-04a15d4a22d8","html_url":"https://github.com/BrianLParker/CleanView","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/BrianLParker/CleanView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FCleanView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FCleanView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FCleanView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FCleanView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianLParker","download_url":"https://codeload.github.com/BrianLParker/CleanView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLParker%2FCleanView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260976938,"owners_count":23091528,"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-11-19T09:44:47.222Z","updated_at":"2025-06-20T16:12:38.183Z","avatar_url":"https://github.com/BrianLParker.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CleanView\nClean view is a wrapper for MainLayout for blazor project. As it has customizable components, a wrapper allows easier definition than a replacing MainLayout.\n\n\n![alt text](https://user-images.githubusercontent.com/8317299/95468150-f21d1200-09c9-11eb-8d77-3bb0239212c9.png)\n\n## You need to:\n1. Import the styles from \"_content/CleanView/styles.css\"\n2. Add a using statement to _Imports.razor\n3. Update your MainLayour razor to use the wapper.\n\n## Index.html or _Host.cshtml\n\n```\n\u003chead\u003e\n    ...\n    \u003clink href=\"_content/CleanView/styles.css\" rel=\"stylesheet\" /\u003e\n\u003c/head\u003e\n\n```\n\n## _Imports.razor\n\n```\n@using CleanView\n```\n\n\n## MainLayout.razor\n\n```\n@inherits LayoutComponentBase\n\u003cCleanLayout CopyrightOwner=\"\u003cYour Name\u003e\" CopyrightStart=\"1936\"\u003e\n    \u003cHeaderCenter\u003e\n        \u003cAppHeader /\u003e\n    \u003c/HeaderCenter\u003e\n    \u003cLeftMenuPanel\u003e\n        \u003cNavMenuLeft /\u003e\n    \u003c/LeftMenuPanel\u003e\n    \u003cLeftIcon\u003e\n        \u003cspan class=\"oi oi-grid-three-up text-shadow\" aria-hidden=\"true\"\u003e\u003c/span\u003e\n    \u003c/LeftIcon\u003e\n    \u003cRightIcon\u003e\n        \u003cspan class=\"oi oi-cog text-shadow\" aria-hidden=\"true\"\u003e\u003c/span\u003e\n    \u003c/RightIcon\u003e\n    \u003cRightMenuPanel\u003e\n        \u003cNavMenuRight /\u003e\n    \u003c/RightMenuPanel\u003e\n    \u003cContent\u003e\n        @Body\n    \u003c/Content\u003e\n\u003c/CleanLayout\u003e\n\n```\n\n### NavPanel's \n- NavPanelMenuItems can contain NavPanelMenuItems allowing for nested menu structure.\n- NavPanelMenuItems can be treated like anchor elements. Attributes are splattered to the anchor. If css classes are used be aware they will override the default class applied.\n\n\n```\n\u003cNavPanel\u003e\n\n    \u003cNavPanelMenuItem Name=\"Home\" Icon=\"oi-home\" href=\"\" /\u003e\n    \u003cNavPanelMenuItem Name=\"Sub Menu\" Icon=\"\"\u003e\n        \u003cNavPanelMenuItem Name=\"Counter\" Icon=\"oi-plus\" href=\"counter\" /\u003e\n        \u003cAuthorizeView\u003e\n            \u003cNavPanelMenuItem Name=\"Fetch data\" Icon=\"oi-list-rich\" href=\"fetchdata\" /\u003e\n            \u003cNavPanelMenuItem Name=\"Log out\" Icon=\"oi-account-logout\" @onclick=\"BeginSignOut\" /\u003e\n        \u003c/AuthorizeView\u003e\n    \u003c/NavPanelMenuItem\u003e \n    \n\u003c/NavPanel\u003e\n\n```\n\n### BackgroundSetter\n- Placing this item on a page will set the background image on initialization.\n\n```\n\n\u003cBackgroundSetter Url=\"background.jpg\" FootNote=\"Image by Luc Tribolet - unsplash.com\" /\u003e\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlparker%2Fcleanview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianlparker%2Fcleanview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlparker%2Fcleanview/lists"}