25โ โโโ database/
26โ โ โโโ migrations.ts # Schema definitions
27โ โ โโโ queries.ts # DB query functions
28โ โโโ routes/ # Route modules
29โ โ โโโ jobs.ts # Job posting endpoints
WaitTimeProxymain.tsx1 match
1export async function main() {
2let res = await fetch("https://queue-times.com/parks.json");
3let data = await res.json();
Landing-Pageindex.ts4 matches
1export default async function (req: Request) {
2const html = `<!DOCTYPE html>
3<html lang="en">
463<script>
464// Mobile menu toggle
465document.getElementById('mobile-menu-button').addEventListener('click', function() {
466const mobileMenu = document.getElementById('mobile-menu');
467mobileMenu.classList.toggle('hidden');
470// Smooth scrolling for anchor links
471document.querySelectorAll('a[href^="#"]').forEach(anchor => {
472anchor.addEventListener('click', function (e) {
473e.preventDefault();
474
494// Add to cart animation
495document.querySelectorAll('.product-card button').forEach(button => {
496button.addEventListener('click', function() {
497this.innerHTML = '<i class="fas fa-check"></i>';
498setTimeout(() => {
Demostripe-to-discord.ts8 matches
35* Main handler for Stripe webhook events
36*/
37export default async function(req: Request): Promise<Response> {
38// Only allow POST requests
39if (req.method !== 'POST') {
96* Format a Stripe event into a Discord message
97*/
98function formatStripeEventForDiscord(event: Stripe.Event): any {
99// Base embed structure
100const embed: any = {
162* Send a formatted message to Discord
163*/
164async function sendToDiscord(webhookUrl: string, message: any): Promise<void> {
165const response = await fetch(webhookUrl, {
166method: 'POST',
180* Format a human-readable title from an event type
181*/
182function formatEventTitle(eventType: string): string {
183const parts = eventType.split('.');
184const entity = parts[0];
211* Get the appropriate color for an event type
212*/
213function getColorForEvent(eventType: string): number {
214if (eventType.includes('succeeded') || eventType.includes('created') || eventType.includes('paid')) {
215return COLORS.success;
228* Format a currency amount
229*/
230function formatAmount(amount: number, currency: string): string {
231const formatter = new Intl.NumberFormat('en-US', {
232style: 'currency',
242* Format a date range
243*/
244function formatDateRange(startTimestamp: number, endTimestamp: number): string {
245const start = new Date(startTimestamp * 1000);
246const end = new Date(endTimestamp * 1000);
260* Get subscription plan name
261*/
262function getSubscriptionPlanName(subscription: Stripe.Subscription): string {
263if (!subscription.items?.data?.length) {
264return 'N/A';
automate-workflowsREADME.md1 match
67- `types.ts` - TypeScript interfaces and types
8- `utils.ts` - Utility functions for parsing commits and generating markdown
910## Key Components
automate-workflowsREADME.md1 match
12- Form for entering repository details and commit range
13- Preview of generated release notes in Markdown format
14- Copy to clipboard functionality
15- Download as Markdown file
16- Error handling and loading states
automate-workflowsindex.js1 match
16});
1718function setupFormHandling() {
19const form = document.getElementById('release-form');
20const generateBtn = document.getElementById('generate-btn');
automate-workflowsutils.ts4 matches
3// Parse a commit message according to conventional commit format
4// https://www.conventionalcommits.org/
5export function parseCommitMessage(commit: GitHubCommit): { type: CommitType; message: string } {
6const { message } = commit.commit;
7
2627// Group commits by type for release notes
28export function groupCommitsByType(commits: GitHubCommit[]): ReleaseNoteSection[] {
29const sections: Record<CommitType, ReleaseNoteItem[]> = {} as Record<CommitType, ReleaseNoteItem[]>;
30
5657// Generate markdown for release notes
58export function generateMarkdown(title: string, date: string, sections: ReleaseNoteSection[]): string {
59let markdown = `# ${title}\n\n`;
60markdown += `*Released on ${date}*\n\n`;
7475// Format date to YYYY-MM-DD
76export function formatDate(date: Date): string {
77return date.toISOString().split('T')[0];
78}
Towniestyles.css2 matches
162transition-property: background-color;
163transition-duration: 400ms;
164transition-timing-function: linear;
165}
166840transition-property: color, background-color, border-color, opacity;
841transition-duration: 200ms;
842transition-timing-function: ease-in-out;
843}
844
automate-workflowsmain.tsx1 match
1export default async function (req: Request): Promise<Response> {
2return Response.json({ ok: true })
3}