├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── frontend │ └── themes │ │ └── vaadin-start │ │ ├── main-layout.css │ │ ├── styles.css │ │ ├── theme.json │ │ └── views │ │ ├── questions-view.css │ │ └── quiz-gallery-view.css ├── java │ ├── fun │ │ └── quizapp │ │ │ ├── QuizApplication.java │ │ │ ├── ai │ │ │ ├── AIConfiguration.java │ │ │ └── AIService.java │ │ │ ├── model │ │ │ ├── DataRoot.java │ │ │ ├── QuizService.java │ │ │ ├── User.java │ │ │ └── quiz │ │ │ │ ├── Answer.java │ │ │ │ ├── Question.java │ │ │ │ └── Quiz.java │ │ │ └── views │ │ │ ├── MainLayout.java │ │ │ ├── about │ │ │ └── AboutView.java │ │ │ ├── quiz │ │ │ ├── QuestionCard.java │ │ │ └── QuestionsView.java │ │ │ ├── quizcreate │ │ │ ├── AnswerComponent.java │ │ │ ├── QuestionForm.java │ │ │ └── QuizCreateView.java │ │ │ ├── quizgallery │ │ │ ├── AIQuizGalleryCard.java │ │ │ ├── NewQuizGalleryCard.java │ │ │ ├── QuizGalleryCard.java │ │ │ └── QuizGalleryView.java │ │ │ └── quizmanagement │ │ │ └── QuizMangementView.java │ └── ujfaA │ │ └── springQuiz │ │ ├── controller │ │ ├── QuizAdministratorController.java │ │ ├── QuizController.java │ │ └── SecurityController.java │ │ ├── dto │ │ ├── QuestionDTO.java │ │ └── UserDTO.java │ │ ├── model │ │ ├── Role.java │ │ └── validator │ │ │ ├── NameConstraintValidator.java │ │ │ ├── PasswordConstraintValidator.java │ │ │ ├── ValidName.java │ │ │ └── ValidPassword.java │ │ ├── security │ │ ├── LoginSuccessHandler.java │ │ ├── PasswordEncoderConfig.java │ │ ├── UserDetailsServiceImpl.java │ │ └── WebSecurityConfig.java │ │ └── service │ │ ├── QuestionService.java │ │ └── UserService.java └── resources │ ├── META-INF │ └── resources │ │ └── icons │ │ └── icon.png │ ├── ai.properties │ ├── application.properties │ ├── messages.properties │ ├── templates │ ├── about.html │ ├── completion.html │ ├── error.html │ ├── error │ │ └── 404.html │ ├── fragments │ │ ├── HeaderAndFooter.html │ │ └── Navigation.html │ ├── index.html │ ├── login.html │ ├── newQuestion.html │ ├── questionStats.html │ ├── questions.html │ ├── registration.html │ ├── showQuestion.html │ ├── usersEngagement.html │ └── usersInfo.html │ └── topics.txt └── test └── java ├── fun └── quizapp │ └── QuizApplicationTests.java └── ujfaA └── springQuiz └── security └── WebSecurityTest.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/.mvn/wrapper/MavenWrapperDownloader.java -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/README.md -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/frontend/themes/vaadin-start/main-layout.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/frontend/themes/vaadin-start/main-layout.css -------------------------------------------------------------------------------- /src/main/frontend/themes/vaadin-start/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/frontend/themes/vaadin-start/styles.css -------------------------------------------------------------------------------- /src/main/frontend/themes/vaadin-start/theme.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/frontend/themes/vaadin-start/theme.json -------------------------------------------------------------------------------- /src/main/frontend/themes/vaadin-start/views/questions-view.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/frontend/themes/vaadin-start/views/questions-view.css -------------------------------------------------------------------------------- /src/main/frontend/themes/vaadin-start/views/quiz-gallery-view.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/frontend/themes/vaadin-start/views/quiz-gallery-view.css -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/QuizApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/QuizApplication.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/ai/AIConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/ai/AIConfiguration.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/ai/AIService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/ai/AIService.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/model/DataRoot.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/model/DataRoot.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/model/QuizService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/model/QuizService.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/model/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/model/User.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/model/quiz/Answer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/model/quiz/Answer.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/model/quiz/Question.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/model/quiz/Question.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/model/quiz/Quiz.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/model/quiz/Quiz.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/MainLayout.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/MainLayout.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/about/AboutView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/about/AboutView.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quiz/QuestionCard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quiz/QuestionCard.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quiz/QuestionsView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quiz/QuestionsView.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizcreate/AnswerComponent.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizcreate/AnswerComponent.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizcreate/QuestionForm.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizcreate/QuestionForm.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizcreate/QuizCreateView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizcreate/QuizCreateView.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizgallery/AIQuizGalleryCard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizgallery/AIQuizGalleryCard.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizgallery/NewQuizGalleryCard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizgallery/NewQuizGalleryCard.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizgallery/QuizGalleryCard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizgallery/QuizGalleryCard.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizgallery/QuizGalleryView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizgallery/QuizGalleryView.java -------------------------------------------------------------------------------- /src/main/java/fun/quizapp/views/quizmanagement/QuizMangementView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/fun/quizapp/views/quizmanagement/QuizMangementView.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/controller/QuizAdministratorController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/controller/QuizAdministratorController.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/controller/QuizController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/controller/QuizController.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/controller/SecurityController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/controller/SecurityController.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/dto/QuestionDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/dto/QuestionDTO.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/dto/UserDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/dto/UserDTO.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/model/Role.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/model/Role.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/model/validator/NameConstraintValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/model/validator/NameConstraintValidator.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/model/validator/PasswordConstraintValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/model/validator/PasswordConstraintValidator.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/model/validator/ValidName.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/model/validator/ValidName.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/model/validator/ValidPassword.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/model/validator/ValidPassword.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/security/LoginSuccessHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/security/LoginSuccessHandler.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/security/PasswordEncoderConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/security/PasswordEncoderConfig.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/security/UserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/security/UserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/security/WebSecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/security/WebSecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/service/QuestionService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/service/QuestionService.java -------------------------------------------------------------------------------- /src/main/java/ujfaA/springQuiz/service/UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/java/ujfaA/springQuiz/service/UserService.java -------------------------------------------------------------------------------- /src/main/resources/META-INF/resources/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/META-INF/resources/icons/icon.png -------------------------------------------------------------------------------- /src/main/resources/ai.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/ai.properties -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/main/resources/messages.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/messages.properties -------------------------------------------------------------------------------- /src/main/resources/templates/about.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/about.html -------------------------------------------------------------------------------- /src/main/resources/templates/completion.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/completion.html -------------------------------------------------------------------------------- /src/main/resources/templates/error.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/error.html -------------------------------------------------------------------------------- /src/main/resources/templates/error/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/error/404.html -------------------------------------------------------------------------------- /src/main/resources/templates/fragments/HeaderAndFooter.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/fragments/HeaderAndFooter.html -------------------------------------------------------------------------------- /src/main/resources/templates/fragments/Navigation.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/fragments/Navigation.html -------------------------------------------------------------------------------- /src/main/resources/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/index.html -------------------------------------------------------------------------------- /src/main/resources/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/login.html -------------------------------------------------------------------------------- /src/main/resources/templates/newQuestion.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/newQuestion.html -------------------------------------------------------------------------------- /src/main/resources/templates/questionStats.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/questionStats.html -------------------------------------------------------------------------------- /src/main/resources/templates/questions.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/questions.html -------------------------------------------------------------------------------- /src/main/resources/templates/registration.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/registration.html -------------------------------------------------------------------------------- /src/main/resources/templates/showQuestion.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/showQuestion.html -------------------------------------------------------------------------------- /src/main/resources/templates/usersEngagement.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/usersEngagement.html -------------------------------------------------------------------------------- /src/main/resources/templates/usersInfo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/templates/usersInfo.html -------------------------------------------------------------------------------- /src/main/resources/topics.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/main/resources/topics.txt -------------------------------------------------------------------------------- /src/test/java/fun/quizapp/QuizApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/test/java/fun/quizapp/QuizApplicationTests.java -------------------------------------------------------------------------------- /src/test/java/ujfaA/springQuiz/security/WebSecurityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UjfaA/SpringQuiz/HEAD/src/test/java/ujfaA/springQuiz/security/WebSecurityTest.java --------------------------------------------------------------------------------