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 gql from "graphql-tag"; | |
// https://docs.amplify.aws/cli-legacy/graphql-transformer/directives/ | |
const clientSchemaExtensions = gql` | |
# https://docs.amplify.aws/cli/graphql/data-modeling/#how-it-works | |
directive @model( | |
queries: ModelQueryMap | |
mutations: ModelMutationMap | |
subscriptions: ModelSubscriptionMap | |
timestamps: TimestampConfiguration |
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 { captureException } from "@sentry/vue"; | |
import { type DBSchema, openDB } from "idb"; | |
import { IDBPDatabase } from "idb/build/entry"; | |
export enum StoreName { | |
VisitLocation = "visitLocation", | |
ActionLog = "actionLog", | |
} | |
export interface LocationWithTimestamp { |
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 { type StoreKey } from "idb"; | |
import { | |
type DefaultDB, | |
type LocationWithTimestamp, | |
StoreName, | |
getDb, | |
} from "@/adapters/indexedDB/core"; | |
type Store = { |
OlderNewer