Skip to content

Commit

Permalink
change details in user setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohminchae authored and jimin9038 committed Apr 12, 2022
1 parent e2745ae commit b5aede2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
3 changes: 1 addition & 2 deletions frontend/src/pages/oj/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
</template>
<template v-slot:content v-else>
<button v-if="isAdminRole" @click="goManagement()" class="flex w-full justify-between items-center rounded-lg px-3 py-1 my-1 text-base font-medium text-text-title hover:text-green hover:no-underline">Management</button>
<a class="flex w-full justify-between items-center rounded-lg px-3 py-1 my-1 text-base text-text-title font-medium hover:text-green hover:no-underline" href="/#">Settings</a>
<button class="flex w-full justify-between items-center rounded-lg px-3 py-1 my-1 text-base text-text-title font-medium hover:text-green hover:no-underline" @click="goProfile()">My Profile</button>
<button v-if="!isAdminRole" class="flex w-full justify-between items-center rounded-lg px-3 py-1 my-1 text-base text-text-title font-medium hover:text-green hover:no-underline" @click="goProfile()">My Profile</button>
<a class="flex w-full justify-between items-center rounded-lg px-3 py-1 my-1 text-base text-text-title hover:text-green hover:no-underline" href="/logout">Sign Out</a>
</template>
</dropdown>
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/pages/oj/components/user/UserSetting.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="profile-setting">
<div class="setting-main font-bold">
<div class="section-title logo-title font-bold">
<div class="setting-main">
<div class="section-title logo-title">
<h2>Setting</h2>
</div>
<div style="display:flex; flex-direction:row; margin-bottom:12px;" class="profileSetting">
Expand Down Expand Up @@ -278,7 +278,6 @@ export default {
}
.logo-title {
margin:8px 0 16px 0;
color: #8DC63F;
text-align:center;
}
.font-bold {
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/pages/oj/views/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ const ResetPassword = () => import(/* webpackChunkName: "password" */ '@oj/views
const EmailAuth = () => import(/* webpackChunkName: "emailAuth" */ '@oj/views/user/EmailAuth.vue')
const Register = () => import('@oj/views/user/Register.vue')

const ProfileSetting = () => import(/* webpackChunckName: "setting" */ '@oj/views/user/ProfileSetting.vue')
/* const ProfileSetting = () => import(/* webpackChunckName: "setting" */
/* '@oj/views/user/ProfileSetting.vue') */

const ContestList = () => import(/* webpackChunkName: "contest" */ '@oj/views/contest/ContestList.vue')
const ContestDetail = () => import(/* webpackChunkName: "contest" */ '@oj/views/contest/ContestDetail.vue')

export {
Home, NotFound,
Logout, ProblemList, Announcement, AnnouncementList, Problem,
ApplyResetPassword, ResetPassword, EmailAuth, ProfileSetting,
ApplyResetPassword, ResetPassword, EmailAuth,
ContestList, ContestDetail, ContestProblemList, ContestRanking, Register,
LectureList, LectureDashboard, LectureAssignmentList, LectureAssignmentDetail, LectureQna, LectureQnaDetail,
Profile
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/pages/oj/views/problem/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
centered
modal-class="modal-med modal-big"
>
<profileSetting></profileSetting>
<UserSetting></UserSetting>
</b-modal>

<b-navbar id="inner-header" type="dark">
Expand Down Expand Up @@ -336,7 +336,7 @@ import ProblemSidebar from './ProblemSidebar.vue'
import moment from 'moment'
import register from '@oj/views/user/Register'
import login from '@oj/views/user/Login'
import profileSetting from '@oj/views/user/ProfileSetting'
import UserSetting from '@oj/components/user/UserSetting'
import Table from '@oj/components/Table.vue'
import VueResizable from 'vue-resizable'
Expand All @@ -349,7 +349,8 @@ export default {
register,
profileSetting,
Table,
VueResizable
VueResizable,
UserSetting
},
mixins: [FormMixin],
data () {
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/pages/oj/views/user/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<profile-badge v-show="currentTab==='Badge'"></profile-badge>
<profile-storage v-show="currentTab==='Storage'"></profile-storage>
<profile-group v-if="currentTab==='Group'"></profile-group>
<UserSetting v-if="currentTab==='Setting'"></UserSetting>
<user-setting v-if="currentTab==='Setting'"></user-setting>
</div>
</div>
</template>
Expand Down Expand Up @@ -56,12 +56,12 @@ export default {
'Submission',
'History',
'Contest',
'Badge',
'Setting'
'Badge'
],
rightTabs: [
'Storage',
'Group'
'Group',
'Setting'
],
currentTab: 'Summary'
}
Expand Down

0 comments on commit b5aede2

Please sign in to comment.