-
Notifications
You must be signed in to change notification settings - Fork 3
Models
The models folder in the Angular application represents the classes we used to represent important objects within the application. These include the User, Question, Response, Tag (for associated tags and skill set tags), Image, Account. Markdown options for the markdown editor are also in this folder.
The models included are set up as follows:
- id: number
- username: string
- isExpert: boolean
- expertTags: Tag[]
- questions: Question[]
- responses: Response[]
- id: number
- username: string
- tags?: string[]
- userId: number
- user?: User
- head: string
- body: string
- creationDate: string
- associatedTags: Tag[]
- responses: Response[]
- highlightedResponseId: Response
- images: Image[]
- user: any
- id: number responderId: number questionId: number body: string creationDate: string
id: number name: string checked?: boolean
id: number image: any (this is represented as an array of bytes in the Java end) question: Question
id: number expert: Boolean
Help! These component names are confusing!
In this project there are several components just related to posted questions, all in the static module. We start with the question-list, which is a list of preview-question components. This is a list of questions for users to browse through for reading/answering. When one of these preview-question components is clicked, it routes the user to a view-question component built using that question. This view-question component itself contains a question component for the actual question, in addition to responses and other content. In summation:
- question-list : a list of preview-question components
- preview-question : a limited preview that links to view-question
- view-question : a full view of a question and associated responses
- question : the component that represents the question itself in the view-question component *_ask-question: where user submits a question *_ask-question: component where user submits a question