Skip to content
Snippets Groups Projects
Select Git revision
  • Product/1215-gitlabCleanUp
  • master default protected
  • gitkeep
  • dev protected
  • Sprint/2022-01
  • Sprint/2021-22
  • Issue/1762-renamingResourceTypes
  • Sprint/2021-17
  • Product/1623-allocatedQuotaForAdmin
  • Topic/1689-DisplayAllocatedQuotaForAdminPage
  • Topic/1689-FixLintingIssues
  • Product/1107-frontendPerformance
  • Topic/1227-frontendPerformance
  • Sprint/2020-22
  • Product/1119-quotaAdminPage
  • Topic/1162-quotaAdminPage
  • v1.3.1
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.1
  • v1.0.0
22 results

babel.config.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    SearchModule.vue 876 B
    <template>
      <div>
        <router-view v-if="moduleIsReady" />
      </div>
    </template>
    
    <script lang="ts">
    import { defineComponent } from "vue-demi";
    import { SearchI18nMessages } from "./i18n";
    
    // import the store for current module
    import { useSearchStore } from "./store";
    // import the main store
    import { useMainStore } from "@/store/index";
    
    export default defineComponent({
      setup() {
        const mainStore = useMainStore();
        const searchStore = useSearchStore();
    
        return { mainStore, searchStore };
      },
      i18n: { messages: SearchI18nMessages },
    
      created() {
        this.initialize();
      },
    
      computed: {
        moduleIsReady(): boolean {
          return true;
        },
      },
    
      methods: {
        async initialize() {
          // do initialization stuff (e.g. API calls, element loading, etc.)
          // ...
          this.searchStore.retrieveSearchResults();
        },
      },
    });
    </script>