CineVideoGallery.tsx1 match
9}
1011export default function VideoGallery({ videos, onVideoSelect, isLoading = false }: VideoGalleryProps) {
12if (isLoading) {
13return (
CineContact.tsx1 match
3import type { ContactForm } from "../../shared/types.ts";
45export default function Contact() {
6const [contactForm, setContactForm] = useState<ContactForm>({
7name: '',
CineGetInvolved.tsx1 match
3import type { ClubInterestForm } from "../../shared/types.ts";
45export default function GetInvolved() {
6const [activeForm, setActiveForm] = useState<'club' | 'volunteer' | 'donate' | 'partner'>('club');
7const [clubForm, setClubForm] = useState<ClubInterestForm>({
2import React from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
34export default function Hero() {
5return (
6<div className="relative min-h-screen flex items-center justify-center overflow-hidden">
untitled-2487main.tsx1 match
1export default async function (req: Request): Promise<Response> {
2return Response.json({ ok: true })
3}
10});
1112export default async function server(request: Request): Promise<Response> {
13// Allow all CORS
14if (request.method === "OPTIONS") {
OpenTelemetryCollectortransformExport.ts10 matches
24* By convention, we only use string and number values. Complex values are serialized.
25*/
26export async function transformExport(
27tracesData: IExportTraceServiceRequest,
28): Promise<Array<OtelSpan>> {
107| Record<string, AttributeValuePrimitive>;
108109async function mapAttributeValue(value: IAnyValue): Promise<AttributeValue> {
110if (!value) {
111return null;
137}
138139async function mapAttributes(
140attributes: IKeyValue[],
141): Promise<Record<string, AttributeValue>> {
158}
159160async function mapEvent(event: IEvent) {
161return {
162name: event.name,
166}
167168async function mapLink(link: ILink) {
169return {
170trace_id: stringOrUintToString(link.traceId),
175}
176177function stringOrUintToString(id: string | Uint8Array) {
178return id instanceof Uint8Array
179? Buffer.from(id).toString("hex")
181}
182183function mapStatus(status: IStatus) {
184return {
185code: status.code,
188}
189190function statusCodeToString(statusCode: EStatusCode) {
191switch (statusCode) {
192case 0:
201}
202203// Function to convert ESpanKind to SpanKind
204function convertToSpanKind(spanKind: ESpanKind): string {
205switch (spanKind) {
206case 1:
8* @TODO - Need to implement `end_time` column for this query to work
9*/
10export function findTraces(db: DBType) {
11const REFERENCE QUERY = `
12SELECT trace_id, MAX(end_time) as end_time
3* with a better experience
4*/
5export function getOpenAPISpec() {
6return {
7openapi: "3.0.0",
OpenTelemetryCollectorindex.ts2 matches
4748/**
49* Export a function that wraps the incoming request,
50* then injects the Deno env vars into the Hono app befoe
51* executing the api entrypoint (`app.fetch`)
52*/
53export default async function(req: Request): Promise<Response> {
54const env = Deno.env.toObject();
55// NOTE - Adding the entire env object will also expose the following values to your api handlers: