Skip to content

Commit

Permalink
fixed regex for ReverseCalc and class for MainPage
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuevIO committed Aug 16, 2024
1 parent ceda54c commit d5dc4b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 52 deletions.
6 changes: 1 addition & 5 deletions src/pages/PageMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ watch(gasCondition, val => {
</v-btn-toggle>
</IrdomSection>

<IrdomSection class="union-membership" title="Членство в Профсоюзе">
<IrdomSection class="mb-12" title="Членство в Профсоюзе">
<v-btn-toggle v-model="data.member" mandatory divided>
<v-btn :value="true">Состою</v-btn>
<v-btn :value="false">Не состою</v-btn>
Expand Down Expand Up @@ -233,8 +233,4 @@ watch(gasCondition, val => {
.course > button {
border-radius: 0 !important;
}
.union-membership {
margin: 100;
}
</style>
4 changes: 3 additions & 1 deletion src/pages/ReverseCalc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ const combinations: Array<Result> = getSumAndTax(getCombinations(flattenStipend(
const inputSum = ref<string>('');
function formatInput(input: string) {
if (!/[^0-9.]/.test(input)) {
if (input.length === 0) {
return true;
} else if (/^[0-9]+\.?[0-9]{0,2}$/.test(input)) {
return true;
} else {
return 'Недопустимые символы';
Expand Down
23 changes: 0 additions & 23 deletions vite.config.ts.timestamp-1722883381837-489e7ed531982.mjs

This file was deleted.

23 changes: 0 additions & 23 deletions vite.config.ts.timestamp-1723483646169-001a5be2d0f82.mjs

This file was deleted.

0 comments on commit d5dc4b8

Please sign in to comment.