Skip to content

Commit

Permalink
Merge pull request #671 from clrfund/feat/education-category
Browse files Browse the repository at this point in the history
Add education category
  • Loading branch information
yuetloo authored Jun 7, 2023
2 parents 2225fdf + ca2b7dc commit 1515683
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
4 changes: 3 additions & 1 deletion vue-app/src/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@
"label6": "内容",
"label7": "研究",
"label8": "数据",
"label_education": "教育",
"error5": "您需要选择一个类别",
"label9": "问题空间",
"p5": "解释您要解决的问题. 支持 Markdown。",
Expand Down Expand Up @@ -1122,7 +1123,8 @@
"content": "内容",
"research": "研究",
"data": "数据",
"other": "其他"
"other": "其他",
"education": "教育"
},
"timeleft": {
"unit": {
Expand Down
4 changes: 3 additions & 1 deletion vue-app/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@
"label6": "Content",
"label7": "Research",
"label8": "Data",
"label_education": "Education",
"error5": "You need to choose a category",
"label9": "Problem space",
"p5": "Explain the problems you're trying to solve. Markdown supported.",
Expand Down Expand Up @@ -1122,7 +1123,8 @@
"content": "Content",
"data": "Data",
"research": "Research",
"other": "Other"
"other": "Other",
"education": "Education"
},
"timeleft": {
"unit": {
Expand Down
4 changes: 3 additions & 1 deletion vue-app/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@
"label6": "Contenido",
"label7": "Investigación",
"label8": "Datos",
"label_education": "Educación",
"error5": "Debes elegir una categoría",
"label9": "Área problemática",
"p5": "Explica los problemas que estás tratando de resolver. Soporte de Markdown.",
Expand Down Expand Up @@ -1122,7 +1123,8 @@
"content": "Contenido",
"data": "Datos",
"research": "Investigación",
"other": "Otro"
"other": "Otro",
"education": "Educación"
},
"timeleft": {
"unit": {
Expand Down
12 changes: 12 additions & 0 deletions vue-app/src/views/JoinView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@
}"
/>
<label for="tooling" class="radio-btn">{{ $t('join.step0.label5') }}</label>
<input
id="education"
type="radio"
name="education"
value="Education"
v-model="v$.project.category.$model"
:class="{
input: true,
invalid: v$.project.category.$error,
}"
/>
<label for="education" class="radio-btn"> {{ $t('join.step0.label_education') }}</label>
<input
id="category-content"
type="radio"
Expand Down
2 changes: 1 addition & 1 deletion vue-app/src/views/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const { currentUser } = storeToRefs(userStore)
const projects = ref<Project[]>([])
const search = ref('')
const isLoading = ref(true)
const categories = ref<string[]>(['content', 'research', 'tooling', 'data'])
const categories = ref<string[]>(['content', 'education', 'research', 'tooling', 'data'])
const selectedCategories = ref<string[]>([])
const roundAddress = ref('')
Expand Down

0 comments on commit 1515683

Please sign in to comment.