result.rows [ { submission: { id: "bafyr4ib6y6uz6fdfh6hx2j2m2c3674vcgkhnxhkip47r5gpxbz4uvq3lei", text: null, createdAt: 1726283641, createdBy: 4, username: "networkp", itemId: { id: "bafyr4icfhqzip3xb6q32jiuqshuit26lvvcewriue5wlzp2wy7kndbawam",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useCallback, useEffect, useState } from "react"; | |
import { | |
View, | |
Text, | |
TouchableOpacity, | |
FlatList, | |
Image, | |
StyleSheet, | |
Dimensions, | |
ActivityIndicator, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
export const emailHtml = ` | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<style> | |
@font-face { | |
font-family: 'River Mono'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useMutation, useQueryClient } from '@tanstack/react-query' | |
import { now } from '@/utils/now' | |
import { useAuthContext } from '@/context/AuthProvider' | |
import { useNotificationContext } from '@/context/NotificationProvider' | |
export const useUpdateLastVisitedInbox = () => { | |
const queryClient = useQueryClient() | |
const { rid, sessionId } = useAuthContext() | |
const { updateNotificationCache } = useNotificationContext() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { graphql } from 'gql.tada' | |
import { gqlClient } from '@/utils/gql' | |
import { useQuery } from '@tanstack/react-query' | |
export const uriInfoQuery = graphql(` | |
query uriInfo($id: String) { | |
uriInfo( | |
where: { | |
id: { eq: $id } | |
content: { isNotNull : true } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.23; | |
import {EnumerableKeySet, KeySet} from "./EnumerableKeySet.sol"; | |
contract RiverRegistry { | |
// Libraries | |
using EnumerableKeySet for KeySet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Client } from 'pg' | |
// Source database configuration | |
const sourceClient = new Client({ | |
connectionString: // soruce pg | |
}) | |
// Target database configuration | |
const targetClient = new Client({ | |
connectionString: // target pg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post('/auth/validateSession', async (c) => { | |
try { | |
const { sessionId } = await c.req.json() | |
const session = await lucia.validateSession(sessionId) | |
const userDataForSessionId await db.query.sessions.findFirst({ | |
with: { | |
auth: true | |
}, | |
where: (sessions, { eq }) => eq(sessions.id, sessionId) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result.rows [ | |
{ | |
submission: { | |
id: "bafyr4ib6y6uz6fdfh6hx2j2m2c3674vcgkhnxhkip47r5gpxbz4uvq3lei", | |
text: null, | |
createdAt: 1726283641, | |
createdBy: 4, | |
username: "networkp", | |
itemId: { | |
id: "bafyr4icfhqzip3xb6q32jiuqshuit26lvvcewriue5wlzp2wy7kndbawam", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MarkdownTextInput | |
value={markdownContent ? markdownContent : ''} | |
onChangeText={setCaptionText} | |
ref={textAreaRef} | |
placeholder={"What's on your mind?"} | |
autoFocus={true} | |
maxLength={300} | |
inputAccessoryViewID={inputAccessoryViewID} | |
multiline={true} | |
style={{ |
NewerOlder