Skip to content

Commit

Permalink
Rename "blazor content" project to "blazor library". Fixes #539
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Apr 11, 2018
1 parent b93b8b6 commit 01d4e78
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Blazor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.Performance", "benchmarks\Microsoft.AspNetCore.Blazor.Performance\Microsoft.AspNetCore.Blazor.Performance.csproj", "{50F6820F-D058-4E68-9E15-801F893F514E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorContent.CSharp", "src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorContent.CSharp\BlazorContent.CSharp.csproj", "{3A457B14-D91B-4FFF-A81A-8F350BDB911F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLibrary.CSharp", "src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorLibrary.CSharp\BlazorLibrary.CSharp.csproj", "{3A457B14-D91B-4FFF-A81A-8F350BDB911F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
"classifications": [
"Web",
"Blazor",
"Content"
"Library"
],
"groupIdentity": "Microsoft.Web.Blazor.Content",
"identity": "Microsoft.Web.Blazor.Content.CSharp",
"name": "Blazor (content)",
"groupIdentity": "Microsoft.Web.Blazor.Library",
"identity": "Microsoft.Web.Blazor.Library.CSharp",
"name": "Blazor Library",
"preferNameDirectory": true,
"primaryOutputs": [
{
"path": "BlazorContent.CSharp.csproj"
"path": "BlazorLibrary.CSharp.csproj"
}
],
"shortName": "blazorcontent",
"sourceName": "BlazorContent.CSharp",
"shortName": "blazorlib",
"sourceName": "BlazorLibrary.CSharp",
"sources": [
{
"source": "./",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="my-component">
This Blazor component is defined in the <strong>BlazorLibrary.CSharp</strong> package.
</div>
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using Microsoft.AspNetCore.Blazor.Browser.Interop;

namespace BlazorContent.CSharp
namespace BlazorLibrary.CSharp
{
public class ExampleJsInterop
{
public static string Prompt(string message)
{
return RegisteredFunction.Invoke<string>(
"BlazorContent.CSharp.ExampleJsInterop.Prompt",
"BlazorLibrary.CSharp.ExampleJsInterop.Prompt",
message);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is to show how a content package may provide JavaScript interop features
// This file is to show how a library package may provide JavaScript interop features
// wrapped in a .NET API

Blazor.registerFunction('BlazorContent.CSharp.ExampleJsInterop.Prompt', function (message) {
Blazor.registerFunction('BlazorLibrary.CSharp.ExampleJsInterop.Prompt', function (message) {
return prompt(message, 'Type anything here');
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is to show how CSS and other static resources (such as images) can be
used from a content project/package.
used from a library project/package.
*/

.my-component {
Expand Down

0 comments on commit 01d4e78

Please sign in to comment.