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.

84 lines
2.2 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div class="p-d-flex p-flex-row p-jc-between p-ai-stretch">
  3. <Panel
  4. class="p-mr-2 p-as-stretch file-card"
  5. >
  6. <template #header>
  7. File preview
  8. </template>
  9. <Skeleton /><br />
  10. <Skeleton /><br />
  11. <Skeleton /><br />
  12. <Skeleton /><br />
  13. <Skeleton /><br />
  14. <Skeleton /><br />
  15. <Skeleton /><br />
  16. </Panel>
  17. <Card class="p-mr-2 p-as-stretch filters-card">
  18. <template #header>
  19. <Toolbar>
  20. <template #left>
  21. <h3>Available filters</h3>
  22. </template>
  23. <template #right>
  24. <Button
  25. icon="pi pi-plus"
  26. class="p-button-success"
  27. />
  28. </template>
  29. </Toolbar>
  30. </template>
  31. <template #content>
  32. <filter-view
  33. v-for="(filter, id, index) in filters"
  34. :key="index"
  35. :id="id"
  36. :display-name="filter.display_name"
  37. :options="filter.options"
  38. ></filter-view>
  39. </template>
  40. </Card>
  41. </div>
  42. </template>
  43. <script lang="ts">
  44. import axios from 'axios';
  45. import { Vue, Component, Prop } from 'vue-property-decorator';
  46. import { FileData } from '../interfaces/FileData';
  47. import { FilterInterface } from '../interfaces/FilterInterface';
  48. @Component
  49. export default class ProcessFile extends Vue {
  50. @Prop({ default: null })
  51. public readonly file!: FileData|null;
  52. @Prop({ default: [] })
  53. public readonly filters!: { [keys:string]: FilterInterface }
  54. private selectedFile: File|null = null;
  55. private selectedFilters = [];
  56. /**
  57. *
  58. */
  59. created() {
  60. console.log('FILE: ', this.file);
  61. console.log('FILTERS: ', this.filters);
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .file-card {
  67. flex: 0 1 66%;
  68. }
  69. .filters-card {
  70. flex: 0 1 32%
  71. }
  72. </style>