Skip to content

Commit bbd8c7b

Browse files
committed
sync gallery
1 parent 413d68e commit bbd8c7b

3 files changed

Lines changed: 8 additions & 16 deletions

File tree

Gallery.Server/wwwroot/content/deploy.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,12 @@ docker-compose -f ~/nginx-proxy-compose.yml up -d
4141

4242
This will run an nginx reverse proxy along with a companion container that will watch for additional containers in the same docker network and attempt to initialize them with valid TLS certificates.
4343

44-
## GitHub Repository setup
45-
This template pushes the API server dockerized application to GitHub Container Repository. To do this, you will first need to [create a Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) specifically for use by `release.yml` GitHub Actions.
46-
47-
This token will need to have access to `write:packages` to the GitHub Package Registry, which includes the GitHub Container Registry.
48-
49-
The first time the `release.yml` process successfully runs and creates your GitHub Container Repository for your project, you then have the option to [upgrade the workflow to use GITHUB_TOKEN](https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio) replacing the `CR_PAT`.
50-
5144
### GitHub Actions secrets
5245

53-
The `release.yml` assumes 5 secrets have been set:
46+
The `release.yml` uses the following secrets.
5447

5548
| Required Secrets | Description |
5649
| -- | -- |
57-
| `CR_PAT` | GitHub Personal Token with read/write access to packages |
5850
| `DEPLOY_API` | Hostname used to SSH deploy .NET App to, this can either be an IP address or subdomain with A record pointing to the server |
5951
| `DEPLOY_USERNAME` | Username to log in with via SSH e.g, **ubuntu**, **ec2-user**, **root** |
6052
| `DEPLOY_KEY` | SSH private key used to remotely access deploy .NET App |
@@ -69,7 +61,6 @@ To also enable deploying static assets to a CDN:
6961
These secrets can use the [GitHub CLI](https://cli.github.com/manual/gh_secret_set) for ease of creation. Eg, using the GitHub CLI the following can be set.
7062

7163
```bash
72-
gh secret set CR_PAT -b"<CR_PAT>"
7364
gh secret set DEPLOY_API -b"<DEPLOY_API>"
7465
gh secret set DEPLOY_USERNAME -b"<DEPLOY_USERNAME>"
7566
gh secret set DEPLOY_KEY < key.pem # DEPLOY_KEY

Gallery.Server/wwwroot/css/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gallery.Server/wwwroot/tailwind/ServiceStack.Blazor.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,8 @@ <h2 class=@HeadingClass id="slide-over-title">@Title</h2>
896896
<input id="confirmDelete" type="checkbox" @bind-value="confirmDelete" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 rounded border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:ring-offset-black">
897897
<label for="confirmDelete" class="mx-1 select-none dark:text-gray-300">@ConfirmLabel</label>
898898
<button type="button" disabled=@(!confirmDelete) @onclick="OnDelete"
899-
class=@ClassNames(confirmDelete ? "bg-red-500 hover:bg-red-700" : "bg-red-400 dark:border-red-800 dark:bg-gray-800",
900-
"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 dark:ring-offset-black", Class)>
899+
class=@ClassNames("select-none inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white",
900+
confirmDelete? "cursor-pointer bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500" : "bg-red-400", Class)>
901901
@if (ChildContent != null)
902902
{
903903
@ChildContent
@@ -1259,6 +1259,8 @@ <h1 class="flex">
12591259
}
12601260
@inherits TextInputBase
12611261
@implements IHasJsonApiClient
1262+
@if (AppMetadata != null)
1263+
{
12621264
<div class=@ClassNames("lookup-field", FieldClass)>
12631265
<input type="hidden" name=@Input.Id value=@Value />
12641266
@if (!string.IsNullOrEmpty(UseLabel))
@@ -1281,8 +1283,7 @@ <h1 class="flex">
12811283
{
12821284
<div class="mt-1 relative">
12831285
<button type="button" class="lookup flex relative w-full bg-white dark:bg-black border border-gray-300 dark:border-gray-700 rounded-md shadow-sm pl-3 pr-10 py-2 text-left focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
1284-
@onclick="lookup"
1285-
aria-haspopup="listbox" aria-expanded="true" aria-labelledby="listbox-label">
1286+
@onclick="lookup" aria-haspopup="listbox" aria-expanded="true" aria-labelledby="listbox-label">
12861287
<span class="w-full inline-flex truncate">
12871288
<span class="text-blue-700 dark:text-blue-300 flex cursor-pointer">
12881289
<Icon class="mr-1 w-5 h-5" Image=@Icon />
@@ -1302,7 +1303,7 @@ <h1 class="flex">
13021303
<p class="mt-2 text-sm text-red-500" id=@($"{Input.Id}-error")>@ErrorFieldMessage</p>
13031304
}
13041305
</div>
1305-
@code {
1306+
<DynamicModalLookup @ref="LocalModalLookup" AppMetadata=@AppMetadata />
13061307
}
13071308
@inherits UiComponentBase
13081309
<div @onclick="Close" id=@Id aria-labelledby="modal-title" role="dialog" aria-modal="true" class=@ClassNames("relative z-10", DialogTransition.DisplayClass)>

0 commit comments

Comments
 (0)