Skip to content

Commit 7e3536b

Browse files
Automations feature frontend (#49)
Co-authored-by: Uros Marolt <uros@marolt.me>
1 parent c5b4b75 commit 7e3536b

53 files changed

Lines changed: 2408 additions & 62 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/package-lock.json

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"uuid": "8.3.0",
4242
"vue": "^3.2.29",
4343
"vue-grid-layout": "3.0.0-beta1",
44+
"vue-json-pretty": "^2.2.2",
4445
"vue-router": "^4.0.12",
4546
"vuedraggable": "^2.24.3",
4647
"vuex": "^4.0.2",

frontend/public/images/automations-empty-state.svg

Lines changed: 55 additions & 0 deletions
Loading

frontend/src/assets/scss/buttons.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.btn {
2-
@apply px-4 py-3 rounded-lg shadow-sm font-semibold inline-flex items-center justify-center leading-none text-sm h-auto;
2+
@apply px-4 py-3 rounded shadow-sm font-semibold inline-flex items-center justify-center leading-none text-sm h-auto;
33
transition: all 0.2s;
44

55
&.el-button {
@@ -36,7 +36,9 @@
3636
}
3737

3838
&[disabled] {
39-
@apply bg-primary-900 border border-primary-900 text-white;
39+
@apply border text-white opacity-100;
40+
border: 1px solid #F6B9AB;
41+
background: #F6B9AB;
4042
}
4143
}
4244

@@ -87,6 +89,14 @@
8789
}
8890
}
8991

92+
&--text {
93+
@apply bg-transparent border-0 shadow-none text-primary-900;
94+
&:hover, &:focus {
95+
@apply text-primary-900;
96+
background: #FDEDEA;
97+
}
98+
}
99+
90100
&--full {
91101
@apply w-full;
92102
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.el-drawer {
2+
--el-drawer-padding-primary: 24px;
3+
4+
&__header {
5+
@apply mb-4;
6+
}
7+
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
.el-dropdown-menu__item, .el-dropdown-menu__item a {
2-
@apply flex items-center text-gray-900;
2+
@apply flex items-center text-gray-900 px-4 py-3;
33

44
i {
55
@apply mr-2;
66
}
77

88
&:focus, &:not(.is-disabled):hover, &:not(.is-disabled):focus {
9-
@apply text-gray-900;
10-
background-color: #fffbf8;
9+
@apply text-gray-900 font-medium;
10+
background: #F8FAFC;
1111
}
1212
}
1313

1414
.el-dropdown-title {
15-
@apply block font-semibold pb-2 px-4 text-sm text-gray-900;
15+
@apply block font-bold pb-2 px-4 text-sm text-gray-900;
1616
}
1717

1818
.el-dropdown-separator {
19-
@apply mx-4 my-2 border-gray-100;
19+
@apply mx-4 my-2 border-gray-50;
2020
}

frontend/src/assets/scss/form.scss

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
}
3737

3838
.el-form-item__label {
39-
@apply font-semibold text-black h-6 leading-6;
40-
float: none;
39+
@apply font-medium text-black h-7 leading-6;
4140
}
4241
.el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label:before {
4342
display: none;
@@ -62,7 +61,7 @@
6261

6362
.el-checkbox {
6463
&__label {
65-
@apply text-black;
64+
@apply text-black font-normal;
6665
}
6766

6867
&__input {
@@ -119,13 +118,6 @@
119118
@apply border-secondary-900;
120119
}
121120

122-
.el-switch__label.is-active {
123-
@apply text-secondary-900;
124-
}
125-
.el-switch.is-checked .el-switch__core {
126-
@apply bg-secondary-900 border-secondary-900;
127-
}
128-
129121
.el-form-item.is-error .el-input__inner,
130122
.el-form-item.is-error .el-input__inner:focus,
131123
.el-form-item.is-error .el-textarea__inner,

frontend/src/assets/scss/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727
@import 'pagination';
2828
@import 'toast';
2929
@import 'tabs';
30+
@import 'drawer';
3031

3132
@import '~remixicon/fonts/remixicon.css';

frontend/src/assets/scss/layout.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ hr {
142142
@apply bg-transparent;
143143
}
144144
.el-loading-spinner {
145-
@apply relative top-auto mt-auto flex items-center justify-center;
145+
@apply relative flex items-center justify-center h-full;
146146
.circular {
147-
@apply w-5 h-5;
147+
@apply w-10 h-10;
148148
}
149149
}
150150
}

frontend/src/assets/scss/tabs.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,4 @@
1717
box-shadow: none;
1818
}
1919
}
20-
&__nav-wrap::after {
21-
@apply hidden;
22-
}
2320
}

0 commit comments

Comments
 (0)