diff --git a/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue b/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue index cad0885..1bcd00f 100644 --- a/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue +++ b/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue @@ -64,9 +64,16 @@ const props = defineProps({ data: { type: Array, default: () => [] + }, + filterState: { + type: Object, + default: null } }); +const internalFilterState = useJsonFilter(); +const activeFilterState = computed(() => props.filterState || internalFilterState); + const { filterProperty, filterValue, @@ -79,7 +86,7 @@ const { setFilter, clearFilters, getUniqueValues -} = useJsonFilter(); +} = activeFilterState.value; const hasData = computed( () => Array.isArray(props.data) && props.data.length > 0 diff --git a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue index 3086ced..875ac61 100644 --- a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue +++ b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue @@ -90,120 +90,17 @@ -
- - - {{ fileLines.length.toLocaleString() }} lines -
+ - - + -
- - - - -
+
@@ -220,100 +117,28 @@
-
- - - - - - -
-
- {{ - line.lineNumber - }} -
{{ line.content }}
-
-
- - -
- ⚠️ File exceeds 10,000 lines. Showing first 10,000 lines only. Use - search or filters to find specific content. -
-
+ :display-lines="displayLines" + :file-content="fileContent" + :selected-file="selectedFile" + :file-too-large="fileTooLarge" + :preferences="preferences" + :search-results="searchResults" + :current-result-index="currentResultIndex" + :highlight-config="highlightConfig" + :line-height="lineHeight" + :selection-state="selectionState" + /> -
- - - - - -
+