Skip to content

Commit

Permalink
feat: New Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
yrestom committed Jul 23, 2022
1 parent 8c469d8 commit 9f59c8e
Show file tree
Hide file tree
Showing 18 changed files with 195 additions and 138 deletions.
15 changes: 12 additions & 3 deletions posawesome/public/js/posapp/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,32 @@
@click.stop="drawer = !drawer"
class="grey--text"
></v-app-bar-nav-icon>
<v-img
src="/assets/posawesome/js/posapp/components/pos/pos.png"
alt="POS Awesome"
max-width="32"
class="mr-2"
color="primary"
></v-img>
<v-toolbar-title
@click="go_desk"
style="cursor: pointer"
class="text-uppercase indigo--text"
class="text-uppercase primary--text"
>
<span class="font-weight-light">pos</span>
<span>awesome</span>
</v-toolbar-title>

<v-spacer></v-spacer>
<v-btn style="cursor: unset" text color="grey">
<v-btn style="cursor: unset" text color="primary">
<span right>{{ pos_profile.name }}</span>
</v-btn>
<div class="text-center">
<v-menu offset-y>
<template v-slot:activator="{ on, attrs }">
<v-btn color="grey" dark text v-bind="attrs" v-on="on">Menu</v-btn>
<v-btn color="primary" dark text v-bind="attrs" v-on="on"
>Menu</v-btn
>
</template>
<v-card class="mx-auto" max-width="300" tile>
<v-list dense>
Expand Down
12 changes: 9 additions & 3 deletions posawesome/public/js/posapp/components/pos/ClosingDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<v-dialog v-model="closingDialog" max-width="900px">
<v-card>
<v-card-title>
<span class="headline indigo--text">{{__('Closing POS Shift')}}</span>
<span class="headline primary--text">{{
__('Closing POS Shift')
}}</span>
</v-card-title>
<v-card-text class="pa-0">
<v-container>
Expand Down Expand Up @@ -54,8 +56,12 @@
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="error" dark @click="close_dialog">{{__('Close')}}</v-btn>
<v-btn color="primary" dark @click="submit_dialog">{{__('Submit')}}</v-btn>
<v-btn color="error" dark @click="close_dialog">{{
__('Close')
}}</v-btn>
<v-btn color="success" dark @click="submit_dialog">{{
__('Submit')
}}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
Expand Down
4 changes: 2 additions & 2 deletions posawesome/public/js/posapp/components/pos/Customer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
clearable
auto-select-first
outlined
color="indigo"
color="primary"
:label="frappe._('Customer')"
v-model="customer"
:items="customers"
Expand All @@ -25,7 +25,7 @@
<template>
<v-list-item-content>
<v-list-item-title
class="indigo--text subtitle-1"
class="primary--text subtitle-1"
v-html="data.item.customer_name"
></v-list-item-title>
<v-list-item-subtitle
Expand Down
36 changes: 19 additions & 17 deletions posawesome/public/js/posapp/components/pos/Drafts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
</template>-->
<v-card>
<v-card-title>
<span class="headline indigo--text">{{__('Select Hold Invoice')}}</span>
<span class="headline primary--text">{{
__('Select Hold Invoice')
}}</span>
</v-card-title>
<v-card-text class="pa-0">
<v-container>
Expand All @@ -31,15 +33,15 @@
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="error" dark @click="close_dialog">Close</v-btn>
<v-btn color="primary" dark @click="submit_dialog">Select</v-btn>
<v-btn color="success" dark @click="submit_dialog">Select</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
</template>

<script>
import { evntBus } from "../../bus";
import { evntBus } from '../../bus';
export default {
// props: ["draftsDialog"],
data: () => ({
Expand All @@ -49,27 +51,27 @@ export default {
dialog_data: {},
headers: [
{
text: __("Customer"),
value: "customer",
align: "start",
text: __('Customer'),
value: 'customer',
align: 'start',
sortable: true,
},
{
text: __("Date"),
align: "start",
text: __('Date'),
align: 'start',
sortable: true,
value: "posting_date",
value: 'posting_date',
},
{
text: __("Invoice"),
value: "name",
align: "start",
text: __('Invoice'),
value: 'name',
align: 'start',
sortable: true,
},
{
text: __("Amount"),
value: "grand_total",
align: "start",
text: __('Amount'),
value: 'grand_total',
align: 'start',
sortable: false,
},
],
Expand All @@ -82,13 +84,13 @@ export default {
submit_dialog() {
if (this.selected.length > 0) {
evntBus.$emit("load_invoice", this.selected[0]);
evntBus.$emit('load_invoice', this.selected[0]);
this.draftsDialog = false;
}
},
},
created: function () {
evntBus.$on("open_drafts", (data) => {
evntBus.$on('open_drafts', (data) => {
this.draftsDialog = true;
this.dialog_data = data;
});
Expand Down
8 changes: 4 additions & 4 deletions posawesome/public/js/posapp/components/pos/EditCustomer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<v-dialog v-model="customerDialog" max-width="600px">
<v-card>
<v-card-title>
<span class="headline indigo--text">{{ __('Customer Info') }}</span>
<span class="headline primary--text">{{ __('Customer Info') }}</span>
</v-card-title>
<v-card-text class="pa-0">
<v-container>
<v-row>
<v-col cols="12">
<v-text-field
dense
color="indigo"
color="primary"
:label="frappe._('Customer Name')"
background-color="white"
hide-details
Expand All @@ -22,7 +22,7 @@
<v-col cols="6">
<v-text-field
dense
color="indigo"
color="primary"
:label="frappe._('Email')"
background-color="white"
hide-details
Expand All @@ -33,7 +33,7 @@
<v-col cols="6">
<v-text-field
dense
color="indigo"
color="primary"
:label="frappe._('Mobile No')"
background-color="white"
hide-details
Expand Down
Loading

0 comments on commit 9f59c8e

Please sign in to comment.