소스 검색

:recycle: a little more mixin sprinkling

tags/0.0.1
J 4 년 전
부모
커밋
cfc87d867d
3개의 변경된 파일4개의 추가작업 그리고 8개의 파일을 삭제
  1. 2
    6
      frontend/src/components/SideBar.vue
  2. 1
    1
      frontend/src/views/HomeView.vue
  3. 1
    1
      frontend/src/views/MatchesView.vue

+ 2
- 6
frontend/src/components/SideBar.vue 파일 보기

11
 
11
 
12
 <script>
12
 <script>
13
 import Messages from './Messages.vue'
13
 import Messages from './Messages.vue'
14
+import { mixins } from '../utils'
14
 
15
 
15
 export default {
16
 export default {
16
     components: { Messages }, 
17
     components: { Messages }, 
17
-    props: {
18
-        pid: {
19
-            required: true,
20
-            type: Number
21
-        }
22
-    },
18
+    mixins: [ mixins.pidMixin ],
23
     data: () => ({
19
     data: () => ({
24
         switchToPID: null,
20
         switchToPID: null,
25
         matches: [
21
         matches: [

+ 1
- 1
frontend/src/views/HomeView.vue 파일 보기

38
     components: { ProfileCardList },
38
     components: { ProfileCardList },
39
     mixins: [ mixins.pidMixin, mixins.cardMixin ],
39
     mixins: [ mixins.pidMixin, mixins.cardMixin ],
40
     methods: {
40
     methods: {
41
-        /** Gets called from pidMixins */
41
+        /** Gets called from cardMixin */
42
         async getCards() {
42
         async getCards() {
43
             this.loading = true
43
             this.loading = true
44
             try {
44
             try {

+ 1
- 1
frontend/src/views/MatchesView.vue 파일 보기

38
     components: { ProfileCardList },
38
     components: { ProfileCardList },
39
     mixins: [ mixins.pidMixin, mixins.cardMixin ],
39
     mixins: [ mixins.pidMixin, mixins.cardMixin ],
40
     methods: {
40
     methods: {
41
-        /** Gets called from pidMixins */
41
+        /** Gets called from cardMixin */
42
         async getCards() {
42
         async getCards() {
43
             this.loading = true
43
             this.loading = true
44
             try {
44
             try {

Loading…
취소
저장