From 2c38a2b2ce0faedc81ccbf93bdf24ecde02eddc9 Mon Sep 17 00:00:00 2001 From: Ruth Wong Date: Sun, 8 Sep 2024 20:29:27 +0800 Subject: [PATCH] Support UltimateGuitar format --- src/App.vue | 2 ++ src/components/ChordChart.vue | 11 ++++++---- src/views/HomeView.vue | 39 ++++++++++++++++++++++++++--------- 3 files changed, 38 insertions(+), 14 deletions(-) diff --git a/src/App.vue b/src/App.vue index 94ecb5c..e408801 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,7 +13,9 @@ import { provide, ref } from 'vue'; import { RouterLink, RouterView } from 'vue-router' const chordProInput = ref(''); +const format = ref('chordpro'); provide('chordProInput', chordProInput); +provide('format', format); import('@/assets/sample-chart.js') .then(({ sampleChordProChart }) => { diff --git a/src/components/ChordChart.vue b/src/components/ChordChart.vue index fcf14a6..9960477 100644 --- a/src/components/ChordChart.vue +++ b/src/components/ChordChart.vue @@ -46,7 +46,7 @@