This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "files.autoSave": "afterDelay", | |
| "editor.fontSize": 16, | |
| "terminal.integrated.fontFamily": "AnonymicePro Nerd Font", | |
| "editor.fontFamily": "AnonymicePro Nerd Font", | |
| "terminal.integrated.fontSize": 16, | |
| "editor.formatOnSave": true, | |
| "editor.formatOnType": false, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.wordWrap": "on", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // In protected routes of App A and App B | |
| import { validateToken } from './path-to-shared-auth-service'; | |
| // Middleware to check token before accessing protected routes | |
| async function requireAuthentication(req, res, next) { | |
| const token = req.cookies.authToken; // Retrieve token from cookies | |
| const isValidToken = await validateToken(token); | |
| if (isValidToken) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://nextjs.org/docs/messages/react-hydration-error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "files.autoSave": "afterDelay", | |
| "editor.fontSize": 16, | |
| "terminal.integrated.fontFamily": "AnonymicePro Nerd Font", | |
| "editor.fontFamily": "AnonymicePro Nerd Font", | |
| "terminal.integrated.fontSize": 16, | |
| "editor.formatOnSave": true, | |
| "editor.formatOnType": false, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.wordWrap": "on", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "zipcode": "พระบรมมหาราชวัง พระนคร กรุงเทพมหานคร 10200" | |
| }, | |
| { | |
| "zipcode": "วังบูรพาภิรมย์ พระนคร กรุงเทพมหานคร 10200" | |
| }, | |
| { | |
| "zipcode": "วัดราชบพิธ พระนคร กรุงเทพมหานคร 10200" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error - Error: Service validation failed: brand: Path `brand` is required., price: Path `price` is required., image: Path `image` is required. | |
| at ValidationError.inspect (/Users/manotlj/Project/AodProject/NextJS-Ecommerce/acc-service-app/node_modules/mongoose/lib/error/validation.js:50:26) | |
| at formatValue (node:internal/util/inspect:806:19) | |
| at inspect (node:internal/util/inspect:365:10) | |
| at formatWithOptionsInternal (node:internal/util/inspect:2273:40) | |
| at formatWithOptions (node:internal/util/inspect:2135:10) | |
| at console.value (node:internal/console/constructor:349:14) | |
| at console.warn (node:internal/console/constructor:382:61) | |
| at Object.error (/Users/manotlj/Project/AodProject/NextJS-Ecommerce/acc-service-app/node_modules/next/dist/build/output/log.js:33:13) | |
| at DevServer.logErrorWithOriginalStack (/Users/manotlj/Project/AodProject/NextJS-Ecommerce/acc-service-app/node_modules/next/dist/server/dev/next-dev-server.js:805:21) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "env": { "browser": true, "node": true, "es6": true }, | |
| "extends": ["eslint:recommended", "next/core-web-vitals"], | |
| "rules": { | |
| "import/order": [ | |
| 1, | |
| { | |
| "groups": [ | |
| "external", | |
| "builtin", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | |
| if empty(glob(data_dir . '/autoload/plug.vim')) | |
| silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'preservim/nerdtree' | |
| Plug 'prettier/vim-prettier', { 'do': 'yarn install' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2022-05-23 09:06:42.839 xcodebuild[2685:28571] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore | |
| 2022-05-23 09:06:42.840 xcodebuild[2685:28571] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore | |
| 2022-05-23 09:06:50.572 xcodebuild[2722:28813] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore | |
| 2022-05-23 09:06:50.573 xcodebuild[2722:28813] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container"> | |
| <h1>Center an element both Horizontally and Vertically using flexbox</h1> | |
| </div> |