Skip to content

Commit

Permalink
chore() eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Feb 1, 2025
1 parent 83cb094 commit 160b6a3
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 43 deletions.
3 changes: 2 additions & 1 deletion .stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
} ],
'at-rule-no-unknown': [true, {
ignoreAtRules: ['mixin', 'define-mixin']
}]
}],
'no-descending-specificity': null
}
};
2 changes: 1 addition & 1 deletion src/components/catalog/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export default {
}
&__header {
height: 100px;
flex-shrink: 0;
height: 100px;
background-position: center center;
background-size: cover;
border-radius: 4px;
Expand Down
6 changes: 3 additions & 3 deletions src/components/catalog/catchers/AddCatcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ export default {
}
&__catalog-more {
background-color: var(--color-bg-main);
width: 100%;
margin: 7.5px 7.5px 50px;
text-align: center;
padding: 18px 20px;
text-align: center;
background-color: var(--color-bg-main);
border-radius: 4px;
width: 100%;
cursor: pointer;
transition: all 0.2s ease;
Expand Down
6 changes: 3 additions & 3 deletions src/components/event/details/DetailsBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ export default {
<style>
.event-details {
&__header {
display: flex;
gap: 4px;
align-items: center;
margin: 0 0 10px 0;
color: var(--color-text-second);
font-weight: bold;
font-size: 12px;
letter-spacing: 0.15px;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 4px;
.icon {
width: 20px;
Expand Down
8 changes: 4 additions & 4 deletions src/components/modals/ChooseTariffPlanPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,16 @@ export default Vue.extend({
}
&__premium-card {
background: var(--color-bg-main);
border-radius: 7px;
display: flex;
align-items: center;
padding: 20px 25px;
background: var(--color-bg-main);
border-radius: 7px;
}
&__premium-card-title {
font-weight: 600;
width: 150px;
font-weight: 600;
}
&__premium-card-limit {
Expand All @@ -282,11 +282,11 @@ export default Vue.extend({
}
&__premium-card-price {
margin-right: 20px;
margin-left: auto;
color: var(--color-text-second);
font-weight: 600;
font-size: 13px;
margin-right: 20px;
}
}
</style>
5 changes: 2 additions & 3 deletions src/components/modals/PaymentDetailsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
v-if="isRecurrent"
class="payment-details__adoption-autoProlongation"
>

<UiCheckboxWithLabel
v-model="isAcceptedRecurrentPaymentAgreement"
class="payment-details__adoption-autoProlongation-item"
Expand Down Expand Up @@ -540,7 +539,7 @@ export default Vue.extend({
const widget = new window.cp.CloudPayments({ language: this.$i18n.locale });
const paymentData: PlanProlongationPayload = {
checksum: data.checksum
checksum: data.checksum,
};
const interval = this.workspace.isDebug ? 'Day' : 'Month';
Expand All @@ -560,7 +559,7 @@ export default Vue.extend({
}
const amount = data.isCardLinkOperation ? AMOUNT_FOR_CARD_VALIDATION : data.plan.monthlyCharge;
const method = data.isCardLinkOperation ? 'auth' : 'charge'
const method = data.isCardLinkOperation ? 'auth' : 'charge';
widget.pay(method,
{
Expand Down
18 changes: 12 additions & 6 deletions src/components/project/EventBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
<span class="event-badge__count">
{{ eventCount | abbreviateNumber }}
</span>
<div v-if="affectedUsersCount !== null && affectedUsersCount > 0" class="event-badge__affected-users">
<Icon symbol="user-small" class="event-badge__affected-users-icon"/>
<div
v-if="affectedUsersCount !== null && affectedUsersCount > 0"
class="event-badge__affected-users"
>
<Icon
symbol="user-small"
class="event-badge__affected-users-icon"
/>
{{ affectedUsersCount | abbreviateNumber }}
</div>
</div>
Expand Down Expand Up @@ -52,20 +58,20 @@ export default {
<style>
.event-badge {
display: inline-flex;
align-items: center;
height: 20px;
padding: 5px 5px;
color: var(--color-text-main);
line-height: 9px;
white-space: nowrap;
align-items: center;
background-color: var(--color-indicator-medium);
border-radius: 6px;
&__affected-users {
font-size: 10px;
margin-left: 10px;
display: flex;
align-items: center;
margin-left: 10px;
font-size: 10px;
&-icon {
display: block;
Expand All @@ -76,8 +82,8 @@ export default {
}
&__count {
font-size: 12px;
font-weight: bold;
font-size: 12px;
}
&--visited {
Expand Down
2 changes: 1 addition & 1 deletion src/components/project/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:key="dailyEventInfo.groupHash"
:last-occurrence-timestamp="dailyEventInfo.lastRepetitionTime"
:count="dailyEventInfo.count"
:affected-users-count ="dailyEventInfo.affectedUsers"
:affected-users-count="dailyEventInfo.affectedUsers"
class="project-overview__event"
:event="getEventByProjectIdAndGroupHash(project.id, dailyEventInfo.groupHash)"
@onAssigneeIconClick="showAssignees(project.id, dailyEventInfo.groupHash, $event)"
Expand Down
15 changes: 7 additions & 8 deletions src/components/utils/FeedbackButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,25 @@ export default Vue.extend({
right: 30px;
bottom: 30px;
z-index: 9995;
background-color: var(--color-indicator-medium);
padding: 8px 10px;
box-shadow: 0px 9px 16px rgba(16, 106, 189, 0.3);
border-radius: 8px;
cursor: pointer;
display: flex;
flex-direction: row;
align-items: center;
padding: 8px 10px;
background-color: var(--color-indicator-medium);
border-radius: 8px;
box-shadow: 0px 9px 16px rgba(16, 106, 189, 0.3);
cursor: pointer;
svg {
height: 16px;
width: 18px;
height: 16px;
}
}
&-description {
margin: 0px 6px;
font-weight: 500;
font-size: 14px;
line-height: 12px;
margin: 0px 6px;
}
}
</style>
12 changes: 6 additions & 6 deletions src/components/utils/TariffPlan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,35 +96,35 @@ export default {

<style>
.tariff-plan {
display: flex;
flex-direction: column;
box-sizing: border-box;
width: 220px;
height: 140px;
padding: 20px 25px;
background: var(--color-bg-main);
border-radius: 7px;
cursor: pointer;
height: 140px;
display: flex;
flex-direction: column;
&--selected {
padding: 17px 22px;
border: 3px solid var(--color-indicator-medium);
}
&--horizontal {
height: auto;
width: auto;
display: flex;
flex-direction: row;
align-items: center;
width: auto;
height: auto;
&:not(:last-of-type) {
margin-bottom: 10px;
}
.tariff-plan__name {
margin-bottom: 0;
width: 150px;
margin-bottom: 0;
}
.tariff-plan__limit {
width: 300px;
Expand Down
6 changes: 3 additions & 3 deletions src/components/workspace/settings/BillingOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ export default Vue.extend({
@import url('./../../../styles/custom-properties.css');
.billing-card {
min-width: var(--width-popup-form-container);
width: fit-content;
min-width: var(--width-popup-form-container);
margin-bottom: 20px;
padding: 20px;
color: var(--color-text-main);
Expand Down Expand Up @@ -491,10 +491,10 @@ export default Vue.extend({
&__plan {
display: flex;
align-items: center;
white-space: nowrap;
border-radius: 3px;
padding-top: 3px;
font-size: 14px;
white-space: nowrap;
border-radius: 3px;
}
&__plan-name {
Expand Down
6 changes: 3 additions & 3 deletions src/components/workspace/settings/UsedVolume.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@ export default Vue.extend({
.workspace-volume {
&__text {
margin-bottom: 35px;
max-width: 435px;
margin-bottom: 35px;
color: var(--color-text-second);
font-size: 14px;
line-height: 20px;
letter-spacing: .16px;
color: var(--color-text-second);
}
&__volume-progress {
width: 400px;
height: 11px;
border-radius: 5px;
margin-bottom: 30px;
border-radius: 5px;
}
&__button {
Expand Down
3 changes: 2 additions & 1 deletion src/types/project-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export enum ReceiveTypes {
* Available periods to receive notification
* This map is used for comparisons between displayed threshold period values and stored ones
*/
/* eslint-disable @typescript-eslint/no-magic-numbers */
export const thresholdPeriodToMilliseconds = new Map<string, number>([
/**
* One minute in milliseconds
Expand All @@ -94,7 +95,7 @@ export const thresholdPeriodToMilliseconds = new Map<string, number>([
*/
['week', 604800000],
]);

/* eslint-enable @typescript-eslint/no-magic-numbers */

/**
* Available periods to receive notification
Expand Down

0 comments on commit 160b6a3

Please sign in to comment.