repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/src/abi/index.ts | other/starknet-example/src/abi/index.ts | // STRK Token
export const CONTRACT_ABI = [
{
type: "impl",
name: "LockingContract",
interface_name: "src::mintable_lock_interface::ILockingContract",
},
{
type: "interface",
name: "src::mintable_lock_interface::ILockingContract",
items: [
{
type: "function",
name: "... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/algorand-example/vite.config.ts | other/algorand-example/vite.config.ts | /* eslint-disable import/no-extraneous-dependencies */
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
// alias are only to be added when absolutely necessary, these modules are already present in the bro... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/algorand-example/src/App.tsx | other/algorand-example/src/App.tsx |
import "./App.css";
import {
useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth
} from "@web3auth/modal/react";
import { getAlgorandKeyPair, getAccounts, getBalance, signMessage, signAndSendTransaction } from "./algorandRPC";
function App() {
const { connect, isConnected, loading: connectLo... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/algorand-example/src/web3authContext.tsx | other/algorand-example/src/web3authContext.tsx | // IMP START - Quick Start
import { authConnector, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
// IMP END - Quick Start
// IMP START - Dashboard Registration
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.we... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/algorand-example/src/algorandRPC.ts | other/algorand-example/src/algorandRPC.ts | import { IProvider } from "@web3auth/modal";
import algosdk from "algosdk";
// Helper function to create Algorand client
export const makeClient = async (): Promise<algosdk.Algodv2> => {
const algodToken = {
"x-api-key": "yay5jiXMXr88Bi8nsG1Af9E1X3JfwGOC2F7222r3", // Replace with your PureStake API key or use en... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/algorand-example/src/main.tsx | other/algorand-example/src/main.tsx | import "./index.css";
import ReactDOM from "react-dom/client";
// IMP START - Setup Web3Auth Provider
import { Web3AuthProvider } from "@web3auth/modal/react";
import web3AuthContextConfig from "./web3authContext";
// IMP END - Setup Web3Auth Provider
import App from "./App";
ReactDOM.createRoot(document.getElementB... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/algorand-example/src/vite-env.d.ts | other/algorand-example/src/vite-env.d.ts | /// <reference types="vite/client" />
| typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/next-env.d.ts | other/server-side-verification-example/next-env.d.ts | /// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
| typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/app/App.tsx | other/server-side-verification-example/app/App.tsx | import "react-toastify/dist/ReactToastify.css";
import { toast } from "react-toastify";
import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useIdentityToken, useWeb3Auth} from "@web3auth/modal/react";
import { useAccount } from "wagmi";
import { SendTransaction } from "../components/sendTransaction";
... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/app/web3authContext.tsx | other/server-side-verification-example/app/web3authContext.tsx | // IMP START - Quick Start
import { authConnector, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
// IMP END - Quick Start
// IMP START - Dashboard Registration
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.we... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/app/layout.tsx | other/server-side-verification-example/app/layout.tsx | import "./globals.css";
import "react-toastify/dist/ReactToastify.css";
import { Inter } from "next/font/google";
import { ToastContainer } from "react-toastify";
const inter = Inter({ subsets: ["latin"] });
export const metadata = {
title: "Web3Auth Server Side Verification Example",
description: "Web3Auth Next... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/app/page.tsx | other/server-side-verification-example/app/page.tsx | "use client";
// IMP START - Setup Web3Auth Provider
import { Web3AuthProvider } from "@web3auth/modal/react";
import web3AuthContextConfig from "./web3authContext";
// IMP END - Setup Web3Auth Provider
// IMP START - Setup Wagmi Provider
import { WagmiProvider } from "@web3auth/modal/react/wagmi";
import { QueryClien... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/app/api/login/route.ts | other/server-side-verification-example/app/api/login/route.ts | import * as jose from "jose";
import { NextRequest, NextResponse } from "next/server";
export async function POST(req: NextRequest) {
try {
// Extract JWT token from Authorization header
const authHeader = req.headers.get("authorization");
const idToken = authHeader?.split(" ")[1];
if (!idToken)... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/app/api/login-external/route.ts | other/server-side-verification-example/app/api/login-external/route.ts | import * as jose from "jose";
import { NextRequest, NextResponse } from "next/server";
export async function POST(req: NextRequest) {
try {
// Extract JWT token from Authorization header
const authHeader = req.headers.get("authorization");
const idToken = authHeader?.split(" ")[1];
if (!idToken)... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/components/sendTransaction.tsx | other/server-side-verification-example/components/sendTransaction.tsx | import { FormEvent } from "react";
import { useWaitForTransactionReceipt, useSendTransaction, BaseError } from "wagmi";
import { Hex, parseEther } from "viem";
export function SendTransaction() {
const { data: hash, error, isPending, sendTransaction } = useSendTransaction()
async function submit(e: FormEvent<HTML... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/components/getBalance.tsx | other/server-side-verification-example/components/getBalance.tsx | import { useAccount, useBalance } from "wagmi";
import { formatUnits } from "viem";
export function Balance() {
const { address } = useAccount()
const { data, isLoading, error } = useBalance({ address })
return (
<div>
<h2>Balance</h2>
<div>{data?.value !== undefined && `${formatUnits(data.valu... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/server-side-verification-example/components/switchNetwork.tsx | other/server-side-verification-example/components/switchNetwork.tsx | import { useChainId, useSwitchChain } from 'wagmi'
export function SwitchChain() {
const chainId = useChainId()
const { chains, switchChain, error } = useSwitchChain()
return (
<div>
<h2>Switch Chain</h2>
<h3>Connected to {chainId}</h3>
{chains.map((chain) => (
<button
di... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/vite.config.ts | other/sns-example/vite.config.ts | /* eslint-disable import/no-extraneous-dependencies */
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
// alias are only to be added when absolutely necessary, these modules are already present in the bro... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/App.tsx | other/sns-example/src/App.tsx | import "./App.css";
import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser} from "@web3auth/modal/react";
import { useSolanaWallet } from "@web3auth/modal/react/solana";
import { SignTransaction } from "./components/signTransaction";
import { Balance } from "./components/getBalance";
import { SendVersioned... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/web3authContext.tsx | other/sns-example/src/web3authContext.tsx | // IMP START - Quick Start
import { WEB3AUTH_NETWORK } from "@web3auth/modal";
import { type Web3AuthContextConfig } from "@web3auth/modal/react";
// IMP END - Quick Start
// IMP START - Dashboard Registration
const clientId = "BFcLTVqWlTSpBBaELDPSz4_LFgG8Nf8hEltPlf3QeUG_88GDrQSw82fSjjYj5x4F3ys3ghMq8-InU7Azx7NbFSs"; /... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/main.tsx | other/sns-example/src/main.tsx | import "./index.css";
import ReactDOM from "react-dom/client";
// IMP START - Setup Web3Auth Provider
import { Web3AuthProvider } from "@web3auth/modal/react";
import web3AuthContextConfig from "./web3authContext";
// IMP END - Setup Web3Auth Provider
import App from "./App";
ReactDOM.createRoot(document.getElementB... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/vite-env.d.ts | other/sns-example/src/vite-env.d.ts | /// <reference types="vite/client" />
| typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/components/signTransaction.tsx | other/sns-example/src/components/signTransaction.tsx | import { FormEvent } from "react";
import { useSolanaWallet, useSignTransaction } from "@web3auth/modal/react/solana";
import { LAMPORTS_PER_SOL, PublicKey, SystemProgram, Transaction } from "@solana/web3.js";
export function SignTransaction() {
const { data: signedTransaction, error, loading: isPending, signTransac... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/components/getBalance.tsx | other/sns-example/src/components/getBalance.tsx | import { useSolanaWallet } from "@web3auth/modal/react/solana";
import {
LAMPORTS_PER_SOL,
PublicKey,
} from "@solana/web3.js";
import { useEffect, useState } from "react";
export function Balance() {
const { accounts, connection } = useSolanaWallet();
const [balance, setBalance] = useState<number | null>(null... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/components/signMessage.tsx | other/sns-example/src/components/signMessage.tsx | import { FormEvent } from "react";
import { useSignMessage } from "@web3auth/modal/react/solana";
export function SignMessage() {
const { data: hash, error, loading: isPending, signMessage } = useSignMessage();
async function submit(e: FormEvent<HTMLFormElement>) {
e.preventDefault()
const formData = new ... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/components/sendVersionedTransaction.tsx | other/sns-example/src/components/sendVersionedTransaction.tsx | import { FormEvent } from "react";
import { useSolanaWallet, useSignAndSendTransaction } from "@web3auth/modal/react/solana";
import { LAMPORTS_PER_SOL, PublicKey, SystemProgram, TransactionMessage, VersionedTransaction } from "@solana/web3.js";
export function SendVersionedTransaction() {
const { data: hash, error,... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/components/sns.tsx | other/sns-example/src/components/sns.tsx | import {
useSignAndSendTransaction,
useSolanaWallet,
} from "@web3auth/modal/react/solana";
import {
Connection,
PublicKey,
SystemProgram,
Transaction,
TransactionInstruction,
} from "@solana/web3.js";
import { useEffect, useState } from "react";
import {
resolve,
getPrimaryDomain,
getMultipleRecord... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Web3Auth/web3auth-examples | https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sns-example/src/components/switchNetwork.tsx | other/sns-example/src/components/switchNetwork.tsx | import { useSwitchChain, useWeb3Auth } from '@web3auth/modal/react'
export function SwitchChain() {
const { web3Auth } = useWeb3Auth();
const { switchChain, error } = useSwitchChain()
return (
<div>
<h2>Switch Chain</h2>
<h3>Connected to {web3Auth?.currentChain?.displayName}</h3>
{web3Aut... | typescript | MIT | 7cf44e9b226676781496f9274d56c70bfedde4bd | 2026-01-05T04:59:52.308622Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/playwright.config.ts | playwright.config.ts | import type { PlaywrightTestConfig } from '@playwright/test';
import { devices } from '@playwright/test';
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
const prodRun = process.env.CI || process.env.PROD_RUN;
/**
* See https://playwright.dev/doc... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/remotion.config.ts | remotion.config.ts | // See all configuration options: https://remotion.dev/docs/config
import { Config } from '@remotion/cli/config';
import path from 'node:path';
Config.setVideoImageFormat('jpeg');
Config.setOverwriteOutput(true);
Config.overrideWebpackConfig((config) => ({
...config,
resolve: {
...config.resolve,
// Allow... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/generateIndex.ts | scripts/generateIndex.ts | import fs, { readdirSync, readFileSync } from 'fs';
import { Song, SongPreview } from 'interfaces';
import { getSongPreview } from '../src/modules/Songs/utils';
import convertTxtToSong from '../src/modules/Songs/utils/convertTxtToSong';
const SONGS_FOLDER = './public/songs';
const list: SongPreview[] = [];
readdirSy... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/analyzeIndex.ts | scripts/analyzeIndex.ts | import { SongPreview } from 'interfaces';
const index: SongPreview[] = require('../public/songs/index.json');
/// group songs by artist property
const artistGroups: Record<string, SongPreview[]> = {};
index.forEach((song) => {
if (!artistGroups[song.artist]) {
artistGroups[song.artist] = [];
}
artistGroups[... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/generateSongPopularityIndex.ts | scripts/generateSongPopularityIndex.ts | import dotenv from 'dotenv';
import fs from 'fs';
import currentSongs from '../public/songs/index.json';
dotenv.config({ path: '.env.local' });
const API_URL = 'https://eu.posthog.com';
const PROJECT_ID = '281';
const TOP_SONGS_COUNT = 500;
const makeRequest = async (url: string, options: RequestInit = {}) => {
c... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/runFailedPlaywrightTests.ts | scripts/runFailedPlaywrightTests.ts | // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import path from 'path';
import testResults from '../test-results.json';
const testsToRerun = testResults.suites
.map((result) => result.specs)
.flat()
.filter((spec) => !spec.ok)
.map((spec) => `${path.join(testResults.config.rootDir... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/restoreOrigins.ts | scripts/restoreOrigins.ts | /* eslint-disable @typescript-eslint/ban-ts-comment */
import { readdirSync, readFileSync, writeFileSync } from 'fs';
import { Song } from 'interfaces';
import convertSongToTxt from '../src/modules/Songs/utils/convertSongToTxt';
import convertTxtToSong from '../src/modules/Songs/utils/convertTxtToSong';
// @ts-ignore f... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/processSongs.ts | scripts/processSongs.ts | /* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars */
import { readdirSync, readFileSync, writeFileSync } from 'fs';
import { Song } from 'interfaces';
import { IArtistList, MusicBrainzApi } from 'musicbrainz-api';
import { IIsrcSearchResult } from 'musicbrainz-api/lib/musicbrainz.ty... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/convert-songs.ts | scripts/convert-songs.ts | import { readdirSync, readFileSync, writeFileSync } from 'fs';
import convertSongToTxt from '../src/modules/Songs/utils/convertSongToTxt';
const songs = readdirSync('./tests/fixtures/songs/')
.filter((file) => file.endsWith('.json'))
.map((file) => ({
song: JSON.parse(readFileSync(`./tests/fixtures/songs/${fil... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/getSharedSongs.ts | scripts/getSharedSongs.ts | import dotenv from 'dotenv';
import fs from 'fs';
import { SongPreview } from 'interfaces';
import currentSongs from '../public/songs/index.json';
import convertSongToTxt from '../src/modules/Songs/utils/convertSongToTxt';
import { importSongsFromPostHogBase } from '../src/modules/Songs/utils/importSongsFromPostHogBase... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/generateSongStats.ts | scripts/generateSongStats.ts | import { uniq } from 'es-toolkit';
import { writeFileSync } from 'fs';
import { SongPreview } from 'interfaces';
const songStats = {
artists: [] as string[],
languages: [] as string[],
songs: 0,
};
const index: SongPreview[] = require('../public/songs/index.json');
// Sort languages alphabetically
songStats.la... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/storeOrigins.ts | scripts/storeOrigins.ts | import { readdirSync, readFileSync, writeFileSync } from 'fs';
import { Song } from 'interfaces';
import convertTxtToSong from '../src/modules/Songs/utils/convertTxtToSong';
const SONGS_FOLDER = './public/songs';
const origins: Record<string, string> = {};
(async function () {
const songs = readdirSync(SONGS_FOLDE... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/updateLastUpdate.ts | scripts/updateLastUpdate.ts | import { readFileSync, writeFileSync } from 'fs';
import { Song } from 'interfaces';
import { IArtistList, MusicBrainzApi } from 'musicbrainz-api';
import * as process from 'process';
import songIndex from '../public/songs/index.json';
import convertSongToTxt from '../src/modules/Songs/utils/convertSongToTxt';
import c... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/scripts/cicd/githubActionImportSongs.ts | scripts/cicd/githubActionImportSongs.ts | import { execSync } from 'child_process';
import dotenv from 'dotenv';
import fs from 'fs';
import currentSongs from '../../public/songs/index.json';
import convertSongToTxt from '../../src/modules/Songs/utils/convertSongToTxt';
import convertTxtToSong from '../../src/modules/Songs/utils/convertTxtToSong';
dotenv.conf... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/App.tsx | src/App.tsx | import { ErrorBoundary } from '@sentry/react';
import { KeyboardHelpProvider } from 'routes/KeyboardHelp/Context';
import RemoteMic from 'routes/RemoteMic/RemoteMic';
import Settings from 'routes/Settings/Settings';
import { Route, Router, Switch } from 'wouter';
import Convert from './routes/Convert/Convert';
import E... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/emotion-theme.d.ts | src/emotion-theme.d.ts | import { GraphicsLevel } from 'routes/Settings/SettingsState';
import { ValuesType } from 'utility-types';
declare module '@emotion/react' {
export interface Theme {
graphicSetting: ValuesType<typeof GraphicsLevel>;
}
}
declare module '@mui/material/styles' {
export interface Theme {
graphicSetting: Val... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/setupTests.ts | src/setupTests.ts | import { vitest } from 'vitest';
import '@testing-library/jest-dom';
vitest.mock('aubiojs');
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/interfaces.ts | src/interfaces.ts | import { typesMap } from 'modules/Songs/utils/convertTxtToSong';
import { ValuesType } from 'utility-types';
export type NoteType = ValuesType<typeof typesMap>;
export interface Note {
start: songBeat;
length: number;
pitch: number;
type: NoteType;
lyrics: string;
}
export interface NotesSection {
// end:... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/main.tsx | src/main.tsx | import 'modules/GameEvents/eventListeners';
import 'modules/RemoteMic/eventListeners';
import 'modules/Stats';
import 'modules/utils/array-at-polyfill';
import 'modules/utils/array-findLastIndex-polyfill';
import 'modules/utils/exposeSingletons';
import 'modules/utils/wdyr';
import createCache from '@emotion/cache';
i... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/vite-env.d.ts | src/vite-env.d.ts | /// <reference types="vite/client" />
declare namespace globalThis {
var chrome: any;
var isE2ETests: boolean | undefined;
// See https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1615
type OrientationLockType =
| 'any'
| 'landscape'
| 'landscape-primary'
| 'landscape-secondary'... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/consts.ts | src/consts.ts | export const noDistanceNoteTypes = ['freestyle', 'rap'];
export const noPointsNoteTypes: string[] = [];
export const MIDDLEA = 440;
export const SEMITONE = 69;
export const MAX_NAME_LENGTH = 20;
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/react-augment.d.ts | src/react-augment.d.ts | import 'react';
declare module 'react' {
interface CSSProperties {
[key: `--${string}`]: string | number;
}
}
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/stories/GameOverlay.stories.tsx | src/stories/GameOverlay.stories.tsx | import { Meta, StoryFn, StoryObj } from '@storybook/react';
import { GAME_MODE, SingSetup } from 'interfaces';
import { VideoState } from 'modules/Elements/VideoPlayer';
import CanvasDrawing from 'modules/GameEngine/Drawing';
import ParticleManager from 'modules/GameEngine/Drawing/ParticleManager';
import GameState fro... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/stories/Player.stories.tsx | src/stories/Player.stories.tsx | import { Meta, StoryFn, StoryObj } from '@storybook/react';
import { GAME_MODE, SingSetup } from 'interfaces';
import GameState from 'modules/GameEngine/GameState/GameState';
import PlayersManager from 'modules/Players/PlayersManager';
import convertTxtToSong from 'modules/Songs/utils/convertTxtToSong';
import { proces... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/stories/PostGame.stories.tsx | src/stories/PostGame.stories.tsx | import { Meta, StoryFn } from '@storybook/react';
import { DetailedScore, GAME_MODE, SingSetup } from 'interfaces';
import { MAX_POINTS, beatsToPoints, sumDetailedScore } from 'modules/GameEngine/GameState/Helpers/calculateScore';
import convertTxtToSong from 'modules/Songs/utils/convertTxtToSong';
import tuple from 'm... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/stories/GameOverlay.spec.tsx | src/stories/GameOverlay.spec.tsx | import { expect, test } from '@playwright/experimental-ct-react';
import { GAME_MODE } from 'interfaces';
import { GameOverlayStory } from './GameOverlay.stories';
// This is the way https://playwright.dev/docs/test-parameterize#parameterized-tests
const playerNums = [1, 2, 3, 4];
for (const playerNum of playerNums) {... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/stories/Autocomplete.stories.tsx | src/stories/Autocomplete.stories.tsx | import { Meta, StoryFn } from '@storybook/react';
import { Autocomplete } from 'modules/Elements/Autocomplete';
import { ComponentProps, useState } from 'react';
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
title: 'Autocomplete',
compon... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/stories/songFixture.ts | src/stories/songFixture.ts | export const txtfile = `
#TITLE:test
#ARTIST:convert
#LANGUAGE:English
#GENRE:genre
#REALBPM:200
#VOLUME:0.25
#YEAR:1992
#VIDEOGAP:0
#VIDEOID:koBUXESJZ8g
#BPM:200
#GAP:500
R 0 4 1 When
F 6 2 0 a
* 9 2 -2 hum
G 11 4 -4 ble
: 16 6 -2 bard
- 30
R 36 8 3 Graced
F 44 3 5 a
* 47 6 1 ride
G 53 2 0 a
: 55 8 -2 long
- 66
... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/Root.tsx | src/videos/Root.tsx | import { Composition } from 'remotion';
import { getUpdateVideoLength, UpdateVideo } from 'videos/UpdateVideo';
export const RemotionRoot: React.FC = () => {
return (
<>
<Composition
id="UpdateVideo"
component={UpdateVideo}
durationInFrames={getUpdateVideoLength()}
fps={30}
... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/index.ts | src/videos/index.ts | import { loadFont } from '@remotion/google-fonts/Roboto';
import 'index.css';
import { registerRoot } from 'remotion';
import { RemotionRoot } from 'videos/Root';
loadFont();
registerRoot(RemotionRoot);
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/UpdateVideo.tsx | src/videos/UpdateVideo.tsx | import { css, Global } from '@emotion/react';
import music from 'assets/Funk Cool Groove (No Copyright Music) By Anwar Amr.ogg';
import dayjs from 'dayjs';
import { SongPreview } from 'interfaces';
import { GameScreens } from 'modules/Elements/GameScreens';
import React from 'react';
import { AbsoluteFill, Audio, inter... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/support/cssMixins.ts | src/videos/support/cssMixins.ts | import { css } from '@emotion/react';
export const flexVertical = css({
display: 'flex',
flexDirection: 'column',
});
export const flexCenter = css({
alignItems: 'center',
justifyContent: 'center',
});
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/support/Components/Logo.tsx | src/videos/support/Components/Logo.tsx | import { Gif } from '@remotion/gif';
import { MicIconBlue, MicIconRed } from 'modules/Elements/MicIcon';
import dotParty from 'modules/Elements/dotparty.gif';
import allKaraokeLogo from 'modules/Elements/logo.gif';
import { Fade, Move, Scale } from 'remotion-animated';
import { SAnimated } from 'videos/support/Componen... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/support/Components/Scene.tsx | src/videos/support/Components/Scene.tsx | import styled from '@emotion/styled';
import { BackgroundStatic } from 'modules/Elements/LayoutWithBackground';
import { colorSets } from 'modules/GameEngine/Drawing/styles';
import { PropsWithChildren } from 'react';
import { AbsoluteFill, interpolate, useVideoConfig } from 'remotion';
import useAbsoluteFrame from 'vi... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/support/Components/TransitionCircles.tsx | src/videos/support/Components/TransitionCircles.tsx | import range from 'modules/utils/range';
import { SVGProps, useMemo } from 'react';
import { Easing, interpolate, random, useCurrentFrame } from 'remotion';
interface TransitionCircleProps extends SVGProps<SVGCircleElement> {
delay: number;
duration: number;
}
export const TransitionSVGCircle: React.FC<TransitionC... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/support/Components/common.tsx | src/videos/support/Components/common.tsx | import styled from '@emotion/styled';
import { Animated } from 'remotion-animated';
export const SAnimated = styled(Animated)`
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
`;
export const CenterAbsoluteFill = styled.div`
display: flex;
align-items: center;
ju... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/support/AbsoluteFrame/useAbsoluteFrame.ts | src/videos/support/AbsoluteFrame/useAbsoluteFrame.ts | import { useContext } from 'react';
import { AbsoluteFrameContext } from 'videos/support/AbsoluteFrame/Provider';
export default function useAbsoluteFrame() {
const context = useContext(AbsoluteFrameContext);
return context.frame;
}
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/support/AbsoluteFrame/Provider.tsx | src/videos/support/AbsoluteFrame/Provider.tsx | import { createContext, PropsWithChildren } from 'react';
import { useCurrentFrame } from 'remotion';
// eslint-disable-next-line react-refresh/only-export-components
export const AbsoluteFrameContext = createContext({
frame: 0,
});
export default function AbsoluteFrameProvider({ children }: PropsWithChildren) {
... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/UpdateVideo/NewSongs.tsx | src/videos/UpdateVideo/NewSongs.tsx | import styled from '@emotion/styled';
import { SongPreview } from 'interfaces';
import React, { HTMLProps, PropsWithChildren, ReactNode, useEffect, useState } from 'react';
import {
AbsoluteFill,
Easing,
Img,
Series,
continueRender,
delayRender,
interpolate,
useCurrentFrame,
useVideoConfig,
} from 're... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/videos/UpdateVideo/Updates.tsx | src/videos/UpdateVideo/Updates.tsx | import React from 'react';
import { AbsoluteFill, Easing, interpolate, Series, useCurrentFrame } from 'remotion';
import { Fade, Scale } from 'remotion-animated';
import { CenterAbsoluteFill, SAnimated } from 'videos/support/Components/common';
const SONG_PRESENTATION_FRAMES = 90;
const TITLE_PRESENTATION_FRAMES = 75;... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/LayoutGame.tsx | src/routes/LayoutGame.tsx | import { GameScreens } from 'modules/Elements/GameScreens';
import Toolbar from 'modules/Toolbar/Toolbar';
import { PropsWithChildren } from 'react';
interface Props extends PropsWithChildren {
toolbar?: boolean;
toolbarContent?: React.ReactNode;
}
function LayoutGame({ children, toolbarContent, toolbar = true }:... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/routePaths.ts | src/routes/routePaths.ts | /*
This map is used to generate the folder structure during the build process.
If a path is not added here, the refresh will rely on 404.html to redirect to index.html,
which makes the search engines not index the page.
*/
const routePaths = {
INDEX: '',
QUICK_SETUP: 'quick-setup',
GAME: 'game',
MENU: 'menu',... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/LandingPage/LandingPage.tsx | src/routes/LandingPage/LandingPage.tsx | import { ButtonLink } from 'modules/Elements/AKUI/Button';
import Box from 'modules/Elements/AKUI/Primitives/Box';
import Typography from 'modules/Elements/AKUI/Primitives/Typography';
import { useBackground } from 'modules/Elements/BackgroundContext';
import Logo from 'modules/Elements/Logo';
import SmoothLink from 'm... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/LandingPage/LogoIcon.tsx | src/routes/LandingPage/LogoIcon.tsx | import { BackgroundContext } from 'modules/Elements/BackgroundContext';
import { MicIconBlue, MicIconRed } from 'modules/Elements/MicIcon';
import { HTMLProps, useContext } from 'react';
import { twc } from 'react-twc';
export default function LogoIcon(props: HTMLProps<HTMLDivElement>) {
const { theme } = useContext... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/KeyboardHelp/HelpView.tsx | src/routes/KeyboardHelp/HelpView.tsx | import Box from 'modules/Elements/AKUI/Primitives/Box';
import Typography from 'modules/Elements/AKUI/Primitives/Typography';
import { supportsEscAsBack } from 'modules/hooks/useKeyboard';
import { ComponentType } from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
import { twc, TwcComponentProps } from 'rea... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/KeyboardHelp/KeyboardHelpContext.tsx | src/routes/KeyboardHelp/KeyboardHelpContext.tsx | import { createContext } from 'react';
import { HelpEntry } from 'routes/KeyboardHelp/Context';
export const KeyboardHelpContext = createContext({
setKeyboard: (_name: string, _helpEntry: HelpEntry): void => {},
unsetKeyboard: (_name: string): void => {},
hasContent: false,
});
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/KeyboardHelp/Context.tsx | src/routes/KeyboardHelp/Context.tsx | import { omit } from 'es-toolkit';
import events from 'modules/GameEvents/GameEvents';
import { useEventEffect } from 'modules/GameEvents/hooks';
import ConnectionStatus from 'modules/RemoteMic/ConnectionStatus';
import RemoteMicManager from 'modules/RemoteMic/RemoteMicManager';
import { FunctionComponent, PropsWithChi... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SocialMediaElements/SocialMediaElements.tsx | src/routes/SocialMediaElements/SocialMediaElements.tsx | import styled from '@emotion/styled';
import { useBackground } from 'modules/Elements/BackgroundContext';
import { EurovisionTheme } from 'modules/Elements/LayoutWithBackground';
import Logo from 'modules/Elements/Logo';
import { colorSets } from 'modules/GameEngine/Drawing/styles';
import LayoutGame from 'routes/Layou... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SocialMediaElements/EurovisionBackground.tsx | src/routes/SocialMediaElements/EurovisionBackground.tsx | import { colorSets } from 'modules/GameEngine/Drawing/styles';
const WIDTH = 2500;
const EurovisionBgSvg = () => {
const data = [
0,
...new Array(21)
.fill(0)
.map((_, i) => Math.round(10 * (1.2 + Math.sin(i / 2.5 + 1.5))) / 10)
.map((i) => Math.round((i / 28) * WIDTH))
.reduce<numbe... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/Welcome/GithubRibbon.tsx | src/routes/Welcome/GithubRibbon.tsx | // https://tholman.com/github-corners/
export default function GithubRibbon() {
return (
<>
<a
href="https://github.com/Asvarox/allkaraoke"
target="_blank"
rel="noreferrer"
className="github-corner"
aria-label="View source on GitHub"
dangerouslySetInnerHTML={... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/Welcome/Welcome.tsx | src/routes/Welcome/Welcome.tsx | import styled from '@emotion/styled';
import { Menu } from 'modules/Elements/AKUI/Menu';
import { useBackground } from 'modules/Elements/BackgroundContext';
import MenuWithLogo from 'modules/Elements/MenuWithLogo';
import SmoothLink from 'modules/Elements/SmoothLink';
import { typography } from 'modules/Elements/cssMix... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/Welcome/FacebookLink.tsx | src/routes/Welcome/FacebookLink.tsx | import styled from '@emotion/styled';
import { MenuContainer } from 'modules/Elements/Menu';
import { useCallback, useEffect, useState } from 'react';
import { MobilePhoneModeSetting, useSettingValue } from 'routes/Settings/SettingsState';
const FBEmbedCode = (width: number, height: number) => {
const settings = {
... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/ExcludeLanguages/ExcludeLanguagesView.tsx | src/routes/ExcludeLanguages/ExcludeLanguagesView.tsx | import styled from '@emotion/styled';
import { CheckBox, CheckBoxOutlineBlank, Warning } from '@mui/icons-material';
import { Skeleton } from '@mui/material';
import { Flag } from 'modules/Elements/Flag';
import { MenuButton } from 'modules/Elements/Menu';
import MenuWithLogo from 'modules/Elements/MenuWithLogo';
impor... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/ExcludeLanguages/ExcludeLanguages.tsx | src/routes/ExcludeLanguages/ExcludeLanguages.tsx | import NoPrerender from 'modules/Elements/NoPrerender';
import useSmoothNavigate from 'modules/hooks/useSmoothNavigate';
import { Helmet } from 'react-helmet';
import ExcludeLanguagesView from './ExcludeLanguagesView';
function ExcludeLanguages() {
const navigate = useSmoothNavigate();
const goBack = () => navigat... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/ManageSongs/ManageSongs.tsx | src/routes/ManageSongs/ManageSongs.tsx | import { MenuButton } from 'modules/Elements/Menu';
import MenuWithLogo from 'modules/Elements/MenuWithLogo';
import SmoothLink from 'modules/Elements/SmoothLink';
import useKeyboardNav from 'modules/hooks/useKeyboardNav';
import useSmoothNavigate from 'modules/hooks/useSmoothNavigate';
import { useSetlist } from 'modu... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/ManageSongs/SongManagement.tsx | src/routes/ManageSongs/SongManagement.tsx | export { default as Convert } from 'routes/Convert/ConvertView';
export { default as SongList } from 'routes/Edit/SongList';
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/Jukebox/Jukebox.tsx | src/routes/Jukebox/Jukebox.tsx | import styled from '@emotion/styled';
import { shuffle } from 'es-toolkit';
import { SongPreview } from 'interfaces';
import { useBackground } from 'modules/Elements/BackgroundContext';
import { Button } from 'modules/Elements/Button';
import NoPrerender from 'modules/Elements/NoPrerender';
import SmoothLink from 'modu... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SingASong.tsx | src/routes/SingASong/SingASong.tsx | import { ComponentProps, useState } from 'react';
import ExcludeLanguagesView from 'routes/ExcludeLanguages/ExcludeLanguagesView';
import { ExcludedLanguagesSetting, useSettingValue } from 'routes/Settings/SettingsState';
import VirtualizedSongSelection from 'routes/SingASong/SongSelection/SongSelection';
function Sin... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/SongSelection.tsx | src/routes/SingASong/SongSelection/SongSelection.tsx | import styled from '@emotion/styled';
import { SingSetup, SongPreview as SongPreviewEntity } from 'interfaces';
import { BackgroundContext, useBackground } from 'modules/Elements/BackgroundContext';
import { focused, typography } from 'modules/Elements/cssMixins';
import styles from 'modules/GameEngine/Drawing/styles';... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/SongGroupsNavigation.tsx | src/routes/SingASong/SongSelection/Components/SongGroupsNavigation.tsx | import styled from '@emotion/styled';
import { Button } from 'modules/Elements/Button';
import { typography } from 'modules/Elements/cssMixins';
import styles from 'modules/GameEngine/Drawing/styles';
import { MutableRefObject, useEffect, useState } from 'react';
import { SongGroup } from 'routes/SingASong/SongSelectio... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/AdditionalListControls.tsx | src/routes/SingASong/SongSelection/Components/AdditionalListControls.tsx | import styled from '@emotion/styled';
import { Casino, Search } from '@mui/icons-material';
import { Button } from 'modules/Elements/Button';
import { Tooltip } from 'modules/Elements/Tooltip';
import styles from 'modules/GameEngine/Drawing/styles';
import { Dispatch, SetStateAction, useState } from 'react';
import Qui... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/SongCard.tsx | src/routes/SingASong/SongSelection/Components/SongCard.tsx | import styled from '@emotion/styled';
import { SongPreview } from 'interfaces';
import Box from 'modules/Elements/AKUI/Primitives/Box';
import { BackgroundContext } from 'modules/Elements/BackgroundContext';
import { typography } from 'modules/Elements/cssMixins';
import styles from 'modules/GameEngine/Drawing/styles';... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/Playlists.tsx | src/routes/SingASong/SongSelection/Components/Playlists.tsx | import styled from '@emotion/styled';
import { Button } from 'modules/Elements/Button';
import { focusedStatic, typography } from 'modules/Elements/cssMixins';
import { useOnClickOutside } from 'modules/hooks/onClickOutside';
import useKeyboard from 'modules/hooks/useKeyboard';
import useKeyboardNav from 'modules/hooks... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/CustomVirtualization.tsx | src/routes/SingASong/SongSelection/Components/CustomVirtualization.tsx | import styled from '@emotion/styled';
import {
CSSProperties,
ForwardedRef,
Fragment,
ReactNode,
useCallback,
useImperativeHandle,
useLayoutEffect,
useMemo,
useRef,
useState,
} from 'react';
interface ItemPosition {
type: 'group' | 'item';
bottom: number;
index: number;
groupIndex: number;
... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/BackgroundThumbnail.tsx | src/routes/SingASong/SongSelection/Components/BackgroundThumbnail.tsx | import styled from '@emotion/styled';
import { ComponentProps, useLayoutEffect, useState } from 'react';
import { usePreviousDistinct } from 'react-use';
import { GraphicSetting, useSettingValue } from 'routes/Settings/SettingsState';
interface Props extends ComponentProps<typeof Image> {
videoId: string;
}
functio... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/VirtualizedList.tsx | src/routes/SingASong/SongSelection/Components/VirtualizedList.tsx | import { chunk } from 'es-toolkit';
import isE2E from 'modules/utils/isE2E';
import {
ComponentType,
CSSProperties,
ForwardedRef,
Fragment,
PropsWithChildren,
ReactNode,
useCallback,
useImperativeHandle,
useMemo,
useRef,
} from 'react';
import {
Components,
CustomVirtualization,
CustomVirtuali... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/SongPreview.tsx | src/routes/SingASong/SongSelection/Components/SongPreview.tsx | import styled from '@emotion/styled';
import { SingSetup, SongPreview } from 'interfaces';
import VideoPlayer, { VideoPlayerRef, VideoState } from 'modules/Elements/VideoPlayer';
import useDebounce from 'modules/hooks/useDebounce';
import useViewportSize from 'modules/hooks/useViewportSize';
import { isEurovisionSong }... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/QuickSearch.tsx | src/routes/SingASong/SongSelection/Components/QuickSearch.tsx | import styled from '@emotion/styled';
import { Input } from 'modules/Elements/Input';
import events from 'modules/GameEvents/GameEvents';
import { useEventEffect } from 'modules/GameEvents/hooks';
import { REGULAR_ALPHA_CHARS } from 'modules/hooks/useKeyboard';
import { ComponentRef, Dispatch, SetStateAction, useCallba... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/SongSettings/MicCheck.tsx | src/routes/SingASong/SongSelection/Components/SongSettings/MicCheck.tsx | import styled from '@emotion/styled';
import { typography } from 'modules/Elements/cssMixins';
import InputManager from 'modules/GameEngine/Input/InputManager';
import events from 'modules/GameEvents/GameEvents';
import { useEventListener, useEventListenerSelector } from 'modules/GameEvents/hooks';
import PlayersManage... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/SongSettings/GameSettings.tsx | src/routes/SingASong/SongSelection/Components/SongSettings/GameSettings.tsx | import styled from '@emotion/styled';
import { SwapHoriz as SwapHorizIcon } from '@mui/icons-material';
import { GAME_MODE, SingSetup, SongPreview } from 'interfaces';
import Box from 'modules/Elements/AKUI/Primitives/Box';
import { Button } from 'modules/Elements/Button';
import { Switcher } from 'modules/Elements/Swi... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/SongSettings/index.ts | src/routes/SingASong/SongSelection/Components/SongSettings/index.ts | import SongSettings from 'routes/SingASong/SongSelection/Components/SongSettings/SongSettings';
export default SongSettings;
| typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Asvarox/allkaraoke | https://github.com/Asvarox/allkaraoke/blob/2143688edab9de7166d87a6c703a394abc450293/src/routes/SingASong/SongSelection/Components/SongSettings/PlayerSettings.tsx | src/routes/SingASong/SongSelection/Components/SongSettings/PlayerSettings.tsx | import styled from '@emotion/styled';
import { PlayerSetup, SongPreview } from 'interfaces';
import { Button } from 'modules/Elements/Button';
import { typography } from 'modules/Elements/cssMixins';
import InputManager from 'modules/GameEngine/Input/InputManager';
import gameEvents from 'modules/GameEvents/GameEvents'... | typescript | MIT | 2143688edab9de7166d87a6c703a394abc450293 | 2026-01-05T04:35:37.445262Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.