Skip to content

Commit 8ec1d47

Browse files
committed
fix: code sorting
1 parent deacf1a commit 8ec1d47

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@
112112
© 2024 Issuefy. All rights reserved.
113113
</div>
114114
<div class="flex space-x-6 items-center">
115-
<a href="https://github.com/2024-Iris" target="_blank" rel="noopener noreferrer"
116-
class="text-gray-500 hover:text-gray-900">About</a>
117-
<a href="mailto:2024irisproject@gmail.com" rel="noopener noreferrer"
118-
class="text-gray-500 hover:text-gray-900">Feedback</a>
115+
<a class="text-gray-500 hover:text-gray-900" href="https://github.com/2024-Iris" rel="noopener noreferrer"
116+
target="_blank">About</a>
117+
<a class="text-gray-500 hover:text-gray-900" href="mailto:2024irisproject@gmail.com"
118+
rel="noopener noreferrer">Feedback</a>
119119
</div>
120120
</div>
121121
</div>

src/components/DashBoardPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
</template>
3131

3232
<script setup>
33-
import { ref, computed } from 'vue';
33+
import {computed, ref} from 'vue';
3434
import axios from 'axios';
35-
import { useAuthStore } from "@/store/pinia";
35+
import {useAuthStore} from "@/store/pinia";
3636
3737
const authStore = useAuthStore();
3838
const stats = ref({

src/components/IssueDetailPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="px-6 py-4 border-b border-gray-200">
2525
<div class="flex-grow overflow-x-auto">
2626
<div class="bg-white rounded-lg mb-2">
27-
<div class="prose max-w-none text-gray-700 markdown-body" :innerHTML="renderMarkdown(issue.body)"></div>
27+
<div :innerHTML="renderMarkdown(issue.body)" class="prose max-w-none text-gray-700 markdown-body"></div>
2828
</div>
2929
<div v-if="issue.labels.length > 0" class="mt-2">
3030
<span v-for="label in issue.labels" :key="label.id"
@@ -47,7 +47,7 @@
4747
<div class="px-6 py-4">
4848
<div class="flex-grow">
4949
<div class="bg-white rounded-lg">
50-
<div class="prose max-w-none text-gray-700 markdown-body" :innerHTML="renderMarkdown(comment.body)"></div>
50+
<div :innerHTML="renderMarkdown(comment.body)" class="prose max-w-none text-gray-700 markdown-body"></div>
5151
</div>
5252
</div>
5353
</div>

src/main.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ authStore.initCredentials()
2727
app.config.globalProperties.$axios = axios
2828

2929
const md = new MarkdownIt({
30-
highlight: function (str, lang) {
31-
if (lang && hljs.getLanguage(lang)) {
32-
try {
33-
return '<pre class="hljs"><code>' +
34-
hljs.highlight(str, {language: lang, ignoreIllegals: true}).value +
35-
'</code></pre>'
36-
} catch (error) {
37-
console.error('Failed to highlight code block:', error)
38-
}
39-
}
40-
return '<pre class="hljs"><code>' + md.utils.escapeHtml(str) + '</code></pre>'
41-
},
42-
html: true,
43-
linkify: true,
44-
typographer: true
30+
highlight: function (str, lang) {
31+
if (lang && hljs.getLanguage(lang)) {
32+
try {
33+
return '<pre class="hljs"><code>' +
34+
hljs.highlight(str, {language: lang, ignoreIllegals: true}).value +
35+
'</code></pre>'
36+
} catch (error) {
37+
console.error('Failed to highlight code block:', error)
38+
}
39+
}
40+
return '<pre class="hljs"><code>' + md.utils.escapeHtml(str) + '</code></pre>'
41+
},
42+
html: true,
43+
linkify: true,
44+
typographer: true
4545
})
4646
app.config.globalProperties.$md = md
4747

0 commit comments

Comments
 (0)