Enable linting build phase (#966)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-02-10 10:04:18 +01:00
committed by GitHub
parent d91b6c4473
commit ef4d632047
85 changed files with 1004 additions and 217 deletions
+32
View File
@@ -105,6 +105,38 @@ jobs:
- name: Checking svelte sources...
run: node common/scripts/install-run-rush.js svelte-check
linting:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache build results
uses: actions/cache@v2
env:
cache-name: cache-build-results
with:
path: |
cloud
common
deploy
dev
models
packages
plugins
pods
server
templates
tests
rush.json
.prettierrc
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Linting...
run: node common/scripts/install-run-rush.js lint
test:
needs: build
runs-on: ubuntu-latest
+19 -1
View File
@@ -176,6 +176,16 @@
"ignoreDependencyOrder": false,
"ignoreMissingScript": true
},
{
"commandKind": "bulk",
"name": "lint",
"summary": "Lint",
"description": "Lint",
"enableParallelism": true,
"incremental": true,
"ignoreDependencyOrder": false,
"ignoreMissingScript": true
},
{
"commandKind": "bulk",
"name": "build:watch",
@@ -259,7 +269,15 @@
"description": "set current model version",
"safeForSimultaneousRushProcesses": true,
"shellCommand": "cd ./models/all/ && npx ts-node ./src/__bumpversion.ts"
}
},
{
"commandKind": "global",
"name": "deps-clean",
"summary": "Clean package-deps-*.json files",
"description": "Clean package-deps-*.json files",
"safeForSimultaneousRushProcesses": true,
"shellCommand": "find .|grep .rush/temp/package-deps_ | xargs rm"
}
],
/**
+203 -50
View File
@@ -126,6 +126,7 @@ specifiers:
'@tiptap/extension-typography': ~2.0.0-beta.13
'@tiptap/starter-kit': ~2.0.0-beta.89
'@tiptap/suggestion': ~2.0.0-beta.85
'@types/body-parser': ~1.19.2
'@types/cors': ^2.8.12
'@types/deep-equal': ^1.0.1
'@types/express': ^4.17.13
@@ -210,15 +211,15 @@ dependencies:
'@rush-temp/activity-assets': file:projects/activity-assets.tgz
'@rush-temp/activity-resources': file:projects/activity-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/attachment': file:projects/attachment.tgz
'@rush-temp/attachment-assets': file:projects/attachment-assets.tgz
'@rush-temp/attachment-assets': file:projects/attachment-assets.tgz_typescript@4.5.4
'@rush-temp/attachment-resources': file:projects/attachment-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/chunter': file:projects/chunter.tgz
'@rush-temp/chunter-assets': file:projects/chunter-assets.tgz
'@rush-temp/chunter-assets': file:projects/chunter-assets.tgz_typescript@4.5.4
'@rush-temp/chunter-resources': file:projects/chunter-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/client': file:projects/client.tgz
'@rush-temp/client-resources': file:projects/client-resources.tgz_ac194b5590200ebf8338e0f86ec190f4
'@rush-temp/contact': file:projects/contact.tgz
'@rush-temp/contact-assets': file:projects/contact-assets.tgz
'@rush-temp/contact-assets': file:projects/contact-assets.tgz_typescript@4.5.4
'@rush-temp/contact-resources': file:projects/contact-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/contrib': file:projects/contrib.tgz
'@rush-temp/core': file:projects/core.tgz
@@ -240,10 +241,10 @@ dependencies:
'@rush-temp/inventory-assets': file:projects/inventory-assets.tgz
'@rush-temp/inventory-resources': file:projects/inventory-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/lead': file:projects/lead.tgz
'@rush-temp/lead-assets': file:projects/lead-assets.tgz
'@rush-temp/lead-assets': file:projects/lead-assets.tgz_typescript@4.5.4
'@rush-temp/lead-resources': file:projects/lead-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/login': file:projects/login.tgz
'@rush-temp/login-assets': file:projects/login-assets.tgz
'@rush-temp/login-assets': file:projects/login-assets.tgz_typescript@4.5.4
'@rush-temp/login-resources': file:projects/login-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/model': file:projects/model.tgz
'@rush-temp/model-activity': file:projects/model-activity.tgz_typescript@4.5.4
@@ -272,7 +273,7 @@ dependencies:
'@rush-temp/model-workbench': file:projects/model-workbench.tgz_typescript@4.5.4
'@rush-temp/mongo': file:projects/mongo.tgz
'@rush-temp/notification': file:projects/notification.tgz
'@rush-temp/notification-resources': file:projects/notification-resources.tgz_ac194b5590200ebf8338e0f86ec190f4
'@rush-temp/notification-resources': file:projects/notification-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/panel': file:projects/panel.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/platform': file:projects/platform.tgz
'@rush-temp/platform-rig': file:projects/platform-rig.tgz_37f79b97d0d86442e45d380c86f520c5
@@ -281,9 +282,9 @@ dependencies:
'@rush-temp/prod': file:projects/prod.tgz_sass@1.45.0+typescript@4.5.4
'@rush-temp/query': file:projects/query.tgz
'@rush-temp/recruit': file:projects/recruit.tgz
'@rush-temp/recruit-assets': file:projects/recruit-assets.tgz
'@rush-temp/recruit-assets': file:projects/recruit-assets.tgz_typescript@4.5.4
'@rush-temp/recruit-resources': file:projects/recruit-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/rekoni': file:projects/rekoni.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/rekoni': file:projects/rekoni.tgz
'@rush-temp/server': file:projects/server.tgz
'@rush-temp/server-attachment': file:projects/server-attachment.tgz
'@rush-temp/server-attachment-resources': file:projects/server-attachment-resources.tgz
@@ -294,10 +295,10 @@ dependencies:
'@rush-temp/server-tool': file:projects/server-tool.tgz
'@rush-temp/server-ws': file:projects/server-ws.tgz
'@rush-temp/setting': file:projects/setting.tgz
'@rush-temp/setting-assets': file:projects/setting-assets.tgz
'@rush-temp/setting-assets': file:projects/setting-assets.tgz_typescript@4.5.4
'@rush-temp/setting-resources': file:projects/setting-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/task': file:projects/task.tgz
'@rush-temp/task-assets': file:projects/task-assets.tgz
'@rush-temp/task-assets': file:projects/task-assets.tgz_typescript@4.5.4
'@rush-temp/task-resources': file:projects/task-resources.tgz_6cae74ea501386c76c405ad0408e0339
'@rush-temp/telegram': file:projects/telegram.tgz
'@rush-temp/telegram-assets': file:projects/telegram-assets.tgz
@@ -311,7 +312,7 @@ dependencies:
'@rush-temp/tool': file:projects/tool.tgz
'@rush-temp/ui': file:projects/ui.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/view': file:projects/view.tgz
'@rush-temp/view-assets': file:projects/view-assets.tgz
'@rush-temp/view-assets': file:projects/view-assets.tgz_typescript@4.5.4
'@rush-temp/view-resources': file:projects/view-resources.tgz_096c09b0b673a57c275d9767a12070b1
'@rush-temp/workbench': file:projects/workbench.tgz
'@rush-temp/workbench-assets': file:projects/workbench-assets.tgz
@@ -326,6 +327,7 @@ dependencies:
'@tiptap/extension-typography': 2.0.0-beta.19_@tiptap+core@2.0.0-beta.163
'@tiptap/starter-kit': 2.0.0-beta.171
'@tiptap/suggestion': 2.0.0-beta.87_@tiptap+core@2.0.0-beta.163
'@types/body-parser': 1.19.2
'@types/cors': 2.8.12
'@types/deep-equal': 1.0.1
'@types/express': 4.17.13
@@ -11239,10 +11241,26 @@ packages:
- supports-color
dev: false
file:projects/attachment-assets.tgz:
resolution: {integrity: sha512-FCyg6p/pZjhvZBTdfmGWisxtakixI3vRpGTNGQDRYb/BvSE+GDNYuvPpXmD6HrMh+5sGfcZDMyWhtyGV9/ZqUA==, tarball: file:projects/attachment-assets.tgz}
file:projects/attachment-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-xcBpY6R5qbswdEjR9zIWwK/Rh09ibAJ+bg59cV8TR2T5c0aP6W5SjUdXnPFJgkqWUw8yjhKFw0bDwu3ax9F+HQ==, tarball: file:projects/attachment-assets.tgz}
id: file:projects/attachment-assets.tgz
name: '@rush-temp/attachment-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/attachment-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -11301,10 +11319,26 @@ packages:
- supports-color
dev: false
file:projects/chunter-assets.tgz:
resolution: {integrity: sha512-kMTEO1cP8cmeoA2tImDBtT2SXfjo4AW0MWEbzFvzhZkLZaMmJGtl5ZHclKn/Wwg/LBA1zDc21fKlpeahmuNS4A==, tarball: file:projects/chunter-assets.tgz}
file:projects/chunter-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-BUN5TZL6uCYhXmYp7a+9NFu2oSX6OZdpwfiBeU/K6FGip1Pce+Pfilogrz+LQtohltDvZDwyRK+55ZfLfo81sA==, tarball: file:projects/chunter-assets.tgz}
id: file:projects/chunter-assets.tgz
name: '@rush-temp/chunter-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/chunter-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -11415,10 +11449,26 @@ packages:
- supports-color
dev: false
file:projects/contact-assets.tgz:
resolution: {integrity: sha512-Soih+r56JYBRNnJahBdtzgDrWt70+L2iahEBe8PiCvZSw9V34/itPveFHTQswsaWxFePOZs+SReUugLayehsIA==, tarball: file:projects/contact-assets.tgz}
file:projects/contact-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-orHfBUSHXtfbcxpX6V47bDrJ68DoG+A6XB1N2tZxUOnSCni14rdWwyzBuhzTZlTixh2naDTgh17Whnx4X999nw==, tarball: file:projects/contact-assets.tgz}
id: file:projects/contact-assets.tgz
name: '@rush-temp/contact-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/contact-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -11693,7 +11743,7 @@ packages:
dev: false
file:projects/front.tgz:
resolution: {integrity: sha512-/WdZzrPJRLdanV3e2pxKu4opGut1TLVFgFVo2/om5M995qLWu3lECdHHPMP5t+gl0iXfHMZPFSBxLFOIhceTRg==, tarball: file:projects/front.tgz}
resolution: {integrity: sha512-V6PsOk1d7xpCsUReLA7CrKqh2o8mztkqNBByEc1p3/uMWNWjlSw6/6X2OZY7ZFi06deakWGA1a3GZEuqU7BH/Q==, tarball: file:projects/front.tgz}
name: '@rush-temp/front'
version: 0.0.0
dependencies:
@@ -11975,10 +12025,26 @@ packages:
- supports-color
dev: false
file:projects/lead-assets.tgz:
resolution: {integrity: sha512-cRYB8PutP6HmaJjoEMLIEyMQEhKAQaCu0w2NJMF5TUW9vokia/22TXsHo1+xEGI1rx2epywbGXet/fL40tdbDw==, tarball: file:projects/lead-assets.tgz}
file:projects/lead-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-t08QeW/GXdsTTQZzr7kTbQpq6Rznw1dmGkK22kI83RbxpbOmTi/3rr3yAIps8UXshNxj5ISSvyHL84E7jrvOdA==, tarball: file:projects/lead-assets.tgz}
id: file:projects/lead-assets.tgz
name: '@rush-temp/lead-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/lead-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -12036,10 +12102,26 @@ packages:
- supports-color
dev: false
file:projects/login-assets.tgz:
resolution: {integrity: sha512-a/tWogP5p3gmtAVHY5bGyWLlR4YNEu/nMrTeDaLzi7DmjP0mnqCySe1rHU4UVks4AI6Svnhqo6RtRJOqRDTSoA==, tarball: file:projects/login-assets.tgz}
file:projects/login-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-sz1c+R9TC3aWvbWAsNosO37kV6+dbFOsZ7YvLKYlf3t5q7mIPnQUAypu6orO0NTXGFV0g9mVYdfGI3uQK0x1KQ==, tarball: file:projects/login-assets.tgz}
id: file:projects/login-assets.tgz
name: '@rush-temp/login-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/login-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -12646,8 +12728,8 @@ packages:
- supports-color
dev: false
file:projects/notification-resources.tgz_ac194b5590200ebf8338e0f86ec190f4:
resolution: {integrity: sha512-TgP/VzfwZ+LGqaToY+rKYjH683GBuSHetD9bM85Jg6mtCtU09uogF3mwqKCAU1gyKtiVYLA63VmAb8MkxwV56A==, tarball: file:projects/notification-resources.tgz}
file:projects/notification-resources.tgz_096c09b0b673a57c275d9767a12070b1:
resolution: {integrity: sha512-jOFuqeLEJ/3BNsAhz8NxibKKTkKtu1a8KqSO434S51HidRwdUBUY8lwZUB1UA97OFi/O7r3E4CGE0ERAdQWn0A==, tarball: file:projects/notification-resources.tgz}
id: file:projects/notification-resources.tgz
name: '@rush-temp/notification-resources'
version: 0.0.0
@@ -12661,9 +12743,14 @@ packages:
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
eslint-plugin-svelte3: 3.2.1_eslint@7.32.0+svelte@3.44.3
prettier: 2.5.1
prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3
sass: 1.45.0
svelte: 3.44.3
svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce
svelte-loader: 3.1.2_svelte@3.44.3
svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f
typescript: 4.5.4
transitivePeerDependencies:
- '@babel/core'
@@ -12673,7 +12760,6 @@ packages:
- postcss
- postcss-load-config
- pug
- sass
- stylus
- sugarss
- supports-color
@@ -12920,10 +13006,26 @@ packages:
- utf-8-validate
dev: false
file:projects/recruit-assets.tgz:
resolution: {integrity: sha512-iouQotNQvKMkaP9NDmzSSBJfVdB15GfLWT6NetioLe2wZWGQGlNfnLhznplyicMlaHbQRgq6JpZbLYZNRSGU7g==, tarball: file:projects/recruit-assets.tgz}
file:projects/recruit-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-VXQY6Wc3s7qL7aIymnBjwoYcedwKtURWREjNJObUQtfAd+BjNGlujSX6G+GjdaaOjx/UcgfnEa0baPwgLNUiKQ==, tarball: file:projects/recruit-assets.tgz}
id: file:projects/recruit-assets.tgz
name: '@rush-temp/recruit-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/recruit-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -12983,12 +13085,13 @@ packages:
- supports-color
dev: false
file:projects/rekoni.tgz_096c09b0b673a57c275d9767a12070b1:
resolution: {integrity: sha512-y0ghO9RbY5FeFqBM/g2AE2GWIxvfbXXDZUFgl9/QDSKfX6/G3xr2JdsSXMXUr82YAi7xRRpnIkUHmU4Zws7z1Q==, tarball: file:projects/rekoni.tgz}
id: file:projects/rekoni.tgz
file:projects/rekoni.tgz:
resolution: {integrity: sha512-nlCeMQAQi6qsvr9R5sEHq5GeiFnK85IQc7Pu82ShDSfkf9dsOiFpbqdxCtoelK+HehizuE4ar0lH8Oio+N9QKw==, tarball: file:projects/rekoni.tgz}
name: '@rush-temp/rekoni'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
@@ -12999,21 +13102,8 @@ packages:
eslint-plugin-svelte3: 3.2.1_eslint@7.32.0
prettier: 2.5.1
prettier-plugin-svelte: 2.5.1_prettier@2.5.1
sass: 1.45.0
svelte-check: 2.3.0_ac194b5590200ebf8338e0f86ec190f4
svelte-loader: 3.1.2
svelte-preprocess: 4.10.1_3ae2e5fc7d8fb60bbcea513ad0b15c0f
typescript: 4.5.4
transitivePeerDependencies:
- '@babel/core'
- coffeescript
- less
- node-sass
- postcss
- postcss-load-config
- pug
- stylus
- sugarss
- supports-color
- svelte
dev: false
@@ -13236,10 +13326,26 @@ packages:
- supports-color
dev: false
file:projects/setting-assets.tgz:
resolution: {integrity: sha512-JKszjyXjZ3ec9TNPCllwQAdZSL07axM5RKwRqhZzgV95S5/n3aMZF9R7crgR3VNSBZ2FEq0G9do2nX5Z+7kptA==, tarball: file:projects/setting-assets.tgz}
file:projects/setting-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-WS+4mSO3z5VeoW5f096p9BBH74Tg4FGAJBrn6zHbwUWYtWw7tJGMgxDpLUe+zvwvXR5nLUBiYTE1ZPH6loZcbw==, tarball: file:projects/setting-assets.tgz}
id: file:projects/setting-assets.tgz
name: '@rush-temp/setting-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/setting-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -13297,10 +13403,26 @@ packages:
- supports-color
dev: false
file:projects/task-assets.tgz:
resolution: {integrity: sha512-iCE65Ymh4mzKwv/rdQLUKsr616J8EFXGjsfbPG35QwRNWStKMyiGTRxgnqs+ANKoZMztGdcZXq3DXemT1IZWeQ==, tarball: file:projects/task-assets.tgz}
file:projects/task-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-bCvFP9wagvARCMvWtA+jW7xngIqfQ9Rhta9r4LnQsaW2wlWlXR4VT/nOcmJSqG75B7v2wsyRJ5EPe4uPbkjSlw==, tarball: file:projects/task-assets.tgz}
id: file:projects/task-assets.tgz
name: '@rush-temp/task-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/task-resources.tgz_6cae74ea501386c76c405ad0408e0339:
@@ -13692,10 +13814,26 @@ packages:
- supports-color
dev: false
file:projects/view-assets.tgz:
resolution: {integrity: sha512-dUheCsjUx+oFp4fsGElxwZoCjEUjqd+3jx7p6pnPyO2xA3uiw3F4Jqoj4P6Lu4yw2CavQKbGQIwOAkmcxPvUAg==, tarball: file:projects/view-assets.tgz}
file:projects/view-assets.tgz_typescript@4.5.4:
resolution: {integrity: sha512-ERIy+6P/IcczAn0t+pjvShikzUphLfMAvlnCNpG+zJTHPhEiX2V4LQveDt92XC/IB5CkIifbqkVA26whA08ARA==, tarball: file:projects/view-assets.tgz}
id: file:projects/view-assets.tgz
name: '@rush-temp/view-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
transitivePeerDependencies:
- supports-color
- typescript
dev: false
file:projects/view-resources.tgz_096c09b0b673a57c275d9767a12070b1:
@@ -13755,9 +13893,24 @@ packages:
dev: false
file:projects/workbench-assets.tgz:
resolution: {integrity: sha512-DCD9OfS0mb4mHt9QEJA9kFvaLl7Lcw3fNmNUtDDVFaN0W7xpELihKhKEMn4wt+FvwwTww5D/jykdb0sQh7K6Fw==, tarball: file:projects/workbench-assets.tgz}
resolution: {integrity: sha512-LwATfMPGMKHg7sp9mSpZTlgzMyPGJ3HgTJ1++mkLELWU3G+DMOiqwy3VaNR2/zPxOit+4/1pwW+yi3ruXqNYFg==, tarball: file:projects/workbench-assets.tgz}
name: '@rush-temp/workbench-assets'
version: 0.0.0
dependencies:
'@rushstack/heft': 0.41.8
'@types/heft-jest': 1.0.2
'@types/node': 16.11.14
'@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237
'@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4
eslint: 7.32.0
eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a
eslint-plugin-import: 2.25.3_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 5.2.0_eslint@7.32.0
prettier: 2.5.1
typescript: 4.5.4
transitivePeerDependencies:
- supports-color
dev: false
file:projects/workbench-resources.tgz_096c09b0b673a57c275d9767a12070b1:
+1 -1
View File
@@ -10,7 +10,7 @@
"dev-server": "cross-env CLIENT_TYPE=dev-server webpack serve",
"start": "cross-env NODE_ENV=production webpack serve",
"preformat-svelte": "prettier -w src/**/*.svelte",
"lint": "eslint --max-warnings=0 src",
"lint": "",
"lint:fix": "yarn preformat-svelte && eslint --fix src",
"deploy": "cp -p public/* dist && aws s3 sync dist s3://anticrm-platform --delete --acl public-read"
},
+1 -1
View File
@@ -1,4 +1,4 @@
//
//
// Copyright © 2020, 2021 Anticrm Platform Contributors.
// Copyright © 2021 Hardcore Engineering Inc.
//
+4 -4
View File
@@ -1,7 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/ui/config/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+8 -10
View File
@@ -1,21 +1,18 @@
{
"name": "@anticrm/rekoni",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "echo 'no build for ui'",
"build": "heft build",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"svelte-check": "svelte-check"
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"svelte-loader": "^3.1.2",
"sass": "^1.37.5",
"svelte-preprocess": "^4.7.4",
"@anticrm/platform-rig": "~0.6.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
@@ -27,8 +24,9 @@
"prettier-plugin-svelte": "^2.2.0",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"svelte-check": "^2.2.10",
"typescript": "^4.3.5"
"typescript": "^4.3.5",
"@types/heft-jest": "^1.0.2",
"@rushstack/heft": "^0.41.1"
},
"dependencies": {
"@anticrm/platform": "~0.6.5",
+3
View File
@@ -20,6 +20,9 @@ import { ReconiDocument } from './types'
export { default } from './plugin'
export * from './types'
/**
* @public
*/
export async function recognizeDocument (token: string, url: string): Promise<ReconiDocument> {
const rekoniUrl = getMetadata(plugin.metadata.RekoniUrl)
if (rekoniUrl === undefined) {
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "echo 'no build for ui'",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint": "eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src"
},
+2 -2
View File
@@ -16,9 +16,9 @@
import { addStringsLoader, loadMetadata } from '@anticrm/platform'
import activity, { activityId } from '@anticrm/activity'
const icons = require('../assets/icons.svg') // eslint-disable-line
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(activity.icon, {
Activity: `${icons}#activity` // eslint-disable-line
Activity: `${icons}#activity`
})
addStringsLoader(activityId, async (lang: string) => await import(`../lang/${lang}.json`))
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/attachment-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10",
"@anticrm/platform-rig": "~0.6.0"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/attachment": "~0.6.0"
+4 -4
View File
@@ -1,14 +1,14 @@
//
// 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.
//
@@ -16,7 +16,7 @@
import { addStringsLoader, loadMetadata } from '@anticrm/platform'
import attachment, { attachmentId } from '@anticrm/attachment'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(attachment.icon, {
Attachment: `${icons}#chunter`
})
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/chunter-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/chunter": "~0.6.0"
+5 -5
View File
@@ -1,22 +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 { addStringsLoader, loadMetadata } from '@anticrm/platform'
import chunter, {chunterId} from '@anticrm/chunter'
import chunter, { chunterId } from '@anticrm/chunter'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(chunter.icon, {
Chunter: `${icons}#chunter`,
Hashtag: `${icons}#hashtag`,
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/contact-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/contact": "~0.6.2"
+4 -5
View File
@@ -1,14 +1,14 @@
//
// 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.
//
@@ -16,7 +16,7 @@
import { addStringsLoader, loadMetadata } from '@anticrm/platform'
import contact, { contactId } from '@anticrm/contact'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(contact.icon, {
Phone: `${icons}#phone`,
Email: `${icons}#email`,
@@ -35,4 +35,3 @@ loadMetadata(contact.icon, {
Company: `${icons}#company`
})
addStringsLoader(contactId, async (lang: string) => await import(`../lang/${lang}.json`))
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
@@ -0,0 +1,11 @@
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
// It should be published with your NPM package. It should not be tracked by Git.
{
"tsdocVersion": "0.12",
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.19.2"
}
]
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@anticrm/inventory-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
+1 -1
View File
@@ -17,7 +17,7 @@
import { addStringsLoader, loadMetadata } from '@anticrm/platform'
import inventory, { inventoryId } from '@anticrm/inventory'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(inventory.icon, {
InventoryApplication: `${icons}#inventory`,
Categories: `${icons}#categories`,
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/lead-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/lead": "~0.6.0"
+2 -2
View File
@@ -15,9 +15,9 @@
//
import { addStringsLoader, loadMetadata } from '@anticrm/platform'
import lead, {leadId} from '@anticrm/lead'
import lead, { leadId } from '@anticrm/lead'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(lead.icon, {
Funnel: `${icons}#funnel`,
Lead: `${icons}#lead`,
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "echo 'no build for ui'",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint": "eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src"
},
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+6 -2
View File
@@ -28,8 +28,6 @@ export interface Funnel extends SpaceWithStates {}
/**
* @public
*
* @Mixin
*/
export interface Customer extends Contact {
@@ -55,6 +53,9 @@ export interface Lead extends Task {
*/
export const leadId = 'lead' as Plugin
/**
* @public
*/
const lead = plugin(leadId, {
class: {
Lead: '' as Ref<Class<Lead>>,
@@ -73,4 +74,7 @@ const lead = plugin(leadId, {
}
})
/**
* @public
*/
export default lead
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/login-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/login": "~0.6.1"
+4 -4
View File
@@ -1,15 +1,15 @@
//
// Copyright © 2020, 2021 Anticrm Platform Contributors.
// Copyright © 2021 Hardcore Engineering Inc.
//
//
// 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.
//
@@ -19,4 +19,4 @@ import { loginId } from '@anticrm/login'
addStringsLoader(loginId, async (lang: string) => {
return await import(`../lang/${lang}.json`)
})
})
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "echo 'no build for ui'",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint": "eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src"
},
+7 -1
View File
@@ -3,6 +3,7 @@
"version": "0.6.0",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"template": "@anticrm/platform-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
@@ -25,7 +26,12 @@
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"typescript": "^4.3.5",
"svelte-check": "~2.3.0"
"svelte-check": "^2.2.10",
"svelte-loader": "^3.1.2",
"sass": "^1.37.5",
"svelte-preprocess": "^4.7.4",
"eslint-plugin-svelte3": "~3.2.1",
"prettier-plugin-svelte": "^2.2.0"
},
"dependencies": {
"@anticrm/presentation": "~0.6.2",
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
require('autoprefixer')
]
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/recruit-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/recruit": "~0.6.0"
+4 -4
View File
@@ -1,14 +1,14 @@
//
// 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.
//
@@ -16,7 +16,7 @@
import { loadMetadata, addStringsLoader } from '@anticrm/platform'
import recruit, { recruitId } from '@anticrm/recruit'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(recruit.icon, {
RecruitApplication: `${icons}#recruitment`,
Vacancy: `${icons}#vacancy`,
+2 -2
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "echo 'no build for ui'",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint": "eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src"
},
@@ -43,7 +43,7 @@
"@anticrm/login": "~0.6.1",
"deep-equal": "^2.0.5",
"@anticrm/panel": "~0.6.0",
"@anticrm/activity":"~0.6.0",
"@anticrm/activity": "~0.6.0",
"@anticrm/attachment": "~0.6.0",
"@anticrm/attachment-resources": "~0.6.0",
"@anticrm/chunter-resources": "~0.6.0",
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/setting-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/setting": "~0.6.0"
+4 -4
View File
@@ -1,14 +1,14 @@
//
// 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.
//
@@ -16,7 +16,7 @@
import { loadMetadata, addStringsLoader } from '@anticrm/platform'
import setting, { settingId } from '@anticrm/setting'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(setting.icon, {
EditProfile: `${icons}#edit`,
Password: `${icons}#password`,
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/task-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/task": "~0.6.0"
+5 -5
View File
@@ -1,22 +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 { addStringsLoader, loadMetadata } from '@anticrm/platform'
import task, {taskId} from '@anticrm/task'
import task, { taskId } from '@anticrm/task'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(task.icon, {
Task: `${icons}#task`,
Kanban: `${icons}#kanban`,
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@anticrm/telegram-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
+1 -1
View File
@@ -15,6 +15,6 @@
//
import { addStringsLoader } from '@anticrm/platform'
import {telegramId} from '@anticrm/telegram'
import { telegramId } from '@anticrm/telegram'
addStringsLoader(telegramId, async (lang: string) => await import(`../lang/${lang}.json`))
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@anticrm/templates-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
+1 -1
View File
@@ -17,7 +17,7 @@
import { addStringsLoader, loadMetadata } from '@anticrm/platform'
import templates, { templatesId } from '@anticrm/templates'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(templates.icon, {
Templates: `${icons}#templates`
})
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+4 -1
View File
@@ -4,6 +4,9 @@
"SelectToMove": "Select the {classLabel} you want to move {class} to.",
"Delete": "Delete",
"Move": "Move",
"Cancel": "Cancel"
"Cancel": "Cancel",
"LabelYes": "Yes",
"LabelNo": "No",
"LabelNA": "N/A"
}
}
+21 -7
View File
@@ -1,17 +1,31 @@
{
"name": "@anticrm/view-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:docs": "api-extractor run --local",
"lint": "ts-standard src",
"lint:fix": "ts-standard --fix src",
"format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src"
"build": "heft build",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@types/heft-jest": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@rushstack/heft": "^0.41.1",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/view": "~0.6.0"
+4 -4
View File
@@ -1,14 +1,14 @@
//
// 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.
//
@@ -16,7 +16,7 @@
import { addStringsLoader, loadMetadata } from '@anticrm/platform'
import view, { viewId } from '@anticrm/view'
const icons = require('../assets/icons.svg')
const icons = require('../assets/icons.svg') as string // eslint-disable-line
loadMetadata(view.icon, {
Table: `${icons}#table`,
Delete: `${icons}#delete`,
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "echo 'no build for ui'",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint": "eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src"
},
@@ -17,16 +17,11 @@
<script lang="ts">
// import type { IntlString } from '@anticrm/platform'
import { Label } from '@anticrm/ui'
import { getBooleanLabel } from '../utils'
export let value: any
export let maxWidth: string | undefined = undefined
export let onChange: (value: any) => void
function getLabel(value: boolean | undefined) {
if (value === true) return 'Yes'
if (value === false) return 'No'
return 'N/A'
}
</script>
<div
@@ -52,7 +47,7 @@
<path fill="#fff" d="M7.3,9.3h1.3V9c0.1-0.5,0.6-0.9,1.1-1.4c0.4-0.4,0.8-0.9,0.8-1.6c0-1.1-0.8-1.8-2.2-1.8c-1.4,0-2.4,0.8-2.5,2.2 h1.4c0.1-0.6,0.4-1,1-1C8.8,5.4,9,5.7,9,6.2c0,0.4-0.3,0.7-0.7,1.1c-0.5,0.5-1,0.9-1,1.7V9.3z M8,11.6c0.5,0,0.9-0.4,0.9-0.9 c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9C7.1,11.2,7.5,11.6,8,11.6z"/>
{/if}
</svg>
<span><Label label={getLabel(value)} /></span>
<span><Label label={getBooleanLabel(value)} /></span>
</div>
<style lang="scss">
@@ -15,16 +15,10 @@
-->
<script lang="ts">
import { IntlString } from '@anticrm/platform'
import { Label } from '@anticrm/ui'
import { getBooleanLabel } from '../utils'
export let value: any
function getLabel(value: boolean | undefined): IntlString {
if (value === true) return 'Yes' as IntlString
if (value === false) return 'No' as IntlString
return 'N/A' as IntlString
}
</script>
<div class="flex-row-center yesno-container" class:yes={value === true} class:no={value === false} class:unknown={value === undefined}>
@@ -38,7 +32,7 @@
<path fill="#fff" d="M7.3,9.3h1.3V9c0.1-0.5,0.6-0.9,1.1-1.4c0.4-0.4,0.8-0.9,0.8-1.6c0-1.1-0.8-1.8-2.2-1.8c-1.4,0-2.4,0.8-2.5,2.2 h1.4c0.1-0.6,0.4-1,1-1C8.8,5.4,9,5.7,9,6.2c0,0.4-0.3,0.7-0.7,1.1c-0.5,0.5-1,0.9-1,1.7V9.3z M8,11.6c0.5,0,0.9-0.4,0.9-0.9 c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9C7.1,11.2,7.5,11.6,8,11.6z"/>
{/if}
</svg>
<span><Label label={getLabel(value)} /></span>
<span><Label label={getBooleanLabel(value)} /></span>
</div>
<style lang="scss">
+4 -1
View File
@@ -22,6 +22,9 @@ export default mergeIds(viewId, view, {
MoveClass: '' as IntlString,
SelectToMove: '' as IntlString,
Move: '' as IntlString,
Cancel: '' as IntlString
Cancel: '' as IntlString,
LabelYes: '' as IntlString,
LabelNo: '' as IntlString,
LabelNA: '' as IntlString
}
})
+9 -2
View File
@@ -34,6 +34,7 @@ import { getAttributePresenterClass } from '@anticrm/presentation'
import { ErrorPresenter, getPlatformColorForText } from '@anticrm/ui'
import type { Action, ActionTarget, BuildModelOptions, ObjectDDParticipant } from '@anticrm/view'
import view, { AttributeModel, BuildModelKey } from '@anticrm/view'
import plugin from './plugin'
/**
* Define some properties to be used to show component until data is properly loaded.
@@ -128,7 +129,7 @@ async function getPresenter<T extends Doc> (
} else {
if (key.key.startsWith('$lookup')) {
if (lookup === undefined) {
throw new Error('lookup class does not provided for ' + key)
throw new Error(`lookup class does not provided for ${key.key}`)
}
return await getLookupPresenter(client, _class, key, preserveKey, lookup)
}
@@ -290,7 +291,7 @@ function getLookup (key: string, lookup: Lookup<any>, parent: Ref<Class<Doc>>):
const currentKey = parts[0].split('.').filter((p) => p.length > 0)[0]
const current = (lookup as any)[currentKey]
const nestedKey = parts.slice(1).join('$lookup.')
if (nestedKey) {
if (nestedKey.length > 0) {
if (!Array.isArray(current)) {
return
}
@@ -305,3 +306,9 @@ function getLookup (key: string, lookup: Lookup<any>, parent: Ref<Class<Doc>>):
}
return current !== undefined ? [current, parent] : undefined
}
export function getBooleanLabel (value: boolean | undefined): IntlString {
if (value === true) return plugin.string.LabelYes
if (value === false) return plugin.string.LabelNo
return plugin.string.LabelNA
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
}
}
+18
View File
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@anticrm/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+21 -6
View File
@@ -1,16 +1,31 @@
{
"name": "@anticrm/workbench-assets",
"version": "0.6.0",
"main": "src/index.ts",
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"lint": "",
"lint:fix": "",
"format": ""
"build": "heft build",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
},
"devDependencies": {
"@anticrm/platform-rig": "~0.6.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"@types/heft-jest": "^1.0.2",
"@rushstack/heft": "^0.41.1",
"typescript": "^4.3.5",
"@types/node": "^16.4.10"
},
"devDependencies": {},
"dependencies": {
"@anticrm/platform": "~0.6.5",
"@anticrm/workbench": "~0.6.0"
+3 -3
View File
@@ -1,14 +1,14 @@
//
// 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.
//
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "echo 'no build for ui'",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint": "eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src"
},
+1 -1
View File
@@ -47,6 +47,6 @@
"elastic-apm-node": "~3.26.0",
"minio": "~7.0.26",
"@anticrm/server-contact": "~0.6.1",
"@anticrm/server-contact-resources": "~0.6.0"
"@anticrm/server-contact-resources": "~0.6.0"
}
}
+6
View File
@@ -57,6 +57,12 @@ function updatePackage(packageRoot, templates) {
template = t
}
// Allow to configure explicit template selection
if( currentPackage.template === t.package.name) {
template = t
break
}
if (t.package.peerDependencies !== undefined) {
const peers = Object.keys(t.package.peerDependencies)
const deps = Object.keys(currentPackage.dependencies ?? {})
+4
View File
@@ -10,6 +10,10 @@ So ui template with peer dependency to `svelte`, will be matched to any UI plugi
If no template is matched for project then `default` template will be used.
## Explicit template selection
If package.json contains "template" field, template from templates with matched name will be selected.
## Apply rules
- If file in template folder is pressent and file in project folder is not, it will be copied.
+4 -3
View File
@@ -1,14 +1,15 @@
{
"name": "@anticrm/tests-sanity",
"version": "0.6.1",
"template": "@anticrm/default-package",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "",
"build:watch": "",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src",
"lint:fix": "eslint --fix tests",
"lint": "eslint tests",
"format": "prettier --write tests && eslint --fix tests",
"ci": "playwright install --with-deps chromium",
"test": "",
"uitest": "playwright test --browser chromium --reporter list,html -c ./tests/playwright.config.ts"