MCPcopy Index your code
hub / github.com/MALSync/MALSync / statusTag

Function statusTag

src/utils/general.ts:386–464  ·  view source on GitHub ↗
(status, type, id)

Source from the content-addressed store, hash-verified

384
385// eslint-disable-next-line no-shadow
386export function statusTag(status, type, id) {
387 const info = {
388 anime: {
389 1: {
390 class: 'watching',
391 text: 'CW',
392 title: api.storage.lang(`UI_Status_watching_${type}`),
393 },
394 2: {
395 class: 'completed',
396 text: 'CMPL',
397 title: api.storage.lang('UI_Status_Completed'),
398 },
399 3: {
400 class: 'on-hold',
401 text: 'HOLD',
402 title: api.storage.lang('UI_Status_OnHold'),
403 },
404 4: {
405 class: 'dropped',
406 text: 'DROP',
407 title: api.storage.lang('UI_Status_Dropped'),
408 },
409 6: {
410 class: 'plantowatch',
411 text: 'PTW',
412 title: api.storage.lang(`UI_Status_planTo_${type}`),
413 },
414 23: {
415 class: 'rewatching',
416 text: 'RE',
417 title: api.storage.lang(`UI_Status_Rewatching_${type}`),
418 },
419 },
420 manga: {
421 1: {
422 class: 'reading',
423 text: 'CR',
424 title: api.storage.lang(`UI_Status_watching_${type}`),
425 },
426 2: {
427 class: 'completed',
428 text: 'CMPL',
429 title: api.storage.lang('UI_Status_Completed'),
430 },
431 3: {
432 class: 'on-hold',
433 text: 'HOLD',
434 title: api.storage.lang('UI_Status_OnHold'),
435 },
436 4: {
437 class: 'dropped',
438 text: 'DROP',
439 title: api.storage.lang('UI_Status_Dropped'),
440 },
441 6: {
442 class: 'plantoread',
443 text: 'PTR',

Callers

nothing calls this directly

Calls 1

langMethod · 0.80

Tested by

no test coverage detected