diff --git a/frontend/src/components/Settings/Settings.vue b/frontend/src/components/Settings/Settings.vue index c5f19408..26fc3e8f 100644 --- a/frontend/src/components/Settings/Settings.vue +++ b/frontend/src/components/Settings/Settings.vue @@ -171,6 +171,8 @@ const tabsStructure = computed(() => { name: 'livecode_url', doctype: 'Livecode URL', type: 'text', + description: + 'https://docs.frappe.io/learning/falcon-self-hosting-guide', }, { label: 'Unsplash Access Key', diff --git a/frontend/src/components/VideoBlock.vue b/frontend/src/components/VideoBlock.vue index f1d9e288..3f5963b6 100644 --- a/frontend/src/components/VideoBlock.vue +++ b/frontend/src/components/VideoBlock.vue @@ -135,12 +135,17 @@ }" > @@ -303,7 +308,7 @@ const toggleFullscreen = () => { } const getQuizMarkerStyle = (time) => { - const percentage = ((time - 7) / Math.ceil(duration.value)) * 100 + const percentage = ((time - 5) / Math.ceil(duration.value)) * 100 return { left: `${percentage}%`, } diff --git a/frontend/src/pages/ProgrammingExercises/ProgrammingExerciseSubmission.vue b/frontend/src/pages/ProgrammingExercises/ProgrammingExerciseSubmission.vue index e9434ee8..c6d4d2fa 100644 --- a/frontend/src/pages/ProgrammingExercises/ProgrammingExerciseSubmission.vue +++ b/frontend/src/pages/ProgrammingExercises/ProgrammingExerciseSubmission.vue @@ -284,20 +284,6 @@ watch( ) const loadFalcon = () => { - if (livecodeURL.data.includes('falcon.frappe.io') && !user.data?.is_fc_site) { - falconError.value = __( - 'Only Frappe Cloud sites can use Falcon Live Code. Please migrate your site to Frappe Cloud or setup Falcon Live Code on your own server.' - ) - return - } else if (livecodeURL.data) { - falconURL.value = livecodeURL.data - } else if (!livecodeURL.data && !user.data?.is_fc_site) { - falconError.value = __( - 'Live Code URL is not set. Please set it from the Settings.' - ) - return - } - return new Promise((resolve, reject) => { const script = document.createElement('script') script.src = `${falconURL.value}static/livecode.js`