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-09-23 12:31:42 +01:00
|
|
|
<div id="app" @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">
|
2019-09-09 11:33:39 +01:00
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
|
|
|
|
import NotificationArea from '@/components/notifications/NotificationArea.vue';
|
|
|
|
|
|
|
|
import { APP_STATE_ACTIONS } from '@/utils/constants/actionNames';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: {
|
2019-09-13 15:58:18 +01:00
|
|
|
NotificationArea,
|
2019-09-09 11:33:39 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class App extends Vue {
|
|
|
|
private ids: string[] = [
|
|
|
|
'accountDropdown',
|
|
|
|
'accountDropdownButton',
|
|
|
|
'projectDropdown',
|
|
|
|
'projectDropdownButton',
|
|
|
|
'sortTeamMemberByDropdown',
|
|
|
|
'sortTeamMemberByDropdownButton',
|
|
|
|
'notificationArea',
|
|
|
|
'successfulRegistrationPopup',
|
|
|
|
];
|
|
|
|
|
|
|
|
private onClick(e: Event): void {
|
2019-09-13 10:48:27 +01:00
|
|
|
let target: any = e.target;
|
2019-09-09 11:33:39 +01:00
|
|
|
while (target) {
|
|
|
|
if (this.$data.ids.includes(target.id)) {
|
|
|
|
return;
|
2019-04-23 15:46:54 +01:00
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
target = target.parentNode;
|
2019-04-23 15:46:54 +01:00
|
|
|
}
|
2018-12-12 13:44:01 +00:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
this.$store.dispatch(APP_STATE_ACTIONS.CLOSE_POPUPS);
|
2019-07-08 14:45:25 +01:00
|
|
|
}
|
2019-09-09 11:33:39 +01:00
|
|
|
}
|
2018-12-12 13:44:01 +00:00
|
|
|
</script>
|
|
|
|
|
2018-11-05 15:26:18 +00:00
|
|
|
<style lang="scss">
|
2019-07-30 11:13:24 +01:00
|
|
|
body {
|
2019-09-23 12:31:42 +01:00
|
|
|
margin: 0 !important;
|
2019-07-30 11:13:24 +01:00
|
|
|
height: 100vh;
|
|
|
|
zoom: 100%;
|
|
|
|
}
|
|
|
|
|
2019-09-26 14:36:12 +01:00
|
|
|
img,
|
|
|
|
a {
|
|
|
|
-webkit-user-drag: none;
|
|
|
|
-khtml-user-drag: none;
|
|
|
|
-moz-user-drag: none;
|
|
|
|
-o-user-drag: none;
|
|
|
|
user-drag: none;
|
|
|
|
}
|
|
|
|
|
2018-12-18 14:43:23 +00:00
|
|
|
@font-face {
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: "font_regular";
|
2019-09-12 12:53:43 +01:00
|
|
|
font-display: swap;
|
2019-03-26 16:38:35 +00:00
|
|
|
src: url("../static/fonts/font_regular.ttf");
|
2018-12-18 14:43:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: "font_medium";
|
2019-09-12 12:53:43 +01:00
|
|
|
font-display: swap;
|
2019-03-26 16:38:35 +00:00
|
|
|
src: url("../static/fonts/font_medium.ttf");
|
2018-12-18 14:43:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: "font_bold";
|
2019-09-12 12:53:43 +01:00
|
|
|
font-display: swap;
|
2019-03-26 16:38:35 +00:00
|
|
|
src: url("../static/fonts/font_bold.ttf");
|
2018-12-18 14:43:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
2019-05-29 17:22:16 +01:00
|
|
|
|
|
|
|
/* width */
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Track */
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
box-shadow: inset 0 0 5px #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Handle */
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background: #AFB7C1;
|
|
|
|
border-radius: 6px;
|
|
|
|
height: 5px;
|
|
|
|
}
|
2018-11-05 15:26:18 +00:00
|
|
|
</style>
|