Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
4dr1en committed Sep 19, 2024
1 parent 1fa15ca commit 4745fe2
Show file tree
Hide file tree
Showing 8 changed files with 5,814 additions and 4,237 deletions.
9,971 changes: 5,767 additions & 4,204 deletions packages/synapse-bridge/pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -344,24 +344,21 @@ export default defineComponent({
</template>

<style lang="scss">
@import '@vuepic/vue-datepicker/dist/main.css';
:root {
--dp-cell-border-radius: 99px; /*Specific border radius for the calendar cell*/
--dp-cell-size: 31px; /*Width and height of calendar cell*/
--dp-cell-padding: 5px; /*Padding in the cell*/
--dp-cell-border-radius: 99px; /*Specific border radius for the calendar cell*/
--dp-cell-size: 31px; /*Width and height of calendar cell*/
--dp-cell-padding: 5px; /*Padding in the cell*/
}
</style>

<style lang="scss" scoped>
@import '@cnamts/design-tokens/dist/tokens';
:deep(.dp__theme_light) {
--dp-primary-color: #2eb5e4;
--dp-primary-color: #2eb5e4;
--dp-range-between-dates-background-color: #98daf2;
--dp-range-between-dates-text-color: rgba(0, 0, 0, 0.87);
}
.vd-date-picker {
Expand All @@ -373,7 +370,6 @@ export default defineComponent({
opacity: 1;
}
.week-ends {
background-color: #b3b4b5;
border-radius: 57%;
Expand Down Expand Up @@ -473,5 +469,4 @@ export default defineComponent({
color: #b33f2e !important;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ li {
}
.v-theme--dark .vd-social-media-links-label.text--primary {
color: white
color: white;
}
.vd-social-media-links-icon {
Expand Down
4 changes: 3 additions & 1 deletion packages/synapse-bridge/src/patterns/NirField/NirField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@ export default defineComponent({
.v-text-field .v-input__append-inner {
padding-left: 0 !important;
}
:deep(.v-text-field > .v-input__control > .v-input__slot > .v-text-field__slot) {
:deep(
.v-text-field > .v-input__control > .v-input__slot > .v-text-field__slot
) {
width: min-content !important;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ $white: #fff;
}
}
.v-theme--dark button.v-btn:hover :deep() {
background: rgba(white, 0.1);
}
Expand Down
29 changes: 19 additions & 10 deletions packages/synapse-bridge/src/rules/notAfterToday/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
import { ruleMessage } from '../../helpers/ruleMessage';
import { ValidationRule, ValidationResult, ErrorMessages, Value } from '../types';
import { ruleMessage } from '../../helpers/ruleMessage'
import {
ValidationRule,
ValidationResult,
ErrorMessages,
Value,
} from '../types'

import { defaultErrorMessages } from './locales';
import { defaultErrorMessages } from './locales'

import { isDateAfter } from '../../functions/validation/isDateAfter';
import { TODAY } from '../../constants';
import { isDateAfter } from '../../functions/validation/isDateAfter'
import { TODAY } from '../../constants'

/** Check that the value is not after today (DD/MM/YYYY format) */
export function notAfterTodayFn(errorMessages: ErrorMessages = defaultErrorMessages): ValidationRule {
export function notAfterTodayFn(
errorMessages: ErrorMessages = defaultErrorMessages
): ValidationRule {
return (value: Value): ValidationResult => {
if (!value) {
return true;
return true
}

return !isDateAfter(TODAY, value) || ruleMessage(errorMessages, 'default');
};
return (
!isDateAfter(TODAY, value) || ruleMessage(errorMessages, 'default')
)
}
}

export const notAfterToday = notAfterTodayFn();
export const notAfterToday = notAfterTodayFn()
29 changes: 19 additions & 10 deletions packages/synapse-bridge/src/rules/notBeforeToday/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
import { ruleMessage } from '../../helpers/ruleMessage';
import { ValidationRule, ValidationResult, ErrorMessages, Value } from '../types';
import { ruleMessage } from '../../helpers/ruleMessage'
import {
ValidationRule,
ValidationResult,
ErrorMessages,
Value,
} from '../types'

import { defaultErrorMessages } from './locales';
import { defaultErrorMessages } from './locales'

import { isDateBefore } from '../../functions/validation/isDateBefore';
import { TODAY } from '../../constants';
import { isDateBefore } from '../../functions/validation/isDateBefore'
import { TODAY } from '../../constants'

/** Check that the value is not before today (DD/MM/YYYY format) */
export function notBeforeTodayFn(errorMessages: ErrorMessages = defaultErrorMessages): ValidationRule {
export function notBeforeTodayFn(
errorMessages: ErrorMessages = defaultErrorMessages
): ValidationRule {
return (value: Value): ValidationResult => {
if (!value) {
return true;
return true
}

return !isDateBefore(TODAY, value) || ruleMessage(errorMessages, 'default');
};
return (
!isDateBefore(TODAY, value) || ruleMessage(errorMessages, 'default')
)
}
}

export const notBeforeToday = notBeforeTodayFn();
export const notBeforeToday = notBeforeTodayFn()
2 changes: 1 addition & 1 deletion packages/synapse-bridge/src/styles/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ a {
white-space: nowrap;
}

table thead th {
table thead th {
opacity: 0.6;
font-size: 0.875rem;
}
Expand Down

0 comments on commit 4745fe2

Please sign in to comment.