-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy pathc-widget.vue
More file actions
84 lines (79 loc) · 1.6 KB
/
c-widget.vue
File metadata and controls
84 lines (79 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<template lang="pug">
template(v-if="userUpdated")
#summary-wrapper
c-summary.widget-padding(
v-if="!isPortfolio",
ref="summary",
:repos="users",
:error-messages="errorMessages",
:is-widget-mode="true"
)
c-summary-portfolio.widget-padding(
v-else,
ref="summary",
:repos="users",
:error-messages="errorMessages",
:is-widget-mode="true"
)
template(v-else)
.empty Widget does not support uploading of .zip file generated by RepoSense.
</template>
<script lang='ts'>
import { defineComponent } from 'vue';
import cSummary from './c-summary.vue';
import CSummaryPortfolio from "./c-summary-portfolio.vue";
export default defineComponent({
name: 'c-widget',
components: {
CSummaryPortfolio,
cSummary,
},
props: {
updateReportZip: {
type: Function,
required: true,
},
repos: {
type: Object,
required: true,
},
users: {
type: Array,
required: true,
},
userUpdated: {
type: Boolean,
required: true,
},
loadingOverlayOpacity: {
type: Number,
required: true,
},
tabType: {
type: String,
required: true,
},
creationDate: {
type: String,
required: true,
},
reportGenerationTime: {
type: String,
required: true,
},
errorMessages: {
type: Object,
required: true,
},
},
computed: {
isPortfolio(): boolean {
return window.isPortfolio;
}
},
});
</script>
<style lang="scss">
@import '../styles/_colors.scss';
@import '../styles/summary-chart.scss';
</style>