8000 Automatically inject UserPicker into view · Issue #158 · ritterim/stuntman · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
This repository was archived by the owner on Mar 23, 2022. It is now read-only.
This repository was archived by the owner on Mar 23, 2022. It is now read-only.
Automatically inject UserPicker into view #158
Open
@snebjorn

Description

@snebjorn

It would be awesome if the UserPicker would be injected into the view without the need for

@using RimDev.Stuntman.Core
@inject StuntmanOptions StuntmanOptions
<!DOCTYPE html>
<html>
...
    <environment names="Development">
        @Html.Raw(StuntmanOptions.UserPicker(User))
    </environment>
</body>
</html>

BrowserLink works that way.
All you have to do is app.UseBrowserLink(); and this is injected into the view.

    <!-- Visual Studio Browser Link -->
    <script type="application/json" id="__browserLink_initializationData">
        {"requestId":"a717d5a07c1741949a7cefd6fa2bad08","requestMappingFromServer":false}
    </script>
    <script type="text/javascript" src="http://localhost:54139/b6e36e429d034f578ebccd6a79bf19bf/browserLink" async="async"></script>
    <!-- End Browser Link -->

source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0