Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
804 B

3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div class="header">
  3. <!-- Left side of header -->
  4. <div class="left">
  5. <Button @click="onHomeButtonClick" class="p-button-primary" label="Search and Displace" />
  6. </div>
  7. <!-- Right side of header -->
  8. <div class="right">
  9. <a href="/regex/create" style="margin-right: 1rem;">
  10. <Button class="fc-button">Add regex</Button>
  11. </a>
  12. <a href="/searchers">
  13. <Button class="fc-button">Searchers</Button>
  14. </a>
  15. </div>
  16. </div>
  17. </template>
  18. <script lang="ts">
  19. import Vue from 'vue';
  20. import Component from 'vue-class-component';
  21. @Component
  22. export default class AppHeader extends Vue {
  23. onHomeButtonClick() {
  24. window.location.href = '/';
  25. }
  26. }
  27. </script>