Skip to content

Commit c98551f

Browse files
committed
chore: setup rtl in index.html and add rtl plugin
1 parent 784b516 commit c98551f

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

desk/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" dir="rtl">
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

desk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"pinia": "^2.0.33",
2525
"sanitize-html": "^2.10.0",
2626
"socket.io-client": "^4.7.2",
27+
"tailwindcss-rtl": "^0.9.0",
2728
"vue": "^3.5.14",
2829
"vue-router": "^4.2.2",
2930
"vuedraggable": "^4.1.0",

desk/src/components/layouts/Sidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="flex select-none flex-col border-r border-gray-200 bg-gray-50 text-base duration-300 ease-in-out"
3+
class="flex select-none flex-col border-r rtl:border-l border-gray-200 bg-gray-50 text-base duration-300 ease-in-out"
44
:style="{
55
'min-width': width,
66
'max-width': width,

desk/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default {
2727
},
2828
plugins: [
2929
require("@tailwindcss/typography"),
30+
require("tailwindcss-rtl"),
3031
function ({ addUtilities }) {
3132
addUtilities({
3233
".hide-scrollbar": {

desk/tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"compilerOptions": {
3+
"esModuleInterop": true,
34
"allowSyntheticDefaultImports": true,
5+
"target": "es2022",
6+
"module": "esnext",
7+
"moduleResolution":"node",
8+
"jsx": "preserve",
49
"baseUrl": ".",
510
"paths": {
611
"@/*": ["./src/*"]

helpdesk/www/helpdesk/index.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from frappe import _
33
from frappe.integrations.frappe_providers.frappecloud_billing import is_fc_site
44
from frappe.utils import cint
5+
from frappe.utils.jinja_globals import is_rtl
56
from frappe.utils.telemetry import capture
67

78
no_cache = 1
@@ -36,6 +37,7 @@ def get_boot():
3637
"session_user": frappe.session.user,
3738
"date_format": frappe.get_system_settings("date_format"),
3839
"time_format": frappe.get_system_settings("time_format"),
40+
"dir": "rtl" if is_rtl() else "ltr",
3941
}
4042
)
4143

0 commit comments

Comments
 (0)