Skip to content

Commit 93b4cc3

Browse files
use variable
1 parent c2da45c commit 93b4cc3

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

src/components/tutor/ThirdStep.vue

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue';
32
import { marked } from 'marked';
4-
import axios from 'axios';
3+
import { syllabus } from './mockedSyllabus.js';
54
defineProps<{
65
visible?: boolean;
76
}>();
8-
const syllabus = ref('');
9-
10-
const setSyllabusValue = (text) => {
11-
syllabus.value = text;
12-
};
13-
14-
axios
15-
.get('./mockedSyllabus.md')
16-
.then((res) => setSyllabusValue(res.data))
17-
.catch((err) => console.log(err));
187
</script>
198
<template>
209
<div class="wrapper" :class="{ visible: visible && syllabus.length }">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Syllabus: Introducing Sociolinguistics
1+
export const syllabus = `# Syllabus: Introducing Sociolinguistics
22
33
## Course Description
44
@@ -63,4 +63,4 @@ This course encourages the development of several competencies, including:
6363
6464
## Competencies Integration
6565
66-
Integrating the GreenComp competencies, students will engage with sustainability themes, reflecting on their values and political agency in relation to language use and social justice, thereby fostering a holistic understanding of sociolinguistics in contemporary society.
66+
Integrating the GreenComp competencies, students will engage with sustainability themes, reflecting on their values and political agency in relation to language use and social justice, thereby fostering a holistic understanding of sociolinguistics in contemporary society.i`;

0 commit comments

Comments
 (0)