1.更换软件协议为AGPL

2.切换项目名称为Hua.Todo
This commit is contained in:
ShaoHua
2026-04-06 22:06:30 +08:00
parent 40a91e39b6
commit 758f6772c6
147 changed files with 1203 additions and 644 deletions
+7 -7
View File
@@ -5,18 +5,18 @@ param(
$ErrorActionPreference = "Stop"
Write-Host "====================================" -ForegroundColor Cyan
Write-Host " TodoList.Web Restart Script" -ForegroundColor Cyan
Write-Host " Hua.Todo.Web Restart Script" -ForegroundColor Cyan
Write-Host "====================================" -ForegroundColor Cyan
Write-Host ""
$webProjectPath = Join-Path $PSScriptRoot "src\TodoList.Web"
$webProjectPath = Join-Path $PSScriptRoot "src\Hua.Todo.Web"
if (!(Test-Path $webProjectPath)) {
Write-Host "ERROR: Web project path not found: $webProjectPath" -ForegroundColor Red
exit 1
}
function Get-TodoListWebProcesses {
function Get-Hua.TodoWebProcesses {
param(
[Parameter(Mandatory = $true)]
[string]$WebProjectPath
@@ -31,10 +31,10 @@ function Get-TodoListWebProcesses {
Write-Host "[1/3] Stopping existing service..." -ForegroundColor Yellow
$webProcesses = @(Get-TodoListWebProcesses -WebProjectPath $webProjectPath)
$webProcesses = @(Get-Hua.TodoWebProcesses -WebProjectPath $webProjectPath)
if ($webProcesses.Count -eq 0) {
Write-Host "OK: TodoList.Web is not running" -ForegroundColor Green
Write-Host "OK: Hua.Todo.Web is not running" -ForegroundColor Green
} else {
Write-Host "Found $($webProcesses.Count) process(es)" -ForegroundColor Yellow
foreach ($process in $webProcesses) {
@@ -56,7 +56,7 @@ $timeout = 10
$elapsed = 0
while ($elapsed -lt $timeout) {
$webRunning = @(Get-TodoListWebProcesses -WebProjectPath $webProjectPath)
$webRunning = @(Get-Hua.TodoWebProcesses -WebProjectPath $webProjectPath)
if ($webRunning.Count -eq 0) {
Write-Host "OK: All processes exited" -ForegroundColor Green
@@ -84,7 +84,7 @@ try {
$webProcess = Start-Process -FilePath "npm.cmd" -ArgumentList @("run", "dev") -WorkingDirectory $webProjectPath -PassThru
Write-Host "OK: Started TodoList.Web" -ForegroundColor Green
Write-Host "OK: Started Hua.Todo.Web" -ForegroundColor Green
Write-Host "PID: $($webProcess.Id)" -ForegroundColor Gray
} catch {
Write-Host "ERROR: Failed to start service. $_" -ForegroundColor Red