fix: add newline at end of line (#827)

This commit is contained in:
Dominik Pschenitschni
2025-05-24 13:57:47 +02:00
committed by GitHub
parent 5d973b1b86
commit bb9dc03351
234 changed files with 234 additions and 234 deletions

View File

@@ -84,4 +84,4 @@ export default [
// ],
},
]
]

View File

@@ -61,4 +61,4 @@ const state = reactive({
</BaseButton>
</Variant>
</Story>
</template>
</template>

View File

@@ -43,4 +43,4 @@ const emit = defineEmits<{
cursor: not-allowed;
pointer-events: none;
}
</style>
</style>

View File

@@ -94,4 +94,4 @@ const pages = computed(() => createPagination(props.totalPages, props.currentPag
}
}
</style>

View File

@@ -296,4 +296,4 @@ $user-dropdown-width-mobile: 5rem;
height: 40px;
margin-right: .5rem;
}
</style>
</style>

View File

@@ -235,4 +235,4 @@ projectStore.loadAllProjects()
position: relative;
z-index: 1;
}
</style>
</style>

View File

@@ -48,4 +48,4 @@ const enabled = computed(() => configStore.demoModeEnabled && !hide.value)
right: .5rem;
top: .25rem;
}
</style>
</style>

View File

@@ -44,4 +44,4 @@ onMounted(async () => {
{{ $t('home.project.import') }}
</x-button>
</template>
</template>
</template>

View File

@@ -35,4 +35,4 @@ const CustomLogo = computed(() => window.CUSTOM_LOGO_URL)
max-width: 168px;
max-height: 48px;
}
</style>
</style>

View File

@@ -71,4 +71,4 @@ $size: $lineWidth + 1rem;
}
}
}
</style>
</style>

View File

@@ -29,4 +29,4 @@ const computedUrl = computed(() => `${poweredByUrl}&utm_medium=${props.utmMedium
padding-bottom: 1rem;
font-size: .8rem;
}
</style>
</style>

View File

@@ -79,4 +79,4 @@ function refreshApp() {
width: 100%;
text-align: center;
}
</style>
</style>

View File

@@ -32,4 +32,4 @@ import XButton from './Button.vue'
</XButton>
</Variant>
</Story>
</template>
</template>

View File

@@ -114,4 +114,4 @@ const variantClass = computed(() => VARIANT_CLASS_MAP[props.variant])
.underline-none {
text-decoration: none !important;
}
</style>
</style>

View File

@@ -11,4 +11,4 @@ const state = reactive({
<Story :layout="{ type: 'grid', width: '200px' }">
<ColorPicker v-model="state.color" />
</Story>
</template>
</template>

View File

@@ -147,4 +147,4 @@ function close() {
margin: 0 auto 8px;
box-shadow: none;
}
</style>
</style>

View File

@@ -82,4 +82,4 @@ const withoutInitialState = ref<boolean | undefined>()
{{ withoutInitialState }}
</Variant>
</Story>
</template>
</template>

View File

@@ -94,4 +94,4 @@ const emit = defineEmits<{
transition-delay: 0.15s;
}
}
</style>
</style>

View File

@@ -589,4 +589,4 @@ function focus() {
right: .5rem;
color: var(--danger);
}
</style>
</style>

View File

@@ -91,4 +91,4 @@ function handleInput(e: Event) {
right: 1rem;
transform: translateY(-50%);
}
</style>
</style>

View File

@@ -193,4 +193,4 @@ async function toggleReaction(value: string) {
z-index: 99;
margin-top: .5rem;
}
</style>
</style>

View File

@@ -146,4 +146,4 @@ export default {
color: var(--grey-500);
}
}
</style>
</style>

View File

@@ -25,4 +25,4 @@ export default Extension.create({
}),
]
},
})
})

View File

@@ -23,4 +23,4 @@ export async function setLinkInEditor(pos, editor) {
.extendMarkRange('link')
.setLink({href: url, target: '_blank'})
.run()
}
}

View File

@@ -211,4 +211,4 @@ export default function suggestionSetup(t) {
}
},
}
}
}

View File

@@ -143,4 +143,4 @@ async function setApiUrl() {
display: inline-block;
color: var(--link);
}
</style>
</style>

View File

@@ -16,4 +16,4 @@ import BaseButton from '@/components/base/BaseButton.vue'
color: var(--link-hover);
}
}
</style>
</style>

View File

@@ -8,4 +8,4 @@ import Card from './Card.vue'
Card content
</Card>
</Story>
</template>
</template>

View File

@@ -93,4 +93,4 @@ defineEmits<{
display: flex;
justify-content: flex-end;
}
</style>
</style>

View File

@@ -21,4 +21,4 @@ defineProps< {
width: 10px;
flex-shrink: 0;
}
</style>
</style>

View File

@@ -67,4 +67,4 @@ $flash-background-duration: 750ms;
.modal-leave-active .modal-container {
transform: scale(0.9);
}
</style>
</style>

View File

@@ -33,4 +33,4 @@ withDefaults(defineProps<{
.is-done--small {
padding: .2rem .3rem;
}
</style>
</style>

View File

@@ -197,4 +197,4 @@ library.add(faFaceLaugh)
library.add(faExclamation)
// overwriting the wrong types
export default FontAwesomeIcon as unknown as FontAwesomeIconFixedTypes
export default FontAwesomeIcon as unknown as FontAwesomeIconFixedTypes

View File

@@ -34,4 +34,4 @@ const privacyPolicyUrl = computed(() => configStore.legal.privacyPolicyUrl)
color: var(--grey-300);
font-size: 1rem;
}
</style>
</style>

View File

@@ -39,4 +39,4 @@ withDefaults(defineProps<{
}
}
}
</style>
</style>

View File

@@ -2,4 +2,4 @@
<p class="has-text-centered has-text-grey is-italic p-4 mb-4">
<slot />
</p>
</template>
</template>

View File

@@ -55,4 +55,4 @@
.buttons {
margin-top: 0.5rem;
}
</style>
</style>

View File

@@ -55,4 +55,4 @@ function getRouteForPagination(page = 1, type = null) {
},
}
}
</script>
</script>

View File

@@ -52,4 +52,4 @@ function changePage(page: number) {
emit('pageChanged', page)
}
}
</script>
</script>

View File

@@ -41,4 +41,4 @@ kbd {
span {
padding: 0 .25rem;
}
</style>
</style>

View File

@@ -86,4 +86,4 @@ function close() {
justify-content: end;
margin-bottom: .5rem;
}
</style>
</style>

View File

@@ -311,4 +311,4 @@ async function markAllRead() {
}
}
}
</style>
</style>

View File

@@ -163,4 +163,4 @@ function setSubscriptionInStore(sub: ISubscription) {
const authStore = useAuthStore()
const isDefaultProject = computed(() => props.project?.id === authStore.settings.defaultProjectId)
</script>
</script>

View File

@@ -163,4 +163,4 @@ function getViewTitle(view: IProjectView) {
display: block;
}
}
</style>
</style>

View File

@@ -68,4 +68,4 @@ const showDocs = ref(false)
</li>
</ul>
</Expandable>
</template>
</template>

View File

@@ -77,4 +77,4 @@ const filteredProjects = computed(() => {
display: grid;
margin-top: 0; // remove padding coming form .content li + li
}
</style>
</style>

View File

@@ -329,4 +329,4 @@ function prepareFiltersAndLoadTasks() {
margin-bottom: 0;
}
}
</style>
</style>

View File

@@ -421,4 +421,4 @@ const taskDetailRoutes = computed(() => Object.fromEntries(
.filter-container :deep(.popup) {
top: 7rem;
}
</style>
</style>

View File

@@ -320,4 +320,4 @@ function handleBubbleSave() {
width: 100%;
}
}
</style>
</style>

View File

@@ -684,4 +684,4 @@ function reset() {
align-items: center;
}
}
</style>
</style>

View File

@@ -383,4 +383,4 @@ async function find(query: string) {
return typeof sharables.value.find(s => s.id === m.id) === 'undefined'
})
}
</script>
</script>

View File

@@ -285,4 +285,4 @@ const dateIsToday = computed(() => (date: Date) => {
margin-top: 4px;
}
}
</style>
</style>

View File

@@ -91,4 +91,4 @@ defineEmits<{
height: 18px;
z-index: 100;
}
</style>
</style>

View File

@@ -477,4 +477,4 @@ async function setCoverImage(attachment: IAttachment | null) {
border-radius: 4px;
font-size: .75rem;
}
</style>
</style>

View File

@@ -81,4 +81,4 @@ circle {
stroke: var(--primary);
}
}
</style>
</style>

View File

@@ -480,4 +480,4 @@ function getCommentUrl(commentId: string) {
.comments-container {
scroll-margin-top: 4rem;
}
</style>
</style>

View File

@@ -66,4 +66,4 @@ const doneFormatted = computed(() => formatDateLong(props.task.doneAt))
color: var(--grey-500);
text-align: right;
}
</style>
</style>

View File

@@ -177,4 +177,4 @@ $defer-task-max-width: 350px + 100px;
}
}
}
</style>
</style>

View File

@@ -48,4 +48,4 @@ img {
.icon-wrapper {
color: var(--grey-500);
}
</style>
</style>

View File

@@ -205,4 +205,4 @@ async function cancel(element: HTMLInputElement) {
flex-direction: row;
}
}
</style>
</style>

View File

@@ -386,4 +386,4 @@ $task-background: var(--white);
width: 100%;
height: 0.5rem;
}
</style>
</style>

View File

@@ -22,4 +22,4 @@ defineProps<{
margin-left: 0.5rem;
}
}
</style>
</style>

View File

@@ -33,4 +33,4 @@ const displayLabels = computed(() =>
margin-bottom: .125rem;
}
}
</style>
</style>

View File

@@ -69,4 +69,4 @@ const minimumPriority = computed(() => {
width: auto !important;
padding-right: .5rem;
}
</style>
</style>

View File

@@ -464,4 +464,4 @@ async function toggleTaskDone(task: ITask) {
height: 18px; // The exact height of the checkbox in the container
margin-right: .75rem;
}
</style>
</style>

View File

@@ -141,4 +141,4 @@ function updateData() {
height: auto;
}
}
</style>
</style>

View File

@@ -130,4 +130,4 @@ function removeReminderByIndex(index: number) {
padding-left: .5rem;
line-height: 1;
}
</style>
</style>

View File

@@ -168,4 +168,4 @@ p {
.input {
min-width: 2rem;
}
</style>
</style>

View File

@@ -72,4 +72,4 @@ export function useAutoHeightTextarea(value: MaybeRefOrGetter<string>) {
textarea,
height,
}
}
}

View File

@@ -16,4 +16,4 @@ export function useBodyClass(className: string, defaultValue = false) {
tryOnBeforeUnmount(() => isActive.value && document.body.classList.remove(className))
return isActive
}
}

View File

@@ -46,4 +46,4 @@ export const useColorScheme = createSharedComposable(() => {
store,
isDark: readonly(isDark),
}
})
})

View File

@@ -44,4 +44,4 @@ export function useCopyToClipboard() {
error(t('misc.copyError'))
}
}
}
}

View File

@@ -23,4 +23,4 @@ export function useDaytimeSalutation() {
} as Record<Daytime, () => string>
return computed(() => name.value ? salutations[daytime.value]() : undefined)
}
}

View File

@@ -10,4 +10,4 @@ export function useOnline(options?: ConfigurableWindow) {
return ref(true)
}
return isOnline
}
}

View File

@@ -32,4 +32,4 @@ export function useRedirectToLastVisited() {
redirectIfSaved,
getLastVisitedRoute,
}
}
}

View File

@@ -43,4 +43,4 @@ export function useRenewTokenOnFocus() {
console.debug('renewed token')
}
})
}
}

View File

@@ -71,4 +71,4 @@ export function useRouteFilters<CurrentFilters extends Filters>(
hasDefaultFilters,
setDefaultFilters,
}
}
}

View File

@@ -91,4 +91,4 @@ export function useRouteWithModal() {
}
return {routeWithModal, currentModal, closeModal}
}
}

View File

@@ -176,4 +176,4 @@ export function useTaskList(
params,
sortByParam: sortBy,
}
}
}

View File

@@ -18,4 +18,4 @@ export function useTitle(
)
return useTitleVueUse(completeTitle, options)
}
}

View File

@@ -9,4 +9,4 @@ export const MILLISECONDS_A_SECOND = 1000
export const MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND
export const MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND
export const MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND
export const MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND
export const MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND

View File

@@ -7,4 +7,4 @@ export const PRIORITIES = {
'DO_NOW': 5,
} as const
export type Priority = typeof PRIORITIES[keyof typeof PRIORITIES]
export type Priority = typeof PRIORITIES[keyof typeof PRIORITIES]

View File

@@ -4,4 +4,4 @@ export const RIGHTS = {
'ADMIN': 2,
} as const
export type Right = typeof RIGHTS[keyof typeof RIGHTS]
export type Right = typeof RIGHTS[keyof typeof RIGHTS]

View File

@@ -13,4 +13,4 @@ const focus = <Directive<HTMLElement,string>>{
},
}
export default focus
export default focus

View File

@@ -36,4 +36,4 @@ export async function uploadFiles(
export function generateAttachmentUrl(taskId: number, attachmentId: number) {
return `${window.API_URL}/tasks/${taskId}/attachments/${attachmentId}`
}
}

View File

@@ -18,4 +18,4 @@ export const calculateItemPosition = (
// If we have both a task before and after it, we actually calculate the position
return positionBefore + (positionAfter - positionBefore) / 2
}
}

View File

@@ -24,4 +24,4 @@ export const closeWhenClickedOutside = (event: MouseEvent, rootElement: HTMLElem
}
closeCallback()
}
}

View File

@@ -23,4 +23,4 @@ export function colorIsDark(color: string | undefined) {
Math.pow(b/255.0,2.2) * 0.0722
return Math.pow(Ys,0.678) >= 0.5
}
}

View File

@@ -4,4 +4,4 @@ export const downloadBlob = (url: string, filename: string) => {
link.setAttribute('download', filename)
link.click()
window.URL.revokeObjectURL(url)
}
}

View File

@@ -11,4 +11,4 @@ export function getFullBaseUrl() {
// https://github.com/vitejs/vite/blob/b35fe883fdc699ac1450882562872095abe9959b/packages/vite/src/node/config.ts#L643
// See this comment: https://github.com/vitejs/vite/pull/10723#issuecomment-1303627478
return rawBase.endsWith('/') ? rawBase : rawBase + '/'
}
}

View File

@@ -15,4 +15,4 @@ export function getHumanSize(inputSize: number) {
}
return Number(Math.round(Number(size + 'e2')) + 'e-2') + ' ' + SIZES[iterator]
}
}

View File

@@ -21,4 +21,4 @@ export function getInheritedBackgroundColor(el: HTMLElement): string {
}
return getInheritedBackgroundColor(el.parentElement)
}
}

View File

@@ -36,4 +36,4 @@ export default function inputPrompt(pos: ClientRect, oldValue: string = ''): Pro
})
})
}
}

View File

@@ -39,4 +39,4 @@ export function getProjectViewId(projectId: IProject['id']): number {
return 0
}
return projectViewSettings[projectId]
}
}

View File

@@ -2,4 +2,4 @@ const DEFAULT_ID_LENGTH = 9
export function createRandomID(idLength = DEFAULT_ID_LENGTH) {
return Math.random().toString(36).slice(2, idLength)
}
}

View File

@@ -12,4 +12,4 @@ export const replaceAll = (str: string, search: string, replace: string) => {
const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')
const reg = new RegExp(esc, 'ig')
return str.replace(reg, replace)
}
}

View File

@@ -16,4 +16,4 @@ export function scrollIntoView(el: HTMLElement | null | undefined) {
inline: 'nearest',
})
}
}
}

View File

@@ -2,4 +2,4 @@ export function setTitle(title : undefined | string) {
document.title = (typeof title === 'undefined' || title === '')
? 'Vikunja'
: `${title} | Vikunja`
}
}

View File

@@ -21,4 +21,4 @@ export function calculateNearestHours(currentDate: Date = new Date()): number {
// Same case as in the first if, will never be called
return 9
}
}

View File

@@ -66,4 +66,4 @@ export function useWeekDayFromDate() {
const dateTimeFormatter = useDateTimeFormatter({weekday: 'short'})
return computed(() => (date: Date) => dateTimeFormatter.value.format(date))
}
}

Some files were not shown because too many files have changed in this diff Show More