Skip to content

Instantly share code, notes, and snippets.

View jobelenus's full-sized avatar

John Obelenus jobelenus

View GitHub Profile
if (identityUser.mobile == participantNum) {
console.log('identity does exist')
const participantEntry = new SideChatParticipants(participant)
// eslint-disable-next-line no-return-await
try {
return await participantEntry.save()
} catch(err) {
console.log(err)
return false // or -1, or something you can check for your error condition, or even re-reaise `err`
}
@jobelenus
jobelenus / pool.noodling.ts
Created January 17, 2025 16:47
Graph Vue Store
import { defineStore } from "pinia";
import { addStoreHooks } from "@si/vue-lib/pinia";
import { reactive } from "vue";
import { ChangeSetId } from "@/api/sdf/dal/change_set";
import { useWorkspacesStore } from "../workspaces.store";
import { useChangeSetsStore } from "../change_sets.store";
import {
Edge,
RootComponent,
Ulid,
@jobelenus
jobelenus / read_write_interface.ts
Last active February 5, 2025 20:47
read_write_interface.ts
// READ EXAMPLE
// === vue component code ===
const outlinerData = useQuery({
queryKey: ["DiagramOutlineForView", changeSetId, viewId],
queryFn: async () => {
return await sharedWebWorker.get("DiagramOutlineForView", { viewId }, { workspaceId, changeSetId, userId });
};
});