All files / app/mods/org read.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27117x     117x                                              
import { DateTime } from 'luxon';
import { Mod } from '../../model/tag';
 
export const readMod: Mod = {
  plugin: [{
    tag: 'plugin/user/read',
    name: $localize`☑️ Mark as read`,
    config: {
      version: 3,
      generated: $localize`Generated by jasper-ui ${DateTime.now().toISO()}`,
      description: $localize`Mark Refs as read for the current user across multiple sessions`,
      filters: [
        { user: '!plugin/user/read', label: $localize`☑️ unread`, title: $localize`You read it`, group: $localize`Lists ☰` },
      ],
      advancedActions: [{ response: 'plugin/user/read', labelOff: $localize`read`, labelOn: $localize`unread`, global: true }],
      // language=CSS
      css: `
        .ref.user-response-plugin_user_read > .row > .stack > .link {
          a, .fake-link {
            color: var(--visited);
          }
        }
      `
    },
  }],
};