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::fs::File;
|
||||||
use tokio_util::compat::FuturesAsyncWriteCompatExt;
|
use tokio_util::compat::FuturesAsyncWriteCompatExt;
|
||||||
|
|
||||||
const DEFAULT_SELECTED_EXPORT_PATH_PREFIXES: &[&str] =
|
const DEFAULT_SELECTED_EXPORT_PATH_PREFIXES: &[&str] = &[
|
||||||
&["mods", "datapacks", "resourcepacks", "shaderpacks", "config"];
|
"mods",
|
||||||
|
"datapacks",
|
||||||
|
"resourcepacks",
|
||||||
|
"shaderpacks",
|
||||||
|
"config",
|
||||||
|
];
|
||||||
const EXPORT_CANDIDATE_METADATA_CONCURRENCY: usize = 32;
|
const EXPORT_CANDIDATE_METADATA_CONCURRENCY: usize = 32;
|
||||||
|
|
||||||
const NEVER_EXPORTABLE_PATH_PREFIXES: &[&str] = &[
|
const NEVER_EXPORTABLE_PATH_PREFIXES: &[&str] = &[
|
||||||
|
|||||||
@@ -293,8 +293,7 @@ const props = withDefaults(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'update:modelValue', value: string[]): void
|
(e: 'update:modelValue' | 'update:excludedPaths', value: string[]): void
|
||||||
(e: 'update:excludedPaths', value: string[]): void
|
|
||||||
(e: 'navigate', path: string): void
|
(e: 'navigate', path: string): void
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
@@ -698,20 +697,10 @@ function toggleAllVisible(selected: boolean) {
|
|||||||
const nextExcludedPaths = new Set(excludedPaths.value)
|
const nextExcludedPaths = new Set(excludedPaths.value)
|
||||||
|
|
||||||
if (currentPath.value) {
|
if (currentPath.value) {
|
||||||
applySelection(
|
applySelection(nextSelectedPaths, nextExcludedPaths, currentPath.value, selected)
|
||||||
nextSelectedPaths,
|
|
||||||
nextExcludedPaths,
|
|
||||||
currentPath.value,
|
|
||||||
selected,
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
for (const entry of visibleSelectableEntries.value) {
|
for (const entry of visibleSelectableEntries.value) {
|
||||||
applySelection(
|
applySelection(nextSelectedPaths, nextExcludedPaths, entry.path, selected)
|
||||||
nextSelectedPaths,
|
|
||||||
nextExcludedPaths,
|
|
||||||
entry.path,
|
|
||||||
selected,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user