Skip to content

Commit

Permalink
FEAT: fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelilahOu committed May 30, 2024
1 parent 1de080e commit ad93a4a
Show file tree
Hide file tree
Showing 34 changed files with 466 additions and 477 deletions.
Binary file modified src-tauri/stocker.sqlite
Binary file not shown.
9 changes: 6 additions & 3 deletions src/components/ClientCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ const createNewClient = async (client: ClientT) => {
})}`,
);
//
toast(t("notifications.client.created", { name: client.fullname }), {
closeButton: true,
});
toast.success(
t("notifications.client.created", { name: client.fullname }),
{
closeButton: true,
},
);
// toggle refresh
updateQueryParams({
refresh: "refresh-create-" + Math.random() * 9999,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ClientDelete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const deleteTheClient = async (id: string, fullname: string) => {
//
info(`DELETE CLIENT: ${id}`);
//
toast(t("notifications.client.deleted", { name: fullname }), {
toast.success(t("notifications.client.deleted", { name: fullname }), {
closeButton: true,
});
// toggle refresh
Expand Down
9 changes: 6 additions & 3 deletions src/components/ClientUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ const updateTheClient = async (client: ClientT) => {
})}`,
);
//
toast(t("notifications.client.updated", { name: client.fullname }), {
closeButton: true,
});
toast.success(
t("notifications.client.updated", { name: client.fullname }),
{
closeButton: true,
},
);
// toggle refresh
updateQueryParams({
refresh: "refresh-update-" + Math.random() * 9999,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ const updateTheProduct = async ({ quantity }: z.infer<typeof stock>) => {
})}`,
);
//
toast(t("notifications.product.updated", { name: quantity }), {
closeButton: true,
});
toast.success(
t("notifications.product.updated", { name: route.query.name }),
{
closeButton: true,
},
);
// toggle refresh
updateQueryParams({
refresh: "refresh-update-" + Math.random() * 9999,
Expand Down
4 changes: 2 additions & 2 deletions src/components/InvoiceCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const createInvoice = async () => {
//
info(`CREATE INVOICE: ${JSON.stringify(invoice)}`);
//
toast(t("notifications.invoice.created"), {
toast.success(t("notifications.invoice.created"), {
closeButton: true,
});
// toggle refresh
Expand Down Expand Up @@ -218,7 +218,7 @@ const hideModal = () => {
</Input>
<Trash2
@click="deleteInvoiceItem(index)"
class="cursor-pointer"
class="cursor-pointer m-auto"
:size="20"
/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/InvoiceDelete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const deleteTheInvoice = async (id: string) => {
//
info(`DELETE INVOICE: ${id}`);
//
toast(t("notifications.invoice.deleted"), {
toast.success(t("notifications.invoice.deleted"), {
closeButton: true,
});
// toggle refresh
Expand Down
4 changes: 2 additions & 2 deletions src/components/InvoiceUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const updateTheInvoices = async () => {
//
info(`UPDATE INVOICE: ${JSON.stringify(invoice)}`);
//
toast(t("notifications.invoice.updated"), {
toast.success(t("notifications.invoice.updated"), {
closeButton: true,
});
// toggle refresh
Expand Down Expand Up @@ -256,7 +256,7 @@ const deleteInvoiceItem = (index: number) => {
</Input>
<Trash2
@click="deleteInvoiceItem(index)"
class="cursor-pointer"
class="cursor-pointer m-auto"
:size="20"
/>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/components/OrderCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const createOrder = async () => {
//
info(`CREATE ORDER: ${JSON.stringify(order)}`);
//
toast(t("notifications.order.created"), {
toast.success(t("notifications.order.created"), {
closeButton: true,
});
// toggle refresh
Expand Down Expand Up @@ -211,7 +211,7 @@ const hideModal = () => {
</Input>
<Trash2
@click="deleteOrderItem(index)"
class="cursor-pointer"
class="cursor-pointer m-auto"
:size="20"
/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/OrderDelete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const deleteTheOrders = async (id: string) => {
//
info(`DELETE ORDER: ${id}`);
//
toast(t("notifications.order.deleted"), {
toast.success(t("notifications.order.deleted"), {
closeButton: true,
});
// toggle refresh
Expand Down
4 changes: 2 additions & 2 deletions src/components/OrderUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const updateTheOrders = async () => {
//
info(`UPDATE ORDER: ${JSON.stringify(order)}`);
//
toast(t("notifications.order.updated"), {
toast.success(t("notifications.order.updated"), {
closeButton: true,
});
// toggle refresh
Expand Down Expand Up @@ -246,7 +246,7 @@ const deleteOrderItem = (index: number) => {
</Input>
<Trash2
@click="deleteOrderItem(index)"
class="cursor-pointer"
class="cursor-pointer m-auto"
:size="20"
/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const createNewProduct = async (product: ProductT) => {
})}`,
);
//
toast(t("notifications.product.created", { name: product.name }), {
toast.success(t("notifications.product.created", { name: product.name }), {
closeButton: true,
});
// toggle refresh
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductDelete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const deleteTheProduct = async (id: string, name: string) => {
await invoke<Res<string>>("delete_product", { id });
info(`DELETE PRODUCT: ${id}`);
//
toast(t("notifications.product.deleted", { name }), {
toast.success(t("notifications.product.deleted", { name }), {
closeButton: true,
});
// toggle refresh
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const updateTheProduct = async (product: ProductT) => {
})}`,
);
//
toast(t("notifications.product.updated", { name: product.name }), {
toast.success(t("notifications.product.updated", { name: product.name }), {
closeButton: true,
});
// toggle refresh
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProductsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const updateProductStock = (id: string, name: string) => {
id,
name,
});
store.setters.updateStore({ key: "name", value: "UpdateStock" });
store.setters.updateStore({ key: "name", value: "InventoryUpdate" });
store.setters.updateStore({ key: "show", value: true });
};
</script>
Expand Down Expand Up @@ -169,7 +169,7 @@ const updateProductStock = (id: string, name: string) => {
:size="20"
class="text-slate-800 inline mr-2"
/>
{{ t("g.actions.updateStock") }}
{{ t("g.actions.inventoryUpdate") }}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
Expand Down
4 changes: 2 additions & 2 deletions src/components/QuoteCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const createQuote = async () => {
//
info(`CREATE QUOTE: ${JSON.stringify(quote)}`);
//
toast(t("notifications.quote.created"), {
toast.success(t("notifications.quote.created"), {
closeButton: true,
});
// toggle refresh
Expand Down Expand Up @@ -168,7 +168,7 @@ const hideModal = () => {
</Input>
<Trash2
@click="deleteQuoteItem(index)"
class="cursor-pointer"
class="cursor-pointer m-auto"
:size="20"
/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/QuoteDelete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const deleteTheQuotes = async (id: string) => {
//
info(`DELETE QUOTE: ${id}`);
//
toast(t("notifications.quote.deleted"), {
toast.success(t("notifications.quote.deleted"), {
closeButton: true,
});
// toggle refresh
Expand Down
4 changes: 2 additions & 2 deletions src/components/QuoteUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const updateTheQuotes = async () => {
//
info(`UPDATE QUOTE: ${JSON.stringify(quote)}`);
//
toast(t("notifications.quote.updated"), {
toast.success(t("notifications.quote.updated"), {
closeButton: true,
});
// toggle refresh
Expand Down Expand Up @@ -199,7 +199,7 @@ const deleteQuoteItem = (index: number) => {
</Input>
<Trash2
@click="deleteQuoteItem(index)"
class="cursor-pointer"
class="cursor-pointer m-auto"
:size="20"
/>
</template>
Expand Down
Loading

0 comments on commit ad93a4a

Please sign in to comment.