Changeset 3f5bf9e


Ignore:
Timestamp:
01/05/21 03:45:09 (3 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
a222a43
Parents:
f36822a
Message:

added test login

Files:
5 added
1 deleted
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • client_app/.gitignore

    rf36822a r3f5bf9e  
    2222yarn-debug.log*
    2323yarn-error.log*
     24
     25.eslintcache
  • client_app/package-lock.json

    rf36822a r3f5bf9e  
    11691169      }
    11701170    },
     1171    "@fluentui/react-component-event-listener": {
     1172      "version": "0.51.4",
     1173      "resolved": "https://registry.npmjs.org/@fluentui/react-component-event-listener/-/react-component-event-listener-0.51.4.tgz",
     1174      "integrity": "sha512-SnUy95PD6NekXhG+qmcjvESAkRIRNA1BpNFzVeh8GaWjbUpweZwnnkd2kSx3ZbBQvOFF/OBHdYG+wf6fccugwg==",
     1175      "requires": {
     1176        "@babel/runtime": "^7.10.4"
     1177      }
     1178    },
     1179    "@fluentui/react-component-ref": {
     1180      "version": "0.51.4",
     1181      "resolved": "https://registry.npmjs.org/@fluentui/react-component-ref/-/react-component-ref-0.51.4.tgz",
     1182      "integrity": "sha512-bUrbQ8pcxcFUI9XxOHXxzQSqjYiogGOmHVjNzV8Z6hz/dmwJI38MoeIVeuC90qociE8UWVue3WbcMfCNn6AlYg==",
     1183      "requires": {
     1184        "@babel/runtime": "^7.10.4",
     1185        "react-is": "^16.6.3"
     1186      }
     1187    },
    11711188    "@hapi/address": {
    11721189      "version": "2.1.4",
     
    17991816      }
    18001817    },
     1818    "@popperjs/core": {
     1819      "version": "2.6.0",
     1820      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.6.0.tgz",
     1821      "integrity": "sha512-cPqjjzuFWNK3BSKLm0abspP0sp/IGOli4p5I5fKFAzdS8fvjdOwDCfZqAaIiXd9lPkOWi3SUUfZof3hEb7J/uw=="
     1822    },
    18011823    "@rollup/plugin-node-resolve": {
    18021824      "version": "7.1.3",
     
    18351857          "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw=="
    18361858        }
     1859      }
     1860    },
     1861    "@semantic-ui-react/event-stack": {
     1862      "version": "3.1.1",
     1863      "resolved": "https://registry.npmjs.org/@semantic-ui-react/event-stack/-/event-stack-3.1.1.tgz",
     1864      "integrity": "sha512-SA7VOu/tY3OkooR++mm9voeQrJpYXjJaMHO1aFCcSouS2xhqMR9Gnz0LEGLOR0h9ueWPBKaQzKIrx3FTTJZmUQ==",
     1865      "requires": {
     1866        "exenv": "^1.2.2",
     1867        "prop-types": "^15.6.2"
    18371868      }
    18381869    },
     
    29943025      "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.1.1.tgz",
    29953026      "integrity": "sha512-5Kgy8Cz6LPC9DJcNb3yjAXTu3XihQgEdnIg50c//zOC/MyLP0Clg+Y8Sh9ZjjnvBrDZU4DgXS9C3T9r4/scGZQ=="
     3027    },
     3028    "axios": {
     3029      "version": "0.21.1",
     3030      "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
     3031      "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
     3032      "requires": {
     3033        "follow-redirects": "^1.10.0"
     3034      }
    29963035    },
    29973036    "axobject-query": {
     
    39984037      }
    39994038    },
     4039    "clsx": {
     4040      "version": "1.1.1",
     4041      "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz",
     4042      "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA=="
     4043    },
    40004044    "co": {
    40014045      "version": "4.6.0",
     
    60196063      }
    60206064    },
     6065    "exenv": {
     6066      "version": "1.2.2",
     6067      "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz",
     6068      "integrity": "sha1-KueOhdmJQVhnCwPUe+wfA72Ru50="
     6069    },
    60216070    "exit": {
    60226071      "version": "0.1.2",
     
    69897038      "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ=="
    69907039    },
     7040    "history": {
     7041      "version": "4.10.1",
     7042      "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz",
     7043      "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==",
     7044      "requires": {
     7045        "@babel/runtime": "^7.1.2",
     7046        "loose-envify": "^1.2.0",
     7047        "resolve-pathname": "^3.0.0",
     7048        "tiny-invariant": "^1.0.2",
     7049        "tiny-warning": "^1.0.0",
     7050        "value-equal": "^1.0.1"
     7051      }
     7052    },
    69917053    "hmac-drbg": {
    69927054      "version": "1.0.1",
     
    69977059        "minimalistic-assert": "^1.0.0",
    69987060        "minimalistic-crypto-utils": "^1.0.1"
     7061      }
     7062    },
     7063    "hoist-non-react-statics": {
     7064      "version": "3.3.2",
     7065      "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
     7066      "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
     7067      "requires": {
     7068        "react-is": "^16.7.0"
    69997069      }
    70007070    },
     
    93559425      }
    93569426    },
     9427    "jquery": {
     9428      "version": "3.5.1",
     9429      "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
     9430      "integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg=="
     9431    },
    93579432    "js-tokens": {
    93589433      "version": "4.0.0",
     
    94919566      }
    94929567    },
     9568    "keyboard-key": {
     9569      "version": "1.1.0",
     9570      "resolved": "https://registry.npmjs.org/keyboard-key/-/keyboard-key-1.1.0.tgz",
     9571      "integrity": "sha512-qkBzPTi3rlAKvX7k0/ub44sqOfXeLc/jcnGGmj5c7BJpU8eDrEVPyhCvNYAaoubbsLm9uGWwQJO1ytQK1a9/dQ=="
     9572    },
    94939573    "killable": {
    94949574      "version": "1.0.1",
     
    96009680      "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
    96019681      "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA=="
     9682    },
     9683    "lodash-es": {
     9684      "version": "4.17.20",
     9685      "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.20.tgz",
     9686      "integrity": "sha512-JD1COMZsq8maT6mnuz1UMV0jvYD0E0aUsSOdrr1/nAG3dhqQXwRRgeW0cSqH1U43INKcqxaiVIQNOUDld7gRDA=="
    96029687    },
    96039688    "lodash._reinterpolate": {
     
    98549939      "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
    98559940      "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg=="
     9941    },
     9942    "mini-create-react-context": {
     9943      "version": "0.4.1",
     9944      "resolved": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.1.tgz",
     9945      "integrity": "sha512-YWCYEmd5CQeHGSAKrYvXgmzzkrvssZcuuQDDeqkT+PziKGMgE+0MCCtcKbROzocGBG1meBLl2FotlRwf4gAzbQ==",
     9946      "requires": {
     9947        "@babel/runtime": "^7.12.1",
     9948        "tiny-warning": "^1.0.3"
     9949      }
    98569950    },
    98579951    "mini-css-extract-plugin": {
     
    1227212366      "integrity": "sha512-HvPuUQnLp5H7TouGq3kzBeioJmXms1wHy9EGjz2OURWBp4qZO6AfGEcnxts1D/CbwPLRAgTMPCEgYhA3sEM4vw=="
    1227312367    },
     12368    "react-fast-compare": {
     12369      "version": "3.2.0",
     12370      "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz",
     12371      "integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA=="
     12372    },
    1227412373    "react-is": {
    1227512374      "version": "16.13.1",
     
    1227712376      "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
    1227812377    },
     12378    "react-popper": {
     12379      "version": "2.2.4",
     12380      "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.2.4.tgz",
     12381      "integrity": "sha512-NacOu4zWupdQjVXq02XpTD3yFPSfg5a7fex0wa3uGKVkFK7UN6LvVxgcb+xYr56UCuWiNPMH20tntdVdJRwYew==",
     12382      "requires": {
     12383        "react-fast-compare": "^3.0.1",
     12384        "warning": "^4.0.2"
     12385      }
     12386    },
    1227912387    "react-refresh": {
    1228012388      "version": "0.8.3",
    1228112389      "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.8.3.tgz",
    1228212390      "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg=="
     12391    },
     12392    "react-router": {
     12393      "version": "5.2.0",
     12394      "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.2.0.tgz",
     12395      "integrity": "sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==",
     12396      "requires": {
     12397        "@babel/runtime": "^7.1.2",
     12398        "history": "^4.9.0",
     12399        "hoist-non-react-statics": "^3.1.0",
     12400        "loose-envify": "^1.3.1",
     12401        "mini-create-react-context": "^0.4.0",
     12402        "path-to-regexp": "^1.7.0",
     12403        "prop-types": "^15.6.2",
     12404        "react-is": "^16.6.0",
     12405        "tiny-invariant": "^1.0.2",
     12406        "tiny-warning": "^1.0.0"
     12407      },
     12408      "dependencies": {
     12409        "isarray": {
     12410          "version": "0.0.1",
     12411          "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
     12412          "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
     12413        },
     12414        "path-to-regexp": {
     12415          "version": "1.8.0",
     12416          "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz",
     12417          "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==",
     12418          "requires": {
     12419            "isarray": "0.0.1"
     12420          }
     12421        }
     12422      }
     12423    },
     12424    "react-router-dom": {
     12425      "version": "5.2.0",
     12426      "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.2.0.tgz",
     12427      "integrity": "sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==",
     12428      "requires": {
     12429        "@babel/runtime": "^7.1.2",
     12430        "history": "^4.9.0",
     12431        "loose-envify": "^1.3.1",
     12432        "prop-types": "^15.6.2",
     12433        "react-router": "5.2.0",
     12434        "tiny-invariant": "^1.0.2",
     12435        "tiny-warning": "^1.0.0"
     12436      }
    1228312437    },
    1228412438    "react-scripts": {
     
    1273812892      "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="
    1273912893    },
     12894    "resolve-pathname": {
     12895      "version": "3.0.0",
     12896      "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz",
     12897      "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng=="
     12898    },
    1274012899    "resolve-url": {
    1274112900      "version": "0.2.1",
     
    1320213361      }
    1320313362    },
     13363    "semantic-ui-css": {
     13364      "version": "2.4.1",
     13365      "resolved": "https://registry.npmjs.org/semantic-ui-css/-/semantic-ui-css-2.4.1.tgz",
     13366      "integrity": "sha512-Pkp0p9oWOxlH0kODx7qFpIRYpK1T4WJOO4lNnpNPOoWKCrYsfHqYSKgk5fHfQtnWnsAKy7nLJMW02bgDWWFZFg==",
     13367      "requires": {
     13368        "jquery": "x.*"
     13369      }
     13370    },
     13371    "semantic-ui-react": {
     13372      "version": "2.0.1",
     13373      "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-2.0.1.tgz",
     13374      "integrity": "sha512-l1g9ZTRHqe+nSgcTuaTTxnnIdPAgyzoAZY35ciL0pjopeC7mWxNVhBqm98tmR0kgoL7NvWjY+Dy/AUc3l6FVKw==",
     13375      "requires": {
     13376        "@babel/runtime": "^7.10.5",
     13377        "@fluentui/react-component-event-listener": "~0.51.1",
     13378        "@fluentui/react-component-ref": "~0.51.1",
     13379        "@popperjs/core": "^2.5.2",
     13380        "@semantic-ui-react/event-stack": "^3.1.0",
     13381        "clsx": "^1.1.1",
     13382        "keyboard-key": "^1.1.0",
     13383        "lodash": "^4.17.19",
     13384        "lodash-es": "^4.17.15",
     13385        "prop-types": "^15.7.2",
     13386        "react-is": "^16.8.6",
     13387        "react-popper": "^2.2.3",
     13388        "shallowequal": "^1.1.0"
     13389      }
     13390    },
    1320413391    "semver": {
    1320513392      "version": "7.3.2",
     
    1337113558      }
    1337213559    },
     13560    "shallowequal": {
     13561      "version": "1.1.0",
     13562      "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
     13563      "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="
     13564    },
    1337313565    "shebang-command": {
    1337413566      "version": "1.2.0",
     
    1441214604      "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q="
    1441314605    },
     14606    "tiny-invariant": {
     14607      "version": "1.1.0",
     14608      "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.1.0.tgz",
     14609      "integrity": "sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw=="
     14610    },
     14611    "tiny-warning": {
     14612      "version": "1.0.3",
     14613      "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
     14614      "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA=="
     14615    },
    1441414616    "tmpl": {
    1441514617      "version": "1.0.4",
     
    1488215084      }
    1488315085    },
     15086    "value-equal": {
     15087      "version": "1.0.1",
     15088      "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz",
     15089      "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw=="
     15090    },
    1488415091    "vary": {
    1488515092      "version": "1.1.2",
     
    1492915136      "requires": {
    1493015137        "makeerror": "1.0.x"
     15138      }
     15139    },
     15140    "warning": {
     15141      "version": "4.0.3",
     15142      "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
     15143      "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
     15144      "requires": {
     15145        "loose-envify": "^1.0.0"
    1493115146      }
    1493215147    },
  • client_app/package.json

    rf36822a r3f5bf9e  
    77    "@testing-library/react": "^11.2.2",
    88    "@testing-library/user-event": "^12.6.0",
     9    "axios": "^0.21.1",
    910    "react": "^17.0.1",
    1011    "react-dom": "^17.0.1",
     12    "react-router-dom": "^5.2.0",
    1113    "react-scripts": "4.0.1",
     14    "semantic-ui-css": "^2.4.1",
     15    "semantic-ui-react": "^2.0.1",
    1216    "web-vitals": "^0.2.4"
    1317  },
  • client_app/src/App.test.js

    rf36822a r3f5bf9e  
    11import { render, screen } from '@testing-library/react';
    2 import App from './App';
     2import App from './components/main/App';
    33
    44test('renders learn react link', () => {
  • client_app/src/index.js

    rf36822a r3f5bf9e  
    22import ReactDOM from 'react-dom';
    33import './index.css';
    4 import App from './App';
     4import App from './components/main/App';
    55import reportWebVitals from './reportWebVitals';
    66
     
    1212);
    1313
    14 // If you want to start measuring performance in your app, pass a function
    15 // to log results (for example: reportWebVitals(console.log))
    16 // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
    1714reportWebVitals();
  • src/main/java/it/finki/tinki/controller/TestController.java

    rf36822a r3f5bf9e  
    99
    1010@RestController
     11@CrossOrigin(origins = "http://localhost:3000")
    1112@RequestMapping("/api")
    1213public class TestController {
     
    2021    @PostMapping(path = "/login")
    2122    public AuthResponseDataPojo testPage(@RequestBody AccountLoginDataPojo body) throws ResponseStatusException {
     23
     24        System.out.println(body);
     25
    2226        Account a1 = accountService.findUser(body.getAccount(), body.getPassword(), body.getType());
    2327        AuthResponseDataPojo resp = new AuthResponseDataPojo();
Note: See TracChangeset for help on using the changeset viewer.