Browser extension that demonstrates the Web Annotation Discovery mechanism: subscribe to people’s annotation collections/‘feeds’, to see their notes on the web; and create & publish annotations yourself.

  1. import Dexie, { Table } from 'dexie';
  2. import { IAnnotation } from './Annotation';
  3. import { IAnnotationSource } from './AnnotationSource';
  4. export class AnnotationDexie extends Dexie {
  5. annotations!: Table<IAnnotation>;
  6. annotationSources!: Table<IAnnotationSource>;
  7. constructor() {
  8. super('AnnotationDB');
  9. this.version(3).stores({
  10. annotations: '++_id, source',
  11. annotationSources: '++_id',
  12. });
  13. }
  14. }
  15. export const db = new AnnotationDexie();