All files / app/mods/org hide.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 20117x     117x                                
import { DateTime } from 'luxon';
import { Mod } from '../../model/tag';
 
export const hideMod: Mod = {
  plugin: [{
    tag: 'plugin/user/hide',
    name: $localize`🙈️️ Hide Refs`,
    config: {
      version: 2,
      generated: $localize`Generated by jasper-ui ${DateTime.now().toISO()}`,
      description: $localize`Mark Refs as hidden for the current user`,
      icons: [{ response: 'plugin/user/hide', label: $localize`🙈️️`, global: true, order: -1 }],
      filters: [
        { user: 'plugin/user/hide', label: $localize`🙈️️ hidden`, title: $localize`My hidden Refs`, group: $localize`Lists ☰` },
      ],
      actions: [{ response: 'plugin/user/hide', labelOff: $localize`hide`, labelOn: $localize`unhide`, global: true }],
    },
  }],
};