From 0d16140ca5bfd8997c79c740fb7bec782b508aaa Mon Sep 17 00:00:00 2001
From: Saninn Salas Diaz <5490201+distante@users.noreply.github.com>
Date: Mon, 22 Jan 2024 13:46:33 +0100
Subject: [PATCH] feat(indexing): allow to ignore dot and at starting files
(UI)
---
lib/Settings/SystemConfig.php | 3 +++
src/components/admin/AdminTypes.ts | 2 ++
src/components/admin/sections/Indexing.vue | 18 ++++++++++++++++++
3 files changed, 23 insertions(+)
diff --git a/lib/Settings/SystemConfig.php b/lib/Settings/SystemConfig.php
index a0ef9dbb..2fffa1af 100644
--- a/lib/Settings/SystemConfig.php
+++ b/lib/Settings/SystemConfig.php
@@ -33,6 +33,9 @@ class SystemConfig
// Path to index (only used if indexing mode is 3)
'memories.index.path' => '/',
+
+ 'memories.index.ignore_file_with_starting_dot' => false,
+ 'memories.index.ignore_file_with_starting_at' => false,
// Places database type identifier
'memories.gis_type' => -1,
diff --git a/src/components/admin/AdminTypes.ts b/src/components/admin/AdminTypes.ts
index 4f54aeb6..844c6a58 100644
--- a/src/components/admin/AdminTypes.ts
+++ b/src/components/admin/AdminTypes.ts
@@ -6,6 +6,8 @@ export type ISystemConfig = {
'memories.exiftool_no_local': boolean;
'memories.index.mode': string;
'memories.index.path': string;
+ 'memories.index.ignore_file_with_starting_dot': boolean;
+ 'memories.index.ignore_file_with_starting_at': boolean;
'memories.gis_type': number;
diff --git a/src/components/admin/sections/Indexing.vue b/src/components/admin/sections/Indexing.vue
index 8e6c31ce..518af881 100644
--- a/src/components/admin/sections/Indexing.vue
+++ b/src/components/admin/sections/Indexing.vue
@@ -118,6 +118,24 @@
{{ t('memories', 'Clear all existing index tables:') }}
occ memories:index --clear
+
+