⠀⠀⠀⠀⠀⠀⣀⣤⣶⡶⢛⠟⡿⠻⢻⢿⢶⢦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢀⣠⡾⡫⢊⠌⡐⢡⠊⢰⠁⡎⠘⡄⢢⠙⡛⡷⢤⡀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢠⢪⢋⡞⢠⠃⡜⠀⠎⠀⠉⠀⠃⠀⠃⠀⠃⠙⠘⠊⢻⠦⠀⠀⠀⠀⠀⠀
⠀⠀⢇⡇⡜⠀⠜⠀⠁⠀⢀⠔⠉⠉⠑⠄⠀⠀⡰⠊⠉⠑⡄⡇⠀⠀⠀⠀⠀⠀
⠀⠀⡸⠧⠄⠀⠀⠀⠀⠀⠘⡀⠾⠀⠀⣸⠀⠀⢧⠀⠛⠀⠌⡇⠀⠀⠀⠀⠀⠀
⠀⠘⡇⠀⠀⠀⠀⠀⠀⠀⠀⠙⠒⠒⠚⠁⠈⠉⠲⡍⠒⠈⠀⡇⠀⠀⠀⠀⠀⠀
⠀⠀⠈⠲⣆⠀⠀⠀⠀⠀⠀⠀⠀⣠⠖⠉⡹⠤⠶⠁⠀⠀⠀⠈⢦⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠈⣦⡀⠀⠀⠀⠀⠧⣴⠁⠀⠘⠓⢲⣄⣀⣀⣀⡤⠔⠃⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣜⠀⠈⠓⠦⢄⣀⣀⣸⠀⠀⠀⠀⠁⢈⢇⣼⡁⠀⠀⠀⠀⠀⠀⠀⠀
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
| 'use client' | |
| import * as React from 'react' | |
| import { EyeIcon, EyeOffIcon } from 'lucide-react' | |
| import { Button } from '@/components/ui/button' | |
| import { Input, type InputProps } from '@/components/ui/input' | |
| import { cn } from '@/lib/utils' | |
| const PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(({ className, ...props }, ref) => { |
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
| import { ApplicationRef, ComponentRef, createComponent, Type } from "@angular/core"; | |
| import { createApplication } from "@angular/platform-browser"; | |
| import React, { useEffect, useRef, useState } from "react"; | |
| type AnyComponentRef = ComponentRef<unknown>; | |
| export type ReactifyProps = { | |
| component: Type<unknown>; | |
| inputs?: Record<string, unknown>; | |
| }; |
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
| /* | |
| { | |
| "compilerOptions": { | |
| "baseUrl": ".", | |
| "outDir": "build/dist", | |
| "module": "esnext", | |
| "target": "es6", | |
| "lib": [ | |
| "es2019", | |
| "dom", |
If you want to learn more about this image check out its GitHub repo
Download and setup gcloud SDK on your machine.
Create a new instance with the following settings:
Com Docker é possível configurar um container para que ele ouça conexões à uma
porta apenas em um IP por meio da opção publish, no formato
ip:hostPort:containerPort. Isso impede que conexões sejam feitas por outros
IPs sejam aceitas.
Se configurarmos o container para ouvir apenas no IP de loopback (127.0.0.1),
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
| /* | |
| * Stripe WebGl Gradient Animation | |
| * All Credits to Stripe.com | |
| * ScrollObserver functionality to disable animation when not scrolled into view has been disabled and | |
| * commented out for now. | |
| * https://kevinhufnagl.com | |
| */ |
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
| import { useEffect, useRef, useState } from "react"; | |
| import { BehaviorSubject, Observable, PartialObserver, Subject } from "rxjs"; | |
| function useConstant<T>(factory: () => T): T { | |
| const ref = useRef<{ value: T }>(); | |
| if (!ref.current) { | |
| ref.current = { value: factory() }; | |
| } |
- Install
@module-federation/nextjs-mf.
yarn add @module-federation/nextjs-mf- Add resolutions to
package.json:
"resolutions": {
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
| import { captureException, flush } from '@sentry/nextjs'; | |
| import NextErrorComponent from 'next/error'; | |
| import type { ErrorProps } from 'next/error'; | |
| import type { NextPage } from 'next'; | |
| interface AppErrorProps extends ErrorProps { | |
| err?: Error; | |
| hasGetInitialPropsRun?: boolean; | |
| } |
NewerOlder