mirror of
https://github.com/modrinth/code.git
synced 2026-07-31 13:16:38 +00:00
fix: prepr
This commit is contained in:
@@ -21,8 +21,13 @@ use std::time::UNIX_EPOCH;
|
||||
use tokio::fs::File;
|
||||
use tokio_util::compat::FuturesAsyncWriteCompatExt;
|
||||
|
||||
const DEFAULT_SELECTED_EXPORT_PATH_PREFIXES: &[&str] =
|
||||
&["mods", "datapacks", "resourcepacks", "shaderpacks", "config"];
|
||||
const DEFAULT_SELECTED_EXPORT_PATH_PREFIXES: &[&str] = &[
|
||||
"mods",
|
||||
"datapacks",
|
||||
"resourcepacks",
|
||||
"shaderpacks",
|
||||
"config",
|
||||
];
|
||||
const EXPORT_CANDIDATE_METADATA_CONCURRENCY: usize = 32;
|
||||
|
||||
const NEVER_EXPORTABLE_PATH_PREFIXES: &[&str] = &[
|
||||
|
||||
@@ -293,8 +293,7 @@ const props = withDefaults(
|
||||
)
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:modelValue', value: string[]): void
|
||||
(e: 'update:excludedPaths', value: string[]): void
|
||||
(e: 'update:modelValue' | 'update:excludedPaths', value: string[]): void
|
||||
(e: 'navigate', path: string): void
|
||||
}>()
|
||||
|
||||
@@ -698,20 +697,10 @@ function toggleAllVisible(selected: boolean) {
|
||||
const nextExcludedPaths = new Set(excludedPaths.value)
|
||||
|
||||
if (currentPath.value) {
|
||||
applySelection(
|
||||
nextSelectedPaths,
|
||||
nextExcludedPaths,
|
||||
currentPath.value,
|
||||
selected,
|
||||
)
|
||||
applySelection(nextSelectedPaths, nextExcludedPaths, currentPath.value, selected)
|
||||
} else {
|
||||
for (const entry of visibleSelectableEntries.value) {
|
||||
applySelection(
|
||||
nextSelectedPaths,
|
||||
nextExcludedPaths,
|
||||
entry.path,
|
||||
selected,
|
||||
)
|
||||
applySelection(nextSelectedPaths, nextExcludedPaths, entry.path, selected)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user