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
| #!/bin/bash | |
| # PPanel-node Quick Install Script | |
| # Usage: bash install.sh --server https://api.example.com --server-key your-key --node-id 1 | |
| red='\033[0;31m' | |
| green='\033[0;32m' | |
| yellow='\033[0;33m' | |
| plain='\033[0m' |
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 {Container, FC, useInject} from "./ioc-di"; | |
| import {ChildValueService, TestService} from "./service"; | |
| const App = () => ( | |
| <> | |
| <Container.Wrap> | |
| <Test /> | |
| <Test2 /> | |
| <Test3 /> | |
| </Container.Wrap> |
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
| zmodule environment | |
| zmodule git | |
| zmodule input | |
| zmodule termtitle | |
| zmodule utility | |
| zmodule duration-info | |
| zmodule git-info | |
| zmodule asciiship | |
| zmodule zsh-users/zsh-completions --fpath src | |
| zmodule completion |
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 { | |
| applyPatches, | |
| enableMapSet, | |
| enablePatches, | |
| produce, | |
| produceWithPatches, | |
| type Objectish, | |
| type Patch, | |
| } from 'immer'; | |
| import { atom, useAtom, type PrimitiveAtom } from 'jotai'; |
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
| type PickProp<T, K> = K extends keyof NonNullable<T> | |
| ? T extends undefined | |
| ? NonNullable<T>[K] | undefined | |
| : NonNullable<T>[K] | |
| : undefined; | |
| export function focusPropAtom<Store, Result, Key extends keyof NonNullable<Store>>( | |
| baseAtom: WritableAtom<Store, [SetStateAction<Store>], Result>, | |
| path: Key, | |
| ) { |
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
| zmodule environment | |
| zmodule git | |
| zmodule input | |
| zmodule termtitle | |
| zmodule utility | |
| zmodule duration-info | |
| zmodule git-info | |
| zmodule asciiship | |
| zmodule zsh-users/zsh-completions --fpath src | |
| zmodule completion |
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 { isArray } from 'lodash-es'; | |
| import ShoSho from 'shosho'; | |
| import type { Artboard } from '../artboard'; | |
| import type { Options } from 'shosho'; | |
| import { Plugin } from './Plugin'; | |
| type Descriptor = { | |
| handler?: Handler; |
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 Autoplay from 'embla-carousel-autoplay' | |
| function IndexCarouse({ children, ...props }: CarouselProps) { | |
| const mobile = useIsMobile() | |
| const autoplay = React.useRef(Autoplay({ delay: 2000 })) | |
| return ( | |
| <AutoCarousel | |
| {...props} | |
| loop={true} |