From 15612f87bfdc88157508b548b232d1a5fcb32f38 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 29 Nov 2021 17:06:53 +0700 Subject: [PATCH] Workbench fixes Workbench fixes Signed-off-by: Andrey Sobolev --- common/config/rush/pnpm-lock.yaml | 10 +++++++++- dev/prod/package.json | 3 ++- dev/prod/src/platform.ts | 1 + plugins/task-assets/lang/en.json | 7 +++++++ plugins/workbench-assets/assets/icons.svg | 2 ++ plugins/workbench-assets/lang/en.json | 7 +++++++ plugins/workbench-assets/package.json | 19 +++++++++++++++++++ plugins/workbench-assets/src/index.ts | 19 +++++++++++++++++++ plugins/workbench-assets/tsconfig.json | 15 +++++++++++++++ .../src/components/Applications.svelte | 17 +++++------------ .../src/components/Header.svelte | 4 ++-- .../src/components/NavHeader.svelte | 9 +++++---- .../src/components/SpaceHeader.svelte | 7 ++++--- .../src/components/SpaceView.svelte | 13 ++++++++----- .../src/components/StatusesPopup.svelte | 4 ++-- .../src/components/Workbench.svelte | 17 +++++++++++++---- .../components/navigator/SpacePanel.svelte | 16 ++++++++-------- plugins/workbench-resources/src/plugin.ts | 6 ++++++ rush.json | 5 +++++ 19 files changed, 139 insertions(+), 42 deletions(-) create mode 100644 plugins/task-assets/lang/en.json create mode 100644 plugins/workbench-assets/assets/icons.svg create mode 100644 plugins/workbench-assets/lang/en.json create mode 100644 plugins/workbench-assets/package.json create mode 100644 plugins/workbench-assets/src/index.ts create mode 100644 plugins/workbench-assets/tsconfig.json diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 95c692a447..dee334eab2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -83,6 +83,7 @@ specifiers: '@rush-temp/view-assets': file:./projects/view-assets.tgz '@rush-temp/view-resources': file:./projects/view-resources.tgz '@rush-temp/workbench': file:./projects/workbench.tgz + '@rush-temp/workbench-assets': file:./projects/workbench-assets.tgz '@rush-temp/workbench-resources': file:./projects/workbench-resources.tgz '@rush-temp/workspace': file:./projects/workspace.tgz '@rushstack/heft': ^0.41.1 @@ -231,6 +232,7 @@ dependencies: '@rush-temp/view-assets': file:projects/view-assets.tgz '@rush-temp/view-resources': file:projects/view-resources.tgz_e1367da94684b005adf08f025c517b1a '@rush-temp/workbench': file:projects/workbench.tgz_typescript@4.4.3 + '@rush-temp/workbench-assets': file:projects/workbench-assets.tgz '@rush-temp/workbench-resources': file:projects/workbench-resources.tgz_e1367da94684b005adf08f025c517b1a '@rush-temp/workspace': file:projects/workspace.tgz_typescript@4.4.3 '@rushstack/heft': 0.41.1 @@ -10409,7 +10411,7 @@ packages: dev: false file:projects/presentation.tgz_e1367da94684b005adf08f025c517b1a: - resolution: {integrity: sha512-1einnqLkZQVaVUNlm/JU8G7micSM3DR/4em+rasS0Pt9FHyehFspVTvowM4757t7HAbIFYxx/m5MQ2AiGjGiwQ==, tarball: file:projects/presentation.tgz} + resolution: {integrity: sha512-2IXWVC0yNL631Gw6X7QwqjGN1+9Ooqswvx9OJchqJ9knRKWZ0RwjgQjHI5QGxs85aUTAB0F5WUe1NMdmfERY3Q==, tarball: file:projects/presentation.tgz} id: file:projects/presentation.tgz name: '@rush-temp/presentation' version: 0.0.0 @@ -11079,6 +11081,12 @@ packages: - typescript dev: false + file:projects/workbench-assets.tgz: + resolution: {integrity: sha512-DCD9OfS0mb4mHt9QEJA9kFvaLl7Lcw3fNmNUtDDVFaN0W7xpELihKhKEMn4wt+FvwwTww5D/jykdb0sQh7K6Fw==, tarball: file:projects/workbench-assets.tgz} + name: '@rush-temp/workbench-assets' + version: 0.0.0 + dev: false + file:projects/workbench-resources.tgz_e1367da94684b005adf08f025c517b1a: resolution: {integrity: sha512-y7W8oQuhPXIzrM/erW/ajFnF4iO8f2FHXHNZ+jM2XSLqnhXeXZQlIzYMOq4lVWWl+RfYoZNxLeeia76z5qAHdQ==, tarball: file:projects/workbench-resources.tgz} id: file:projects/workbench-resources.tgz diff --git a/dev/prod/package.json b/dev/prod/package.json index efb921bdf6..ae6bf14b15 100644 --- a/dev/prod/package.json +++ b/dev/prod/package.json @@ -77,6 +77,7 @@ "@anticrm/activity-assets": "~0.6.0", "@anticrm/activity-resources": "~0.6.0", "@anticrm/telegram": "~0.6.0", - "@anticrm/telegram-resources": "~0.6.0" + "@anticrm/telegram-resources": "~0.6.0", + "@anticrm/workbench-assets": "~0.6.0" } } diff --git a/dev/prod/src/platform.ts b/dev/prod/src/platform.ts index 89c9ecdd62..e0af8c28f8 100644 --- a/dev/prod/src/platform.ts +++ b/dev/prod/src/platform.ts @@ -35,6 +35,7 @@ import '@anticrm/contact-assets' import '@anticrm/recruit-assets' import '@anticrm/activity-assets' import '@anticrm/setting-assets' +import '@anticrm/workbench-assets' import { setMetadata } from '@anticrm/platform' export function configurePlatform() { diff --git a/plugins/task-assets/lang/en.json b/plugins/task-assets/lang/en.json new file mode 100644 index 0000000000..8f69083f1d --- /dev/null +++ b/plugins/task-assets/lang/en.json @@ -0,0 +1,7 @@ +{ + "string": { + "ApplicationLabelTask": "Tasks", + "Projects": "Projects", + "CreateProject": "New Project" + } +} \ No newline at end of file diff --git a/plugins/workbench-assets/assets/icons.svg b/plugins/workbench-assets/assets/icons.svg new file mode 100644 index 0000000000..9ebf0a90ba --- /dev/null +++ b/plugins/workbench-assets/assets/icons.svg @@ -0,0 +1,2 @@ + + diff --git a/plugins/workbench-assets/lang/en.json b/plugins/workbench-assets/lang/en.json new file mode 100644 index 0000000000..e194b8b6b2 --- /dev/null +++ b/plugins/workbench-assets/lang/en.json @@ -0,0 +1,7 @@ +{ + "string": { + "More": "More...", + "Delete": "Delete", + "Create": "Create" + } +} \ No newline at end of file diff --git a/plugins/workbench-assets/package.json b/plugins/workbench-assets/package.json new file mode 100644 index 0000000000..983c7f41d1 --- /dev/null +++ b/plugins/workbench-assets/package.json @@ -0,0 +1,19 @@ +{ + "name": "@anticrm/workbench-assets", + "version": "0.6.0", + "main": "src/index.ts", + "author": "Anticrm Platform Contributors", + "license": "EPL-2.0", + "scripts": { + "build": "", + "lint": "", + "lint:fix": "", + "format": "" + }, + "devDependencies": { + }, + "dependencies": { + "@anticrm/platform":"~0.6.5", + "@anticrm/workbench":"~0.6.0" + } +} diff --git a/plugins/workbench-assets/src/index.ts b/plugins/workbench-assets/src/index.ts new file mode 100644 index 0000000000..a81406a33e --- /dev/null +++ b/plugins/workbench-assets/src/index.ts @@ -0,0 +1,19 @@ +// +// Copyright © 2020 Anticrm Platform Contributors. +// +// Licensed under the Eclipse Public License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. You may +// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +import { addStringsLoader } from '@anticrm/platform' +import { workbenchId } from '@anticrm/workbench' + +addStringsLoader(workbenchId, async (lang: string) => await import(`../lang/${lang}.json`)) diff --git a/plugins/workbench-assets/tsconfig.json b/plugins/workbench-assets/tsconfig.json new file mode 100644 index 0000000000..cabe5aefad --- /dev/null +++ b/plugins/workbench-assets/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + "declaration": true, + "outDir": "./lib", + "strict": true, + "esModuleInterop": true, + "lib": [ + "esnext", + "dom" + ] + } +} \ No newline at end of file diff --git a/plugins/workbench-resources/src/components/Applications.svelte b/plugins/workbench-resources/src/components/Applications.svelte index e0bd2abe74..93410a6dc1 100644 --- a/plugins/workbench-resources/src/components/Applications.svelte +++ b/plugins/workbench-resources/src/components/Applications.svelte @@ -15,20 +15,13 @@
- {label} - + +