johnnyreilly / blog.johnnyreilly.com Goto Github PK
View Code? Open in Web Editor NEWThis is the source code for https://johnnyreilly.com
Home Page: https://johnnyreilly.com
License: MIT License
This is the source code for https://johnnyreilly.com
Home Page: https://johnnyreilly.com
License: MIT License
Hi John,
https://blog.johnnyreilly.com/archive
On your archive page, I see that you're first showing results from oldest to newest. Have you considered perhaps chaining the order?
If so, I would like to help out with that by opening the pull request here for this topic
Best,
Alex
What about using the mixed syntax?
https://www.typescriptlang.org/docs/handbook/modules.html#import
import { getResponse, type APIResponseType} from "./api";
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?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates await pending status checks. To force their creation now, click the checkbox below.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
node
, @types/node
)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
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
.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/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
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
After upgrading Docusaurus here: https://github.com/johnnyreilly/blog.johnnyreilly.com/pull/90/files
Probably worth rescaffolding the site as it was originally created with an old alpha version of Docusaurus. Serves me right for not checking the breaking changes
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.