Skip to content

Commit

Permalink
Remove pwa and server (#212)
Browse files Browse the repository at this point in the history
* Remove the Service Worker (PWA) and Server project

* Update workflows to use Client project

- Delete the Angor Server code
  • Loading branch information
sondreb authored Dec 12, 2024
1 parent 592891e commit 2ba7646
Show file tree
Hide file tree
Showing 23 changed files with 2 additions and 1,345 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
PROJECT_NAME: "Angor"
SOLUTION_PATH: "src/Angor.sln"
PROJECT_PATH: "src/Angor/Server/Angor.Server.csproj"
PROJECT_PATH: "src/Angor/Server/Angor.Client.csproj"

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
env:
PROJECT_NAME: 'Angor'
SOLUTION_PATH: 'src/Angor.sln'
PROJECT_PATH: 'src/Angor/Server/Angor.Server.csproj'
PROJECT_PATH: 'src/Angor/Client/Angor.Client.csproj'
BUILD_CONFIGURATION: 'Release'

steps:
Expand Down
6 changes: 0 additions & 6 deletions src/Angor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33627.172
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Angor.Server", "Angor\Server\Angor.Server.csproj", "{6CE5B5A6-E3E0-449B-819A-5498F14E9C85}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Angor.Client", "Angor\Client\Angor.Client.csproj", "{A8FE2240-5842-42D4-8FB7-197A7088363F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Angor.Shared", "Angor\Shared\Angor.Shared.csproj", "{08FD6946-7D39-41D1-ABB0-8DF32E403489}"
Expand All @@ -26,10 +24,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6CE5B5A6-E3E0-449B-819A-5498F14E9C85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6CE5B5A6-E3E0-449B-819A-5498F14E9C85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6CE5B5A6-E3E0-449B-819A-5498F14E9C85}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6CE5B5A6-E3E0-449B-819A-5498F14E9C85}.Release|Any CPU.Build.0 = Release|Any CPU
{A8FE2240-5842-42D4-8FB7-197A7088363F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A8FE2240-5842-42D4-8FB7-197A7088363F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A8FE2240-5842-42D4-8FB7-197A7088363F}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
5 changes: 0 additions & 5 deletions src/Angor/Client/Angor.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>

<ItemGroup>
Expand All @@ -23,10 +22,6 @@
<ProjectReference Include="..\Shared\Angor.Shared.csproj" />
</ItemGroup>

<ItemGroup>
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
</ItemGroup>
Expand Down
82 changes: 0 additions & 82 deletions src/Angor/Client/wwwroot/ServiceWorkerRegister.js

This file was deleted.

7 changes: 0 additions & 7 deletions src/Angor/Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<base href="/" />
<link rel="icon" type="image/svg+xml" href="/assets/img/angor-icon.svg" />
<link rel="icon" type="image/png" href="/assets/img/favicon.png" />
<link href="manifest.json" rel="manifest" />
<link rel="apple-touch-icon" sizes="512x512" href="/assets/img/icon-512.png" />
<link rel="apple-touch-icon" sizes="192x192" href="/assets/img/icon-192.png" />
<link href="Angor.Client.styles.css" rel="stylesheet" />
Expand Down Expand Up @@ -43,17 +42,11 @@
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
<script>
// Add timestamp to force reload of service worker
navigator.serviceWorker.register('service-worker.js?v=' + new Date().getTime());
</script>
<script type="module" src="service-crypto.js?v=1"></script>
<script src="/ServiceWorkerRegister.js?v=1"></script>
<script src="nostr-tools-methods.js?v=1" type="module"></script>
<script src="/assets/js/appUpdate.js?v=1"></script>
<script src="/assets/js/app.js?v=1"></script>
<script src="_framework/blazor.webassembly.js?v=1"></script>

</body>

</html>
105 changes: 0 additions & 105 deletions src/Angor/Client/wwwroot/manifest.json

This file was deleted.

23 changes: 0 additions & 23 deletions src/Angor/Client/wwwroot/service-worker.js

This file was deleted.

65 changes: 0 additions & 65 deletions src/Angor/Client/wwwroot/service-worker.published.js

This file was deleted.

30 changes: 0 additions & 30 deletions src/Angor/Server/Angor.Server.csproj

This file was deleted.

Loading

0 comments on commit 2ba7646

Please sign in to comment.