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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
<template>
<!-- eslint-disable max-len -->
<footer>
<svg
viewBox="0 0 1920 250"
class="waves">
<path
d="M1920 250H0V0s126.707 78.536 349.975 80.05c177.852 1.203 362.805-63.874 553.803-63.874 290.517 0 383.458 57.712 603.992 61.408 220.527 3.696 278.059-61.408 412.23-17.239"
class="wave-1" />
<path
d="M1920 144s-467.917 116.857-1027.243-17.294C369.986 1.322 0 45.578 0 45.578V250h1920V144z"
class="wave-2" />
<path
d="M0 195.553s208.547-75.581 701.325-20.768c376.707 41.908 520.834-67.962 722.545-67.962 222.926 0 311.553 83.523 496.129 86.394V250H0v-54.447z"
class="wave-3" />
</svg>
<div>
<div class="container">
<div class="columns">
<div class="column is-narrow">
<h4>lolisafe</h4>
<span>© 2017-2020
<a
href="https://github.com/pitu"
class="no-block">Pitu</a>
</span><br>
<span>v{{ version }}</span>
</div>
<div class="column">
<div class="columns is-gapless">
<div class="column" />
<div class="column">
<nuxt-link to="/">
Home
</nuxt-link>
<nuxt-link to="/faq">
FAQ
</nuxt-link>
</div>
<div class="column">
<nuxt-link to="/dashboard">
Dashboard
</nuxt-link>
<nuxt-link to="/dashboard">
Files
</nuxt-link>
<nuxt-link to="/dashboard/albums">
Albums
</nuxt-link>
<nuxt-link to="/dashboard/account">
Account
</nuxt-link>
</div>
<div class="column">
<a href="https://github.com/weebdev/lolisafe">GitHub</a>
</div>
<div class="column">
<a
v-if="loggedIn"
@click="createShareXThing">ShareX Config</a>
<a href="https://chrome.google.com/webstore/detail/lolisafe-uploader/enkkmplljfjppcdaancckgilmgoiofnj">Chrome Extension</a>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
</template>
<script>
/* eslint-disable no-restricted-globals */
import { mapState, mapGetters } from 'vuex';
import { saveAs } from 'file-saver';
export default {
computed: {
...mapGetters({ loggedIn: 'auth/isLoggedIn' }),
...mapState({
version: (state) => state.config.version,
serviceName: (state) => state.config.serviceName,
token: (state) => state.auth.token,
}),
},
methods: {
createShareXThing() {
const sharexFile = `{
"Name": "${this.serviceName}",
"DestinationType": "ImageUploader, FileUploader",
"RequestType": "POST",
"RequestURL": "${location.origin}/api/upload",
"FileFormName": "files[]",
"Headers": {
"authorization": "Bearer ${this.token}",
"accept": "application/vnd.lolisafe.json"
},
"ResponseType": "Text",
"URL": "$json:url$",
"ThumbnailURL": "$json:url$"
}`;
const sharexBlob = new Blob([sharexFile], { type: 'application/octet-binary' });
saveAs(sharexBlob, `${location.hostname}.sxcu`);
},
},
};
</script>
<style lang="scss" scoped>
@import '~/assets/styles/_colors.scss';
footer {
svg.waves {
.wave-1 {
fill: rgb(55, 61, 76);
transition: fill 400ms ease-in-out 0s;
}
.wave-2 {
fill: rgb(57, 64, 79);
transition: fill 400ms ease-in-out 0s;
}
.wave-3 {
fill: rgb(59, 66, 82);
transition: fill 400ms ease-in-out 0s;
}
}
> div {
background: rgb(59, 66, 82);
padding: 3em 0;
@media screen and (max-width: 1024px) {
padding: 3em 3em;
}
}
.container .column a {
display: block;
color: $textColor;
&:hover {
color: white
}
&.no-block {
display: inherit;
}
}
}
</style>
|