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 |
|---|---|---|---|---|---|---|---|---|
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/formatter.ts | frontend/src/utils/formatter.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/loglevel.ts | frontend/src/utils/loglevel.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/theme.tsx | frontend/src/utils/theme.tsx | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/pseudonym.ts | frontend/src/utils/pseudonym.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/ss58.ts | frontend/src/utils/ss58.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/form.ts | frontend/src/utils/form.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/toast.ts | frontend/src/utils/toast.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/resource.ts | frontend/src/utils/resource.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/form-submit.ts | frontend/src/utils/form-submit.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/store/config.ts | frontend/src/utils/store/config.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/store/type.ts | frontend/src/utils/store/type.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/store/index.ts | frontend/src/utils/store/index.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/utils/store/privacy.ts | frontend/src/utils/store/privacy.ts | /**
* 是否已在当前浏览器同意隐私政策
* true 表示用户已在本设备上确认过,登录页可默认勾选
*/
import { atomWithStorage } from 'jotai/utils'
export const atomPrivacyAccepted = atomWithStorage<boolean>('crater.privacyAccepted', false)
| typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/lib/utils.ts | frontend/src/lib/utils.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/frontend/src/lib/constants.ts | frontend/src/lib/constants.ts | /**
* Copyright 2025 RAIDS Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/source.config.ts | website/source.config.ts | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/mdx-components.tsx | website/src/mdx-components.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/app/layout.config.tsx | website/src/app/layout.config.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/app/api/search/route.ts | website/src/app/api/search/route.ts | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/app/[lang]/layout.tsx | website/src/app/[lang]/layout.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/app/[lang]/(home)/layout.tsx | website/src/app/[lang]/(home)/layout.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/app/[lang]/(home)/page.tsx | website/src/app/[lang]/(home)/page.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/app/[lang]/docs/layout.tsx | website/src/app/[lang]/docs/layout.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/app/[lang]/docs/[[...slug]]/page.tsx | website/src/app/[lang]/docs/[[...slug]]/page.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/core-capabilities.tsx | website/src/components/core-capabilities.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/get-started.tsx | website/src/components/get-started.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/customer-scenarios.tsx | website/src/components/customer-scenarios.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/why-choose-section.tsx | website/src/components/why-choose-section.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/internal-link-updater.tsx | website/src/components/internal-link-updater.tsx | // src/components/internal-link-updater.tsx
"use client";
import { useEffect } from "react";
import { checkInternalNetwork } from "@/lib/utils";
// 定义你设计的特殊分隔符
const SEPARATOR = '|||';
// 这个函数用于获取当前页面的语言代码
function getCurrentLocale(): string {
const pathSegments = window.location.pathname.split('/');
if (pathSe... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/faq-section.tsx | website/src/components/faq-section.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/hero-section.tsx | website/src/components/hero-section.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/technical-advantages.tsx | website/src/components/technical-advantages.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/mdx/mermaid.tsx | website/src/components/mdx/mermaid.tsx | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/search/search.tsx | website/src/components/search/search.tsx | 'use client';
import dynamic from 'next/dynamic';
import type { SharedProps } from 'fumadocs-ui/components/dialog/search';
const OramaSearchDialog = dynamic(
() => import('./orama-search'),
{
ssr: false,
loading: () => <div className="p-4">Loading Search...</div>
}
);
export default funct... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/components/search/orama-search.tsx | website/src/components/search/orama-search.tsx | // components/search/orama-search.tsx
'use client';
import { OramaSearchBox} from '@orama/react-components';
import type { SharedProps } from 'fumadocs-ui/components/dialog/search';
import { useEffect, useState } from 'react';
import { useTheme } from "next-themes";
import { useTranslations, useLocale } from 'next-int... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/i18n/config.ts | website/src/i18n/config.ts | // 定义支持的语言列表,包含语言代码和显示名称
export const supportedLocales = {
en: 'English',
zh: '简体中文',
jp: '日本語',
ko: '한국어',
} as const;
export type Locale = keyof typeof supportedLocales;
export const locales = Object.keys(supportedLocales) as Locale[];
export const localeNames: Record<Locale, string> = supportedLocales;
... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/i18n/routing.ts | website/src/i18n/routing.ts | import {defineRouting} from 'next-intl/routing';
import { locales, defaultLocale } from './config'; // [!code ++]
export const routing = defineRouting({
locales: locales, // [!code ++]
defaultLocale: defaultLocale, // [!code ++]
}); | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/i18n/middleware.ts | website/src/i18n/middleware.ts | import createMiddleware from 'next-intl/middleware';
import {routing} from '@/i18n/routing';
export default createMiddleware(routing);
export const config = {
matcher: '/((?!api|_next|.*\\..*).*)'
}; | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/i18n/navigation.ts | website/src/i18n/navigation.ts | import {createNavigation} from 'next-intl/navigation';
import {routing} from './routing';
// Lightweight wrappers around Next.js' navigation
// APIs that consider the routing configuration
export const {Link, redirect, usePathname, useRouter, getPathname} =
createNavigation(routing); | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/i18n/request.ts | website/src/i18n/request.ts | import {getRequestConfig} from 'next-intl/server';
import {hasLocale} from 'next-intl';
import {routing} from './routing';
export default getRequestConfig(async ({requestLocale}) => {
// Typically corresponds to the `[locale]` segment
const requested = await requestLocale;
const locale = hasLocale(routing.local... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/lib/utils.ts | website/src/lib/utils.ts | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/lib/source.ts | website/src/lib/source.ts | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
raids-lab/crater | https://github.com/raids-lab/crater/blob/15d5fd1a4c8474310b1cbe7e46c6b85af054e437/website/src/lib/i18n.ts | website/src/lib/i18n.ts | /**
* Copyright 2025 Crater
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | typescript | Apache-2.0 | 15d5fd1a4c8474310b1cbe7e46c6b85af054e437 | 2026-01-05T05:00:16.720559Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/requests.ts | src/requests.ts | import { TimeboxEvoMessageArray } from "./messages/message_array";
import { TimeboxEvoMessage } from "./messages/message";
/**
* Generic class to communicate with the Timebox Evo
*/
export class TimeboxEvoRequest {
private _messages: TimeboxEvoMessageArray = TimeboxEvoMessageArray.create();
/**
* This queues... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/types.ts | src/types.ts | import {
TimeChannel,
LightningChannel,
VJEffectChannel,
ScoreBoardChannel,
CloudChannel,
CustomChannel
} from "./channels/exports";
import { DisplayAnimation, DisplayText } from "./drawing/exports";
import { BrightnessCommand, TempWeatherCommand } from "./commands/exports";
/**
* Type for the TimeChannel... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/index.ts | src/index.ts | import { RequestTypes } from "./types";
import { TimeboxEvoRequest } from "./requests";
import {
TimeChannel,
LightningChannel,
VJEffectChannel,
ScoreBoardChannel,
CloudChannel,
CustomChannel
} from "./channels/exports";
import { BrightnessCommand, TempWeatherCommand, DateTimeCommand } from "./commands/expo... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/helpers/utils.ts | src/helpers/utils.ts | import { TinyColor, ColorInput } from "@ctrl/tinycolor";
/**
* Converts a hexadecimal string to a char-code composed string
* @param str the string to convert from a hex string representation to a charcode representation
* @returns the char-code string
*/
export function unhexlify(str: string) {
var result = '';... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/commands/date_time.ts | src/commands/date_time.ts | import { TimeboxEvoRequest } from "../requests";
import { number2HexString } from "../helpers/utils";
/**
* Options for the [[DateTimeCommand]]
*/
interface DateTimeOpts {
date?: Date;
}
export class DateTimeCommand extends TimeboxEvoRequest {
private _PACKAGE_PREFIX = "18";
private _opts: DateTimeOpts = {
... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/commands/temp_weather.ts | src/commands/temp_weather.ts | import { TimeboxEvoRequest } from "../requests";
import { number2HexString } from "../helpers/utils";
import { WeatherType, TIMEBOX_CONST } from "../types";
/**
* Options for the [[TempWeatherCommand]]
*/
interface TempWeatherOpts {
temperature?: number;
weather?: WeatherType;
}
export class TempWeatherCommand ... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/commands/exports.ts | src/commands/exports.ts | export * from "./brightness";
export * from "./temp_weather";
export * from "./date_time";
| typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/commands/brightness.ts | src/commands/brightness.ts | import { TimeboxEvoRequest } from "../requests";
import { number2HexString } from "../helpers/utils";
/**
* Options for the [[BrightnessCommand]]
*/
interface BrightnessOpts {
brightness?: number;
in_min?: number;
in_max?: number;
}
export class BrightnessCommand extends TimeboxEvoRequest {
/**
* Default... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/drawing/exports.ts | src/drawing/exports.ts | export * from "./drawing";
export * from "./text";
| typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/drawing/drawing.ts | src/drawing/drawing.ts | import { TimeboxEvoRequest } from "../requests";
import fs from "fs";
import fileType from "file-type";
import Jimp from "jimp";
import gifWrap from "gifwrap";
import { JimpArray, DivoomJimpStatic, DivoomJimpAnim } from "./jimp_overloads";
export class DisplayAnimation extends TimeboxEvoRequest {
/**
* Reads an i... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/drawing/text.ts | src/drawing/text.ts | import { TimeboxEvoRequest } from "../requests";
import { number2HexString, int2hexlittle } from "../helpers/utils";
import { ColorInput, TinyColor } from "@ctrl/tinycolor";
import { TimeboxEvoMessage } from "../messages/message";
interface DisplayTextOpts {
text?: string,
paletteFn?: Function,
animFn?: Function... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/drawing/jimp_overloads.ts | src/drawing/jimp_overloads.ts | import { TimeboxEvoMessageArray } from "../messages/message_array";
import { int2hexlittle, number2HexString } from "../helpers/utils";
import { TimeboxEvoMessage } from "../messages/message";
import Jimp from 'jimp';
export class JimpArray extends Array<DivoomJimpAnim | DivoomJimpStatic> {
private constructor(item... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/messages/message.ts | src/messages/message.ts | import { int2hexlittle, unhexlify } from "../helpers/utils";
export class TimeboxEvoMessage {
private _START = "01";
private _END = "02";
private _message: string | undefined;
constructor(msg: string = '') {
this.append(msg);
}
private _calcCRC(): number | undefined {
if (!this._message) return u... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/messages/message_array.ts | src/messages/message_array.ts | import { TimeboxEvoMessage } from "./message";
export class TimeboxEvoMessageArray extends Array<TimeboxEvoMessage> {
private constructor(items?: Array<TimeboxEvoMessage>) {
super(...items)
}
static create(): TimeboxEvoMessageArray {
return Object.create(TimeboxEvoMessageArray.prototype);
}
public a... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/channels/vjeffect.ts | src/channels/vjeffect.ts | import { TimeboxEvoRequest } from "../requests";
import { number2HexString } from "../helpers/utils";
import { VJEffectType } from "../types";
/**
* Options for the [[VJEffectChannel]]
*/
interface VJEffectOptions {
type?: VJEffectType;
}
export class VJEffectChannel extends TimeboxEvoRequest {
private _opts: V... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/channels/exports.ts | src/channels/exports.ts | export * from "./time";
export * from "./lightning";
export * from "./cloud";
export * from "./vjeffect";
export * from "./scoreboard";
export * from "./custom";
| typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/channels/cloud.ts | src/channels/cloud.ts | import { TimeboxEvoRequest } from "../requests";
export class CloudChannel extends TimeboxEvoRequest {
/**
* Generates the appropriate message to display the Cloud Channel
*/
constructor() {
super();
this.push("4502");
}
}
| typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/channels/time.ts | src/channels/time.ts | import { TimeboxEvoRequest } from "../requests";
import { TimeDisplayType } from "../types";
import { TinyColor, ColorInput } from "@ctrl/tinycolor";
import {
number2HexString,
boolean2HexString,
color2HexString
} from "../helpers/utils";
/**
* Options for the [[TimeChannel]]
*/
interface TimeOptions {
type?... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/channels/lightning.ts | src/channels/lightning.ts | import { TimeboxEvoRequest } from "../requests";
import { LightningType } from "../types";
import { ColorInput, TinyColor } from "@ctrl/tinycolor";
import {
color2HexString,
brightness2HexString,
number2HexString,
boolean2HexString
} from "../helpers/utils";
/**
* Options for the [[LightningChannel]]
*/
inte... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/channels/scoreboard.ts | src/channels/scoreboard.ts | import { TimeboxEvoRequest } from "../requests";
import { int2hexlittle } from "../helpers/utils";
/**
* Options for the [[ScoreBoardChannel]]
*/
interface ScoreBoardOptions {
red?: number;
blue?: number;
}
export class ScoreBoardChannel extends TimeboxEvoRequest {
private _opts: ScoreBoardOptions = {
red... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/src/channels/custom.ts | src/channels/custom.ts | import { TimeboxEvoRequest } from "../requests";
export class CustomChannel extends TimeboxEvoRequest {
private _PACKAGE_HEADER = "4505";
/**
* Generates the appropriate message to display the Custom Channel
*/
constructor() {
super();
this.push(this._PACKAGE_HEADER);
}
}
| typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/request.spec.ts | test/request.spec.ts | import { expect } from 'chai';
import 'mocha';
import { TimeboxEvoMessage } from '../src/messages/message';
import { TimeboxEvoRequest } from '../src';
describe('TimeboxEvoRequest class', () => {
function strip(msg: string | undefined) {
return msg === undefined ? undefined : msg.slice(6, -6);
}
describe('Pr... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/index.spec.ts | test/index.spec.ts | import { expect } from 'chai';
import 'mocha';
import {
TimeboxEvo,
CloudChannel,
CustomChannel,
LightningChannel,
ScoreBoardChannel,
TimeChannel,
VJEffectChannel,
BrightnessCommand,
TempWeatherCommand,
DisplayText,
DisplayAnimation,
TimeboxEvoRequest,
DateTimeCommand
} from '../src';
descri... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/utils.spec.ts | test/utils.spec.ts | import { int2hexlittle, unhexlify } from "../src/helpers/utils";
import { expect } from "chai";
import "mocha";
describe("util functions", () => {
describe("int2hexlittle function", () => {
it("should return in LSB First", () => {
const result = int2hexlittle(42);
expect(result).to.equal("2a00");
... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/commands/temp_weather.spec.ts | test/commands/temp_weather.spec.ts | import { expect } from 'chai';
import 'mocha';
import { TempWeatherCommand } from "../../src/commands/temp_weather"
import { TIMEBOX_CONST } from '../../src';
describe('TempWeatherCommand class', () => {
describe('New instance', () => {
it('should work with the default properties', () => {
const d = new Te... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/commands/date_time.spec.ts | test/commands/date_time.spec.ts | import { expect } from 'chai';
import 'mocha';
import { DateTimeCommand } from "../../src/commands/date_time"
describe('DateTimeCommand Class', () => {
describe('New instance', () => {
it('should work with the default value', () => {
const d = new DateTimeCommand();
expect(d.messages[0].payload).to.m... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/commands/brightness.spec.ts | test/commands/brightness.spec.ts | import { expect } from 'chai';
import 'mocha';
import { BrightnessCommand } from "../../src/commands/brightness"
describe('BrightnessCommand Class', () => {
describe('New instance', () => {
it('should work with the default value', () => {
const d = new BrightnessCommand;
expect(d.messages[0].payload)... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/drawing/text.spec.ts | test/drawing/text.spec.ts | import { expect } from 'chai';
import 'mocha';
import { DisplayText } from "../../src/drawing/text";
import { TimeboxEvoMessage } from '../../src/messages/message';
function toJsonString(text: any) {
return JSON.stringify(text).toLowerCase();
}
describe('DisplayText class', () => {
describe('Properties', () => {
... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/drawing/drawing.spec.ts | test/drawing/drawing.spec.ts | import { DisplayAnimation } from "../../src/drawing/drawing"
import { TimeboxEvoMessage } from "../../src/messages/message";
import 'mocha';
import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
chai.use(chaiAsPromised);
const expect = chai.expect;
describe('DisplayAnimation class', () => {
d... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | true |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/messages/message_array.spec.ts | test/messages/message_array.spec.ts | import { expect } from 'chai';
import { TimeboxEvoMessage } from '../../src/messages/message';
import { TimeboxEvoMessageArray } from '../../src/messages/message_array';
import 'mocha';
describe('TimeboxEvoMessages class', () => {
const MESSAGE1 = "4500010001000100ff00ff";
let m = new TimeboxEvoMessage(MESSAGE1);
... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/messages/message.spec.ts | test/messages/message.spec.ts | import { expect } from 'chai';
import { TimeboxEvoMessage } from '../../src/messages/message'
import 'mocha';
describe('TimeboxEvoMessage class', () => {
const MESSAGE1 = "4500010001000100ff00ff";
let m = new TimeboxEvoMessage(MESSAGE1);
it('should have the proper length', () => {
expect(m.length).to.equal(... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/channels/time.spec.ts | test/channels/time.spec.ts | import { expect } from 'chai';
import 'mocha';
import { TimeChannel } from '../../src/index';
import { TIMEBOX_CONST } from '../../src/types';
describe('Time Channel', () => {
describe('New instance', () => {
it('should work with default properties', () => {
const d = new TimeChannel;
expect(d.messa... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/channels/scoreboard.spec.ts | test/channels/scoreboard.spec.ts | import { expect } from 'chai';
import 'mocha';
import { ScoreBoardChannel } from '../../src/channels/scoreboard'
describe('ScoreBoard Channel', () => {
describe('New Instance', () => {
it('should work with default properties', () => {
const d = new ScoreBoardChannel;
expect(d.messages[0].message).to.... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/channels/custom.spec.ts | test/channels/custom.spec.ts | import { expect } from 'chai';
import 'mocha';
import { CustomChannel } from '../../src/channels/custom'
describe('Custom Channel', () => {
const d = new CustomChannel;
it('should work with default properties', () => {
expect(d.messages[0].message).to.equal("01040045054e0002")
})
})
| typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/channels/cloud.spec.ts | test/channels/cloud.spec.ts | import { expect } from 'chai';
import 'mocha';
import { CloudChannel } from '../../src/channels/cloud'
describe('Cloud Channel', () => {
const d = new CloudChannel;
it('should work with default properties', () => {
expect(d.messages[0].message).to.equal("01040045024b0002")
})
})
| typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/channels/lightning.spec.ts | test/channels/lightning.spec.ts | import { expect } from 'chai';
import 'mocha';
import { LightningChannel } from "../../src/channels/lightning"
import { TIMEBOX_CONST } from '../../src/types';
describe('Lightning Channel', () => {
describe('New instance', () => {
it('should work with default properties', () => {
const d = new LightningCha... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
RomRider/node-divoom-timebox-evo | https://github.com/RomRider/node-divoom-timebox-evo/blob/2a086b86feaca1b544029f97803336579f0d3a25/test/channels/vjeffects.spec.ts | test/channels/vjeffects.spec.ts | import { expect } from 'chai';
import 'mocha';
import { VJEffectChannel } from '../../src/channels/vjeffect';
describe('VJEffects Channel', () => {
describe('Properties', () => {
it('should work with default properties', () => {
const d = new VJEffectChannel;
expect(d.messages[0].message).to.equal("0... | typescript | MIT | 2a086b86feaca1b544029f97803336579f0d3a25 | 2026-01-05T05:00:38.920296Z | false |
Quorafind/Obsidian-Better-Reading-Mode | https://github.com/Quorafind/Obsidian-Better-Reading-Mode/blob/d356e7a37b35a2bd1e9107adea9a18ed99c2f45b/src/regexp-cursor.ts | src/regexp-cursor.ts | // from https://github.com/codemirror/search/blob/main/src/regexp.ts
// @ts-ignore
import { Text, TextIterator } from "@codemirror/text"
import execWithIndices from 'regexp-match-indices';
const empty = { from: -1, to: -1, match: /.*/.exec("")! }
const baseFlags = "gm" + (/x/.unicode == null ? "" : "u")
/// This cl... | typescript | MIT | d356e7a37b35a2bd1e9107adea9a18ed99c2f45b | 2026-01-05T05:00:40.963491Z | false |
Quorafind/Obsidian-Better-Reading-Mode | https://github.com/Quorafind/Obsidian-Better-Reading-Mode/blob/d356e7a37b35a2bd1e9107adea9a18ed99c2f45b/src/betterReadingMarker.ts | src/betterReadingMarker.ts | import { App } from "obsidian";
import { BetterReadingSettings } from "./betterReadingIndex";
interface HighlightRule {
regexMode: string;
regexPattern: string;
creator: ReplacementElementCreator;
}
type ReplacementElementCreator = (matchedText: string) => HTMLElement;
function createHighlightSpan(
w... | typescript | MIT | d356e7a37b35a2bd1e9107adea9a18ed99c2f45b | 2026-01-05T05:00:40.963491Z | false |
Quorafind/Obsidian-Better-Reading-Mode | https://github.com/Quorafind/Obsidian-Better-Reading-Mode/blob/d356e7a37b35a2bd1e9107adea9a18ed99c2f45b/src/betterReadingIndex.ts | src/betterReadingIndex.ts | import { App, debounce, Menu, Plugin, PluginSettingTab, Setting, ToggleComponent } from 'obsidian';
import { betterReadingExtension } from './betterReadingWidget';
import { highlightTextInElement, rules } from "./betterReadingMarker";
export interface BetterReadingSettings {
betterReadingMode: boolean;
}
const DE... | typescript | MIT | d356e7a37b35a2bd1e9107adea9a18ed99c2f45b | 2026-01-05T05:00:40.963491Z | false |
Quorafind/Obsidian-Better-Reading-Mode | https://github.com/Quorafind/Obsidian-Better-Reading-Mode/blob/d356e7a37b35a2bd1e9107adea9a18ed99c2f45b/src/betterReadingWidget.ts | src/betterReadingWidget.ts | import { Decoration, DecorationSet, EditorView, ViewPlugin, ViewUpdate, WidgetType, } from '@codemirror/view';
import { SearchCursor } from "@codemirror/search";
import { App, MarkdownView } from 'obsidian';
import { syntaxTree, tokenClassNodeProp } from "@codemirror/language";
import { RegExpCursor } from "./regexp-cu... | typescript | MIT | d356e7a37b35a2bd1e9107adea9a18ed99c2f45b | 2026-01-05T05:00:40.963491Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/entry.ts | src/entry.ts | import LightmapImpl from './core/Lightmap';
export * from './core/Lightmap';
export const Lightmap = LightmapImpl;
| typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/Spinner.tsx | src/stories/Spinner.tsx | import React, { useState, useMemo, useRef } from 'react';
import { useFrame } from '@react-three/fiber';
import * as THREE from 'three';
const Spinner: React.FC = () => {
const meshRef = useRef<THREE.Mesh>();
useFrame(({ clock }) => {
// @todo meshRef.current can be undefined on unmount, fix upstream
if (... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/polyUV.stories.tsx | src/stories/polyUV.stories.tsx | import React from 'react';
import { Story, Meta } from '@storybook/react';
import { Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import Lightmap, { LightmapReadOnly } from '../core/Lightmap';
import Spinner from './Spinner';
import { DebugOverla... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/potpack.d.ts | src/stories/potpack.d.ts | declare module 'potpack' {
export interface PotPackItem {
w: number;
h: number;
x: number;
y: number;
}
export interface PotPackResult {
w: number;
h: number;
fill: number;
}
function potpack(boxes: PotPackItem[]): PotPackResult;
export default potpack;
}
| typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/smooth.stories.tsx | src/stories/smooth.stories.tsx | import React from 'react';
import { Story, Meta } from '@storybook/react';
import { useLoader, Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import Lightmap, { LightmapReadOnly }... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/simple.stories.tsx | src/stories/simple.stories.tsx | import React from 'react';
import { Story, Meta } from '@storybook/react';
import { Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import Lightmap from '../core/Lightmap';
import Spinner from './Spinner';
import { DebugOverlayRenderer, DebugOverla... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/delay.stories.tsx | src/stories/delay.stories.tsx | import React from 'react';
import { Story, Meta } from '@storybook/react';
import { Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import Lightmap from '../core/Lightmap';
import Spinner from './Spinner';
import { DebugOverlayRenderer, DebugOverla... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/glb.d.ts | src/stories/glb.d.ts | declare module '*.glb' {
const url: string;
export default url;
}
| typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/gltf.stories.tsx | src/stories/gltf.stories.tsx | import React, { useMemo } from 'react';
import { Story, Meta } from '@storybook/react';
import { useLoader, Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import Lightmap, { Light... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/ao.stories.tsx | src/stories/ao.stories.tsx | import React from 'react';
import { Story, Meta } from '@storybook/react';
import { Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import Lightmap from '../core/Lightmap';
import Spinner from './Spinner';
import { DebugOverlayRenderer, DebugOverla... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/text.stories.tsx | src/stories/text.stories.tsx | import React from 'react';
import { Story, Meta } from '@storybook/react';
import { Canvas, useLoader } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import Lightmap, { LightmapReadOnly } from '../core/Lightmap';
import Spinner from './Spinner';
import { ... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/multiMaterial.stories.tsx | src/stories/multiMaterial.stories.tsx | import React from 'react';
import { Story, Meta } from '@storybook/react';
import { Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import * as THREE from 'three';
import Lightmap from '../core/Lightmap';
import Spinner from './Spinner';
import { DebugOverlayRenderer, DebugOverla... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/stories/DebugOverlayScene.tsx | src/stories/DebugOverlayScene.tsx | import React, { useMemo, useContext, useRef } from 'react';
import { useFrame, useThree, createPortal } from '@react-three/fiber';
import * as THREE from 'three';
import { DebugContext } from '../core/Lightmap';
const DebugOverlayContext = React.createContext<THREE.Scene | null>(null);
// set up a special render loo... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/core/lightScene.ts | src/core/lightScene.ts | import * as THREE from 'three';
import {
Workbench,
traverseSceneItems,
traversalStateIsReadOnly
} from './workbench';
export type SupportedMaterial =
| THREE.MeshLambertMaterial
| THREE.MeshPhongMaterial
| THREE.MeshStandardMaterial
| THREE.MeshPhysicalMaterial;
export function materialIsSupported(
m... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/core/bake.ts | src/core/bake.ts | import * as THREE from 'three';
import { scanAtlasTexels } from './atlas';
import { Workbench } from './workbench';
import { withLightProbe } from './lightProbe';
const MAX_PASSES = 2;
// offsets for 3x3 brush
const offDirX = [1, 1, 0, -1, -1, -1, 0, 1];
const offDirY = [0, 1, 1, 1, 0, -1, -1, -1];
function storeLi... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
pmndrs/react-three-lightmap | https://github.com/pmndrs/react-three-lightmap/blob/49ceb48e68994bad1eaa33f2d2ddf0011ffed878/src/core/WorkManager.tsx | src/core/WorkManager.tsx | const DEFAULT_WORK_PER_FRAME = 2;
export type WorkRequester = () => Promise<THREE.WebGLRenderer>;
interface WorkTask {
resolve: (gl: THREE.WebGLRenderer) => void;
reject: (error: unknown) => void;
promise: Promise<unknown> | null;
}
const DUMMY_RESOLVER = (_gl: THREE.WebGLRenderer) => {};
const DUMMY_REJECTOR ... | typescript | MIT | 49ceb48e68994bad1eaa33f2d2ddf0011ffed878 | 2026-01-05T05:00:43.281026Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.