GithubHelp home page GithubHelp logo

johnnyreilly / blog.johnnyreilly.com Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 12.0 1.88 GB

This is the source code for https://johnnyreilly.com

Home Page: https://johnnyreilly.com

License: MIT License

JavaScript 20.67% CSS 0.62% TypeScript 75.07% Dockerfile 0.49% Bicep 3.15%
bicep blog docusaurus dotnet johnnyreilly typescript

blog.johnnyreilly.com's People

Contributors

dependabot[bot] avatar ericcote avatar imgbot[bot] avatar jamiemccrindle avatar johnnyreilly avatar lichlord91 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blog.johnnyreilly.com's Issues

bicep-azure-static-web-apps-azure-devops -> error "Cannot change the RepositoryUrl"

I ran into alike problem which was described by Shane Neff :

I got this error:

Starting template validation.
Deployment name is main-20211216-190201-a25c
There were errors in your deployment. Error code: InvalidTemplateDeployment.
##[error]The template deployment 'main-20211216-190201-a25c' is not valid according to the validation procedure. The tracking id is '0dc2b50a-78bf-4b07-b8ea-e4a87dc8104f'. See inner errors for details.
##[error]Details:
##[error]BadRequest: RepositoryUrl is invalid.  Cannot change the RepositoryUrl. Please detach your static site first if you wish to attach to another repository.
##[warning]Validation errors were found in the Azure Resource Manager template. This can potentially cause template deployment to fail. Task failed while creating or updating the template deployment.. Please follow https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax

And this is also solved with disconnecting the static website.

Maybe you can also add my problem to your blog?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update typescript-eslint monorepo to v7.11.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency @azure/functions to v4.5.0
  • fix(deps): update dependency axios to v1.7.2
  • chore(deps): update mcr.microsoft.com/vscode/devcontainers/javascript-node docker tag to v1
  • chore(deps): update mcr.microsoft.com/vscode/devcontainers/typescript-node docker tag to v1
  • chore(deps): update resource microsoft.documentdb/databaseaccounts to 2024-05-15
  • chore(deps): update resource microsoft.documentdb/databaseaccounts/sqldatabases to 2024-05-15
  • chore(deps): update resource microsoft.documentdb/databaseaccounts/sqldatabases/containers to 2024-05-15
  • chore(deps): update resource microsoft.documentdb/databaseaccounts/sqlroleassignments to 2024-05-15
  • chore(deps): update resource microsoft.documentdb/databaseaccounts/sqlroledefinitions to 2024-05-15
  • chore(deps): update resource microsoft.operationalinsights/workspaces to 2023-09-01
  • chore(deps): update resource microsoft.web/staticsites to 2023-12-01
  • chore(deps): update resource microsoft.web/staticsites/config to 2023-12-01
  • chore(deps): update resource microsoft.web/staticsites/customdomains to 2023-12-01
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • fix(deps): update dependency @swc/core to v1.5.25
  • fix(deps): update dependency @types/jsdom to v21.1.7
  • fix(deps): update dependency @types/node to v18.19.34
  • chore(deps): update dependency prettier to v3.3.1

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

bicep
infra/app-insights.bicep
  • Microsoft.OperationalInsights/workspaces 2022-10-01
  • Microsoft.Insights/components 2020-02-02
infra/database/cosmos.bicep
  • Microsoft.DocumentDB/databaseAccounts 2023-04-15
  • Microsoft.DocumentDB/databaseAccounts/sqlDatabases 2023-04-15
  • Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers 2023-04-15
  • Microsoft.Security/advancedThreatProtectionSettings 2019-01-01
infra/database/roles-assignments.bicep
  • Microsoft.DocumentDB/databaseAccounts 2023-04-15
  • Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions 2023-04-15
  • Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments 2023-04-15
infra/main.bicep
  • Microsoft.Insights/components 2020-02-02
infra/static-web-app.bicep
  • Microsoft.DocumentDB/databaseAccounts 2023-04-15
  • Microsoft.Web/staticSites 2022-09-01
  • Microsoft.Web/staticSites/config 2022-09-01
  • Microsoft.Web/staticSites/customDomains 2022-09-01
  • Microsoft.Web/staticSites/customDomains 2022-09-01
bun
open-ai-description/package.json
  • @azure/identity ^1.4.0
  • bun-types ^1.0.0
  • typescript ^5.2.0
pre-post-processing/package.json
  • @types/lodash ^4.14.198
  • bun-types ^1.0.2
  • lodash ^4.17.21
  • simple-git ^3.15.0
  • typescript ^5.0.0
tags-trim/package.json
  • @azure/identity ^1.4.0
  • @types/lodash ^4.14.198
  • lodash ^4.17.21
  • bun-types ^1.0.2
  • typescript ^5.2.0
dockerfile
.devcontainer/Dockerfile
  • mcr.microsoft.com/vscode/devcontainers/typescript-node 0-18-bullseye
.devcontainer/base.Dockerfile
  • mcr.microsoft.com/vscode/devcontainers/javascript-node 0-18-bullseye
github-actions
.github/workflows/build-and-deploy-github-pages.yml
  • actions/checkout v4
  • actions/setup-node v4
  • oven-sh/setup-bun v1
  • JamesIves/github-pages-deploy-action v4
.github/workflows/build-and-deploy-static-web-app.yml
  • actions/checkout v4
  • azure/login v1
  • azure/CLI v1
  • github/codeql-action v3
  • azure/CLI v1
  • azure/CLI v1
  • azure/CLI v1
  • actions/setup-node v4
  • oven-sh/setup-bun v1
  • azure/CLI v1
  • Azure/static-web-apps-deploy v1
  • actions/checkout v4
  • nev7n/wait_for_response v1
  • actions/setup-node v4
  • actions/upload-artifact v4
  • actions/checkout v4
  • nev7n/wait_for_response v1
  • treosh/lighthouse-ci-action v11
  • actions/github-script v6
  • marocchino/sticky-pull-request-comment v2
  • actions/checkout v4
  • nev7n/wait_for_response v1
  • johnnyreilly/schemar v0.1.1
  • actions/github-script v7
  • marocchino/sticky-pull-request-comment v2
  • azure/login v1
  • azure/CLI v1
  • Azure/static-web-apps-deploy v1
.github/workflows/build-test-api.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/build-test-docusaurus.yml
  • actions/checkout v4
  • actions/setup-node v4
  • oven-sh/setup-bun v1
.github/workflows/open-id-connect-test.yml
  • azure/login v1
npm
blog-website-tests/package.json
  • @playwright/test ^1.31.2
blog-website/api/package.json
  • @azure/cosmos ^4.0.0
  • @azure/functions ^4.0.1
  • @azure/identity ^3.1.3
  • date-fns ^2.30.0
  • lodash ^4.17.21
  • ufo ^1.0.1
  • @types/jest ^29.2.5
  • @types/lodash ^4.14.197
  • @types/node ^18.x
  • @typescript-eslint/eslint-plugin ^7.0.0
  • @typescript-eslint/parser ^7.0.0
  • eslint ^8.52.0
  • jest ^29.3.1
  • ts-jest ^29.1.0
  • typescript ^5.2.2
blog-website/package.json
  • @azure/static-web-apps-cli 1.1.8
  • @docusaurus/core 3.4.0
  • @docusaurus/plugin-ideal-image 3.4.0
  • @docusaurus/plugin-pwa 3.4.0
  • @docusaurus/preset-classic 3.4.0
  • @svgr/webpack 8.1.0
  • @swc/core 1.5.24
  • clsx 2.1.1
  • file-loader 6.2.0
  • prism-react-renderer 2.3.1
  • react 18.3.1
  • react-dom 18.3.1
  • swc-loader 0.2.6
  • url-loader 4.1.1
  • @docusaurus/module-type-aliases 3.4.0
  • @docusaurus/tsconfig 3.4.0
  • @typescript-eslint/eslint-plugin ^7.12.0
  • @typescript-eslint/parser ^7.12.0
  • cross-env ^7.0.3
  • eslint ^8.56.0
  • eslint-config-prettier ^9.1.0
  • eslint-plugin-react ^7.34.2
  • eslint-plugin-react-hooks ^4.6.2
  • fontaine 0.5.0
  • rehype-cloudinary-docusaurus 3.0.0
  • simple-git 3.24.0
  • typescript ^5.3.3
  • node ^18.0.0
  • yarn ^1.22.10
from-blogger-to-docusaurus/package.json
  • @types/he ^1.1.2
  • @types/jsdom ^21.0.0
  • @types/node ^18.11.9
  • axios ^1.1.3
  • he ^1.2.0
  • ts-node ^10.9.1
  • typescript ^5.0.0
from-docusaurus-to-blogger/package.json
  • @docusaurus/utils ^2.0.0-alpha.70
  • @types/axios ^0.14.0
  • @types/he ^1.1.1
  • @types/jsdom ^21.0.0
  • @types/node ^18.0.0
  • axios ^0.28.0
  • date-fns ^2.19.0
  • he ^1.2.0
  • ts-node ^10.0.0
  • typescript ^5.0.0
  • prettier 3.2.5
from-docusaurus-to-devto/package.json
  • @docusaurus/utils ^2.2.0
  • @types/node ^18.11.9
  • ts-node ^10.9.1
  • typescript ^5.0.0
its-all-relative/package.json
  • @types/node ^18.0.0
  • ts-node ^10.0.0
  • typescript ^5.0.0
package.json
  • husky 9.0.11
  • lint-staged 15.0.2
  • prettier 3.2.5
tinypng/package.json
  • @types/node ^18.0.0
  • tinify *
  • ts-node ^10.0.0
  • typescript ^5.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

ConnectionString as output param is secure?

I read your article. https://johnnyreilly.com/output-connection-strings-and-keys-from-azure-bicep and its good but I have question if am passing ConnectionString as output param is secure way?

I found two way to do it. I just adding details just for your reference, you may be already known.

option 1:

listKeys(resourceId('Microsoft.EventHub/namespaces/authorizationRules', eventHubNamespace, eventHubListenPolicy), '2021-11-01').primaryConnectionString

option 2:

resource rule 'Microsoft.EventHub/namespaces/eventhubs/authorizationRules@2022-01-01-preview' existing = {
  name: '${eventHubNS}/${eventHubName}/${eventHubSendPolicyName}'
}

rule.listkeys().primaryConnectionString

If not secure, then can you please update your blog?

Ref:
azure-quickstart-templates
azure-quickstart-templates

Codeblock has a case sensitive issue

In your https://johnnyreilly.com/docusaurus-using-fontaine-to-reduce-custom-font-cumulative-layout-shift article there's a case sensitive issue with this codeblock section.

\\ ...
 plugins: [
              fontaine.fontaineTransform.webpack({
                fallbacks: [
\\ ...

Should be fontaine.FontaineTransform.webpack

Had me scratching my head when I got a docusaurus build error, but caught this. :)

[ERROR] TypeError: Cannot read properties of undefined (reading 'webpack')
    at Object.configureWebpack (/workspace/didocs/docusaurus.config.js:187:42)
    at applyConfigureWebpack (/workspace/didocs/node_modules/@docusaurus/core/lib/webpack/utils.js:133:43)
    at /workspace/didocs/node_modules/@docusaurus/core/lib/commands/build.js:155:62
    at Array.forEach (<anonymous>)
    at buildLocale (/workspace/didocs/node_modules/@docusaurus/core/lib/commands/build.js:149:13)
    at async tryToBuildLocale (/workspace/didocs/node_modules/@docusaurus/core/lib/commands/build.js:41:20)
    at async mapAsyncSequential (/workspace/didocs/node_modules/@docusaurus/utils/lib/jsUtils.js:34:24)
    at async Command.build (/workspace/didocs/node_modules/@docusaurus/core/lib/commands/build.js:76:21)

P.S. Awesome blog I use your swc-loader, preload fonts, and fontaine tutorials. Gonna give the prefetch priority one a try too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.