- Add ShareCardEmbed.cshtml for embeddable public share card - Add local qrcode.min.js (removed CDN dependency) - Fix QR code generation by properly attaching canvas to DOM - Add embed code modal with iframe and direct link copy buttons - Use Url.Action() for proper URL generation - Add bot discovery status migration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
74 lines
2.1 KiB
C#
74 lines
2.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace LittleShop.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddBotDiscoveryStatus : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DiscoveryStatus",
|
|
table: "Bots",
|
|
type: "TEXT",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "LastDiscoveryAt",
|
|
table: "Bots",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RemoteAddress",
|
|
table: "Bots",
|
|
type: "TEXT",
|
|
maxLength: 255,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RemoteInstanceId",
|
|
table: "Bots",
|
|
type: "TEXT",
|
|
maxLength: 100,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "RemotePort",
|
|
table: "Bots",
|
|
type: "INTEGER",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DiscoveryStatus",
|
|
table: "Bots");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LastDiscoveryAt",
|
|
table: "Bots");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RemoteAddress",
|
|
table: "Bots");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RemoteInstanceId",
|
|
table: "Bots");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RemotePort",
|
|
table: "Bots");
|
|
}
|
|
}
|
|
}
|