-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
287 lines (272 loc) · 8.12 KB
/
index.html
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<html>
<head>
<title>pastebee.com</title>
<meta
name="description"
content="The all new Pastebee. Bringing you unstoppable publishing powered by the mighty Swarm."
/>
<link rel="stylesheet" href="assets/css/app.css" />
<meta
name="viewport"
content="initial-scale=1, width=device-width, height=device-height, viewport-fit=cover, user-scalable=0"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
</head>
<body>
<div id="app" class="loading">
<div id="wrap">
<div class="container">
<div id="header">
<button v-on:click="resetPaste" id="new"></button>
<!-- <router-link to="/about"> -->
<div id="about" v-on:click="showAbout"></div>
<!-- </router-link> -->
<router-link to="/">
<img
alt="logo"
id="logo"
src="assets/images/logo.svg"
/>
</router-link>
<a
class="desktop-only"
id="powered-by-swarm"
href="https://www.ethswarm.org/"
target="_blank"
></a>
</div>
<router-view> </router-view>
<!-- output -->
<div class="show-paste" v-show="hasPaste">
<input
class="copy-input"
id="copy-input-1"
:value="url"
readonly
/>
<button id="copy" v-on:click="copyUrl"></button>
<div class="metadata" v-if="metadata">
<span class="name">{{metadata.name}}</span>
<span class="size"
>{{metadata.size | shortenBytes}}</span
>
</div>
<!-- output -->
<div>
<div
contenteditable="true"
id="texteditor"
placeholder="Paste text here..."
@input="onInput"
></div>
<!-- <textarea id="bin" v-model="pasteText">{{pasteText}}</textarea> -->
<button
id="paste"
v-on:click="createPaste"
></button>
</div>
</div>
<!-- .show-paste -->
<!-- input -->
<div class="add-paste" v-show="!hasPaste">
<!-- input -->
<div>
<div
contenteditable="true"
id="texteditor"
placeholder="Paste text here..."
@input="onInput"
></div>
<!-- <textarea v-model="pasteText" placeholder="Paste text here..."></textarea> -->
<button
id="paste"
v-on:click="createPaste"
></button>
</div>
</div>
<!-- .add-paste -->
</div>
<!-- .container -->
<div id="footer">
<a
class="mobile-only"
id="powered-by-swarm"
href="https://www.ethswarm.org/"
target="_blank"
></a>
</div>
<!-- about -->
<div
id="about-page"
class="overlay bounce-in-top"
v-show="showingAbout"
>
<button id="close" v-on:click="hideAbout">X</button>
<div class="va-outer">
<div class="va-inner">
<div class="container">
<div id="about-content">
<a
id="about-1up"
href="https://1up.digital"
target="_blank"
></a>
<a
id="about-swarm"
href="https://www.ethswarm.org/"
target="_blank"
></a>
</div>
</div>
</div>
</div>
</div>
<!-- .add-paste -->
<div
id="terms-page"
class="overlay bounce-in-top"
v-show="showingTerms"
>
<button id="close" v-on:click="hideTerms">X</button>
<div class="va-outer">
<div class="va-inner">
<div class="container">
<div id="terms-content">
<h1>
PASTEBEE USER TESTING TERMS AND
CONDITIONS (JUNE 2021)
</h1>
<p>
Welcome to Pastebee, currently being
developed and graciously provided by the
1up.digital (“We”). Swarm is a
peer-to-peer network of nodes that
collectively provide a decentralized
storage and communication service.
Pastebee is currently provided for
testing purposes only.
</p>
<p>
By testing Pastebee, you accept the
following terms:
</p>
<p>
We make, at our sole discretion,
Pastebee available to you at no charge.
You may choose to try Pastebee at your
sole discretion. Pastebee testing is
intended for evaluation purposes only
and not for production use. It is
currently not supported.
</p>
<p>
Data storage and transfer through
Pastebee is not encrypted. Data storage
through Pastebee is not guaranteed in
time and data may thus disappear,
respectively be erased, at any time.
Data storage through Pastebee is
decentralized and data can thus be
stored in any jurisdiction by any peer
user (node operator).
</p>
<p>
In addition, for the testing of
Pastebee, you agree to not upload and
transfer personal data and data that
contain legally protected contents
(including professional secrets). You
agree to not use Pastebee in a way that
threatens the security, integrity or
availability of the service. In
particular, you shall not use Pastebee
to (i) store and/or transfer infringing,
libelous, or otherwise unlawful or
tortious material, (ii) store and/or
transfer material in violation of
third-party privacy rights, (iii) store
and/or transfer malicious code, (iv)
interfere with or disrupt the integrity
or performance of any third-party
service or data. You are solely
responsible for the uploaded and
downloaded files. You may only upload
and/or transfer files that belong to you
and/or that you are explicitly
authorized to upload and/or transfer.
You agree to defend, indemnify and hold
harmless Swarm, as well as any and all
persons involved in the provision of
Pastebee with respect to all claims,
demands, liabilities, costs and/or
expenses resulting from an illegal use
of Pastebee or its content.
</p>
<p>
You acknowledge that Pastebee is not
free from bugs or errors and that Swarm
bears no liability for any harm or
damage arising out of or in connection
with Pastebee. We may discontinue
Pastebee at any time at our sole
discretion. When testing Pastebee, you
acknowledge that we instantly and
remotely collect statistical information
about your actions and consent thereto.
You grant us and our affiliates a
worldwide, perpetual, irrevocable,
royalty-free license to use and
incorporate into our services any
suggestion, enhancement request,
recommendation, correction or other
feedback provided by you relating to the
operation of our services.
</p>
<p>
We reserve the right to modify these
User Testing Terms and Conditions at any
time. These User Testing Terms and
Conditions are governed by and construed
in accordance with British law, without
giving effect to its conflict of laws
provisions.
</p>
</div>
</div>
</div>
</div>
</div>
<div id="terms" v-on:click="showTerms">
Terms & Conditions
</div>
</div>
<!-- #wrap -->
</div>
<!-- #app -->
</body>
<script src="./assets/axios.min.js"></script>
<script src="./assets/vue.js"></script>
<script src="./assets/vue-router.js"></script>
<script src="./assets/index.js"></script>
</html>