chore: setup rtl in index.html and add rtl plugin
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
"pinia": "^2.0.33",
|
||||
"sanitize-html": "^2.10.0",
|
||||
"socket.io-client": "^4.7.2",
|
||||
"tailwindcss-rtl": "^0.9.0",
|
||||
"vue": "^3.5.14",
|
||||
"vue-router": "^4.2.2",
|
||||
"vuedraggable": "^4.1.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
class="flex select-none flex-col border-r border-gray-200 bg-gray-50 text-base duration-300 ease-in-out"
|
||||
class="flex select-none flex-col border-r rtl:border-l border-gray-200 bg-gray-50 text-base duration-300 ease-in-out"
|
||||
:style="{
|
||||
'min-width': width,
|
||||
'max-width': width,
|
||||
|
||||
@@ -27,6 +27,7 @@ export default {
|
||||
},
|
||||
plugins: [
|
||||
require("@tailwindcss/typography"),
|
||||
require("tailwindcss-rtl"),
|
||||
function ({ addUtilities }) {
|
||||
addUtilities({
|
||||
".hide-scrollbar": {
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnreachableCode": false,
|
||||
"target": "es2022",
|
||||
"module": "esnext",
|
||||
"moduleResolution":"node",
|
||||
"jsx": "preserve",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.integrations.frappe_providers.frappecloud_billing import is_fc_site
|
||||
from frappe.utils import cint, get_system_timezone
|
||||
from frappe.utils import cint
|
||||
from frappe.utils.jinja_globals import is_rtl
|
||||
from frappe.utils.telemetry import capture
|
||||
|
||||
no_cache = 1
|
||||
@@ -37,11 +38,7 @@ def get_boot():
|
||||
"agent": get_agent_name(),
|
||||
"date_format": frappe.get_system_settings("date_format"),
|
||||
"time_format": frappe.get_system_settings("time_format"),
|
||||
"timezone": {
|
||||
"system": get_system_timezone(),
|
||||
"user": frappe.db.get_value("User", frappe.session.user, "time_zone")
|
||||
or get_system_timezone(),
|
||||
},
|
||||
"dir": "rtl" if is_rtl() else "ltr",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user