From b6de3da74aa3aff1a09ba8e7801cd2a84d3e3206 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Sat, 2 Apr 2022 07:06:48 +0300 Subject: [PATCH] New style (#1253) Signed-off-by: Alexander Platov --- models/tracker/src/index.ts | 12 +- .../presentation/src/components/Card.svelte | 4 +- .../src/components/EditAvatarPopup.svelte | 2 +- .../src/components/MessageBox.svelte | 4 +- .../src/components/PDFViewer.svelte | 4 +- .../src/components/SpaceCreateCard.svelte | 4 +- .../src/components/UserBoxList.svelte | 2 +- .../src/components/UsersPopup.svelte | 2 +- packages/theme/styles/_colors.scss | 58 ++++++ packages/theme/styles/_layouts.scss | 35 +++- packages/theme/styles/common.scss | 84 +++++--- packages/theme/styles/components.scss | 17 +- packages/theme/styles/dialogs.scss | 79 ++++++-- packages/theme/styles/global.scss | 5 +- packages/theme/styles/popups.scss | 96 +++++++-- packages/ui/src/components/Button.svelte | 185 +++++++++++------- packages/ui/src/components/Dialog.svelte | 2 +- packages/ui/src/components/EditBox.svelte | 80 ++++---- .../ui/src/components/EditWithIcon.svelte | 28 +-- packages/ui/src/components/MiniToggle.svelte | 98 ++++++++++ .../ui/src/components/PopupInstance.svelte | 11 +- packages/ui/src/components/Toggle.svelte | 34 ++-- .../src/components/calendar/DatePopup.svelte | 2 +- .../ui/src/components/icons/Attachment.svelte | 2 +- packages/ui/src/components/icons/Close.svelte | 4 +- .../ui/src/components/icons/Expand.svelte | 5 +- .../ui/src/components/internal/Root.svelte | 1 + packages/ui/src/index.ts | 1 + .../src/components/CalendarView.svelte | 6 +- .../src/components/DocRemindersPopup.svelte | 2 +- .../src/components/Channels.svelte | 2 +- .../src/components/Contacts.svelte | 2 +- .../src/components/Chats.svelte | 6 +- .../src/components/Connect.svelte | 2 +- .../src/components/FullMessage.svelte | 2 +- .../src/components/NewMessage.svelte | 2 +- .../src/components/Categories.svelte | 3 +- .../src/components/Products.svelte | 3 +- .../src/components/Form.svelte | 2 +- .../src/components/InviteLink.svelte | 6 +- .../src/components/SelectWorkspace.svelte | 2 +- .../components/NotificationSettings.svelte | 2 +- .../src/components/ApplicationsView.svelte | 2 +- .../src/components/Candidates.svelte | 2 +- .../src/components/Vacancies.svelte | 2 +- .../src/components/Password.svelte | 2 +- .../src/components/PluginCard.svelte | 4 +- .../TxIntegrationDisableReconnect.svelte | 2 +- .../src/components/TagsPopup.svelte | 1 - .../src/components/TagsView.svelte | 2 +- .../src/components/Chat.svelte | 6 +- .../src/components/Connect.svelte | 2 +- .../src/components/Reconnect.svelte | 2 +- .../src/components/Templates.svelte | 4 +- plugins/tracker-assets/assets/icons.svg | 74 +++++++ plugins/tracker-assets/lang/en.json | 12 ++ plugins/tracker-assets/lang/ru.json | 14 +- plugins/tracker-assets/src/index.ts | 20 +- .../src/components/Card.svelte | 38 ++-- .../src/components/CreateIssue.svelte | 89 +++++++-- .../src/components/NewIssueHeader.svelte | 16 +- .../src/components/SelectPopup.svelte | 64 ++++++ plugins/tracker-resources/src/plugin.ts | 14 +- plugins/tracker/src/index.ts | 21 +- .../view-resources/src/components/Move.svelte | 4 +- .../src/components/AppItem.svelte | 2 +- .../src/components/Navigator.svelte | 17 +- .../src/components/SpaceHeader.svelte | 4 +- .../src/components/Workbench.svelte | 9 +- .../src/components/navigator/SpacesNav.svelte | 4 +- .../navigator/SpecialElement.svelte | 6 +- .../components/navigator/TreeElement.svelte | 29 ++- .../src/components/navigator/TreeNode.svelte | 6 +- plugins/workbench/src/index.ts | 1 + tests/sanity/tests/settings.spec.ts | 8 +- 75 files changed, 1007 insertions(+), 379 deletions(-) create mode 100644 packages/ui/src/components/MiniToggle.svelte create mode 100644 plugins/tracker-resources/src/components/SelectPopup.svelte diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index 1e9d13ecb5..b199598dd7 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -156,21 +156,21 @@ export function createModel (builder: Builder): void { id: 'inbox', position: 'top', label: tracker.string.Inbox, - icon: tracker.icon.TrackerApplication, + icon: tracker.icon.Inbox, component: tracker.component.Inbox }, { id: 'my-issues', position: 'top', label: tracker.string.MyIssues, - icon: tracker.icon.TrackerApplication, + icon: tracker.icon.MyIssues, component: tracker.component.MyIssues }, { id: 'views', position: 'top', label: tracker.string.Views, - icon: tracker.icon.TrackerApplication, + icon: tracker.icon.Views, component: tracker.component.Views } ], @@ -178,14 +178,14 @@ export function createModel (builder: Builder): void { { label: tracker.string.Teams, spaceClass: tracker.class.Team, - // icon: tracker.icon.TrackerApplication, addSpaceLabel: tracker.string.CreateTeam, createComponent: tracker.component.CreateTeam, + icon: tracker.icon.Home, specials: [ { id: 'issues', label: tracker.string.Issues, - icon: tracker.icon.TrackerApplication, + icon: tracker.icon.Issues, component: tracker.component.Issues }, { @@ -209,7 +209,7 @@ export function createModel (builder: Builder): void { { id: 'projects', label: tracker.string.Projects, - icon: tracker.icon.TrackerApplication, + icon: tracker.icon.Projects, component: tracker.component.Projects } ] diff --git a/packages/presentation/src/components/Card.svelte b/packages/presentation/src/components/Card.svelte index 859f9564ea..e1fd6bb441 100644 --- a/packages/presentation/src/components/Card.svelte +++ b/packages/presentation/src/components/Card.svelte @@ -58,7 +58,7 @@ {/if} diff --git a/packages/presentation/src/components/EditAvatarPopup.svelte b/packages/presentation/src/components/EditAvatarPopup.svelte index cdd69b4823..f418d8de22 100644 --- a/packages/presentation/src/components/EditAvatarPopup.svelte +++ b/packages/presentation/src/components/EditAvatarPopup.svelte @@ -62,7 +62,7 @@ diff --git a/packages/presentation/src/components/PDFViewer.svelte b/packages/presentation/src/components/PDFViewer.svelte index 9bf0fc737c..f30e1a4b7b 100644 --- a/packages/presentation/src/components/PDFViewer.svelte +++ b/packages/presentation/src/components/PDFViewer.svelte @@ -51,8 +51,8 @@