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.

82 lines
2.1 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 { Vue, Component, Prop } from 'vue-property-decorator';
  45. import { FileData } from '../interfaces/FileData';
  46. import { FilterInterface } from '../interfaces/FilterInterface';
  47. @Component
  48. export default class ProcessFile extends Vue {
  49. @Prop({ default: null })
  50. public readonly file!: FileData|null;
  51. @Prop({ default: [] })
  52. public readonly filters!: { [keys:string]: FilterInterface }
  53. private selectedFile: File|null = null;
  54. private selectedFilters = [];
  55. /**
  56. *
  57. */
  58. created() {
  59. console.log('FILE: ', this.file);
  60. console.log('FILTERS: ', this.filters);
  61. }
  62. }
  63. </script>
  64. <style lang="scss">
  65. .file-card {
  66. flex: 0 1 66%;
  67. }
  68. .filters-card {
  69. flex: 0 1 32%
  70. }
  71. </style>