diff --git a/Dockerfile.dev b/Dockerfile.dev index 4e4cdef..a7a3010 100755 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -4,6 +4,8 @@ ENV VITE_BASE_URL="http://localhost:9510" ENV VITE_AUTO_URL="http://localhost:9514" ENV VITE_MONEY_URL="http://localhost:9513" ENV VITE_AUTHORIZE_URL="http://localhost:9516" +ENV VITE_VOIPMS_URL="http://localhost:9517" +ENV VITE_VOIPMS_TOKEN="my_secret_token" ENV VITE_COMPANY_ID='1' @@ -17,4 +19,4 @@ ENV PATH /app/node_modules/.bin:$PATH RUN npm install -COPY . /app \ No newline at end of file +COPY . /app diff --git a/Dockerfile.local b/Dockerfile.local index 63533e9..b053536 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -4,6 +4,7 @@ ENV VITE_BASE_URL="http://192.168.1.204:9610" ENV VITE_AUTO_URL="http://192.168.1.204:9614" ENV VITE_MONEY_URL="http://192.168.1.204:9613" ENV VITE_AUTHORIZE_URL="http://localhost:9516" +ENV VITE_VOIPMS_URL="http://localhost:9517" ENV VITE_COMPANY_ID='1' WORKDIR /app diff --git a/Dockerfile.prod b/Dockerfile.prod index e60afab..c908471 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -6,7 +6,7 @@ ENV VITE_BASE_URL="https://apioil.edwineames.com" ENV VITE_AUTO_URL="https://apiauto.edwineames.com" ENV VITE_MONEY_URL="https://apimoney.edwineames.com" ENV VITE_AUTHORIZE_URL="https://apicard.edwineames.com" - +ENV VITE_VOIPMS_URL="http://apiphone.edwineames.com:9516" WORKDIR /app COPY package.json ./ diff --git a/src/layouts/headers/headerauth.vue b/src/layouts/headers/headerauth.vue index 6454607..a013753 100755 --- a/src/layouts/headers/headerauth.vue +++ b/src/layouts/headers/headerauth.vue @@ -1,74 +1,216 @@ \ No newline at end of file diff --git a/src/pages/automatic/home.vue b/src/pages/automatic/home.vue index 16d4a80..bcc3400 100755 --- a/src/pages/automatic/home.vue +++ b/src/pages/automatic/home.vue @@ -28,11 +28,23 @@ - Tank Level - Days Since Fill - Name + + Tank Level + {{ sortAsc ? '▲' : '▼' }} + + + Days Since Fill + {{ sortAsc ? '▲' : '▼' }} + + + Name + {{ sortAsc ? '▲' : '▼' }} + + + Usage Factor + {{ sortAsc ? '▲' : '▼' }} + Address - Usage Factor Actions @@ -60,8 +72,8 @@ {{ oil.customer_full_name }} - {{ oil.customer_address }}, {{ oil.customer_town }} {{ oil.house_factor }} + {{ oil.customer_address }}, {{ oil.customer_town }}
Edit Customer @@ -162,7 +174,7 @@ export default defineComponent({ user: null, deliveries: [] as AutoDelivery[], // --- NEW: Data properties for sorting --- - sortKey: 'estimated_gallons_left' as keyof AutoDelivery | 'tank_level_percent', + sortKey: 'tank_level_percent' as keyof AutoDelivery | 'tank_level_percent', sortAsc: true, } }, @@ -249,4 +261,4 @@ export default defineComponent({ }, }, }) - \ No newline at end of file +