2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-11-27 10:51:33 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2018-11-05 15:26:18 +00:00
|
|
|
<template>
|
2019-01-09 15:40:21 +00:00
|
|
|
<div id="app" v-on:click="onClick">
|
2018-12-18 14:43:23 +00:00
|
|
|
<router-view/>
|
|
|
|
<!-- Area for displaying notification -->
|
|
|
|
<NotificationArea/>
|
|
|
|
</div>
|
2018-11-05 15:26:18 +00:00
|
|
|
</template>
|
|
|
|
|
2018-12-12 13:44:01 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
import NotificationArea from '@/components/notifications/NotificationArea.vue';
|
2019-01-09 15:40:21 +00:00
|
|
|
import { APP_STATE_ACTIONS } from '@/utils/constants/actionNames';
|
2018-12-12 13:44:01 +00:00
|
|
|
|
|
|
|
@Component({
|
2019-01-09 15:40:21 +00:00
|
|
|
data: function() {
|
|
|
|
return {
|
|
|
|
ids: [
|
|
|
|
'newProjectPopup',
|
|
|
|
'newProjectButton',
|
|
|
|
'accountDropdown',
|
|
|
|
'accountDropdownButton',
|
|
|
|
'projectDropdown',
|
|
|
|
'projectDropdownButton',
|
|
|
|
'deleteProjectPopup',
|
|
|
|
'deleteProjectPopupButton',
|
|
|
|
'deleteAccountPopupButton',
|
|
|
|
'deleteAccountPopup',
|
|
|
|
'addTeamMemberPopupButton',
|
|
|
|
'addTeamMemberPopup',
|
2019-01-10 14:44:15 +00:00
|
|
|
'addTeamMemberPopupButtonSVG',
|
|
|
|
'sortTeamMemberByDropdown',
|
|
|
|
'sortTeamMemberByDropdownButton',
|
2019-01-09 15:40:21 +00:00
|
|
|
]
|
|
|
|
};
|
|
|
|
},
|
2018-12-18 14:43:23 +00:00
|
|
|
components: {
|
|
|
|
NotificationArea
|
2019-01-09 15:40:21 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onClick: function(e) {
|
|
|
|
let target: any = e.target;
|
|
|
|
|
|
|
|
while (target) {
|
|
|
|
if (this.$data.ids.includes(target.id)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
target = target.parentNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$store.dispatch(APP_STATE_ACTIONS.CLOSE_POPUPS);
|
|
|
|
}
|
2018-12-18 14:43:23 +00:00
|
|
|
}
|
2018-12-12 13:44:01 +00:00
|
|
|
})
|
|
|
|
|
2018-12-18 14:43:23 +00:00
|
|
|
export default class App extends Vue {
|
|
|
|
}
|
2019-01-09 15:40:21 +00:00
|
|
|
|
2018-12-12 13:44:01 +00:00
|
|
|
</script>
|
|
|
|
|
2018-11-05 15:26:18 +00:00
|
|
|
<style lang="scss">
|
|
|
|
|
2018-12-18 14:43:23 +00:00
|
|
|
@font-face {
|
|
|
|
font-family: "montserrat_regular";
|
|
|
|
src: url("../static/fonts/montserrat_regular.ttf");
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: "montserrat_medium";
|
|
|
|
src: url("../static/fonts/montserrat_medium.ttf");
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: "montserrat_bold";
|
|
|
|
src: url("../static/fonts/montserrat_bold.ttf");
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
input,
|
|
|
|
textarea {
|
|
|
|
font-family: inherit;
|
|
|
|
font-weight: 600;
|
|
|
|
border: 1px solid rgba(56, 75, 101, 0.4);
|
2019-01-14 15:39:21 +00:00
|
|
|
color: #354049;
|
2019-01-30 13:18:07 +00:00
|
|
|
caret-color: #2683FF;
|
2018-12-18 14:43:23 +00:00
|
|
|
}
|
2018-11-05 15:26:18 +00:00
|
|
|
</style>
|