mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Removed unused cryptography directive and switched to BCrypt for hashing IPs and tokens with a configurable salt. Updated file paths for cross-platform compatibility. Added rate limiting to routes and new admin API endpoints for user management. Improved `config.json` handling and added random password generation. Enhanced `admin.html` with search debounce, infinite scrolling, and updated CSS. Added password change functionality and notifications to `user.html`. Improved error handling in `archives.html` and refactored `index.html` for better readability. Corrected password character count in `signup.html`.
85 lines
2.6 KiB
XML
85 lines
2.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="pastes\**" />
|
|
<Content Remove="pastes\**" />
|
|
<EmbeddedResource Remove="pastes\**" />
|
|
<None Remove="pastes\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="assets\admin.html" />
|
|
<None Remove="assets\admin\user.html" />
|
|
<None Remove="assets\archives.html" />
|
|
<None Remove="assets\dash.html" />
|
|
<None Remove="assets\error.html" />
|
|
<None Remove="assets\login.html" />
|
|
<None Remove="assets\paste.html" />
|
|
<None Remove="assets\recent_pastes.html" />
|
|
<None Remove="assets\signup.html" />
|
|
<None Remove="assets\user.html" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Resource Include="assets\admin.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\admin\user.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\archives.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\index.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
|
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.8" />
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="wwwroot\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Resource Include="assets\dash.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\error.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\login.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\paste.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\recent_pastes.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\signup.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
<Resource Include="assets\user.html">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Resource>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Update="config.json">
|
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
</Project>
|