Resolve merge conflicts

This commit is contained in:
Kamran Ahmed committed 2025-06-04 16:23:44 +01:00
commit e24600bfba
643 files changed
+22638 -21037

No files matched your search

-1
View File
@@ -1,2 +1 @@
/// <reference types="astro/client" />
/// <reference path="content.d.ts" />
+1
View File
@@ -38,6 +38,7 @@
"@microsoft/clarity": "^1.0.0",
"@nanostores/react": "^1.0.0",
"@napi-rs/image": "^1.9.2",
"@radix-ui/react-dropdown-menu": "^2.1.15",
"@resvg/resvg-js": "^2.6.2",
"@roadmapsh/editor": "workspace:*",
"@tailwindcss/vite": "^4.1.7",
+632
View File
@@ -29,6 +29,9 @@ importers:
'@napi-rs/image':
specifier: ^1.9.2
version: 1.9.2
'@radix-ui/react-dropdown-menu':
specifier: ^2.1.15
version: 2.1.15(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@resvg/resvg-js':
specifier: ^2.6.2
version: 2.6.2
@@ -650,6 +653,12 @@ packages:
'@floating-ui/dom@1.7.0':
resolution: {integrity: sha512-lGTor4VlXcesUMh1cupTUTDoCxMb0V6bm3CnxHzQcw8Eaf1jQbgQX4i02fYgT0vJ82tb5MZ4CZk1LRGkktJCzg==}
'@floating-ui/react-dom@2.1.2':
resolution: {integrity: sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A==}
peerDependencies:
react: '>=16.8.0'
react-dom: '>=16.8.0'
'@floating-ui/utils@0.2.9':
resolution: {integrity: sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==}
@@ -1016,6 +1025,272 @@ packages:
'@popperjs/core@2.11.8':
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
'@radix-ui/primitive@1.1.2':
resolution: {integrity: sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==}
'@radix-ui/react-arrow@1.1.7':
resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-collection@1.1.7':
resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-compose-refs@1.1.2':
resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-context@1.1.2':
resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-direction@1.1.1':
resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-dismissable-layer@1.1.10':
resolution: {integrity: sha512-IM1zzRV4W3HtVgftdQiiOmA0AdJlCtMLe00FXaHwgt3rAnNsIyDqshvkIW3hj/iu5hu8ERP7KIYki6NkqDxAwQ==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-dropdown-menu@2.1.15':
resolution: {integrity: sha512-mIBnOjgwo9AH3FyKaSWoSu/dYj6VdhJ7frEPiGTeXCdUFHjl9h3mFh2wwhEtINOmYXWhdpf1rY2minFsmaNgVQ==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-focus-guards@1.1.2':
resolution: {integrity: sha512-fyjAACV62oPV925xFCrH8DR5xWhg9KYtJT4s3u54jxp+L/hbpTY2kIeEFFbFe+a/HCE94zGQMZLIpVTPVZDhaA==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-focus-scope@1.1.7':
resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-id@1.1.1':
resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-menu@2.1.15':
resolution: {integrity: sha512-tVlmA3Vb9n8SZSd+YSbuFR66l87Wiy4du+YE+0hzKQEANA+7cWKH1WgqcEX4pXqxUFQKrWQGHdvEfw00TjFiew==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-popper@1.2.7':
resolution: {integrity: sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-portal@1.1.9':
resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-presence@1.1.4':
resolution: {integrity: sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-primitive@2.1.3':
resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-roving-focus@1.1.10':
resolution: {integrity: sha512-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-slot@1.2.3':
resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-callback-ref@1.1.1':
resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-controllable-state@1.2.2':
resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-effect-event@0.0.2':
resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-escape-keydown@1.1.1':
resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-layout-effect@1.1.1':
resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-rect@1.1.1':
resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-size@1.1.1':
resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}
peerDependencies:
'@types/react': '*'
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/rect@1.1.1':
resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}
'@remirror/core-constants@3.0.0':
resolution: {integrity: sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==}
@@ -1683,6 +1958,10 @@ packages:
argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
aria-hidden@1.2.6:
resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}
engines: {node: '>=10'}
aria-query@5.3.2:
resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
engines: {node: '>= 0.4'}
@@ -2006,6 +2285,9 @@ packages:
resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==}
engines: {node: '>=8'}
detect-node-es@1.1.0:
resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
deterministic-object-hash@2.0.2:
resolution: {integrity: sha512-KxektNH63SrbfUyDiwXqRb1rLwKt33AmMv+5Nhsw1kqZ13SJBRTgZHtGbE+hH3a1mVW1cz+4pqSWVPAtLVXTzQ==}
engines: {node: '>=18'}
@@ -2276,6 +2558,10 @@ packages:
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
engines: {node: '>= 0.4'}
get-nonce@1.0.1:
resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
engines: {node: '>=6'}
get-proto@1.0.1:
resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
engines: {node: '>= 0.4'}
@@ -3332,12 +3618,42 @@ packages:
resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==}
engines: {node: '>=0.10.0'}
react-remove-scroll-bar@2.3.8:
resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
engines: {node: '>=10'}
peerDependencies:
'@types/react': '*'
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
peerDependenciesMeta:
'@types/react':
optional: true
react-remove-scroll@2.7.1:
resolution: {integrity: sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==}
engines: {node: '>=10'}
peerDependencies:
'@types/react': '*'
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
react-resizable-panels@3.0.2:
resolution: {integrity: sha512-j4RNII75fnHkLnbsTb5G5YsDvJsSEZrJK2XSF2z0Tc2jIonYlIVir/Yh/5LvcUFCfs1HqrMAoiBFmIrRjC4XnA==}
peerDependencies:
react: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
react-dom: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
react-style-singleton@2.2.3:
resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}
engines: {node: '>=10'}
peerDependencies:
'@types/react': '*'
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
react-textarea-autosize@8.5.9:
resolution: {integrity: sha512-U1DGlIQN5AwgjTyOEnI1oCcMuEr1pv1qOtklB2l4nyMGbHzWrI0eFsYK0zos2YWqAolJyG0IWJaqWmWj5ETh0A==}
engines: {node: '>=10'}
@@ -3855,6 +4171,16 @@ packages:
peerDependencies:
browserslist: '>= 4.21.0'
use-callback-ref@1.3.3:
resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}
engines: {node: '>=10'}
peerDependencies:
'@types/react': '*'
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
use-composed-ref@1.4.0:
resolution: {integrity: sha512-djviaxuOOh7wkj0paeO1Q/4wMZ8Zrnag5H6yBvzN7AKKe8beOaED9SF5/ByLqsku8NP4zQqsvM2u3ew/tJK8/w==}
peerDependencies:
@@ -3882,6 +4208,16 @@ packages:
'@types/react':
optional: true
use-sidecar@1.1.3:
resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
engines: {node: '>=10'}
peerDependencies:
'@types/react': '*'
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
use-sync-external-store@1.5.0:
resolution: {integrity: sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==}
peerDependencies:
@@ -4424,6 +4760,12 @@ snapshots:
'@floating-ui/core': 1.7.0
'@floating-ui/utils': 0.2.9
'@floating-ui/react-dom@2.1.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@floating-ui/dom': 1.7.0
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
'@floating-ui/utils@0.2.9': {}
'@img/sharp-darwin-arm64@0.33.5':
@@ -4703,6 +5045,246 @@ snapshots:
'@popperjs/core@2.11.8': {}
'@radix-ui/primitive@1.1.2': {}
'@radix-ui/react-arrow@1.1.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-collection@1.1.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-context': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-slot': 1.2.3(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-compose-refs@1.1.2(@types/react@19.1.4)(react@19.1.0)':
dependencies:
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-context@1.1.2(@types/react@19.1.4)(react@19.1.0)':
dependencies:
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-direction@1.1.1(@types/react@19.1.4)(react@19.1.0)':
dependencies:
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-dismissable-layer@1.1.10(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/primitive': 1.1.2
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-escape-keydown': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-dropdown-menu@2.1.15(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/primitive': 1.1.2
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-context': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-id': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-menu': 2.1.15(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-focus-guards@1.1.2(@types/react@19.1.4)(react@19.1.0)':
dependencies:
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-focus-scope@1.1.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-id@1.1.1(@types/react@19.1.4)(react@19.1.0)':
dependencies:
'@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-menu@2.1.15(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/primitive': 1.1.2
'@radix-ui/react-collection': 1.1.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-context': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-direction': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-dismissable-layer': 1.1.10(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-focus-guards': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-id': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-popper': 1.2.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-portal': 1.1.9(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-presence': 1.1.4(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-roving-focus': 1.1.10(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-slot': 1.2.3(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.1.4)(react@19.1.0)
aria-hidden: 1.2.6
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
react-remove-scroll: 2.7.1(@types/react@19.1.4)(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-popper@1.2.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@floating-ui/react-dom': 2.1.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-arrow': 1.1.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-context': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-rect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-size': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/rect': 1.1.1
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-portal@1.1.9(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-presence@1.1.4(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-primitive@2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/react-slot': 1.2.3(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-roving-focus@1.1.10(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
'@radix-ui/primitive': 1.1.2
'@radix-ui/react-collection': 1.1.7(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-context': 1.1.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-direction': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-id': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.1.5(@types/react@19.1.4))(@types/react@19.1.4)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
'@types/react-dom': 19.1.5(@types/react@19.1.4)
'@radix-ui/react-slot@1.2.3(@types/react@19.1.4)(react@19.1.0)':
dependencies:
'@radix-ui/react-compose-refs': 1.1.2(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-use-callback-ref@1.1.1(@types/react@19.1.4)(react@19.1.0)':
dependencies:
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-use-controllable-state@1.2.2(@types/react@19.1.4)(react@19.1.0)':
dependencies:
'@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.1.4)(react@19.1.0)
'@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-use-effect-event@0.0.2(@types/react@19.1.4)(react@19.1.0)':
dependencies:
'@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-use-escape-keydown@1.1.1(@types/react@19.1.4)(react@19.1.0)':
dependencies:
'@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-use-layout-effect@1.1.1(@types/react@19.1.4)(react@19.1.0)':
dependencies:
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-use-rect@1.1.1(@types/react@19.1.4)(react@19.1.0)':
dependencies:
'@radix-ui/rect': 1.1.1
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/react-use-size@1.1.1(@types/react@19.1.4)(react@19.1.0)':
dependencies:
'@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.4)(react@19.1.0)
react: 19.1.0
optionalDependencies:
'@types/react': 19.1.4
'@radix-ui/rect@1.1.1': {}
'@remirror/core-constants@3.0.0': {}
'@resvg/resvg-js-android-arm-eabi@2.6.2':
@@ -5318,6 +5900,10 @@ snapshots:
argparse@2.0.1: {}
aria-hidden@1.2.6:
dependencies:
tslib: 2.8.1
aria-query@5.3.2: {}
array-iterate@2.0.1: {}
@@ -5672,6 +6258,8 @@ snapshots:
detect-libc@2.0.4: {}
detect-node-es@1.1.0: {}
deterministic-object-hash@2.0.2:
dependencies:
base-64: 1.0.0
@@ -5944,6 +6532,8 @@ snapshots:
hasown: 2.0.2
math-intrinsics: 1.1.0
get-nonce@1.0.1: {}
get-proto@1.0.1:
dependencies:
dunder-proto: 1.0.1
@@ -7115,11 +7705,38 @@ snapshots:
react-refresh@0.17.0: {}
react-remove-scroll-bar@2.3.8(@types/react@19.1.4)(react@19.1.0):
dependencies:
react: 19.1.0
react-style-singleton: 2.2.3(@types/react@19.1.4)(react@19.1.0)
tslib: 2.8.1
optionalDependencies:
'@types/react': 19.1.4
react-remove-scroll@2.7.1(@types/react@19.1.4)(react@19.1.0):
dependencies:
react: 19.1.0
react-remove-scroll-bar: 2.3.8(@types/react@19.1.4)(react@19.1.0)
react-style-singleton: 2.2.3(@types/react@19.1.4)(react@19.1.0)
tslib: 2.8.1
use-callback-ref: 1.3.3(@types/react@19.1.4)(react@19.1.0)
use-sidecar: 1.1.3(@types/react@19.1.4)(react@19.1.0)
optionalDependencies:
'@types/react': 19.1.4
react-resizable-panels@3.0.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0):
dependencies:
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
react-style-singleton@2.2.3(@types/react@19.1.4)(react@19.1.0):
dependencies:
get-nonce: 1.0.1
react: 19.1.0
tslib: 2.8.1
optionalDependencies:
'@types/react': 19.1.4
react-textarea-autosize@8.5.9(@types/react@19.1.4)(react@19.1.0):
dependencies:
'@babel/runtime': 7.27.1
@@ -7745,6 +8362,13 @@ snapshots:
escalade: 3.2.0
picocolors: 1.1.1
use-callback-ref@1.3.3(@types/react@19.1.4)(react@19.1.0):
dependencies:
react: 19.1.0
tslib: 2.8.1
optionalDependencies:
'@types/react': 19.1.4
use-composed-ref@1.4.0(@types/react@19.1.4)(react@19.1.0):
dependencies:
react: 19.1.0
@@ -7764,6 +8388,14 @@ snapshots:
optionalDependencies:
'@types/react': 19.1.4
use-sidecar@1.1.3(@types/react@19.1.4)(react@19.1.0):
dependencies:
detect-node-es: 1.1.0
react: 19.1.0
tslib: 2.8.1
optionalDependencies:
'@types/react': 19.1.4
use-sync-external-store@1.5.0(react@19.1.0):
dependencies:
react: 19.1.0
+1 -1
View File
@@ -1309,7 +1309,7 @@
"links": [
{
"title": "Defining custom validators",
"url": "https://v17.angular.io/guide/form-validation#custom-validators",
"url": "https://angular.dev/guide/forms/form-validation#defining-custom-validators",
"type": "article"
},
{
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+973
View File
@@ -0,0 +1,973 @@
{
"Py9nst2FDJ1_hoXeX_qSF": {
"title": "Introduction",
"description": "Docker is an open-source platform that automates application deployment, scaling, and management using lightweight, portable containers. Containers are standalone executable units containing all necessary dependencies, libraries, and configuration files for consistent application execution across various environments.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker",
"url": "https://www.docker.com/",
"type": "article"
},
{
"title": "Docker Docs",
"url": "https://docs.docker.com/",
"type": "article"
}
]
},
"74JxgfJ_1qmVNZ_QRp9Ne": {
"title": "What are Containers?",
"description": "Containers are lightweight, portable, and isolated software environments that package applications with their dependencies for consistent execution across different platforms. They streamline development, deployment, and management while ensuring applications run reliably regardless of underlying infrastructure.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Introduction to Containers - AWS Skill Builder",
"url": "https://explore.skillbuilder.aws/learn/course/106/introduction-to-containers",
"type": "course"
},
{
"title": "What is a Container?",
"url": "https://www.docker.com/resources/what-container/",
"type": "article"
},
{
"title": "Explore top posts about Containers",
"url": "https://app.daily.dev/tags/containers?ref=roadmapsh",
"type": "article"
}
]
},
"i4ijY3T5gLgNz0XqRipXe": {
"title": "Why do we need Containers?",
"description": "Containers solve environment inconsistency issues when working in teams by standardizing runtime environments. Before containers, significant time was lost configuring local environments to run projects shared by teammates, leading to \"works on my machine\" problems.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Need for Containers",
"url": "https://www.redhat.com/en/topics/containers",
"type": "article"
}
]
},
"3hatcMVLDbMuz73uTx-9P": {
"title": "Bare Metal vs VMs vs Containers",
"description": "Bare metal runs applications directly on hardware with maximum performance but limited flexibility. VMs use hypervisors to run multiple OS instances with strong isolation but higher overhead. Containers share the host OS kernel, providing lightweight isolation with better resource efficiency than VMs while maintaining portability.\n\nYou can learn more from the following resources:",
"links": [
{
"title": "History of Virtualization",
"url": "https://courses.devopsdirective.com/docker-beginner-to-pro/lessons/01-history-and-motivation/03-history-of-virtualization",
"type": "article"
},
{
"title": "Bare Metal Machine",
"url": "https://glossary.cncf.io/bare-metal-machine/",
"type": "article"
},
{
"title": "What is a Virtual Machine?",
"url": "https://azure.microsoft.com/en-au/resources/cloud-computing-dictionary/what-is-a-virtual-machine",
"type": "article"
}
]
},
"43drPbTwPqJQPyzwYUdBT": {
"title": "Docker and OCI",
"description": "The Open Container Initiative (OCI) is a Linux Foundation project which aims at creating industry standards for container formats and runtimes. Its primary goal is to ensure the compatibility and interoperability of container environments through defined technical specifications.\n\nYou can learn more from the following resources:",
"links": [
{
"title": "Open Container Initiative",
"url": "https://opencontainers.org/",
"type": "article"
},
{
"title": "OCI - Wikipedia",
"url": "https://en.wikipedia.org/wiki/Open_Container_Initiative",
"type": "article"
}
]
},
"mw-weCutd2ECKlx2DE_ZJ": {
"title": "Package Managers",
"description": "",
"links": []
},
"uKjB2qntFTpPuYUT9sdxd": {
"title": "Users / Groups Permissions",
"description": "",
"links": []
},
"W5kX5jn49hghRgkEw6_S3": {
"title": "Shell Commands",
"description": "",
"links": []
},
"InlMtuaUJ9EXO-OD9x1jj": {
"title": "Shell Scripting",
"description": "",
"links": []
},
"XxT9UUjbKW1ARyERSLH_W": {
"title": "Programming Languages",
"description": "",
"links": []
},
"EqYWfBL5l5OOquok_OvOW": {
"title": "Application Architecture",
"description": "Application architecture in containerized environments focuses on designing applications to leverage containerization benefits. This includes microservices patterns, service decomposition, inter-service communication, data persistence strategies, and designing for scalability and fault tolerance in distributed systems.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Microservices Architecture",
"url": "https://microservices.io/",
"type": "article"
},
{
"title": "Docker Application Design Patterns",
"url": "https://docs.docker.com/get-started/docker-concepts/building-images/",
"type": "article"
},
{
"title": "Container Design Patterns",
"url": "https://kubernetes.io/blog/2016/06/container-design-patterns/",
"type": "article"
},
{
"title": "Twelve-Factor App Methodology",
"url": "https://12factor.net/",
"type": "article"
},
{
"title": "Microservices vs Monolith Architecture",
"url": "https://www.youtube.com/watch?v=GBTdnfD6s5Q",
"type": "video"
}
]
},
"jrH1qE6EnFXL4fTyYU8gR": {
"title": "Underlying Technologies",
"description": "Docker containers use Linux kernel technologies for isolation and resource management: namespaces for process isolation, cgroups for resource limits, and union filesystems for efficient layered storage. These enable lightweight, portable, and secure containers that share the host kernel.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Underlying Technologies",
"url": "https://www.docker.com/resources/what-container/#underlying-technologies",
"type": "article"
},
{
"title": "Underlying Technologies - Medium",
"url": "https://medium.com/@furkan.turkal/how-does-docker-actually-work-the-hard-way-a-technical-deep-diving-c5b8ea2f0422",
"type": "article"
}
]
},
"BvV8VCX39wRB-g8WvGF1g": {
"title": "Namespaces",
"description": "Docker namespaces are a Linux kernel feature that creates isolated environments for containers by providing separate instances of global system resources. Docker uses PID, NET, MNT, UTS, IPC, and USER namespaces to ensure each container believes it has its own unique resources, enabling lightweight, portable, and secure containerization.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Namespaces",
"url": "https://docs.docker.com/engine/security/userns-remap/",
"type": "article"
},
{
"title": "Linux Namespaces",
"url": "https://man7.org/linux/man-pages/man7/namespaces.7.html",
"type": "article"
}
]
},
"fRl4EfNwlBiidzn3IV34-": {
"title": "cgroups",
"description": "cgroups (control groups) are Linux kernel features that limit and manage system resources like CPU, memory, and I/O for process groups. Docker uses cgroups to enforce resource constraints on containers, ensuring predictable performance and preventing containers from consuming excessive system resources.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Control Groups",
"url": "https://www.docker.com/resources/what-container/#control-groups",
"type": "article"
},
{
"title": "Control Groups - Medium",
"url": "https://medium.com/@furkan.turkal/how-does-docker-actually-work-the-hard-way-a-technical-deep-diving-c5b8ea2f0422",
"type": "article"
},
{
"title": "An introduction to cgroups, runc & containerD",
"url": "https://www.youtube.com/watch?v=u1LeMndEk70",
"type": "video"
}
]
},
"vEUfw_vobshuZI0-q8RZo": {
"title": "Union Filesystems",
"description": "Union filesystems (UnionFS) create virtual, layered file structures by overlaying multiple directories without modifying originals. Docker uses this to manage storage efficiently by minimizing duplication and reducing image sizes through layered filesystem approach that keeps directory contents separate while mounted together.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "AUFS (Advanced Multi-Layered Unification Filesystem)",
"url": "http://aufs.sourceforge.net/",
"type": "article"
},
{
"title": "OverlayFS (Overlay Filesystem)",
"url": "https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html",
"type": "article"
},
{
"title": "Btrfs (B-Tree Filesystem)",
"url": "https://btrfs.readthedocs.io/en/stable/",
"type": "article"
},
{
"title": "ZFS (Z File System)",
"url": "https://zfsonlinux.org/",
"type": "article"
}
]
},
"01nDXqxVdMv4SeXc0nYHH": {
"title": "Installation / Setup",
"description": "Docker provides Docker Desktop, a desktop application that simplifies installation and setup with GUI capabilities. Alternatively, you can install Docker Engine for command-line only functionality without graphical interface components.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Desktop website",
"url": "https://www.docker.com/products/docker-desktop",
"type": "article"
},
{
"title": "Docker Engine",
"url": "https://docs.docker.com/engine/install/",
"type": "article"
}
]
},
"NCdsPRhJy7UtQFNLo1J1f": {
"title": "Docker Desktop (Win/Mac/Linux)",
"description": "Docker Desktop is a comprehensive development environment for Windows, macOS, and Linux with a GUI. It includes Docker Engine, CLI, Buildx, Extensions, Compose, Kubernetes, and credentials helper, providing everything needed for container development on desktop platforms.\n\nLearn more from the following resources:",
"links": [
{
"title": "Docker Desktop Documentation",
"url": "https://docs.docker.com/desktop/",
"type": "article"
},
{
"title": "Docker Get Started Guide",
"url": "https://docs.docker.com/get-started/",
"type": "article"
},
{
"title": "Docker Hub",
"url": "https://hub.docker.com/",
"type": "article"
},
{
"title": "Explore top posts about Docker",
"url": "https://app.daily.dev/tags/docker?ref=roadmapsh",
"type": "article"
}
]
},
"0NKqLUWtJMlXn-m6wpA6f": {
"title": "Docker Engine ( Linux )",
"description": "Docker Engine is the core open-source containerization runtime that creates and manages containers, builds images, and provides the Docker API. It runs on Linux, Windows, and macOS, serving as the foundation for Docker Desktop and standalone Docker installations on servers.\n\nFor more information about docker engine see:",
"links": [
{
"title": "Docker Engine Installation Guide",
"url": "https://docs.docker.com/engine/install/",
"type": "article"
},
{
"title": "Docker Engine - Docker Documentation",
"url": "https://docs.docker.com/engine/",
"type": "article"
},
{
"title": "Explore top posts about Docker",
"url": "https://app.daily.dev/tags/docker?ref=roadmapsh",
"type": "article"
},
{
"title": "Docker Engine for Linux Servers Setup and Tips",
"url": "https://www.youtube.com/watch?v=YeF7ObTnDwc",
"type": "video"
}
]
},
"kIqx7Inf50mE9W0juwNBz": {
"title": "Basics of Docker",
"description": "Docker is a platform that simplifies building, packaging, and deploying applications in lightweight, portable containers. Key components include Dockerfiles (build instructions), Images (snapshots), and Containers (running instances). Essential commands cover pulling images, building from Dockerfiles, running containers with port mapping, and managing both containers and images.\n\nWhat is a Container?\n--------------------\n\nA container is a lightweight, standalone, and executable software package that includes all the dependencies (libraries, binaries, and configuration files) required to run an application. Containers isolate applications from their environment, ensuring they work consistently across different systems.\n\nDocker Components\n-----------------\n\nThere are three key components in the Docker ecosystem:\n\n* **Dockerfile**: A text file containing instructions (commands) to build a Docker image.\n* **Docker Image**: A snapshot of a container, created from a Dockerfile. Images are stored in a registry, like Docker Hub, and can be pulled or pushed to the registry.\n* **Docker Container**: A running instance of a Docker image.\n\nDocker Commands\n---------------\n\nBelow are some essential Docker commands you'll use frequently:\n\n* `docker pull <image>`: Download an image from a registry, like Docker Hub.\n* `docker build -t <image_name> <path>`: Build an image from a Dockerfile, where `<path>` is the directory containing the Dockerfile.\n* `docker image ls`: List all images available on your local machine.\n* `docker run -d -p <host_port>:<container_port> --name <container_name> <image>`: Run a container from an image, mapping host ports to container ports.\n* `docker container ls`: List all running containers.\n* `docker container stop <container>`: Stop a running container.\n* `docker container rm <container>`: Remove a stopped container.\n* `docker image rm <image>`: Remove an image from your local machine.",
"links": []
},
"uUPYXmwu27SBPqKZx6U_q": {
"title": "Data Persistence",
"description": "Docker enables you to run containers that are isolated pieces of code, including applications and their dependencies, separated from the host operating system. Containers are ephemeral by default, which means any data stored in the container will be lost once it is terminated. To overcome this problem and retain data across container lifecycle, Docker provides various data persistence methods.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Data Persistence - Docker Documentation",
"url": "https://docs.docker.com/get-started/docker-concepts/running-containers/persisting-container-data/",
"type": "article"
}
]
},
"086zZYjtzdCaDHm-MkSqg": {
"title": "Ephemeral Container Filesystem",
"description": "By default, the storage within a Docker container is ephemeral, meaning that any data changes or modifications made inside a container will only persist until the container is stopped and removed. Once the container is stopped and removed, all the associated data will be lost. This is because Docker containers are designed to be stateless by nature. This temporary or short-lived storage is called the \"ephemeral container file system\". It is an essential feature of Docker, as it enables fast and consistent deployment of applications across different environments without worrying about the state of a container.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Data Persistence - Docker Documentation",
"url": "https://docs.docker.com/get-started/docker-concepts/running-containers/persisting-container-data/",
"type": "article"
},
{
"title": "Docker Concepts - Persisting container data",
"url": "https://www.youtube.com/watch?v=10_2BjqB_Ls",
"type": "video"
}
]
},
"woemCQmWTR-hIoWAci3d5": {
"title": "Volume Mounts",
"description": "Volume mounts are a way to map a folder or file on the host system to a folder or file inside a container. This allows the data to persist outside the container even when the container is removed. Additionally, multiple containers can share the same volume, making data sharing between containers easy.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Volumes",
"url": "https://docs.docker.com/storage/volumes/",
"type": "article"
},
{
"title": "Docker Volume Flags",
"url": "https://docs.docker.com/storage/bind-mounts/#choose-the--v-or---mount-flag",
"type": "article"
},
{
"title": "Docker Volumes explained in 6 minutes",
"url": "https://www.youtube.com/watch?v=p2PH_YPCsis",
"type": "video"
}
]
},
"wZcCW1ojGzUakHCv2AaI1": {
"title": "Bind Mounts",
"description": "Bind mounts have limited functionality compared to volumes. When you use a bind mount, a file or directory on the host machine is mounted into a container. The file or directory is referenced by its absolute path on the host machine. By contrast, when you use a volume, a new directory is created within Docker's storage directory on the host machine, and Docker manages that directory's contents.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Bind Mounts",
"url": "https://docs.docker.com/storage/bind-mounts/",
"type": "article"
}
]
},
"LShK3-1EGGuXnEvdScFR7": {
"title": "Using 3rd Party Container Images",
"description": "Third-party images are pre-built Docker container images that are available on Docker Hub or other container registries. These images are created and maintained by individuals or organizations and can be used as a starting point for your containerized applications.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Hub Registry",
"url": "https://hub.docker.com/",
"type": "article"
}
]
},
"jKSE_wKYf4P9wnSh_LkMi": {
"title": "Databases",
"description": "Running your database in a Docker container can help streamline your development process and ease deployment. Docker Hub provides numerous pre-made images for popular databases such as MySQL, PostgreSQL, and MongoDB.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Containerized Databases",
"url": "https://docs.docker.com/guides/use-case/databases/",
"type": "article"
},
{
"title": "How to Setup MySQL Database with Docker",
"url": "https://www.youtube.com/watch?v=igc2zsOKPJs",
"type": "video"
}
]
},
"HlTxLqKNFMhghtKF6AcWu": {
"title": "Interactive Test Environments",
"description": "Docker allows you to create isolated, disposable environments that can be deleted once you're done with testing. This makes it much easier to work with third party software, test different dependencies or versions, and quickly experiment without the risk of damaging your local setup.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Launch a Dev Environment",
"url": "https://docs.docker.com/desktop/dev-environments/create-dev-env/",
"type": "article"
},
{
"title": "Test Environments - Medium",
"url": "https://manishsaini74.medium.com/containerized-testing-orchestrating-test-environments-with-docker-5201bfadfdf2",
"type": "article"
}
]
},
"YzpB7rgSR4ueQRLa0bRWa": {
"title": "Command Line Utilities",
"description": "Docker images can include command line utilities or standalone applications that we can run inside containers.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Images",
"url": "https://docs.docker.com/engine/reference/commandline/images/",
"type": "article"
},
{
"title": "Docker Run",
"url": "https://docs.docker.com/reference/cli/docker/container/run/",
"type": "article"
},
{
"title": "Docker Pull",
"url": "https://docs.docker.com/engine/reference/commandline/pull/",
"type": "article"
}
]
},
"5OEfBQaYNOCi999x6QUqW": {
"title": "Building Container Images",
"description": "Container images are executable packages that include everything required to run an application: code, runtime, system tools, libraries, and settings. By building custom images, you can deploy applications seamlessly with all their dependencies on any Docker-supported platform. The key component in building a container image is the `Dockerfile`. It is essentially a script containing instructions on how to assemble a Docker image. Each instruction in the Dockerfile creates a new layer in the image, making it easier to track changes and minimize the image size. Here's a simple example of a Dockerfile:\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Dockerfile Examples",
"url": "https://github.com/dockersamples",
"type": "opensource"
},
{
"title": "Docker Image Builder",
"url": "https://docs.docker.com/reference/cli/docker/buildx/build/",
"type": "article"
},
{
"title": "Dockerfile Reference",
"url": "https://docs.docker.com/engine/reference/builder/",
"type": "article"
}
]
},
"yGRQcx64S-yBGEoOeMc55": {
"title": "Dockerfiles",
"description": "A Dockerfile is a text document that contains a list of instructions used by the Docker engine to build an image. Each instruction in the Dockerfile adds a new layer to the image. Docker will build the image based on these instructions, and then you can run containers from the image.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Dockerfile Examples",
"url": "https://github.com/dockersamples",
"type": "opensource"
},
{
"title": "Dockerfile Reference",
"url": "https://docs.docker.com/engine/reference/builder/",
"type": "article"
},
{
"title": "Dockerfile Best Practices",
"url": "https://docs.docker.com/develop/develop-images/dockerfile_best-practices/",
"type": "article"
}
]
},
"frshJqVMP8D7o_7tMZMPI": {
"title": "Efficient Layer Caching",
"description": "When building container images, Docker caches the newly created layers. These layers can then be used later on when building other images, reducing the build time and minimizing bandwidth usage. However, to make the most of this caching mechanism, you should be aware of how to efficiently use layer caching. Docker creates a new layer for each instruction (e.g., `RUN`, `COPY`, `ADD`, etc.) in the Dockerfile. If the instruction hasn't changed since the last build, Docker will reuse the existing layer.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Layer Caching",
"url": "https://docs.docker.com/build/cache/",
"type": "article"
},
{
"title": "Layer Caching",
"url": "https://www.youtube.com/watch?v=_nMpndIyaBU",
"type": "video"
}
]
},
"-8wAzF6_3gruiM3VYMvB0": {
"title": "Image Size and Security",
"description": "Reducing Docker image size is crucial for optimizing storage, transfer speeds, and deployment times. Key strategies include using minimal base images like Alpine Linux, leveraging multi-stage builds to exclude unnecessary build tools, removing unnecessary files and packages, and minimizing the number of layers by combining commands.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Multi-stage builds",
"url": "https://docs.docker.com/build/building/multi-stage/",
"type": "article"
},
{
"title": "Docker Best Practices",
"url": "https://docs.docker.com/develop/develop-images/dockerfile_best-practices/",
"type": "article"
},
{
"title": "Explore top posts about Security",
"url": "https://app.daily.dev/tags/security?ref=roadmapsh",
"type": "article"
}
]
},
"3VKPiMfbGBxv9m_SljIQV": {
"title": "Container Registries",
"description": "A Container Registry is a centralized storage and distribution system for Docker container images. It allows developers to easily share and deploy applications in the form of these images. Container registries play a crucial role in the deployment of containerized applications, as they provide a fast, reliable, and secure way to distribute container images across various production environments.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Registry",
"url": "https://docs.docker.com/registry/",
"type": "article"
},
{
"title": "Docker Hub",
"url": "https://hub.docker.com/",
"type": "article"
},
{
"title": "Artifact Registry",
"url": "https://cloud.google.com/artifact-registry",
"type": "article"
},
{
"title": "Amazon ECR",
"url": "https://aws.amazon.com/ecr/",
"type": "article"
},
{
"title": "Azure Container Registry",
"url": "https://azure.microsoft.com/en-in/products/container-registry",
"type": "article"
}
]
},
"rxVR62_yXIjc-L4GFSV6u": {
"title": "Dockerhub",
"description": "Docker Hub is a cloud-based registry service that serves as the primary public repository for Docker container images. It allows users to store, share, and distribute Docker images, offering both free public repositories and paid private ones and integrates seamlessly with Docker CLI, enabling easy pushing and pulling of images. It features official images maintained by software vendors, automated builds linked to source code repositories, and webhooks for triggering actions based on repository events.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "DockerHub",
"url": "https://hub.docker.com/",
"type": "article"
},
{
"title": "DockerHub Repositories",
"url": "https://docs.docker.com/docker-hub/repos/",
"type": "article"
},
{
"title": "DockerHub Webhooks",
"url": "https://docs.docker.com/docker-hub/webhooks/",
"type": "article"
}
]
},
"Vs4WQwgJFhA63U9Gf2ym0": {
"title": "Image Tagging Best Practices",
"description": "Docker image tagging best practices center on creating clear, consistent, and informative labels. Adopt semantic versioning for releases, avoid the ambiguous \"latest\" tag in production, and include relevant metadata like build dates or Git commit hashes. Implement a strategy distinguishing between environments, use descriptive tags for variants, and automate tagging in CI/CD pipelines. Regularly clean up old tags and document your conventions to maintain clarity and facilitate team-wide adoption. These practices ensure efficient image management and improve collaboration across your organization.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Tags",
"url": "https://docs.docker.com/get-started/docker-concepts/building-images/build-tag-and-publish-an-image/",
"type": "article"
},
{
"title": "Docker Image Tagging Best Practices",
"url": "https://medium.com/@nirmalkushwah08/docker-image-tagging-strategy-4aa886fb4fcc",
"type": "article"
},
{
"title": "Semantic Versioning",
"url": "https://semver.org/",
"type": "article"
}
]
},
"fh5aERX7c-lY9FPsmftoF": {
"title": "Others (ghcr, ecr, gcr, acr, etc)",
"description": "Container images can be stored in many different registries, not just Dockerhub. Most major cloud platforms now provide container registries such as \"Artifact Registry\" on Google Cloud Platform, Elastic Container Registry on AWS and Azure Container Registry on Microsoft Azure. GitHub also provides it's own registry which is useful when container builds are included in your GitHub Actions workflow.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "DockerHub",
"url": "https://hub.docker.com/",
"type": "article"
},
{
"title": "Artifact Registry",
"url": "https://cloud.google.com/artifact-registry",
"type": "article"
},
{
"title": "Amazon ECR",
"url": "https://aws.amazon.com/ecr/",
"type": "article"
},
{
"title": "Azure Container Registry",
"url": "https://azure.microsoft.com/en-in/products/container-registry",
"type": "article"
},
{
"title": "GitHub Container Registry",
"url": "https://docs.github.com/en/packages/guides/about-github-container-registry",
"type": "article"
}
]
},
"z2eeBXPzo-diQ67Fcfyhc": {
"title": "Running Containers",
"description": "The `docker run` command creates and starts containers from images in one step. It combines `docker create` and `docker start` operations, allowing you to execute applications in isolated environments with various configuration options like port mapping, volumes, and environment variables.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Run",
"url": "https://docs.docker.com/engine/reference/commandline/run/",
"type": "article"
},
{
"title": "Docker Containers",
"url": "https://docs.docker.com/engine/reference/commandline/container/",
"type": "article"
},
{
"title": "Docker Exec",
"url": "https://docs.docker.com/engine/reference/commandline/exec/",
"type": "article"
},
{
"title": "Docker Stop",
"url": "https://docs.docker.com/engine/reference/commandline/stop/",
"type": "article"
}
]
},
"6eu5NRA1sJuaHTlHtNurc": {
"title": "docker run",
"description": "The `docker run` command creates and starts a new container from a specified image. It combines `docker create` and `docker start` operations, offering a range of options to customize the container's runtime environment. Users can set environment variables, map ports and volumes, define network connections, and specify resource limits. The command supports detached mode for background execution, interactive mode for shell access, and the ability to override the default command defined in the image. Common flags include `-d` for detached mode, `-p` for port mapping, `-v` for volume mounting, and `--name` for assigning a custom container name. Understanding `docker run` is fundamental to effectively deploying and managing Docker containers.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Run",
"url": "https://docs.docker.com/engine/reference/commandline/run/",
"type": "article"
}
]
},
"jjA9E0J8N2frfeJCNtA1m": {
"title": "docker compose",
"description": "Docker Compose is a tool for defining and running multi-container applications using a YAML file (`docker-compose.yml`). It describes application services, networks, and volumes, enabling you to create, manage, and run entire containerized applications with single commands for simplified orchestration.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Curated Docker Compose Samples",
"url": "https://github.com/docker/awesome-compose?tab=readme-ov-file",
"type": "opensource"
},
{
"title": "Docker Compose documentation",
"url": "https://docs.docker.com/compose/",
"type": "article"
},
{
"title": "Docker Compose Tutorial",
"url": "https://www.youtube.com/watch?v=DM65_JyGxCo",
"type": "video"
}
]
},
"mAaEz-bwB5DLaBbOSYGMn": {
"title": "Runtime Configuration Options",
"description": "Docker runtime configuration options give you powerful control over your containers' environments. By tweaking resource limits, network settings, security profiles, and logging drivers, you can optimize performance and enhance security. You'll also find options for setting environment variables, mounting volumes, and overriding default behaviors – all crucial for tailoring containers to your specific needs. For more advanced users, there are tools to adjust kernel capabilities and set restart policies. Whether you're using command-line flags or Docker Compose files, these options help ensure your containers run smoothly and consistently, no matter where they're deployed.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Documentation",
"url": "https://docs.docker.com/engine/reference/run/",
"type": "article"
},
{
"title": "Docker Runtime Arguments",
"url": "https://galea.medium.com/docker-runtime-arguments-604593479f45",
"type": "article"
}
]
},
"78YFahP3Fg-c27reLkuK4": {
"title": "Container Security",
"description": "Container security encompasses a broad set of practices and tools aimed at protecting containerized applications from development through deployment and runtime. It involves securing the container image, ensuring that only trusted and non-vulnerable code is used, implementing strong access controls for container environments, and configuring containers to follow the principle of least privilege. Additionally, it includes monitoring for unexpected behavior, protecting communication between containers, and maintaining the host environment’s security. Effective container security integrates seamlessly into DevSecOps workflows to provide continuous visibility and protection across the container lifecycle without disrupting development speed or agility.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Security",
"url": "https://docs.docker.com/engine/security/",
"type": "article"
},
{
"title": "Kubernetes Security Best Practices",
"url": "https://www.aquasec.com/cloud-native-academy/kubernetes-in-production/kubernetes-security-best-practices-10-steps-to-securing-k8s/",
"type": "article"
}
]
},
"vYug8kcwrMoWf8ft4UDNI": {
"title": "Runtime Security",
"description": "Runtime security in Docker focuses on ensuring the safety and integrity of containers during their execution, safeguarding against vulnerabilities and malicious activities that could arise while the containerized application is running. This involves monitoring container behavior for anomalies, implementing access controls to limit permissions, and employing tools to detect and respond to suspicious activity in real time. Effective runtime security also ensures that only verified images are deployed and continuously audits the system to maintain compliance, thereby providing a robust defense layer to prevent exploits and maintain the desired security posture throughout the container lifecycle.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Security",
"url": "https://docs.docker.com/engine/security/",
"type": "article"
},
{
"title": "Docker Security Best Practices",
"url": "https://docs.docker.com/build/building/best-practices/",
"type": "article"
}
]
},
"M5UG-ZcyhBPbksZd0ZdNt": {
"title": "Image Security",
"description": "Image security is a crucial aspect of deploying Docker containers in your environment. Ensuring the images you use are secure, up to date, and free of vulnerabilities is essential. In this section, we will review best practices and tools for securing and managing your Docker images. When pulling images from public repositories, always use trusted, official images as a starting point for your containerized applications. Official images are vetted by Docker and are regularly updated with security fixes. You can find these images on the Docker Hub or other trusted registries.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Content Trust",
"url": "https://docs.docker.com/engine/security/trust/content_trust/",
"type": "article"
},
{
"title": "Docker Hub",
"url": "https://hub.docker.com/",
"type": "article"
}
]
},
"b-LwyYiegbF0jIrn7HYRv": {
"title": "Docker CLI",
"description": "The Docker Command Line Interface (CLI) is a powerful tool used to interact with the Docker engine, enabling developers and operators to build, manage, and troubleshoot containers and related resources. With a wide range of commands, the Docker CLI provides control over all aspects of Docker, including creating and managing containers (`docker run`, `docker stop`), building images (`docker build`), managing networks (`docker network`), handling storage (`docker volume`), and inspecting system status (`docker ps`, `docker info`). Its intuitive syntax and flexibility allow users to automate complex workflows, streamline development processes, and maintain containerized applications with ease, making it a foundational utility for Docker management and orchestration.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker CLI",
"url": "https://docs.docker.com/reference/cli/docker/",
"type": "article"
},
{
"title": "Docker Compose",
"url": "https://docs.docker.com/compose/",
"type": "article"
}
]
},
"3Nsg-F3wMKEzEsXw1MBZv": {
"title": "Images",
"description": "Docker images are lightweight, standalone packages containing everything needed to run software: application code, runtime, libraries, and system tools. Built in layers for efficient storage, they serve as blueprints for containers and can be shared through registries like Docker Hub for consistent deployment across environments.\n\nLearn more from the following resources:",
"links": [
{
"title": "What's the Difference Between Docker Images and Containers?",
"url": "https://aws.amazon.com/compare/the-difference-between-docker-images-and-containers/",
"type": "article"
},
{
"title": "What is an image?",
"url": "https://www.youtube.com/watch?v=NyvT9REqLe4",
"type": "video"
}
]
},
"jhwe-xfVc-C7qy8YuS5dZ": {
"title": "Containers",
"description": "Containers are isolated, lightweight environments that run applications using a shared operating system kernel, ensuring consistency and portability across different computing environments. They encapsulate everything needed to run an application, such as code, dependencies, and configurations, making it easy to move and run the containerized application anywhere. Using the Docker CLI, you can create, start, stop, and manage containers with commands like `docker run`, `docker ps` to list running containers, `docker stop` to halt them, and `docker exec` to interact with them in real time. The CLI provides a powerful interface for developers to build, control, and debug containers effortlessly, allowing for streamlined development and operational workflows.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker CLI Commands",
"url": "https://docs.docker.com/engine/reference/commandline/cli/",
"type": "article"
},
{
"title": "Docker CLI Commands Cheat Sheet",
"url": "https://docs.docker.com/get-started/docker_cheatsheet.pdf",
"type": "article"
}
]
},
"eHtVLB6v3h7hatJb-9cZK": {
"title": "Volumes",
"description": "Docker volumes are persistent storage solutions used to manage and store data outside the container's filesystem, ensuring data remains intact even if the container is deleted or recreated. They are ideal for storing application data, logs, and configuration files that need to persist across container restarts and updates. With the Docker CLI, you can create and manage volumes using commands like `docker volume create` to define a new volume, `docker volume ls` to list all volumes, and `docker run -v` to mount a volume to a specific container. This approach helps maintain data integrity, simplifies backup processes, and supports data sharing between containers, making volumes a core part of stateful containerized applications.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Volumes",
"url": "https://docs.docker.com/storage/volumes/",
"type": "article"
},
{
"title": "Docker Volume Commands",
"url": "https://docs.docker.com/engine/reference/commandline/volume/",
"type": "article"
}
]
},
"w5QjzvOaciK2rotOkjvjQ": {
"title": "Networks",
"description": "Docker networks enable containers to communicate with each other and with external systems, providing the necessary connectivity for microservices architectures. By default, Docker offers several network types such as bridge, host, and overlay, each suited for different use cases like isolated environments, high-performance scenarios, or multi-host communication. Using the Docker CLI, you can create, inspect, and manage networks with commands like `docker network create` to define custom networks, `docker network ls` to list existing networks, and `docker network connect` to attach a container to a network. This flexibility allows developers to control how containers interact, ensuring secure and efficient communication across distributed applications.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Networks",
"url": "https://docs.docker.com/network/",
"type": "article"
},
{
"title": "Docker Network Commands",
"url": "https://docs.docker.com/engine/reference/commandline/network/",
"type": "article"
},
{
"title": "Docker Networking",
"url": "https://www.youtube.com/watch?v=bKFMS5C4CG0",
"type": "video"
}
]
},
"hHXTth0ZP8O-iMGR9xfu9": {
"title": "Developer Experience",
"description": "Docker significantly enhances the developer experience by providing a consistent, isolated environment for building, testing, and running applications, eliminating the “it works on my machine” problem. With Docker, developers can package their applications and dependencies into portable containers, ensuring consistency across different environments, from local development to staging and production. The simplified setup and reproducibility of environments accelerate onboarding, minimize conflicts, and allow developers to focus on coding rather than troubleshooting configurations. Moreover, tools like Docker Compose enable quick orchestration of complex multi-container applications, making it easier to prototype, iterate, and collaborate, ultimately streamlining the entire development lifecycle.\n\nFor more details and practical examples:",
"links": [
{
"title": "Developer Experience Wishlist - Docker",
"url": "https://courses.devopsdirective.com/docker-beginner-to-pro/lessons/11-development-workflow/00-devx-wishlist#key-devx-features",
"type": "article"
},
{
"title": "Docker Developer Experience",
"url": "https://www.docker.com/blog/cto-chat-overcoming-the-developer-experience-gap-feat-redmonk-flow-io/",
"type": "article"
}
]
},
"4p5d3rzCHy4vjg2PRX-2k": {
"title": "Hot Reloading",
"description": "Even though we can speed up the image building with layer caching enable, we don't want to have to rebuild our container image with every code change. Instead, we want the state of our application in the container to reflect changes immediately. We can achieve this through a combination of bind mounts and hot reloading utilities!\n\nHave a look at the following resources for sample implementations:",
"links": [
{
"title": "Hot Reloading - Docker",
"url": "https://courses.devopsdirective.com/docker-beginner-to-pro/lessons/11-development-workflow/01-hot-reloading",
"type": "article"
}
]
},
"LiAV9crrTHhLqeZhD25a2": {
"title": "Debuggers",
"description": "In order to make developing with containers competitive with developing locally, we need the ability to run and attach to debuggers inside the container.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Buildx Debug",
"url": "https://docs.docker.com/reference/cli/docker/buildx/debug/",
"type": "article"
},
{
"title": "Debuggers in Docker",
"url": "https://courses.devopsdirective.com/docker-beginner-to-pro/lessons/11-development-workflow/02-debug-and-test",
"type": "article"
}
]
},
"Kmyo1_Mor9WHLkRhNShRZ": {
"title": "Tests",
"description": "We want to run tests in an environment as similar as possible to production, so it only makes sense to do so inside of our containers! This can include unit tests, integration tests, and end-to-end tests, all run within Docker containers to simulate real-world scenarios while avoiding interference from external dependencies. Using Docker CLI and tools like Docker Compose, you can create isolated testing environments, run tests in parallel, and spin up and tear down the necessary infrastructure automatically.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Running Tests - Docker",
"url": "https://courses.devopsdirective.com/docker-beginner-to-pro/lessons/11-development-workflow/03-tests",
"type": "article"
},
{
"title": "Explore top posts about Testing",
"url": "https://app.daily.dev/tags/testing?ref=roadmapsh",
"type": "article"
}
]
},
"oyqw4tr-taZcxt5kREh1g": {
"title": "Continuous Integration",
"description": "Continuous integration is the idea of executing some actions (for example build, test, etc...) automatically as you push code to your version control system.\n\nFor containers, there are a number of things we may want to do:\n\n* Build the container images\n* Execute tests\n* Scan container images for vulnerabilities\n* Tag images with useful metadata\n* Push to a container registry\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Continuous Integration - Docker",
"url": "https://courses.devopsdirective.com/docker-beginner-to-pro/lessons/11-development-workflow/04-continuous-integration-github-actions",
"type": "article"
},
{
"title": "Explore top posts about CI/CD",
"url": "https://app.daily.dev/tags/cicd?ref=roadmapsh",
"type": "article"
}
]
},
"qXOGqORi3EdqwsP9Uhi9m": {
"title": "Deploying Containers",
"description": "Deploying containers is a crucial step in using Docker and containerization to manage applications more efficiently, easily scale, and ensure consistent performance across environments. This topic will give you an overview of how to deploy Docker containers to create and run your applications.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Deployment",
"url": "https://docs.docker.com/get-started/deployment/",
"type": "article"
},
{
"title": "Docker Compose",
"url": "https://docs.docker.com/compose/",
"type": "article"
},
{
"title": "Docker Swarm",
"url": "https://docs.docker.com/engine/swarm/",
"type": "article"
}
]
},
"PP_RRBo_pThe2mgf6xzMP": {
"title": "PaaS Options",
"description": "Platform-as-a-Service (PaaS) options for deploying containers provide a simplified and managed environment where developers can build, deploy, and scale containerized applications without worrying about the underlying infrastructure. Popular PaaS offerings include Google Cloud Run, Azure App Service, AWS Elastic Beanstalk, and Heroku, which abstract away container orchestration complexities while offering automated scaling, easy integration with CI/CD pipelines, and monitoring capabilities. These platforms support rapid development and deployment by allowing teams to focus on application logic rather than server management, providing a seamless way to run containers in production with minimal operational overhead.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "PaaS Options for Deploying Containers",
"url": "https://www.docker.com/resources/what-container/#paas-options",
"type": "article"
},
{
"title": "Azure Container Instances",
"url": "https://azure.microsoft.com/en-us/services/container-instances/",
"type": "article"
},
{
"title": "Google Cloud Run",
"url": "https://cloud.google.com/run",
"type": "article"
},
{
"title": "IBM Cloud Code Engine",
"url": "https://www.ibm.com/cloud/code-engine",
"type": "article"
},
{
"title": "Amazon Elastic Container Service",
"url": "https://aws.amazon.com/ecs/",
"type": "article"
}
]
},
"RqXpX2XabtHYVjgg1EZR_": {
"title": "Kubernetes",
"description": "Kubernetes is an open-source container orchestration platform designed to automate the deployment, scaling, and management of containerized applications. It provides a robust framework for handling complex container workloads by organizing containers into logical units called pods, managing service discovery, load balancing, and scaling through declarative configurations. Kubernetes enables teams to deploy containers across clusters of machines, ensuring high availability and fault tolerance through self-healing capabilities like automatic restarts, replacements, and rollback mechanisms. With its extensive ecosystem and flexibility, Kubernetes has become the de facto standard for running large-scale, distributed applications, simplifying operations and improving the reliability of containerized workloads.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Kubernetes",
"url": "https://kubernetes.io/",
"type": "article"
},
{
"title": "Docker Swarm",
"url": "https://docs.docker.com/engine/swarm/",
"type": "article"
}
]
},
"r1eJZDZYouUjnGwAtRbyU": {
"title": "Nomad",
"description": "Nomad is a cluster manager and scheduler that enables you to deploy, manage and scale your containerized applications. It automatically handles node failures, resource allocation, and container orchestration. Nomad supports running Docker containers as well as other container runtime(s) and non-containerized applications.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Nomad Documentation",
"url": "https://www.nomadproject.io/docs",
"type": "article"
}
]
},
"ks6PFN-0Z9zH7gtWaWgxz": {
"title": "Docker Swarm",
"description": "Docker Swarm is Docker’s native container orchestration tool that allows users to deploy, manage, and scale containers across a cluster of Docker hosts. By transforming a group of Docker nodes into a single, unified cluster, Swarm provides high availability, load balancing, and automated container scheduling using simple declarative commands. With features like service discovery, rolling updates, and integrated security through TLS encryption, Docker Swarm offers an approachable alternative to more complex orchestrators like Kubernetes. Its tight integration with the Docker CLI and ease of setup make it a suitable choice for small to medium-sized deployments where simplicity and straightforward management are priorities.\n\nVisit the following resources to learn more:",
"links": [
{
"title": "Docker Swarm",
"url": "https://docs.docker.com/engine/swarm/",
"type": "article"
}
]
}
}
File diff suppressed because it is too large. Load diff
+46 -46
View File
@@ -1,232 +1,232 @@
{
"jrH1qE6EnFXL4fTyYU8gR": {
"title": "Introduction",
"description": "",
"description": "Prompt engineering is the practice of designing effective inputs for Large Language Models to achieve desired outputs. This roadmap covers fundamental concepts, core techniques, model parameters, and advanced methods. It's a universal skill accessible to anyone, requiring no programming background, yet crucial for unlocking AI potential across diverse applications and domains.",
"links": []
},
"74JxgfJ_1qmVNZ_QRp9Ne": {
"title": "LLMs and how they work?",
"description": "",
"description": "LLMs function as sophisticated prediction engines that process text sequentially, predicting the next token based on relationships between previous tokens and patterns from training data. They don't predict single tokens directly but generate probability distributions over possible next tokens, which are then sampled using parameters like temperature and top-K. The model repeatedly adds predicted tokens to the sequence, building responses iteratively. This token-by-token prediction process, combined with massive training datasets, enables LLMs to generate coherent, contextually relevant text across diverse applications and domains.",
"links": []
},
"i4ijY3T5gLgNz0XqRipXe": {
"title": "What is a Prompt?",
"description": "",
"description": "A prompt is an input provided to a Large Language Model (LLM) to generate a response or prediction. It serves as the instruction or context that guides the AI model's output generation process. Effective prompts are clear, specific, well-structured, and goal-oriented, directly affecting the accuracy and relevance of AI responses.",
"links": []
},
"43drPbTwPqJQPyzwYUdBT": {
"title": "What is Prompt Engineering?",
"description": "",
"description": "Prompt engineering is the practice of crafting effective input text to guide AI language models toward desired outputs. It involves designing prompts that communicate intent clearly to get accurate, relevant responses. This iterative process requires understanding how LLMs work as prediction engines and using techniques to optimize their performance for specific tasks.",
"links": []
},
"Yb5cQiV2ETxPbBYCLOpt2": {
"title": "OpenAI",
"description": "",
"description": "OpenAI developed influential language models including GPT-3, GPT-4, and ChatGPT, setting industry standards for prompt engineering practices. Their API provides access to powerful LLMs with configurable parameters like temperature and max tokens. Many prompt engineering techniques and best practices originated from working with OpenAI systems.",
"links": []
},
"o-6UKLZ6oCRbAKgRjH2uI": {
"title": "Google",
"description": "",
"description": "Google develops influential LLMs including Gemini, PaLM, and Bard. Through Vertex AI and Google Cloud Platform, they provide enterprise-grade model access with extensive prompt testing via Vertex AI Studio. Google's research has advanced many prompt engineering techniques, including Chain of Thought reasoning methods.",
"links": []
},
"V8pDOwrRKKcHBTd4qlSsH": {
"title": "Anthropic",
"description": "",
"description": "Anthropic created Claude, a family of large language models known for safety features and constitutional AI training. Claude models excel at following instructions, maintaining context, and avoiding harmful outputs. Their strong instruction-following capabilities and built-in safety measures make them valuable for reliable, ethical AI applications.",
"links": []
},
"Td2YzDFT4LPGDw8JMmQSQ": {
"title": "Meta",
"description": "",
"description": "Meta (formerly Facebook) develops the Llama family of open-source large language models. Llama models are available for research and commercial use, offering strong performance across various tasks. For prompt engineering, Meta's models provide transparency in training data and architecture, allowing developers to fine-tune and customize prompts for specific applications without vendor lock-in.",
"links": []
},
"3wshuH7_DXgbhxsLzzI4D": {
"title": "xAI",
"description": "",
"description": "xAI is Elon Musk's AI company that created Grok, a conversational AI model trained on web data with a focus on real-time information and humor. Grok aims to be more truthful and less politically correct than other models. For prompt engineering, xAI offers unique capabilities in accessing current events and generating responses with a distinctive conversational style.",
"links": []
},
"pamV5Z8DRKk2ioZbg6QVK": {
"title": "LLM",
"description": "",
"description": "Large Language Models (LLMs) are AI systems trained on vast text data to understand and generate human-like language. They work as prediction engines, analyzing input and predicting the next most likely token. LLMs perform tasks like text generation, translation, summarization, and Q&A. Understanding token processing is key to effective prompt engineering.",
"links": []
},
"NPcaSEteeEA5g22wQ7nL_": {
"title": "Tokens",
"description": "",
"description": "Tokens are fundamental units of text that LLMs process, created by breaking down text into smaller components like words, subwords, or characters. Understanding tokens is crucial because models predict the next token in sequences, API costs are based on token count, and models have maximum token limits for input and output.",
"links": []
},
"b-Xtkv6rt8QgzJXSShOX-": {
"title": "Context Window",
"description": "",
"description": "Context window refers to the maximum number of tokens an LLM can process in a single interaction, including both input prompt and generated output. When exceeded, older parts are truncated. Understanding this constraint is crucial for prompt engineering—you must balance providing sufficient context with staying within token limits.",
"links": []
},
"SWDa3Su3VS815WQbvvNsa": {
"title": "Hallucination",
"description": "",
"description": "Hallucination in LLMs refers to generating plausible-sounding but factually incorrect or fabricated information. This occurs when models fill knowledge gaps or present uncertain information with apparent certainty. Mitigation techniques include requesting sources, asking for confidence levels, providing context, and always verifying critical information independently.",
"links": []
},
"yfsjW1eze8mWT0iHxv078": {
"title": "Model Weights / Parameters",
"description": "",
"description": "Model weights and parameters are the learned values that define an LLM's behavior and knowledge. Parameters are the trainable variables adjusted during training, while weights represent their final values. Understanding parameter count helps gauge model capabilities - larger models typically have more parameters and better performance but require more computational resources.",
"links": []
},
"Ke5GT163k_ek9SzbcbBGE": {
"title": "Fine-Tuning vs Prompt Engg.",
"description": "",
"description": "Fine-tuning trains models on specific data to specialize behavior, while prompt engineering achieves customization through input design without model modification. Prompt engineering is faster, cheaper, and more accessible. Fine-tuning offers deeper customization but requires significant resources and expertise.",
"links": []
},
"gxydtFKmnXNY9I5kpTwjP": {
"title": "RAG",
"description": "",
"description": "Retrieval-Augmented Generation (RAG) combines LLMs with external knowledge retrieval to ground responses in verified, current information. RAG retrieves relevant documents before generating responses, reducing hallucinations and enabling access to information beyond the model's training cutoff. This approach improves accuracy and provides source attribution.",
"links": []
},
"Pw5LWA9vNRY0N2M0FW16f": {
"title": "Agents",
"description": "",
"description": "AI agents are autonomous systems that use LLMs to reason, plan, and take actions to achieve specific goals. They combine language understanding with tool usage, memory, and decision-making to perform complex, multi-step tasks. Agents can interact with external APIs and services while maintaining context across interactions.",
"links": []
},
"6W_ONYREbXHwPigoDx1cW": {
"title": "Prompt Injection",
"description": "",
"description": "Prompt injection is a security vulnerability where malicious users manipulate LLM inputs to override intended behavior, bypass safety measures, or extract sensitive information. Attackers embed instructions within data to make models ignore original prompts and follow malicious commands. Mitigation requires input sanitization, injection-resistant prompt design, and proper security boundaries.",
"links": []
},
"Sj1CMZzZp8kF-LuHcd_UU": {
"title": "AI vs AGI",
"description": "",
"description": "AI (Artificial Intelligence) refers to systems that perform specific tasks intelligently, while AGI (Artificial General Intelligence) represents hypothetical AI with human-level reasoning across all domains. Current LLMs are narrow AI - powerful at language tasks but lacking true understanding or general intelligence like AGI would possess.",
"links": []
},
"JgigM7HvmNOuKnp60v1Ce": {
"title": "Sampling Parameters",
"description": "",
"description": "Sampling parameters (temperature, top-K, top-P) control how LLMs select tokens from probability distributions, determining output randomness and creativity. These parameters interact: at extreme settings, one can override others (temperature 0 makes top-K/top-P irrelevant). A balanced starting point is temperature 0.2, top-P 0.95, top-K 30 for coherent but creative results. Understanding their interactions is crucial for optimal prompting—use temperature 0 for factual tasks, higher values for creativity, and combine settings strategically based on your specific use case.",
"links": []
},
"iMwg-I76-Tg5dhu8DGO6U": {
"title": "Temperature",
"description": "",
"description": "Temperature controls the randomness in token selection during text generation. Lower values (0-0.3) produce deterministic, factual outputs. Medium values (0.5-0.7) balance creativity and coherence. Higher values (0.8-1.0) generate creative, diverse outputs but may be less coherent. Use low temperature for math/facts, high for creative writing.",
"links": []
},
"FF8ai1v5GDzxXLQhpwuPj": {
"title": "Top-K",
"description": "",
"description": "Top-K restricts token selection to the K most likely tokens from the probability distribution. Low values (1-10) produce conservative, factual outputs. Medium values (20-50) balance creativity and quality. High values (50+) enable diverse, creative outputs. Use low K for technical tasks, high K for creative writing.",
"links": []
},
"-G1U1jDN5st1fTUtQmMl1": {
"title": "Top-P",
"description": "",
"description": "Top-P (nucleus sampling) selects tokens from the smallest set whose cumulative probability exceeds threshold P. Unlike Top-K's fixed number, Top-P dynamically adjusts based on probability distribution. Low values (0.1-0.5) produce focused outputs, medium (0.6-0.9) balance creativity and coherence, high (0.9-0.99) enable creative diversity.",
"links": []
},
"wSf7Zr8ZYBuKWX0GQX6J3": {
"title": "Output Control",
"description": "",
"description": "Output control encompasses techniques and parameters for managing LLM response characteristics including length, format, style, and content boundaries. Key methods include max tokens for length limits, stop sequences for precise boundaries, temperature for creativity control, and structured output requirements for format consistency. Effective output control combines prompt engineering techniques with model parameters to ensure responses meet specific requirements. This is crucial for production applications where consistent, appropriately formatted outputs are essential for user experience and system integration.",
"links": []
},
"vK9Gf8dGu2UvvJJhhuHG9": {
"title": "Max Tokens",
"description": "",
"description": "Max tokens setting controls the maximum number of tokens an LLM can generate in response, directly impacting computation cost, response time, and energy consumption. Setting lower limits doesn't make models more concise—it simply stops generation when the limit is reached. This parameter is crucial for techniques like ReAct where models might generate unnecessary tokens after the desired response. Balancing max tokens involves considering cost efficiency, response completeness, and application requirements while ensuring critical information isn't truncated.",
"links": []
},
"v3CylRlojeltcwnE76j8Q": {
"title": "Stop Sequences",
"description": "",
"description": "Stop sequences are specific strings that signal the LLM to stop generating text when encountered, providing precise control over output length and format. Common examples include newlines, periods, or custom markers like \"###\" or \"END\". This parameter is particularly useful for structured outputs, preventing models from generating beyond intended boundaries. Stop sequences are essential for ReAct prompting and other scenarios where you need clean, precisely bounded responses. They offer more control than max tokens by stopping at logical breakpoints rather than arbitrary token limits.",
"links": []
},
"g8ylIg4Zh567u-E3yVVY4": {
"title": "Repetition Penalties",
"description": "",
"description": "Repetition penalties discourage LLMs from repeating words or phrases by reducing the probability of selecting previously used tokens. This includes frequency penalty (scales with usage count) and presence penalty (applies equally to any used token). These parameters improve output quality by promoting vocabulary diversity and preventing redundant phrasing.",
"links": []
},
"YIVNjkmTOY61VmL0md9Pj": {
"title": "Frequency Penalty",
"description": "",
"description": "Frequency penalty reduces token probability based on how frequently they've appeared in the text, with higher penalties for more frequent tokens. This prevents excessive repetition and encourages varied language use. The penalty scales with usage frequency, making overused words less likely to be selected again, improving content diversity.",
"links": []
},
"WpO8V5caudySVehOcuDvK": {
"title": "Presence Penalty",
"description": "",
"description": "Presence penalty reduces the likelihood of repeating tokens that have already appeared in the text, encouraging diverse vocabulary usage. Unlike frequency penalty which considers how often tokens appear, presence penalty applies the same penalty to any previously used token, promoting varied content and creativity.",
"links": []
},
"j-PWO-ZmF9Oi9A5bwMRto": {
"title": "Structured Outputs",
"description": "",
"description": "Structured outputs involve prompting LLMs to return responses in specific formats like JSON, XML, or other organized structures rather than free-form text. This approach forces models to organize information systematically, reduces hallucinations by imposing format constraints, enables easy programmatic processing, and facilitates integration with applications. For example, requesting movie classification results as JSON with specified schema ensures consistent, parseable responses. Structured outputs are particularly valuable for data extraction, API integration, and applications requiring reliable data formatting.",
"links": []
},
"GRerL9UXN73TwpCW2eTIE": {
"title": "Zero-Shot Prompting",
"description": "",
"description": "Zero-shot prompting provides only a task description without examples, relying on the model's training patterns. Simply describe the task clearly, provide input data, and optionally specify output format. Works well for simple classification, text generation, and Q&A, but may produce inconsistent results for complex tasks.",
"links": []
},
"Iufv_LsgUNls-Alx_Btlh": {
"title": "One-Shot / Few-Shot Prompting",
"description": "",
"description": "One-shot provides a single example to guide model behavior, while few-shot includes multiple examples (3-5) to demonstrate desired patterns. Examples show output structure, style, and tone, increasing accuracy and consistency. Use few-shot for complex formatting, specialized tasks, and when zero-shot results are inconsistent.",
"links": []
},
"fWo39-hehRgwmx7CF36mM": {
"title": "System Prompting",
"description": "",
"description": "System prompting sets the overall context, purpose, and operational guidelines for LLMs. It defines the model's role, behavioral constraints, output format requirements, and safety guardrails. System prompts provide foundational parameters that influence all subsequent interactions, ensuring consistent, controlled, and structured AI responses throughout the session.",
"links": []
},
"XHWKGaSRBYT4MsCHwV-iR": {
"title": "Role Prompting",
"description": "",
"description": "Role prompting assigns a specific character, identity, or professional role to the LLM to generate responses consistent with that role's expertise, personality, and communication style. By establishing roles like \"teacher,\" \"travel guide,\" or \"software engineer,\" you provide the model with appropriate domain knowledge, perspective, and tone for more targeted, natural interactions.",
"links": []
},
"5TNK1KcSzh9GTKiEJnM-y": {
"title": "Contextual Prompting",
"description": "",
"description": "Contextual prompting provides specific background information or situational details relevant to the current task, helping LLMs understand nuances and tailor responses accordingly. Unlike system or role prompts, contextual prompts supply immediate, task-specific information that's dynamic and changes based on the situation. For example: \"Context: You are writing for a blog about retro 80's arcade video games. Suggest 3 topics to write articles about.\" This technique ensures responses are relevant, accurate, and appropriately framed for the specific context provided.",
"links": []
},
"2MboHh8ugkoH8dSd9d4Mk": {
"title": "Step-back Prompting",
"description": "",
"description": "Step-back prompting improves LLM performance by first asking a general question related to the specific task, then using that answer to inform the final response. This technique activates relevant background knowledge before attempting the specific problem. For example, before writing a video game level storyline, first ask \"What are key settings for engaging first-person shooter levels?\" then use those insights to create the specific storyline. This approach reduces biases and improves accuracy by grounding responses in broader principles.",
"links": []
},
"weRaJxEplhKDyFWSMeoyI": {
"title": "Chain of Thought (CoT) Prompting",
"description": "",
"description": "Chain of Thought prompting improves LLM reasoning by generating intermediate reasoning steps before providing the final answer. Instead of jumping to conclusions, the model \"thinks through\" problems step by step. Simply adding \"Let's think step by step\" to prompts often dramatically improves accuracy on complex reasoning tasks and mathematical problems.",
"links": []
},
"1EzqCoplXPiHjp9Z-vqn-": {
"title": "Self-Consistency Prompting",
"description": "",
"description": "Self-consistency prompting generates multiple reasoning paths for the same problem using higher temperature settings, then selects the most commonly occurring answer through majority voting. This technique combines sampling and voting to improve accuracy and provides pseudo-probability of answer correctness. While more expensive due to multiple API calls, it significantly enhances reliability for complex reasoning tasks by reducing the impact of single incorrect reasoning chains and leveraging diverse problem-solving approaches.",
"links": []
},
"ob9D0W9B9145Da64nbi1M": {
"title": "Tree of Thoughts (ToT) Prompting",
"description": "",
"description": "Tree of Thoughts (ToT) generalizes Chain of Thought by allowing LLMs to explore multiple reasoning paths simultaneously rather than following a single linear chain. This approach maintains a tree structure where each thought represents a coherent step toward solving a problem, enabling the model to branch out and explore different reasoning directions. ToT is particularly effective for complex tasks requiring exploration and is well-suited for problems that benefit from considering multiple solution approaches before converging on the best answer.",
"links": []
},
"8Ks6txRSUfMK7VotSQ4sC": {
"title": "ReAct Prompting",
"description": "",
"description": "ReAct (Reason and Act) prompting enables LLMs to solve complex tasks by combining reasoning with external tool interactions. It follows a thought-action-observation loop: analyze the problem, perform actions using external APIs, review results, and iterate until solved. Useful for research, multi-step problems, and tasks requiring current data.",
"links": []
},
"diHNCiuKHeMVgvJ4OMwVh": {
"title": "Automatic Prompt Engineering",
"description": "",
"description": "Automatic Prompt Engineering (APE) uses LLMs to generate and optimize prompts automatically, reducing human effort while enhancing model performance. The process involves prompting a model to create multiple prompt variants, evaluating them using metrics like BLEU or ROUGE, then selecting the highest-scoring candidate. For example, generating 10 variants of customer order phrases for chatbot training, then testing and refining the best performers. This iterative approach helps discover effective prompts that humans might not consider, automating the optimization process.",
"links": []
},
"Wvu9Q_kNhH1_JlOgxAjP6": {
"title": "AI Red Teaming",
"description": "",
"description": "AI red teaming involves deliberately testing AI systems to find vulnerabilities, biases, or harmful behaviors through adversarial prompting. Teams attempt to make models produce undesired outputs, bypass safety measures, or exhibit problematic behaviors. This process helps identify weaknesses and improve AI safety and robustness before deployment.",
"links": []
},
"0H2keZYD8iTNyBgmNVhto": {
"title": "Prompt Debiasing",
"description": "",
"description": "Prompt debiasing involves techniques to reduce unwanted biases in LLM outputs by carefully crafting prompts. This includes using neutral language, diverse examples, and explicit instructions to avoid stereotypes or unfair representations. Effective debiasing helps ensure AI outputs are more fair, inclusive, and representative across different groups and perspectives.",
"links": []
},
"HOqWHqAkxLX8f2ImSmZE7": {
"title": "Prompt Ensembling",
"description": "",
"description": "Prompt ensembling combines multiple different prompts or prompt variations to improve output quality and consistency. This technique involves running the same query with different prompt formulations and aggregating results through voting, averaging, or selection. Ensembling reduces variance and increases reliability by leveraging diverse prompt perspectives.",
"links": []
},
"CvV3GIvQhsTvE-TQjTpIQ": {
"title": "LLM Self Evaluation",
"description": "",
"description": "LLM self-evaluation involves prompting models to assess their own outputs for quality, accuracy, or adherence to criteria. This technique can identify errors, rate confidence levels, or check if responses meet specific requirements. Self-evaluation helps improve output quality through iterative refinement and provides valuable feedback for prompt optimization.",
"links": []
},
"P5nDyQbME53DOEfSkcY6I": {
"title": "Calibrating LLMs",
"description": "",
"description": "Calibrating LLMs involves adjusting models so their confidence scores accurately reflect their actual accuracy. Well-calibrated models express appropriate uncertainty - being confident when correct and uncertain when likely wrong. This helps users better trust and interpret model outputs, especially in critical applications where uncertainty awareness is crucial.",
"links": []
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

@@ -1,7 +1,6 @@
import { Loader2Icon } from 'lucide-react';
import { MessageCircle } from 'lucide-react';
import { memo, useId, useRef, useState } from 'react';
import { flushSync } from 'react-dom';
import { Modal } from '../Modal';
import { cn } from '../../lib/classname';
import { SelectNative } from '../SelectNative';
@@ -32,7 +31,6 @@ export const PersonalizedResponseForm = memo(
const toast = useToast();
const [expertise, setExpertise] = useState(defaultValues?.expertise ?? '');
const [hasInitialGoal, setHasInitialGoal] = useState(!!defaultValues?.goal);
const [goal, setGoal] = useState(defaultValues?.goal ?? '');
const [about, setAbout] = useState(defaultValues?.about ?? '');
@@ -47,6 +45,16 @@ export const PersonalizedResponseForm = memo(
const goalRef = useRef<HTMLTextAreaElement>(null);
const goalOptions = [
'Finding a job',
'Learning for fun',
'Building a side project',
'Switching careers',
'Getting a promotion',
'Filling knowledge gaps',
'Other (tell us more)',
];
const { mutate: setChatPreferences, isPending } = useMutation(
{
mutationFn: (data: ChatPreferencesFormData) => {
@@ -84,7 +92,7 @@ export const PersonalizedResponseForm = memo(
return (
<Modal onClose={onClose}>
<div className="p-4">
<form onSubmit={handleSubmit} className={cn('space-y-3')}>
<form onSubmit={handleSubmit} className={cn('space-y-8')}>
<div className="flex flex-col gap-3">
<label
className="text-sm font-medium text-gray-700"
@@ -127,27 +135,19 @@ export const PersonalizedResponseForm = memo(
{!hasInitialGoal && (
<div className="flex flex-row flex-wrap gap-2">
{[
'Finding a job',
'Learning for fun',
'Building a side project',
'Switching careers',
'Getting a promotion',
'Filling knowledge gaps',
'Other (tell us more)',
].map((goalTemplate) => (
{goalOptions.map((goalTemplate) => (
<button
key={goalTemplate}
className="rounded-lg border border-gray-200 bg-gray-50 px-4 py-2 text-sm text-gray-600 transition-all hover:border-gray-300 hover:bg-gray-100"
className="rounded-lg border border-gray-200 bg-gray-50 px-4 py-2 text-sm text-gray-600 transition-all hover:border-gray-300 hover:border-gray-400 hover:bg-gray-100"
onClick={() => {
if (goalTemplate !== 'Other (tell us more)') {
setGoal(`${goalTemplate}.`);
}
setHasInitialGoal(true);
flushSync(() => {
setTimeout(() => {
goalRef.current?.focus();
});
}, 0);
}}
type="button"
>
@@ -162,7 +162,7 @@ export const PersonalizedResponseForm = memo(
id={goalFieldId}
className={cn(
'block min-h-24 w-full resize-none rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500',
!hasInitialGoal && 'hidden',
!hasInitialGoal && 'hidden'
)}
placeholder={`e.g. need to find a job as soon as possible`}
value={goal}
@@ -178,9 +178,9 @@ export const PersonalizedResponseForm = memo(
Tell us more about yourself
</label>
<input
<textarea
id={aboutFieldId}
className="block h-[40px] w-full resize-none rounded-lg border border-gray-300 bg-white px-4 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
className="block min-h-24 w-full resize-none rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
placeholder="e.g. I'm a software engineer with 5 years of experience"
value={about}
onChange={(e) => setAbout(e.target.value)}
@@ -195,9 +195,9 @@ export const PersonalizedResponseForm = memo(
Special Instructions
</label>
<input
<textarea
id={specialInstructionsFieldId}
className="block h-[40px] w-full resize-none rounded-lg border border-gray-300 bg-white px-4 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
className="block min-h-24 w-full resize-none rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
placeholder="e.g. Prefer concise responses with code examples"
value={specialInstructions}
onChange={(e) => setSpecialInstructions(e.target.value)}
+49 -19
View File
@@ -9,6 +9,8 @@ import { getAiCourseLimitOptions } from '../../queries/ai-course';
import { useQuery } from '@tanstack/react-query';
import { getPercentage } from '../../lib/number';
import { AILimitsPopup } from '../GenerateCourse/AILimitsPopup';
import { cn } from '../../lib/classname';
import { UserDropdown } from './UserDropdown';
type AITutorSidebarProps = {
isFloating: boolean;
@@ -91,11 +93,12 @@ export function AITutorSidebar(props: AITutorSidebarProps) {
)}
<aside
className={`w-[var(--ai-sidebar-width)] shrink-0 border-r border-slate-200 ${
className={cn(
'flex w-[var(--ai-sidebar-width)] shrink-0 flex-col border-r border-slate-200',
isFloating
? 'fixed top-0 bottom-0 left-0 z-50 block border-r-0 bg-white shadow-xl'
: 'hidden lg:block'
}`}
? 'fixed top-0 bottom-0 left-0 z-50 flex border-r-0 bg-white shadow-xl'
: 'hidden lg:flex',
)}
>
{isFloating && (
<button className="absolute top-3 right-3" onClick={onClose}>
@@ -125,22 +128,13 @@ export function AITutorSidebar(props: AITutorSidebarProps) {
</p>
</div>
<ul className="space-y-1">
<ul className="list-none space-y-1">
{sidebarItems.map((item) => (
<li key={item.key}>
<a
href={item.href}
className={`font-regular flex w-full items-center border-r-2 px-5 py-2 text-sm transition-all ${
activeTab === item.key
? 'border-r-black bg-gray-100 text-black'
: 'border-r-transparent text-gray-500 hover:border-r-gray-300'
}`}
>
<span className="flex grow items-center">
<item.icon className="mr-2 size-4" />
{item.label}
</span>
</a>
<AITutorSidebarItem
item={item}
isActive={activeTab === item.key}
/>
</li>
))}
@@ -150,7 +144,7 @@ export function AITutorSidebar(props: AITutorSidebarProps) {
onClick={() => {
setIsUpgradeModalOpen(true);
}}
className="mx-4 animate-fade-in mt-4 rounded-xl bg-amber-100 p-4 text-left transition-colors hover:bg-amber-200/80"
className="animate-fade-in mx-4 mt-4 rounded-xl bg-amber-100 p-4 text-left transition-colors hover:bg-amber-200/80"
>
<span className="mb-2 flex items-center gap-2">
<Zap className="size-4 text-amber-600" />
@@ -177,6 +171,9 @@ export function AITutorSidebar(props: AITutorSidebarProps) {
</li>
)}
</ul>
<div className="mx-2 mt-auto mb-2">
<UserDropdown />
</div>
</aside>
{isFloating && (
<div className="fixed inset-0 z-40 bg-black/50" onClick={onClose} />
@@ -184,3 +181,36 @@ export function AITutorSidebar(props: AITutorSidebarProps) {
</>
);
}
type AITutorSidebarItemProps = {
item: (typeof sidebarItems)[number];
as?: 'a' | 'button';
onClick?: () => void;
className?: string;
isActive?: boolean;
};
function AITutorSidebarItem(props: AITutorSidebarItemProps) {
const { item, as = 'a', onClick, className, isActive } = props;
const Component = as;
return (
<Component
{...(as === 'a' ? { href: item.href } : {})}
{...(as === 'button' ? { onClick } : {})}
className={cn(
'font-regular flex w-full items-center border-r-2 px-5 py-2 text-sm transition-all',
isActive
? 'border-r-black bg-gray-100 text-black'
: 'border-r-transparent text-gray-500 hover:border-r-gray-300',
className,
)}
>
<span className="flex grow items-center">
<item.icon className="mr-2 size-4" />
{item.label}
</span>
</Component>
);
}
+121
View File
@@ -0,0 +1,121 @@
import {
ChevronDown,
CreditCardIcon,
LogInIcon,
LogOutIcon,
Settings,
User2,
} from 'lucide-react';
import { useAuth } from '../../hooks/use-auth';
import { useClientMount } from '../../hooks/use-client-mount';
import { logout } from '../../lib/auth';
import { showLoginPopup } from '../../lib/popup';
import { useIsPaidUser } from '../../queries/billing';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from '../DropdownMenu';
type UserDropdownProps = {};
export function UserDropdown(props: UserDropdownProps) {
const currentUser = useAuth();
const { isPaidUser, isLoading } = useIsPaidUser();
const isMounted = useClientMount();
if (!isMounted || isLoading) {
return null;
}
if (!currentUser) {
return (
<button
onClick={showLoginPopup}
className="animate-fade-in inline-flex h-auto w-full items-center justify-center gap-2 rounded-lg border border-gray-700 bg-black px-4 py-2.5 text-sm font-medium text-white transition-all duration-200 outline-none hover:!opacity-80 disabled:cursor-not-allowed disabled:opacity-60"
>
<LogInIcon className="size-4" />
Free Signup or Login
</button>
);
}
const userAvatar = currentUser?.avatar
? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${currentUser?.avatar}`
: '/images/default-avatar.png';
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button className="group flex w-full items-center gap-3 rounded-lg border border-transparent px-4 py-2.5 text-sm font-medium transition-colors hover:bg-gray-100 hover:text-black focus:outline-none data-[state=open]:bg-gray-100 data-[state=open]:text-black">
<div className="relative size-7 shrink-0 overflow-hidden rounded-full">
<img
src={userAvatar}
alt={currentUser.name}
className="absolute inset-0 h-full w-full object-cover"
/>
</div>
<div className="flex min-w-0 flex-1 flex-col text-left">
<span className="truncate font-medium text-gray-900">
{currentUser.name}
</span>
<span className="truncate text-xs text-gray-500">
{isPaidUser ? 'Pro Member' : 'Free User'}
</span>
</div>
<ChevronDown className="size-4 text-gray-400 transition-transform duration-200 group-data-[state=open]:rotate-180" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-[var(--radix-dropdown-menu-trigger-width)] min-w-52 rounded-lg border border-gray-200 bg-white p-1">
<div className="space-y-1">
<DropdownMenuItem asChild>
<a
href="/account"
className="flex w-full items-center gap-3 rounded px-3 py-2 text-sm font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-black"
>
<User2 className="size-4" />
Account
</a>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<a
href="/account/billing"
className="flex w-full items-center gap-3 rounded px-3 py-2 text-sm font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-black"
>
<CreditCardIcon className="size-4" />
Billing
</a>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<a
href="/account/settings"
className="flex w-full items-center gap-3 rounded px-3 py-2 text-sm font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-black"
>
<Settings className="size-4" />
Settings
</a>
</DropdownMenuItem>
</div>
<DropdownMenuSeparator className="my-1" />
<DropdownMenuItem
className="flex w-full items-center gap-3 rounded px-3 py-2 text-sm font-medium text-red-600 transition-colors hover:bg-red-50 hover:text-red-700"
onSelect={() => {
logout();
}}
>
<LogOutIcon className="size-4" />
Logout
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
);
}
+14
View File
@@ -1,3 +1,5 @@
import { httpPost } from '../../lib/query-http';
declare global {
interface Window {
gtag: any;
@@ -20,6 +22,18 @@ declare global {
*/
window.fireEvent = (props) => {
const { action, category, label, value, callback } = props;
if (['course', 'ai_tutor'].includes(category)) {
const url = new URL(import.meta.env.PUBLIC_API_URL);
url.pathname = '/api/_t';
url.searchParams.set('action', action);
url.searchParams.set('category', category);
url.searchParams.set('label', label ?? '');
url.searchParams.set('value', value ?? '');
httpPost(url.toString(), {}).catch(console.error);
}
if (!window.gtag) {
console.warn('Missing GTAG - Analytics disabled');
return;
@@ -1,7 +1,6 @@
import Cookies from 'js-cookie';
import { TOKEN_COOKIE_NAME } from '../../lib/jwt';
export const REDIRECT_PAGE_AFTER_AUTH = 'redirect_page_after_auth';
import { REDIRECT_PAGE_AFTER_AUTH } from '../../lib/auth';
function easeInElement(el: Element) {
el.classList.add('opacity-0', 'transition-opacity', 'duration-300');
+179 -130
View File
@@ -41,13 +41,12 @@ export function BillingPage() {
queryClient,
);
const isCanceled =
billingDetails?.status === 'canceled' ||
billingDetails?.status === 'incomplete_expired' ||
billingDetails?.cancelAtPeriodEnd;
const willBeCanceled = billingDetails?.cancelAtPeriodEnd;
const isCanceled = billingDetails?.status === 'canceled';
const isPastDue = billingDetails?.status === 'past_due';
const isIncomplete = billingDetails?.status === 'incomplete';
const isIncompleteExpired = billingDetails?.status === 'incomplete_expired';
const {
mutate: createCustomerPortal,
@@ -101,7 +100,7 @@ export function BillingPage() {
day: 'numeric',
});
return (
const modals = (
<>
{showUpgradeModal && (
<UpgradeAccountModal
@@ -112,140 +111,190 @@ export function BillingPage() {
)}
{showVerifyUpgradeModal && <VerifyUpgrade />}
</>
);
{billingDetails?.status === 'none' && !isLoadingBillingDetails && (
if (billingDetails?.status === 'none' || isIncompleteExpired) {
return (
<>
{modals}
<EmptyBillingScreen onUpgrade={() => setShowUpgradeModal(true)} />
)}
</>
);
}
{billingDetails?.status !== 'none' &&
!isLoadingBillingDetails &&
priceDetails && (
<div className="mt-1">
{isIncomplete && (
<BillingWarning
icon={AlertCircle}
message="Your subscription is incomplete "
buttonText="please pay invoice on Stripe."
onButtonClick={() => {
createCustomerPortal({});
}}
isLoading={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
/>
)}
{isCanceled && (
<BillingWarning
icon={CircleX}
message="Your subscription has been canceled."
buttonText="Reactivate?"
onButtonClick={() => {
createCustomerPortal({});
}}
isLoading={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
/>
)}
{isPastDue && (
<BillingWarning
message="We were not able to charge your card."
buttonText="Update payment information."
onButtonClick={() => {
createCustomerPortal({});
}}
isLoading={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
/>
)}
if (isCanceled) {
return (
<>
{modals}
<BillingWarning
icon={CircleX}
message="Your subscription has been canceled."
buttonText="Reactivate?"
onButtonClick={() => {
if (willBeCanceled) {
createCustomerPortal({});
} else {
setShowUpgradeModal(true);
}
}}
isLoading={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
/>
<h2 className="mb-2 text-xl font-semibold text-black">
Current Subscription
</h2>
<EmptyBillingScreen onUpgrade={() => setShowUpgradeModal(true)} />
</>
);
}
<p className="text-sm text-gray-500">
Thank you for being a pro member. Your plan details are below.
</p>
if (isIncomplete) {
return (
<>
{modals}
<BillingWarning
icon={AlertCircle}
message="Your subscription is incomplete "
buttonText="please pay invoice on Stripe."
onButtonClick={() => {
createCustomerPortal({});
}}
isLoading={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
/>
<div className="mt-8 flex flex-col gap-6 sm:flex-row sm:items-center sm:justify-between">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-gray-100">
<RefreshCw className="size-5 text-gray-600" />
</div>
<div>
<span className="text-xs tracking-wider text-gray-400 uppercase">
Payment
</span>
<h3 className="flex items-baseline text-lg font-semibold text-black">
${priceDetails.amount}
<span className="ml-1 text-sm font-normal text-gray-500">
/ {priceDetails.interval}
</span>
</h3>
</div>
</div>
<EmptyBillingScreen onUpgrade={() => setShowUpgradeModal(true)} />
</>
);
}
if (!priceDetails) {
return (
<div className="p-5">
<h1 className="text-2xl font-bold">Uh oh!</h1>
<p className="text-sm text-gray-500">
We couldn't find your subscription details. Please contact support at
<a className="text-blue-500 underline" href="mailto:info@roadmap.sh">
info@roadmap.sh
</a>
.
</p>
</div>
);
}
return (
<>
{modals}
<div className="mt-1">
{isPastDue && (
<BillingWarning
message="We were not able to charge your card."
buttonText="Update payment information."
onButtonClick={() => {
createCustomerPortal({});
}}
isLoading={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
/>
)}
{willBeCanceled && (
<BillingWarning
icon={CircleX}
message={`Your subscription will be canceled on ${formattedNextBillDate}. `}
buttonText="Reactivate?"
onButtonClick={() => {
createCustomerPortal({});
}}
isLoading={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
/>
)}
<h2 className="mb-2 text-xl font-semibold text-black">
Current Subscription
</h2>
<p className="text-sm text-gray-500">
Thank you for being a pro member. Your plan details are below.
</p>
<div className="mt-8 flex flex-col gap-6 sm:flex-row sm:items-center sm:justify-between">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-gray-100">
<RefreshCw className="size-5 text-gray-600" />
</div>
<div
className={cn(
'mt-6 pt-6',
!isIncomplete && 'border-t border-gray-100',
isIncomplete && '-mt-6',
)}
>
{!isIncomplete && (
<div className="flex items-start gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-gray-100">
<Calendar className="size-5 text-gray-600" />
</div>
<div>
<span className="text-xs tracking-wider text-gray-400 uppercase">
{billingDetails?.cancelAtPeriodEnd
? 'Expires On'
: 'Renews On'}
</span>
<h3 className="text-lg font-semibold text-black">
{formattedNextBillDate}
</h3>
</div>
</div>
)}
<div className="mt-8 flex gap-3 max-sm:flex-col">
{!isCanceled && !isIncomplete && (
<button
className="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-xs transition-colors hover:bg-gray-50 focus:ring-2 focus:ring-black focus:ring-offset-2 focus:outline-hidden max-sm:grow"
onClick={() => {
setShowUpgradeModal(true);
}}
>
<ArrowRightLeft className="mr-2 h-4 w-4" />
Switch Plan
</button>
)}
<button
className="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-xs transition-colors hover:bg-gray-50 focus:ring-2 focus:ring-black focus:ring-offset-2 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
onClick={() => {
createCustomerPortal({});
}}
disabled={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
>
{isCreatingCustomerPortal ||
isCreatingCustomerPortalSuccess ? (
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
) : (
<CreditCard className="mr-2 h-4 w-4" />
)}
Manage Subscription
</button>
</div>
<div>
<span className="text-xs tracking-wider text-gray-400 uppercase">
Payment
</span>
<h3 className="flex items-baseline text-lg font-semibold text-black">
${priceDetails.amount}
<span className="ml-1 text-sm font-normal text-gray-500">
/ {priceDetails.interval}
</span>
</h3>
</div>
</div>
)}
</div>
<div
className={cn(
'mt-6 pt-6',
!isIncomplete && 'border-t border-gray-100',
isIncomplete && '-mt-6',
)}
>
<div className="flex items-start gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-gray-100">
<Calendar className="size-5 text-gray-600" />
</div>
<div>
<span className="text-xs tracking-wider text-gray-400 uppercase">
{willBeCanceled ? 'Expires On' : 'Renews On'}
</span>
<h3 className="text-lg font-semibold text-black">
{formattedNextBillDate}
</h3>
</div>
</div>
<div className="mt-8 flex gap-3 max-sm:flex-col">
{!willBeCanceled && (
<button
className="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-xs transition-colors hover:bg-gray-50 focus:ring-2 focus:ring-black focus:ring-offset-2 focus:outline-hidden max-sm:grow"
onClick={() => {
setShowUpgradeModal(true);
}}
>
<ArrowRightLeft className="mr-2 h-4 w-4" />
Switch Plan
</button>
)}
<button
className="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-xs transition-colors hover:bg-gray-50 focus:ring-2 focus:ring-black focus:ring-offset-2 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
onClick={() => {
createCustomerPortal({});
}}
disabled={
isCreatingCustomerPortal || isCreatingCustomerPortalSuccess
}
>
{isCreatingCustomerPortal || isCreatingCustomerPortalSuccess ? (
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
) : (
<CreditCard className="mr-2 h-4 w-4" />
)}
Manage Subscription
</button>
</div>
</div>
</div>
</>
);
}
@@ -120,10 +120,11 @@ export function UpgradeAccountModal(props: UpgradeAccountModalProps) {
queryClient,
);
const isCanceled = userBillingDetails?.status === 'canceled';
const selectedPlanDetails = USER_SUBSCRIPTION_PLAN_PRICES.find(
(plan) => plan.interval === selectedPlan,
);
const currentPlanPriceId = userBillingDetails?.priceId;
const currentPlanPriceId = isCanceled ? null : userBillingDetails?.priceId;
const currentPlan = USER_SUBSCRIPTION_PLAN_PRICES.find(
(plan) => plan.priceId === currentPlanPriceId,
);
@@ -1,6 +1,6 @@
import { type FormEvent, useEffect, useState } from 'react';
import { httpDelete } from '../../lib/http';
import { logout } from '../Navigation/navigation';
import { logout } from '../../lib/auth';
export function DeleteAccountForm() {
const [isLoading, setIsLoading] = useState(false);
@@ -24,7 +24,7 @@ export function DeleteAccountForm() {
}
const { response, error } = await httpDelete(
`${import.meta.env.PUBLIC_API_URL}/v1-delete-account`
`${import.meta.env.PUBLIC_API_URL}/v1-delete-account`,
);
if (error || !response) {
+197
View File
@@ -0,0 +1,197 @@
import * as React from 'react';
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
import { Check, ChevronRight, Circle } from 'lucide-react';
import { cn } from '../lib/classname';
const DropdownMenu = DropdownMenuPrimitive.Root;
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
const DropdownMenuSubTrigger = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
inset?: boolean;
}
>(({ className, inset, children, ...props }, ref) => (
<DropdownMenuPrimitive.SubTrigger
ref={ref}
className={cn(
'flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none focus-visible:bg-gray-100 data-[state=open]:bg-gray-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
inset && 'pl-8',
className,
)}
{...props}
>
{children}
<ChevronRight className="ml-auto" />
</DropdownMenuPrimitive.SubTrigger>
));
DropdownMenuSubTrigger.displayName =
DropdownMenuPrimitive.SubTrigger.displayName;
const DropdownMenuSubContent = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.SubContent
ref={ref}
className={cn(
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg',
className,
)}
{...props}
/>
));
DropdownMenuSubContent.displayName =
DropdownMenuPrimitive.SubContent.displayName;
const DropdownMenuContent = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
>(({ className, sideOffset = 4, ...props }, ref) => (
<DropdownMenuPrimitive.Portal>
<DropdownMenuPrimitive.Content
ref={ref}
sideOffset={sideOffset}
className={cn(
'z-50 min-w-45 overflow-hidden rounded-lg border border-gray-200 bg-white p-0.5 text-black shadow-md',
className,
)}
{...props}
/>
</DropdownMenuPrimitive.Portal>
));
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
const DropdownMenuItem = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
inset?: boolean;
}
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Item
ref={ref}
className={cn(
'relative flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm text-black outline-none select-none focus:bg-gray-100 focus:text-black data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
inset && 'pl-8',
className,
)}
{...props}
/>
));
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
const DropdownMenuCheckboxItem = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
>(({ className, children, checked, ...props }, ref) => (
<DropdownMenuPrimitive.CheckboxItem
ref={ref}
className={cn(
'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className,
)}
checked={checked}
{...props}
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
<Check className="h-4 w-4" />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
</DropdownMenuPrimitive.CheckboxItem>
));
DropdownMenuCheckboxItem.displayName =
DropdownMenuPrimitive.CheckboxItem.displayName;
const DropdownMenuRadioItem = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
>(({ className, children, ...props }, ref) => (
<DropdownMenuPrimitive.RadioItem
ref={ref}
className={cn(
'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className,
)}
{...props}
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
<Circle className="h-2 w-2 fill-current" />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
</DropdownMenuPrimitive.RadioItem>
));
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
const DropdownMenuLabel = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Label>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
inset?: boolean;
}
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Label
ref={ref}
className={cn(
'px-2 py-1.5 text-sm font-semibold',
inset && 'pl-8',
className,
)}
{...props}
/>
));
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
const DropdownMenuSeparator = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.Separator
ref={ref}
className={cn('-mx-1 my-0.5 h-px bg-gray-200', className)}
{...props}
/>
));
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
const DropdownMenuShortcut = ({
className,
...props
}: React.HTMLAttributes<HTMLSpanElement>) => {
return (
<span
className={cn('ml-auto text-xs tracking-widest opacity-60', className)}
{...props}
/>
);
};
DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
export {
DropdownMenu,
DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuPortal,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
DropdownMenuTrigger,
};
@@ -8,13 +8,9 @@ import {
Users2,
Handshake,
} from 'lucide-react';
import { logout } from './navigation';
import { CreateRoadmapModal } from '../CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx';
import { useState } from 'react';
import { cn } from '../../lib/classname.ts';
import { NotificationIndicator } from './NotificationIndicator.tsx';
import { Spinner } from '../ReactIcons/Spinner.tsx';
import { CheckIcon } from '../ReactIcons/CheckIcon.tsx';
import { logout } from '../../lib/auth.ts';
type AccountDropdownListProps = {
onCreateRoadmap: () => void;
@@ -43,7 +39,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
<li className="mb-1 px-1">
<button
className={cn(
'flex h-9 w-full items-center rounded-sm py-1 pl-3 pr-2 text-sm font-medium text-slate-100 hover:opacity-80',
'flex h-9 w-full items-center rounded-sm py-1 pr-2 pl-3 text-sm font-medium text-slate-100 hover:opacity-80',
isConfigLoading
? 'striped-loader-darker flex border-slate-800 opacity-70'
: 'border-slate-600 bg-slate-700',
@@ -51,7 +47,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
onClick={onOnboardingClick}
disabled={isConfigLoading}
>
<NotificationIndicator className="-left-0.5 -top-0.5" />
<NotificationIndicator className="-top-0.5 -left-0.5" />
{isConfigLoading ? (
<></>
@@ -70,7 +66,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
<li className="px-1">
<a
href="/account"
className="group flex items-center gap-2 rounded-sm py-2 pl-3 pr-2 text-sm font-medium text-slate-100 hover:bg-slate-700"
className="group flex items-center gap-2 rounded-sm py-2 pr-2 pl-3 text-sm font-medium text-slate-100 hover:bg-slate-700"
>
<User2 className="h-4 w-4 stroke-[2.5px] text-slate-400 group-hover:text-white" />
Account
@@ -79,13 +75,13 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
<li className="px-1">
<a
href="/account/update-profile"
className="group flex items-center justify-between gap-2 rounded-sm py-2 pl-3 pr-2 text-sm font-medium text-slate-100 hover:bg-slate-700"
className="group flex items-center justify-between gap-2 rounded-sm py-2 pr-2 pl-3 text-sm font-medium text-slate-100 hover:bg-slate-700"
>
<span className="flex items-center gap-2">
<SquareUserRound className="h-4 w-4 stroke-[2.5px] text-slate-400 group-hover:text-white" />
My Profile
</span>
<span className="rounded-xs bg-yellow-300 px-1 text-xs uppercase tracking-wide text-black">
<span className="rounded-xs bg-yellow-300 px-1 text-xs tracking-wide text-black uppercase">
New
</span>
</a>
@@ -93,7 +89,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
<li className="px-1">
<a
href="/account/friends"
className="group flex items-center gap-2 rounded-sm py-2 pl-3 pr-2 text-sm font-medium text-slate-100 hover:bg-slate-700"
className="group flex items-center gap-2 rounded-sm py-2 pr-2 pl-3 text-sm font-medium text-slate-100 hover:bg-slate-700"
>
<Users2 className="h-4 w-4 stroke-[2px] text-slate-400 group-hover:text-white" />
Friends
@@ -104,7 +100,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
onClick={() => {
onCreateRoadmap();
}}
className="group flex w-full items-center gap-2 rounded-sm py-2 pl-3 pr-2 text-left text-sm font-medium text-slate-100 hover:bg-slate-700"
className="group flex w-full items-center gap-2 rounded-sm py-2 pr-2 pl-3 text-left text-sm font-medium text-slate-100 hover:bg-slate-700"
>
<Plus className="h-4 w-4 stroke-[2px] text-slate-400 group-hover:text-white" />
New Roadmap
@@ -113,7 +109,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
<li className="border-b border-b-gray-700/60 px-1 pb-1">
<a
href="/account/roadmaps"
className="group flex items-center gap-2 rounded-sm py-2 pl-3 pr-2 text-sm font-medium text-slate-100 hover:bg-slate-700"
className="group flex items-center gap-2 rounded-sm py-2 pr-2 pl-3 text-sm font-medium text-slate-100 hover:bg-slate-700"
>
<Map className="h-4 w-4 stroke-[2px] text-slate-400 group-hover:text-white" />
Roadmaps
@@ -121,7 +117,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
</li>
<li className="px-1 pt-1">
<button
className="group flex w-full items-center justify-between rounded-sm py-2 pl-3 pr-2 text-sm font-medium text-slate-100 hover:bg-slate-700"
className="group flex w-full items-center justify-between rounded-sm py-2 pr-2 pl-3 text-sm font-medium text-slate-100 hover:bg-slate-700"
onClick={() => setIsTeamsOpen(true)}
>
<span className="flex items-center gap-2.5">
@@ -133,7 +129,7 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
</li>
<li className="px-1">
<button
className="group flex w-full items-center gap-2 rounded-sm py-2 pl-3 pr-2 text-left text-sm font-medium text-slate-100 hover:bg-slate-700"
className="group flex w-full items-center gap-2 rounded-sm py-2 pr-2 pl-3 text-left text-sm font-medium text-slate-100 hover:bg-slate-700"
type="button"
onClick={logout}
>
+1 -11
View File
@@ -1,14 +1,4 @@
import Cookies from 'js-cookie';
import { TOKEN_COOKIE_NAME, removeAuthToken } from '../../lib/jwt';
import { REDIRECT_PAGE_AFTER_AUTH } from '../Authenticator/authenticator.ts';
export function logout() {
localStorage.removeItem(REDIRECT_PAGE_AFTER_AUTH);
removeAuthToken();
// Reloading will automatically redirect the user if required
window.location.href = '/';
}
import { logout } from '../../lib/auth';
function bindEvents() {
document.addEventListener('click', (e) => {
+35 -28
View File
@@ -1,35 +1,37 @@
import '../GenerateCourse/AICourseLessonChat.css';
import { useQuery } from '@tanstack/react-query';
import { useState, useRef, Fragment, useCallback, useEffect } from 'react';
import { billingDetailsOptions } from '../../queries/billing';
import { getAiCourseLimitOptions } from '../../queries/ai-course';
import { queryClient } from '../../stores/query-client';
import { isLoggedIn, removeAuthToken } from '../../lib/jwt';
import {
BotIcon,
ChevronRightIcon,
Gift,
Loader2Icon,
LockIcon, SendIcon, Trash2,
WandSparkles
LockIcon,
SendIcon,
Trash2,
WandSparkles,
} from 'lucide-react';
import { showLoginPopup } from '../../lib/popup';
import { cn } from '../../lib/classname';
import TextareaAutosize from 'react-textarea-autosize';
import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
import { flushSync } from 'react-dom';
import TextareaAutosize from 'react-textarea-autosize';
import { useToast } from '../../hooks/use-toast';
import { readStream } from '../../lib/ai';
import { cn } from '../../lib/classname';
import { isLoggedIn, removeAuthToken } from '../../lib/jwt';
import { markdownToHtmlWithHighlighting } from '../../lib/markdown';
import { getPercentage } from '../../lib/number';
import { showLoginPopup } from '../../lib/popup';
import type { ResourceType } from '../../lib/resource-progress';
import { getAiCourseLimitOptions } from '../../queries/ai-course';
import { billingDetailsOptions } from '../../queries/billing';
import { roadmapTreeMappingOptions } from '../../queries/roadmap-tree';
import { queryClient } from '../../stores/query-client';
import {
AIChatCard,
type AIChatHistoryType,
} from '../GenerateCourse/AICourseLessonChat';
import { useToast } from '../../hooks/use-toast';
import { readStream } from '../../lib/ai';
import { markdownToHtmlWithHighlighting } from '../../lib/markdown';
import type { ResourceType } from '../../lib/resource-progress';
import { getPercentage } from '../../lib/number';
import { roadmapTreeMappingOptions } from '../../queries/roadmap-tree';
import { defaultChatHistory } from './TopicDetail';
import '../GenerateCourse/AICourseLessonChat.css';
import { AILimitsPopup } from '../GenerateCourse/AILimitsPopup';
import { PredefinedActions, promptLabelMapping } from './PredefinedActions';
import { defaultChatHistory } from './TopicDetail';
type TopicDetailAIProps = {
resourceId: string;
@@ -290,17 +292,22 @@ export function TopicDetailAI(props: TopicDetailAIProps) {
href={`/ai/search?term=${roadmapTreeMapping?.text}&difficulty=beginner&src=topic`}
className="flex items-center gap-1 rounded-md border border-gray-300 bg-gray-100 px-2 py-1 hover:bg-gray-200 hover:text-black"
>
{nodeTextParts.map((text, index) => (
<>
<span key={text} className="flex items-center">
{text}
</span>
{nodeTextParts.slice(1).map((text, index) => {
// -2 because we are removing roadmap title from the list
const isLast = index === nodeTextParts.length - 2;
{index !== nodeTextParts.length - 1 && (
<ChevronRightIcon className="h-3 w-3 text-gray-400" />
)}
</>
))}
return (
<>
<span key={text} className="flex items-center">
{text}
</span>
{!isLast && (
<ChevronRightIcon className="h-3 w-3 text-gray-400" />
)}
</>
);
})}
</a>
)}
+91 -55
View File
@@ -7,6 +7,7 @@ export type UserPersonaFormData = {
expertise: string;
goal: string;
commit: string;
about: string;
};
type UserPersonaFormProps = {
@@ -27,29 +28,69 @@ export function UserPersonaForm(props: UserPersonaFormProps) {
onSubmit,
isLoading,
} = props;
const [expertise, setExpertise] = useState(
defaultValues?.expertise ?? 'no-experience',
);
const [expertise, setExpertise] = useState(defaultValues?.expertise ?? '');
const [hasInitialGoal, setHasInitialGoal] = useState(!!defaultValues?.goal);
const goalOptions = [
'Finding a job',
'Learning for fun',
'Building a side project',
'Switching careers',
'Getting a promotion',
'Filling knowledge gaps',
'Other',
];
const getInitialGoalSelection = () => {
if (!defaultValues?.goal) {
return '';
}
// Check if the goal matches any predefined option
for (const option of goalOptions.slice(0, -1)) {
// Exclude 'Other'
if (defaultValues.goal.startsWith(option)) {
return option;
}
}
return 'Other';
};
const [selectedGoal, setSelectedGoal] = useState(getInitialGoalSelection());
const [goal, setGoal] = useState(defaultValues?.goal ?? '');
const [commit, setCommit] = useState(defaultValues?.commit ?? '');
const [about, setAbout] = useState(defaultValues?.about ?? '');
const expertiseFieldId = useId();
const goalFieldId = useId();
const goalSelectId = useId();
const commitFieldId = useId();
const aboutFieldId = useId();
const goalRef = useRef<HTMLTextAreaElement>(null);
const handleGoalSelectionChange = (value: string) => {
setSelectedGoal(value);
if (value === 'Other') {
setGoal('');
setTimeout(() => {
goalRef.current?.focus();
}, 0);
} else {
setGoal(value);
}
};
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
onSubmit({ expertise, goal, commit });
onSubmit({ expertise, goal, commit, about });
};
const hasFormCompleted = !!expertise && !!goal && !!commit;
return (
<form onSubmit={handleSubmit} className={cn('space-y-8', className)}>
<form onSubmit={handleSubmit} className={cn('space-y-5', className)}>
<div className="flex flex-col gap-3">
<label
className="text-sm font-medium text-gray-700"
@@ -60,12 +101,11 @@ export function UserPersonaForm(props: UserPersonaFormProps) {
<SelectNative
id={expertiseFieldId}
value={expertise}
defaultValue={expertise}
onChange={(e) => setExpertise(e.target.value)}
className="h-[40px] border-gray-300 text-sm focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
>
<option value="" selected hidden>
Select your expertise
</option>
<option value="">Select your expertise</option>
{[
'No experience (just starting out)',
'Beginner (less than 1 year of experience)',
@@ -79,60 +119,39 @@ export function UserPersonaForm(props: UserPersonaFormProps) {
))}
</SelectNative>
</div>
<div className="flex flex-col gap-3">
<label
className="text-sm font-medium text-gray-700"
htmlFor={goalFieldId}
htmlFor={goalSelectId}
>
What is your goal?{' '}
{hasInitialGoal &&
!defaultValues?.goal &&
`Tell us more about yourself`}
What is your goal?
</label>
{!hasInitialGoal && (
<div className="flex flex-row flex-wrap gap-2">
{[
'Finding a job',
'Learning for fun',
'Building a side project',
'Switching careers',
'Getting a promotion',
'Filling knowledge gaps',
'Other (tell us more)',
].map((goalTemplate) => (
<button
key={goalTemplate}
className="rounded-lg border border-gray-200 bg-gray-50 px-4 py-2 text-sm text-gray-600 transition-all hover:border-gray-300 hover:border-gray-400 hover:bg-gray-100"
onClick={() => {
if (goalTemplate !== 'Other (tell us more)') {
setGoal(`${goalTemplate}.`);
}
<SelectNative
id={goalSelectId}
value={selectedGoal}
onChange={(e) => handleGoalSelectionChange(e.target.value)}
className="h-[40px] border-gray-300 text-sm focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
>
<option value="">Select your goal</option>
{goalOptions.map((goalOption) => (
<option key={goalOption} value={goalOption}>
{goalOption}
</option>
))}
</SelectNative>
setHasInitialGoal(true);
setTimeout(() => {
goalRef.current?.focus();
}, 0);
}}
type="button"
>
{goalTemplate}
</button>
))}
</div>
{selectedGoal === 'Other' && (
<textarea
ref={goalRef}
id={goalFieldId}
className="block min-h-24 w-full resize-none rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
placeholder="e.g. need to find a job as soon as possible"
value={goal}
onChange={(e) => setGoal(e.target.value)}
/>
)}
<textarea
ref={goalRef}
id={goalFieldId}
className={cn(
'block min-h-24 w-full resize-none rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500',
!hasInitialGoal && 'hidden',
)}
placeholder={`e.g. need to find a job as soon as possible`}
value={goal}
onChange={(e) => setGoal(e.target.value)}
/>
</div>
<div className="flex flex-col gap-3">
@@ -152,6 +171,23 @@ export function UserPersonaForm(props: UserPersonaFormProps) {
/>
</div>
<div className="flex flex-col gap-3">
<label
className="text-sm font-medium text-gray-700"
htmlFor={aboutFieldId}
>
Tell us about yourself (optional but recommended)
</label>
<textarea
id={aboutFieldId}
className="block min-h-24 w-full resize-none rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-1 focus:ring-gray-500"
placeholder="e.g. I'm a frontend developer with experience in React, looking to expand my backend skills..."
value={about}
onChange={(e) => setAbout(e.target.value)}
/>
</div>
<button
disabled={isLoading || !hasFormCompleted}
type="submit"
@@ -5,4 +5,5 @@ AI Engineering is the process of designing and implementing AI systems using pre
Learn more from the following resources:
- [@video@AI vs Machine Learning](https://www.youtube.com/watch?v=4RixMPF4xis)
- [@video@AI vs Machine Learning vs Deep Learning vs GenAI](https://youtu.be/qYNweeDHiyU?si=eRJXjtk8Q-RKQ8Ms)
- [@article@AI Engineering](https://en.wikipedia.org/wiki/Artificial_intelligence_engineering)
@@ -6,4 +6,3 @@ Learn more from the following resources:
- [@article@Building Trustworthy AI: Contending with Data Poisoning](https://nisos.com/research/building-trustworthy-ai/)
- [@article@What Is Adversarial AI in Machine Learning?](https://www.paloaltonetworks.co.uk/cyberpedia/what-are-adversarial-attacks-on-AI-Machine-Learning)
- [@course@AI Security | Coursera](https://www.coursera.org/learn/ai-security)
+1 -1
View File
@@ -1854,7 +1854,7 @@
},
"selected": false,
"data": {
"label": "RecycleView",
"label": "RecyclerView",
"style": {
"fontSize": 17,
"justifyContent": "flex-start",
@@ -0,0 +1,10 @@
# RecyclerView
RecyclerView is the most commonly used and powerful list management tool in Android development. It makes it easy to efficiently display large sets of data. You supply the data and define how each item looks, and the RecyclerView library dynamically creates the elements when they're needed.
As the name implies, RecyclerView recycles those individual elements. When an item scrolls off the screen, RecyclerView doesn't destroy its view. Instead, RecyclerView reuses the view for new items that have scrolled onscreen. RecyclerView improves performance and your app's responsiveness, and it reduces power consumption.
Visit the following resources to learn more:
- [@official@RecyclerView Reference (Android Docs)](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView)
- [@official@Create Dynamic Lists with RecyclerView (Android Docs)](https://developer.android.com/develop/ui/views/layout/recyclerview)
@@ -1,9 +0,0 @@
# RecyclerView
RecyclerView is the most commonly used and powerful list management tool in Android development. Witch makes it easy to efficiently display large sets of data. You supply the data and define how each item looks, and the RecyclerView library dynamically creates the elements when they're needed.
As the name implies, RecyclerView recycles those individual elements. When an item scrolls off the screen, RecyclerView doesn't destroy its view. Instead, RecyclerView reuses the view for new items that have scrolled onscreen. RecyclerView improves performance and your app's responsiveness, and it reduces power consumption.
Learn more from the following resources:
- [@official@Create Dynamic Lists with RecyclerView](https://developer.android.com/develop/ui/views/layout/recyclerview)
@@ -4,6 +4,6 @@ The web is used by a wide variety of people, including those who have visual or
Visit the following resources to learn more:
- [@official@Angular Official Docs - Accessibility](https://angular.dev/best-practices/a11y)
- [@course@Learn Accessibility](https://web.dev/learn/accessibility/)
- [@official@Accessibility](https://angular.dev/best-practices/a11y)
- [@article@Learn Accessibility](https://web.dev/learn/accessibility/)
- [@article@Angular a11y: 11 tips on how to make your apps more accessible](https://angularindepth.com/posts/1152/angular-a11y-11-tips-on-how-to-make-your-apps-more-accessible)
@@ -2,9 +2,11 @@
AnalogJS is a full-stack meta-framework powered by Vite and Nitro for Angular. Analog supports both Server-Side Rendering (SSR) and Static Site Generation (SSG). Analog uses file-based routing and supports API (server) routes.
Visit the following resources to learn more:
Visit the following resources to learn more:
- [@official@Analog](https://analogjs.org/)
- [@video@Robin Goetz - AnalogJS - The Vite powered Angular meta-framework | NG Belgrade Conf 2024](https://www.youtube.com/watch?v=BSgpvP4eAGk)
- [@official@AnalogJS](https://analogjs.org/)
- [@official@AnalogJS Documentation](https://analogjs.org/docs)
- [@opensource@analogjs/analog](https://github.com/analogjs/analog)
- [@video@Robin Goetz - AnalogJS - The Vite powered Angular meta-framework](https://www.youtube.com/watch?v=BSgpvP4eAGk)
- [@video@Full-stack Angular (SSR, file-based routing, + more) with AnalogJS](https://www.youtube.com/watch?v=VSCXOTCJpiI)
- [@video@Is AnalogJS good enough for my blog site?](https://www.youtube.com/watch?v=xTzEDQULo6s)
@@ -1,9 +1,9 @@
# Angular and History
Angular is a TypeScript-based open-source front-end web framework developed and maintained by Google.
It is used for building dynamic, single-page web applications (SPAs). Angular provides comprehensive tools, including dependency injection, data binding, routing, and testing, to create robust and scalable web applications.
Angular is a TypeScript-based open-source front-end web framework developed and maintained by Google. It is used for building dynamic, single-page web applications (SPAs). Angular provides comprehensive tools, including dependency injection, data binding, routing, and testing, to create robust and scalable web applications.
Visit the following resources to learn more:
- [@official@What is Angular?](https://angular.dev/overview)
- [@official@Understanding Angular](https://angular.io/guide/understanding-angular-overview)
- [@article@Getting Started with Angular](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Frameworks_libraries/Angular_getting_started)
@@ -1,13 +1,12 @@
# Angular Architecture
Angular follows a modular architecture pattern, dividing the application into distinct modules, components, services, and other elements, which enhances code organization and maintainability. The key building blocks include modules, which are containers grouping related components, services, directives, and other elements to ensure proper encapsulation and reusability. Components are the building blocks of Angular applications, representing parts of the user interface with associated logic, consisting of templates, styles, and a class defining behavior. Services encapsulate reusable business logic, data manipulation, and API communication, enabling data and functionality sharing across components. Directives are HTML attributes or elements that extend HTML functionality, allowing reusable behaviors across the application. Lastly, pipes transform data before displaying it in templates, providing convenient ways to format, filter, and sort data.
Angular follows a modular architecture pattern, dividing the application into distinct modules, components, services, and other elements, which enhances code organization and maintainability. The key building blocks include modules, which are containers grouping related components, services, directives, and other elements to ensure proper encapsulation and reusability. Components are the building blocks of Angular applications, representing parts of the user interface with associated logic, consisting of templates, styles, and a class defining behavior. Services encapsulate reusable business logic, data manipulation, and API communication, enabling data and functionality sharing across components.
Visit the following resources to learn more:
- [@official@Angular coding style guide](https://angular.dev/style-guide)
- [@article@The Ultimate Guide to Angular Architecture: Best Practices for efficient coding with Angular Framework](https://angulardive.com/blog/the-ultimate-guide-to-angular-architecture-best-practices-for-efficient-coding-with-angular-framework/)
- [@official@Angular Coding Style Guide](https://angular.dev/style-guide)
- [@article@The Ultimate Guide to Angular Architecture](https://angulardive.com/blog/the-ultimate-guide-to-angular-architecture-best-practices-for-efficient-coding-with-angular-framework/)
- [@article@Modern Architectures with Angular Part 1: Strategic design with Sheriff and Standalone Components](https://www.angulararchitects.io/en/blog/modern-architectures-with-angular-part-1-strategic-design-with-sheriff-and-standalone-components/)
- [@article@Optimizing the architecture of large web applications with Angular](https://albertobasalo.medium.com/optimizing-the-architecture-of-large-web-applications-with-angular-79d03b01a92b)
- [@article@Angular Architecture Concepts and Patterns](https://www.bigscal.com/blogs/frontend/angular-architecture-concepts-and-patterns/)
- [@article@Top 10 Angular Architecture Mistakes](https://angularexperts.io/blog/top-10-angular-architecture-mistakes)
- [@article@Architecting Angular: A Guide to effective project structure](https://medium.com/@nile.bits/architecting-angular-a-guide-to-effective-project-structure-9756bae92262)
@@ -1,6 +1,6 @@
# Angular CLI
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell. we can install angular latest CLI using the following command
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell. we can install angular latest CLI using the following command:
`npm install -g @angular/cli`
@@ -8,5 +8,5 @@ Visit the following resources to learn more:
- [@official@CLI Reference](https://angular.dev/cli)
- [@official@The Angular CLI](https://angular.dev/tools/cli)
- [@video@Angular CLI - setup](https://www.youtube.com/watch?v=mZnzX3J5XKI)
- [@video@Angular CLI - Setup](https://www.youtube.com/watch?v=mZnzX3J5XKI)
- [@feed@Explore top posts about Angular](https://app.daily.dev/tags/angular?ref=roadmapsh)
@@ -4,7 +4,7 @@ Angular's animation system is built on CSS functionality, which means you can an
Visit the following resources to learn more:
- [@official@Angular Official Docs - Animation](https://angular.dev/guide/animations)
- [@official@Animation](https://angular.dev/guide/animations)
- [@article@Angular Animations - A Beginner's Guide](https://www.angularminds.com/blog/angular-animations-a-beginners-guide)
- [@opensource@Angular Animations Explorer](https://github.com/williamjuan027/angular-animations-explorer)
- [@article@In-Depth guide into animations in Angular](https://angularindepth.com/posts/1285/in-depth-guide-into-animations-in-angular)
@@ -4,5 +4,5 @@ Attribute binding in Angular helps you set values for attributes directly. With
Visit the following resources to learn more:
- [@official@Angular Official Docs - Attribute Binding](https://angular.dev/guide/templates/attribute-binding)
- [@official@Attribute Binding](https://angular.dev/guide/templates/attribute-binding)
- [@article@What is difference between binding to attribute and binding to property in Angular?](https://stackoverflow.com/questions/76967327/what-is-difference-between-binding-to-attribute-and-binding-to-property-in-angul)
@@ -10,5 +10,5 @@ The most used attribute directives are:
Visit the following resources to learn more:
- [@official@Angular Official Docs - Attribute Directives](https://angular.dev/guide/directives/attribute-directives)
- [@official@Attribute Directives](https://angular.dev/guide/directives/attribute-directives)
- [@article@Angular Attribute Directive](https://www.scaler.com/topics/angular/angular-attribute-directive/)
@@ -4,6 +4,6 @@ Building accessible web experience often involves setting Accessible Rich Intern
Visit the following resources to learn more:
- [@official@Angular Official Docs - accessibility attributes](https://angular.dev/best-practices/a11y#accessibility-attributes)
- [@official@Accessibility Attributes](https://angular.dev/best-practices/a11y#accessibility-attributes)
- [@article@ARIA HTML](https://web.dev/learn/accessibility/aria-html/)
- [@article@Comprehensive accessibility strayegies for Angular apps leveraging aria-label for dynamic content](https://yasikahivin.medium.com/comprehensive-accessibility-strategies-for-angular-apps-leveraging-aria-label-for-dynamic-content-fdf114834317)
- [@article@Comprehensive accessibility strategies for Angular apps leveraging aria-label for dynamic content](https://yasikahivin.medium.com/comprehensive-accessibility-strategies-for-angular-apps-leveraging-aria-label-for-dynamic-content-fdf114834317)
@@ -4,5 +4,5 @@ You can define different named build configurations for your project, such as `d
Visit the following resources to learn more:
- [@official@Angular Official Docs - Build environments](https://angular.dev/tools/cli/environments#using-environment-specific-variables-in-your-app)
- [@official@Build Environments](https://angular.dev/tools/cli/environments#using-environment-specific-variables-in-your-app)
- [@article@Building an Angular application in various environments using Angular CLI and server](https://medium.com/yavar/building-an-angular-application-in-various-environments-using-angular-cli-and-server-18f94067154b)
@@ -4,5 +4,5 @@ If no `@case` matches the `@switch` condition and there is no `@default` block,
Visit the following resources to learn more:
- [@official@Angular Official Docs - @switch](https://angular.dev/guide/templates/control-flow#switch-block---selection)
- [@official@\@switch](https://angular.dev/guide/templates/control-flow#switch-block---selection)
- [@article@Angular @switch: Complete Guide](https://blog.angular-university.io/angular-switch/)
@@ -4,6 +4,6 @@ Change detection is the process through which Angular checks to see whether your
Visit the following resources to learn more:
- [@official@Runtime performance optimization](https://angular.dev/best-practices/runtime-performance)
- [@official@Runtime Performance Optimization](https://angular.dev/best-practices/runtime-performance)
- [@official@ChangeDetectionStrategy](https://angular.dev/guide/components/advanced-configuration#changedetectionstrategy)
- [@video@4 Runtime Performance Optimizations ( Change detection )](https://www.youtube.com/watch?v=f8sA-i6gkGQ)
@@ -1,14 +1,11 @@
# changeDetection
The change-detection strategy to use for this component.
When a component is instantiated, Angular creates a change detector, which is responsible for propagating the
component's bindings. The strategy is one of:
The change-detection strategy to use for this component. When a component is instantiated, Angular creates a change detector, which is responsible for propagating the component's bindings. The strategy is one of:
- `ChangeDetectionStrategy.OnPush` sets the strategy to CheckOnce (on demand).
- `ChangeDetectionStrategy.Default` sets the strategy to CheckAlways.
Visit the following resources to learn more:
- [@official@Advanced component configuration](https://angular.dev/guide/components/advanced-configuration#changedetectionstrategy)
- [@official@Advanced Component Configuration](https://angular.dev/guide/components/advanced-configuration#changedetectionstrategy)
- [@official@Component - API](https://angular.dev/api/core/Component#changeDetection)
@@ -4,6 +4,6 @@ A number of Angular CLI commands run a complex process on your code, such as bui
Visit the following resources to learn more:
- [@official@Angular Official Docs - CLI Builders](https://angular.dev/tools/cli/cli-builder)
- [@official@CLI Builders](https://angular.dev/tools/cli/cli-builder)
- [@video@Angular Builders – Creating Custom Builder from Scratch](https://www.youtube.com/watch?v=QbDkDLnXAZE)
- [@opensource@Angular Builders](https://github.com/just-jeb/angular-builders)
@@ -4,5 +4,5 @@ The Angular CLI can run unit tests and create code coverage reports. Code covera
Visit the following resources to learn more:
- [@official@Angular Official Docs - code coverage](https://angular.dev/guide/testing/code-coverage)
- [@article@Measuring code coverage](https://testing-angular.com/measuring-code-coverage/)
- [@official@Code Coverage](https://angular.dev/guide/testing/code-coverage)
- [@article@Measuring Code Coverage](https://testing-angular.com/measuring-code-coverage/)
@@ -1,29 +1,13 @@
# Combination
Combination operators in RxJS are used to combine multiple observables into a single observable. There are several types of combination operators, including:
RxJS combination operators merge multiple observables into a single one using various strategies. Key operators include: `Merge` (emits items from all sources as they arrive), `Concat` (emits items from sources sequentially, one after another), `Zip` (pairs emissions from sources based on index), `CombineLatest` (emits based on the latest values from all sources whenever any source emits), `WithLatestFrom` (combines the value of one observable with the latest values of others when the first observable emits), and `ForkJoin` (emits the last value from each source only after all sources complete).
- Merge: merges multiple observables into a single observable that emits items from each source observable in a sequence.
Visit the following resources to learn more:
- Concat: concatenates multiple observables into a single observable that emits the items from each source observable in sequence, one after the other.
- Zip: combines the items from multiple observables into a single observable by combining the items from each observable at a corresponding index.
- CombineLatest: combines the latest values from multiple observables into a single observable by emitting an item whenever any of the source observables emit an item.
- WithLatestFrom: combines the latest value from one observable with the latest values from multiple other observables.
- ForkJoin: combines the items from multiple observables into a single observable by emitting an item only after all of the source observables have emitted an item.
Further documentation can be found in the official RxJS documentation:
- Merge: https://rxjs.dev/api/operators/merge
- Concat: https://rxjs.dev/api/operators/concat
- Zip: https://rxjs.dev/api/operators/zip
- CombineLatest: https://rxjs.dev/api/operators/combineLatest
- WithLatestFrom: https://rxjs.dev/api/operators/withLatestFrom
- ForkJoin: https://rxjs.dev/api/index/function/forkJoin
- [@official@The RxJS Library](https://v17.angular.io/guide/rx-library)
- [@official@Merge](https://www.learnrxjs.io/learn-rxjs/operators/combination/merge)
- [@official@Concat](https://www.learnrxjs.io/learn-rxjs/operators/combination/concat)
- [@official@Zip](https://www.learnrxjs.io/learn-rxjs/operators/combination/zip)
- [@official@CombineLatest](https://www.learnrxjs.io/learn-rxjs/operators/combination/combineLatest)
- [@official@WithLatestFrom](https://www.learnrxjs.io/learn-rxjs/operators/combination/withLatestFrom)
- [@official@ForkJoin](https://www.learnrxjs.io/learn-rxjs/operators/combination/forkJoin)
@@ -13,5 +13,5 @@ Angular provides built-in pipes for typical data transformations, including tran
Visit the following resources to learn more:
- [@official@Angular Official Docs - Pipes](https://angular.dev/guide/pipes)
- [@official@Pipes](https://angular.dev/guide/pipes)
- [@article@Pipes in Angular](https://medium.com/@aqeelabbas3972/pipes-in-angular-6a871589299d)
@@ -5,14 +5,10 @@ Angular components can communicate with each other using `@Input()` and `@Output
- **@Input()**: This decorator allows a parent component to pass data to a child component, enabling the child to receive and use the data.
- **@Output()**: This decorator allows a child component to emit events to a parent component, enabling the parent to respond to changes or actions within the child component.
Additionally, **model inputs** are a special type of input that enable two-way data binding. This means that changes in the child component can be propagated back to the parent component, ensuring synchronization between the two. Model inputs automatically create a corresponding output, typically named by appending “Change” to the input’s name, to facilitate this two-way communication.
To facilitate communication between unrelated components, it’s most effective to trigger events using `EventEmitter` and have the components listen for these events. This approach ensures a decoupled and flexible architecture, allowing components to interact seamlessly without direct dependencies.
Visit the following resources to learn more:
- [@official@Angular Official Website - Inputs](https://angular.dev/guide/components/inputs)
- [@official@Angular Official Website - Outputs](https://angular.dev/guide/components/outputs)
- [@official@Angular Official Docs - Model Inputs](https://angular.dev/guide/signals/model)
- [@official@Inputs](https://angular.dev/guide/components/inputs)
- [@official@Outputs](https://angular.dev/guide/components/outputs)
- [@official@Model Inputs](https://angular.dev/guide/signals/model)
- [@official@Custom events with outputs](https://angular.dev/guide/components/outputs)
- [@video@Non-Related Component Communication | Angular Component & Directives](https://www.youtube.com/watch?v=aIkGXMJFTzM)
@@ -11,5 +11,5 @@ The functions that control complex animation sequences are:
Visit the following resources to learn more:
- [@official@Angular Official Docs - Complex Sequences](https://angular.dev/guide/animations/complex-sequences)
- [@official@Complex Sequences](https://angular.dev/guide/animations/complex-sequences)
- [@video@Angular Animations: Animating multiple items in parallel](https://www.youtube.com/watch?v=RPdR7HzNQIw)
@@ -11,5 +11,4 @@ Every component must have:
Visit the following resources to learn more:
- [@official@Anatomy of a component](https://angular.dev/guide/components)
- [@official@Anatomy of a Component](https://angular.dev/guide/components)
@@ -4,5 +4,7 @@ Angular processes all data bindings once for each JavaScript event cycle, from t
Visit the following resources to learn more:
- [@official@Angular Website](https://angular.dev/guide/components)
- [@official@Component](https://angular.dev/guide/components)
- [@official@Basics of Testing Components](https://angular.io/guide/testing-components-basics)
- [@official@Component Testing Scenarios • Angular](https://angular.dev/guide/testing/components-scenarios)
- [@feed@Explore top posts about Testing](https://app.daily.dev/tags/testing?ref=roadmapsh)
@@ -2,15 +2,9 @@
A component instance has a lifecycle that starts when Angular instantiates the component class and renders the component view along with its child views. The lifecycle continues with change detection, as Angular checks to see when data-bound properties change, and updates both the view and the component instance as needed. The lifecycle ends when Angular destroys the component instance and removes its rendered template from the DOM. Directives have a similar lifecycle, as Angular creates, updates, and destroys instances in the course of execution.
Your application can use lifecycle hook methods to tap into key events in the lifecycle of a component or directive to initialize new instances, initiate change detection when needed, respond to updates during change detection, and clean up before deletion of instances.
The following life cycle hooks of angular are :
`OnChanges` , `OnInit` , `DoCheck` , `OnDestroy` , `AfterContentInit` , `AfterContentChecked` , `AfterViewInit` , `AfterViewChecked`
Visit the following resources to learn more:
- [@official@Component Lifecycle](https://angular.dev/guide/components/lifecycle)
- [@article@The life cycle hooks of angular - Blog ](https://blog.logrocket.com/angular-lifecycle-hooks/)
- [@article@The Life Cycle Hooks of Angular](https://blog.logrocket.com/angular-lifecycle-hooks/)
- [@article@Angular Lifecycle Hooks — Everything you need to know](https://medium.com/@sinanozturk/angular-component-lifecycle-hooks-2f600c48dff3)
- [@feed@Explore top posts about Angular LifeCycle Hooks](https://dev.to/search?utf8=%E2%9C%93&q=angular+hook)
@@ -4,5 +4,5 @@ With a component template , you can save and reuse component processes and prope
Visit the following resources to learn more:
- [@official@Component testing scenarios](https://angular.dev/guide/testing/components-scenarios)
- [@official@Component Testing Scenarios](https://angular.dev/guide/testing/components-scenarios)
- [@feed@Explore top posts about Testing](https://app.daily.dev/tags/testing?ref=roadmapsh)
@@ -9,7 +9,7 @@ Components are the main building block for Angular applications. Each component
Visit the following resources to learn more:
- [@official@Anatomy of a component](https://angular.dev/guide/components)
- [@official@Anatomy of a Component](https://angular.dev/guide/components)
- [@official@Composing with Components in Angular](https://angular.dev/essentials/components)
- [@video@Standalone Components in Angular](https://www.youtube.com/watch?v=x5PZwb4XurU)
- [@feed@Explore top posts about Angular](https://app.daily.dev/tags/angular?ref=roadmapsh)
@@ -2,22 +2,7 @@
The configuration of routes in an Angular application involves defining route mappings in an array and providing these routes to the Angular router.
### Example routes:
```typescript
const appRoutes: Routes = [
{ path: 'custom-path', component: CustomComponet },
{ path: 'custom-path/:id', component: CustomDetailComponet, data: { title: 'Details component' } },
{ path: '', redirectTo: '/heroes', pathMatch: 'full'},
{ path: '**', component: PageNotFoundComponent }
];
```
- `'custom-path'`: defining a new url route.
- `'custom-path/:id'` defining _**id**_ parameter.
- `''` (empty path): instantiate a component without the need for defining a new url route.
- `'**'`: for undefined paths.
- The `data` property in the second route is a place to store arbitrary data associated with this specific route.
Visit the following resources to learn more:
- [@official@Router reference - Configuration](https://angular.dev/guide/routing/router-reference#configuration)
- [@official@Router Reference - Configuration](https://angular.dev/guide/routing/router-reference#configuration)
- [@official@Routing Overview](https://angular.dev/guide/routing)
@@ -4,4 +4,4 @@ Some Angular Material UI components cannot take children, such as an input, so y
Visit the following resources to learn more:
- [@official@Using containers for native elements](https://angular.dev/best-practices/a11y#using-containers-for-native-elements)
- [@official@Using Containers for Native Elements](https://angular.dev/best-practices/a11y#using-containers-for-native-elements)
@@ -4,6 +4,6 @@ Content queries retrieve results from the elements in the component's content—
Visit the following resources to learn more:
- [@official@Content queries - signal](https://angular.dev/guide/signals/queries#content-queries)
- [@official@Content queries](https://angular.dev/guide/components/queries#content-queries)
- [@official@Content Queries - Signal](https://angular.dev/guide/signals/queries#content-queries)
- [@official@Content Queries](https://angular.dev/guide/components/queries#content-queries)
- [@official@contentChild - API](https://angular.dev/api/core/contentChild)
@@ -4,4 +4,4 @@ Angular templates support control flow blocks that let you conditionally show, h
Visit the following resources to learn more:
- [@official@Built-in control flow](https://angular.dev/guide/templates/control-flow)
- [@official@Built-in Control Flow](https://angular.dev/guide/templates/control-flow)
@@ -4,6 +4,6 @@ Defines an interface that acts as a bridge between the Angular forms API and a n
Visit the following resources to learn more:
- [@official@Angular Official Docs - ControlValueAccessor](https://angular.dev/api/forms/ControlValueAccessor)
- [@official@ControlValueAccessor](https://angular.dev/api/forms/ControlValueAccessor)
- [@article@Mastering Angular Control Value Accessor: A guide for Angular Developer](https://hackernoon.com/mastering-angular-control-value-accessor-a-guide-for-angular-developer)
- [@article@Angular Custom Form Controls](https://blog.angular-university.io/angular-custom-form-controls/)
@@ -4,6 +4,6 @@ You can either use Angular CLI to create the Angular components or create it man
Visit the following resources to learn more:
- [@official@Build your first Angular app](https://angular.dev/tutorials/first-app)
- [@official@Build your first Angular App](https://angular.dev/tutorials/first-app)
- [@official@Components](https://angular.dev/essentials/components)
- [@official@Angular CLI - ng generate components](https://angular.dev/guide/components)
@@ -4,6 +4,6 @@ If you have developed features that are suitable for reuse, you can create your
Visit the following resources to learn more:
- [@official@Angular Official Docs - Creating Libraries](https://angular.dev/tools/libraries/creating-libraries)
- [@official@Angular Official Docs - File Structure: Library project files](https://angular.dev/reference/configs/file-structure#library-project-files)
- [@official@Creating Libraries](https://angular.dev/tools/libraries/creating-libraries)
- [@official@File Structure: Library project files](https://angular.dev/reference/configs/file-structure#library-project-files)
- [@opensource@NG Packagr](https://github.com/ng-packagr/ng-packagr)
@@ -4,4 +4,4 @@ Creating modules in Angular helps organize your application into manageable, coh
Visit the following resources to learn more:
- [@official@Angular Official Docs (Feature Modules)](https://angular.dev/guide/ngmodules/feature-modules)
- [@official@Feature Modules](https://angular.dev/guide/ngmodules/feature-modules)
@@ -1,10 +1,11 @@
# Cross-site Request Forgery
Cross-site request forgery, also known as one-click attack or session riding and abbreviated as CSRF or XSRF, is a type of malicious exploit of a website or web application where unauthorized commands are submitted from a user that the web application trusts. There are many ways in which a malicious website can transmit such commands; specially-crafted image tags, hidden forms, and JavaScript fetch or XMLHttpRequests, for example, can all work without the user's interaction or knowledge. Unlike cross-site scripting (XSS), which exploits the trust a user has for a particular site, CSRF exploits the trust that a site has in a user's browser. In a CSRF attack, an innocent end user is tricked by an attacker into submitting a web request that they did not intend. This may cause actions to be performed on the website that can include inadvertent client or server data leakage, change of session state, or manipulation of an end user's account. Angular provides built-in protection against CSRF attacks through the `HttpClientXsrfModule` module. This module automatically adds a token to outgoing requests and validates it on the server side.
Cross-site request forgery, also known as one-click attack or session riding and abbreviated as CSRF or XSRF, is a type of malicious exploit of a website or web application where unauthorized commands are submitted from a user that the web application trusts. There are many ways in which a malicious website can transmit such commands; specially-crafted image tags, hidden forms, and JavaScript fetch or XMLHttpRequests, for example, can all work without the user's interaction or knowledge. Unlike cross-site scripting (XSS), which exploits the trust a user has for a particular site, CSRF exploits the trust that a site has in a user's browser.
Visit the following resources to learn more:
- [@official@Angular Official Docs - Cross Site Request Forgery](https://angular.dev/best-practices/security#cross-site-request-forgery)
- [@official@Cross Site Request Forgery](https://angular.dev/best-practices/security#cross-site-request-forgery)
- [@official@HttpClientXsrfModule](https://angular.dev/api/common/http/HttpClientXsrfModule)
- [@article@Prevent Cross-Site Request Forgery (XSRF/CSRF) Attack](https://learn.microsoft.com/en-us/aspnet/core/security/anti-request-forgery?view=aspnetcore-9.0)
- [@video@Configure the CSRF Protection With Spring Security 6 and Angular](https://www.youtube.com/watch?v=tgjLsEmxcuY)
- [@video@Angular security - CSRF prevention using Double Submit Cookie](https://www.youtube.com/watch?v=lZfF4MOTeNM)
- [@video@Angular Security - CSRF prevention using Double Submit Cookie](https://www.youtube.com/watch?v=lZfF4MOTeNM)
@@ -4,6 +4,6 @@ Cross-site script inclusion, also known as JSON vulnerability, can allow an atta
Visit the following resources to learn more:
- [@official@Angular Official Docs - Cross Site Script Inclusion](https://angular.dev/best-practices/security#cross-site-script-inclusion-xssi)
- [@official@Cross Site Script Inclusion](https://angular.dev/best-practices/security#cross-site-script-inclusion-xssi)
- [@article@XSSI Cross Site Script Inclusion](https://book.hacktricks.xyz/pentesting-web/xssi-cross-site-script-inclusion)
- [@article@Testing for Cross Site Script Inclusion](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/13-Testing_for_Cross_Site_Script_Inclusion)
@@ -1,11 +1,9 @@
# Cross-site Scripting
Cross-site scripting (XSS) enables attackers to inject malicious code into web pages. Such code can then, for example, steal user and login data, or perform actions that impersonate the user.
This has been one of the biggest web security vulnerabilities for over a decade.
To systematically block XSS bugs, Angular treats all values as untrusted by default. When a value is inserted into the DOM from a template binding, or interpolation, Angular sanitizes and escapes untrusted values.
This has been one of the biggest web security vulnerabilities for over a decade. To systematically block XSS bugs, Angular treats all values as untrusted by default. When a value is inserted into the DOM from a template binding, or interpolation, Angular sanitizes and escapes untrusted values.
Visit the following resources to learn more:
- [@official@Angular Official Docs - Preventing cross-site scripting (XSS)](https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)
- [@official@Preventing cross-site Scripting (XSS)](https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)
- [@article@Mitigate cross-site scripting (XSS)](https://web.dev/articles/strict-csp)
@@ -6,4 +6,6 @@ From the core concept, Angular directives are categorized into three categories:
Visit the following resources to learn more:
- [@official@Built-in directives](https://angular.dev/guide/directives#)
- [@articleDirectives in Angular: A Beginner's Guide](https://medium.com/@drissi.dalanda8/demystifying-directives-in-angular-a-beginners-guide-fdb6e199b80a)
- [@video@Create a custom directive video for Beginners](https://www.youtube.com/watch?v=AoN56g6UAsE)
@@ -4,5 +4,5 @@ Pipes to transform strings, currency amounts, dates, and other data for display.
Visit the following resources to learn more:
- [@official@Custom pipes for new transforms](https://angular.dev/guide/pipes/transform-data)
- [@official@Custom Pipes for New Transforms](https://angular.dev/guide/pipes/transform-data)
- [@video@Create a custom pipe video for Beginners](https://www.youtube.com/watch?v=P2587FN4Y0w)
@@ -4,5 +4,5 @@ Custom validators in Angular are functions that allow you to define your own val
Learn more from the following resources:
- [@official@Defining custom validators](https://v17.angular.io/guide/form-validation#custom-validators)
- [@official@Defining custom validators](https://angular.dev/guide/forms/form-validation#defining-custom-validators)
- [@video@How to create custom validator in Angular 17](https://youtu.be/3TwmS0Gdg9I?si=1w4EX-HifJ70-CxT)
@@ -4,5 +4,5 @@ In an Angular template, a binding creates a live connection between a part of th
Visit the following resources to learn more:
- [@official@Angular Official Docs - Understand Binding](https://angular.dev/guide/templates/binding)
- [@official@Understand Binding](https://angular.dev/guide/templates/binding)
- [@article@Data Binding in Angular](https://www.angularminds.com/blog/data-binding-in-angular)
@@ -4,7 +4,7 @@ If your tests aren't working as you expect them to, you can inspect and debug th
Visit the following resources to learn more:
- [@official@Angular Official Docs - Debugging tests](https://angular.dev/guide/testing/debugging)
- [@official@Angular Official Docs - Devtools](https://angular.dev/tools/devtools)
- [@official@Debugging Tests](https://angular.dev/guide/testing/debugging)
- [@official@Devtools](https://angular.dev/tools/devtools)
- [@video@Debug Like a Pro: Essential Breakpoint Techniques in Angular](https://www.youtube.com/watch?v=Be9Q1cchurQ)
- [@video@Debug Angular 17 Code in VS Code with Break Points and Extensions](https://www.youtube.com/watch?v=r50UXhT9hc0)
@@ -4,5 +4,5 @@ The `@default` clause is used to render a template when none of the `@case` bloc
Visit the following resources to learn more:
- [@official@Angular Official Docs - @switch](https://angular.dev/guide/templates/control-flow#switch-block---selection)
- [@official@\@switch](https://angular.dev/api/core/@switch#description)
- [@article@Angular @switch: Complete Guide](https://blog.angular-university.io/angular-switch/)
@@ -4,6 +4,6 @@ A type of block that can be used to defer load the JavaScript for components, di
Visit the following resources to learn more:
- [@official@Angular Official Docs - @defer](https://angular.dev/api/core/@defer)
- [@official@\@defer](https://angular.dev/api/core/@defer)
- [@article@Angular Defer Complete Guide](https://blog.angular-university.io/angular-defer/)
- [@article@How to use Angular's defer block to improve performance](https://angular.love/en/how-to-use-angulars-defer-block-to-improve-performance)
@@ -4,7 +4,7 @@ Deferrable views can be used in component template to defer the loading of selec
Visit the following resources to learn more:
- [@official@Angular Official Docs - Deferrable Views](https://angular.dev/guide/defer)
- [@article@Unlocking performance with deferrable views](https://medium.com/@kashif_khan/exploring-angular-17-unlocking-performance-with-deferrable-views-580b1977f430)
- [@video@Angular 17 Defer Block |Lazy Loading in Angular 17|Angular 17 Deferrable Views |Angular 17 Tutorial](https://www.youtube.com/watch?v=h2rEGoqwr6o)
- [@official@Deferrable Views](https://angular.dev/guide/defer)
- [@article@Unlocking Performance with Deferrable views](https://medium.com/@kashif_khan/exploring-angular-17-unlocking-performance-with-deferrable-views-580b1977f430)
- [@video@Angular 17 Defer Block](https://www.youtube.com/watch?v=h2rEGoqwr6o)
- [@article@Learn how to unit test deferrable views](https://angular.love/en/learn-how-to-unit-test-the-deferrable-views)
@@ -4,6 +4,6 @@ A provider is an instruction to the Dependency Injection system on how to obtain
Visit the following resources to learn more:
- [@official@Angular Official Docs - Providing dependencies in modules](https://angular.dev/guide/ngmodules/providers)
- [@official@Providing Dependencies in Modules](https://angular.dev/guide/ngmodules/providers)
- [@article@Providers in Angular](https://www.scaler.com/topics/angular/providers-in-angular/)
- [@article@Working with providers in Angular](https://sergeygultyayev.medium.com/working-with-providers-in-angular-eeb493151446)
@@ -4,7 +4,7 @@ The Angular CLI command `ng deploy` executes the deploy CLI builder associated w
Visit the following resources to learn more:
- [@official@Angular Official Docs - Deployment](https://angular.dev/tools/cli/deployment)
- [@official@Deployment](https://angular.dev/tools/cli/deployment)
- [@official@Firebase Hosting](https://firebase.google.com/docs/hosting)
- [@official@Vercel: Angular Solutions](https://vercel.com/solutions/angular)
- [@official@Netlify](https://docs.netlify.com/frameworks/angular/)
@@ -4,7 +4,7 @@ Angular offers a suite of powerful developer tools designed to streamline and en
Visit the following resources to learn more:
- [@official@Angular Official Docs - devtools](https://angular.dev/tools/devtools)
- [@official@Angular Official Docs - CLI](https://angular.dev/tools/cli)
- [@official@Angular Devtools](https://angular.dev/tools/devtools)
- [@official@Angular CLI](https://angular.dev/tools/cli)
- [@official@Language Service Docs](https://angular.dev/tools/language-service)
- [@opensource@VS Code NG Language Service](https://github.com/angular/vscode-ng-language-service)
@@ -4,7 +4,7 @@ Angular DevTools is a browser extension that provides debugging and profiling ca
Visit the following resources to learn more:
- [@official@Angular Official Docs - devtools](https://angular.dev/tools/devtools)
- [@official@Angular Devtools](https://angular.dev/tools/devtools)
- [@official@Chrome Web Store](https://chromewebstore.google.com/detail/angular-devtools/ienfalfjdbdpebioblfackkekamfmbnh)
- [@official@Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/angular-devtools/)
- [@video@Did you try the LATEST Angular developer tools?](https://www.youtube.com/watch?v=tAfe33fVW4w)
@@ -1,4 +1,4 @@
# Builtin directives
# Built-in directives
SKDirectives are classes that add additional behavior to elements in your Angular applications. Use Angular's built-in directives to manage forms, lists, styles, and what users see.
@@ -4,7 +4,7 @@ In addition to using a component directly in a template, you can also dynamicall
Visit the following resources to learn more:
- [@official@Angular Official Docs - Programmatically rendering components](https://angular.dev/guide/components/programmatic-rendering)
- [@official@Programmatically Rendering Components](https://angular.dev/guide/components/programmatic-rendering)
- [@video@Dynamic Component in Angular (2024)](https://www.youtube.com/watch?v=ncbftt3NWVo)
- [@article@New Input Binding for NgComponentOutlet](https://medium.com/ngconf/new-input-binding-for-ngcomponentoutlet-cb18a86a739d)
- [@article@Render dynamic components in Angular using ViewContainerRef](https://dev.to/railsstudent/render-dynamic-components-in-angular-using-viewcontainerref-160h)
@@ -4,5 +4,5 @@ Dynamic forms in Angular are a flexible way to create forms where the structure
Learn more from the following resources:
- [@offical@Dynamic Forms Documentation](https://angular.dev/guide/forms/dynamic-forms)
- [@official@Dynamic Forms Documentation](https://angular.dev/guide/forms/dynamic-forms)
- [@video@Create a Dynamic Reactive Angular Form with JSON](https://www.youtube.com/watch?v=ByHw_RMjkKM)
@@ -4,5 +4,5 @@ With the new control flow syntax, you gain `@else if` conditional blocks, someth
Visit the following resources to learn more:
- [@official@Angular Official Docs - @if](https://angular.dev/api/core/@if)
- [@official@\@if](https://angular.dev/api/core/@if)
- [@article@Angular @if: Complete Guide](https://blog.angular-university.io/angular-if/)
@@ -4,5 +4,5 @@ While the `@if` block can be helpful in many situations, it's common to also sho
Visit the following resources to learn more:
- [@official@Angular Official Docs - @else block](https://angular.dev/essentials/conditionals-and-loops#else-block)
- [@official@Angular Official Docs - @else block](https://angular.dev/guide/templates/control-flow#conditionally-display-content-with-if-else-if-and-else)
- [@article@Angular If Else Control Flow Blocks Explained](https://ultimatecourses.com/blog/angular-if-else-control-flow-blocks-explained)
@@ -14,6 +14,5 @@ the policy is automatically switched to `ViewEncapsulation.None`.
Visit the following resources to learn more:
- [@official@Style scoping](https://angular.dev/guide/components/styling#style-scoping)
- [@official@Component - API](https://angular.dev/api/core/Component#encapsulation)
- [@official@Style Scoping](https://angular.dev/guide/components/styling#style-scoping)
- [@official@Component Encapsulation](https://angular.dev/api/core/Component#encapsulation)
@@ -4,8 +4,8 @@ End-to-end or (E2E) testing is a form of testing used to assert your entire appl
Visit the following resources to learn more:
- [@official@Angular Official Docs - End to End Testing](https://angular.dev/tools/cli/end-to-end)
- [@official@Cypress Official Docs - Your First Test with Cypress](https://docs.cypress.io/guides/end-to-end-testing/writing-your-first-end-to-end-test)
- [@official@Nightwatch Official Docs - Writing Tests: Introduction](https://nightwatchjs.org/guide/writing-tests/introduction.html)
- [@official@Webdriver Official Docs - Getting Started](https://webdriver.io/docs/gettingstarted/)
- [@official@Puppeteer Angular Schematic](https://pptr.dev/guides/ng-schematics/#getting-started)
- [@official@End to End Testing](https://angular.dev/tools/cli/end-to-end)
- [@official@Your First Test with Cypress](https://docs.cypress.io/guides/end-to-end-testing/writing-your-first-end-to-end-test)
- [@official@Writing Tests: Introduction](https://nightwatchjs.org/guide/writing-tests/introduction.html)
- [@official@Getting Started](https://webdriver.io/docs/gettingstarted/)
- [@official@Puppeteer Angular Schematic](https://pptr.dev/guides/ng-schematics/#getting-started)
@@ -4,7 +4,7 @@ It is recommended that you use Trusted Types as a way to help secure your applic
Visit the following resources to learn more:
- [@official@Angular Official Docs - Enforcing Trusted Types](https://angular.dev/best-practices/security#enforcing-trusted-types)
- [@official@Enforcing Trusted Types](https://angular.dev/best-practices/security#enforcing-trusted-types)
- [@official@W3C - Trusted Types](https://w3c.github.io/trusted-types/dist/spec/)
- [@official@MDN Docs - Trusted Types API](https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API)
- [@official@Trusted Types API](https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API)
- [@article@How to use Trusted Types](https://web.dev/articles/trusted-types#how-to-use-trusted-types)
@@ -4,4 +4,5 @@ Event binding lets you listen for and respond to user actions such as keystrokes
Visit the following resources to learn more:
- [@official@Angular Official Docs - Event Binding](https://angular.dev/guide/templates/event-binding)
- [@official@Event Binding](https://angular.dev/guide/templates/event-binding)
- [@article@Event Handling in Angular](https://medium.com/@theriyasharma24/event-handling-in-angular-a5854a61b4a5)
@@ -4,6 +4,6 @@ Feature modules are `NgModules` for the purpose of organizing code. With feature
Visit the following resources to learn more:
- [@official@Angular Official Docs - Feature Modules](https://angular.dev/guide/ngmodules/feature-modules#how-to-make-a-feature-module)
- [@official@Feature Modules](https://angular.dev/guide/ngmodules/feature-modules#how-to-make-a-feature-module)
- [@video@Creating a Feature Module | Understanding Angular Modules](https://www.youtube.com/watch?v=VaPhaexVa1U)
- [@article@Feature module with lazy loading in Angular 15](https://medium.com/@jaydeepvpatil225/feature-module-with-lazy-loading-in-angular-15-53bb8e15d193)
@@ -4,4 +4,5 @@ RxJS provides a variety of filtering operators that you can use to filter and tr
Visit the following resources to learn more:
- [@article@Understanding RxJS Operators](https://rxjs.dev/api/operators)
- [@official@RxJS Operators](https://www.learnrxjs.io/learn-rxjs/operators)
- [@article@Understanding RxJS Operators](https://medium.com/@madhavi792002/understanding-rxjs-operators-a-friendly-guide-to-reactive-programming-part-1-305dbc0c6e72)
@@ -4,4 +4,4 @@ The @for block repeatedly renders content of a block for each item in a collecti
Visit the following resources to learn more:
- [@official@Angular Official Docs - @for](https://angular.dev/api/core/@for)
- [@official@\@for](https://angular.dev/api/core/@for)
@@ -9,5 +9,5 @@ Some types of angular guards are `CanActivate`, `CanActivateChild`, `CanDeactiva
Visit the following resources to learn more:
- [@official@Preventing unauthorized access](https://angular.dev/guide/routing/common-router-tasks#preventing-unauthorized-access)
- [@official@Preventing Unauthorized Access](https://angular.dev/guide/routing/common-router-tasks#preventing-unauthorized-access)
- [@official@Resolve](https://angular.dev/api/router/Resolve)
@@ -4,6 +4,6 @@ Most front-end applications need to communicate with a server over the HTTP prot
Visit the following resources to learn more:
- [@official@Angular Official Docs - HTTP Client](https://angular.dev/guide/http)
- [@official@HTTP Client](https://angular.dev/guide/http)
- [@article@Angular HTTP Client - Quickstart Guide](https://blog.angular-university.io/angular-http/)
- [@article@Using HTTP Client in modern Angular applications](https://www.thisdot.co/blog/using-httpclient-in-modern-angular-applications)
@@ -4,5 +4,5 @@ Angular has built-in support to help prevent two common HTTP vulnerabilities, cr
Visit the following resources to learn more:
- [@official@Angular Official Docs - Security](https://angular.dev/best-practices/security)
- [@official@Angular Security](https://angular.dev/best-practices/security)
- [@article@Angular | HackTricks](https://book.hacktricks.xyz/network-services-pentesting/pentesting-web/angular)
@@ -6,6 +6,6 @@ However, HttpClient only handles the client-side aspect of XSRF protection. Your
Visit the following resources to learn more:
- [@official@Angular Official Docs - Security](https://angular.dev/best-practices/security#httpclient-xsrf-csrf-security)
- [@official@Angular Security](https://angular.dev/best-practices/security#httpclient-xsrf-csrf-security)
- [@article@How can you protect Angular Web app from cross site request forgery?](https://www.linkedin.com/advice/3/how-can-you-protect-angular-web-app-from-cross-site-pyqwc)
- [@article@Cross Site Request Forgery: XSRF protection in Angular](https://borstch.com/blog/development/cross-site-request-forgery-xsrf-protection-in-angular)
@@ -4,7 +4,7 @@ Hydration is the process that restores the server-side rendered application on t
Visit the following resources to learn more:
- [@official@Angular Official Docs - Hydration](https://angular.dev/guide/hydration)
- [@official@Angular Official Docs - provideClientHydration](https://angular.dev/api/platform-browser/provideClientHydration)
- [@official@Hydration](https://angular.dev/guide/hydration)
- [@official@provideClientHydration](https://angular.dev/api/platform-browser/provideClientHydration)
- [@article@Angular Hydration](https://www.bacancytechnology.com/blog/angular-hydration)
- [@video@Angular SSR Deep Dive (With Client HYDRATION)](https://www.youtube.com/watch?v=U1MP4uCuUVI)
@@ -4,5 +4,5 @@ The @if block conditionally displays its content when its condition expression i
Visit the following resources to learn more:
- [@official@Angular Official Docs - @if](https://angular.dev/api/core/@if)
- [@official@\@if](https://angular.dev/api/core/@if)
- [@video@Narrow Down signal value type within an if statement](https://egghead.io/lessons/angular-narrow-down-angular-s-signal-value-type-within-an-if-statement)
@@ -4,6 +4,6 @@ The NgOptimizedImage directive makes it easy to adopt performance best practices
Visit the following resources to learn more:
- [@official@Angular Official Docs - Image Optimization](https://angular.dev/guide/image-optimization)
- [@article@Automatic adjustments in Angular's optimized images](https://medium.com/ngconf/automatic-adjustments-in-angulars-optimized-images-0034335e0374)
- [@official@Image Optimization](https://angular.dev/guide/image-optimization)
- [@article@Automatic Adjustments in Angular's optimized images](https://medium.com/ngconf/automatic-adjustments-in-angulars-optimized-images-0034335e0374)
- [@article@Boost your application's performance with NgOptimizedImage](https://angular.love/en/boost-your-applications-performance-with-ngoptimizedimage)
@@ -5,5 +5,5 @@ pipes that can be used within its template.
Visit the following resources to learn more:
- [@official@Importing and using components](https://angular.dev/guide/components/importing)
- [@official@Importing and Using Components](https://angular.dev/guide/components/importing)
- [@official@Component - API](https://angular.dev/api/core/Component#imports)
@@ -4,5 +4,5 @@
Visit the following resources to learn more:
- [@official@Angular Official Website - inputs](https://angular.dev/guide/components/inputs)
- [@official@Angular Official Website - outputs](https://angular.dev/guide/components/outputs)
- [@official@inputs](https://angular.dev/guide/components/inputs)
- [@official@outputs](https://angular.dev/guide/components/outputs)
@@ -4,6 +4,6 @@ Signal inputs allow values to be bound from parent components. Those values are
Visit the following resources to learn more:
- [@official@Angular Official Docs - Inputs as Signals](https://angular.dev/guide/signals/inputs)
- [@article@Angular Signal Inputs: Complete Guide to input()](https://blog.angular-university.io/angular-signal-inputs/)
- [@official@Inputs as Signals](https://angular.dev/guide/signals/inputs)
- [@article@Angular Signal Inputs: Complete Guide to input\(\)](https://blog.angular-university.io/angular-signal-inputs/)
- [@video@Angular's New Signal Inputs](https://www.youtube.com/watch?v=yjCeaiWXC0U)
@@ -4,7 +4,7 @@ Internationalization, sometimes referenced as i18n, is the process of designing
Visit the following resources to learn more:
- [@official@Angular Official Docs - Internationalization](https://angular.dev/guide/i18n)
- [@official@Internationalization](https://angular.dev/guide/i18n)
- [@article@Angular i18n](https://lokalise.com/blog/angular-i18n/)
- [@opensource@Transloco](https://github.com/jsverse/transloco)
- [@opensource@Ngx Translate](https://github.com/ngx-translate/core)
@@ -4,5 +4,5 @@ Interpolation refers to embedding expressions into marked up text. By default, i
Visit the following resources to learn more:
- [@official@Angular Official Website](https://angular.dev/guide/templates/interpolation)
- [@official@Interpolation](https://angular.dev/guide/templates/interpolation)
- [@official@Displaying values with interpolation](https://angular.dev/guide/templates/interpolation)
Loaded 100 of 643 files, more files were not shown because too many files have changed in this diff. Show more