mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 20:06:43 +00:00
resolve merging conflicts
This commit is contained in:
@@ -8,6 +8,7 @@ import MdiGalleryIcon from '~icons/mdi/camera-image'
|
||||
import MdiKanbanIcon from '~icons/mdi/tablet-dashboard'
|
||||
import MdiMapIcon from '~icons/mdi/map-outline'
|
||||
import MdiEyeIcon from '~icons/mdi/eye-circle-outline'
|
||||
import type { Language } from '~/lib'
|
||||
|
||||
export const viewIcons: Record<number | string, { icon: any; color: string }> = {
|
||||
[ViewTypes.GRID]: { icon: MdiGridIcon, color: '#8f96f2' },
|
||||
@@ -26,3 +27,16 @@ export const viewTypeAlias: Record<number, string> = {
|
||||
[ViewTypes.KANBAN]: 'kanban',
|
||||
[ViewTypes.MAP]: 'map',
|
||||
}
|
||||
|
||||
export const isRtlLang = (lang: keyof typeof Language) => ['fa', 'ar'].includes(lang)
|
||||
|
||||
const rtl = 'rtl' as const
|
||||
const ltr = 'ltr' as const
|
||||
|
||||
export function applyLanguageDirection(dir: typeof rtl | typeof ltr) {
|
||||
const oppositeDirection = dir === ltr ? rtl : ltr
|
||||
|
||||
document.body.classList.remove(oppositeDirection)
|
||||
document.body.classList.add(dir)
|
||||
document.body.style.direction = dir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user