mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
:Apply templates (#3799)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
|
||||
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
settings: {
|
||||
'svelte3/ignore-styles': () => true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
|
||||
"rigPackageName": "@hcengineering/platform-rig",
|
||||
"rigProfile": "ui"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
|
||||
}
|
||||
@@ -5,13 +5,13 @@
|
||||
"author": "Anticrm Platform Contributors",
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
|
||||
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
|
||||
"build:docs": "api-extractor run --local",
|
||||
"lint": "svelte-check && eslint",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"svelte-check": "svelte-check --output human",
|
||||
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
|
||||
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
|
||||
"build:watch": "tsc --noEmit --outDir ./dist_cache"
|
||||
},
|
||||
"devDependencies": {
|
||||
"svelte-loader": "^3.1.3",
|
||||
@@ -28,8 +28,11 @@
|
||||
"prettier-plugin-svelte": "^2.8.0",
|
||||
"eslint": "^8.26.0",
|
||||
"prettier": "^2.7.1",
|
||||
"svelte-check": "3.2.0",
|
||||
"typescript": "^4.3.5"
|
||||
"svelte-check": "3.5.2",
|
||||
"typescript": "4.8.4",
|
||||
"jest": "^29.7.0",
|
||||
"ts-jest": "^29.1.1",
|
||||
"@types/jest": "^29.5.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"svelte": "3.55.1",
|
||||
|
||||
@@ -78,11 +78,11 @@
|
||||
|
||||
$: queries = { all, active, backlog }
|
||||
$: mode = $resolvedLocationStore.query?.mode ?? undefined
|
||||
$: if (mode === undefined || queries[mode] === undefined) {
|
||||
$: if (mode === undefined || (queries as any)[mode] === undefined) {
|
||||
;[[mode]] = config
|
||||
}
|
||||
$: if (mode !== undefined) {
|
||||
query = { ...queries[mode] }
|
||||
query = { ...(queries as any)[mode] }
|
||||
modeSelectorProps = {
|
||||
config,
|
||||
mode,
|
||||
|
||||
@@ -182,10 +182,10 @@
|
||||
issueToUpdate.set(issue._id, upd)
|
||||
}
|
||||
for (const status in Object.keys(statusToUpdate)) {
|
||||
statusToUpdate[status] = { ref: status, create: true }
|
||||
statusToUpdate[status as Ref<Status>] = { ref: status as Ref<Status>, create: true }
|
||||
}
|
||||
for (const component in Object.keys(componentToUpdate)) {
|
||||
componentToUpdate[component] = { ref: component, create: true }
|
||||
componentToUpdate[component as Ref<Component>] = { ref: component as Ref<Component>, create: true }
|
||||
}
|
||||
|
||||
for (const issue of toMove) {
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<Label label={tracker.string.Replacement} />
|
||||
</div>
|
||||
{#each Object.keys(statusToUpdate) as status}
|
||||
{@const newStatus = statusToUpdate[status]}
|
||||
{@const newStatus = statusToUpdate[getStatusRef(status)]}
|
||||
<div class="flex-between min-h-11">
|
||||
<StatusRefPresenter value={getStatusRef(status)} space={currentProject} kind={'list-header'} />
|
||||
<IconArrowRight size={'small'} fill={'var(--theme-halfcontent-color)'} />
|
||||
@@ -107,6 +107,9 @@
|
||||
shape={'round-sm'}
|
||||
width={'min-content'}
|
||||
on:click={(event) => {
|
||||
if (newStatus === undefined) {
|
||||
return
|
||||
}
|
||||
showPopup(
|
||||
StatusReplacementPopup,
|
||||
{
|
||||
@@ -127,7 +130,9 @@
|
||||
}}
|
||||
>
|
||||
<span slot="content" class="flex-row-center pointer-events-none">
|
||||
<StatusRefPresenter space={targetProject._id} value={getStatusRef(newStatus.ref)} />
|
||||
{#if newStatus !== undefined}
|
||||
<StatusRefPresenter space={targetProject._id} value={getStatusRef(newStatus.ref)} />
|
||||
{/if}
|
||||
</span>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -64,11 +64,11 @@
|
||||
|
||||
$: queries = { assigned, created, subscribed }
|
||||
$: mode = $resolvedLocationStore.query?.mode ?? undefined
|
||||
$: if (mode === undefined || queries[mode] === undefined) {
|
||||
$: if (mode === undefined || (queries as any)[mode] === undefined) {
|
||||
;[[mode]] = config
|
||||
}
|
||||
$: if (mode !== undefined) {
|
||||
query = { ...queries[mode] }
|
||||
query = { ...(queries as any)[mode] }
|
||||
if (query?.space === undefined) {
|
||||
query = { ...query, space: { $nin: archived } }
|
||||
}
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
{
|
||||
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"noImplicitAny": false,
|
||||
"esModuleInterop": true,
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom"
|
||||
]
|
||||
"rootDir": "./src",
|
||||
"outDir": "./lib"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user