<commit_before>@using static BTCPayServer.Data.StoreBlob
@model IntegrationsViewModel
@{
    Layout = "../Shared/_NavLayout.cshtml";
    ViewData.SetActivePageAndTitle(StoreNavPages.Integrations, "Integrations");


    var shopify = Model.Shopify;
    var shopifyCredsSet = shopify?.CredentialsValid == true;
}

<partial name="_StatusMessage" />

@if (!ViewContext.ModelState.IsValid)
{
    <div class="row">
        <div class="col-md-6">
            <div asp-validation-summary="All" class="text-danger"></div>
        </div>
    </div>
}

<div class="row">
    <div class="col-md-8">
        <form method="post">
            <h4 class="mb-3">
                Shopify
                <a href="https://docs.btcpayserver.org/Shopify" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
            </h4>

            <div class="form-group">
                <label asp-for="Shopify.ShopName"></label>
                <input asp-for="Shopify.ShopName" class="form-control" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.ShopName" class="text-danger"></span>
            </div>

            <div class="form-group">
                <label asp-for="Shopify.ApiKey"></label>
                <input asp-for="Shopify.ApiKey" class="form-control" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.ApiKey" class="text-danger"></span>
            </div>

            <div class="form-group">
                <label asp-for="Shopify.Password"></label>
                <input asp-for="Shopify.Password" class="form-control" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.Password" class="text-danger"></span>
            </div>

            <div class="form-group">
                <label asp-for="Shopify.SharedSecret"></label>
                <input asp-for="Shopify.SharedSecret" class="form-control" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.SharedSecret" class="text-danger"></span>
            </div>

            @if (!shopifyCredsSet)
            {
                <button name="command" type="submit" class="btn btn-primary" value="ShopifySaveCredentials">Save Credentials</button>
            }
            else if (shopify?.IntegratedAt.HasValue == true)<commit_msg>Not displaying Shopify Api Password<commit_after>@using static BTCPayServer.Data.StoreBlob
@model IntegrationsViewModel
@{
    Layout = "../Shared/_NavLayout.cshtml";
    ViewData.SetActivePageAndTitle(StoreNavPages.Integrations, "Integrations");


    var shopify = Model.Shopify;
    var shopifyCredsSet = shopify?.CredentialsValid == true;
}

<partial name="_StatusMessage" />

@if (!ViewContext.ModelState.IsValid)
{
    <div class="row">
        <div class="col-md-6">
            <div asp-validation-summary="All" class="text-danger"></div>
        </div>
    </div>
}

<div class="row">
    <div class="col-md-8">
        <form method="post">
            <h4 class="mb-3">
                Shopify
                <a href="https://docs.btcpayserver.org/Shopify" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
            </h4>

            <div class="form-group">
                <label asp-for="Shopify.ShopName"></label>
                <input asp-for="Shopify.ShopName" class="form-control" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.ShopName" class="text-danger"></span>
            </div>

            <div class="form-group">
                <label asp-for="Shopify.ApiKey"></label>
                <input asp-for="Shopify.ApiKey" class="form-control" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.ApiKey" class="text-danger"></span>
            </div>

            <div class="form-group">
                <label asp-for="Shopify.Password"></label>
                <input asp-for="Shopify.Password" class="form-control" type="password" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.Password" class="text-danger"></span>
            </div>

            <div class="form-group">
                <label asp-for="Shopify.SharedSecret"></label>
                <input asp-for="Shopify.SharedSecret" class="form-control" readonly="@shopifyCredsSet" />
                <span asp-validation-for="Shopify.SharedSecret" class="text-danger"></span>
            </div>

            @if (!shopifyCredsSet)
            {
                <button name="command" type="submit" class="btn btn-primary" value="ShopifySaveCredentials">Save Credentials</button>
            }
            else if (shopify?.IntegratedAt.HasValue == true)
{'fraction_non_alphanumeric': 0.15835095137420718, 'fraction_numerical': 0.0021141649048625794, 'mean_word_length': 2.3505665722379603, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3008125', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1343, 'n_words': 218}