diff --git a/.circleci/config.yml b/.circleci/config.yml index ed51a17..5807703 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -71,7 +71,7 @@ jobs: name: test command: yarn test:cov - store_test_results: - path: ./server/coverage + path: ./packages/server/coverage build_client: executor: node steps: diff --git a/.idea/internet-banking.iml b/.idea/internet-banking.iml index 14c8281..ce7c0aa 100644 --- a/.idea/internet-banking.iml +++ b/.idea/internet-banking.iml @@ -3,6 +3,7 @@ + @@ -10,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 274d270..9e70245 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,6 +2,7 @@ + diff --git a/.idea/webResources.xml b/.idea/webResources.xml new file mode 100644 index 0000000..5eaf42e --- /dev/null +++ b/.idea/webResources.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/client/package.json b/packages/client/package.json index 7b7c3ca..57927d7 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -6,7 +6,7 @@ "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit --passWithNoTests", "lint": "vue-cli-service lint --fix", - "format": "prettier --write --ext .js,.ts,.vue" + "format": "prettier --write \"src/**/*.{ts,vue,js}\"" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.29", diff --git a/packages/client/src/admins/components/Partner/PartnerDetailModal.vue b/packages/client/src/admins/components/Partner/PartnerDetailModal.vue new file mode 100644 index 0000000..80506ef --- /dev/null +++ b/packages/client/src/admins/components/Partner/PartnerDetailModal.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/packages/client/src/admins/pages/PartnerManagement.vue b/packages/client/src/admins/pages/PartnerManagement.vue new file mode 100644 index 0000000..aa7118e --- /dev/null +++ b/packages/client/src/admins/pages/PartnerManagement.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/packages/client/src/components/History/History.vue b/packages/client/src/components/History/History.vue index 8250255..4cc3845 100644 --- a/packages/client/src/components/History/History.vue +++ b/packages/client/src/components/History/History.vue @@ -33,7 +33,6 @@ import { Icon, Input, InputNumber, - Message, Option, Popconfirm, Select, diff --git a/packages/client/src/override.d.ts b/packages/client/src/override.d.ts index 2a176c9..fa3058c 100644 --- a/packages/client/src/override.d.ts +++ b/packages/client/src/override.d.ts @@ -1,5 +1,3 @@ -import { library } from "@fortawesome/fontawesome-svg-core"; -import Vue from "vue"; import { AxiosRequestConfig } from "axios"; declare module "vue/types/vue" { diff --git a/packages/client/src/router/admin.ts b/packages/client/src/router/admin.ts index 077f71b..b91492d 100644 --- a/packages/client/src/router/admin.ts +++ b/packages/client/src/router/admin.ts @@ -49,10 +49,20 @@ const routes: Array = [ path: "partner", name: "partner-management", component: () => - import("@/admins/pages/UserManagement.vue"), + import("@/admins/pages/PartnerManagement.vue"), meta: { role: ["ADMIN"], }, + children: [ + { + path: ":id", + name: "partner-detail", + component: () => + import( + "@/admins/components/Partner/PartnerDetailModal.vue" + ), + }, + ], }, ], }, diff --git a/packages/client/src/router/index.ts b/packages/client/src/router/index.ts index 066ed3f..98b9258 100644 --- a/packages/client/src/router/index.ts +++ b/packages/client/src/router/index.ts @@ -3,8 +3,7 @@ import VueRouter, { RouteConfig } from "vue-router"; import AppLoad from "@/container/AppLoad.vue"; import { Component } from "vue-property-decorator"; import AppStore from "@/store"; -import AppLayout from "@/container/AppLayout.vue"; -import NotFound from "../views/NotFound.vue"; +import NotFound from "@/views/NotFound.vue"; Vue.use(VueRouter); Component.registerHooks(["beforeRouteUpdate"]); diff --git a/packages/client/src/types/partner.d.ts b/packages/client/src/types/partner.d.ts new file mode 100644 index 0000000..abe35ef --- /dev/null +++ b/packages/client/src/types/partner.d.ts @@ -0,0 +1,12 @@ +declare interface Partner { + id: string; + publicKey: string; +} + +declare interface PartnerTransLog { + id: string; + client: Partner; + transaction: Transaction; + createdAt: Date; + updatedAt: Date; +} diff --git a/packages/client/src/types/transaction.d.ts b/packages/client/src/types/transaction.d.ts index 621bb69..fa515e2 100644 --- a/packages/client/src/types/transaction.d.ts +++ b/packages/client/src/types/transaction.d.ts @@ -1,4 +1,4 @@ -declare class Transaction { +declare interface Transaction { id: number; note: string; sourceAccount: string; @@ -7,4 +7,7 @@ declare class Transaction { bankType: string; isDebtPay: boolean; isMyBankSend: boolean; + + createdAt: Date; + updatedAt: Date; } diff --git a/packages/client/src/views/Home.vue b/packages/client/src/views/Home.vue index f37b41f..e182430 100644 --- a/packages/client/src/views/Home.vue +++ b/packages/client/src/views/Home.vue @@ -6,8 +6,8 @@