@namespace ThingsGateway.Server



@using BootstrapBlazor.Components
@using Microsoft.AspNetCore.Authorization
@using ThingsGateway.Admin.Application



<GatewayIndexComponent Localizer=Localizer></GatewayIndexComponent>

<div class="row g-2 mx-1 form-inline">

    <div class="col-12  col-md-6">

        <Card IsShadow=true class="m-2 flex-fill" Color="Color.Primary">
            <HeaderTemplate>
                @Localizer["Shortcuts"]
            </HeaderTemplate>

            <BodyTemplate>
                @foreach (var menu in AppContext.UserWorkbenchOutputs ?? new List<SysResource>())
                {
                    <TabLink class="mx-2" Url="@menu.Href" target="@menu.Target.ToString()" Icon="@menu.Icon" Text="@menu.Title" />
                }
            </BodyTemplate>
        </Card>
    </div>

    <div class="col-12  col-md-6">

        <Card IsShadow=true class="m-2 flex-fill">
            <HeaderTemplate>
                @Localizer["OperLog"]
            </HeaderTemplate>

            <BodyTemplate>
                <Timeline Items="SysOperateLogItems"></Timeline>
            </BodyTemplate>
        </Card>

    </div>
</div>

<div class="row g-2 mx-1 form-inline">

    <div class="col-12  col-md-6">

        <Card IsShadow=true class="m-2 flex-fill">
            <HeaderTemplate>
                @Localizer["BackendLog"]
            </HeaderTemplate>

            <BodyTemplate>
                <Timeline Items="BackendLogItems"></Timeline>
            </BodyTemplate>
        </Card>
    </div>

    <div class="col-12  col-md-6">

        <Card IsShadow=true class="m-2 flex-fill">
            <HeaderTemplate>
                @Localizer["RpcLog"]
            </HeaderTemplate>

            <BodyTemplate>
                <Timeline Items="RpcLogItems"></Timeline>
            </BodyTemplate>
        </Card>

    </div>
</div>

