text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
import { z } from "zod";
const channelsSchema = z.object({
modLog: z.string(),
botLog: z.string(),
analytics: z.string(),
announcements: z.string(),
welcome: z.string(),
roles: z.string(),
});
const rolesSchema = z.object({
admin: z.string(),
moderator: z.string(),
verified: z.string(),
contributo... | cursor-vienna-discord | src/config/app-config.schema.ts | TypeScript | db812563001512ab3380a7cb929866ce222f6991208b9e14835360e6290c7873 | 0 | 316 |
import type { AppConfig } from "./app-config.schema";
export const appConfig: AppConfig = {
discord: {
clientId: "1472572716409426134",
guildId: "1461009109703987343",
channels: {
modLog: "1472573695993057291",
botLog: "1472573771482140734",
analytics: "1472573843964166286",
annou... | cursor-vienna-discord | src/config/app-config.ts | TypeScript | 64051c0bfe414c82af09b0a5e7dfb473c7a9dd027c579d97653d1e7aa44309d5 | 0 | 154 |
import {
ContextMenuCommandBuilder,
ApplicationCommandType,
MessageContextMenuCommandInteraction,
} from "discord.js";
import { handleMarkAsSolutionContextMenu } from "../modules/forums/solved";
export const data = new ContextMenuCommandBuilder()
.setName("Mark as Solution")
.setType(ApplicationCommandType.M... | cursor-vienna-discord | src/context-menus/markAsSolution.ts | TypeScript | a1f7857437d837b05c08a13b7c8e1f3b29c95e3254817c0ac332874ef87ab93e | 0 | 79 |
import {
ContextMenuCommandBuilder,
ApplicationCommandType,
MessageContextMenuCommandInteraction,
TextChannel,
} from "discord.js";
import { createEmbed, createSuccessEmbed, createErrorEmbed, getEmbedFooter } from "../utils/embeds";
import { BRAND } from "../brand";
import { config } from "../config";
export c... | cursor-vienna-discord | src/context-menus/reportMessage.ts | TypeScript | 76961f57a65d345496ae0bd2e21d2cb05c7e9eec70bd68d5953feb8d7704260f | 0 | 444 |
import {
ContextMenuCommandBuilder,
ApplicationCommandType,
UserContextMenuCommandInteraction,
} from "discord.js";
import { db } from "../db/client";
import { members } from "../db/schema";
import { createEmbed, createErrorEmbed } from "../utils/embeds";
import { eq } from "drizzle-orm";
export const data = new... | cursor-vienna-discord | src/context-menus/viewProfile.ts | TypeScript | 7b6c15115d8cedcdc02caa5e5f4d1c3d35556610d12c180bc849d60082cb01a3 | 0 | 363 |
import path from "path";
import { drizzle } from "drizzle-orm/node-postgres";
import { Pool } from "pg";
import * as schema from "./schema";
import dotenv from "dotenv";
const projectRoot = path.resolve(__dirname, "..", "..");
dotenv.config({ path: path.join(projectRoot, ".env.local") });
dotenv.config({ path: path.jo... | cursor-vienna-discord | src/db/client.ts | TypeScript | 09d3d995739fd458bb21a198c038c7a4e7012966f8f878d6f5b8d5f782f65ae6 | 0 | 143 |
import {
pgTable,
text,
integer,
boolean,
timestamp,
pgEnum,
jsonb,
uniqueIndex,
primaryKey,
serial,
varchar,
} from "drizzle-orm/pg-core";
export const eventStatusEnum = pgEnum("event_status", [
"scheduled",
"active",
"completed",
"cancelled",
]);
export const rsvpStatusEnum = pgEnum("r... | cursor-vienna-discord | src/db/schema.ts | TypeScript | 70c60bdcb20558a5fb968f5b96214527708e160e74ce1476b4f181f8f96da567 | 0 | 896 |
$defaultFn(() => crypto.randomUUID()),
hostId: text("host_id").notNull(),
location: text("location").notNull(),
locationUrl: text("location_url"),
date: timestamp("date").notNull(),
startTime: text("start_time").notNull(),
endTime: text("end_time"),
maxSpots: integer("max_spots").default(10).notNull(),
... | cursor-vienna-discord | src/db/schema.ts | TypeScript | 8d1a6e76534901ca4bbfe31c75309e52e366852da67ee3eca1b1cadb48bcc98a | 1 | 872 |
import type { ButtonInteraction, StringSelectMenuInteraction, ChannelSelectMenuInteraction } from "discord.js";
import { handleRsvp } from "../modules/events/rsvp";
import { logger } from "../utils/logger";
export async function handleComponentInteraction(
interaction: ButtonInteraction | StringSelectMenuInteraction... | cursor-vienna-discord | src/handlers/components.ts | TypeScript | a0bb1610f99c373099729fd45bc6fc0303f958b2645372b334d6380b80f075ea | 0 | 896 |
channelId } })
.onConflictDoUpdate({
target: botConfig.key,
set: { value: { v: channelId }, updatedAt: new Date() },
});
await interaction.update({
content: `Set **${purpose.replace("channel_", "").replace(/_/g, " ")}** to <#${channelId}>.`,
components: [],
... | cursor-vienna-discord | src/handlers/components.ts | TypeScript | 4ce765dd22e50a00ce2889027256f5c6f67cf10e28f081cc3d76197f64006c8f | 1 | 117 |
import { Interaction } from "discord.js";
import { commands } from "../commands/_registry";
import { createErrorEmbed } from "../utils/errors";
import { createErrorEmbed as createErrorEmbedWithMessage } from "../utils/embeds";
import { handleComponentInteraction } from "./components";
import { handleModalInteraction } ... | cursor-vienna-discord | src/handlers/interaction.ts | TypeScript | 18dd2ae922d403468441dc4bf6365bac5aa8ff5f8a958f60575db8de066bf4c3 | 0 | 741 |
import { GuildMember } from "discord.js";
import { handleWelcome } from "../modules/onboarding/welcome";
import { analyticsCounters } from "../modules/analytics/counters";
import { checkAntiRaid } from "../modules/moderation/anti-raid";
export const handleGuildMemberAdd = async (member: GuildMember) => {
analyticsCo... | cursor-vienna-discord | src/handlers/member.ts | TypeScript | 8b64711724c14f321b858b38d96942756d95efb0b9b28b07078220b63ed238d2 | 0 | 122 |
import { Message } from "discord.js";
import { handleIntroMessage } from "../modules/onboarding/intro-monitor";
import { analyticsCounters } from "../modules/analytics/counters";
export const handleMessageCreate = async (message: Message) => {
if (message.author.bot) return;
analyticsCounters.messagesTotal += 1;
... | cursor-vienna-discord | src/handlers/message.ts | TypeScript | 8b59713ac9d86a7093386fa19fd059f8c7ab5f2b66f27b2864138d2fe87c79f9 | 0 | 124 |
import type { ModalSubmitInteraction } from "discord.js";
import { createEmbed } from "../utils/embeds";
import { createErrorEmbed } from "../utils/errors";
import { BRAND } from "../brand";
import { logger } from "../utils/logger";
export async function handleModalInteraction(
interaction: ModalSubmitInteraction,
)... | cursor-vienna-discord | src/handlers/modals.ts | TypeScript | 205b12302bd63061e26c81978a80a1cb2f2655bad8265576499ccc55b8269c91 | 0 | 694 |
import { ThreadChannel, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js";
import { handleForumThreadCreate } from "../modules/forums/auto-tag";
import { buildMarkAsSolvedButton } from "../modules/forums/solved";
import { db } from "../db/client";
import { botConfig } from "../db/schema";
import { eq } f... | cursor-vienna-discord | src/handlers/thread.ts | TypeScript | 56dcc939510e1a76e41e6fa0c751496d362c33fc01dc746525dfb360ae821c3c | 0 | 277 |
import { config } from "../../config";
import {
LumaEvent,
LumaEventListResponse,
LumaGuestListResponse,
} from "./types";
const BASE_URL = "https://api.lu.ma/public/v1";
export function isLumaConfigured(): boolean {
return Boolean(
config.LUMA_API_KEY?.trim() && config.LUMA_CALENDAR_ID?.trim(),
);
}
l... | cursor-vienna-discord | src/integrations/luma/client.ts | TypeScript | 4d9acc9017db0d41af07f0a480b1ea1781f4a26e93cf38a937d2e3d2260baba7 | 0 | 514 |
export interface LumaEvent {
api_id: string;
name: string;
description: string;
start_at: string;
end_at: string;
geo_address_info?: {
full_address: string;
city: string;
};
cover_url?: string;
url: string;
event_type: string;
visibility: string;
}
export interface LumaGuest {
api_id: s... | cursor-vienna-discord | src/integrations/luma/types.ts | TypeScript | 8baf24e13d3e1bf5a109f1ba38d840413f261f7875d99f05a6bb10a7f9d1fc93 | 0 | 131 |
import { TextChannel, Client, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js";
import { db } from "../../db/client";
import { dailyStats } from "../../db/schema";
import { createHeroEmbed, getEmbedFooter } from "../../utils/embeds";
import { config } from "../../config";
import { analyticsCounters, res... | cursor-vienna-discord | src/modules/analytics/collector.ts | TypeScript | 2e6d2e8fe8828319a57b4d2a657c45f4aa16bafc8307dd05739cbd0cf70fe3ea | 0 | 896 |
guild.channels.cache.get(id);
const name = ch && "name" in ch ? (ch as { name: string }).name : id;
return `${name}: ${n}`;
});
const embed = createHeroEmbed()
.setTitle("Weekly Analytics Digest")
.setDescription("Server activity for the past week.\n\n")
.addFields(
{
name: ... | cursor-vienna-discord | src/modules/analytics/collector.ts | TypeScript | ecd8256f26ebec407ea5b53eaf3d8327cf98c6a9cdb3f699e83e97adf73b5d6e | 1 | 301 |
export const analyticsCounters = {
newJoins: 0,
leaves: 0,
messagesTotal: 0,
activeMemberIds: new Set<string>(),
commandsUsed: 0,
channelMessages: {} as Record<string, number>,
};
export function resetDailyCounters(): void {
analyticsCounters.newJoins = 0;
analyticsCounters.leaves = 0;
analyticsCount... | cursor-vienna-discord | src/modules/analytics/counters.ts | TypeScript | 091aba410165719137d3378aa5024ebf826d065bbabc360bd9c517f3db9b65e4 | 0 | 93 |
import {
ModalSubmitInteraction,
ButtonInteraction,
TextChannel,
EmbedBuilder,
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
ThreadAutoArchiveDuration,
ChannelType,
} from "discord.js";
import { db } from "../../db/client";
import { showcases, members } from "../../db/schema";
import {
createEmbed,
... | cursor-vienna-discord | src/modules/engagement/showcase.ts | TypeScript | b9a494e6cb2f804f85c1e7ba6ade84d960e4f53f8d817e752e83a3f66cfa8df6 | 0 | 887 |
import {
ModalSubmitInteraction,
ButtonInteraction,
EmbedBuilder,
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
TextChannel,
GuildMember,
} from "discord.js";
import { db } from "../../db/client";
import { coworkSessions, coworkParticipants } from "../../db/schema";
import {
createHeroEmbed,
createS... | cursor-vienna-discord | src/modules/events/cowork.ts | TypeScript | 0a72081bc2ed7b1cc3ace7617c0a407fd0da6d40cbadaffbf198b545df92c897 | 0 | 848 |
import {
Client,
TextChannel,
EmbedBuilder,
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
GuildScheduledEventEntityType,
GuildScheduledEventPrivacyLevel,
} from "discord.js";
import { db } from "../../db/client";
import { events, eventRsvps } from "../../db/schema";
import { getLumaClient, isLumaConfigu... | cursor-vienna-discord | src/modules/events/luma.ts | TypeScript | 67eabbe8bc4ed33ee3403a28f72dd7a1c013350b1f40b695f4c7729832b2cb59 | 0 | 896 |
(ButtonStyle.Success),
new ButtonBuilder()
.setCustomId(`event:rsvp:${lumaEvent.api_id}:maybe`)
.setLabel("Maybe")
.setStyle(ButtonStyle.Secondary),
new ButtonBuilder()
.setCustomId(`event:rsvp:${lumaEvent.api_id}:not_going`)
.setLabel("Can... | cursor-vienna-discord | src/modules/events/luma.ts | TypeScript | 180ef0eadfd6ebda58e2a78efc95d4b0384ecd1eb47006463cf039fa04429025 | 1 | 896 |
and(eq(eventRsvps.eventId, eventId), eq(eventRsvps.status, "going")),
);
return Number(r[0]?.count ?? 0);
}
export async function syncLumaGuestsForEvent(lumaEventId: string): Promise<void> {
const client = getLumaClient();
if (!client) return;
const ev = await db.query.events.findFirst({
where: eq(even... | cursor-vienna-discord | src/modules/events/luma.ts | TypeScript | 3be7d8027c6b375efe219fdff0a6e59b4e7ae9ba93f31218a7ab9ff9a78e78c9 | 2 | 896 |
= data.maxAttendees
? parseInt(data.maxAttendees, 10)
: null;
const scheduledEvent = await guild.scheduledEvents.create({
name: data.title,
scheduledStartTime: startTime,
scheduledEndTime: endTime,
privacyLevel: GuildScheduledEventPrivacyLevel.GuildOnly,
entityType: GuildScheduledEventEnt... | cursor-vienna-discord | src/modules/events/luma.ts | TypeScript | 2e3d2ede177202c9bc5c0de0c5e0f427af831e9251f9eaf69061bf65dd957342 | 3 | 539 |
import { Client, TextChannel, ThreadChannel } from "discord.js";
import { db } from "../../db/client";
import { events } from "../../db/schema";
import { createEmbed } from "../../utils/embeds";
import { BRAND } from "../../brand";
import { config } from "../../config";
import { eq } from "drizzle-orm";
type EventRow ... | cursor-vienna-discord | src/modules/events/recap.ts | TypeScript | 23390acc56db6afd923d8e51d12d0be8ab222006fbcfcaf0b054afe7e04c96c9 | 0 | 397 |
import {
Client,
TextChannel,
GuildScheduledEventStatus,
} from "discord.js";
import { db } from "../../db/client";
import { events, eventRsvps } from "../../db/schema";
import { createEmbed } from "../../utils/embeds";
import { config } from "../../config";
import { and, eq, gt, lt } from "drizzle-orm";
import {... | cursor-vienna-discord | src/modules/events/reminders.ts | TypeScript | 855008142481a6404e3de7127a2a01ddcfa0f208da397c3bedc2b6fcb865e485 | 0 | 896 |
, ev.id));
}
const allActive = await db.query.events.findMany({
where: eq(events.status, "active"),
});
for (const ev of allActive) {
const endTime = ev.endTime ?? new Date(ev.startTime.getTime() + 2 * 60 * 60 * 1000);
if (endTime <= now && !ev.recapThreadId) {
await createRecapThread(client,... | cursor-vienna-discord | src/modules/events/reminders.ts | TypeScript | d56143037ba733ff6f22a91e7a136819a1715549b0d1ab1d3166e9f975fd4764 | 1 | 297 |
import { ButtonInteraction, EmbedBuilder, GuildMember } from "discord.js";
import { db } from "../../db/client";
import { eventRsvps, events, members, rsvpStatusEnum } from "../../db/schema";
import { eq, and, sql, or } from "drizzle-orm";
import { createSuccessEmbed, createErrorEmbed } from "../../utils/embeds";
expo... | cursor-vienna-discord | src/modules/events/rsvp.ts | TypeScript | 2342d971f9e4a17610ca0f46e82c995bb86b64dbb539d418bb4f5612d93a5794 | 0 | 706 |
import { Client } from "discord.js";
import { db } from "../../db/client";
import { botConfig } from "../../db/schema";
import { eq } from "drizzle-orm";
const JOBS_CHANNEL_KEY = "channel_jobs_forum";
const ARCHIVE_DAYS = 30;
export async function runForumArchiver(client: Client): Promise<void> {
const row = await ... | cursor-vienna-discord | src/modules/forums/archiver.ts | TypeScript | a11b320dc161abe092696ba8ec4b6fe8141416ec9f280e0bea25cecb170b9f9b | 0 | 359 |
import { ThreadChannel, ChannelType } from "discord.js";
import { db } from "../../db/client";
import { botConfig } from "../../db/schema";
import { eq } from "drizzle-orm";
const AUTO_TAG_CHANNELS_KEY = "forum_auto_tag_channel_ids";
export async function handleForumThreadCreate(
thread: ThreadChannel,
): Promise<v... | cursor-vienna-discord | src/modules/forums/auto-tag.ts | TypeScript | 59c2402a261f0afd98dc4788fa494924045cf0004d173fb1bd2ef83e0d9d75e4 | 0 | 353 |
import { Client, TextChannel, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js";
import { db } from "../../db/client";
import { botConfig } from "../../db/schema";
import { createHeroEmbed, getEmbedFooter } from "../../utils/embeds";
import { config } from "../../config";
import { eq } from "drizzle-orm"... | cursor-vienna-discord | src/modules/forums/digest.ts | TypeScript | af9b47c918cc011dfe2c86e0d96f001a7368eaaafee834dbec3567f6683d0971 | 0 | 709 |
import {
ButtonInteraction,
ThreadChannel,
MessageContextMenuCommandInteraction,
TextChannel,
} from "discord.js";
import { createEmbed, createErrorEmbed } from "../../utils/embeds";
import { BRAND } from "../../brand";
const SOLVED_TAG_NAME = "Solved";
const SOLVED_PREFIX = "[SOLVED] ";
export async function... | cursor-vienna-discord | src/modules/forums/solved.ts | TypeScript | 6ade07c1ec3736086c788c12a19b9a4a4c2dea4d879b35759cf984a26150cae7 | 0 | 896 |
..",
appliedTags: newTags,
archived: true,
});
}
await interaction.editReply({
embeds: [
createEmbed(BRAND.SUCCESS)
.setTitle("Solution Marked")
.setDescription("The message has been marked as the solution."),
],
});
}
export function buildMarkAsSolvedButton(threadId... | cursor-vienna-discord | src/modules/forums/solved.ts | TypeScript | db3b2a9e0bc0290b4c418a2889c779830a047467b6d4a8686522dd152b34a00b | 1 | 107 |
import { GuildMember, TextChannel, ButtonInteraction } from "discord.js";
import { db } from "../../db/client";
import { modActions, members } from "../../db/schema";
import { createEmbed, createErrorEmbed } from "../../utils/embeds";
import { BRAND } from "../../brand";
import { config } from "../../config";
import { ... | cursor-vienna-discord | src/modules/moderation/actions.ts | TypeScript | 7127846468f787e25b8b7114f97c1326c9263d73b453e6cf57b9900512a54d5a | 0 | 896 |
== "warn") {
const current = await db.query.members.findFirst({
where: eq(members.id, target.id),
columns: { warningCount: true },
});
const wc = current?.warningCount ?? 0;
if (wc >= 7) {
await logChannel.send({
embeds: [
createEmb... | cursor-vienna-discord | src/modules/moderation/actions.ts | TypeScript | b70094e291c56827e4ede40a92948df97c301193d19790eec8eca2397c7c2e80 | 1 | 896 |
Cancelled")
.setDescription("The ban was not executed."),
],
components: [],
});
};
export const getModHistory = async (targetId: string, limit: number) => {
return db.query.modActions.findMany({
where: eq(modActions.targetId, targetId),
orderBy: [desc(modActions.createdAt)],
limit,
}... | cursor-vienna-discord | src/modules/moderation/actions.ts | TypeScript | aec1d64e2385ddce80f0a79eff5a05c1b85562cec22c1d1af977cb858892130e | 2 | 84 |
import { Guild, TextChannel } from "discord.js";
import { createEmbed } from "../../utils/embeds";
import { BRAND } from "../../brand";
import { config } from "../../config";
const VERIFICATION_LEVEL_HIGHEST = 4;
const JOIN_WINDOW_MS = 60 * 1000;
const JOIN_THRESHOLD = 10;
const LOCKDOWN_REVERT_MS = 10 * 60 * 1000;
... | cursor-vienna-discord | src/modules/moderation/anti-raid.ts | TypeScript | ded5c08147413bff8c927b79d950ff669cba78ff51c21be2dc6c6e7a30ec06e2 | 0 | 450 |
import {
Client,
AutoModerationRuleEventType,
AutoModerationRuleTriggerType,
AutoModerationActionType,
AutoModerationRuleKeywordPresetType,
EmbedBuilder,
TextChannel,
} from "discord.js";
import { config } from "../../config";
import { BRAND } from "../../brand";
import { createEmbed } from "../../utils/e... | cursor-vienna-discord | src/modules/moderation/automod.ts | TypeScript | 8aef056b9ce6b991ad1911a09c6009a4732e73523d43319ba860bb34169a192d | 0 | 538 |
import { Client, EmbedBuilder, GuildMember } from "discord.js";
import { db } from "../../db/client";
import { members } from "../../db/schema";
import { config } from "../../config";
import { createEmbed } from "../../utils/embeds";
import { logger } from "../../utils/logger";
import { and, eq, isNull, lt } from "driz... | cursor-vienna-discord | src/modules/onboarding/followup.ts | TypeScript | 70e5a587328733ac503459c16afe0afa15217d612e650cb70548406c35238190 | 0 | 514 |
import { Message, MessageReaction, EmbedBuilder } from "discord.js";
import { db } from "../../db/client";
import { members } from "../../db/schema";
import { config } from "../../config";
import { createEmbed } from "../../utils/embeds";
import { BRAND } from "../../brand";
import { eq, count } from "drizzle-orm";
ex... | cursor-vienna-discord | src/modules/onboarding/intro-monitor.ts | TypeScript | 34695f051ded80b08e4434d9daaf50f6080b73d8eb0c9859a174e9946d3e0236 | 0 | 299 |
import { GuildMember, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js";
import { db } from "../../db/client";
import { members } from "../../db/schema";
import { createHeroEmbed } from "../../utils/embeds";
import { config } from "../../config";
const LUMA_CALENDAR_URL = "https://luma.com/cursorcommuni... | cursor-vienna-discord | src/modules/onboarding/welcome.ts | TypeScript | 48eec2bc38d93f704535be7d80431b38751717e547420ed9f127e9d9940724dc | 0 | 531 |
export const ROLE_GROUPS = {
STACK: {
id: "stack",
label: "What's your tech stack?",
options: [
{ label: "Frontend", value: "Frontend", emoji: "🎨" },
{ label: "Backend", value: "Backend", emoji: "⚙️" },
{ label: "Full Stack", value: "Full Stack", emoji: "🥞" },
{ label: "Mobile", ... | cursor-vienna-discord | src/modules/roles/constants.ts | TypeScript | ee99c35fbe2f70dd8e2e8536ab1396ab466e69eb2e1d99405a9648fcdda0a312 | 0 | 536 |
import {
TextChannel,
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
ModalBuilder,
TextInputBuilder,
TextInputStyle,
GuildMember,
ModalSubmitInteraction,
} from "discord.js";
import { ROLE_GROUPS } from "./constants";
import {
createEmbed,
createSuccessEmbed,
createErrorEmbed,
} from "../../utils... | cursor-vienna-discord | src/modules/roles/menus.ts | TypeScript | 4f208699eee36f74652a102e51063482cca9ebd8ccf7491ca3784135f6f09091 | 0 | 896 |
guild) return;
const member = interaction.member as GuildMember;
const stackRaw = interaction.fields.getTextInputValue("stack") || "";
const statusRaw = interaction.fields.getTextInputValue("status") || "";
const locationRaw = interaction.fields.getTextInputValue("location") || "";
const pingsRaw = interacti... | cursor-vienna-discord | src/modules/roles/menus.ts | TypeScript | 57191841f9981baa3803a3edbfd8f3a81c9d0b1bdef9e066349cbfd38c89f4ef | 1 | 586 |
import path from "path";
import { readFileSync, writeFileSync } from "fs";
import dotenv from "dotenv";
const projectRoot = path.resolve(__dirname, "../..");
dotenv.config({ path: path.join(projectRoot, ".env.local") });
dotenv.config({ path: path.join(projectRoot, ".env") });
import { z } from "zod";
import {
Clie... | cursor-vienna-discord | src/scripts/populate-server.ts | TypeScript | d1cd96e0b0b0c3f3ce20a0e68fddf61e8b859520ebece09d23ff852c0d0acaef | 0 | 896 |
;
} {
const args = process.argv.slice(2);
let configPath = path.join(projectRoot, "server-template.json");
let dryRun = false;
let skipExisting = false;
let writeConfig = false;
let interCreateDelayMs = Number(process.env.POPULATE_DELAY_MS) || 1_000;
for (const a of args) {
if (a === "--dry-run") dry... | cursor-vienna-discord | src/scripts/populate-server.ts | TypeScript | e6c4e2f1d424092511be13f92223c88b7c007130da9cdafe9ab6aa24f314201f | 1 | 896 |
exit(1);
}
const roleNameToId = new Map<string, string>();
await guild.roles.fetch();
guild.roles.cache.forEach((r) => roleNameToId.set(r.name, r.id));
const categoryNameToId = new Map<string, string>();
const channelNameToId = new Map<string, string>();
let channelCreateTimestamps: number[] = [];
fo... | cursor-vienna-discord | src/scripts/populate-server.ts | TypeScript | 578253e8ed524b849b84e355713e07a0297640b08069e0795e806459130b7d58 | 2 | 896 |
: ch.default_reaction_emoji.emoji_id ?? null,
name: ch.default_reaction_emoji.emoji_name ?? null,
}
: undefined;
let channelType = CHANNEL_TYPE_MAP[ch.type] as GuildChannelCreateOptions["type"];
if (
channelType === ChannelType.GuildAnnouncement &&
!guild.features.incl... | cursor-vienna-discord | src/scripts/populate-server.ts | TypeScript | e36c7e64fbc0d2b97e29f5c1028bf889952e4afe16dfc5dda272c9ea1afe3268 | 3 | 896 |
(editOptions).length > 0) {
try {
await guild.edit(editOptions);
console.log("Updated guild settings.");
} catch (e) {
console.error("Failed to update guild:", e);
}
}
if (guildSpec.welcome_screen && (guildSpec.welcome_screen.welcome_channels?.length ?? 0) > 0) {
... | cursor-vienna-discord | src/scripts/populate-server.ts | TypeScript | e36db628d2e784d88ec32f7fb530c82733d223827e121f231c1f3450f9907ee2 | 4 | 547 |
import { z } from "zod";
const CHANNEL_TYPES = [
"GUILD_TEXT",
"GUILD_VOICE",
"GUILD_CATEGORY",
"GUILD_ANNOUNCEMENT",
"GUILD_STAGE_VOICE",
"GUILD_FORUM",
"GUILD_MEDIA",
] as const;
const permissionOverwriteSchema = z.object({
id: z.string(),
type: z.union([z.literal(0), z.literal(1), z.literal("role... | cursor-vienna-discord | src/scripts/server-schema.ts | TypeScript | c512e0be97481c63d34d50792aeecede02fa832a204f79bcb182cd6ec28f1c14 | 0 | 896 |
: z.number().int().optional(),
});
const roleSchema = z.object({
name: z.string().min(1).max(100),
permissions: z.string().optional(),
color: z.number().int().min(0).max(0xffffff).optional(),
hoist: z.boolean().optional().default(false),
mentionable: z.boolean().optional().default(false),
icon: z.string().... | cursor-vienna-discord | src/scripts/server-schema.ts | TypeScript | bf07c5f6fa6673c42c6e8412fc924d45fb46d771753dfbf43339a5ce76cf7eed | 1 | 645 |
import Redis from "ioredis";
import { config } from "../config";
let redis: Redis | null = null;
function getRedis(): Redis | null {
if (redis) return redis;
try {
redis = new Redis(config.REDIS_URL, { maxRetriesPerRequest: 1 });
return redis;
} catch {
return null;
}
}
export async function chec... | cursor-vienna-discord | src/utils/cooldown.ts | TypeScript | 53d6949fdabc6faae29ecd6b3d0815b888341084b22ed6a759df3beffd780bd3 | 0 | 230 |
import { Client, EmbedBuilder } from "discord.js";
import { BRAND } from "../brand";
import { config } from "../config";
const EMBED_FOOTER_TEXT = "Cursor Community Vienna";
export type QuickLinkItem = { label: string; url?: string; emoji?: string };
export function formatQuickLinks(items: QuickLinkItem[]): string {... | cursor-vienna-discord | src/utils/embeds.ts | TypeScript | a67486bc255cf884713cbcaaa32a6538dffc738b64c6ef1d52d042f1548a26ee | 0 | 679 |
import { EmbedBuilder } from "discord.js";
import { BRAND } from "../brand";
import { applyEmbedBranding, getEmbedFooter } from "./embeds";
export class BotError extends Error {
public readonly userMessage: string;
public readonly code: string;
constructor(
message: string,
userMessage: string = "Someth... | cursor-vienna-discord | src/utils/errors.ts | TypeScript | c94662ca6a94d77022267c3eb4029f23dd07df1401355b5c8bd8f0161b78d7a3 | 0 | 358 |
import pino from "pino";
import { Client, TextChannel } from "discord.js";
import { config } from "../config";
const pinoLogger = pino({
level: process.env.LOG_LEVEL ?? "info",
});
let discordClient: Client | null = null;
export function setLoggerClient(client: Client): void {
discordClient = client;
}
export c... | cursor-vienna-discord | src/utils/logger.ts | TypeScript | 70ffc093eac7b111d3dac2ec18e0d654c53f94215676613bc67876b0fa1a26c7 | 0 | 337 |
import {
EmbedBuilder,
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
ButtonInteraction,
Message,
} from "discord.js";
export interface PaginationOptions<T> {
items: T[];
pageSize: number;
renderPage: (page: T[], pageIndex: number, totalPages: number) => EmbedBuilder;
customIdPrefix: string;
timeo... | cursor-vienna-discord | src/utils/pagination.ts | TypeScript | bc4b0274ece9dff60a62709b4112256448e9b89094503f48f249e0b7fe46fa5a | 0 | 545 |
import cron from "node-cron";
import { Client } from "discord.js";
import { runFollowUp } from "../modules/onboarding/followup";
import { syncEvents } from "../modules/events/luma";
import { startAnalytics } from "../modules/analytics/collector";
import { runEventReminders } from "../modules/events/reminders";
import {... | cursor-vienna-discord | src/utils/scheduler.ts | TypeScript | 78661324721c736c059aadce739c4f60aa39b4aa2b4f160ee0803134775cd63e | 0 | 376 |
import { describe, it, expect, vi } from "vitest";
import { execute, data } from "../../src/commands/help";
describe("help command", () => {
it("has correct command data", () => {
expect(data.name).toBe("help");
expect(data.description).toBe("List available commands");
});
it("replies with embed contain... | cursor-vienna-discord | tests/commands/help.test.ts | TypeScript | ca5f8fbc45760248731f216a9ca034d609603410a29acbbe86dee9e75ae7561d | 0 | 306 |
import { describe, it, expect, vi, beforeEach } from "vitest";
import { commands } from "../../src/commands/_registry";
import { handleInteraction } from "../../src/handlers/interaction";
import * as helpCommand from "../../src/commands/help";
vi.mock("../../src/modules/analytics/counters", () => ({
analyticsCounter... | cursor-vienna-discord | tests/handlers/interaction.test.ts | TypeScript | 57d7c45f85e9b0ce840aa5eaa01369c7378ec8356b43cb4081e565c73c1a5a4a | 0 | 502 |
import type {
CommandInteraction,
ChatInputCommandInteraction,
UserContextMenuCommandInteraction,
MessageContextMenuCommandInteraction,
ButtonInteraction,
AutocompleteInteraction,
ModalSubmitInteraction,
Guild,
GuildMember,
TextChannel,
Message,
User,
InteractionReplyOptions,
MessagePayload,... | cursor-vienna-discord | tests/mocks/discord.ts | TypeScript | bd9ea6d3cab51c2d36cda9a94b1c92dd422b94052b3bb738edc13ac16a02c82b | 0 | 896 |
{} as User),
guild: overrides.guild ?? null,
deferReply: overrides.deferReply ?? (async () => {}),
editReply: overrides.editReply ?? (async (p) => {
replies.push(p);
return null;
}),
reply: (p: ReplyPayload) => {
replies.push(p);
return Promise.resolve(undefined as any);
... | cursor-vienna-discord | tests/mocks/discord.ts | TypeScript | c71e8365a28e9e3e846ceb3f8ff2c664d46ea47ecc13a9a4c73d6e8d0a82e6bc | 1 | 410 |
import { describe, it, expect, vi, beforeEach } from "vitest";
const sendMock = vi.fn().mockResolvedValue(undefined);
const mockLogChannel = {
send: sendMock,
isTextBased: () => true,
};
vi.mock("../../../src/db/client", () => ({
db: {
insert: () => ({
values: () => ({
onConflictDoNothing: () ... | cursor-vienna-discord | tests/modules/moderation/actions.test.ts | TypeScript | 4d1e9e180ea78cbeb4293cf218b790f1490f82b3268a3d0758e2d0d94cd1277f | 0 | 801 |
import { describe, it, expect } from "vitest";
import {
createEmbed,
createSuccessEmbed,
createErrorEmbed,
createInfoEmbed,
createHeroEmbed,
getDefaultBannerUrl,
} from "../../src/utils/embeds";
import { BRAND } from "../../src/brand";
describe("embeds", () => {
describe("createEmbed", () => {
it("re... | cursor-vienna-discord | tests/utils/embeds.test.ts | TypeScript | 9f1fd2de979fa731d84088b20f786028ecc4200ddb741dc827446f93a22ae6d8 | 0 | 691 |
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { BotError, createErrorEmbed } from "../../src/utils/errors";
describe("errors", () => {
const origEnv = process.env.NODE_ENV;
afterEach(() => {
process.env.NODE_ENV = origEnv;
});
describe("BotError", () => {
it("sets n... | cursor-vienna-discord | tests/utils/errors.test.ts | TypeScript | fc52ae1b7b320df10c388f1e6ecce2afe311247e7e8262b4cae2b102476e058b | 0 | 845 |
import { describe, it, expect, vi } from "vitest";
import { createPagination } from "../../src/utils/pagination";
import { EmbedBuilder } from "discord.js";
describe("pagination", () => {
it("sends initial embed and row with correct page content", async () => {
const sent: { embeds?: unknown[]; components?: unkn... | cursor-vienna-discord | tests/utils/pagination.test.ts | TypeScript | a321fa7e5e7b1bdf16b961fd390b36cd88816bfe38bb6a79da68f7477e1ad813 | 0 | 712 |
# Daytona Web UI
WIP | daytona-generative-ui | README.md | Markdown | 467641918ed6eed60d4e8f3c2712546cf844ccb70e7745f476910b9e578c5605 | 0 | 5 |
name: Lint
on:
push:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.12.3
- name: Use Node.js ${{ matrix.node-version }}
uses: ... | daytona-generative-ui | .github/workflows/lint.yml | YAML | 9e99427e95628e0c8fe1841ecc34b61b9429b1775b23493369d50bb84addc306 | 0 | 125 |
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
BLOB_READ_WRITE_TOKEN: ${{ secrets.B... | daytona-generative-ui | .github/workflows/playwright.yml | YAML | 958158abc059a3c2b7a81c84e512e162d3fb520a8b963393ee532e123832a526 | 0 | 434 |
{
"recommendations": ["biomejs.biome"]
}
| daytona-generative-ui | .vscode/extensions.json | JSON | 3fe4a3de8d4a6b17f29da24e9b6014cf285ed2fd0d6b9c40b6a1a7b59f42a370 | 0 | 13 |
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"typescript.tsdk": "... | daytona-generative-ui | .vscode/settings.json | JSON | 1721d84555e0b3b19ccc36c25a8da5dd04fc2f639f7ddbe8f6f700c6a01a0f80 | 0 | 123 |
FROM node:24-alpine AS base
RUN npm install -g pnpm
WORKDIR /app
RUN pnpm dlx create-next-app@latest synthui-container --use-pnpm --yes
WORKDIR /app/synthui-container
RUN pnpm install --frozen-lockfile
RUN pnpm dlx shadcn@latest init --force --silent --yes --base-color neutral
RUN pnpm dlx shadcn@latest add --all... | daytona-generative-ui | daytona/container/nextjs_shadcn/Dockerfile | Dockerfile | 517467b6544525769ef7ceec835d05a8435f2dd528dd1ebaa3351cc32578fabd | 0 | 176 |
import { ThemeProvider } from "@/components/theme-provider"
import type { Metadata } from "next"
import "./globals.css"
import * as React from "react"
import { headers } from 'next/headers'
async function getHeaderData(): Promise<{ ogImageUrl: string, ogTitle: string }> {
const headersList = await headers();
con... | daytona-generative-ui | daytona/container/nextjs_shadcn/app_files/app/layout.tsx | TypeScript | a4413603d8239290b1ad41ed027906c918104904f68dfad92a7721b65d90282d | 0 | 374 |
import Image from "next/image";
export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans) bg-[#fcfcfc] dark:bg-[#1a1a1a]">
<main className="flex flex-col gap-[32px... | daytona-generative-ui | daytona/container/nextjs_shadcn/app_files/app/page.tsx | TypeScript | 42b3906348f59364c14f25dd569abc7259127e20910cca39cbcf8388d5613a17 | 0 | 623 |
"use client"
import * as React from "react"
import { Moon, Sun } from "lucide-react"
import { useTheme } from "next-themes"
import { Button } from "@/components/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
export function... | daytona-generative-ui | daytona/container/nextjs_shadcn/app_files/components/mode-toggle.tsx | TypeScript | 80a49b5c3bbd6e10fc29571b4b5c780f7178e0be1d65c483ffbea2f9dd7954a8 | 0 | 295 |
"use client"
import * as React from "react"
import { ThemeProvider as NextThemesProvider } from "next-themes"
export function ThemeProvider({
children,
...props
}: React.ComponentProps<typeof NextThemesProvider>) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>
} | daytona-generative-ui | daytona/container/nextjs_shadcn/app_files/components/theme-provider.tsx | TypeScript | 302cf7875c4d1f9bbe61d937a88b3a6f6358776615854ae5c0df384735cf8381 | 0 | 64 |
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
node_modules
.pnp
.pnp.js
# testing
coverage
# next.js
.next/
out/
build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env.local
.env.development... | daytona-generative-ui | www/.gitignore | Git Ignore | d872ce441d80c8a8a46aa83eae3f4f65562217001134982e743e3341957fff2a | 0 | 140 |
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["ultracite"],
"files": {
"includes": [
"**/*",
"!components/ui",
"!lib/utils.ts",
"!hooks/use-mobile.ts"
]
},
"linter": {
"rules": {
"suspicious": {
/* Needs more work to fix *... | daytona-generative-ui | www/biome.jsonc | JSON | 7f52a447ff10be54816fd01922c5746efc2f8233367acb351204f3cf88e608ec | 0 | 296 |
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "",
"css": "app/globals.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
... | daytona-generative-ui | www/components.json | JSON | afc9f5db7fcfd9a87b3acde02c50018e9b99933078593c17e3b2066cc40d9e1e | 0 | 212 |
export const siteConfig = {
name: "Sundust - Create anything you can imagine",
description: "Discover a world of boundless creativity and endless possibilities",
url: "https://sundust.julianschmidt.cv/",
ogImage: "https://sundust.julianschmidt.cv/og.png",
creator: "Julian S.",
twitterHandle: "@j... | daytona-generative-ui | www/config.ts | TypeScript | a0ebc959e17b928d86a106ebce2847baf0714c3ec5db8dc2bed02de88b3c0f6b | 0 | 83 |
import { config } from "dotenv";
import { defineConfig } from "drizzle-kit";
config({
path: ".env.local",
});
export default defineConfig({
schema: "./lib/db/schema.ts",
out: "./lib/db/migrations",
dialect: "postgresql",
dbCredentials: {
// biome-ignore lint: Forbidden non-null assertion.
url: proce... | daytona-generative-ui | www/drizzle.config.ts | TypeScript | f2abcd5d9ef41f60838c3f0699b0c9560f81870b8c99ebc30bb4c91e517dd433 | 0 | 102 |
import { registerOTel } from "@vercel/otel";
export function register() {
registerOTel({ serviceName: "ai-chatbot" });
}
| daytona-generative-ui | www/instrumentation.ts | TypeScript | 66641a29ed9499993e36009ec51de231678f15bee263697446b39feab427df4d | 0 | 32 |
import { type NextRequest, NextResponse } from "next/server";
import { getToken } from "next-auth/jwt";
import { guestRegex, isDevelopmentEnvironment } from "./lib/constants";
export async function middleware(request: NextRequest) {
const { pathname } = request.nextUrl;
/*
* Playwright starts the dev server an... | daytona-generative-ui | www/middleware.ts | TypeScript | 5424ddf6f8ce4d2d48ccce83bb6c3a7398cf86e7dfe8bfebaf8ef6a7723a476c | 0 | 427 |
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
| daytona-generative-ui | www/next-env.d.ts | TypeScript | f2b3bca04d1bfe583daae1e1f798c92ec24bb6693bd88d0a09ba6802dee362a8 | 0 | 66 |
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
experimental: {
ppr: true,
},
images: {
remotePatterns: [
{
hostname: "avatar.vercel.sh",
},
],
},
};
export default nextConfig;
| daytona-generative-ui | www/next.config.ts | TypeScript | 7fed43453a8e238fc2de1b41958f5d0f1fb3144af8c017aa1facefa212f8d95c | 0 | 54 |
{
"name": "ai-chatbot",
"version": "3.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbo",
"build": "tsx lib/db/migrate && next build",
"start": "next start",
"lint": "npx ultracite@latest check",
"format": "npx ultracite@latest fix",
"db:generate": "drizzle-kit generate",
... | daytona-generative-ui | www/package.json | JSON | c84a7ae75434f3a218cbe94f961bcd1700a422a7b6797d139a89c9e5042ed673 | 0 | 896 |
,
"fast-deep-equal": "^3.1.3",
"framer-motion": "^11.3.19",
"geist": "^1.3.1",
"hugeicons-react": "^0.3.0",
"jszip": "^3.10.1",
"lucide-react": "^0.446.0",
"motion": "^12.23.22",
"nanoid": "^5.0.8",
"next": "15.3.0-canary.31",
"next-auth": "5.0.0-beta.25",
"next-themes": "^0.... | daytona-generative-ui | www/package.json | JSON | 60efbf24e943177ea472e43320858475286ef42ffa81e698ad2111ed05e9456f | 1 | 809 |
import { defineConfig, devices } from "@playwright/test";
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
import { config } from "dotenv";
config({
path: ".env.local",
});
/* Use process.env.PORT by default and fallback to port 3000 */
const PORT = process.env.PORT || 3000;
... | daytona-generative-ui | www/playwright.config.ts | TypeScript | d0cc205dce8fdbd2bc8f68f972876c47e5ef4de865010ad75dad0f5915279b3b | 0 | 771 |
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
"@tailwindcss/postcss": {},
},
};
export default config;
| daytona-generative-ui | www/postcss.config.mjs | JavaScript | ab4805b77935e8d8a2036e5de3d3a15d6e21229e8e3a1a4aea10b09327709460 | 0 | 46 |
## WIP | daytona-generative-ui | www/README.md | Markdown | 6318723be8986ebb13246fb36bb9fddd7cf853573b3a0355bd26239fcbc640f2 | 0 | 3 |
{
"compilerOptions": {
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModule... | daytona-generative-ui | www/tsconfig.json | JSON | 96c2de2758950c00a9f7fb6a15e62498eec2ac5684ae591143d1acf43855ca1e | 0 | 215 |
{
"products": [
{
"type": "integration",
"protocol": "storage",
"productSlug": "neon",
"integrationSlug": "neon"
},
{
"type": "integration",
"protocol": "storage",
"productSlug": "upstash-kv",
"integrationSlug": "upstash"
},
{
"type": "blob"
... | daytona-generative-ui | www/vercel-template.json | JSON | 546ef6f48ca1076cd5930bfd7a3daff69e6dea37f1e7b4ab3e6d2c88e434e774 | 0 | 87 |
---
description: Ultracite Rules - AI-Ready Formatter and Linter
globs: "**/*.{ts,tsx,js,jsx}"
alwaysApply: true
---
# Project Context
Ultracite enforces strict type safety, accessibility standards, and consistent code quality for JavaScript/TypeScript projects using Biome's lightning-fast formatter and linter.
## Ke... | daytona-generative-ui | www/.cursor/rules/ultracite.mdc | Markdown | 74ba2ac07d4356fd7a8449223e588c9dfba1d735c80dc9cf5b9f36422393fd0e | 0 | 896 |
t export empty modules that don't change anything.
- Don't use unnecessary escape sequences in regular expression literals.
- Don't use unnecessary fragments.
- Don't use unnecessary labels.
- Don't use unnecessary nested block statements.
- Don't rename imports, exports, and destructured assignments to the same name.
... | daytona-generative-ui | www/.cursor/rules/ultracite.mdc | Markdown | 515f7acdeceb60a2935b580e87238d0b8b3cb9aa06134a21e88feb3ca7b4b252 | 1 | 896 |
Don't use control flow statements in finally blocks.
- Don't use optional chaining where undefined values aren't allowed.
- Don't have unused function parameters.
- Don't have unused imports.
- Don't have unused labels.
- Don't have unused private class members.
- Don't have unused variables.
- Make sure void (self-clo... | daytona-generative-ui | www/.cursor/rules/ultracite.mdc | Markdown | 3c9efeb1ab981b226605e59dc1d53552860e5ec8d75387977fe4e099f0f02e1f | 2 | 896 |
each other.
- Use the namespace keyword instead of the module keyword to declare TypeScript namespaces.
### Style and Consistency
- Don't use global `eval()`.
- Don't use callbacks in asynchronous tests and hooks.
- Don't use negation in `if` statements that have `else` clauses.
- Don't use nested ternary expressions.... | daytona-generative-ui | www/.cursor/rules/ultracite.mdc | Markdown | bfc0c22c83740f1e1509f92d502f7c1243b2f843735859f205a0b70a3d53108b | 3 | 896 |
Don't use shorthand assign when the variable appears on both sides.
- Don't use octal escape sequences in string literals.
- Don't use Object.prototype builtins directly.
- Don't redeclare variables, functions, classes, and types in the same scope.
- Don't have redundant "use strict".
- Don't compare things where both ... | daytona-generative-ui | www/.cursor/rules/ultracite.mdc | Markdown | 7c76d5f3b9f69851534d7fdc7e61399d63e7301ffc460e28790e67dfa73b2409 | 4 | 549 |
@import "tailwindcss";
/* include utility classes in streamdown */
@source '../node_modules/streamdown/dist/index.js';
/* custom variant for setting dark mode programmatically */
@custom-variant dark (&:is(.dark, .dark *));
/* include plugins */
@plugin "tailwindcss-animate";
@plugin "@tailwindcss/typography";
/* d... | daytona-generative-ui | www/app/globals.css | CSS | b05bfa1d875350637768410d062952cccca8f75579c4de60b31152c57564e534 | 0 | 896 |
3.7% 15.9%);
--input: hsl(240 3.7% 15.9%);
--ring: hsl(240 4.9% 83.9%);
--chart-1: hsl(220 70% 50%);
--chart-2: hsl(160 60% 45%);
--chart-3: hsl(30 80% 55%);
--chart-4: hsl(280 65% 60%);
--chart-5: hsl(340 75% 55%);
--sidebar-background: hsl(0 6% 10%);
--sidebar-foreground: hsl(240 4.8% 95.9%);
--si... | daytona-generative-ui | www/app/globals.css | CSS | 1e9eac70c2e1ac58966f9f295b2dd4383f00f49754b786d060a2a1eaded5adce | 1 | 896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.