Skip to content

Commit

Permalink
v1.28.27
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Feb 6, 2024
2 parents f6ae6a3 + 09a15c0 commit 1cedeb3
Show file tree
Hide file tree
Showing 12 changed files with 1,493 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "automa",
"version": "1.28.26",
"version": "1.28.27",
"description": "An extension for automating your browser by connecting blocks",
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,7 +46,7 @@
"@tiptap/pm": "^2.0.4",
"@tiptap/starter-kit": "^2.0.4",
"@tiptap/vue-3": "^2.0.4",
"@viselect/vanilla": "^3.2.5",
"@viselect/vanilla": "^3.5.0",
"@vue-flow/background": "^1.2.0",
"@vue-flow/core": "^1.23.0",
"@vue-flow/minimap": "^1.2.0",
Expand Down
3 changes: 3 additions & 0 deletions src/background/BackgroundWorkflowTriggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ class BackgroundWorkflowTriggers {
}

for (const currWorkflow of workflowsArr) {
// eslint-disable-next-line no-continue
if (currWorkflow.isDisabled) continue;

let triggerBlock = currWorkflow.trigger;

if (!triggerBlock) {
Expand Down
14 changes: 13 additions & 1 deletion src/components/newtab/workflows/WorkflowsLocal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ const selection = new SelectionArea({
startareas: ['.workflows-list'],
boundaries: ['.workflows-list'],
selectables: ['.local-workflow'],
behaviour: {
overlap: 'invert',
},
});
selection
.on('beforestart', ({ event }) => {
Expand All @@ -184,7 +187,8 @@ selection
})
.on('start', () => {
/* eslint-disable-next-line */
clearSelectedWorkflows();
clearSelectedWorkflows();
document.body.style.userSelect = 'none';
})
.on('move', (event) => {
event.store.changed.added.forEach((el) => {
Expand All @@ -198,6 +202,7 @@ selection
state.selectedWorkflows = event.store.selected.map(
(el) => el.dataset?.workflow
);
document.body.style.userSelect = '';
});
const filteredWorkflows = computed(() => {
Expand Down Expand Up @@ -422,3 +427,10 @@ onBeforeUnmount(() => {
window.removeEventListener('keydown', deleteSelectedWorkflows);
});
</script>
<style>
.selection-area {
background: rgba(46, 115, 252, 0.11);
border: 2px solid rgba(98, 155, 255, 0.81);
border-radius: 0.1em;
}
</style>
1 change: 1 addition & 0 deletions src/lib/dayjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'dayjs/locale/vi';
import 'dayjs/locale/fr';
import 'dayjs/locale/it';
import 'dayjs/locale/uk';
import 'dayjs/locale/tr';

dayjs.extend(relativeTime);

Expand Down

0 comments on commit 1cedeb3

Please sign in to comment.