Remove unnecessary css class

Fixes #1305
This commit is contained in:
Sipke Schoorstra 2021-07-24 12:34:53 +02:00
parent e55b2fbf60
commit 87544690d2
7 changed files with 44 additions and 5 deletions

View file

@ -22,9 +22,10 @@
"scripts": {
"push": "npm publish --access public",
"push:preview": "npm publish --access public --tag preview",
"build": "npm run build:tailwind:prod & stencil build --config stencil.dist.config.ts",
"build": "npm run build:tailwind:prod & stencil build --config stencil.config.dist.ts",
"build:dev": "stencil build --dev --config stencil.dev.config.ts",
"start": "stencil build --dev --watch --serve --config stencil.dev.config.ts",
"start": "stencil build --watch --serve --config stencil.config.prod.ts",
"start:dev": "stencil build --dev --watch --serve --config stencil.config.dev.ts",
"test": "stencil test --spec --e2e",
"test.watch": "stencil test --spec --e2e --watchAll",
"generate": "stencil generate",

View file

@ -491,7 +491,7 @@ export class ElsaWorkflowDesigner {
console.warn(`Attempt ${attempt + 1} failed while trying to render tree. Retrying ${maxTries - attempt + 1} more times.`)
if (attempt < maxTries)
this.tryRerenderTree(waitTime, attempt + 1);
this.tryRerenderTree(waitTime * attempt, attempt + 1);
}
}, waitTime);
}

View file

@ -14,7 +14,7 @@
| `editorHeight` | `editor-height` | | `string` | `'10em'` |
| `expressions` | -- | | `{ [key: string]: string; }` | `{}` |
| `fieldName` | `field-name` | | `string` | `undefined` |
| `isDisabled` | `is-disabled` | | `boolean` | `undefined` |
| `isReadOnly` | `is-read-only` | | `boolean` | `undefined` |
| `label` | `label` | | `string` | `undefined` |
| `singleLineMode` | `single-line` | | `boolean` | `false` |
| `supportedSyntaxes` | -- | | `string[]` | `[]` |

View file

@ -289,7 +289,7 @@ export class ElsaWorkflowInstanceJournal {
<li>
<div onClick={() => this.onRecordClick(record)} class={`${recordClass} elsa-border-2 elsa-cursor-pointer elsa-p-4 elsa-rounded`}>
<div class="elsa-relative elsa-pb-10">
{isLastItem ? undefined : <div class="elsa-flex elsa-absolute top-8 elsa-left-4 -elsa-ml-px elsa-h-full elsa-w-0.5 elsa-bg-gray-200">
{isLastItem ? undefined : <div class="elsa-flex elsa-absolute top-8 elsa-left-4 -elsa-ml-px elsa-h-full elsa-w-0.5">
<div class="elsa-flex elsa-flex-1 elsa-items-center elsa-relative elsa-right-10">
<span class="elsa-flex-1 elsa-text-sm elsa-text-gray-500 elsa-w-max elsa-bg-white elsa-p-1 elsa-rounded">{deltaTimeText}</span>
</div>

View file

@ -0,0 +1,38 @@
import {Config} from '@stencil/core';
import {postcss} from '@stencil/postcss';
import postcssImport from 'postcss-import';
import tailwindcss from 'tailwindcss';
import cssnano from 'cssnano';
// @ts-ignore
const purgecss = require('@fullhuman/postcss-purgecss')({
content: ['./src/**/*.tsx', './src/**/*.html'],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [],
safelist: ['jtk-connector'],
});
export const config: Config = {
namespace: 'elsa-workflows-studio',
outputTargets: [
{
type: 'www',
serviceWorker: null, // disable service workers,
copy: [
{src: 'assets', dest: 'build/assets'},
{src: '../node_modules/monaco-editor/min', dest: 'build/assets/js/monaco-editor/min'},
{src: '../node_modules/monaco-editor/min-maps', dest: 'build/assets/js/monaco-editor/min-maps'}
]
},
],
globalStyle: 'src/globals/tailwind.css',
plugins: [
postcss({
plugins: [
postcssImport,
tailwindcss,
purgecss,
cssnano
]
})
],
};