Skip to content

Commit

Permalink
Merge pull request #84 from AlexHedley/deploy-wasm
Browse files Browse the repository at this point in the history
Deploy wasm updates
  • Loading branch information
ADefWebserver authored Jan 3, 2025
2 parents debbc1c + 4a647af commit 40e0757
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Blazor](https://img.shields.io/badge/blazor-5C2D91.svg?style=for-the-badge&logo=blazor&logoColor=white)](https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor) [![C#](https://img.shields.io/badge/c%23-239120.svg?style=for-the-badge&logo=c-sharp&logoColor=white)](https://learn.microsoft.com/en-us/dotnet/csharp/)

[![Build & Test Main](https://github.com/Blazored/TextEditor/actions/workflows/ci-main.yml/badge.svg)](https://github.com/Blazored/TextEditor/actions/workflows/ci-main.yml)
[![pages-build-deployment](https://github.com/Blazored/TextEditor/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/Blazored/TextEditor/actions/workflows/pages/pages-build-deployment)
[![Build & Test PR](https://github.com/Blazored/TextEditor/actions/workflows/ci-pr.yml/badge.svg)](https://github.com/Blazored/TextEditor/actions/workflows/ci-pr.yml)
[![CodeQL](https://github.com/Blazored/TextEditor/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Blazored/TextEditor/actions/workflows/codeql-analysis.yml)
[![Release Drafter](https://github.com/Blazored/TextEditor/actions/workflows/release-drafter.yml/badge.svg)](https://github.com/Blazored/TextEditor/actions/workflows/release-drafter.yml)
Expand All @@ -15,6 +16,12 @@

## Sample Applications

The [TextEditorDemo](samples/TextEditorDemo) has deployed via GitHub Pages:

- https://blazored.github.io/TextEditor/

You can also see it in action with:

* [Simple blogging application written in Microsoft Server Side Blazor](https://github.com/ADefWebserver/Blazor-Blogs "Blazor Blogs") - [Contains an example of uploading images]

## Helpful Articles
Expand All @@ -24,6 +31,9 @@

## Installing

[![NuGet Version](https://img.shields.io/nuget/v/blazored.TextEditor.svg?logo=nuget "NuGet Version")](https://www.nuget.org/packages/Blazored.TextEditor/)
[![NuGet Downloads](https://img.shields.io/nuget/dt/Blazored.TextEditor?logo=nuget "NuGet Downloads")](https://www.nuget.org/packages/Blazored.TextEditor/)

You can install from NuGet using the following command:

`Install-Package Blazored.TextEditor`
Expand Down Expand Up @@ -307,4 +317,3 @@ See [Syntax Highlighter Example](docs/SyntaxHighlighterExample.md) docs for more
# Blazored TextEditor Forks

* [WYSIWYGTextEditor](https://github.com/somegenericdev/WYSIWYGTextEditor)
1 change: 1 addition & 0 deletions samples/TextEditorDemo/wwwroot/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

38 changes: 38 additions & 0 deletions samples/TextEditorDemo/wwwroot/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Single Page Apps for GitHub Pages</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
// This script takes the current url and converts the path and query
// string into just a query string, and then redirects the browser
// to the new url with only a query string and hash fragment,
// e.g. http://www.foo.tld/one/two?a=b&c=d#qwe, becomes
// http://www.foo.tld/?p=/one/two&q=a=b~and~c=d#qwe
// Note: this 404.html file must be at least 512 bytes for it to work
// with Internet Explorer (it is currently > 512 bytes)
// If you're creating a Project Pages site and NOT using a custom domain,
// then set segmentCount to 1 (enterprise users may need to set it to > 1).
// This way the code will only replace the route part of the path, and not
// the real directory in which the app resides, for example:
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe
// Otherwise, leave segmentCount as 0.
var segmentCount = 1;
var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' +
l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') +
(l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);
</script>
</head>
<body>
</body>
</html>
2 changes: 1 addition & 1 deletion src/Blazored.TextEditor/Blazored.TextEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.2.0</Version>
<!-- <Version>1.1.1</Version> -->
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 40e0757

Please sign in to comment.