前端极简黑白重设计,并纳入客户端注册、站点设置与后台相关改动
- storefront 全站改为极简黑白配色:直角、细线分隔、卡片 hover 浅底、深色模式(跟随系统+手动切换) - 抽出 storefront/partials/card 复用卡片 - 一并提交此前暂存的客户端注册 API、站点设置、后台页面与测试 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('store_clients', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('site_url', 512)->unique();
|
||||
$table->string('site_name', 255)->default('');
|
||||
$table->string('access_token', 120)->unique();
|
||||
$table->string('status', 32)->default('online');
|
||||
$table->unsignedInteger('user_count')->default(0);
|
||||
$table->string('typecho_version', 32)->default('');
|
||||
$table->string('php_version', 32)->default('');
|
||||
$table->string('plugin_version', 32)->default('');
|
||||
$table->string('last_ip', 45)->default('');
|
||||
$table->string('last_user_agent', 512)->default('');
|
||||
$table->dateTime('registered_at')->useCurrent();
|
||||
$table->dateTime('last_seen_at')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('store_clients');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('store_settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('key', 120)->unique();
|
||||
$table->text('value')->default('');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('store_settings');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user