mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 17:03:11 +02:00
Enable vue/require-typed-ref eslint rule
This commit is contained in:
3 files changed
+17
-9
No files matched your search
@@ -3,16 +3,17 @@ import {SvgIcon} from '../svg.ts';
|
||||
import {GET} from '../modules/fetch.ts';
|
||||
import {getIssueColor, getIssueIcon} from '../features/issue.ts';
|
||||
import {computed, onMounted, shallowRef} from 'vue';
|
||||
import type {Issue} from '../types.ts';
|
||||
|
||||
const props = defineProps<{
|
||||
repoLink: string,
|
||||
loadIssueInfoUrl: string,
|
||||
}>();
|
||||
|
||||
const loading = shallowRef(false);
|
||||
const issue = shallowRef(null);
|
||||
const renderedLabels = shallowRef('');
|
||||
const errorMessage = shallowRef(null);
|
||||
const loading = shallowRef<boolean>(false);
|
||||
const issue = shallowRef<Issue>(null);
|
||||
const renderedLabels = shallowRef<string>('');
|
||||
const errorMessage = shallowRef<string | null>(null);
|
||||
|
||||
const createdAt = computed(() => {
|
||||
return new Date(issue.value.created_at).toLocaleDateString(undefined, {year: 'numeric', month: 'short', day: 'numeric'});
|
||||
|
||||
Reference in new issue
Block a user