From b3fd9637eb86471ba05357b2f3f8522152cdbf38 Mon Sep 17 00:00:00 2001 From: Andy-Ruda Date: Sat, 28 Oct 2023 04:13:01 -0500 Subject: [PATCH] Login, Download and visuals update --- cista-front/components.d.ts | 2 + cista-front/src/assets/main.css | 12 +- cista-front/src/components/FileExplorer.vue | 32 ++- cista-front/src/components/FileViewer.vue | 5 - cista-front/src/components/HeaderMain.vue | 5 +- cista-front/src/components/LoginModal.vue | 90 ++++++++ cista-front/src/repositories/Client.ts | 9 +- cista-front/src/repositories/Document.ts | 29 ++- cista-front/src/repositories/User.ts | 23 ++ cista-front/src/router/index.ts | 1 - cista-front/src/stores/documents.ts | 11 +- cista-front/src/views/LoginView.vue | 46 ---- cista/wwwroot/assets/index-213aec14.css | 1 + .../{index-10851222.js => index-25722397.js} | 210 +++++++++--------- cista/wwwroot/assets/index-ee545ab1.css | 1 - cista/wwwroot/index.html | 4 +- 16 files changed, 303 insertions(+), 178 deletions(-) create mode 100644 cista-front/src/components/LoginModal.vue create mode 100644 cista-front/src/repositories/User.ts delete mode 100644 cista-front/src/views/LoginView.vue create mode 100644 cista/wwwroot/assets/index-213aec14.css rename cista/wwwroot/assets/{index-10851222.js => index-25722397.js} (59%) delete mode 100644 cista/wwwroot/assets/index-ee545ab1.css diff --git a/cista-front/components.d.ts b/cista-front/components.d.ts index 2f03bab..ca4d426 100644 --- a/cista-front/components.d.ts +++ b/cista-front/components.d.ts @@ -16,6 +16,7 @@ declare module 'vue' { AImage: typeof import('ant-design-vue/es')['Image'] AInput: typeof import('ant-design-vue/es')['Input'] AInputSearch: typeof import('ant-design-vue/es')['InputSearch'] + AModal: typeof import('ant-design-vue/es')['Modal'] APageHeader: typeof import('ant-design-vue/es')['PageHeader'] APopover: typeof import('ant-design-vue/es')['Popover'] AppNavigation: typeof import('./src/components/AppNavigation.vue')['default'] @@ -27,6 +28,7 @@ declare module 'vue' { FileExplorer: typeof import('./src/components/FileExplorer.vue')['default'] FileViewer: typeof import('./src/components/FileViewer.vue')['default'] HeaderMain: typeof import('./src/components/HeaderMain.vue')['default'] + LoginModal: typeof import('./src/components/LoginModal.vue')['default'] NotificationLoading: typeof import('./src/components/NotificationLoading.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/cista-front/src/assets/main.css b/cista-front/src/assets/main.css index 882a3b3..f81f75f 100644 --- a/cista-front/src/assets/main.css +++ b/cista-front/src/assets/main.css @@ -5,7 +5,8 @@ --table-background: #535353; --primary-color: #ffffff; --secondary-color: #ccc; - --blue-color: #66ffeb + --blue-color: #66ffeb; + --red-color: #ff4d4f; } @media (prefers-color-scheme: dark) { :root { @@ -15,7 +16,8 @@ --table-background: #535353; --primary-color: #ffffff; --secondary-color: #ccc; - --blue-color: #66ffeb + --blue-color: #66ffeb; + --red-color: #ff4d4f; } } body { @@ -93,5 +95,11 @@ body { .ant-empty-description{ color: var(--primary-color); } + .ant-modal .ant-modal-content{ + background-color: var(--secondary-background); + } + .ant-modal .ant-modal-close-x{ + color: var(--font-color); + } } \ No newline at end of file diff --git a/cista-front/src/components/FileExplorer.vue b/cista-front/src/components/FileExplorer.vue index 218d8eb..1e9ba0b 100644 --- a/cista-front/src/components/FileExplorer.vue +++ b/cista-front/src/components/FileExplorer.vue @@ -1,5 +1,6 @@