Skip to content

Commit

Permalink
zmiana input number
Browse files Browse the repository at this point in the history
zmiana sqla
zmiana mavena na 3.6.9 czy ile tam
DEPLOY
  • Loading branch information
JanisBe committed Jun 27, 2024
1 parent dbdc6cb commit ede77b1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
maven-version: 3.9.8
- name: Maven version
run: mvn -version
- name: Build with Maven
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h3 mat-dialog-title>{{ editMode ? 'Edytowanie wydatku' : 'Dodawanie wydatku' }}
id="amount"
matInput
(blur)="sanitizeInput(amountField.value)"
type="text">
type="number">
@if (form.controls['amount'].errors?.['invalidAmount']) {
<span class="warning-text">Kwota w formacie xxx.xx</span>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,15 @@
.warning-text {
color: red;
font-size: 11px;
}

//chowanie strzałeczek od inputu
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance: textfield;
}
21 changes: 9 additions & 12 deletions src/main/resources/data.sql
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
INSERT INTO komornik.users (id, avatar, mail, username, password, is_verified)
VALUES (1, null, '[email protected]', 'a', '$2a$10$rgTJrdROc5a0MJiTmSU8qewdi6Ro2elGZf6Rmuc5/rl6nam3P3z.S', true),
(2, null, '[email protected]', 'aa', '$2a$10$rgTJrdROc5a0MJiTmSU8qewdi6Ro2elGZf6Rmuc5/rl6nam3P3z.S', true),
(3, null, '[email protected]', 'aaa', '$2a$10$rgTJrdROc5a0MJiTmSU8qewdi6Ro2elGZf6Rmuc5/rl6nam3P3z.S', true),
(4, null, '[email protected]', 'aaaa', '$2a$10$rgTJrdROc5a0MJiTmSU8qewdi6Ro2elGZf6Rmuc5/rl6nam3P3z.S', true);
INSERT INTO komornik.categories (id, category_name)
VALUES (1, 'kategoria'),
(2, 'drugaKategoriaaa');
INSERT INTO komornik.groups (id, default_currency, description, group_name)
VALUES (1, 'PLN', 'komornik grupa', 'grupa'),
(2, 'PLN', null, 'drugaKategoriaaa');
INSERT INTO komornik.users (id, avatar, mail, username, password, is_verified, created_date)
VALUES (1, null, '[email protected]', 'Janis', '$2a$10$rgTJrdROc5a0MJiTmSU8qewdi6Ro2elGZf6Rmuc5/rl6nam3P3z.S', true, now()),
(2, null, '[email protected]', 'Misiek', '$2a$10$rgTJrdROc5a0MJiTmSU8qewdi6Ro2elGZf6Rmuc5/rl6nam3P3z.S', true, now()),
(3, null, '[email protected]', 'Seba', '$2a$10$rgTJrdROc5a0MJiTmSU8qewdi6Ro2elGZf6Rmuc5/rl6nam3P3z.S', true, now());
INSERT INTO komornik.categories (id, category_name, created_date)
VALUES (1, 'general', now());
INSERT INTO komornik.groups (id, default_currency, description, group_name, created_date)
VALUES (1, 'PLN', 'dolomity', 'dolomity', now()),
(2, 'PLN', null, 'testowa', now());
INSERT INTO komornik.user_x_group (group_id, user_id)
VALUES (1, 1),
(1, 2),
(1, 3),
(1, 4),
(2, 1),
(2, 2),
(2, 3);

0 comments on commit ede77b1

Please sign in to comment.