GithubHelp home page GithubHelp logo

smjltd / blazorpoint Goto Github PK

View Code? Open in Web Editor NEW
42.0 7.0 10.0 6.34 MB

Blazor (Client Side) on SharePoint

License: Apache License 2.0

HTML 76.27% C# 11.49% CSS 6.61% JavaScript 4.62% ASP.NET 1.00%
sharepoint blazor blazor-client blazor-application sharepoint-site webassembly wasm blazor-webassembly

blazorpoint's Introduction

Blazor for SharePoint

BlazorPoint is Blazor(Client Side) on SharePoint

This is a sample project to help you get started with hosting blazor on SharePoint Pages, Completely Client Side. This Project is an experimental project, still missng authorizations and other cool stuff which will be added later on.

This Project Contains Components such as:

  • Insert data into lists using forms
  • uploading attachments to list item
  • people picker
  • lookup lists
  • tables to list items with search
  • repeat section to add data to another list

and lots more will be added as soon as published.

Steps to set up and running, you will need [https://dot.net]

Step 1:

Create your project using this below command

dotnet new blazorwasm -o [YourProjectName] cd [YourProjectName]/wwwroot

Now, rename your index.html file to any file name with .aspx

Example: index.html to default.aspx

Step 2:

Determine your site collection root path.

for example if you are using . sharepoint site collection with root name http://[your_site].com/ . or "http:/[your_site].com/sites/example"

either way edit your default.aspx file to reflect the base meta tag

Example:

for root path <base href="/default.aspx" />

for sites/example path <base href="/sites/example/default.aspx" />

if you are hosting in Pages Library <base href="/sites/example/Pages/default.aspx" />

Step 3:

Allow .json in Central admin then

Manage WebApp -> Block Types -> Remove json-> save

Modify your Web Applications Web.Config and add or replace this line if it already exists.

<add name="JSONHandlerFactory" allowPathInfo="true" path="/*.json" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" />

if you want to allow .json file only on pages library

change path attribute to path="/Pages/*.json"

Step 4:

Making your default.aspx as welcome page.

Navigate to Site Settings -> Welcome Page in your site collection, if you don't see this option enable site collection feature SharePoint Server Publishing Infrastructure

Then enable SharePoint Server Publishing in site feature

Demo

Demo Project: Datacenter Visitor Log.

  1. Import List Template in ListTemplate Folder
  2. Change List Guid & List Type in Contants/Settings.cs File
  3. Create SharePoint Groups Named As (Admins,DC-OP-Jeddah,DC-OP-Dammam,DC-OP-Riyadh)

BlazorPoint

Contributors

blazorpoint's People

Contributors

msftgits avatar smjark avatar smjltd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

blazorpoint's Issues

Code is not working

Code is not working. some folders missing like constants,validiations and settings. can you please how to connect with sharepoint? and where is your api defined?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.