Commit 111487a2 authored by Harumi Jang's avatar Harumi Jang 🤠 Committed by Ben Mullins
Browse files

Issue #3284092 by hooroomoo, narendraR: Remove unused svelte components and variables

parent 46d49104
Loading
Loading
Loading
Loading
+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+0 −20
Original line number Diff line number Diff line
<script context="module">
  let globalLabels;

  export function setLabels(labels) {
    globalLabels = labels;
  }
</script>

<script>
  import { createEventDispatcher, getContext, onMount } from 'svelte';
  import { moduleCategoryFilter, moduleCategoryVocabularies } from './stores';
@@ -15,18 +7,6 @@
  const dispatch = createEventDispatcher();
  const stateContext = getContext('state');

  export const filter = (row, text) =>
    Object.values(row).filter(
      (item) => item.toString().toLowerCase().indexOf(text.toLowerCase()) > 1,
    ).length > 0;
  export const index = -1;
  export const text = '';

  export const labels = {
    placeholder: `${Drupal.t('Title contains')}...`,
    ...globalLabels,
  };

  async function onSelectCategory(event) {
    const state = stateContext.getState();
    const detail = {
+0 −9
Original line number Diff line number Diff line
<script context="module">
  let globalLabels;

  export function setLabels(labels) {
    globalLabels = labels;
  }
</script>

<script>
  import { createEventDispatcher, getContext } from 'svelte';

@@ -24,7 +16,6 @@
    last: Drupal.t('Last'),
    next: Drupal.t('Next'),
    previous: Drupal.t('Previous'),
    ...globalLabels,
  };

  $: pageCount = Math.floor(count / pageSize);
Loading