Removed ant layout and used css grid
Changed layouting technology and added main layout for all pages.
Changed path of imports
Forgot to save files with changed imports
Refactored directory structure
Refactored directory structure and changed structure of layouts of the annotation screen
Merge branch 'features/9452-login-screen' into 'dev' Re #9452
Minor refactoring. Moved loginProps to loginLayout and changed a route of the login screen.
See merge request aswi/aswi-2022/aswi20220x00!20
Created more generic layout props
Props will be used in multiple layouts and all will have the same parameters. It does not have to be assigned specifically for the login.
Changed a route of the login page
Changed the route from /authentication/login to /login
Moved loginProps to loginLayout
LoginProps are not used outside of loginLayout and it does not make sense for it to exist outside of loginLayout.
Merge branch 'features/9474-backend-tag-tree-api' into dev Re #9474
Merge branch 'features/9467-backend-document-assign-api' into 'dev' Re #9467
Assigning documents to users and getting a list of users
See merge request aswi/aswi-2022/aswi20220x00!13
Optimized database access - prefetch tags and categories
Database access optimizations
Shortened GetUsers in UserServiceEF
Don't throw if user already assigned to document
Created TagController, implemented GET on /tags
Created TagService, implemented GetTagTree
Added tag-related DTOs and mapping
Implemented a login screen and added ant-design package to the react project
See merge request aswi/aswi-2022/aswi20220x00!14
Changed email to username
Changed email field to username, changed error message when field is not filled and removed validation of a field format.
Merge branch 'features/9465-frontend-add-document-window' into 'dev' Re #9465
Created a modal that adds new documents and when API is implemented it will send documents to a server.
See merge request aswi/aswi-2022/aswi20220x00!16
Merge branch 'features/9476-anotation-screen-layout' into 'dev' Re #9476
Created a layout with empty panels. They will be done in other branches.
See merge request aswi/aswi-2022/aswi20220x00!15
Created a document adding modal
Created a layout of the annotation screen
Renamed props.tsx to loginProps.tsx
Props was too generic so I renamed it to show its purpose better.
Added documentation comments
Added documentation comments to the login screen and its layout
Updated layout of the login screen
Changed layout to bootstrap, added a logo and a title.
Added todos for login form events
To test the functionality, login form values are logged to the console when the form is submitted. That is dangerous, so I added todos that will remind us to delete these logs when authentication is implemented.
Streched login button
Login button now fills width of the form
Changed error messages
Changed error messages for required email and password and added check of email address format
Added layout of the login screen
Created a layout in a separate file and added it to the login screen
Added basic login form
Installed ant-design
Cosmetic changes
Added UserController and GET on /users
Added AnnotationController and Service
Documents can now be assigned to Users
Fix in AuthorizationAttribute
Merge branch 'features/9471-backend-role-api' into 'dev' Re #9471
Login endpoint now returns user role in response.
See merge request aswi/aswi-2022/aswi20220x00!12
Fixed problems after a merge
Minor fix
Merge branch 'features/9471-backend-role-api' of https://gitlab.kiv.zcu.cz/aswi/aswi-2022/aswi20220x00 into features/9471-backend-role-api
Authentication controller now returns user role
Moved Enums to Models project
Merge branch 'features/9464-backend-documents-api' into 'dev' Re #9464
Basic DocumentController and DocumentService implementation
Adding documents, getting paged list of documents
Error handling middleware
AutoMapper Entity to DTO mapping configured...
Renamed PLAINTEXT format Enum to TEXTFILE
Moved InternalServerError to ControllerBase
Move Authorize attribute up in DocumentController
Use ContextUtils in AuthorizationAttribute
Added ERole check to [Authorize] attribute
[Authorize] has ERole.ANNOTATOR as default, ERole can be specified as a parameter
Documents to add expected in base64
Documents sent in the request are all in base64 and have enum to specify either TXT file or a ZIP file
Added default value to Annotation.Note
Check number of documents in DocumentService.GetDocuments
Code cleanup
DocumentService now uses AutoMapper
Added AutoMapper, configured, added DTO mappings
Modified DocumentListInfo
Added of UserInfo annotating users
DocumentController created
DocumentService created
Added global error handling middleware
Two custom exceptions - InternalErrorException for server-side problems and BadRequestException for client-side problems
Added Document API related DTOs
Merge branch 'features/9469-logged-user' into 'dev' Re #9469
ClientInfo added to Dependency Injections
ClientInfo contains IP and info about logged user (IsLogged and LoggedUser properties)
See merge request aswi/aswi-2022/aswi20220x00!10
ClientInfo in DependencyInjection
ClientInfo contains IP and info about logged user
Merge branch 'features/9470-backend-dummy-data' into 'dev' Re #9470
Added seeding of tags and users for use in development environment.
See merge request aswi/aswi-2022/aswi20220x00!9
Static method to seed dummy tags
Cleanup in seeding
Formatting
Merge branch 'features/9324-backend-authentication' into 'dev' Re #9324
JWT authentication and authorization implemented on backend
README with description of PostgreSQL server in docker added
Minor updates and bug fixes
See merge request aswi/aswi-2022/aswi20220x00!8
Backend - JWT Authentication done
README - run of PostgreSQL in docker
Automatic db (EF Core) migrations on run in debug mode
CORS added
Password in user ignored for JSON serialization
Seeding bug fixes
Template code removed
Swagger config updates
Merge branch 'features/9342-backend-userservice' into 'dev' Re #9342
Created UserService, and added a registration mechanism for services.
See merge request aswi/aswi-2022/aswi20220x00!7
Changed formatting, added comments, database check
Removed weather controller
Merge branch 'features/9341-context-ef-entities' into 'dev' Re #9341
Created entities for EF Core, created DbContext, set up database seeding, tested the database communication
See merge request aswi/aswi-2022/aswi20220x00!6
Fixed seeding
Added UserService impl., service registration
Added seeding, cleaned up code
Version V2 working with GUID
Version 1 working state of DB and EF with integer IDs
Merge branch 'features/9171-frontend-init' into 'dev' Re #9171
Frontend (webapp) project created (React + Next.js + TypeScript)Basic libraries addedESLint and Prettier added and configured (basic configuration)
See merge request aswi/aswi-2022/aswi20220x00!5
RestApi client generation script based on OpenAPI (swagger)
ESLint and Prettier tools basic config
WebApp (React + Next + TypeScript) project added
GitIgnore - WebStorm files added
Merge branch 'features/9340-project-structure-di-logging-openapi' into 'dev' Re #9340
Basic project structure for backend.
See merge request aswi/aswi-2022/aswi20220x00!4
Project structure done
Three projects split
Merge branch 'features/9170-initialize-backend-project' into 'dev' Re #9170
Backend initialization, logging setup
See merge request aswi/aswi-2022/aswi20220x00!3
Created backend project, logging setup done
Added gitignore for backend project
Initial commit