charmaineValSearchimport.ts2 matches
37username: user.username,
38bio: user.bio,
39profile_image_url: user.profileImageUrl,
40url: user.url,
41updated_at: new Date().toISOString(), // Using current time as the API doesn't provide updated_at
55name: project.name,
56description: project.description,
57image_url: project.imageUrl,
58username: project.author.username || "",
59updated_at: mainBranch?.updatedAt || new Date().toISOString(),
charmaineValSearchdb.ts33 matches
119fileCount: number;
120url: string;
121profile_image_url: string | null;
122updated_at: string;
123}[]> {
128COUNT(DISTINCT f.id) as file_count,
129'https://val.town/u/' || p.username as url,
130u.profile_image_url,
131MAX(p.updated_at) as updated_at
132FROM ${tablePrefix}_projects p
144fileCount: Number(row.file_count),
145url: String(row.url),
146profile_image_url: row.profile_image_url ? String(row.profile_image_url) : null,
147updated_at: String(row.updated_at)
148}));
158description: string | null;
159url: string;
160image_url: string | null;
161updated_at: string;
162}[]> {
168p.description,
169p.url,
170p.image_url,
171p.updated_at
172FROM ${tablePrefix}_projects p
184description: row.description ? String(row.description) : null,
185url: String(row.url),
186image_url: row.image_url ? String(row.image_url) : null,
187updated_at: String(row.updated_at)
188}));
204fileCount: number;
205url: string;
206profile_image_url: string | null;
207updated_at: string;
208}[];
213description: string | null;
214url: string;
215image_url: string | null;
216updated_at: string;
217}[];
314username TEXT,
315bio TEXT,
316profile_image_url TEXT,
317url TEXT NOT NULL,
318updated_at TIMESTAMP NOT NULL
328forked_branch_id TEXT,
329description TEXT,
330image_url TEXT,
331user_id TEXT,
332FOREIGN KEY (user_id) REFERENCES ${tablePrefix}_users(id)
359username: z.string().nullable(),
360bio: z.string().nullable(),
361profile_image_url: z.string().nullable(),
362url: z.string(),
363updated_at: z.string().datetime(),
370username: z.string(),
371description: z.string().nullable(),
372image_url: z.string().nullable(),
373forked_branch_id: z.string().nullable(),
374updated_at: z.string().datetime(),
433// Insert new user
434await sqlite.execute(
435`INSERT INTO ${tablePrefix}_users (id, username, bio, profile_image_url, url, updated_at)
436VALUES (?, ?, ?, ?, ?, ?)`,
437[
439user.username,
440user.bio,
441user.profile_image_url,
442user.url,
443user.updated_at,
449await sqlite.execute(
450`UPDATE ${tablePrefix}_users
451SET username = ?, bio = ?, profile_image_url = ?, url = ?, updated_at = ?
452WHERE id = ?`,
453[
454user.username,
455user.bio,
456user.profile_image_url,
457user.url,
458user.updated_at,
498// Insert new project
499await sqlite.execute(
500`INSERT INTO ${tablePrefix}_projects (id, url, name, username, updated_at, forked_branch_id, description, image_url, user_id)
501VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
502[
508project.forked_branch_id,
509project.description,
510project.image_url,
511project.user_id
512],
517await sqlite.execute(
518`UPDATE ${tablePrefix}_projects
519SET url = ?, name = ?, username = ?, updated_at = ?, forked_branch_id = ?, description = ?, image_url = ?, user_id = ?
520WHERE id = ?`,
521[
526project.forked_branch_id,
527project.description,
528project.image_url,
529project.user_id,
530project.id
812813const result = await sqlite.execute(
814`SELECT u.id, u.username, u.bio, u.profile_image_url, u.url, u.updated_at,
815(SELECT COUNT(*) FROM ${tablePrefix}_projects p
816WHERE p.user_id = u.id) as matchCount
827username: z.string().nullable(),
828bio: z.string().nullable(),
829profile_image_url: z.string().nullable(),
830url: z.string(),
831updated_at: z.string().datetime(),
889// Always launch the files query for the active type or for samples
890const result = await sqlite.execute(
891`SELECT f.*, p.name as project_name, p.url as project_url, p.username, p.description, p.image_url
892FROM ${tablePrefix}_files f
893JOIN ${tablePrefix}_projects p ON f.project_id = p.id
904username: z.string(),
905description: z.string().nullable(),
906image_url: z.string().nullable(),
907});
9081062project_url: string;
1063project_description: string | null;
1064user_profile_image_url: string | null;
1065update_count: number;
1066}[]> {
1081p.url as project_url,
1082p.description as project_description,
1083u.profile_image_url as user_profile_image_url,
1084-- Use updated_at as a proxy for edit frequency
10851 as update_count
1103project_url: String(row.project_url),
1104project_description: row.project_description ? String(row.project_description) : null,
1105user_profile_image_url: row.user_profile_image_url ? String(row.user_profile_image_url) : null,
1106update_count: Number(row.update_count)
1107}));
1122url: string;
1123description: string | null;
1124image_url: string | null;
1125user_profile_image_url: string | null;
1126edit_sessions: number;
1127file_count: number;
1140p.url,
1141p.description,
1142p.image_url,
1143u.profile_image_url as user_profile_image_url,
1144COUNT(DISTINCT strftime('%Y-%m-%d %H:%M', f.updated_at)) as edit_sessions,
1145COUNT(f.id) as file_count,
1163url: String(row.url),
1164description: row.description ? String(row.description) : null,
1165image_url: row.image_url ? String(row.image_url) : null,
1166user_profile_image_url: row.user_profile_image_url ? String(row.user_profile_image_url) : null,
1167edit_sessions: Number(row.edit_sessions),
1168file_count: Number(row.file_count),
charmaineValSearchcomponents.tsx22 matches
228<div className="result-header">
229<div className="result-header-content">
230{result.image_url && (
231<div className="project-image">
232<img src={result.image_url} alt={result.project_name} />
233</div>
234)}
292<div className="result-header">
293<div className="result-header-content">
294{result.image_url && (
295<div className="project-image">
296<img src={result.image_url} alt={result.name} />
297</div>
298)}
351<div className="result-header">
352<div className="user-header">
353{result.profile_image_url && (
354<div className="user-avatar">
355<img src={result.profile_image_url} alt={result.username || "User"} />
356</div>
357)}
1224<a href="?q=api" className="example-link">api</a>
1225<a href="?q=database" className="example-link">database</a>
1226<a href="?q=image" className="example-link">image</a>
1227<a href="?q=function" className="example-link">function</a>
1228<a href="?q=discord" className="example-link">discord</a>
1289<div className="contributor-header">
1290<div className="contributor-avatar">
1291{contributor.profile_image_url
1292? <img src={contributor.profile_image_url} alt={contributor.username} />
1293: (
1294<div
1337rel="noopener noreferrer"
1338>
1339<div className="project-image">
1340{project.image_url
1341? <img src={project.image_url} alt={project.name} />
1342: (
1343<div
1378<a href="?q=api" className="example-link">api</a>
1379<a href="?q=database" className="example-link">database</a>
1380<a href="?q=image" className="example-link">image</a>
1381<a href="?q=function" className="example-link">function</a>
1382<a href="?q=discord" className="example-link">discord</a>
1419<div className="val-meta">
1420<span className="username">
1421{val.user_profile_image_url && (
1422<img
1423src={val.user_profile_image_url}
1424alt={val.username}
1425className="profile-image"
1426/>
1427)}
1472<div className="project-meta">
1473<div className="username">
1474{project.user_profile_image_url && (
1475<img
1476src={project.user_profile_image_url}
1477alt="Profile"
1478className="profile-image"
1479/>
1480)}
1824}
1825
1826.profile-image {
1827width: 20px;
1828height: 20px;
GitHub-PR-AutomationREADME.md2 matches
1213See all 3 in action👇
14
1516### 1. PR Auto-Assign
5152See this in action👇
53
5455
creatopy_webtokenmain.tsx1 match
22useShareButton: false,
23useAiEditText: true,
24useAiEditImage: true,
25useAiTranslate: true,
26useAdServing: true,
75targetDate: travelDate,
76category: 'travel',
77imageUrl: selectedDestination.imageUrl
78}),
79});
Smart_Expense_TrackerGoalTracker.tsx2 matches
19targetDate: '',
20category: '',
21imageUrl: ''
22});
23const [addingMoney, setAddingMoney] = useState<{ goalId: number; amount: string } | null>(null);
91targetDate: '',
92category: '',
93imageUrl: ''
94});
95setShowForm(false);
8<script src="https://esm.town/v/std/catch"></script>
9<link rel="stylesheet" href="/frontend/style.css">
10<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>💰</text></svg>">
11<style>
12/* Custom animations and styles */
Smart_Expense_Trackergoals.ts2 matches
24try {
25const body = await c.req.json();
26const { title, description, targetAmount, targetDate, category, imageUrl } = body;
27
28if (!title || !targetAmount || !targetDate || !category) {
48targetDate,
49category,
50imageUrl: imageUrl || null
51});
52
Smart_Expense_Trackerqueries.ts4 matches
98export async function addGoal(goal: Omit<Goal, 'id' | 'createdAt' | 'isCompleted'>): Promise<number> {
99const result = await sqlite.execute(`
100INSERT INTO goals_v1 (user_id, title, description, target_amount, current_amount, target_date, category, image_url)
101VALUES (?, ?, ?, ?, ?, ?, ?, ?)
102`, [goal.userId, goal.title, goal.description, goal.targetAmount, goal.currentAmount, goal.targetDate, goal.category, goal.imageUrl]);
103
104return result.lastInsertRowId;
121targetDate: row.target_date,
122category: row.category,
123imageUrl: row.image_url,
124isCompleted: Boolean(row.is_completed),
125createdAt: row.created_at
183},
184description: row.description,
185imageUrl: row.image_url || '',
186popularMonths: row.popular_months ? row.popular_months.split(',') : []
187}));