refactor: comments
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
/**
|
||||
* Contact Import Store
|
||||
*
|
||||
* Drives the VCF import flow: a queue of files, each targeting a collection, imported
|
||||
* sequentially while live counters stream in. Memory stays flat regardless of contact
|
||||
* count — per-session counters are plain integers and recent results are capped.
|
||||
*/
|
||||
|
||||
import { ref, computed } from 'vue'
|
||||
@@ -32,7 +28,9 @@ function defaultOptions(): ImportFileOptions {
|
||||
}
|
||||
|
||||
export const useImportStore = defineStore('peopleImportStore', () => {
|
||||
|
||||
// State
|
||||
|
||||
const lastFileInsertId = ref(-1)
|
||||
const files = ref<ImportFileEntry[]>([])
|
||||
const stage = ref<ImportSessionStage>('idle')
|
||||
@@ -66,7 +64,6 @@ export const useImportStore = defineStore('peopleImportStore', () => {
|
||||
|
||||
// Actions
|
||||
|
||||
/** Queue a file for import; returns its assigned id. */
|
||||
function addFile(file: ImportFileAdd): number {
|
||||
const id = ++lastFileInsertId.value
|
||||
files.value.push({
|
||||
|
||||
Reference in New Issue
Block a user