feat: add Tjing course import

Search and import courses with layouts from Tjing's GraphQL API.
Total par is calculated from individual hole data. Courses are saved
with a tjing.se link as unique identifier to prevent duplicates.
This commit is contained in:
Samuel Enocsson
2026-03-20 08:35:37 +01:00
parent 808619a04b
commit eb77b1f32b
5 changed files with 281 additions and 1 deletions
+34
View File
@@ -131,3 +131,37 @@
opacity: 0.6;
border-style: dashed;
}
/* ── Tjing Import ────────────────────────────── */
.tjing-result {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 14px;
margin: 6px 0;
background: var(--surface-2);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.tjing-result-info {
display: flex;
flex-direction: column;
gap: 2px;
}
.tjing-result-name {
font-weight: 600;
font-size: 14px;
color: var(--text-primary);
}
.tjing-result-address {
font-size: 13px;
color: var(--text-secondary);
}
#tjing-results {
margin-top: 12px;
}