Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
97d25c3
refactoring, better development settings
jonasbg Nov 24, 2024
ab0d5d1
missing readme
jonasbg Nov 24, 2024
21f2b3d
upgrade to .NET9
jonasbg Nov 24, 2024
5367a6c
fixes faster markdown files find
jonasbg Nov 24, 2024
1a449e5
custom logging
jonasbg Nov 24, 2024
a4bb818
revet back to old code
jonasbg Nov 24, 2024
a43d399
better monitoring
jonasbg Nov 24, 2024
9e757cf
build fixes
jonasbg Nov 24, 2024
e7b9294
ignore /healthz
jonasbg Nov 24, 2024
f4d52c1
build fix
jonasbg Nov 24, 2024
04fbb88
fixes
jonasbg Nov 24, 2024
b6adcd9
added stats
jonasbg Nov 24, 2024
6dab651
debug headers
jonasbg Nov 24, 2024
8326225
better logging, now with IP
jonasbg Nov 24, 2024
8297ef6
revert finding files
jonasbg Nov 24, 2024
d0a7f5f
fixes O(n^2) deduplication algorithm
jonasbg Nov 24, 2024
85b83ba
log whats taking too long
jonasbg Nov 24, 2024
ba1dee4
optimization in reading files
jonasbg Nov 24, 2024
83f8b4c
added viewcount
jonasbg Nov 24, 2024
4cc9481
added likes button and tracking
jonasbg Nov 24, 2024
2523866
small UI fixes
jonasbg Nov 24, 2024
dbee66b
small UI fixes
jonasbg Nov 24, 2024
fb4a804
logic error
jonasbg Nov 24, 2024
67f2bb0
better tracking statistics
jonasbg Nov 25, 2024
a84bee3
better handling of likes
jonasbg Nov 25, 2024
5ebffbf
fixes views count
jonasbg Nov 25, 2024
56d4cf0
fixes in viewcount graph
jonasbg Nov 25, 2024
696307a
fixes real IP
jonasbg Nov 25, 2024
fc3f702
hide stats for unauthenticaed users
jonasbg Nov 25, 2024
c323b5b
better stats
jonasbg Nov 25, 2024
794a909
added CLI
jonasbg Nov 25, 2024
a01c0e5
fix
jonasbg Nov 25, 2024
ec653d9
updated CLI
jonasbg Nov 25, 2024
38652e0
Hide public posts
jonasbg Nov 26, 2024
f94030d
Hide public posts
jonasbg Nov 26, 2024
9a5a386
old implementation for finding files (faster?)
jonasbg Nov 26, 2024
d9f202c
better CSS for the posts
jonasbg Nov 26, 2024
e4f8228
added monthly views to the stats
jonasbg Nov 26, 2024
ece06cb
show posts without images
jonasbg Nov 26, 2024
7d44905
show posts without images
jonasbg Nov 26, 2024
3a6450b
2024
jonasbg Nov 26, 2024
37a493b
cleanup, nicer CSS
jonasbg Nov 27, 2024
fd63a5b
fixes date copy
jonasbg Nov 27, 2024
4465666
if file not found, redirect back
jonasbg Nov 27, 2024
f05d409
check for model draft
jonasbg Nov 27, 2024
47fef4c
check for draft changes when accessing models
jonasbg Nov 27, 2024
9b4282a
fixes css
jonasbg Nov 29, 2024
54aa021
removed caption for the carousel in fullscreen mode
jonasbg Dec 8, 2024
975dac4
removed caption in fullscreen carousel
jonasbg Dec 8, 2024
a9c241d
Wrong content type for images
jonasbg Dec 25, 2024
7786a47
codeql fix
jonasbg Feb 11, 2025
6404597
codeql fixed login xss vulnerability
jonasbg Feb 11, 2025
c1a0608
spring cleaning
jonasbg Feb 11, 2025
e75eb19
refactor: improve duplicate detection logic and update package refere…
jonasbg Apr 22, 2025
c7cc55e
fix: revert Markdig package version to 0.38.0
jonasbg Apr 22, 2025
de730a7
fix: hr styles added
jonasbg Apr 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "../src",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../src/Dockerfile.dev"
},

"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"installOhMyZsh": true,
"upgradePackages": false
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created.
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y sqlite3 && dotnet restore src/ && dotnet tool install csharpier --global",
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csharp",
"ms-dotnettools.csdevkit",
"csharpier.csharpier-vscode"
]
}
},

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
}
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: docker/build-push-action@v4
id: build-docker-image
with:
context: .
context: src/
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*obj/
*.DS_Store
docker-compose.yml
cmd/dist/*
42 changes: 21 additions & 21 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,14 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug .NET Core in Docker",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickRemoteProcess}",
"sourceFileMap": {
"/app": "${workspaceRoot}/"
},
"pipeTransport": {
"pipeCwd": "${workspaceRoot}",
"pipeProgram": "docker",
"pipeArgs": ["exec", "-i", "webapi"],
"quoteArgs": false,
"debuggerPath": "/vsdbg/vsdbg"
}
},
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/net7.0/picoblog.dll",
"program": "${workspaceFolder}/src/bin/Debug/net9.0/picoblog.dll",
"args": [],
"cwd": "${workspaceFolder}",
"cwd": "${workspaceFolder}/src",
"stopAtEntry": false,
// "serverReadyAction": {
// "action": "openExternally",
Expand All @@ -37,14 +21,30 @@
"ASPNETCORE_ENVIRONMENT": "Development",
"SYNOLOGY_SUPPORT": "false",
"SYNOLOGY_SIZE": "SM",
"DATA_DIR": "./data/posts",
"CONFIG_DIR": "./data/tmp",
"DATA_DIR": "../tests/posts",
"CONFIG_DIR": "/tmp",
"DOMAIN": "localhost:8080",
"PASSWORD": "",
"CUSTOM_HEADER": ""
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
"/Views": "${workspaceFolder}/src/Views"
}
},
{
"name": "Debug .NET Core in Docker",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickRemoteProcess}",
"sourceFileMap": {
"/app": "${workspaceRoot}/"
},
"pipeTransport": {
"pipeCwd": "${workspaceRoot}",
"pipeProgram": "docker",
"pipeArgs": ["exec", "-i", "webapi"],
"quoteArgs": false,
"debuggerPath": "/vsdbg/vsdbg"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "process",
"args": [
"build",
"${workspaceFolder}/picoblog.csproj",
"${workspaceFolder}/src/picoblog.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand All @@ -19,7 +19,7 @@
"type": "process",
"args": [
"publish",
"${workspaceFolder}/picoblog.csproj",
"${workspaceFolder}/src/picoblog.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand All @@ -33,7 +33,7 @@
"watch",
"run",
"--project",
"${workspaceFolder}/picoblog.csproj"
"${workspaceFolder}/src/picoblog.csproj"
],
"problemMatcher": "$msCompile"
}
Expand Down
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,38 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.9] - 2024-11-24
### Added

- Simple stats page
- Added Likes button
- Added ViewCount

### Changed

- Bumped to .NET9

### Developers

- Added devcontainers support

## [0.0.8.1] - 2024-05-07
### Cleanup

- Spring cleanup of the project.

### Fixed

- Redirect after login did not work correctly.

## [0.0.8] - 2023-08-05
### Added

- Introduced an optional daily backup feature controlled by the `PICOBLOG_ENABLE_BACKUP` environment variable.
- Implemented global usings through `GlobalUsings.cs` for cleaner code (if applicable to your .NET version).
- Parallel processing of markdown files during search
- Log failed login attempts

### Changed
- Updated the README to reflect new environment variables and features.

Expand Down
70 changes: 0 additions & 70 deletions Controllers/HomeController.cs

This file was deleted.

Loading
Loading