Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix disable for support #80

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix support switch",
"packageName": "@acedatacloud/nexior",
"email": "office@acedata.cloud",
"dependentChangeType": "patch"
}
6 changes: 5 additions & 1 deletion src/components/common/Navigator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ export default defineComponent({
return this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id);
},
showSupport() {
return this.$store?.state?.site?.features?.support?.enabled;
return (
this.$store?.state?.site?.features?.support?.enabled &&
(this.$store?.state?.site?.features?.support?.discord?.enabled ||
this.$store?.state?.site?.features?.support?.wechat?.enabled)
);
},
showDistribution() {
return (
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
98 changes: 51 additions & 47 deletions src/i18n/ar/site.json
Original file line number Diff line number Diff line change
@@ -1,159 +1,163 @@
{
"field.title": {
"message": "عنوان الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.origin": {
"message": "نطاق الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.description": {
"message": "وصف الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.keywords": {
"message": "كلمات مفتاحية للموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.logo": {
"message": "شعار الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.favicon": {
"message": "رمز الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.qr": {
"message": "رمز الاستجابة السريعة",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.url": {
"message": "الرابط",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.admins": {
"message": "معرف مسؤول الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.distributionDefaultInviterId": {
"message": "معرف الشخص المدعو الافتراضي",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.distributionForceInviterId": {
"message": "معرف الشخص المدعو بالقوة",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.featuresChat": {
"message": "الدردشة",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.featuresMidjourney": {
"message": "رحلة الوسط",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.featuresChatdoc": {
"message": "Chatdoc",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.featuresQrart": {
"message": "Qrart",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"field.featuresSupport": {
"message": "الدعم الفني",
"description": "يظهر في مربع النص كعنوان"
"message": "دعم العملاء",
"description": "يظهر في مربع التحرير"
},
"field.featuresI18n": {
"message": "الدعم لعدة لغات",
"description": "يظهر في مربع النص كعنوان"
"message": "دعم اللغات المتعددة",
"description": "يظهر في مربع التحرير"
},
"title.basicConfig": {
"message": "التكوين الأساسي",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.seoConfig": {
"message": "تكوين تحسين محركات البحث",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editAdmins": {
"message": "تحرير المسؤولين",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.featuresConfig": {
"message": "تكوين الميزات",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editTitle": {
"message": "تحرير العنوان",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editOrigin": {
"message": "تحرير النطاق",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editKeywords": {
"message": "تحرير الكلمات المفتاحية",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editLogo": {
"message": "تحرير الشعار",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editFavicon": {
"message": "تحرير الرمز",
"description": "يظهر في مربع النص كعنوان"
"message": "تحرير رمز الموقع",
"description": "يظهر في مربع التحرير"
},
"title.editDescription": {
"message": "تحرير الوصف",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.distributionConfig": {
"message": "تكوين التوزيع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editDistributionDefaultInviterId": {
"message": "تحرير الشخص المدعو الافتراضي",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editDistributionForceInviterId": {
"message": "تحرير الشخص المدعو بالقوة",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editQR": {
"message": "تحرير رمز الاستجابة السريعة",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"title.editUrl": {
"message": "تحرير الرابط",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"placeholder.title": {
"message": "الرجاء إدخال عنوان الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"placeholder.origin": {
"message": "الرجاء إدخال نطاق الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"placeholder.editUrl": {
"message": "الرجاء إدخال الرابط",
"description": "يظهر في مربع التحرير"
},
"placeholder.description": {
"message": "الرجاء إدخال وصف الموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"placeholder.keywords": {
"message": "الرجاء إدخال كلمات مفتاحية للموقع",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"placeholder.editDistributionDefaultInviterId": {
"message": "الرجاء إدخال معرف الشخص المدعو الافتراضي",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"placeholder.editDistributionForceInviterId": {
"message": "الرجاء إدخال معرف الشخص المدعو بالقوة",
"description": "يظهر في مربع النص كعنوان"
"description": "يظهر في مربع التحرير"
},
"message.uploadImageExceed": {
"message": "تجاوز حجم رفع الصورة",
"description": "تنبيه تجاوز حجم رفع الصورة"
"message": "تجاوز حد رفع الصورة",
"description": "تنبيه تجاوز حد رفع الصورة"
},
"message.uploadImageError": {
"message": "خطأ في رفع الصورة",
Expand Down Expand Up @@ -188,7 +192,7 @@
"description": "تلميح معرف المستخدم المدعو بالقوة"
},
"message.originTip": {
"message": "اسم النطاق للموقع، يتم ربط تكوين الموقع بالنطاق، ولا يمكن تغيير اسم النطاق.",
"message": "اسم النطاق للموقع، يتم ربط تكوين الموقع بالنطاق، ولا يمكن تغيير اسم النطاق للموقع.",
"description": "تلميح اسم النطاق للموقع"
},
"message.titleTip": {
Expand All @@ -212,15 +216,15 @@
"description": "تلميح معرف المسؤول للموقع"
},
"message.adminsTip2": {
"message": "يمكنك إضافة أو حذف معرفات المسؤول هنا، يمكنك الانتقال إلى https://auth.acedata.cloud لعرض معرفات المستخدمين.",
"description": "تلميح معرفات المسؤول للموقع"
"message": "يمكنك إضافة أو حذف معرفات المسؤولين هنا، يمكنك الانتقال إلى https://auth.acedata.cloud لعرض معرفات المستخدمين.",
"description": "تلميح معرفات المسؤولين للموقع"
},
"message.keywordsTip": {
"message": "كلمات مفتاحية للموقع، توجد في البيانات الوصفية للموقع، تستخدم لتحسين تصنيف محركات البحث للموقع.",
"description": "تلميح كلمات مفتاحية للموقع"
},
"message.keywordsTip2": {
"message": "يمكنك إضافة أو حذف كلمات مفتاحية للموقع هنا، كلما كانت الكلمات المفتاحية أكثر دقة، كان ذلك أفضل لتحسين تصنيف محركات البحث.",
"message": "يمكنك إضافة أو حذف كلمات مفتاحية للموقع هنا، كلما كانت الكلمات مفتاحية دقيقة، كان ذلك أفضل لتحسين تصنيف محركات البحث.",
"description": "تلميح كلمات مفتاحية للموقع"
},
"message.featuresChat": {
Expand Down
Loading
Loading