diff --git a/frontend/assets/scss/abstract.scss b/frontend/assets/scss/abstract.scss
index a249302240..90037445e9 100644
--- a/frontend/assets/scss/abstract.scss
+++ b/frontend/assets/scss/abstract.scss
@@ -16,10 +16,10 @@
*/
// abstract
-@import 'abstract/fonts/fonts';
@import 'abstract/functions/functions';
@import 'abstract/variables/variables';
@import 'abstract/mixins/mixins';
@import 'abstract/mixins/media-queries';
@import 'abstract/mixins/grid-mixins';
@import 'abstract/placeholders/placeholders';
+@import 'abstract/placeholders/tooltip';
diff --git a/frontend/assets/scss/abstract/fonts/fonts.scss b/frontend/assets/scss/abstract/fonts/fonts.scss
deleted file mode 100644
index 305239b981..0000000000
--- a/frontend/assets/scss/abstract/fonts/fonts.scss
+++ /dev/null
@@ -1,31 +0,0 @@
-@font-face {
- font-family: 'Futura Medium';
- font-style: normal;
- font-weight: normal;
- font-display: auto;
- src: local('Futura'), url('/fonts/futura-medium.woff2') format('woff2');
-}
-
-@font-face {
- font-family: 'Futura Medium Condensed';
- font-style: normal;
- font-weight: normal;
- font-display: auto;
- src: local('Futura Medium Condensed'), url('/fonts/futura-medium-condensed.woff2') format('woff2');
-}
-
-@font-face {
- font-family: 'Futura Bold';
- font-style: normal;
- font-weight: normal;
- font-display: auto;
- src: local('Futura Bold'), url('/fonts/futura-bold.woff2') format('woff2');
-}
-
-@font-face {
- font-family: 'Futura Light';
- font-style: normal;
- font-weight: normal;
- font-display: auto;
- src: local('Futura Light'), url('/fonts/futura-light.woff2') format('woff2');
-}
\ No newline at end of file
diff --git a/frontend/assets/scss/abstract/functions/_functions.scss b/frontend/assets/scss/abstract/functions/_functions.scss
index f2302d86e3..c493625c0d 100644
--- a/frontend/assets/scss/abstract/functions/_functions.scss
+++ b/frontend/assets/scss/abstract/functions/_functions.scss
@@ -37,10 +37,10 @@
// http://erskinedesign.com/blog/friendlier-colour-names-sass-maps/
@function palette($palette, $tone: 'base') {
- @if map-has-key($palettes-neutral, $palette) {
- @return map-get(map-get($palettes-neutral, $palette), $tone);
+ @if map-has-key($palettes, $palette) {
+ @return map-get(map-get($palettes, $palette), $tone);
}
- @warn "Unknown `#{$palette}` in $palettes-neutral.";
+ @warn "Unknown `#{$palette}` in $palettes.";
@return null;
}
diff --git a/frontend/assets/scss/abstract/placeholders/_placeholders.scss b/frontend/assets/scss/abstract/placeholders/_placeholders.scss
index 56f6d0407e..60b15fbfa3 100644
--- a/frontend/assets/scss/abstract/placeholders/_placeholders.scss
+++ b/frontend/assets/scss/abstract/placeholders/_placeholders.scss
@@ -35,12 +35,12 @@
background: linear-gradient( to bottom, $primary-color 0%, $primary-lighten-color 100%);
}
-// Linear gradient using $secondary-color
+// Linear gradient using palette(blue, 300)
%secondary-color-gradient {
- background: $secondary-color;
- background: -moz-linear-gradient( top, $secondary-color 0%, $secondary-darken-color 55%, $secondary-color 100%);
- background: -webkit-linear-gradient( top, $secondary-color 0%, $secondary-darken-color 55%, $secondary-color 100%);
- background: linear-gradient( to bottom, $secondary-color 0%, $secondary-darken-color 55%, $secondary-color 100%);
+ background: palette(blue, 300);
+ background: -moz-linear-gradient( top, palette(blue, 300) 0%, $secondary-darken-color 55%, palette(blue, 300) 100%);
+ background: -webkit-linear-gradient( top, palette(blue, 300) 0%, $secondary-darken-color 55%, palette(blue, 300) 100%);
+ background: linear-gradient( to bottom, palette(blue, 300) 0%, $secondary-darken-color 55%, palette(blue, 300) 100%);
}
// Align center block element
@@ -92,47 +92,6 @@
}
}
-// buttons
-%button {
- position: relative;
- min-width: $button-width;
- min-height: $button-height;
- padding: 0 1.2em 0 1.2em;
- display: inline-block;
- position: relative;
- overflow: hidden;
- user-select: none;
- cursor: pointer;
- outline: 0;
- background: none;
- border: 0;
- border-radius: $button-radius;
- font-family: $sff;
- @include font-size(13px);
- font-style: inherit;
- font-variant: inherit;
- letter-spacing: inherit;
- font-weight: 500;
- line-height: $button-height;
- text-align: center;
- text-decoration: none;
- vertical-align: middle;
- white-space: nowrap;
- margin-bottom: 10px;
- transition: all 0.4s $cb-fast;
- &:focus {
- outline: 0;
- }
- &::-moz-focus-inner {
- border: 0;
- }
- &[disabled] {
- opacity: 0.5;
- cursor: default;
- pointer-events: none;
- }
-}
-
%clear {
@include font-size(13px);
background: none;
@@ -149,78 +108,6 @@
background: none;
}
}
-
-// tooltip
-%tooltip {
- box-shadow: $shadow-100;
- padding: 0.2em;
- color: $font-dark-color;
- background: $lighter-color;
- font-family: $ff;
- @include font-size(13px);
- border: 1px solid $line-light-color;
- position: absolute;
- margin: auto;
- transform: translateX(50%);
- max-width: 266px;
- overflow-wrap: break-word;
- pointer-events: none;
- z-index: 2;
- white-space: nowrap;
-}
-%tooltip--top {
- &:after {
- top: -35px;
- right: 50%;
- left: auto;
- }
-}
-%tooltip--left {
- &:after {
- right: calc(100% + 5px);
- top: auto;
- transform: none !important;
- }
-}
-%activetooltip {
- &:after {
- content: attr(data-title);
- @extend %tooltip;
- }
-}
-%hastooltip {
- &:after {
- content: attr(data-title);
- @extend %tooltip;
- opacity: 0;
- z-index: -1;
- width: 0;
- height: 0;
- overflow: hidden;
- }
- &:before {
- content: "";
- position: absolute;
- display: block;
- width: 0;
- height: 0;
- opacity: 0;
- pointer-events: none;
- }
- &:hover{
- &:after {
- width: auto;
- height: auto;
- opacity: 1;
- transition: opacity 0.1s ease 0.2s;
- z-index: 2;
- }
- &:before {
- opacity: 1;
- transition: opacity 0.1s ease 0.2s;
- }
- }
-}
%hide-scrollbar {
/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none; /* IE and Edge */
diff --git a/frontend/assets/scss/abstract/placeholders/_tooltip.scss b/frontend/assets/scss/abstract/placeholders/_tooltip.scss
new file mode 100644
index 0000000000..700ef08576
--- /dev/null
+++ b/frontend/assets/scss/abstract/placeholders/_tooltip.scss
@@ -0,0 +1,105 @@
+// tooltip
+$tooltip-bg: palette(grey, 100);
+$tooltip-color: palette(white);
+$tooltip-font-size: 14px;
+$tooltip-triangle-size: 7px;
+$tooltip-border-radius: $border-radius-s;
+
+%tooltip {
+ position: absolute;
+ margin: auto;
+ max-width: 266px;
+ overflow-wrap: break-word;
+ pointer-events: none;
+ z-index: 2;
+ white-space: nowrap;
+ padding: $base-space $base-space*2;
+ transform: none;
+ background: $tooltip-bg;
+ color: $tooltip-color;
+ border-radius: $tooltip-border-radius;
+ @include font-size($tooltip-font-size);
+ font-family: $ff;
+ font-weight: 600;
+}
+%has-tooltip--left {
+ @extend %has-tooltip;
+ &:after {
+ top: 50%;
+ transform: translateY(-50%);
+ right: calc(100% + 10px);
+ }
+ &:before {
+ right: calc(100% + $tooltip-triangle-size/2);
+ top: 50%;
+ transform: translateY(-50%);
+ @include triangle(right, $tooltip-triangle-size, $tooltip-triangle-size, $tooltip-bg);
+ }
+}
+%has-tooltip--bottom {
+ @extend %has-tooltip;
+ &:after {
+ top: calc(100% + 20px);
+ right: 50%;
+ transform: translateX(50%);
+ }
+ &:before {
+ right: calc(50% - $tooltip-triangle-size/2);
+ top: $tooltip-triangle-size*2;
+ @include triangle(top, $tooltip-triangle-size, $tooltip-triangle-size, $tooltip-bg);
+ }
+}
+%has-tooltip--top {
+ @extend %has-tooltip;
+ &:after {
+ bottom: calc(100% + 10px);
+ right: 50%;
+ transform: translateX(50%);
+ }
+ &:before {
+ right: calc(50% - $tooltip-triangle-size);
+ top: -10px;
+ @include triangle(bottom, $tooltip-triangle-size, $tooltip-triangle-size, $tooltip-bg);
+ }
+}
+%tooltip-large-text {
+ &:after {
+ min-width: 216px;
+ white-space: break-spaces;
+ text-align: left;
+ line-height: 1.4em;
+ }
+}
+%has-tooltip {
+ &:after {
+ content: attr(data-title);
+ @extend %tooltip;
+ opacity: 0;
+ z-index: -1;
+ width: 0;
+ height: 0;
+ overflow: hidden;
+ }
+ &:before {
+ content: "";
+ position: absolute;
+ display: block;
+ width: 0;
+ height: 0;
+ opacity: 0;
+ pointer-events: none;
+ }
+ &:hover{
+ &:after {
+ width: auto;
+ height: auto;
+ opacity: 1;
+ transition: opacity 0.1s ease 0.2s;
+ z-index: 2;
+ }
+ &:before {
+ opacity: 1;
+ transition: opacity 0.1s ease 0.2s;
+ }
+ }
+}
\ No newline at end of file
diff --git a/frontend/assets/scss/abstract/variables/_variables.scss b/frontend/assets/scss/abstract/variables/_variables.scss
index edb7b93895..834d447e7d 100644
--- a/frontend/assets/scss/abstract/variables/_variables.scss
+++ b/frontend/assets/scss/abstract/variables/_variables.scss
@@ -15,70 +15,80 @@
* limitations under the License.
*/
+
// Color map
//-----------
-$palettes-neutral: ( white: ( base: #ffffff, ), black: ( base: #000000, ), grey: ( highlighted: #eff0f2, verylight: #d8d8d8, lines: #ebebeb, bg:#f5f5f5, light: #F2F3F7, smooth: #E9EAED, base: #9b9b9b, medium: #686a6d, dark: #4a4a4a, ), red: ( base: #ff1e5e, light: #ef6b7a, dark: #a70f3a, ), blue: ( verylight: #f5fcff, light: #F4F8FF, smooth: #E9F1FD, base: #6cc6f1, 200: #009fda, 300: #334e70, 400: #00224c, ), pink: ( base: #f2067a), yellow: ( base: #fff8a2, light: #949494, dark: #1d1d1d, ), orange: ( base: #F48E5F, light: #FFB593 ), green: ( base: #60A018, border: #8acbcd, extra-light: #fafcfc, light: #f5f9f9, highlight: #60a019, highlight-light: #f2fad5, medium: #64b09f, dark: #234240, ), purple: ( verylight: #F0E7FF, light: #9f7ae2, base: #6a29e2, medium: #49008c, normal: #8777d9, standard: #6c658f, dark: #1d1d1d, disabled: #a956f5, 100: #bab2e5, 200: #5e51a5, 300: #4a407f, ), garnet: ( base: #7c3c4e, ), lile: ( dark: #8777d9, base: #e8cfea, ), );
-$transparent: rgba(palette(white), 0);
+$palettes: (
+ white: (
+ base: #ffffff,
+ ),
+ black: (
+ base: #000000,
+ ),
+ grey: (
+ 100: #333346,
+ 200: #4a4a4a,
+ 300: #686a6d,
+ 600: #E9EAED,
+ 700: #F2F3F7,
+ 800: #f5f5f5,
+ 900: #fcfcfc,
+ ),
+ blue: (
+ 100: #545D84,
+ 200: #4C4EA3,
+ 300: #353664,
+ 500: #0508D9,
+ 600: #B6B9FF,
+ 700: #d6d6ff,
+ ),
+ purple: (
+ base: #a1a2cc,
+ ),
+ pink: (
+ base: #f2067a,
+ ),
+ yellow: (
+ base: #fff8a2,
+ light: #949494,
+ dark: #1d1d1d,
+ ),
+ orange: (
+ base: #bb720a,
+ ),
+ green: (
+ base: #60a018,
+ ),
+);
+
// Colours
//-----------
-$primary-color: #0D26C5;
+$primary-color: palette(blue, 500);
$primary-lighten-color: lighten($primary-color, 10%);
$primary-darken-color: darken($primary-color, 10%);
-$secondary-color: #4C4EA3;
-$secondary-lighter-color: palette(purple, verylight);
-$secondary-lighten-color: lighten($secondary-color, 10%);
-$secondary-darken-color: darken($secondary-color, 10%);
-$tertiary-color: palette(green);
-$tertiary-lighten-color: lighten($tertiary-color, 44%);
-$tertiary-darken-color: darken($tertiary-color, 10%);
-$lighter-color: palette(white);
-$neutral-color: palette(grey, medium);
-$darker-color: palette(grey, dark);
+$secondary-color: palette(grey, 700);
+$secondary-lighten-color: lighten(palette(grey, 700), 5%);
+$secondary-darken-color: darken(palette(grey, 700), 5%);
$highlight: palette(pink);
+$bg: palette(grey, 700);
+
// States
//-----------
-$error: palette(red);
+$error: palette(pink);
$warning: palette(orange);
$success: palette(green);
-$info: palette(grey, smooth);
-$callout: #f1f0f0;
-$bg: palette(grey, light);
+$info: palette(grey, 600);
-// Lines
-//-----------
-$line-medium-color: palette(grey, medium);
-$line-smooth-color: palette(grey, smooth);
-$line-light-color: palette(grey, light);
-$line-lighter-color: palette(grey, lighter);
-// Metrics
-//-----------
-$precision: #e5cdee;
-$recall: #c0d2e0;
-$f1: #89c4f1;
// Fonts
//-----------
-$ff: 'Source Sans Pro',
-'Helvetica',
-'Arial',
-sans-serif;
-$sff: 'Outfit',
-'Helvetica',
-'Arial',
-sans-serif;
-$tff: 'Bitter',
-'Helvetica',
-'Arial',
-sans-serif;
-$ff-semibold: 700;
-$ff-bold: 900;
-$ff-light: 300;
-$ff-thin: 100;
+$ff: "Source Sans Pro", "Helvetica", "Arial", sans-serif;
+$sff: "Outfit", "Helvetica", "Arial", sans-serif;
$base-font-size: 14px;
$base-line-height: 1.4em;
-$font-dark-color: palette(grey, dark);
-$font-medium-color: palette(grey, medium);
-$font-secondary: #4C4EA3;
-$font-secondary-dark: #353664;
+$font-dark: palette(grey, 100);
+$font-medium: palette(grey, 300);
+$font-secondary-medium-dark: palette(blue, 300);
+$font-secondary-medium: palette(blue, 200);
// Easing
//-----------
@@ -89,68 +99,53 @@ $font-secondary-dark: #353664;
// $cb-fast -> ease-in
// $cb-normal -> ease-in forzado
// $cb-slow -> ease-out
-$cb-fast: cubic-bezier(0,
-0,
-0.24,
-0.9);
-$cb-normal: cubic-bezier(0.02,
-0.42,
-0.01,
-0.51);
-$cb-slow: cubic-bezier(0.59,
-0,
-0.68,
-0.69);
+
+$cb-fast: cubic-bezier(0, 0, 0.24, 0.9);
+$cb-normal: cubic-bezier(0.02, 0.42, 0.01, 0.51);
+$cb-slow: cubic-bezier(0.59, 0, 0.68, 0.69);
+
// Grid
//-----------
$maxwidth: 980px;
-// Utilities
+
+// Spaces
//-----------
+$base-space: 8px;
+$base-space-between-records: $base-space;
+
+// Border radius
+//---------------
+$border-radius-s: 5px;
$border-radius: 5px;
$border-radius-m: 10px;
-$radius: 0.5em;
+
// Shadows
//-----------
-$shadow: 0 8px 20px 0 rgba(93,105,151,0.30);
-$shadow-light: 0 1px 4px 1px rgba(222,
-222,
-222,
-0.5);
+$shadow: 0 8px 20px 0 rgba(93, 105, 151, 0.3);
$shadow-100: 1px 2px 3px 0px rgba(0, 0, 0, 0.15);
$shadow-200: 1px 2px 5px 2px rgba(0, 0, 0, 0.15);
+$shadow-300: 0 1px 2px 0 rgba(185, 185, 185, 0.5);
+
// Input size
//-----------
$input-size: 40px;
+
// Buttons
//-----------
-$button-width: 62px;
$button-height: 30px;
-$button-radius: 3px;
-$button-fab-size: 56px;
-$button-fab-size-mini: 40px;
-$button-fab-space: 24px;
-$button-dense-height: 32px;
-$button-icon-size: 40px;
+$button-radius: 6px;
+
// Transitions
//-----------
$swift-ease-out-duration: 0.3s !default;
-$swift-ease-out-timing-function: cubic-bezier(0.25,
-0.8,
-0.25,
-1) !default;
+$swift-ease-out-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
$swift-ease-out: all $swift-ease-out-duration $swift-ease-out-timing-function !default;
$swift-ease-in-duration: 0.3s !default;
-$swift-ease-in-timing-function: cubic-bezier(0.55,
-0,
-0.55,
-0.2) !default;
+$swift-ease-in-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2) !default;
$swift-ease-in: all $swift-ease-in-duration $swift-ease-in-timing-function !default;
$swift-ease-in-out-duration: 0.5s !default;
-$swift-ease-in-out-timing-function: cubic-bezier(0.35,
-0,
-0.25,
-1) !default;
-$swift-ease-in-out: all $swift-ease-in-out-duration $swift-ease-in-out-timing-function !default;
+$swift-ease-in-out-timing-function: cubic-bezier(0.35, 0, 0.25, 1) !default;
+$swift-ease-in-out: all $swift-ease-in-out-duration;
$swift-linear-duration: 0.15s !default;
$swift-linear-timing-function: linear !default;
$swift-linear: all $swift-linear-duration $swift-linear-timing-function !default;
diff --git a/frontend/assets/scss/base/base.scss b/frontend/assets/scss/base/base.scss
index 6275bab4f4..1a7a793bac 100644
--- a/frontend/assets/scss/base/base.scss
+++ b/frontend/assets/scss/base/base.scss
@@ -38,7 +38,7 @@ body {
-ms-text-size-adjust: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
- color: $font-dark-color;
+ color: palette(grey, 200);
font-family: $ff;
font-size: $base-font-size;
line-height: $base-line-height;
@@ -53,7 +53,7 @@ body {
a,
button {
- color: $font-dark-color;
+ color: $font-dark;
}
audio,
diff --git a/frontend/components/core/ReActionTooltip.vue b/frontend/components/base/BaseActionTooltip.vue
similarity index 90%
rename from frontend/components/core/ReActionTooltip.vue
rename to frontend/components/base/BaseActionTooltip.vue
index 8403cfaa1d..76cfb5d158 100644
--- a/frontend/components/core/ReActionTooltip.vue
+++ b/frontend/components/base/BaseActionTooltip.vue
@@ -34,10 +34,10 @@ export default {
diff --git a/frontend/components/core/ReCheckbox.vue b/frontend/components/base/BaseCheckbox.vue
similarity index 93%
rename from frontend/components/core/ReCheckbox.vue
rename to frontend/components/base/BaseCheckbox.vue
index 1d8d3153c4..b32b10a2ba 100644
--- a/frontend/components/core/ReCheckbox.vue
+++ b/frontend/components/base/BaseCheckbox.vue
@@ -104,11 +104,10 @@ export default {
diff --git a/frontend/components/core/ReProgress.vue b/frontend/components/base/BaseProgress.vue
similarity index 95%
rename from frontend/components/core/ReProgress.vue
rename to frontend/components/base/BaseProgress.vue
index 8af41825aa..bb5b7bc83b 100644
--- a/frontend/components/core/ReProgress.vue
+++ b/frontend/components/base/BaseProgress.vue
@@ -125,10 +125,10 @@ export default {
padding: 0.5em 1em;
top: -5px;
transform: none;
- background: $secondary-color;
+ background: palette(blue, 200);
color: white;
border: none;
- border-radius: 3px;
+ border-radius: $border-radius-s;
@include font-size(14px);
font-weight: 600;
position: absolute;
@@ -139,7 +139,7 @@ export default {
transition: opacity 0.5s linear 0.3s;
border-color: lime !important;
.triangle {
- @include triangle(left, 6px, 6px, $secondary-color);
+ @include triangle(left, 6px, 6px, palette(blue, 200));
position: absolute;
left: -6px;
top: calc(50% - 6px);
@@ -149,7 +149,7 @@ export default {
@extend .re-progress;
height: 2px;
.re-progress-track {
- background: $line-medium-color;
+ background: palette(grey, 300);
}
}
&--multiple {
@@ -165,7 +165,7 @@ export default {
left: 0;
border-bottom-left-radius: 2px;
border-top-left-radius: 2px;
- background: $secondary-color;
+ background: palette(blue, 200);
transition: width 1s linear, left 1s linear;
&:last-of-type {
border-bottom-left-radius: 0;
diff --git a/frontend/components/core/ReRange.vue b/frontend/components/base/BaseRange.vue
similarity index 98%
rename from frontend/components/core/ReRange.vue
rename to frontend/components/base/BaseRange.vue
index 20dcee11b1..c9701c800c 100644
--- a/frontend/components/core/ReRange.vue
+++ b/frontend/components/base/BaseRange.vue
@@ -1163,7 +1163,7 @@ export default {
padding: 0 !important;
&.vue-slider-disabled {
.vue-slider-dot {
- background: $line-light-color;
+ background: palette(grey, 700);
border: 0;
box-shadow: none;
}
@@ -1187,8 +1187,8 @@ export default {
position: relative;
display: block;
border-radius: 15px;
- background-color: $line-smooth-color;
- border-radius: 3px;
+ background-color: palette(grey, 600);
+ border-radius: $border-radius-s;
}
.vue-slider-component .vue-slider::after {
@@ -1247,7 +1247,7 @@ export default {
.vue-slider-component .vue-slider-dot {
position: absolute;
border-radius: 50%;
- border: 1px solid $secondary-color;
+ border: 1px solid palette(blue, 300);
background-color: #fff;
transition: all 0s;
will-change: transform;
@@ -1310,8 +1310,8 @@ export default {
.vue-slider-component .vue-slider-piecewise-item {
position: absolute;
- width: 8px;
- height: 8px;
+ width: $base-space;
+ height: $base-space;
}
.vue-slider-component .vue-slider-piecewise-dot {
@@ -1371,37 +1371,37 @@ export default {
.vue-slider {
.filter & {
- background: $line-smooth-color;
- border-radius: 3px;
+ background: palette(grey, 600);
+ border-radius: $border-radius-s;
margin-top: -12px;
}
}
.vue-slider-dot {
.filter & {
- border: 1px solid $secondary-color;
+ border: 1px solid palette(blue, 300);
&:before {
content: "";
@include absoluteCenter;
height: 7px;
width: 7px;
- border-left: 1px solid $secondary-color;
- border-right: 1px solid $secondary-color;
+ border-left: 1px solid palette(blue, 300);
+ border-right: 1px solid palette(blue, 300);
}
&:after {
content: "";
@include absoluteCenter;
height: 7px;
width: 1px;
- background: $secondary-color;
+ background: palette(blue, 300);
}
}
}
.vue-slider-process {
.filter & {
- background: $secondary-color;
- border-radius: 3px;
+ background: palette(blue, 300);
+ border-radius: $border-radius-s;
}
}
diff --git a/frontend/components/core/ReSearchBar.vue b/frontend/components/base/BaseSearchBar.vue
similarity index 90%
rename from frontend/components/core/ReSearchBar.vue
rename to frontend/components/base/BaseSearchBar.vue
index 94e533424e..ffd007071d 100644
--- a/frontend/components/core/ReSearchBar.vue
+++ b/frontend/components/base/BaseSearchBar.vue
@@ -16,7 +16,7 @@
-->
-
+
-
-
+
+
+
+
diff --git a/frontend/components/core/ReSwitch.vue b/frontend/components/base/BaseSwitch.vue
similarity index 96%
rename from frontend/components/core/ReSwitch.vue
rename to frontend/components/base/BaseSwitch.vue
index cfcbdb32b6..75881e69a2 100644
--- a/frontend/components/core/ReSwitch.vue
+++ b/frontend/components/base/BaseSwitch.vue
@@ -129,13 +129,13 @@ $switch-ripple-size: 44px;
display: none;
}
.re-switch-thumb {
- background-color: $lighter-color !important;
+ background-color: palette(white) !important;
}
}
&.disable-action {
opacity: 0.5;
.re-switch-thumb {
- background-color: $lighter-color !important;
+ background-color: palette(white) !important;
transform: translate3d(-1px, -50%, 0px) !important;
}
&:active {
@@ -151,7 +151,7 @@ $switch-ripple-size: 44px;
position: relative;
border-radius: $switch-height;
transition: $swift-ease-out;
- background-color: palette(grey, smooth);
+ background-color: palette(grey, 600);
.re-switch-thumb {
box-shadow: $shadow;
width: $switch-thumb-size;
diff --git a/frontend/components/core/ReTabs.vue b/frontend/components/base/BaseTabs.vue
similarity index 98%
rename from frontend/components/core/ReTabs.vue
rename to frontend/components/base/BaseTabs.vue
index 21f90a937d..7693bdba06 100644
--- a/frontend/components/core/ReTabs.vue
+++ b/frontend/components/base/BaseTabs.vue
@@ -97,7 +97,6 @@ export default {
}
.button-bordered {
- @extend %button;
text-transform: none;
color: $primary-color;
border: 1px solid $primary-color;
@@ -134,7 +133,7 @@ export default {
background: $primary-color;
transition: $swift-ease-in-out;
.svg-icon {
- fill: $lighter-color;
+ fill: palette(white);
}
}
}
diff --git a/frontend/components/core/ReTag.vue b/frontend/components/base/BaseTag.vue
similarity index 87%
rename from frontend/components/core/ReTag.vue
rename to frontend/components/base/BaseTag.vue
index 17236d5b59..a6cd5ed4d2 100644
--- a/frontend/components/core/ReTag.vue
+++ b/frontend/components/base/BaseTag.vue
@@ -17,12 +17,12 @@ export default {
text-align: left;
border: none;
display: inline-block;
- border-radius: 8px;
+ border-radius: $border-radius-m;
padding: 0.3em 1em;
margin: 3.5px;
max-width: 175px;
vertical-align: top;
- background: palette(grey, bg);
+ background: palette(grey, 800);
word-break: break-word;
hyphens: auto;
@include media(">desktopLarge") {
diff --git a/frontend/components/core/ReToast/Toast.vue b/frontend/components/base/BaseToast/Toast.vue
similarity index 98%
rename from frontend/components/core/ReToast/Toast.vue
rename to frontend/components/base/BaseToast/Toast.vue
index f4f188ef21..a1036c578e 100644
--- a/frontend/components/core/ReToast/Toast.vue
+++ b/frontend/components/base/BaseToast/Toast.vue
@@ -284,15 +284,15 @@ $toast-colors: map-merge(
box-shadow: $shadow;
border-radius: 0.25em;
pointer-events: auto;
- color: $darker-color;
- background: $lighter-color !important;
+ color: $font-dark;
+ background: palette(white) !important;
min-height: 3em;
.toast-text {
margin: 0;
padding: 1.5em;
}
&__button {
- color: $secondary-color;
+ color: palette(blue, 300);
margin: 0 3em;
cursor: pointer;
}
@@ -301,7 +301,7 @@ $toast-colors: map-merge(
cursor: pointer;
&:after {
content: "\2573";
- color: $darker-color;
+ color: $font-dark;
font-size: 10px;
}
}
diff --git a/frontend/components/core/ReToast/api.js b/frontend/components/base/BaseToast/api.js
similarity index 100%
rename from frontend/components/core/ReToast/api.js
rename to frontend/components/base/BaseToast/api.js
diff --git a/frontend/components/core/ReToast/bus.js b/frontend/components/base/BaseToast/bus.js
similarity index 100%
rename from frontend/components/core/ReToast/bus.js
rename to frontend/components/base/BaseToast/bus.js
diff --git a/frontend/components/core/ReToast/helpers.js b/frontend/components/base/BaseToast/helpers.js
similarity index 100%
rename from frontend/components/core/ReToast/helpers.js
rename to frontend/components/base/BaseToast/helpers.js
diff --git a/frontend/components/core/ReToast/index.js b/frontend/components/base/BaseToast/index.js
similarity index 100%
rename from frontend/components/core/ReToast/index.js
rename to frontend/components/base/BaseToast/index.js
diff --git a/frontend/components/core/ReToast/positions.js b/frontend/components/base/BaseToast/positions.js
similarity index 100%
rename from frontend/components/core/ReToast/positions.js
rename to frontend/components/base/BaseToast/positions.js
diff --git a/frontend/components/core/ReToast/timer.js b/frontend/components/base/BaseToast/timer.js
similarity index 100%
rename from frontend/components/core/ReToast/timer.js
rename to frontend/components/base/BaseToast/timer.js
diff --git a/frontend/components/core/ReTopbarBrand.vue b/frontend/components/base/BaseTopbarBrand.vue
similarity index 87%
rename from frontend/components/core/ReTopbarBrand.vue
rename to frontend/components/base/BaseTopbarBrand.vue
index 248c6a9357..1a32f82bc6 100644
--- a/frontend/components/core/ReTopbarBrand.vue
+++ b/frontend/components/base/BaseTopbarBrand.vue
@@ -17,12 +17,12 @@
@@ -51,8 +51,8 @@ export default {
min-height: 56px;
position: relative;
background: $primary-color;
- border-bottom: 1px solid $line-light-color;
- color: $lighter-color;
+ border-bottom: 1px solid palette(grey, 700);
+ color: palette(white);
padding-top: 0;
padding-bottom: 0;
padding-right: 1.2em;
@@ -61,7 +61,7 @@ export default {
text-decoration: none;
}
.title {
- color: $lighter-color;
+ color: palette(white);
@include font-size(18px);
font-weight: 900;
font-family: $ff;
diff --git a/frontend/components/core/format/ReDate.vue b/frontend/components/base/format/BaseDate.vue
similarity index 100%
rename from frontend/components/core/format/ReDate.vue
rename to frontend/components/base/format/BaseDate.vue
diff --git a/frontend/components/core/logos/Rubrix.vue b/frontend/components/base/logos/Rubrix.vue
similarity index 100%
rename from frontend/components/core/logos/Rubrix.vue
rename to frontend/components/base/logos/Rubrix.vue
diff --git a/frontend/components/core/logos/RubrixIsotipo.vue b/frontend/components/base/logos/RubrixIsotipo.vue
similarity index 100%
rename from frontend/components/core/logos/RubrixIsotipo.vue
rename to frontend/components/base/logos/RubrixIsotipo.vue
diff --git a/frontend/components/core/table/ReTableInfo.vue b/frontend/components/base/table/BaseTableInfo.vue
similarity index 87%
rename from frontend/components/core/table/ReTableInfo.vue
rename to frontend/components/base/table/BaseTableInfo.vue
index 1739588de6..62a0d08a97 100644
--- a/frontend/components/core/table/ReTableInfo.vue
+++ b/frontend/components/base/table/BaseTableInfo.vue
@@ -46,7 +46,7 @@
-
-
{{ itemValue(item, column) }}
- {{ itemValue(item, column) }}
-
+
{{ itemValue(item, column) }}
-
-
+
-
-
+
+
-
@@ -144,12 +144,12 @@
-
-
-
-
+
+
- {{ deleteModalContent.title }}
-
Cancel
-
-
+
Yes, delete
-
+
-
+
-
+
@@ -426,7 +426,7 @@ export default {
list-style: none;
margin-bottom: 5em;
ul {
- background: $lighter-color;
+ background: palette(white);
list-style: none;
padding: 0;
margin: 0;
@@ -438,7 +438,7 @@ export default {
}
}
&__header {
- background: $lighter-color;
+ background: palette(white);
min-height: 50px;
position: relative;
margin-top: 1em;
@@ -461,14 +461,14 @@ export default {
display: flex;
align-items: center;
}
- button:not(.re-button) {
+ button:not(.button) {
cursor: pointer;
border: 0;
outline: none;
background: transparent;
padding-left: 0;
padding-right: 0;
- color: $font-secondary;
+ color: $font-secondary-medium;
@include font-size(14px);
font-family: $sff;
text-align: left;
@@ -497,7 +497,7 @@ export default {
padding: 2em 5em 2em 2em;
display: flex;
width: 100%;
- border-bottom: 1px solid $line-light-color;
+ border-bottom: 1px solid palette(grey, 700);
align-items: flex-start;
text-decoration: none;
outline: none;
@@ -515,18 +515,18 @@ export default {
}
}
.svg-icon {
- margin-right: 8px;
- fill: $font-medium-color;
+ margin-right: $base-space;
+ fill: $font-medium;
&:hover {
- fill: darken($font-medium-color, 10%);
+ fill: darken($font-medium, 10%);
}
}
}
&__tag {
- background: palette(grey, dark);
+ background: $font-dark;
display: inline-block;
- border-radius: 3px;
- color: $lighter-color;
+ border-radius: $border-radius-s;
+ color: palette(white);
@include font-size(12px);
box-shadow: 0 1px 4px 1px rgba(222, 222, 222, 0.5);
padding: 0.1em 0.5em;
@@ -543,8 +543,9 @@ export default {
position: relative;
margin-left: 2em;
padding: 0 !important;
+ display: inline-block;
.svg-icon {
- margin-right: 0;
+ margin: 0;
}
& + #{$this} {
margin-left: auto;
@@ -557,9 +558,12 @@ export default {
hyphens: auto;
word-break: break-word;
.button-icon {
- margin-left: 5px;
- padding: 0;
- margin-bottom: 2px;
+ padding: $base-space;
+ margin-left: $base-space;
+ display: inline-block;
+ .svg-icon {
+ margin: 0;
+ }
}
a {
text-decoration: none;
@@ -570,7 +574,7 @@ export default {
}
&__group {
padding-bottom: 2em;
- border-bottom: 1px solid $line-smooth-color;
+ border-bottom: 1px solid palette(grey, 600);
display: block;
&__title {
margin: 3em 0 0 0;
@@ -581,9 +585,9 @@ export default {
}
}
.model {
- color: $font-dark-color;
- border: 1px solid $line-smooth-color;
- border-radius: 3px;
+ color: $font-dark;
+ border: 1px solid palette(grey, 600);
+ border-radius: $border-radius-s;
padding: 0.1em 2em;
display: inline-block;
max-width: 280px;
@@ -601,10 +605,10 @@ export default {
}
}
.text {
- color: $font-medium-color;
+ color: $font-medium;
p {
display: inline-block;
- background: palette(grey, bg);
+ background: palette(grey, 800);
padding: 0.5em;
border-radius: 10px;
margin-right: 0.5em;
@@ -617,7 +621,7 @@ export default {
}
}
.dataSource {
- color: $font-medium-color;
+ color: $font-medium;
font-weight: 600;
white-space: nowrap;
}
@@ -631,41 +635,15 @@ export default {
display: inline-block;
padding: 0.2em 0.5em;
margin-top: 1em;
- background: lighten($secondary-color, 44%);
+ background: lighten(palette(blue, 300), 44%);
margin-right: 3px;
border-radius: 2px;
}
}
}
-.--show-tooltip {
- @extend %activetooltip;
- @extend %tooltip--left;
-}
-$color: #333346;
button[data-title] {
position: relative;
- @extend %hastooltip;
- &:after {
- padding: 0.5em 1em;
- bottom: 100%;
- right: 50%;
- transform: translateX(50%);
- background: $color;
- color: white;
- border: none;
- border-radius: 3px;
- @include font-size(14px);
- font-weight: 600;
- margin-bottom: 0.5em;
- min-width: 220px;
- white-space: break-spaces;
- }
- &:before {
- right: calc(50% - 7px);
- top: -0.5em;
- border-top: 7px solid $color;
- border-right: 7px solid transparent;
- border-left: 7px solid transparent;
- }
+ @extend %has-tooltip--top;
+ @extend %tooltip-large-text;
}
diff --git a/frontend/components/core/table/TableFiltrableColumn.vue b/frontend/components/base/table/TableFiltrableColumn.vue
similarity index 77%
rename from frontend/components/core/table/TableFiltrableColumn.vue
rename to frontend/components/base/table/TableFiltrableColumn.vue
index 4a5c12c9a0..258b36f4cb 100644
--- a/frontend/components/core/table/TableFiltrableColumn.vue
+++ b/frontend/components/base/table/TableFiltrableColumn.vue
@@ -9,34 +9,15 @@
{{ column.name }}
-
+
-
- -
-
- {{ isObject(option) ? `${option.key}: ${option.value}` : option }}
- ({{ tableItemsCounter(option) | formatNumber }})
-
-
- -
- 0 results
-
-
@@ -154,6 +135,12 @@ export default {
).length;
}
},
+ optionName(option) {
+ return this.isObject(option) ? `${option.key}: ${option.value}` : option;
+ },
+ optionCounter(option) {
+ return this.tableItemsCounter(option);
+ },
},
};
@@ -171,31 +158,6 @@ export default {
min-width: 270px;
border-radius: $border-radius;
box-shadow: $shadow;
- ul {
- list-style: none;
- max-height: 220px;
- overflow-y: auto;
- margin: 0 -1em;
- padding: 0 1em 1em;
- @extend %hide-scrollbar;
- }
- li {
- padding: 0.4em 0;
- }
- .re-checkbox {
- margin: 0;
- width: 100% !important;
- cursor: default;
- }
- ::v-deep .checkbox-label {
- line-height: 13px;
- }
-}
-.highlight-text {
- display: inline-block;
- // font-weight: 600;
- background: #ffbf00;
- line-height: 16px;
}
.filter {
@@ -209,8 +171,7 @@ export default {
& > * {
display: block !important;
width: 100%;
- margin-right: 0.5em;
- min-height: 38px;
+ margin-right: $base-space;
&:last-child {
margin-right: 0;
}
@@ -230,14 +191,14 @@ button {
background: transparent;
padding-left: 0;
padding-right: 0;
- color: $font-secondary;
+ color: $font-secondary-medium;
display: flex;
align-items: center;
@include font-size(14px);
font-family: $sff;
@include media("<=desktop") {
display: block;
- ::v-deep svg {
+ :deep(svg) {
display: block;
margin-right: 0 !important;
}
@@ -250,14 +211,14 @@ button {
margin: 0 -1em;
border-radius: $border-radius;
color: $primary-color;
- ::v-deep svg {
+ :deep(svg) {
& > * {
fill: $primary-color !important;
}
}
}
.svg-icon {
- margin-right: 8px;
+ margin-right: $base-space;
}
}
diff --git a/frontend/components/core/utils/animationEndEventName.js b/frontend/components/base/utils/animationEndEventName.js
similarity index 100%
rename from frontend/components/core/utils/animationEndEventName.js
rename to frontend/components/base/utils/animationEndEventName.js
diff --git a/frontend/components/core/utils/autocomplete-common.js b/frontend/components/base/utils/autocomplete-common.js
similarity index 100%
rename from frontend/components/core/utils/autocomplete-common.js
rename to frontend/components/base/utils/autocomplete-common.js
diff --git a/frontend/components/core/utils/debounce.js b/frontend/components/base/utils/debounce.js
similarity index 100%
rename from frontend/components/core/utils/debounce.js
rename to frontend/components/base/utils/debounce.js
diff --git a/frontend/components/core/utils/getClosestVueParent.js b/frontend/components/base/utils/getClosestVueParent.js
similarity index 100%
rename from frontend/components/core/utils/getClosestVueParent.js
rename to frontend/components/base/utils/getClosestVueParent.js
diff --git a/frontend/components/core/utils/getImageLightness.js b/frontend/components/base/utils/getImageLightness.js
similarity index 100%
rename from frontend/components/core/utils/getImageLightness.js
rename to frontend/components/base/utils/getImageLightness.js
diff --git a/frontend/components/core/utils/getInViewPosition.js b/frontend/components/base/utils/getInViewPosition.js
similarity index 100%
rename from frontend/components/core/utils/getInViewPosition.js
rename to frontend/components/base/utils/getInViewPosition.js
diff --git a/frontend/components/core/utils/isArray.js b/frontend/components/base/utils/isArray.js
similarity index 100%
rename from frontend/components/core/utils/isArray.js
rename to frontend/components/base/utils/isArray.js
diff --git a/frontend/components/core/utils/setId.js b/frontend/components/base/utils/setId.js
similarity index 100%
rename from frontend/components/core/utils/setId.js
rename to frontend/components/base/utils/setId.js
diff --git a/frontend/components/core/utils/throttle.js b/frontend/components/base/utils/throttle.js
similarity index 100%
rename from frontend/components/core/utils/throttle.js
rename to frontend/components/base/utils/throttle.js
diff --git a/frontend/components/core/utils/transitionEndEventName.js b/frontend/components/base/utils/transitionEndEventName.js
similarity index 100%
rename from frontend/components/core/utils/transitionEndEventName.js
rename to frontend/components/base/utils/transitionEndEventName.js
diff --git a/frontend/components/core/utils/uniqueId.js b/frontend/components/base/utils/uniqueId.js
similarity index 100%
rename from frontend/components/core/utils/uniqueId.js
rename to frontend/components/base/utils/uniqueId.js
diff --git a/frontend/components/commons/Error.vue b/frontend/components/commons/Error.vue
index 7c54e79993..7a67c7d252 100644
--- a/frontend/components/commons/Error.vue
+++ b/frontend/components/commons/Error.vue
@@ -24,10 +24,10 @@
following error: {{ error.message }}
-
-
+
+
Back
-
+
@@ -61,9 +61,9 @@ export default {
$this: &;
position: relative;
max-width: 700px;
- border: 1px solid $line-smooth-color;
- color: $neutral-color;
- border-radius: 3px;
+ border: 1px solid palette(grey, 600);
+ color: palette(grey, 300);
+ border-radius: $border-radius-s;
padding: 1.2em 5em 1.2em 1.2em;
@include font-size(14px);
line-height: 1.5em;
@@ -95,7 +95,7 @@ export default {
}
&--warning {
margin-top: 5em;
- background: $lighter-color;
+ background: palette(white);
border: 1px solid $error;
max-width: calc(100% - 320px);
#{$this}__title {
@@ -106,30 +106,7 @@ export default {
}
}
}
-
-.re-button {
- display: inline-block;
- min-height: 30px;
- line-height: 30px;
- min-width: auto;
- background: transparent;
- text-align: center;
- border: 1px solid $font-medium-color;
- padding: 0 1em 0 1.5em;
- position: relative;
- font-weight: 600;
- color: $font-medium-color;
- border-radius: 3px;
- margin-bottom: 20vh;
- text-transform: none;
- text-decoration: none;
- &:hover {
- color: darken($font-medium-color, 10%);
- }
- .svg-icon {
- position: absolute;
- left: 8px;
- top: 12px;
- }
+.button {
+ display: inline-flex !important;
}
diff --git a/frontend/components/commons/LoadingSkeleton.vue b/frontend/components/commons/LoadingSkeleton.vue
index 8925eb9aa8..b1265a17e9 100644
--- a/frontend/components/commons/LoadingSkeleton.vue
+++ b/frontend/components/commons/LoadingSkeleton.vue
@@ -50,7 +50,7 @@ export default {
diff --git a/frontend/components/commons/header/filters/FilterScore.vue b/frontend/components/commons/header/filters/FilterScore.vue
index 50a839ff69..437aa2eaa4 100644
--- a/frontend/components/commons/header/filters/FilterScore.vue
+++ b/frontend/components/commons/header/filters/FilterScore.vue
@@ -26,66 +26,51 @@
height="14"
@click="onRemovescoreRange()"
/>
-
-
{{ filter.name }}:
-
-
-
-
+
{{ filter.name }}:
+
+
+
+
+
+
+
{{ min | percent(0, 2) }} to {{ max | percent(0, 2) }}
-
-
-
+
- CancelCancel
- ApplyApply
-
+
@@ -98,7 +83,7 @@ export default {
},
},
data: () => ({
- scoreExpanded: false,
+ visible: false,
rangeOptions: {
height: 4,
dotSize: 20,
@@ -153,9 +138,6 @@ export default {
});
return test;
},
- visible() {
- return this.scoreExpanded;
- },
min() {
return this.scoreRanges[0] * 0.01;
},
@@ -173,137 +155,27 @@ export default {
this.scoreRanges = [from, to];
},
methods: {
- expandScore() {
- this.scoreExpanded = true;
+ onVisibility(value) {
+ this.visible = value;
},
onApplyscoreRange() {
this.$emit("apply", this.filter, {
from: this.min,
to: this.max,
});
- this.scoreExpanded = false;
+ this.visible = false;
},
onRemovescoreRange() {
this.$emit("apply", this.filter, undefined);
- this.scoreExpanded = false;
+ this.visible = false;
},
onClose() {
- this.scoreExpanded = false;
+ this.visible = false;
},
},
};
diff --git a/frontend/components/commons/header/filters/FiltersArea.vue b/frontend/components/commons/header/filters/FiltersArea.vue
index f50598e159..82d871d809 100644
--- a/frontend/components/commons/header/filters/FiltersArea.vue
+++ b/frontend/components/commons/header/filters/FiltersArea.vue
@@ -16,27 +16,25 @@
-->
-
-
-
-
-
-
-
-
-
+
@@ -124,19 +122,12 @@ export default {
}
.filters {
- &__area {
- display: flex;
- align-items: center;
- top: -1em;
- left: 0;
- right: 0;
- }
&__row {
display: flex;
align-items: center;
}
&__content {
- padding: 32px 0;
+ padding: $base-space * 4 0;
position: relative;
width: 100%;
}
@@ -146,27 +137,10 @@ export default {
width: calc(100% - 300px);
}
&__searchbar {
- margin-right: 10px;
+ margin-right: $base-space;
width: 100%;
@include media(">desktop") {
- margin-right: 15px;
- }
- &.--extended {
- width: 100%;
- margin-right: 0;
- }
- }
- &--disabled {
- ::v-deep * {
- pointer-events: none !important;
- cursor: pointer;
- }
- ::v-deep .filters__searchbar {
- opacity: 0.4;
- }
- ::v-deep .filters--sort {
- align-items: center;
- opacity: 0.4;
+ margin-right: $base-space * 2;
}
}
}
diff --git a/frontend/components/commons/header/filters/FiltersList.vue b/frontend/components/commons/header/filters/FiltersList.vue
index 468548c43e..33726fb6cf 100644
--- a/frontend/components/commons/header/filters/FiltersList.vue
+++ b/frontend/components/commons/header/filters/FiltersList.vue
@@ -80,14 +80,13 @@
@sortBy="onSortBy"
/>
-
Remove all filtersRemove all filters
@@ -234,6 +233,7 @@ export default {
id: "uncovered_by_rules",
key: "uncovered_by_rules",
group: "Annotations",
+ name: "Uncovered by rules",
options: [true, false],
selected:
this.dataset.query.uncovered_by_rules &&
@@ -303,7 +303,7 @@ $number-size: 18px;
position: absolute;
top: calc(100% + 10px);
box-shadow: $shadow;
- background: $lighter-color;
+ background: palette(white);
padding: 20px 20px 10px 20px;
border-radius: $border-radius;
z-index: 2;
@@ -319,22 +319,8 @@ $number-size: 18px;
position: relative;
flex-shrink: 0;
}
- &__sort {
- svg {
- margin-right: 0.3em;
- }
- }
&__button {
- color: $font-secondary;
- @include font-size(13px);
- text-decoration: none;
- display: block;
- font-weight: 600;
- background: palette(white);
- position: relative;
- margin-left: 2em;
- margin-bottom: 1em;
- padding-top: 2em;
+ margin: 2em auto 1em 2em;
}
p {
cursor: pointer;
@@ -343,25 +329,25 @@ $number-size: 18px;
margin-top: 0;
padding: 0.8em;
border-radius: $border-radius;
- margin-right: 10px;
- color: $font-secondary;
+ margin-right: $base-space;
+ color: $font-secondary-medium;
@include font-size(15px);
font-family: $sff;
white-space: nowrap;
@include media(">desktop") {
padding: 0.8em 1em;
- margin-right: 15px;
+ margin-right: $base-space * 2;
}
&:hover {
- background: palette(grey, smooth);
+ background: palette(grey, 600);
}
&.active {
- background: palette(grey, smooth);
+ background: palette(grey, 600);
color: $primary-color;
}
}
}
- ::v-deep .filters--scrollable {
+ :deep(.filters--scrollable) {
max-height: 312px;
overflow: auto;
@extend %hide-scrollbar;
diff --git a/frontend/components/commons/header/filters/FiltersListEmpty.vue b/frontend/components/commons/header/filters/FiltersListEmpty.vue
index 40cdf923cf..7b1f30d15b 100644
--- a/frontend/components/commons/header/filters/FiltersListEmpty.vue
+++ b/frontend/components/commons/header/filters/FiltersListEmpty.vue
@@ -89,7 +89,7 @@ export default {
height: 100%;
width: auto;
height: 45px;
- border: 1px solid $line-smooth-color;
+ border: 1px solid palette(grey, 600);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
@@ -106,8 +106,8 @@ export default {
border-style: solid;
border-width: 1px 1px 0 0;
display: inline-block;
- height: 8px;
- width: 8px;
+ height: $base-space;
+ width: $base-space;
-webkit-transform: rotate(133deg);
transform: rotate(133deg);
-webkit-transition: all 1.5s ease;
@@ -123,8 +123,8 @@ export default {
border-style: solid;
border-width: 1px 1px 0 0;
display: inline-block;
- height: 8px;
- width: 8px;
+ height: $base-space;
+ width: $base-space;
-webkit-transform: rotate(133deg);
transform: rotate(133deg);
-webkit-transition: all 1.5s ease;
diff --git a/frontend/components/commons/header/filters/RecordsCounter.vue b/frontend/components/commons/header/filters/RecordsCounter.vue
index d98b146e90..3fdc3a7f7a 100644
--- a/frontend/components/commons/header/filters/RecordsCounter.vue
+++ b/frontend/components/commons/header/filters/RecordsCounter.vue
@@ -17,7 +17,7 @@ export default {
diff --git a/frontend/components/commons/header/filters/SelectOptions.vue b/frontend/components/commons/header/filters/SelectOptions.vue
new file mode 100644
index 0000000000..bbd7408502
--- /dev/null
+++ b/frontend/components/commons/header/filters/SelectOptions.vue
@@ -0,0 +1,133 @@
+
+
+
+
+ -
+
+ {{ optionName(option) }}
+ ({{ optionCounter(option) | formatNumber }})
+
+
+ - 0 results
+
+
+
+
+
+
+
diff --git a/frontend/components/commons/header/filters/SelectOptionsSearch.vue b/frontend/components/commons/header/filters/SelectOptionsSearch.vue
new file mode 100644
index 0000000000..85ce1d38f1
--- /dev/null
+++ b/frontend/components/commons/header/filters/SelectOptionsSearch.vue
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
diff --git a/frontend/components/commons/header/filters/SortFilter.vue b/frontend/components/commons/header/filters/SortFilter.vue
index c6049d9da3..e1d2c3b0de 100644
--- a/frontend/components/commons/header/filters/SortFilter.vue
+++ b/frontend/components/commons/header/filters/SortFilter.vue
@@ -27,7 +27,7 @@
@click="removeField()"
/>
Sort by
+ return this.sortOptions.filter((opt) =>
opt.name.toLowerCase().match(this.searchText.toLowerCase())
);
- return filtered;
},
},
mounted() {
@@ -129,6 +119,9 @@ export default {
this.defaultSortedBy = currentSort;
this.$emit("addSortField", currentSort, this.defaultSortedByDir);
},
+ optionName(option) {
+ return option.name;
+ },
},
};
@@ -148,7 +141,7 @@ export default {
padding: 0.5em;
@include font-size(20px);
margin: 0 0 0 0.5em;
- background: palette(grey, light);
+ background: palette(grey, 700);
border-radius: $border-radius;
min-width: 50px;
min-height: 45px;
@@ -161,13 +154,6 @@ export default {
.dropdown {
width: 100%;
max-width: 270px;
- a {
- text-decoration: none;
- max-width: 250px;
- display: block;
- word-break: break-word;
- hyphens: auto;
- }
}
}
diff --git a/frontend/components/commons/header/filters/SortList.vue b/frontend/components/commons/header/filters/SortList.vue
index f1debfd7cc..fe9f2d1cc4 100644
--- a/frontend/components/commons/header/filters/SortList.vue
+++ b/frontend/components/commons/header/filters/SortList.vue
@@ -28,20 +28,15 @@
@addSortField="onAddSortField(index, ...arguments)"
/>
- + Add another field+ Add another field
- Cancel
- Sort
+ Cancel
+ Sort
@@ -127,23 +122,17 @@ export default {
&__buttons {
display: flex;
margin-top: 1.5em;
+ margin-bottom: 10px;
& > * {
display: block;
width: 100%;
- margin-right: 0.5em;
- min-height: 38px;
&:last-child {
- margin-right: 0;
+ margin-left: $base-space;
}
}
}
&__add-button {
- @include font-size(13px);
margin-top: 1em;
- color: $primary-color;
- outline: none;
- text-decoration: none;
- display: block;
}
}
diff --git a/frontend/components/commons/header/global-actions/CreateNewAction.vue b/frontend/components/commons/header/global-actions/CreateNewAction.vue
index f4f298758e..577957abe9 100644
--- a/frontend/components/commons/header/global-actions/CreateNewAction.vue
+++ b/frontend/components/commons/header/global-actions/CreateNewAction.vue
@@ -17,11 +17,11 @@
-
{{ text }}{{ text }}
- CreateCreate
@@ -82,12 +82,12 @@ export default {
diff --git a/frontend/components/commons/header/global-actions/ValidateDiscardAction.vue b/frontend/components/commons/header/global-actions/ValidateDiscardAction.vue
index 34d40b8b03..19e7c263d7 100644
--- a/frontend/components/commons/header/global-actions/ValidateDiscardAction.vue
+++ b/frontend/components/commons/header/global-actions/ValidateDiscardAction.vue
@@ -22,20 +22,22 @@
selectedRecords.length ? '' : 'validate-discard-actions--disabled',
]"
>
-
+ >
- ValidateValidate
- DiscardDiscard
@@ -118,46 +120,24 @@ export default {
position: relative;
left: 0;
top: 0;
- margin: 0 8px 0 0;
- }
- &__export {
- margin: auto 0 auto auto;
+ margin: 0 $base-space 0 0;
}
&__select {
margin-left: 0.8em;
- ::v-deep .dropdown__header {
+ :deep(.dropdown__header) {
max-height: 33px;
- background: $lighter-color;
- border-width: 1px;
- color: $font-secondary;
+ color: $font-secondary-medium;
font-family: $sff;
font-weight: 500;
min-width: 170px;
- }
- ::v-deep .dropdown__content {
- box-shadow: $shadow;
- border-radius: $border-radius;
- border: none;
+ @include font-size(13px);
}
}
&__button {
- border-radius: $border-radius;
- height: 33px;
- border: none;
- min-width: 80px;
- margin-left: 1em;
- margin-right: 1em;
- outline: none;
- font-weight: 500;
- color: $font-secondary;
- background: $lighter-color;
- border: 1px solid $line-smooth-color;
+ margin-left: $base-space;
+ margin-right: $base-space;
+ color: $font-secondary-medium;
cursor: pointer;
- &[disabled] {
- opacity: 0.5;
- pointer-events: none;
- cursor: pointer;
- }
&:hover {
border-color: $primary-color;
}
@@ -166,8 +146,8 @@ export default {
}
}
&__text {
- margin: 0;
- color: palette(grey, medium);
+ margin: 0 $base-space;
+ color: $font-medium;
span {
font-weight: bold;
color: $primary-color;
diff --git a/frontend/components/commons/header/user/user.vue b/frontend/components/commons/header/user/user.vue
index db7eb8b982..7b3ed8f613 100644
--- a/frontend/components/commons/header/user/user.vue
+++ b/frontend/components/commons/header/user/user.vue
@@ -80,7 +80,7 @@ $buttonSize: 34px;
z-index: 3;
&__button {
@extend %circle;
- background: $lighter-color;
+ background: palette(white);
transform: scale3d(1, 1, 1) translateZ(0);
transition: all 0.2s ease-in-out;
color: $primary-color;
@@ -95,11 +95,11 @@ $buttonSize: 34px;
top: 3.5em;
right: -0.5em;
padding-top: 1.5em;
- background: $lighter-color;
- border-radius: 5px;
+ background: palette(white);
+ border-radius: $border-radius;
@include font-size(14px);
font-weight: 400;
- color: palette(grey, medium);
+ color: $font-medium;
box-shadow: $shadow;
min-width: 300px;
&:after {
@@ -113,7 +113,7 @@ $buttonSize: 34px;
}
}
&__name {
- color: palette(grey, dark);
+ color: $font-dark;
@include font-size(16px);
margin: 0 1.5em 0.3em 1.5em;
font-weight: 600;
@@ -124,12 +124,12 @@ $buttonSize: 34px;
&__link {
display: flex;
align-items: center;
- color: palette(grey, medium);
+ color: $font-medium;
margin: 0.5em 1.5em 1.5em 1.5em;
&:hover {
- color: darken(palette(grey, medium), 10%);
+ color: darken($font-medium, 10%);
.svg-icon {
- fill: darken(palette(grey, medium), 10%);
+ fill: darken($font-medium, 10%);
}
}
.svg-icon {
@@ -141,13 +141,13 @@ $buttonSize: 34px;
display: block;
@include font-size(11px);
font-weight: 400;
- color: palette(grey, dark);
+ color: $font-dark;
line-height: 1em;
margin-top: 1.5em;
padding: 1em;
- background: #fcfcfc;
+ background: palette(grey, 800);
text-align: right;
- border-bottom-right-radius: 5px;
- border-bottom-left-radius: 5px;
+ border-bottom-right-radius: $border-radius;
+ border-bottom-left-radius: $border-radius;
}
diff --git a/frontend/components/commons/results/Metadata.vue b/frontend/components/commons/results/Metadata.vue
index 9c9359b746..fdfcfb67f6 100644
--- a/frontend/components/commons/results/Metadata.vue
+++ b/frontend/components/commons/results/Metadata.vue
@@ -20,7 +20,7 @@
-
+
Cancel
-
-
+
+
Filter
-
+
@@ -162,21 +159,21 @@ export default {
align-items: center;
margin-right: 0;
}
- ::v-deep .checkbox-label {
+ :deep(.checkbox-label) {
height: auto !important;
}
}
&__block {
padding: 1em 0;
margin-right: 0.5em;
- color: $font-dark-color;
+ color: $font-dark;
font-weight: 600;
&__item {
min-width: 200px;
max-width: 300px;
text-align: left;
white-space: pre-line;
- color: palette(grey, medium);
+ color: $font-medium;
font-weight: normal;
line-height: 1em;
word-break: break-word;
@@ -196,14 +193,11 @@ export default {
text-align: right;
margin-top: 2em;
display: flex;
- .re-button {
- margin-right: 0.5em;
- margin-bottom: 0;
- display: inline-block;
+ .button {
width: 100%;
- min-height: 38px;
- &:last-child() {
- margin-right: 0;
+ justify-content: center;
+ &:last-of-type {
+ margin-left: $base-space;
}
}
}
diff --git a/frontend/components/commons/results/PaginationEndAlert.vue b/frontend/components/commons/results/PaginationEndAlert.vue
index aa4e0ce55b..a14fc30b1c 100644
--- a/frontend/components/commons/results/PaginationEndAlert.vue
+++ b/frontend/components/commons/results/PaginationEndAlert.vue
@@ -25,7 +25,7 @@ export default {
padding: 3em 3em 0 3em;
display: flex;
align-items: center;
- color: palette(grey, medium);
+ color: $font-medium;
.svg-icon {
margin-right: 2em;
}
diff --git a/frontend/components/commons/results/RecordExtraActions.vue b/frontend/components/commons/results/RecordExtraActions.vue
index 43e53f9aac..c2dde40928 100644
--- a/frontend/components/commons/results/RecordExtraActions.vue
+++ b/frontend/components/commons/results/RecordExtraActions.vue
@@ -24,11 +24,11 @@
View metadata
-
+
Copy text
-
+
-
-
-
-
+
diff --git a/frontend/components/commons/sidebar/SidebarPanel.vue b/frontend/components/commons/sidebar/SidebarPanel.vue
index c1a66340d3..ccd2907b44 100644
--- a/frontend/components/commons/sidebar/SidebarPanel.vue
+++ b/frontend/components/commons/sidebar/SidebarPanel.vue
@@ -55,11 +55,8 @@ export default {
};
diff --git a/frontend/components/core/ReShowMoreData.vue b/frontend/components/core/ReShowMoreData.vue
deleted file mode 100644
index 39ed098d81..0000000000
--- a/frontend/components/core/ReShowMoreData.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
{{ items }} of {{ total }} records
-
-
- Next {{ moreDataSize }} records
-
-
-
-
-
-
diff --git a/frontend/components/core/logos/JupyterLogo.vue b/frontend/components/core/logos/JupyterLogo.vue
deleted file mode 100644
index 1265d4dd4a..0000000000
--- a/frontend/components/core/logos/JupyterLogo.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
diff --git a/frontend/components/core/reInputContainer/Readme.md b/frontend/components/core/reInputContainer/Readme.md
deleted file mode 100644
index 8b34372bfa..0000000000
--- a/frontend/components/core/reInputContainer/Readme.md
+++ /dev/null
@@ -1,14 +0,0 @@
-```
-
-
-
- error text
-
-```
-```
-
-
-
- error
-
-```
diff --git a/frontend/components/text-classifier/header/ExplainHelpInfo.vue b/frontend/components/text-classifier/header/ExplainHelpInfo.vue
index e499e345dc..d65318a68c 100644
--- a/frontend/components/text-classifier/header/ExplainHelpInfo.vue
+++ b/frontend/components/text-classifier/header/ExplainHelpInfo.vue
@@ -72,7 +72,7 @@ export default {
border: 1px solid #f48e5f57;
padding: 3em 2em 0.5em 2em;
background: #ffffff87;
- color: palette(grey, medium);
+ color: $font-medium;
border-radius: 1px;
position: relative;
.atom {
@@ -81,7 +81,7 @@ export default {
}
&__title {
@include font-size(16px);
- color: palette(grey, medium);
+ color: $font-medium;
font-weight: 600;
margin-top: 0;
}
diff --git a/frontend/components/text-classifier/header/global-actions/AnnotationLabelSelector.vue b/frontend/components/text-classifier/header/global-actions/AnnotationLabelSelector.vue
index 01a25d6b3a..90540cbb44 100644
--- a/frontend/components/text-classifier/header/global-actions/AnnotationLabelSelector.vue
+++ b/frontend/components/text-classifier/header/global-actions/AnnotationLabelSelector.vue
@@ -17,7 +17,7 @@
-
Annotate as...
-
-
-
-
- -
-
- {{ option | truncate(30) }}
-
-
-
+
+
-
Cancel
-
-
+
Annotate
-
+
-
+
diff --git a/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue b/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue
index b3f8ad4142..b6509945c8 100644
--- a/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue
+++ b/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue
@@ -15,11 +15,11 @@
- Manage rulesManage rules
@@ -125,8 +125,8 @@ export default {
}
&__container {
padding: 20px;
- background: rgba($lighter-color, 0.4);
- border: 1px solid $lighter-color;
+ background: rgba(palette(white), 0.4);
+ border: 1px solid palette(white);
width: 100%;
border-radius: $border-radius;
&.active {
@@ -136,7 +136,6 @@ export default {
&__button {
float: left;
align-self: flex-start;
- margin-bottom: 0 !important;
margin-top: auto;
clear: both;
}
@@ -145,7 +144,7 @@ export default {
@include media(">desktopLarge") {
min-width: 33%;
}
- &::v-deep {
+ &:deep() {
.rule-metrics__container {
flex-wrap: wrap;
height: 100%;
diff --git a/frontend/components/text-classifier/labeling-rules/RuleEmptyQuery.vue b/frontend/components/text-classifier/labeling-rules/RuleEmptyQuery.vue
index 08ac5a15cf..870d0c022c 100644
--- a/frontend/components/text-classifier/labeling-rules/RuleEmptyQuery.vue
+++ b/frontend/components/text-classifier/labeling-rules/RuleEmptyQuery.vue
@@ -21,7 +21,7 @@
New query
-
-
+
This doesn't have any labels yet.
@@ -130,9 +130,6 @@ export default {
}
}
.feedback-interactions {
- .list__item--annotation-mode & {
- padding-right: 200px;
- }
&__button {
margin-top: auto;
margin-bottom: 0 !important;
@@ -151,7 +148,7 @@ export default {
}
.empty-query {
@include font-size(18px);
- color: palette(grey, medium);
+ color: $font-medium;
text-align: center;
margin-bottom: 2em;
margin-top: 0;
@@ -159,10 +156,10 @@ export default {
.label-button {
margin: 5px;
}
-.label-button ::v-deep .button {
+.label-button :deep(.button) {
justify-content: center;
}
-.label-button:not(.active) ::v-deep .button {
+.label-button:not(.active) :deep(.button) {
background: #e0e1ff !important;
}
.rule {
@@ -173,7 +170,7 @@ export default {
}
&__text {
width: 100%;
- color: palette(grey, medium);
+ color: $font-medium;
@include font-size(18px);
font-weight: 600;
margin-top: 0;
diff --git a/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue b/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue
index 3b0e46e962..10ed15122d 100644
--- a/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue
+++ b/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue
@@ -26,8 +26,8 @@
class="rule__records__info"
v-if="areFiltersApplied.length"
name="info"
- width="12"
- height="12"
+ width="18"
+ height="18"
/>
-
-
+
-
+{{ filteredLabels.length - visibleLabels.length }}+{{ filteredLabels.length - visibleLabels.length }}
-
Show lessShow less
@@ -81,13 +79,13 @@
{{ ruleInfo }}
-
- Save rule
@@ -245,7 +243,6 @@ export default {
};
-
-
diff --git a/frontend/components/text-classifier/results/ClassifierAnnotationArea.vue b/frontend/components/text-classifier/results/ClassifierAnnotationArea.vue
index 189b7b7a5c..cd380ab624 100644
--- a/frontend/components/text-classifier/results/ClassifierAnnotationArea.vue
+++ b/frontend/components/text-classifier/results/ClassifierAnnotationArea.vue
@@ -22,10 +22,8 @@
:searchText="searchText"
@input="onSearchLabel"
/>
-
@@ -199,9 +194,6 @@ export default {
predictedAs() {
return this.record.predicted_as;
},
- UXtest() {
- return this.$route.query.UXtest;
- },
},
mounted() {
this.selectedLabels = this.appliedLabels;
@@ -242,40 +234,16 @@ export default {
.feedback-interactions {
margin: 0 auto 0 auto;
padding-right: 0;
- &:not(.fixed) {
- @include media(">desktopLarge") {
- max-width: calc(60% + 200px);
- margin-left: 0;
- }
- }
- .list__item--annotation-mode & {
- padding-right: 200px;
+ @include media(">desktopLarge") {
+ max-width: calc(60% + 200px);
+ margin-left: 0;
}
&__more {
- align-self: center;
margin: 3.5px;
- text-decoration: none;
- font-weight: 500;
- font-family: $sff;
- outline: none;
- padding: 0.5em;
- border-radius: $border-radius;
- transition: all 0.2s ease-in-out;
display: inline-block;
- &:hover {
- transition: all 0.2s ease-in-out;
- background: palette(grey, bg);
- }
}
}
.label-button {
@extend %item;
- &.fixed {
- width: 24%;
- ::v-deep .annotation-button-data__info {
- margin-right: 0 !important;
- margin-left: auto !important;
- }
- }
}
diff --git a/frontend/components/text-classifier/results/ClassifierAnnotationButton.vue b/frontend/components/text-classifier/results/ClassifierAnnotationButton.vue
index 8868d2e719..8151234e44 100644
--- a/frontend/components/text-classifier/results/ClassifierAnnotationButton.vue
+++ b/frontend/components/text-classifier/results/ClassifierAnnotationButton.vue
@@ -93,10 +93,9 @@ export default {
diff --git a/frontend/components/text-classifier/results/LabelPill.vue b/frontend/components/text-classifier/results/LabelPill.vue
index d78b2b0d6b..9c31941ab1 100644
--- a/frontend/components/text-classifier/results/LabelPill.vue
+++ b/frontend/components/text-classifier/results/LabelPill.vue
@@ -64,8 +64,8 @@ export default {
background: transparent;
height: 40px;
line-height: 40px;
- color: $lighter-color;
- border-radius: 8px;
+ color: palette(white);
+ border-radius: $border-radius-m;
padding: 0.2em 0.5em;
@include font-size(14px);
border: 1px solid transparent;
@@ -75,8 +75,8 @@ export default {
.pill {
@extend %pill;
- border: 1px solid palette(grey, smooth);
- color: $font-medium-color;
+ border: 1px solid palette(grey, 600);
+ color: $font-medium;
line-height: 1.4em;
&__container {
display: flex;
diff --git a/frontend/components/text-classifier/results/LabelSearch.vue b/frontend/components/text-classifier/results/LabelSearch.vue
index 28a724c480..3810c21fe1 100644
--- a/frontend/components/text-classifier/results/LabelSearch.vue
+++ b/frontend/components/text-classifier/results/LabelSearch.vue
@@ -16,7 +16,7 @@
-->
-
+
-
-
+
+
-
+
diff --git a/frontend/components/text-classifier/sidebar/TextClassificationRules.vue b/frontend/components/text-classifier/sidebar/TextClassificationRules.vue
index cad6d70bb8..9add5f258c 100644
--- a/frontend/components/text-classifier/sidebar/TextClassificationRules.vue
+++ b/frontend/components/text-classifier/sidebar/TextClassificationRules.vue
@@ -17,77 +17,73 @@
-
-
-
- Coverage
-
-
{{
+ Overall rule metrics
+
+
Coverage
+
{{
coverage.percent || 0 | percent
}}
-
-
-
+ >
+
+
Annotated Coverage
-
{{
+ {{
annotatedCoverage.percent || 0 | percent
}}
-
-
-
+ >
+
+
Precision average
{{
+ >{{
precision || 0 | percent
}}
-
-
+
+
Correct/Incorrect
{{
+ >{{
correctAndIncorrect
}}
-
-
-
Total rules
+
+
+
Total rules
{{
+ >{{
dataset.rules.length
}}
-
+
@@ -177,26 +173,6 @@ export default {
};
diff --git a/frontend/components/text-classifier/sidebar/TextClassificationSidebar.vue b/frontend/components/text-classifier/sidebar/TextClassificationSidebar.vue
index 4d9b935b5d..1eb5a08432 100644
--- a/frontend/components/text-classifier/sidebar/TextClassificationSidebar.vue
+++ b/frontend/components/text-classifier/sidebar/TextClassificationSidebar.vue
@@ -16,7 +16,7 @@
-->
-
@@ -77,25 +79,6 @@ export default {
};
diff --git a/frontend/components/text2text/results/RecordStringText2Text.vue b/frontend/components/text2text/results/RecordStringText2Text.vue
index 5514a441f1..8f46d0dded 100644
--- a/frontend/components/text2text/results/RecordStringText2Text.vue
+++ b/frontend/components/text2text/results/RecordStringText2Text.vue
@@ -22,13 +22,12 @@
>
-
{{ !showFullRecord ? "Show full record" : "Show less" }}
-
+
diff --git a/frontend/components/token-classifier/commons/EntityLabel.vue b/frontend/components/token-classifier/commons/EntityLabel.vue
new file mode 100644
index 0000000000..0da3db3a86
--- /dev/null
+++ b/frontend/components/token-classifier/commons/EntityLabel.vue
@@ -0,0 +1,78 @@
+
+
+
+ {{ label }}
+ [{{ shortcut }}]
+
+
+
+
+
+
diff --git a/frontend/components/token-classifier/header/EntitiesHeader.vue b/frontend/components/token-classifier/header/EntitiesHeader.vue
new file mode 100755
index 0000000000..0068c06e7f
--- /dev/null
+++ b/frontend/components/token-classifier/header/EntitiesHeader.vue
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+ {{ `+ ${dataset.entities.length - entitiesNumber}` }}
+
+
{{ "Show less" }}
+
+
+
+
+
+
+
diff --git a/frontend/components/token-classifier/results/EntitiesHeader.vue b/frontend/components/token-classifier/results/EntitiesHeader.vue
deleted file mode 100755
index df3443e8ae..0000000000
--- a/frontend/components/token-classifier/results/EntitiesHeader.vue
+++ /dev/null
@@ -1,219 +0,0 @@
-
-
-
-
-
-
-
- {{ entity.text }}
- [{{ entity.shortcut }}]
-
- {{ `+ ${dataset.entities.length - entitiesNumber}` }}
-
-
{{ "Show less" }}
-
-
-
-
-
-
-
diff --git a/frontend/components/token-classifier/results/EntitiesSelector.vue b/frontend/components/token-classifier/results/EntitiesSelector.vue
index 6c4d61451d..acc24bc346 100644
--- a/frontend/components/token-classifier/results/EntitiesSelector.vue
+++ b/frontend/components/token-classifier/results/EntitiesSelector.vue
@@ -2,46 +2,49 @@
- -
- {{ suggestedEntity.text }}
- [space]
+
-
+
-
- {{ lastSelectedEntity.text }}
- [space]
+
-
- {{ entity.text }}
- [{{ activeEntity === index ? "enter" : entity.shortCut }}]
+
@@ -161,7 +164,7 @@ export default {
.entities {
&__selector {
min-width: 220px;
- background: palette(grey, smooth);
+ background: palette(grey, 600);
font-weight: 600;
padding: 0.8em;
border-radius: $border-radius;
@@ -186,19 +189,12 @@ export default {
}
&__option {
display: flex;
- transition: all 0.2s ease;
- padding: 0.5em;
- position: relative;
- cursor: pointer;
- margin-top: 2px;
margin-bottom: 2px;
&.suggestion {
margin-bottom: 0.5em;
}
- span {
- cursor: pointer !important;
- word-break: break-word;
- hyphens: auto;
+ :deep(.shortcut) {
+ margin-left: auto;
}
}
&--empty {
@@ -214,18 +210,4 @@ export default {
}
}
}
-.entity {
- &.non-selectable,
- &.non-selectable--show-sort-code {
- cursor: default;
- pointer-events: none;
- }
- &__sort-code {
- margin-left: auto;
- margin-right: 0;
- .non-selectable & {
- display: none;
- }
- }
-}
diff --git a/frontend/components/token-classifier/results/EntityHighlight.vue b/frontend/components/token-classifier/results/EntityHighlight.vue
index d6d9c4209e..e6f882b778 100755
--- a/frontend/components/token-classifier/results/EntityHighlight.vue
+++ b/frontend/components/token-classifier/results/EntityHighlight.vue
@@ -114,7 +114,7 @@ export default {
diff --git a/frontend/components/token-classifier/sidebar/TokenClassificationProgress.vue b/frontend/components/token-classifier/sidebar/TokenClassificationProgress.vue
index e7d6285e56..7740a8c2d2 100644
--- a/frontend/components/token-classifier/sidebar/TokenClassificationProgress.vue
+++ b/frontend/components/token-classifier/sidebar/TokenClassificationProgress.vue
@@ -16,25 +16,24 @@
-->
-
-
-
-
-
- {{ counter | formatNumber }}
-
-
-
-
+
+
+ -
+
+
+ {{
+ counter | formatNumber
+ }}
+
+
+
+
-
+
diff --git a/frontend/components/token-classifier/sidebar/TokenClassificationSidebar.vue b/frontend/components/token-classifier/sidebar/TokenClassificationSidebar.vue
index 5bfbe39f58..edbe36fd94 100644
--- a/frontend/components/token-classifier/sidebar/TokenClassificationSidebar.vue
+++ b/frontend/components/token-classifier/sidebar/TokenClassificationSidebar.vue
@@ -16,7 +16,7 @@
-->
-
-
- Stats
+
- {{ key }}
-
+
The page you’re looking for can’t be found.
- Take me home
+ Take me home
@@ -118,7 +118,7 @@ export default {
@extend %container;
}
.navbar {
- border-bottom: 1px solid $line-light-color;
+ border-bottom: 1px solid palette(grey, 700);
display: block;
svg {
max-width: 120px;
@@ -130,7 +130,7 @@ export default {
position: relative;
min-height: calc(100vh - 8em);
background-size: 100%;
- background: $lighter-color;
+ background: palette(white);
&__content {
max-width: 700px;
margin: auto;
@@ -168,7 +168,7 @@ export default {
font-weight: lighter;
margin-top: 0 !important;
margin-bottom: 1em;
- color: $darker-color;
+ color: $font-dark;
@include font-size(32px);
line-height: 1.2em;
}
@@ -196,7 +196,7 @@ export default {
margin-left: 0.5em;
}
}
- ::v-deep .footer {
+ :deep(.footer) {
position: absolute;
bottom: 0;
left: 0;
diff --git a/frontend/pages/datasets/_workspace/_dataset/index.vue b/frontend/pages/datasets/_workspace/_dataset/index.vue
index 0ae6b49232..652f665ef1 100644
--- a/frontend/pages/datasets/_workspace/_dataset/index.vue
+++ b/frontend/pages/datasets/_workspace/_dataset/index.vue
@@ -16,7 +16,7 @@
-->
-
+
+
-
-
+
-
diff --git a/frontend/pages/login.vue b/frontend/pages/login.vue
index 4ff397898f..6158ffda61 100644
--- a/frontend/pages/login.vue
+++ b/frontend/pages/login.vue
@@ -30,8 +30,8 @@
placeholder="Password"
/>
-
EnterEnter
{{ error }}
@@ -79,7 +79,7 @@ export default {
diff --git a/frontend/plugins/toast.js b/frontend/plugins/toast.js
index 54beffd9cb..32f5ca2e95 100644
--- a/frontend/plugins/toast.js
+++ b/frontend/plugins/toast.js
@@ -16,6 +16,6 @@
*/
import Vue from "vue";
-import VueToast from "@/components/core/ReToast";
+import VueToast from "@/components/base/BaseToast";
Vue.use(VueToast);
diff --git a/frontend/specs/components/commons/results/__snapshots__/RecordExtraAtions.spec.js.snap b/frontend/specs/components/commons/results/__snapshots__/RecordExtraAtions.spec.js.snap
index cb558125d0..3b1e77db05 100644
--- a/frontend/specs/components/commons/results/__snapshots__/RecordExtraAtions.spec.js.snap
+++ b/frontend/specs/components/commons/results/__snapshots__/RecordExtraAtions.spec.js.snap
@@ -6,9 +6,9 @@ exports[`RecordExtraActions renders properly 1`] = `
diff --git a/frontend/specs/components/core/BaseSlider.spec.js b/frontend/specs/components/core/BaseSlider.spec.js
new file mode 100644
index 0000000000..e66c75ccf7
--- /dev/null
+++ b/frontend/specs/components/core/BaseSlider.spec.js
@@ -0,0 +1,22 @@
+import { mount } from "@vue/test-utils";
+import BaseSlider from "@/components/base/BaseSlider";
+
+function mountBaseSlider() {
+ return mount(BaseSlider, {
+ propsData: {
+ slidesName: "sentences",
+ slidesOrigin: ["first sentence", "second sentence"],
+ itemNumber: 0,
+ },
+ });
+}
+
+describe("BaseSlider", () => {
+ let spy = jest.spyOn(console, "error");
+ afterEach(() => spy.mockReset());
+
+ test("renders properly", () => {
+ const wrapper = mountBaseSlider();
+ expect(wrapper.html()).toMatchSnapshot();
+ });
+});
diff --git a/frontend/specs/components/core/__snapshots__/BaseSlider.spec.js.snap b/frontend/specs/components/core/__snapshots__/BaseSlider.spec.js.snap
new file mode 100644
index 0000000000..d09bf26c40
--- /dev/null
+++ b/frontend/specs/components/core/__snapshots__/BaseSlider.spec.js.snap
@@ -0,0 +1,8 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`BaseSlider renders properly 1`] = `
+
+`;
diff --git a/frontend/specs/components/core/table/ReTableInfo.spec.js b/frontend/specs/components/core/table/BaseTableInfo.spec.js
similarity index 86%
rename from frontend/specs/components/core/table/ReTableInfo.spec.js
rename to frontend/specs/components/core/table/BaseTableInfo.spec.js
index 4443697de2..584e8be5cf 100644
--- a/frontend/specs/components/core/table/ReTableInfo.spec.js
+++ b/frontend/specs/components/core/table/BaseTableInfo.spec.js
@@ -1,12 +1,12 @@
import { mount } from "@vue/test-utils";
-import ReTableInfo from "@/components/core/table/ReTableInfo";
+import BaseTableInfo from "@/components/base/table/BaseTableInfo";
const $route = {
query: {},
};
-function mountReTableInfo() {
- return mount(ReTableInfo, {
+function mountBaseTableInfo() {
+ return mount(BaseTableInfo, {
propsData: {
actions: [],
columns: [
@@ -54,12 +54,12 @@ function mountReTableInfo() {
});
}
-describe("ReTableInfo", () => {
+describe("BaseTableInfo", () => {
let spy = jest.spyOn(console, "error");
afterEach(() => spy.mockReset());
test("renders properly", () => {
- const wrapper = mountReTableInfo();
+ const wrapper = mountBaseTableInfo();
expect(wrapper.html()).toMatchSnapshot();
});
});
diff --git a/frontend/specs/components/core/table/TableFiltrableColumn.spec.js b/frontend/specs/components/core/table/TableFiltrableColumn.spec.js
index 5648cd1cca..e41446f0d1 100644
--- a/frontend/specs/components/core/table/TableFiltrableColumn.spec.js
+++ b/frontend/specs/components/core/table/TableFiltrableColumn.spec.js
@@ -1,5 +1,5 @@
import { mount } from "@vue/test-utils";
-import TableFiltrableColumn from "@/components/core/table/TableFiltrableColumn";
+import TableFiltrableColumn from "@/components/base/table/TableFiltrableColumn";
function mountTableFiltrableColumn() {
return mount(TableFiltrableColumn, {
diff --git a/frontend/specs/components/core/table/__snapshots__/ReTableInfo.spec.js.snap b/frontend/specs/components/core/table/__snapshots__/BaseTableInfo.spec.js.snap
similarity index 68%
rename from frontend/specs/components/core/table/__snapshots__/ReTableInfo.spec.js.snap
rename to frontend/specs/components/core/table/__snapshots__/BaseTableInfo.spec.js.snap
index e6e82b7dd0..465c1b700c 100644
--- a/frontend/specs/components/core/table/__snapshots__/ReTableInfo.spec.js.snap
+++ b/frontend/specs/components/core/table/__snapshots__/BaseTableInfo.spec.js.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`ReTableInfo renders properly 1`] = `
+exports[`BaseTableInfo renders properly 1`] = `
- Cancel
- Sort
+ Cancel
+ Sort
`;
diff --git a/frontend/specs/components/text-classification/results/__snapshots__/ClassifierAnnotationArea.spec.js.snap b/frontend/specs/components/text-classification/results/__snapshots__/ClassifierAnnotationArea.spec.js.snap
index 10d040aa36..ea55cb75d4 100644
--- a/frontend/specs/components/text-classification/results/__snapshots__/ClassifierAnnotationArea.spec.js.snap
+++ b/frontend/specs/components/text-classification/results/__snapshots__/ClassifierAnnotationArea.spec.js.snap
@@ -4,8 +4,8 @@ exports[`ClassifierAnnotationArea renders properly 1`] = `
diff --git a/frontend/specs/components/text-classification/results/__snapshots__/RecordTextClassification.spec.js.snap b/frontend/specs/components/text-classification/results/__snapshots__/RecordTextClassification.spec.js.snap
index 2b60c6c38a..bb593d022e 100644
--- a/frontend/specs/components/text-classification/results/__snapshots__/RecordTextClassification.spec.js.snap
+++ b/frontend/specs/components/text-classification/results/__snapshots__/RecordTextClassification.spec.js.snap
@@ -3,15 +3,15 @@
exports[`RecordTextClassification renders properly 1`] = `
`;
@@ -19,8 +19,8 @@ exports[`RecordTextClassification renders properly 1`] = `
exports[`RecordTextClassification renders with empty prediction correctly 1`] = `
-
-
+
+
diff --git a/frontend/specs/components/token-classification/results/__snapshots__/EntitiesSelector.spec.js.snap b/frontend/specs/components/token-classification/results/__snapshots__/EntitiesSelector.spec.js.snap
index 959585bb8e..8927f486f1 100644
--- a/frontend/specs/components/token-classification/results/__snapshots__/EntitiesSelector.spec.js.snap
+++ b/frontend/specs/components/token-classification/results/__snapshots__/EntitiesSelector.spec.js.snap
@@ -1,10 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`EntitiesSelector renders properly 1`] = `
-
- Arreglo [space]
-- Arreglo [1]
-- CARDINAL [2]
-
-
-
-`;
+exports[`EntitiesSelector renders properly 1`] = `
`;