mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
introduce contact-assets
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
97798f0097
commit
9a7a4bd9f3
@ -9,6 +9,7 @@ specifiers:
|
||||
'@rush-temp/client': file:./projects/client.tgz
|
||||
'@rush-temp/client-resources': file:./projects/client-resources.tgz
|
||||
'@rush-temp/contact': file:./projects/contact.tgz
|
||||
'@rush-temp/contact-assets': file:./projects/contact-assets.tgz
|
||||
'@rush-temp/contact-resources': file:./projects/contact-resources.tgz
|
||||
'@rush-temp/contrib': file:./projects/contrib.tgz
|
||||
'@rush-temp/core': file:./projects/core.tgz
|
||||
@ -81,7 +82,6 @@ specifiers:
|
||||
'@typescript-eslint/eslint-plugin': '4'
|
||||
'@typescript-eslint/parser': ^4.0.0
|
||||
autoprefixer: ^10.2.6
|
||||
aws-sdk: ^2.969.0
|
||||
cors: ^2.8.5
|
||||
cross-env: ^7.0.3
|
||||
css-loader: ^5.2.1
|
||||
@ -127,6 +127,7 @@ dependencies:
|
||||
'@rush-temp/client': file:projects/client.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
'@rush-temp/client-resources': file:projects/client-resources.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
'@rush-temp/contact': file:projects/contact.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
'@rush-temp/contact-assets': file:projects/contact-assets.tgz
|
||||
'@rush-temp/contact-resources': file:projects/contact-resources.tgz_c38cf1a7a413db8918b0b4754c21e4c5
|
||||
'@rush-temp/contrib': file:projects/contrib.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
'@rush-temp/core': file:projects/core.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
@ -199,7 +200,6 @@ dependencies:
|
||||
'@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea
|
||||
'@typescript-eslint/parser': 4.28.5_eslint@7.32.0+typescript@4.3.5
|
||||
autoprefixer: 10.3.1_postcss@8.3.6
|
||||
aws-sdk: 2.969.0
|
||||
cors: 2.8.5
|
||||
cross-env: 7.0.3
|
||||
css-loader: 5.2.7_webpack@5.48.0
|
||||
@ -9085,8 +9085,14 @@ packages:
|
||||
- typescript
|
||||
dev: false
|
||||
|
||||
file:projects/contact-assets.tgz:
|
||||
resolution: {integrity: sha512-n3hBYq2eqfWSh2h5c66VYAQiLt+rEgIqej/c2MZ9+d8C3+0zSWPuQEo9s0hg4/d+Aej1R4E+RwPGObOHy1veTw==, tarball: file:projects/contact-assets.tgz}
|
||||
name: '@rush-temp/contact-assets'
|
||||
version: 0.0.0
|
||||
dev: false
|
||||
|
||||
file:projects/contact-resources.tgz_c38cf1a7a413db8918b0b4754c21e4c5:
|
||||
resolution: {integrity: sha512-5kJqBwQFHnHh0j5SZ14iqTduEcGFaton84G7oleiUWutCJFzKAxfWlRN1s4HkY66r15i9Ci6911BJlHZRHi8bw==, tarball: file:projects/contact-resources.tgz}
|
||||
resolution: {integrity: sha512-K7eN4fRxQXf0FvhCDECreRXrBHldk8q4JtqhXlFjzu1z+o0AeosaurtfF4tjMk/IfK/eX9UljXbT+YK2vK3MIg==, tarball: file:projects/contact-resources.tgz}
|
||||
id: file:projects/contact-resources.tgz
|
||||
name: '@rush-temp/contact-resources'
|
||||
version: 0.0.0
|
||||
@ -9267,7 +9273,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/elastic.tgz_6c259fadfeb3a4b20890aefe87070b8b:
|
||||
resolution: {integrity: sha512-IEQdOVDEl4SLQUo1mu4wppfdnbAyiAMp38TL1yfF+Xh7J99/R7uSqQq0pI+nsUXKAR0oSsmMoHPiEYo7Kc15Ig==, tarball: file:projects/elastic.tgz}
|
||||
resolution: {integrity: sha512-uoPGQmOAopNC8F64rYWrRDU1s3/u70CNQeBYz7EH/PE6mR0QsYIFJW3U6/LgeDWsMXNge+5fKkjwAJh0+EQtBA==, tarball: file:projects/elastic.tgz}
|
||||
id: file:projects/elastic.tgz
|
||||
name: '@rush-temp/elastic'
|
||||
version: 0.0.0
|
||||
@ -9280,10 +9286,11 @@ packages:
|
||||
eslint-plugin-import: 2.23.4_eslint@7.32.0
|
||||
eslint-plugin-node: 11.1.0_eslint@7.32.0
|
||||
eslint-plugin-promise: 4.3.1
|
||||
ts-node: 10.2.1_eb14afb1492fcd444e277f1fdb668e87
|
||||
ts-node: 10.2.1_typescript@4.3.5
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
- '@swc/wasm'
|
||||
- '@types/node'
|
||||
- '@typescript-eslint/parser'
|
||||
- supports-color
|
||||
- typescript
|
||||
@ -9449,7 +9456,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/model-recruit.tgz_6c259fadfeb3a4b20890aefe87070b8b:
|
||||
resolution: {integrity: sha512-M9K7FYtBIqHSdy/7PnsktYDgdSTH/sodWilGxw2tqAMAPSn1ctioGdhHXYo81Nu41xdKQgr0cEDYzQDB0+Trbw==, tarball: file:projects/model-recruit.tgz}
|
||||
resolution: {integrity: sha512-ylv971t0n3lj8VGA0t6gjli0YgZ/JGfIYq0sEHEz6eiStCzNU/0JmvuNBVXNkzikP082v92hFoqTM5YSOp5b9g==, tarball: file:projects/model-recruit.tgz}
|
||||
id: file:projects/model-recruit.tgz
|
||||
name: '@rush-temp/model-recruit'
|
||||
version: 0.0.0
|
||||
@ -9762,7 +9769,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/recruit.tgz_6c259fadfeb3a4b20890aefe87070b8b:
|
||||
resolution: {integrity: sha512-IbBV7ivDgBwb+hMOF3ihqvBQwKGweJeOQA3Q+Q/KFNtRQyadX+3OYrgYQ4VsOtkt3z7u49dCnbiPr7AwVHCkUA==, tarball: file:projects/recruit.tgz}
|
||||
resolution: {integrity: sha512-CRnBSIpClWhHfIw4NjcVZwTAiJIdg5MPu9RkKlCQK55s43EdwV51XTIh2N9DHCNLma89yhFG6EIo4XYRQfWFmQ==, tarball: file:projects/recruit.tgz}
|
||||
id: file:projects/recruit.tgz
|
||||
name: '@rush-temp/recruit'
|
||||
version: 0.0.0
|
||||
@ -10010,7 +10017,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/upload.tgz_6c259fadfeb3a4b20890aefe87070b8b:
|
||||
resolution: {integrity: sha512-rHxwiXBd/wGYiFnYh9IoX/2IIYFiLAK8aCeBtS08QB0zZRn8/f6V8QrbFDk1SoW9J5ZIimQx0jXX+ER3DnQo8w==, tarball: file:projects/upload.tgz}
|
||||
resolution: {integrity: sha512-mlUwWOiAp5vvPFaPMEQHjv9XVotjAmTJqKmE536UUrRjwwSEo6p1iUXd8o+L9HRB35198Rk5peYnpyJIFVcP4g==, tarball: file:projects/upload.tgz}
|
||||
id: file:projects/upload.tgz
|
||||
name: '@rush-temp/upload'
|
||||
version: 0.0.0
|
||||
|
@ -64,6 +64,7 @@
|
||||
"@anticrm/recruit-resources": "~0.6.0",
|
||||
"@anticrm/server-chunter": "~0.6.1",
|
||||
"@anticrm/dev-server-chunter-resources": "~0.6.0",
|
||||
"@anticrm/client-resources": "~0.6.3"
|
||||
"@anticrm/client-resources": "~0.6.3",
|
||||
"@anticrm/contact-assets": "~0.6.0"
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ import '@anticrm/login-assets'
|
||||
import '@anticrm/task-assets'
|
||||
import '@anticrm/view-assets'
|
||||
import '@anticrm/chunter-assets'
|
||||
import '@anticrm/contact-assets'
|
||||
import '@anticrm/recruit-assets'
|
||||
|
||||
import { setMetadata } from '@anticrm/platform'
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -84,7 +84,8 @@ export function createModel (builder: Builder): void {
|
||||
})
|
||||
|
||||
builder.createDoc(contact.class.ChannelProvider, core.space.Model, {
|
||||
label: 'Email' as IntlString
|
||||
label: 'Email' as IntlString,
|
||||
icon: contact.icon.Email
|
||||
}, contact.channelProvider.Email)
|
||||
|
||||
builder.createDoc(core.class.Space, core.space.Model, {
|
||||
|
5
plugins/contact-assets/assets/icons.svg
Normal file
5
plugins/contact-assets/assets/icons.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
<symbol id="email" viewBox="0 0 24 24">
|
||||
<path d="M3,21.6c-0.2,0-0.3-0.1-0.4-0.2c-0.2-0.2-0.2-0.4-0.1-0.6l1.8-5.4c-0.6-1.2-0.8-2.5-0.8-3.8c0-3.4,1.9-6.5,4.9-8 c1.2-0.6,2.6-0.9,4-0.9h0.5c4.6,0.3,8.2,3.9,8.5,8.4l0,0.5c0,1.4-0.3,2.8-0.9,4c-1.5,3-4.6,4.9-8,4.9c0,0,0,0,0,0 c-1.3,0-2.6-0.3-3.8-0.8l-5.4,1.8C3.1,21.6,3.1,21.6,3,21.6z M12.3,3.9c-1.2,0-2.4,0.3-3.4,0.8c-2.6,1.3-4.3,4-4.3,6.9 c0,1.2,0.3,2.4,0.8,3.5c0.1,0.1,0.1,0.3,0,0.5l-1.5,4.5l4.5-1.5c0.2-0.1,0.3,0,0.5,0c1.1,0.5,2.2,0.8,3.5,0.8c3,0,5.6-1.6,6.9-4.3 c0.5-1.1,0.8-2.3,0.8-3.5c0,0,0,0,0,0v-0.5c-0.2-3.9-3.4-7-7.3-7.3L12.3,3.9C12.3,3.9,12.3,3.9,12.3,3.9z M21.3,11.7L21.3,11.7 L21.3,11.7z"/>
|
||||
</symbol>
|
||||
</svg>
|
After Width: | Height: | Size: 736 B |
21
plugins/contact-assets/package.json
Normal file
21
plugins/contact-assets/package.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "@anticrm/contact-assets",
|
||||
"version": "0.6.0",
|
||||
"main": "src/index.ts",
|
||||
"author": "Anticrm Platform Contributors",
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "",
|
||||
"build:docs": "api-extractor run --local",
|
||||
"test": "echo 'no tests'",
|
||||
"lint": "ts-standard src",
|
||||
"lint:fix": "ts-standard --fix src",
|
||||
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
|
||||
},
|
||||
"devDependencies": {
|
||||
},
|
||||
"dependencies": {
|
||||
"@anticrm/platform":"~0.6.5",
|
||||
"@anticrm/contact":"~0.6.0"
|
||||
}
|
||||
}
|
22
plugins/contact-assets/src/index.ts
Normal file
22
plugins/contact-assets/src/index.ts
Normal file
@ -0,0 +1,22 @@
|
||||
//
|
||||
// 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 { loadMetadata } from '@anticrm/platform'
|
||||
import chunter from '@anticrm/contact'
|
||||
|
||||
const icons = require('../assets/icons.svg')
|
||||
loadMetadata(chunter.icon, {
|
||||
Email: `${icons}#email`
|
||||
})
|
15
plugins/contact-assets/tsconfig.json
Normal file
15
plugins/contact-assets/tsconfig.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom"
|
||||
]
|
||||
}
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
//
|
||||
|
||||
import { plugin } from '@anticrm/platform'
|
||||
import type { Plugin } from '@anticrm/platform'
|
||||
import type { Plugin, Asset } from '@anticrm/platform'
|
||||
import type { Doc, Ref, Class, UXObject } from '@anticrm/core'
|
||||
|
||||
/**
|
||||
@ -75,5 +75,8 @@ export default plugin(contactId, {
|
||||
Person: '' as Ref<Class<Person>>,
|
||||
Organization: '' as Ref<Class<Organization>>,
|
||||
Employee: '' as Ref<Class<Employee>>
|
||||
},
|
||||
icon: {
|
||||
Email: '' as Asset
|
||||
}
|
||||
})
|
||||
|
@ -26,7 +26,7 @@
|
||||
* Specify one of: "pnpmVersion", "npmVersion", or "yarnVersion". See the Rush documentation
|
||||
* for details about these alternatives.
|
||||
*/
|
||||
"pnpmVersion": "6.12.0",
|
||||
"pnpmVersion": "6.14.5",
|
||||
|
||||
// "npmVersion": "4.5.0",
|
||||
// "yarnVersion": "1.9.4",
|
||||
@ -591,6 +591,11 @@
|
||||
"projectFolder": "plugins/contact",
|
||||
"shouldPublish": true
|
||||
},
|
||||
{
|
||||
"packageName": "@anticrm/contact-assets",
|
||||
"projectFolder": "plugins/contact-assets",
|
||||
"shouldPublish": true
|
||||
},
|
||||
{
|
||||
"packageName": "@anticrm/contact-resources",
|
||||
"projectFolder": "plugins/contact-resources",
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user