-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The app settings have been modified to include a new 'ClientID' field and an updated 'ApiAddress'. These changes are useful for handling the Discord Client ID for the application and updating the address of the API, respectively. Additionally, the homepage UI has been overhauled to include an installation button and update the welcome message.
- Loading branch information
1 parent
d7ec171
commit 2aeadae
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
@page "/" | ||
@using Microsoft.Extensions.Options | ||
@using Blink3.Web.Configuration | ||
|
||
<PageTitle>Home</PageTitle> | ||
|
||
<h1>Hello, world!</h1> | ||
<h1>Blink3</h1> | ||
|
||
Welcome to your new app. | ||
Very early preview of Blink3 | ||
|
||
<Button Type="ButtonType.Link" | ||
Color="ButtonColor.Primary" | ||
class="d-block mt-3" | ||
To="@InstallUrl"> | ||
Install | ||
</Button> | ||
|
||
@code { | ||
[Inject] private IOptions<AppOptions> Config { get; set; } = default!; | ||
private string InstallUrl => $"https://discord.com/oauth2/authorize?client_id={Config.Value.ClientID}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"ApiAddress": "http://localhost:5288/" | ||
"ApiAddress": "http://localhost:8288/", | ||
"ClientID": "1223292750766674080" | ||
} |