Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken links and site nav glitch, misc cleanup #141

Merged
merged 13 commits into from
Feb 16, 2024
Merged
171 changes: 100 additions & 71 deletions .github/workflows/build-and-stage.yml
Original file line number Diff line number Diff line change
@@ -1,71 +1,100 @@
name: Build and stage

env:
AZURE_WEBAPP_PACKAGE_PATH: '.'
DOTNET_VERSION: '8.0'
SLOT_NAME: staging

on:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
name: Build and publish app
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Set up dependency caching for faster builds
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build with dotnet
run: dotnet build src/Client --configuration Release
- name: dotnet publish
run: dotnet publish src/Client -c Release -o ${{ env.DOTNET_ROOT }}/mainsite
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: Steeltoe-MainSite
path: ${{ env.DOTNET_ROOT }}/mainsite

deploy-to-staging:
name: Deploy to staging environment
permissions:
contents: none
runs-on: ubuntu-latest
needs: build
environment:
name: 'Staging'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: Steeltoe-MainSite

- name: Log into Azure CLI with service principal
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: ${{ vars.AZURE_WEBAPP_NAME }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
slot-name: ${{ env.SLOT_NAME }}
name: Build and stage

env:
AZURE_WEBAPP_PACKAGE_PATH: '.'
DOTNET_VERSION: '8.0'

on:
push:
branches: [ "main" ]
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: 'write'

jobs:
build:
name: Build and publish app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Set up dependency caching for faster builds
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: dotnet build
run: dotnet build src/Client --configuration Release

- name: dotnet publish
run: dotnet publish src/Client -c Release -o ${{ env.DOTNET_ROOT }}/mainsite

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: Steeltoe-MainSite
path: ${{ env.DOTNET_ROOT }}/mainsite

deploy-to-staging:
name: Deploy to staging environment
runs-on: ubuntu-latest
needs: build
environment:
name: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || vars.STAGING_SLOT_NAME }}
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
env:
SLOT_NAME: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || vars.STAGING_SLOT_NAME }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: Steeltoe-MainSite

- name: Log into Azure CLI with service principal
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: If PR, create a new staging slot
if: ${{ github.event_name == 'pull_request' }}
run: az webapp deployment slot create --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_WEBAPP_NAME}} --slot ${{ env.SLOT_NAME }}
# Need to pair a PR slot with a custom docs site address?
# az webapp config appsettings set -g steeltoe --name www-steeltoe --slot pr-141 --settings DocsSite__BaseAddress=https://docs-steeltoe-pr-310.azurewebsites.net

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: ${{ vars.AZURE_WEBAPP_NAME }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
slot-name: ${{ env.SLOT_NAME }}

- name: If PR, comment with the preview link
if: ${{ github.event_name == 'pull_request' }}
uses: mshick/add-pr-comment@v2
with:
message: |
## Preview link: https://${{ vars.AZURE_WEBAPP_NAME }}-${{ env.SLOT_NAME }}.azurewebsites.net

- Your changes have been deployed to the preview site. The preview site will update as you add more commits to this branch.
- The preview link is shareable, but will be deleted when the pull request is merged or closed.

> *This is an automated message.*
repo-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .github/workflows/pr-cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Delete a preview environment

on:
98 changes: 0 additions & 98 deletions .github/workflows/pr-deploy.yml

This file was deleted.

17 changes: 4 additions & 13 deletions src/Client/Components/App.razor
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<!-- OneTrust Cookie Consent -->
<meta content="3ab34b71-7023-4e93-90e8-12dd544a5179" name="onetrust-data-domain">
<meta content="https://tags.tiqcdn.com/utag/vmware/microsites-privacy/prod/utag.js" name="microsites-utag">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="//www.vmware.com/files/templates/inc/utag_data.js"></script>
<script src="//tags.tiqcdn.com/utag/vmware/microsites-privacy/prod/utag.sync.js"></script>
<script>function OptanonWrapper() { { window.dataLayer.push({ event: 'OneTrustGroupsUpdated' }); } }</script>
@@ -41,14 +41,13 @@
<meta content="2019-10-03" name="DC.Date" scheme="ISO8601">
<meta content="text/html" name="DC.Type">
<meta content="https://steeltoe.io/" name="DC.Identifier">
<meta content="Copyright © 2005-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries." name="DC.Rights">
<meta content="Copyright © 2005-@(DateTime.Now.Year) Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries." name="DC.Rights">

<base href="/" />
<title>Steeltoe OSS</title>
<link rel="canonical" href="https://steeltoe.io/">
<link rel="icon" href="https://steeltoe.io/images/favicon.png" type="image/png" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/a11y-dark.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<link rel="stylesheet" href="css/fonts.css" />
<link rel="stylesheet" href="css/site.css" />
<link rel="stylesheet" href="css/mobile.css" />
@@ -70,14 +69,6 @@
<Routes />
<script src="js/functions.js" type="text/javascript"></script>
<script src="_framework/blazor.web.js"></script>
<script src="js/highlightjs-badge.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/highlight.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/languages/powershell.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/languages/csharp.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/languages/bash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/languages/json.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/languages/xml.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/languages/yaml.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
</body>
</html>
45 changes: 0 additions & 45 deletions src/Client/Components/AppSettingsTab/Azure.razor

This file was deleted.

142 changes: 0 additions & 142 deletions src/Client/Components/AppSettingsTab/CloudFoundry.razor

This file was deleted.

26 changes: 0 additions & 26 deletions src/Client/Components/AppSettingsTab/Initiallizr.razor

This file was deleted.

46 changes: 0 additions & 46 deletions src/Client/Components/AppSettingsTab/Kubernetes.razor

This file was deleted.

237 changes: 0 additions & 237 deletions src/Client/Components/AppSettingsTab/Local.razor

This file was deleted.

19 changes: 0 additions & 19 deletions src/Client/Components/IISSettingsTab/Local.razor

This file was deleted.

349 changes: 174 additions & 175 deletions src/Client/Components/Layout/SiteFooter.razor

Large diffs are not rendered by default.

151 changes: 75 additions & 76 deletions src/Client/Components/Layout/SiteHeader.razor
Original file line number Diff line number Diff line change
@@ -1,76 +1,75 @@
@using Microsoft.Extensions.Options

@inject IOptions<DocsSiteOptions> DocsSiteOptions

<nav class="bg-white navbar navbar-expand-xl container py-xl-2 navbar-light">
<Href class="navbar-brand" href="/">
<img id="logo" class="svg" src="/images/logo.svg" alt="Steeltoe" style="width:211px">
</Href>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">
<ul class=" navbar-nav text-center">
<li class="nav-item dropdown ml-xl-5 mr-xl-2">
<a class="nav-link dropdown-toggle open" href="#" id="why" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Why Steeltoe
</a>
<div class="dropdown-menu" aria-labelledby="why">
<Href class="dropdown-item" href="/why-steeltoe">Overview</Href>
<Href class="dropdown-item" href="/microservices">Microservices</Href>
<Href class="dropdown-item" href="/cloud">Cloud</Href>
<Href class="dropdown-item" href="/web-application">Web Applications</Href>
<Href class="dropdown-item" href="/event-driven">Event Driven</Href>
</div>
</li>
<li class="nav-item dropdown mx-xl-2">
<a class="nav-link dropdown-toggle" href="#" id="learn" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Get Started
</a>
<div class="dropdown-menu" aria-labelledby="learn">
<Href class="dropdown-item" href="https://start.steeltoe.io/" NewWindow>Steeltoe Initializr</Href>
<Href class="dropdown-item" href="@(_docsSite.GuidesHome)">Guides</Href>
<Href class="dropdown-item" href="@(_docsSite.DocsHome)">Documentation</Href>
<Href class="dropdown-item" href="@(_docsSite.ApiBrowserHome)">API Browser</Href>
<Href class="dropdown-item" href="@(_docsSite.BlogHome)">Blog</Href>
</div>
</li>
<li class="nav-item dropdown mx-xl-2">
<a class="nav-link dropdown-toggle" href="#" id="projects" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Projects
</a>
<div class="dropdown-menu" aria-labelledby="projects">
<Href class="dropdown-item" href="/app-configuration">Steeltoe Application Configuration</Href>
<Href class="dropdown-item" href="/circuit-breakers">Steeltoe Circuit Breakers</Href>
<Href class="dropdown-item" href="/cloud-management">Steeltoe Distributed Tracing</Href>
<Href class="dropdown-item" href="/docs/logging">Steeltoe Dynamic Logging</Href>
<Href class="dropdown-item" href="/cloud-management">Steeltoe Management</Href>
<Href class="dropdown-item" href="/messaging">Steeltoe Messaging</Href>
<Href class="dropdown-item" href="/fileshares">Steeltoe Network File Sharing</Href>
<Href class="dropdown-item" href="/security-providers">Steeltoe Security</Href>
<Href class="dropdown-item" href="/service-connectors">Steeltoe Service Connectors</Href>
<Href class="dropdown-item" href="/service-discovery">Steeltoe Service Discovery</Href>
<Href class="dropdown-item" href="@(_docsSite.DocsStreamHome)">Steeltoe Stream</Href>
</div>
</li>
@*<li class="nav-item mx-xl-2">
<Href class="nav-link" href="/training">Training</Href>
</li>*@
<li class="nav-item mx-xl-2">
<Href class="nav-link" href="/support">Support</Href>
</li>
<li class="nav-item mx-xl-2">
<Href class="nav-link" href="/community">Community</Href>
</li>
</ul>
</div>
</nav>

@code {
private DocsSiteOptions _docsSite;

protected override void OnInitialized()
{
_docsSite = DocsSiteOptions?.Value ?? throw new ArgumentNullException(nameof(_docsSite));
}
}
@using Microsoft.Extensions.Options

@inject IOptionsSnapshot<DocsSiteOptions> DocsSiteOptions

<nav class="bg-white navbar navbar-expand-xl container py-xl-2 navbar-light">
<Href class="navbar-brand" href="/">
<img id="logo" class="svg" src="/images/logo.svg" alt="Steeltoe" style="width:211px">
</Href>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">
<ul class="navbar-nav text-center">
<li class="nav-item dropdown ml-xl-5 mr-xl-2">
<a class="nav-link dropdown-toggle" href="#" id="why" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" onclick="return false;">
Why Steeltoe
</a>
<div class="dropdown-menu" aria-labelledby="why">
<Href class="dropdown-item" href="/why-steeltoe">Overview</Href>
<Href class="dropdown-item" href="/microservices">Microservices</Href>
<Href class="dropdown-item" href="/cloud">Cloud</Href>
<Href class="dropdown-item" href="/web-application">Web Applications</Href>
<Href class="dropdown-item" href="/event-driven">Event Driven</Href>
</div>
</li>
<li class="nav-item dropdown mx-xl-2">
<a class="nav-link dropdown-toggle" href="#" id="learn" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" onclick="return false;">
Get Started
</a>
<div class="dropdown-menu" aria-labelledby="learn">
<Href class="dropdown-item" href="https://start.steeltoe.io/" NewWindow>Steeltoe Initializr</Href>
<Href class="dropdown-item" href="@(_docsSite.GuidesHome)">Guides</Href>
<Href class="dropdown-item" href="@(_docsSite.DocsHome)">Documentation</Href>
<Href class="dropdown-item" href="@(_docsSite.ApiBrowserHome)">API Browser</Href>
<Href class="dropdown-item" href="@(_docsSite.BlogHome)">Blog</Href>
</div>
</li>
<li class="nav-item dropdown mx-xl-2">
<a class="nav-link dropdown-toggle" href="#" id="projects" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" onclick="return false;">
Projects
</a>
<div class="dropdown-menu" aria-labelledby="projects">
<Href class="dropdown-item" href="/app-configuration">Steeltoe Application Configuration</Href>
<Href class="dropdown-item" href="/circuit-breakers">Steeltoe Circuit Breakers</Href>
<Href class="dropdown-item" href="/docs/logging">Steeltoe Dynamic Logging</Href>
<Href class="dropdown-item" href="/cloud-management">Steeltoe Management</Href>
<Href class="dropdown-item" href="/messaging">Steeltoe Messaging</Href>
<Href class="dropdown-item" href="@(_docsSite.FileShareHome)">Steeltoe Network File Sharing</Href>
<Href class="dropdown-item" href="/security-providers">Steeltoe Security</Href>
<Href class="dropdown-item" href="/service-connectors">Steeltoe Service Connectors</Href>
<Href class="dropdown-item" href="/service-discovery">Steeltoe Service Discovery</Href>
<Href class="dropdown-item" href="@(_docsSite.DocsStreamHome)">Steeltoe Stream</Href>
</div>
</li>
@*<li class="nav-item mx-xl-2">
<Href class="nav-link" href="/training">Training</Href>
</li>*@
<li class="nav-item mx-xl-2">
<Href class="nav-link" href="/support">Support</Href>
</li>
<li class="nav-item mx-xl-2">
<Href class="nav-link" href="/community">Community</Href>
</li>
</ul>
</div>
</nav>

@code {
private DocsSiteOptions _docsSite;

protected override void OnInitialized()
{
_docsSite = DocsSiteOptions?.Value ?? throw new ArgumentNullException(nameof(_docsSite));
}
}
109 changes: 51 additions & 58 deletions src/Client/Components/Pages/Community.razor
Original file line number Diff line number Diff line change
@@ -1,58 +1,51 @@
@page "/community"

<Template Name="Community">
<Description>Connect with other developers and share your project with the Steeltoe community.</Description>
<OtherArea>
<div class="row no-gutters">
<div class="col">
<div class="component-whatis-title"><h2>Office Hours Meetup</h2></div>
<div class="my-5">
<div>The Steeltoe team hosts office hours meetup every other month. All of Steeltoe community is invited. It's a chance to discuss open issues, pull requests, review features in an upcoming release, and propose new ideas.</div>
<br />
<div>
<a href="site-data/SteeltoeCommunityMeetingInvite.ics" target="_blank">Add to Calendar (.ics)</a> - Occurs on the second Tuesday of every other month (January, March, May, July, September, November) at 10:30am ET <br />
<a href="https://docs.google.com/document/d/1Um9FmlgOb4QiU2bNdg9oXLadWyDgW1167QXH9HUG068/">Meeting Agenda and Notes link</a><br />
Zoom meeting ID: 926 8707 7667<br />
Passcode: 224068<br />
<a href="https://VMware.zoom.us/j/92687077667?pwd=NXpPWWxlMVlEREZuNHRta2JlS2dZdz09">Zoom invite link</a>
<br />
</div>
<br />
<div>Our previous community meetings are available on our <a href="https://www.youtube.com/channel/UC_H-y302UxKnjx_fRmrqBMA">Steeltoe OSS Channel</a></div>
<br />
</div>
</div>
</div>
<div class="row no-gutters mb-5">
<div class="col-6">
<div class="component-whatis-title"><h2>Developers</h2></div>
<div class="my-5">
<div><Href href="https://slack.steeltoe.io" NewWindow="true">Steeltoe Slack</Href></div>
<div>Slack is the best place to get your questions answered, contribute to conversations, and find the latest information about the Steeltoe project. If you have trouble joining, try <a href="https://join.slack.com/t/steeltoeteam/shared_invite/zt-1cd7lh4pi-BlfQsI6nEDEX2qbh5JrRZw">this link</a> or <a href="mailto:info@steeltoe.io?subject=Slack%20Invite">email us</a>.</div>
</div>
<div class="my-5">
<div><Href href="https://stackoverflow.com/questions/tagged/steeltoe" NewWindow="true">Stack Overflow</Href></div>
<div>Ask questions and get help with problems from the global Steeltoe community of users and practitioners.</div>
</div>
<div class="my-5">
<div class=""><Href href="https://github.com/steeltoeoss" NewWindow="true">Steeltoe on GitHub</Href></div>
<div>Find the code for Steeltoe projects, raise issues, suggest changes, and view milestones and releases.</div>
</div>
<div class="my-5">
<div class=""><Href href="https://twitter.com/steeltoeoss" NewWindow="true">Steeltoe on Twitter</Href></div>
<div>Stay up to date with the latest Steeltoe releases and blog posts.</div>
</div>
</div>
<div class="col offset-2">
<div class="component-whatis-title"><h2>New Projects</h2></div>
<div class="my-5">
<div class=""><Href href="https://github.com/steeltoeoss-incubator" NewWindow="true">Steeltoe Incubator</Href></div>
<div>A place to get your hands on some of the new projects or features being considered for Steeltoe or use with Steeltoe. If you have a new feature or component that you would like to be included in Steeltoe, start by discussing with the team on Steeltoe Slack.</div>
</div>
</div>
</div>
</OtherArea>
</Template>

@code{
}
@page "/community"

<Template Name="Community">
<Description>Connect with other developers and share your project with the Steeltoe community.</Description>
<OtherArea>
<div class="row no-gutters">
<div class="col">
<div class="component-whatis-title"><h2>Office Hours Meetup</h2></div>
<div class="my-5">
<div>The Steeltoe team hosts office hours meetup every other month. All of Steeltoe community is invited. It's a chance to discuss open issues, pull requests, review features in an upcoming release, and propose new ideas.</div>
<br />
<div>
<a href="site-data/SteeltoeCommunityMeetingInvite.ics" target="_blank">Add to Calendar (.ics)</a> - Occurs on the second Tuesday of every other month (January, March, May, July, September, November) at 10:30am ET <br />
<a href="https://docs.google.com/document/d/1Um9FmlgOb4QiU2bNdg9oXLadWyDgW1167QXH9HUG068/">Meeting Agenda and Notes link</a><br />
Zoom meeting ID: 926 8707 7667<br />
Passcode: 224068<br />
<a href="https://VMware.zoom.us/j/92687077667?pwd=NXpPWWxlMVlEREZuNHRta2JlS2dZdz09">Zoom invite link</a>
<br />
</div>
<br />
<div>Our previous community meetings are available on our <a href="https://www.youtube.com/channel/UC_H-y302UxKnjx_fRmrqBMA">Steeltoe OSS Channel</a></div>
<br />
</div>
</div>
</div>
<div class="row no-gutters mb-5">
<div class="col-6">
<div class="component-whatis-title"><h2>Developers</h2></div>
<div class="my-5">
<div><Href href="https://slack.steeltoe.io" NewWindow="true">Steeltoe Slack</Href></div>
<div>Slack is the best place to get your questions answered, contribute to conversations, and find the latest information about the Steeltoe project. If you have trouble joining, try <a href="https://join.slack.com/t/steeltoeteam/shared_invite/zt-1cd7lh4pi-BlfQsI6nEDEX2qbh5JrRZw">this link</a> or <a href="mailto:info@steeltoe.io?subject=Slack%20Invite">email us</a>.</div>
</div>
<div class="my-5">
<div><Href href="https://stackoverflow.com/questions/tagged/steeltoe" NewWindow="true">Stack Overflow</Href></div>
<div>Ask questions and get help with problems from the global Steeltoe community of users and practitioners.</div>
</div>
<div class="my-5">
<div class=""><Href href="https://github.com/SteeltoeOSS" NewWindow="true">Steeltoe on GitHub</Href></div>
<div>Find the code for Steeltoe projects, raise issues, suggest changes, and view milestones and releases.</div>
</div>
<div class="my-5">
<div class=""><Href href="https://twitter.com/steeltoeoss" NewWindow="true">Steeltoe on Twitter</Href></div>
<div>Stay up to date with the latest Steeltoe releases and blog posts.</div>
</div>
</div>
</div>
</OtherArea>
</Template>

@code{
}
24 changes: 0 additions & 24 deletions src/Client/Components/Pages/DynamicLogging/GettingStarted.razor

This file was deleted.

65 changes: 27 additions & 38 deletions src/Client/Components/Pages/DynamicLogging/Index.razor
Original file line number Diff line number Diff line change
@@ -1,38 +1,27 @@
@page "/dynamic-logging"
@page "/steeltoe-logging"

<Template Name="Dynamic Logging" Features="@features" DocsURL="/docs/logging">
<Description>XXXXXXX</Description>
<WhatIs>XXXXXXX</WhatIs>
<WhyUse>XXXXXXX</WhyUse>
<FeatureTemplate Context="Feature">
<div class="row component-feature no-gutters">
<div class="col-6 text-center"><div class="component-feature-img"><img class="img-fluid" src="@Feature.Img" /></div></div>
<div class="col">
<div class="component-feature-title">@Feature.Title</div>
<div class="component-feature-desc">@Feature.Description</div>
</div>
</div>
</FeatureTemplate>
<AltFeatureTemplate Context="Feature">
<div class="row component-feature no-gutters">
<div class="col-6">
<div class="component-feature-title">@Feature.Title</div>
<div class="component-feature-desc">@Feature.Description</div>
</div>
<div class="col-6 text-center"><div class="component-feature-img"><img class="img-fluid" src="@Feature.Img" /></div></div>
</div>
</AltFeatureTemplate>
</Template>

@code{
private Feature[] features = new[] {
new Feature() {
Title = (MarkupString)"",
Description = (b => {
b.AddMarkupContent(1,"");
}),
Img = ""
}
};
}
@page "/logging/get-started"
@page "/dynamic-logging"
@page "/steeltoe-logging"

@inject IHttpContextAccessor HttpContextAccessor
@inject IOptionsSnapshot<DocsSiteOptions> DocsSiteOptions
<Breadcrumbs NavName="Getting Started"
ParentLinkName="Logging"
ParentLinkUrl="/logging" />
<GetStarted>
<ComponentName>Logging</ComponentName>
<Tutorials>
<h1>This page has moved, find the new location <NavLink href="@(DocsSiteOptions.Value.DynamicLoggingHome)">here</NavLink></h1>
</Tutorials>
</GetStarted>

@code
{
protected override void OnInitialized()
{
if (HttpContextAccessor.HttpContext != null)
{
var uri = new Uri(DocsSiteOptions.Value.DynamicLoggingHome).ToString();
HttpContextAccessor.HttpContext.Response.Redirect(uri, true);
}
}
}
6 changes: 3 additions & 3 deletions src/Client/Components/Pages/Event-Driven.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/event-driven"
@page "/event-driven"

<Template Name="Event Driven" Features="@features" NameIsPlural="false">
<Description>Event-driven systems reflect how modern businesses actually work, with thousands of small changes happening all day, every day. Steeltoe’s ability to handle events and enable developers to build applications around them, means your apps will stay in sync with your business. Steeltoe has event-driven options like streaming all the way to cloud functions, and data flows.</Description>
@@ -61,7 +61,7 @@
Description = (b => {
b.AddMarkupContent(1,"Steeltoe Stream improves your productivity when working with RabbitMQ, providing three key abstractions to simplify your code. “Binders” integrate with external messaging systems. “Bindings” bridge the gap between the messaging systems and your code. “Messages” provide the structure that your code uses to send and receive data.<Br /><br />Steeltoe Stream also provides support for provisioning, content conversion, error handling, configuration management, consumer groups, partitioning, monitoring, and health checks.<Br /><br />");
b.OpenComponent<Href>(2);
b.AddAttribute(3, "href","https://docs.steeltoe.io/api/v3/stream/");
b.AddAttribute(3, "href","/docs/stream");
b.AddAttribute(4, "AsButton",true);
b.AddAttribute(5, "ChildContent", (RenderFragment)((b) => {b.AddContent(6, "Learn more");}));
b.CloseComponent();
@@ -76,4 +76,4 @@
// Img = "/images/Icon_network.svg"
//}
};
}
}
152 changes: 0 additions & 152 deletions src/Client/Components/Pages/GetStarted/Basics.razor

This file was deleted.

45 changes: 0 additions & 45 deletions src/Client/Components/Pages/Initializr/GettingStarted.razor

This file was deleted.

136 changes: 67 additions & 69 deletions src/Client/Components/Pages/Initializr/Index.razor
Original file line number Diff line number Diff line change
@@ -1,69 +1,67 @@
@page "/initializr"

<Template Name="Steeltoe Initializr" GettingStartedURL="https://start.steeltoe.io" ShowBottomGetStarted="false">
<Description>
<div class="row no-gutters mb-4">
<div class="col-8 offset-2" style="font-size: 71%;">
<Banner Href="https://github.com/SteeltoeOSS/steeltoe/blob/master/roadmaps/3.0.0.md" BannerTypeName="beta">
<span class="font-weight-bold">Initializr is in beta development.</span> Version 1 is coming very soon! &gt; &nbsp;&nbsp;
</Banner>
</div>
</div>
One of the biggest secrets to highly productive .NET development teams is application generators. Enterprises have found that developers adopt platforms far quicker when everything they need to get started is right there, at their fingertips. Application generators help developers to get started quickly by providing useful guide rails that reduce toil and ease their burden. Application generators also encourage common approaches to common problems, which is particularly useful if you have lots of teams creating microservices at the same time.
</Description>
<WhyUse>
An application generator can help bond development teams and security teams to the same vision by making the right thing, the easy thing. Instead of developers using previous projects to start a new project they use the application generator. Now they can start with an up to date version of all required dependencies!
</WhyUse>
<WhatIs>
The Steeltoe Initializr project is an application generator meant to get cloud-native .NET developers going very quickly. But it doesn’t stop there. Chances are your apps aren’t just using the typical .NET Core or Steeltoe libraries. It’s also using internal custom libraries specific to your business. Every business has libraries: tools they rely on to simplify tasks or take care of the plumbing. These libraries are quite important and often include proprietary business logic that’s both private and unique. Application generators can help developers to get easy access to these libraries without having to delve into docs, wade through wikis, or search in NuGet repositories.
</WhatIs>
<OtherArea>
<div class="row no-gutters">
<div class="col component-whyuse-title mt-0">
<h2>Using Initializr</h2>
</div>
</div>
<div class="row mb-5 no-gutters">
<div class="col component-whyuse-desc">
There are a few ways you can use Steeltoe Initializr. Every option gives you the same ready to go Visual Studio project. The typical use of Initializr is hosting the service in-house. Because it is a nuget distributed package included in an even simple'r .NET Core app, hosting and staying up to date doesn't come with a bunch of debt. Hosting in-house also gives teams the option to add their own private dependencies to the service, but stay up to date with the community.
</div>
</div>
<div class="row mb-5 no-gutters">
<div class="col component-whyuse-desc">
<h4>Hosted Service</h4>
<div>
As a hosted service, Initializr offers both API and browser interfaces. The service itself is distributed as a Nuget package which you include in a new .NET Core web project. From there you can run the project as a web-based service. Out of the box you'll get all the <Href href="https://github.com/SteeltoeOSS/initializr" NewWindow="true">default dependencies</Href> along with endpoints for interaction. Try the below curl command that uses our hosted Initializr service to get started.<br /><br />
<pre><code class="bash">curl https://start.steeltoe.io/starter.zip -d "dependencies=Actuators,DynamicLogger,SQL Server" -d "projectName=MyCompany.MySample" -o "myProject.zip"</code></pre>
</div>
</div>
<div class="col component-whyuse-desc">
<h4>Browser UI</h4>
<div>
Along with adding the Initializr package, you can optionally add a UI in the same .NET Core project. This gives developers an additional interaction with the Initializr service. We have created a <Href href="https://github.com/SteeltoeOSS/initializr" NewWindow="true">basic web project</Href> doing just that to help get started. If you'de like to see the UI in action head over to <Href href="https://start.steeltoe.io" NewWindow="true">https://start.steeltoe.io</Href> and create your first Initializr project now!
</div>
</div>
</div>
<div class="row no-gutters">
<div class="col component-whyuse-title mt-0">
<h2>About Dependencies</h2>
</div>
</div>
<div class="row mb-5 no-gutters">
<div class="col component-whyuse-desc">
No matter the way you choose to use Initializr, the value is in the distribution of pre-packaged dependencies. The <Href href="xxxx" target="_blank">default dependencies</Href> included in Initializr are mostly Steeltoe focused. Things like database connectors, a Spring config client, a Consul discovery client, and many others. But this is a community driven project, so it only makes sense to offer ways for the .NET community to contribute.<br /><br />
<h4>Creating private dependencies</h4>
Running Initializr in-house isn’t just about limited network connections. The Steeltoe Initializr is meant to be extended. While having the ability to generate Steeltoe projects automatically is super awesome, what if you could also add in your own dependencies? What if your organization could offer a starting place for all developers, that (safely) includes your best practices and secret sauce?<br /><br />
<h4>Creating for public use on start.steeltoe.io</h4>
If you would like for your Initializr dependency to be a part of the publicly hosted service, please review the <Href href="https://github.com/SteeltoeOSS/initializr/blob/master/THIRD-PARTY-CONTRIBUTIONS.md" NewWindow="true">guidelines</Href>. Once you have everything in place, <Href href="https://github.com/SteeltoeOSS/initializr/issues" NewWindow="true">open an enhancement issue in GitHub</Href>.<br /><br />
<h4>Getting listed in the incubator</h4>
Sometimes you have a great idea for a very useful dependency but don't have the time to maintain it. If that's the case, follow the <Href href="https://github.com/SteeltoeOSS/initializr/blob/master/THIRD-PARTY-CONTRIBUTIONS.md" target="_blank">guidelines</Href> as closely as possible, and request a new repo in Steeltoe's <Href href="https://github.com/SteeltoeOSS-incubator" target="_blank">incubator org</Href>. This is a place to share Steeltoe based ideas with the community, giving them the option to use.
</div>
</div>
<div class="col text-center m-5">
<div class="mb-5"><h2>Ready to get started?</h2></div>
<div class=""><Href href="https://start.steeltoe.io" AsButton="true" NewWindow="true">GET STARTED</Href></div>
</div>
</OtherArea>
</Template>
@code{
}
@page "/initializr"

<Template Name="Steeltoe Initializr" GettingStartedURL="https://start.steeltoe.io" ShowBottomGetStarted="false">
<Description>
<div class="row no-gutters mb-4">
<div class="col-8 offset-2" style="font-size: 71%;">
<Banner Href="https://github.com/SteeltoeOSS/steeltoe/blob/master/roadmaps/3.0.0.md" BannerTypeName="beta">
<span class="font-weight-bold">Initializr is in beta development.</span> Version 1 is coming very soon! &gt; &nbsp;&nbsp;
</Banner>
</div>
</div>
One of the biggest secrets to highly productive .NET development teams is application generators. Enterprises have found that developers adopt platforms far quicker when everything they need to get started is right there, at their fingertips. Application generators help developers to get started quickly by providing useful guide rails that reduce toil and ease their burden. Application generators also encourage common approaches to common problems, which is particularly useful if you have lots of teams creating microservices at the same time.
</Description>
<WhyUse>
An application generator can help bond development teams and security teams to the same vision by making the right thing, the easy thing. Instead of developers using previous projects to start a new project they use the application generator. Now they can start with an up to date version of all required dependencies!
</WhyUse>
<WhatIs>
The Steeltoe Initializr project is an application generator meant to get cloud-native .NET developers going very quickly. But it doesn’t stop there. Chances are your apps aren’t just using the typical .NET Core or Steeltoe libraries. It’s also using internal custom libraries specific to your business. Every business has libraries: tools they rely on to simplify tasks or take care of the plumbing. These libraries are quite important and often include proprietary business logic that’s both private and unique. Application generators can help developers to get easy access to these libraries without having to delve into docs, wade through wikis, or search in NuGet repositories.
</WhatIs>
<OtherArea>
<div class="row no-gutters">
<div class="col component-whyuse-title mt-0">
<h2>Using Initializr</h2>
</div>
</div>
<div class="row mb-5 no-gutters">
<div class="col component-whyuse-desc">
There are a few ways you can use Steeltoe Initializr. Every option gives you the same ready to go Visual Studio project. The typical use of Initializr is hosting the service in-house. Because it is a nuget distributed package included in an even simple'r .NET Core app, hosting and staying up to date doesn't come with a bunch of debt. Hosting in-house also gives teams the option to add their own private dependencies to the service, but stay up to date with the community.
</div>
</div>
<div class="row mb-5 no-gutters">
<div class="col component-whyuse-desc">
<h4>Hosted Service</h4>
<div>
As a hosted service, Initializr offers both API and browser interfaces. The service itself is distributed as a Nuget package which you include in a new .NET Core web project. From there you can run the project as a web-based service. Out of the box you'll get all the <Href href="https://github.com/SteeltoeOSS/initializr" NewWindow="true">default dependencies</Href> along with endpoints for interaction. Try the below curl command that uses our hosted Initializr service to get started.<br /><br />
<pre><code class="bash">curl https://start.steeltoe.io/starter.zip -d "dependencies=Actuators,DynamicLogger,SQL Server" -d "projectName=MyCompany.MySample" -o "myProject.zip"</code></pre>
</div>
</div>
<div class="col component-whyuse-desc">
<h4>Browser UI</h4>
<div>
Along with adding the Initializr package, you can optionally add a UI in the same .NET Core project. This gives developers an additional interaction with the Initializr service. We have created a <Href href="https://github.com/SteeltoeOSS/initializr" NewWindow="true">basic web project</Href> doing just that to help get started. If you'de like to see the UI in action head over to <Href href="https://start.steeltoe.io" NewWindow="true">https://start.steeltoe.io</Href> and create your first Initializr project now!
</div>
</div>
</div>
<div class="row no-gutters">
<div class="col component-whyuse-title mt-0">
<h2>About Dependencies</h2>
</div>
</div>
<div class="row mb-5 no-gutters">
<div class="col component-whyuse-desc">
No matter the way you choose to use Initializr, the value is in the distribution of pre-packaged dependencies. The <Href href="xxxx" target="_blank">default dependencies</Href> included in Initializr are mostly Steeltoe focused. Things like database connectors, a Spring config client, a Consul discovery client, and many others. But this is a community driven project, so it only makes sense to offer ways for the .NET community to contribute.<br /><br />
<h4>Creating private dependencies</h4>
Running Initializr in-house isn’t just about limited network connections. The Steeltoe Initializr is meant to be extended. While having the ability to generate Steeltoe projects automatically is super awesome, what if you could also add in your own dependencies? What if your organization could offer a starting place for all developers, that (safely) includes your best practices and secret sauce?<br /><br />
<h4>Creating for public use on start.steeltoe.io</h4>
If you would like for your Initializr dependency to be a part of the publicly hosted service, please review the <Href href="https://github.com/SteeltoeOSS/initializr/blob/master/THIRD-PARTY-CONTRIBUTIONS.md" NewWindow="true">guidelines</Href>. Once you have everything in place, <Href href="https://github.com/SteeltoeOSS/initializr/issues" NewWindow="true">open an enhancement issue in GitHub</Href>.<br /><br />
</div>
</div>
<div class="col text-center m-5">
<div class="mb-5"><h2>Ready to get started?</h2></div>
<div class=""><Href href="https://start.steeltoe.io" AsButton="true" NewWindow="true">GET STARTED</Href></div>
</div>
</OtherArea>
</Template>
@code{
}
45 changes: 0 additions & 45 deletions src/Client/Components/Pages/Local/GettingStarted.razor

This file was deleted.

55 changes: 0 additions & 55 deletions src/Client/Components/Pages/Local/Index.razor

This file was deleted.

11 changes: 2 additions & 9 deletions src/Client/Components/Pages/Management/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/cloud-management"
@page "/cloud-management"
@page "/steeltoe-management"
@page "/management"

@@ -36,13 +36,6 @@
}),
Img = "/images/Icon_connector.svg"
},
new Feature() {
Title = (MarkupString)"Distributed Tracing",
Description = (b => {
b.AddMarkupContent(1,"Use the OpenCensus project capture request tracing data and display it visually in the dashboard or send it to a remote collector.");
}),
Img = "/images/Icon_device-exchange.svg"
},
new Feature() {
Title = (MarkupString)"Management Tasks",
Description = (b => {
@@ -51,4 +44,4 @@
Img = "/images/Icon_box.svg"
}
};
}
}
4 changes: 2 additions & 2 deletions src/Client/Components/Pages/Messaging/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/messaging"
@page "/messaging"

<Template Name="Messaging" Features="@features" DocsURL="/docs/messaging">
<Description>Build highly scalable event-driven microservices connected to shared messaging systems.</Description>
@@ -47,4 +47,4 @@
Img = "/images/Icon_keys.svg"
}
};
}
}
62 changes: 24 additions & 38 deletions src/Client/Components/Pages/NetworkFileSharing/Index.razor
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
@page "/network-file-sharing"
@page "/steeltoe-smb"

<Template Name="Network File Sharing" Features="@features" GettingStartedURL="/network-file-sharing/get-started" DocsURL="/docs/fileshares">
<Description>XXXXXXX</Description>
<WhatIs>XXXXXXX</WhatIs>
<WhyUse>XXXXXXX</WhyUse>
<FeatureTemplate Context="Feature">
<div class="row component-feature no-gutters">
<div class="col-6 text-center"><div class="component-feature-img"><img class="img-fluid" src="@Feature.Img" /></div></div>
<div class="col">
<div class="component-feature-title">@Feature.Title</div>
<div class="component-feature-desc">@Feature.Description</div>
</div>
</div>
</FeatureTemplate>
<AltFeatureTemplate Context="Feature">
<div class="row component-feature no-gutters">
<div class="col-6">
<div class="component-feature-title">@Feature.Title</div>
<div class="component-feature-desc">@Feature.Description</div>
</div>
<div class="col-6 text-center"><div class="component-feature-img"><img class="img-fluid" src="@Feature.Img" /></div></div>
</div>
</AltFeatureTemplate>
</Template>

@code{
private Feature[] features = new[] {
new Feature() {
Title = (MarkupString)"",
Description = (b => {
b.AddMarkupContent(1,"");
}),
Img = ""
}
};
}
@page "/fileshares"
@page "/network-file-sharing"
@page "/steeltoe-smb"

@inject IHttpContextAccessor HttpContextAccessor
@inject IOptionsSnapshot<DocsSiteOptions> DocsSiteOptions
<GetStarted>
<ComponentName>Network File Sharing</ComponentName>
<Tutorials>
<h1>This page has moved, find the new location <NavLink href="@(DocsSiteOptions.Value.FileShareHome)">here</NavLink></h1>
</Tutorials>
</GetStarted>

@code
{
protected override void OnInitialized()
{
if (HttpContextAccessor.HttpContext != null)
{
var uri = new Uri(DocsSiteOptions.Value.FileShareHome).ToString();
HttpContextAccessor.HttpContext.Response.Redirect(uri, true);
}
}
}
168 changes: 0 additions & 168 deletions src/Client/Components/Pages/Quickstart.razor

This file was deleted.

6 changes: 3 additions & 3 deletions src/Client/Components/Pages/ServiceConnectors/Index.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@page "/service-connectors"
@page "/service-connectors"
@page "/steeltoe-connectors"

<Template Name="Service Connectors" Features="@features" DocsURL="/docs/configuration">
<Template Name="Service Connectors" Features="@features" DocsURL="/docs/connectors">
<Description>One of the many advantages of running applications on the cloud is the easy availability of a variety of backing services. Steeltoe simplifies using those services by automatically configuring and wiring up connections to common services like Redis, RabbitMQ, MySQL, MS SQL, and more.</Description>
<WhatIs>Backing services are must when creating cloud-native .NET applications, but managing the connections can be time consuming and annoying. Steeltoe Service Connectors takes that pain away and let you get back to doing what you love.</WhatIs>
<WhyUse>
@@ -51,4 +51,4 @@
Img = "/images/Icon_keys.svg"
}
};
}
}
8 changes: 4 additions & 4 deletions src/Client/Components/Pages/Support.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/support"
@page "/support"

<Template Name="Support" Features="@features">
<Description>Contact the team directly to get answers about how to best implement every component and feature within Steeltoe, as well as the best cloud-native .NET practices.</Description>
@@ -42,7 +42,7 @@
Description = (b => {
b.AddMarkupContent(1,"Search past issues and community questions, request a new feature, or donate your custom features to a project.<br /><br />");
b.OpenComponent<Href>(2);
b.AddAttribute(3, "href","https://github.com/steeltoeoss");
b.AddAttribute(3, "href","https://github.com/SteeltoeOSS");
bart-vmware marked this conversation as resolved.
Show resolved Hide resolved
b.AddAttribute(4, "NewWindow",true);
b.AddAttribute(5, "AsButton",true);
b.AddAttribute(6, "ChildContent", (RenderFragment)((b) => {b.AddContent(7, "GO NOW");}));
@@ -55,7 +55,7 @@
Description = (b => {
b.AddMarkupContent(1,"Search and learn more about each Steeltoe package, its version history, statistics, and installation options.<br /><br />");
b.OpenComponent<Href>(2);
b.AddAttribute(3, "href","https://www.nuget.org/profiles/steeltoe");
b.AddAttribute(3, "href","https://www.nuget.org/profiles/SteeltoeOSS");
b.AddAttribute(4, "NewWindow",true);
b.AddAttribute(5, "AsButton",true);
b.AddAttribute(6, "ChildContent", (RenderFragment)((b) => {b.AddContent(7, "GO NOW");}));
@@ -64,4 +64,4 @@
Img = "https://miro.medium.com/max/700/1*OH_L2dLIKDl_n5QknfONqw.png"
}
};
}
}
14 changes: 0 additions & 14 deletions src/Client/Components/RunAppTab/AzureAppService.razor

This file was deleted.

78 changes: 0 additions & 78 deletions src/Client/Components/RunAppTab/CloudFoundry.razor

This file was deleted.

68 changes: 0 additions & 68 deletions src/Client/Components/RunAppTab/Docker.razor

This file was deleted.

19 changes: 0 additions & 19 deletions src/Client/Components/RunAppTab/DockerCompose.razor

This file was deleted.

105 changes: 0 additions & 105 deletions src/Client/Components/RunAppTab/Kubernetes.razor

This file was deleted.

43 changes: 0 additions & 43 deletions src/Client/Components/RunAppTab/Local.razor

This file was deleted.

22 changes: 0 additions & 22 deletions src/Client/Components/StartInstanceTab/Azure.razor

This file was deleted.

27 changes: 0 additions & 27 deletions src/Client/Components/StartInstanceTab/CloudFoundry.razor

This file was deleted.

33 changes: 0 additions & 33 deletions src/Client/Components/StartInstanceTab/Kubernetes.razor

This file was deleted.

21 changes: 0 additions & 21 deletions src/Client/Components/StartInstanceTab/Local.razor

This file was deleted.

40 changes: 0 additions & 40 deletions src/Client/Components/Tab.razor

This file was deleted.

45 changes: 0 additions & 45 deletions src/Client/Components/TabSet.razor

This file was deleted.

12 changes: 0 additions & 12 deletions src/Client/Components/Template.razor
Original file line number Diff line number Diff line change
@@ -25,8 +25,6 @@
</div>
}
</div>
@if (WhatIs != null) {
}
</div>
</div>
<div class="width-all">
@@ -142,14 +140,4 @@

[Parameter]
public RenderFragment OtherArea { get; set; }

protected override async Task OnAfterRenderAsync(bool first) {
if(first) {
await JSRuntime.InvokeVoidAsync("highlightCode",true);
StateHasChanged();
}

await base.OnAfterRenderAsync(first);
return;
}
}
9 changes: 0 additions & 9 deletions src/Client/Components/UIInterfaces/ITab.cs

This file was deleted.

66 changes: 35 additions & 31 deletions src/Client/Models/DocsSiteOptions.cs
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
using System.ComponentModel.DataAnnotations;

namespace Steeltoe.Client.Models
{
public class DocsSiteOptions
{
[Required]
public string BaseAddress { get; set; }

public string ApiBrowserHome { get; set; }
public string BlogHome { get; set; }
public string DocsHome { get; set; }
public string DocsStreamHome { get; set; }
public string GuidesHome { get; set; }

public void SetUrls()
{
ApiBrowserHome = ConfigureIfMissing(ApiBrowserHome, $"{BaseAddress}/api/browser/v3/all");
BlogHome = ConfigureIfMissing(BlogHome, $"{BaseAddress}/articles/");
DocsHome = ConfigureIfMissing(DocsHome, $"{BaseAddress}/api/v3/welcome/");
DocsStreamHome = ConfigureIfMissing(DocsStreamHome, $"{BaseAddress}/api/v3/stream/");
GuidesHome = ConfigureIfMissing(GuidesHome, $"{BaseAddress}/guides/");
}

private static string ConfigureIfMissing(string value, string defaultValue)
{
return !string.IsNullOrWhiteSpace(value) ?
value : defaultValue;
}
}
}
using System.ComponentModel.DataAnnotations;

namespace Steeltoe.Client.Models
{
public class DocsSiteOptions
{
[Required]
public string BaseAddress { get; set; }

public string ApiBrowserHome { get; set; }
public string BlogHome { get; set; }
public string DocsHome { get; set; }
public string DocsStreamHome { get; set; }
public string GuidesHome { get; set; }
public string FileShareHome { get; set; }
public string DynamicLoggingHome { get; set; }

public void SetUrls()
{
ApiBrowserHome = ConfigureIfMissing(ApiBrowserHome, $"{BaseAddress}/api/browser/v3/all");
BlogHome = ConfigureIfMissing(BlogHome, $"{BaseAddress}/articles/");
DocsHome = ConfigureIfMissing(DocsHome, $"{BaseAddress}/api/v3/welcome/");
DocsStreamHome = ConfigureIfMissing(DocsStreamHome, $"{BaseAddress}/api/v3/stream/");
GuidesHome = ConfigureIfMissing(GuidesHome, $"{BaseAddress}/guides/");
FileShareHome = ConfigureIfMissing(FileShareHome, $"{BaseAddress}/api/v3/fileshares/");
DynamicLoggingHome = ConfigureIfMissing(DynamicLoggingHome, $"{BaseAddress}/api/v3/logging/");
}

private static string ConfigureIfMissing(string value, string defaultValue)
{
return !string.IsNullOrWhiteSpace(value) ?
value : defaultValue;
}
}
}
4 changes: 0 additions & 4 deletions src/Client/Steeltoe.Client.csproj
Original file line number Diff line number Diff line change
@@ -4,9 +4,5 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Markdig" Version="0.30.3" />
</ItemGroup>

</Project>
7 changes: 0 additions & 7 deletions src/Client/wwwroot/css/bootstrap/bootstrap.min.css

This file was deleted.

1 change: 0 additions & 1 deletion src/Client/wwwroot/css/bootstrap/bootstrap.min.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions src/Client/wwwroot/css/fonts.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
font-family: 'Metropolis';
font-style: normal;
6 changes: 2 additions & 4 deletions src/Client/wwwroot/css/site.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* DEVELOP WIDTH = 1400px */
html,
body {
@@ -403,15 +401,15 @@ a,
margin-right: 0 !important;
}

..component-dark .title {
.component-dark .title {
bart-vmware marked this conversation as resolved.
Show resolved Hide resolved
color: white;
}

.component .title {
color: #00376e;
}

..component-dark .desc {
.component-dark .desc {
color: white;
margin: 3% 0 3% 0;
min-height: 90px;
23 changes: 1 addition & 22 deletions src/Client/wwwroot/js/functions.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
function setPageTitle(title) {
function setPageTitle(title) {
document.title = title;
}
function highlightCode(includeCopyBadge) {
//console.info('highlighting code');
document.querySelectorAll('pre code').forEach((block) => { hljs.highlightBlock(block); });

if (!includeCopyBadge)
return;

var options = {
contentSelector: "#main",
loadDelay: 10,
// CSS class(es) used to render the copy icon.
copyIconClass: "oi oi-document",
// CSS class(es) used to render the done icon.
checkIconClass: "oi oi-check text-success",
// hook to allow modifying the text before it's pasted
onBeforeTextCopied: function (text, codeElement) {
return text; // you can fix up the text here
}
};
window.highlightJsBadge(options);
}
Loading