Skip to content

Commit 49da78c

Browse files
author
mohammad khazaie
committed
initial project
1 parent af9e125 commit 49da78c

File tree

11 files changed

+114
-79
lines changed

11 files changed

+114
-79
lines changed

package-lock.json

Lines changed: 39 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"@vue/eslint-config-typescript": "^9.1.0",
2929
"eslint": "^7.32.0",
3030
"eslint-plugin-vue": "^8.0.3",
31+
"tailwindcss-rtl": "^0.9.0",
3132
"typescript": "~4.5.5",
3233
"vue-cli-plugin-tailwind": "~3.0.0"
3334
}
34-
}
35+
}

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="icon" href="<%= BASE_URL %>fav.ico">
88
<title><%= htmlWebpackPlugin.options.title %></title>
99
</head>
10-
<body>
10+
<body dir="rtl">
1111
<noscript>
1212
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1313
</noscript>

src/App.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ const layout = computed(
1515
() => `${currentRoute.value.meta.layout || defaultLayout}-layout`
1616
)
1717
</script>
18+
19+
<style>
20+
@font-face {
21+
font-family: "Far_Nazanin";
22+
src: local("Far_Nazanin"),
23+
url('./assets/fonts/Far_Nazanin.ttf') format('truetype');
24+
font-weight: normal;
25+
font-style: normal;
26+
};
27+
* {
28+
font-family: "Far_Nazanin"
29+
};
30+
</style>

src/assets/fonts/Far_Nazanin.ttf

55.4 KB
Binary file not shown.

src/components/Header.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<template>
1+
<template dir="rtl">
22
<header
33
class="
44
flex
@@ -98,7 +98,7 @@
9898
v-show="notificationOpen"
9999
class="
100100
absolute
101-
right-0
101+
left-0
102102
mt-2
103103
w-80
104104
bg-white
@@ -244,10 +244,11 @@
244244
leave-to-class="scale-95 opacity-0"
245245
>
246246
<div
247+
dir="rtl"
247248
v-show="dropdownOpen"
248249
class="
249250
absolute
250-
right-0
251+
left-0
251252
z-20
252253
w-48
253254
py-1

src/components/Sidebar.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<!-- End Backdrop -->
1818

1919
<div
20-
:class="isOpen ? 'translate-x-0 ease-out' : '-translate-x-full ease-in'"
20+
:class="isOpen ? '-translate-x-0 ease-in' : 'translate-x-full ease-out'"
2121
class="
2222
fixed
2323
inset-y-0
24-
left-0
24+
right-0
2525
z-30
2626
w-64
2727
overflow-y-auto
@@ -49,12 +49,12 @@
4949
></path>
5050
</svg>
5151

52-
<span class="mx-2 text-2xl font-semibold text-white">VueBoard</span>
52+
<span class="mx-2 text-2xl font-semibold text-white">پنل ادمین</span>
5353
</div>
5454
</div>
5555

5656
<nav class="mt-10">
57-
<p class="pl-4 text-xs font-semibold mb-4 text-gray-400">GENERAL</p>
57+
<p class="pl-4 text-xs font-semibold mb-4 text-gray-400">عمومی</p>
5858
<router-link
5959
class="flex items-center px-6 py-2 mt-4 duration-200 border-l-4"
6060
:class="[$route.name === 'Dashboard' ? activeClass : inactiveClass]"
@@ -75,10 +75,10 @@
7575
></path>
7676
</svg>
7777

78-
<span class="mx-4">Dashboard</span>
78+
<span class="mx-4">داشبورد</span>
7979
</router-link>
8080
<p class="pl-4 my-2 text-xs font-semibold mb-4 text-gray-400">
81-
Examples
81+
مثال ها
8282
</p>
8383

8484
<router-link
@@ -110,7 +110,7 @@
110110
/>
111111
</svg>
112112

113-
<span class="mx-4">UI Elements</span>
113+
<span class="mx-4">طراحی ها</span>
114114
</router-link>
115115

116116
<router-link
@@ -138,7 +138,7 @@
138138
/>
139139
</svg>
140140

141-
<span class="mx-4">Tables</span>
141+
<span class="mx-4">جدول ها</span>
142142
</router-link>
143143

144144
<router-link
@@ -157,7 +157,7 @@
157157
/>
158158
</svg>
159159

160-
<span class="mx-4">Forms</span>
160+
<span class="mx-4">فرم ها</span>
161161
</router-link>
162162

163163
<router-link
@@ -179,7 +179,7 @@
179179
/>
180180
</svg>
181181

182-
<span class="mx-4">Cards</span>
182+
<span class="mx-4">حساب های اعتباری</span>
183183
</router-link>
184184

185185
<router-link
@@ -204,7 +204,7 @@
204204
/>
205205
</svg>
206206

207-
<span class="mx-4">Modal</span>
207+
<span class="mx-4">مدال</span>
208208
</router-link>
209209
<router-link
210210
class="flex items-center px-6 py-2 mt-4 duration-200 border-l-4"
@@ -221,7 +221,7 @@
221221
<path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z" />
222222
</svg>
223223

224-
<span class="mx-4">Charts</span>
224+
<span class="mx-4">چارت</span>
225225
</router-link>
226226
<router-link
227227
class="flex items-center px-6 py-2 mt-4 duration-200 border-l-4"
@@ -234,14 +234,14 @@
234234
/>
235235
</svg>
236236

237-
<span class="mx-4">Blank</span>
237+
<span class="mx-4">صفحه خالی</span>
238238
</router-link>
239-
<p class="pl-4 text-xs my-2 font-semibold mb-4 text-gray-400">About</p>
239+
<p class="pl-4 text-xs my-2 font-semibold mb-4 text-gray-400">درباره ما</p>
240240
<a
241241
target="_blank"
242242
class="flex items-center px-6 py-2 mt-4 duration-200 border-l-4"
243243
:class="[$route.name === 'Blank' ? activeClass : inactiveClass]"
244-
href="https://github.com/tal7aouy"
244+
href="https://github.com/mohammadkze"
245245
>
246246
<svg
247247
class="w-5 h-5 fill-current"

src/partials/Banner.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<template>
1+
<template dir="rtl">
22
<div
33
v-show="open"
4-
class="fixed bottom-0 right-0 w-full md:bottom-8 md:right-12 md:w-auto z-60"
4+
class="fixed bottom-0 left-0 w-full md:bottom-8 md:right-12 md:w-auto z-60"
55
>
66
<div
77
class="
@@ -10,8 +10,8 @@
1010
p-3
1111
md:rounded
1212
shadow-lg
13-
flex
14-
justify-between
13+
flex
14+
flex-row-reverse
1515
"
1616
>
1717
<div>

0 commit comments

Comments
 (0)