TheRealToxicDev / Comparisons.tsx
0 喜欢
0 派生
1 文件
最后活跃于
1 | "use client"; |
2 | |
3 | import "./global.scss"; |
4 | import "atropos/css"; |
5 | |
6 | import { FC } from "react"; |
7 | import { cn } from "@/lib/utils"; |
8 | import Atropos from "atropos/react"; |
9 | import { BorderBeam } from "@/components/magicui/border-beam"; |
10 | import GridPattern from "@/components/magicui/bg/grid-pattern"; |
TheRealToxicDev / Hmmm ok
0 喜欢
0 派生
1 文件
最后活跃于
1 | class InstanceManager { |
2 | // ... other methods ... |
3 | |
4 | private monitorState(): void { |
5 | this.instances.forEach((instanceClient) => { |
6 | const instance = instanceClient.instance; |
7 | |
8 | if (!instance) return; |
9 | |
10 | if (instance.idleTimeout) { |
TheRealToxicDev / Hmmm yes
0 喜欢
0 派生
1 文件
最后活跃于
1 | import { Logger } from "../log.client"; |
2 | import * as DTypes from '../../types/db.types'; |
3 | import { IInstance, IInstanceClient, InstanceInfo } from "../../types/instance"; |
4 | import { InstanceErrors } from '../../types/err.types'; |
5 | import { CordXError } from "../error.client"; |
6 | |
7 | export class InstanceClient implements IInstanceClient { |
8 | private static instances: Map<string, InstanceClient> = new Map(); |
9 | private errors: typeof InstanceErrors = InstanceErrors; |
10 | private idleTimeoutDuration: number = 1000 * 60 * 20; |
TheRealToxicDev / Dashboard File
0 喜欢
0 派生
2 文件
最后活跃于
1 | import Navbar from '@/components/Navbar' |
2 | import Footer from '@/components/Footer' |
3 | |
4 | import Head from 'next/head' |
5 | import Card from '@/components/DashboardCard' |
6 | import PopupForm from '@/components/DashboardCreateEntity' |
7 | |
8 | import { useState, useEffect } from 'react' |
9 | import Link from 'next/link' |
10 | import { useRouter } from 'next/router' |
TheRealToxicDev / Versions Check
0 喜欢
0 派生
1 文件
最后活跃于
Version checker for my script using the github api
1 | if CONFIGURATION.updates then |
2 | |
3 | print('| ================================== ') |
4 | print('| CFX Manager - Checking for updates ') |
5 | print('| ================================== ') |
6 | print('| this may take a few seconds... ') |
7 | print('| ================================== ') |
8 | |
9 | local version = GetResourceMetadata(GetCurrentResourceName(), 'version', 0) |
TheRealToxicDev / CordX API | Fetch Discord User
0 喜欢
0 派生
2 文件
最后活跃于
Simple api used to fetch a discord user
1 | export type Snowflake = string; |
2 | |
3 | export type DiscordUser = { |
4 | id: Snowflake; |
5 | username?: string; |
6 | global_name?: string; |
7 | discriminator?: any; |
8 | accent_color?: ColorData['accent_color']; |
9 | banner_color?: ColorData['banner_color']; |
10 | created_at?: any; |
更新
更早