From d40016efd96950a738c7d3fafa242e104337d6b4 Mon Sep 17 00:00:00 2001
From: Philipp Stadler <hello@phstadler.com>
Date: Thu, 18 Jul 2024 19:04:15 +0200
Subject: [PATCH] feat(starter): add CSV bijection example

---
 content/Bijection-from-CSV/.apkg-spec.yaml    | 17 +++++++++++++++++
 content/Bijection-from-CSV/content.csv        |  2 ++
 content/Bijection-from-Images/.apkg-spec.yaml |  2 +-
 content/Facts-from-CSV/.apkg-spec.yaml        |  2 +-
 content/Facts-from-CSV/content.csv            |  2 +-
 package.json                                  |  2 +-
 6 files changed, 23 insertions(+), 4 deletions(-)
 create mode 100644 content/Bijection-from-CSV/.apkg-spec.yaml
 create mode 100644 content/Bijection-from-CSV/content.csv

diff --git a/content/Bijection-from-CSV/.apkg-spec.yaml b/content/Bijection-from-CSV/.apkg-spec.yaml
new file mode 100644
index 0000000..4b3b229
--- /dev/null
+++ b/content/Bijection-from-CSV/.apkg-spec.yaml
@@ -0,0 +1,17 @@
+content_version: 1.0.0
+
+templates:
+- bijective
+
+content:
+- import_csv:
+    content_version: 2024-06-08 18:23:00+00:00
+    note_type: Bijection
+    file_patterns:
+    - '*.csv'
+    deck_name_pattern: 'Tapir geography'
+    fields_mapping:
+    - guid
+    - A
+    - B
+    tags: []
diff --git a/content/Bijection-from-CSV/content.csv b/content/Bijection-from-CSV/content.csv
new file mode 100644
index 0000000..d68fa71
--- /dev/null
+++ b/content/Bijection-from-CSV/content.csv
@@ -0,0 +1,2 @@
+7856975905780;Continent: Europe, Australia, Antarctica;Species: none
+5423654674576;Continent: Asia;Species: Tapirus indicus
diff --git a/content/Bijection-from-Images/.apkg-spec.yaml b/content/Bijection-from-Images/.apkg-spec.yaml
index c6b5868..19a08cf 100644
--- a/content/Bijection-from-Images/.apkg-spec.yaml
+++ b/content/Bijection-from-Images/.apkg-spec.yaml
@@ -7,7 +7,7 @@ content:
 - import_images:
     content_version: 2024-02-22 19:00:00+00:00
     note_type: Bijection
-    deck_name_pattern: 'Chinese Hand Gestures'
+    deck_name_pattern: 'Colors'
     fields_mapping:
       A: 'The color {{from_basename}}'
       B: '{{image}}'
diff --git a/content/Facts-from-CSV/.apkg-spec.yaml b/content/Facts-from-CSV/.apkg-spec.yaml
index 33ae593..061226f 100644
--- a/content/Facts-from-CSV/.apkg-spec.yaml
+++ b/content/Facts-from-CSV/.apkg-spec.yaml
@@ -9,7 +9,7 @@ content:
     note_type: Facts
     file_patterns:
     - '*.csv'
-    deck_name_pattern: 'Deckname in Anki'
+    deck_name_pattern: 'Tapir facts'
     fields_mapping:
     - guid
     - Front
diff --git a/content/Facts-from-CSV/content.csv b/content/Facts-from-CSV/content.csv
index c6b8f2d..1767be3 100644
--- a/content/Facts-from-CSV/content.csv
+++ b/content/Facts-from-CSV/content.csv
@@ -1 +1 @@
-123412354152;How many tapir species live in the wild in Asia?;1
\ No newline at end of file
+123412354152;How many tapir species live in the wild in Asia?;1
diff --git a/package.json b/package.json
index ff588d5..048ef71 100644
--- a/package.json
+++ b/package.json
@@ -1,3 +1,3 @@
 {
-  "version": "1.0.0-starter"
+  "version": "1.0.0-starter2"
 }
-- 
GitLab