Skip to content

Commit

Permalink
Merge branch 'refactor-new-issues' into 'master'
Browse files Browse the repository at this point in the history
Refactor issues

See merge request mohit.panjvani/crater-web!241
  • Loading branch information
mohitpanjwani committed May 30, 2020
2 parents ca90ff2 + 09bbf98 commit db622e7
Show file tree
Hide file tree
Showing 21 changed files with 186 additions and 26 deletions.
4 changes: 2 additions & 2 deletions public/assets/css/crater.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/assets/js/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/assets/js/app.js": "/assets/js/app.js?id=2521d0dcc4cb4e4975a5",
"/assets/css/crater.css": "/assets/css/crater.css?id=84a4eeb53b0e6a937e44"
"/assets/js/app.js": "/assets/js/app.js?id=08d4f6357dbe7738effa",
"/assets/css/crater.css": "/assets/css/crater.css?id=a00ceebbb86dd82a024b"
}
13 changes: 12 additions & 1 deletion resources/assets/js/components/base/BaseInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:readonly="readOnly"
:name="name"
:tabindex="tabIndex"
:class="[{'input-field-left-icon': icon && isAlignLeftIcon ,'input-field-right-icon': icon && !isAlignLeftIcon ,'invalid': isFieldValid, 'disabled': disabled, 'small-input': small}, inputClass]"
:class="[{ 'input-field-left-icon': icon && isAlignLeftIcon, 'input-field-right-icon': (icon && !isAlignLeftIcon) || isInputGroup, invalid: isFieldValid, disabled: disabled, 'small-input': small}, inputClass]"
:placeholder="placeholder"
:autocomplete="autocomplete"
class="input-field"
Expand All @@ -23,6 +23,9 @@
<font-awesome-icon :icon="!showPass ?'eye': 'eye-slash'" class="right-icon" />
</div>
<font-awesome-icon v-if="icon && !isAlignLeftIcon" :icon="icon" class="right-icon" />
<span v-if="isInputGroup" class="right-input-group-text">
{{ inputGroupText }}
</span>
</div>
</template>

Expand Down Expand Up @@ -84,6 +87,14 @@ export default {
showPassword: {
type: Boolean,
default: false
},
isInputGroup: {
type: Boolean,
default: false,
},
inputGroupText: {
type: String,
default: null,
}
},
data () {
Expand Down
39 changes: 36 additions & 3 deletions resources/assets/js/plugins/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"to_date": "إلى تاريخ",
"from": "من",
"to": "إلى",
"sort_by": "ترتيب حسب",
"ascending": "تصاعدي",
"descending": "تنازلي",
"subject": "موضوع",
"message": "رسالة",
"go_back": "إلى الخلف",
"back_to_login": "العودة إلى تسجيل الدخول؟",
"home": "الرئيسية",
Expand Down Expand Up @@ -112,8 +117,8 @@
"tax_types": {
"name": "الاسم",
"description": "الوصف",
"percent": "Percent",
"compound_tax": "Compound Tax"
"percent": "نسبه مئويه",
"compound_tax": "الضريبة المركبة"
},
"customers": {
"title": "العملاء",
Expand Down Expand Up @@ -329,6 +334,9 @@
"no_matching_invoices": "لا يوجد فواتير مطابقة!",
"mark_as_sent_successfully": "تم تحديد الفاتورة كمرسلة بنجاح",
"send_invoice_successfully": "تم إرسال الفاتورة بنجاح",
"cloned_successfully": "تم استنساخ الفاتورة بنجاح",
"clone_invoice": "استنساخ الفاتورة",
"confirm_clone": "سيتم استنساخ هذه الفاتورة في فاتورة جديدة",
"item": {
"title": "اسم الصنف",
"description": "الوصف",
Expand Down Expand Up @@ -660,7 +668,29 @@
"autogenerate_payment_number": "ترقيم آلي للمدفوعات",
"payment_setting_description": "تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الدفعة تلقائيًا في كل مرة تقوم فيها بإنشاء دفعة جديدة.",
"enter_payment_prefix": "أدخل بادئة رقم الدفعة",
"payment_setting_updated": "تم تحديث إعدادات الدفعة بنجاح"
"payment_setting_updated": "تم تحديث إعدادات الدفعة بنجاح",
"payment_mode": "طريقة الدفع",
"add_payment_mode": "أضف وضع الدفع",
"edit_payment_mode": "تحرير وضع الدفع",
"mode_name": "اسم الوضع",
"payment_mode_added": "تمت إضافة وضع الدفع",
"payment_mode_updated": "تم تحديث وضع الدفع",
"payment_mode_confirm_delete": "لن تتمكن من استعادة وضع الدفع هذا",
"already_in_use": "وضع الدفع قيد الاستخدام بالفعل",
"deleted_message": "تم حذف وضع الدفع بنجاح"
},

"items": {
"title": "العناصر",
"units": "الوحدات",
"add_item_unit": "إضافة وحدة عنصر",
"edit_item_unit": "تحرير وحدة العناصر",
"unit_name": "إسم الوحدة",
"item_unit_added": "تمت إضافة وحدة العنصر",
"item_unit_updated": "تم تحديث وحدة العنصر",
"item_unit_confirm_delete": "لن تتمكن من استرداد وحدة العنصر هذه",
"already_in_use": "وحدة العنصر قيد الاستخدام بالفعل",
"deleted_message": "تم حذف وحدة العنصر بنجاح"
}
},
"account_settings": {
Expand Down Expand Up @@ -695,6 +725,7 @@
"tax_types": {
"title": "أنواع الضرائب",
"add_tax": "أضف ضريبة",
"edit_tax": "تحرير الضريبة",
"description": "يمكنك إضافة أو إزالة الضرائب كما يحلو لك. النظام يدعم الضرائب على العناصر الفردية وكذلك على الفاتورة.",
"add_new_tax": "إضافة ضريبة جديدة",
"tax_settings": "إعدادات الضريبة",
Expand All @@ -715,6 +746,8 @@
"action": "إجراء",
"description": "الفئات مطلوبة لإضافة إدخالات النفقات. يمكنك إضافة أو إزالة هذه الفئات وفقًا لتفضيلاتك.",
"add_new_category": "إضافة فئة جديدة",
"add_category": "إضافة فئة",
"edit_category": "تحرير الفئة",
"category_name": "اسم الفئة",
"category_description": "الوصف",
"created_message": "تم إنشاء نوع النفقات بنجاح",
Expand Down
6 changes: 6 additions & 0 deletions resources/assets/js/plugins/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@
"expenses_list": "Liste der Ausgaben",
"expense_title": "Titel",
"contact": "Kontakt",
"customer": "Kundin",
"category": "Kategorie",
"from_date": "Von Datum",
"to_date": "bis Datum",
Expand Down Expand Up @@ -668,6 +669,7 @@
"payment_setting_updated": "Zahlungseinstellung erfolgreich aktualisiert",
"payment_mode": "Zahlungsmethode",
"add_payment_mode": "Zahlungsmethode hinzufügen",
"edit_payment_mode": "Zahlungsmodus bearbeiten",
"mode_name": "Methodenname",
"payment_mode_added": "Zahlungsmethode hinzugefügt",
"payment_mode_updated": "Zahlungsmethode aktualisiert",
Expand All @@ -679,6 +681,7 @@
"title": "Artikel",
"units": "Einheiten",
"add_item_unit": "Artikeleinheit hinzufügen",
"edit_item_unit": "Elementeinheit bearbeiten",
"unit_name": "Einheitname",
"item_unit_added": "Artikeleinheit hinzugefügt",
"item_unit_updated": "Artikeleinheit aktualisiert",
Expand Down Expand Up @@ -719,6 +722,7 @@
"tax_types": {
"title": "Steuersätze",
"add_tax": "Steuersätze hinzufügen",
"edit_tax": "Steuer bearbeiten",
"description": "Sie können Steuern nach Belieben hinzufügen oder entfernen. Crater unterstützt Steuern auf einzelne Artikel sowie auf die Rechnung.",
"add_new_tax": "Neuen Steuersatz hinzufügen",
"tax_settings": "Einstellungen Steuersatz",
Expand All @@ -739,6 +743,8 @@
"action": "Aktion",
"description": "Für das Hinzufügen von Ausgabeneinträgen sind Kategorien erforderlich. Sie können diese Kategorien nach Ihren Wünschen hinzufügen oder entfernen.",
"add_new_category": "Neue Kategorie hinzufügen",
"add_category": "Kategorie hinzufügen",
"edit_category": "Kategorie bearbeiten",
"category_name": "Kategorie Name",
"category_description": "Beschreibung",
"created_message": "Ausgabenkategorie erfolgreich erstellt",
Expand Down
5 changes: 5 additions & 0 deletions resources/assets/js/plugins/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@
"payment_setting_updated": "Payment Setting updated successfully",
"payment_mode": "Payment Mode",
"add_payment_mode": "Add Payment Mode",
"edit_payment_mode": "Edit Payment Mode",
"mode_name": "Mode Name",
"payment_mode_added": "Payment Mode Added",
"payment_mode_updated": "Payment Mode Updated",
Expand All @@ -693,6 +694,7 @@
"title": "Items",
"units": "units",
"add_item_unit": "Add Item Unit",
"edit_item_unit": "Edit Item Unit",
"unit_name": "Unit Name",
"item_unit_added": "Item Unit Added",
"item_unit_updated": "Item Unit Updated",
Expand Down Expand Up @@ -733,6 +735,7 @@
"tax_types": {
"title": "Tax Types",
"add_tax": "Add Tax",
"edit_tax": "Edit Tax",
"description": "You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.",
"add_new_tax": "Add New Tax",
"tax_settings": "Tax Settings",
Expand All @@ -753,6 +756,8 @@
"action": "Action",
"description": "Categories are required for adding expense entries. You can Add or Remove these categories according to your preference.",
"add_new_category": "Add New Category",
"add_category": "Add Category",
"edit_category": "Edit Category",
"category_name": "Category Name",
"category_description": "Description",
"created_message": "Expense Category created successfully",
Expand Down
42 changes: 39 additions & 3 deletions resources/assets/js/plugins/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"to_date": "Hasta la fecha",
"from": "De",
"to": "A",
"sort_by": "Ordenar por",
"ascending": "Ascendente",
"descending": "Descendente",
"subject": "Sujeta",
"message": "Mensaje",
"go_back": "Volver",
"back_to_login": "¿Volver al inicio de sesión?",
"home": "Inicio",
Expand Down Expand Up @@ -62,6 +67,8 @@
"four_zero_four": "404",
"you_got_lost": "Whoops! ¡Te perdiste!",
"go_home": "Volver al Inicio",
"test_mail_conf": "Probar configuración de correo",
"send_mail_successfully": "El correo enviado con éxito",
"setting_updated": "Configuración actualizada con éxito",
"select_state": "Seleccionar estado",
"select_country": "Seleccionar país",
Expand Down Expand Up @@ -180,7 +187,7 @@
"no_items": "¡Aún no hay artículos!",
"list_of_items": "Esta sección contendrá la lista de artículos.",
"select_a_unit": "seleccionar unidad",

"taxes": "Impuestos",
"item_attached_message": "No se puede eliminar un elemento que ya está en uso.",
"confirm_delete": "No podrá recuperar este artículo | No podrás recuperar estos elementos",
"created_message": "Artículo creado con éxito",
Expand Down Expand Up @@ -329,6 +336,9 @@
"no_matching_invoices": "¡No hay facturas coincidentes con la selección!",
"mark_as_sent_successfully": "Factura marcada como enviada con éxito",
"send_invoice_successfully": "Factura enviada exitosamente",
"cloned_successfully": "Factura clonada exitosamente",
"clone_invoice": "Factura de clonación",
"confirm_clone": "Esta factura se clonará en una nueva factura.",
"item": {
"title": "Título del artículo",
"description": "Descripción",
Expand Down Expand Up @@ -393,6 +403,7 @@
"edit_payment": "Editar pago",
"view_payment": "Ver pago",
"add_new_payment": "Agregar nuevo pago",
"send_payment_receipt": "Enviar recibo de pago",
"save_payment": "Guardar pago",
"update_payment": "Actualizar pago",
"payment": "Pago | Pagos",
Expand Down Expand Up @@ -653,13 +664,35 @@
},

"payments": {
"title": "Payments",
"title": "Pagos",
"payment_prefix": "Prefijo de los pagos",
"payment_settings": "Ajustes de pagos",
"autogenerate_payment_number": "Autogenerar número de pago",
"payment_setting_description": "Desactive esto, si no desea generar automáticamente números de pago cada vez que cree un nuevo pago.",
"enter_payment_prefix": "Introduzca el prefijo de pago",
"payment_setting_updated": "Configuración de pagos actualizada correctamente"
"payment_setting_updated": "Configuración de pagos actualizada correctamente",
"payment_mode": "Modo de pago",
"add_payment_mode": "Agregar modo de pago",
"edit_payment_mode": "Editar modo de pago",
"mode_name": "Nombre del modo",
"payment_mode_added": "Modo de pago agregado",
"payment_mode_updated": "Modo de pago actualizado",
"payment_mode_confirm_delete": "No podrá recuperar este modo de pago",
"already_in_use": "El modo de pago ya está en uso",
"deleted_message": "Modo de pago eliminado correctamente"
},

"items": {
"title": "Artículos",
"units": "unidades",
"add_item_unit": "Agregar unidad de artículo",
"edit_item_unit": "Editar unidad de artículo",
"unit_name": "Nombre de la unidad",
"item_unit_added": "Unidad de artículo agregada",
"item_unit_updated": "Unidad de artículo actualizada",
"item_unit_confirm_delete": "No podrás recuperar esta unidad de artículo",
"already_in_use": "Unidad de artículo ya está en uso",
"deleted_message": "Unidad de elemento eliminada correctamente"
}
},
"account_settings": {
Expand Down Expand Up @@ -694,6 +727,7 @@
"tax_types": {
"title": "Tipos de impuestos",
"add_tax": "Agregar impuesto",
"edit_tax": "Editar impuesto",
"description": "Puede agregar o eliminar impuestos a su gusto. Crater admite impuestos sobre artículos individuales, así como sobre la factura.",
"add_new_tax": "Agregar nuevo impuesto",
"tax_settings": "Configuraciones de impuestos",
Expand All @@ -714,6 +748,8 @@
"action": "Acción",
"description": "Se requieren categorías para agregar entradas de gastos. Puede Agregar o Eliminar estas categorías según su preferencia.",
"add_new_category": "Añadir nueva categoria",
"add_category": "Añadir categoría",
"edit_category": "Editar categoria",
"category_name": "nombre de la categoría",
"category_description": "Descripción",
"created_message": "Categoría de gastos creada con éxito",
Expand Down
7 changes: 6 additions & 1 deletion resources/assets/js/plugins/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"no_items": "Aucun article pour le moment!",
"list_of_items": "Cette section contiendra la liste des éléments.",
"select_a_unit": "Sélectionnez l'unité",

"taxes": "Les taxes",
"item_attached_message": "Impossible de supprimer un élément déjà utilisé",
"confirm_delete": "Vous ne pourrez pas récupérer cet article | Vous ne pourrez pas récupérer ces objets",
"created_message": "Article créé avec succès",
Expand Down Expand Up @@ -683,6 +683,7 @@
"payment_setting_updated": "Les paramètres de paiement ont bien été mis à jour",
"payment_mode": "Mode de paiement",
"add_payment_mode": "Ajouter un mode de paiement",
"edit_payment_mode": "Modifier le mode de paiement",
"mode_name": "Nom",
"payment_mode_added": "Mode de paiement ajouté",
"payment_mode_updated": "Mode de paiement mis à jour",
Expand All @@ -695,6 +696,7 @@
"title": "Articles",
"units": "Unités",
"add_item_unit": "Ajouter une unité",
"edit_item_unit": "Modifier l'unité d'élément",
"unit_name": "Nom",
"item_unit_added": "Unité ajouté",
"item_unit_updated": "Unité mis à jour",
Expand Down Expand Up @@ -737,6 +739,7 @@
"tax_types": {
"title": "Types de taxe",
"add_tax": "Ajouter une taxe",
"edit_tax": "Modifier la taxe",
"description": "Vous pouvez ajouter ou supprimer des taxes à votre guise. Crater prend en charge les taxes sur les articles individuels ainsi que sur la facture.",
"add_new_tax": "Ajouter une nouvelle taxe",
"tax_settings": "Paramètres de taxe",
Expand All @@ -757,6 +760,8 @@
"action": "action",
"description": "Des catégories sont requises pour ajouter des entrées de dépenses. Vous pouvez ajouter ou supprimer ces catégories selon vos préférences.",
"add_new_category": "Ajouter une nouvelle catégorie",
"add_category": "Adicionar categoria",
"edit_category": "Editar categoria",
"category_name": "Nom de catégorie",
"category_description": "Description",
"created_message": "Catégorie de dépenses créée avec succès",
Expand Down
6 changes: 6 additions & 0 deletions resources/assets/js/plugins/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
"expense_title": "Titolo",
"contact": "Contatto",
"category": "Categoria",
"customer": "Cliente",
"from_date": "Dalla Data",
"to_date": "Alla Data",
"expense_date": "Data",
Expand Down Expand Up @@ -677,6 +678,7 @@
"payment_setting_updated": "Impostazioni di pagamento aggiornate con successo",
"payment_mode": "Modalità di pagamento",
"add_payment_mode": "Aggiungi modalità di pagamento",
"edit_payment_mode": "Modifica modalità di pagamento",
"mode_name": "Nome modalità",
"payment_mode_added": "Modalità di pagamento aggiunta",
"payment_mode_updated": "Modalità di pagamento aggiornata",
Expand All @@ -689,6 +691,7 @@
"title": "Items",
"units": "unità",
"add_item_unit": "Aggiungi Unità Item",
"edit_item_unit": "Modifica unità articolo",
"unit_name": "Nome",
"item_unit_added": "Unità aggiunta",
"item_unit_updated": "Unità aggiornata",
Expand Down Expand Up @@ -729,6 +732,7 @@
"tax_types": {
"title": "Tipi di Imposta",
"add_tax": "Aggiungi Imposta",
"edit_tax": "Modifica imposta",
"description": "Puoi aggiongere e rimuovere imposte a piacimento. Vengono supportate Tasse differenti per prodotti/servizi specifici esattamento come per le fatture.",
"add_new_tax": "Aggiungi nuova imposta",
"tax_settings": "Impostazioni Imposte",
Expand All @@ -749,6 +753,8 @@
"action": "Azione",
"description": "Le categorie sono necessarie per aggiungere delle voci di spesa. Puoi aggiungere o eliminare queste categorie in base alle tue preferenze.",
"add_new_category": "Aggiungi nuova categoria",
"add_category": "Aggiungi categoria",
"edit_category": "Modifica categoria",
"category_name": "Nome Categoria",
"category_description": "Descrizione",
"created_message": "Categoria di spesa creata con successo",
Expand Down
Loading

0 comments on commit db622e7

Please sign in to comment.