-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
475 lines (471 loc) · 26.2 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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
<!DOCTYPE html>
<html lang="en">
<title>Nonio</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/svg+xml" href="/lib/favicon.svg">
<script src="/soci.js" type="module"></script>
<script src="/components/soci-components.js" type="module"></script>
<script>
let lazyload = (path, parent) => {
document.addEventListener('DOMContentLoaded', ()=>{
let resource = document.createElement('script')
resource.async = 'true'
resource.src = path
let root = parent ? parent : document.head
root.appendChild(resource)
})
}
</script>
<link rel="stylesheet" href="/soci.css">
<link rel="stylesheet" href="/lib/quillStyle.css">
<soci-sidebar loading>
<div slot="login">
<form>
<input type="email" name="email" placeholder="Email address" autocomplete="email">
<soci-password name="password"></soci-password>
<soci-button async onclick="this.closest('soci-sidebar').login()">login</soci-button>
</form>
</div>
<div slot="create">
<form>
<h2>Essentials</h2>
<soci-username-input name="username" tabindex="0"></soci-username-input>
<input type="email" name="email" placeholder="Email address">
<soci-password tabindex="0" name="password"></soci-password>
<soci-password tabindex="0" name="confirmPassword" placeholder="Confirm Password" match="password"></soci-password>
<soci-button async onclick="this.closest('soci-sidebar').register()">Create Account</soci-button>
</form>
</div>
<tags slot="tags"></tags>
</soci-sidebar>
<div id="pages">
<soci-route id="tags" test="both" path="(^/#)|(^/$)" fresh>
<script>lazyload('/pages/tags.js', document.currentScript.closest('soci-route'))</script>
</soci-route>
<soci-route class="admin-page" id="admin-create" path="/admin/create-account">
<div class="content">
<div class="loading-block" load-order="primary">
<h1>Thanks for choosing to sign up</h1>
<p>By being a part of nonio, you're choosing to support artists, musicians, writers, and creators of all types. We're excited to have you, and we look forward to seeing what you create as well.</p>
</div>
<div class="loading-block" load-order="secondary">
<h2>A couple things you should know</h2>
<p>It's too early on to have an EULA, but the basics of what we stand for are as follows:</p>
<h3>We wont track you or sell your data to advertisers</h3>
<p>Nonio is funded by you, not by ad supported revenue. That's what $1 of your subscription goes to - to providing a high quality service that we don't have to support by selling your info. Our aim is to provide a high quality user experience. We don't believe adding trackers or slowing down our site with ads is the way to do that.</p>
<h3>You own your content </h3>
<p>We aren't allowed to use it without permission. However we reserve the right to feature thumbnails of your content in screenshots / promotions. </p>
<h3>We're in beta, we aren't responsible if everything blows up</h3>
<p>By we I mean me. It's just myself, jjcm, running things. As a solo project I can't guarantee the servers wont explode tomorrow. There are no uptime guarantees here.</p>
<h3>Your financials are handled by Stripe</h3>
<p>While nonio is in beta, Stripe definitely isn't. Your payment info is never stored on nonio's servers. It's secure in the hands of Stripe. </p>
</div>
<div class="loading-block" load-order="tertiary">
<h2>FAQs</h2>
<h3>Why aren't there free accounts like reddit/instagram/etc? </h3>
<p>I have to pay for bandwidth and servers somehow. The choices are either subscription services or ad supported funding. Personally I believe that a subscription services is the lesser of two evils, for a few reasons. The first is around knowing who my customer is. With a subscription service, you are my customer. I tailor all of my experiences to the demands of the user. With an ad supported service you aren't the customer, you are the product. Ad providers are the customer and you have to build a platform to their demands. We see major issues with this model in Youtube, where videos are demonetized because they don't meet the demands of the advertisers. I want nonio to be built with you in mind, not with advertisers demands taking priority.</p>
<h3>Why do I have to contribute to creators? Can I just pay the $1? </h3>
<p>Nonio would be nothing without creators. The point of the platform is to fund their creativity. In addition, it means that your vote is worth something. When you're choosing to upvote a post, you're saying that this item is deserving of a slice of your pool of contribution. This means other things you've voted on will get a smaller percentage of your pool as well, so you have to vote with a conscience. A picture of a cat may not be worthy of a percentage of your pool when you've previously voted up a high quality piece of investigative journalism. The hope is that this leads to higher quality content that gets surfaced, rather than surfacing wide-appeal-but-low-effort content like r/all on reddit.</p>
</div>
</div>
</soci-route>
<soci-route class="admin-page" id="admin-subscribe" path="/admin/subscribe" fresh>
<div class="content">
<script src="/pages/admin/subscribe.js"></script>
<div class="loading-block" load-order="primary">
<h1>Subscription</h1>
<p>Please pick your account type:</p>
</div>
<div class="columns" load-order="secondary">
<div class="column supporter">
<div class="title">
<h2>Supporter</h2>
<p>This allows you to contribute back to the creators. You choose your subscription price, and your subscription pool is divided evenly between everything you upvote that month.</p>
</div>
<div class="payment">
<form id="payment-form" style="user-select: none;">
<h3>Contribution</h3>
<soci-contribution-slider name="subscriptionAmount"></soci-contribution-slider>
<h3>Payment Info</h3>
<input name="name" placeholder="Name">
<div id="card-element"></div>
<div id="card-element-errors" role="alert"></div>
<soci-button class="subscribe-button" async onclick="adminSubscribe.subscribe()">Subscribe</soci-button>
</form>
</div>
<div class="features">
<div class="price-container">
<div class="price">$2-10<span>/mo</span></div>
<soci-button class="supporter-button" async onclick="adminSubscribe.chooseSupporter()">Choose supporter</soci-button>
</div>
<ul>
<li class="can">Submit posts</li>
<li class="can">Upvote and fund posts</li>
<li class="can">Browse and view posts</li>
<li class="can">Comment on posts</li>
<li class="can">Upvote and downvote comments</li>
</ul>
</div>
</div>
<div class="column">
<div class="title">
<h2>Free</h2>
<p>Everyone starts somewhere. Even if you don't contribute monetarily, you can still shower the creators with praise in the comments!</p>
</div>
<div class="features">
<div class="price-container">
<div class="price">$0<span>/mo</span></div>
<soci-button class="free-button" async subtle onclick="adminSubscribe.chooseFree()">Choose free</soci-button>
</div>
<ul>
<li class="cant">Submit posts</li>
<li class="cant">Upvote and fund posts</li>
<li class="can">Browse and view posts</li>
<li class="can">Comment on posts</li>
<li class="can">Upvote and downvote comments</li>
</ul>
</div>
</div>
</div>
</div>
</soci-route>
<soci-route class="admin-page" id="admin-forgot-password" path="/admin/forgot-password">
<div class="content">
<div class="loading-block" load-order="primary">
<h1>We all forget sometimes <3</h1>
<p>Enter your email below. If it exists, we'll send you an email with a password reset link.</p><br>
</div>
<div class="loading-block" load-order="secondary">
<input type="text" placeholder="email">
<soci-button async>submit</soci-button>
</div>
</div>
<script>lazyload('/pages/admin/forgot-password.js', document.currentScript.closest('soci-route'))</script>
</soci-route>
<soci-route class="admin-page" id="admin-change-forgotten-password" path="/admin/change-forgotten-password">
<div class="content">
<div class="loading-block" load-order="primary">
<h1>Change forgotten password</h1>
<p>Enter your new password below. This link expires one hour after generation.</p><br>
</div>
<div class="loading-block" load-order="secondary">
<form>
<soci-password name="newPassword" placeholder="New password"></soci-password>
<soci-password name="confirmPassword" match="newPassword" placeholder="Confirm new password"></soci-password>
<soci-button async>submit</soci-button>
</form>
</div>
<div class="success" load-order="primary">
<h1>Password changed successfully</h1>
<p>Please use the sidebar to log in.</p>
</div>
</div>
<script>lazyload('/pages/admin/change-forgotten-password.js', document.currentScript.closest('soci-route'))</script>
</soci-route>
<soci-route class="admin-page" id="admin-mod-tools" path="/admin/mod-tools"></soci-route>
<soci-route class="admin-page" id="admin-settings" path="/admin/settings">
<div class="container" id="admin-settings-container">
<script src="/pages/admin/settings.js"></script>
<soci-modal title="Image too small" id="avatar-size-modal">
<div class="modal-body">
<p>Avatars must be a minimum of 240px on both sides.</p>
</div>
</soci-modal>
<div class="blocks">
<div class="block avatar" load-order="primary">
<h2>Avatar</h2>
<soci-avatar-uploader></soci-avatar-uploader>
</div>
<div class="block description" load-order="secondary">
<h2>Description</h2>
<soci-input placeholder="Enter description"></soci-input>
<div class="actions">
<soci-button async>submit</soci-button>
<soci-button subtle>cancel</soci-button>
</div>
</div>
<div class="block password" load-order="tertiary">
<h2>Change Password</h2>
<form>
<soci-password name="oldPassword" placeholder="Old password"></soci-password>
<soci-password name="newPassword" placeholder="New password"></soci-password>
<soci-password name="confirmPassword" match="newPassword" placeholder="Confirm new password"></soci-password>
<div class="actions">
<soci-button async>submit</soci-button>
<soci-button subtle>cancel</soci-button>
</div>
</form>
</div>
</div>
</div>
</soci-route>
<soci-route id="notifications" path="/notifications">
<div class="content">
<header load-order="primary">
<div class="types">
<div class="type" selected>All notifications</div>
<div class="type">Unread</div>
</div>
</header>
<div class="inner-content" load-order="secondary"></div>
</div>
<script src="/pages/notifications.js"></script>
</soci-route>
<soci-route id="user" test="both" path="^/user/" fresh>
<div class="sidebar" load-order="primary">
<div class="hero">
<soci-user size="large" avatar-only></soci-user>
<soci-user size="large" username-only></soci-user>
<soci-quill-view class="description" value="description"></soci-quill-view>
</div>
<div class="self-actions">
<soci-link href="/admin/settings">
<soci-button subtle>
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 2.5L1.5 8C0.767767 8.73223 0.767767 9.76777 1.5 10.5C2.23223 11.2322 3.26777 11.2322 4 10.5L9.5 5L10.75 1.25L7 2.5Z" stroke="currentColor"></path>
<path d="M2 7.5L4.5 10" stroke="currentColor"></path>
<path d="M7 2.5L9.5 5" stroke="currentColor"></path>
</svg>edit profile
</soci-button>
</soci-link>
<soci-link href="/admin/financials">
<soci-button subtle>
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.5 2.9V4.5H2.5V2.9C2.5 1.57452 3.61929 0.5 5 0.5C6.38071 0.5 7.5 1.57452 7.5 2.9Z" stroke="currentColor"></path>
<rect x="0.5" y="4.5" width="9" height="7" rx="1.5" stroke="currentColor"></rect>
<circle cx="5" cy="8" r="0.75" fill="currentColor"></circle>
</svg>view financials
</soci-button>
</soci-link>
</div>
<div class="stats">
<div class="stat">
<label>Posts</label>
<div class="value" value="posts"></div>
</div>
<div class="stat">
<label>Post Karma</label>
<div class="value" value="karma"></div>
</div>
<div class="stat">
<label>Comments</label>
<div class="value" value="comments"></div>
</div>
<div class="stat">
<label>Comment Karma</label>
<div class="value" value="comment_karma"></div>
</div>
</div>
<div class="admin-actions">
<soci-button class="nuke-user" danger async onclick="user.nuke()"><strong>nuke user</strong></soci-button>
<soci-button danger>ban user</soci-button>
</div>
</div>
<div class="content" load-order="secondary">
<header>
<div class="sorts">
<div class="sort" selected>Top</div>
<div class="sort">New</div>
</div>
<div class="types">
<div class="type" selected>Posts</div>
<div class="type">Comments</div>
</div>
</header>
<div class="inner-content">
<soci-post-list></soci-post-list>
</div>
</div>
<script src="/pages/user.js"></script>
</soci-route>
<soci-route id="submit" path="/submit">
<div id="submit-container">
<form action="#">
<div class="load-group centered-container" id="submit-header" load-order="primary">
<input type="text" name="title" placeholder="Enter title" required>
<soci-url-input name="url" required tabindex="0"></soci-url-input>
</div>
<div class="load-group" load-order="secondary">
<soci-tab-group>
<div class="centered-container">
<soci-tab name="Link" default>
<soci-link-input name="link"></soci-link-input>
<div class="preview">
<h2>Preview </h2>
<soci-post-li score="0" time="now">
<soci-user self slot="user"></soci-user>
<soci-tag-group slot="tags"></soci-tag-group>
</soci-post-li>
</div>
<h2>Description</h2>
<soci-input placeholder="Enter description" name="description"></soci-input>
</soci-tab>
<soci-tab name="Image">
<soci-image-uploader></soci-image-uploader>
<h2>Description</h2>
<soci-input placeholder="Enter description" name="description"></soci-input>
</soci-tab>
<soci-tab name="Video">
<soci-video-uploader></soci-video-uploader>
<h2>Description</h2>
<soci-input placeholder="Enter description" name="description"></soci-input>
</soci-tab>
<!--soci-tab(name="Audio")
soci-file-drop(type="audio")
h2 Description
soci-input(placeholder="Enter description" name="description")
-->
<soci-tab name="Blog">
<soci-input placeholder="Write your best" name="description"></soci-input>
</soci-tab>
</div>
<soci-tab name="HTML">
<soci-html-uploader></soci-html-uploader>
<p style="max-width: 920px; margin: 12px auto;">[alpha] This will allow you to upload html to the site as a post. The content is presented in an iframe. If you want the iframe to be sized according to the frontend page, include this script in your html: <a href="https://html.non.io/nonio-embedded-page.js">https://html.non.io/nonio-embedded-page.js</a>. Feel free to test it, but note that I will be deleting posts that are simple alert tests.</p>
<div class="centered-container">
<h2>Description</h2>
<soci-input placeholder="Enter description" name="description"></soci-input>
</div>
</soci-tab>
</soci-tab-group>
</div>
<div class="load-group centered-container" id="submit-actions" load-order="tertiary">
<soci-button async>submit</soci-button>
</div>
</form>
</div>
<script>
lazyload('/pages/submit.js', document.currentScript.closest('soci-route'))
</script>
</soci-route>
<soci-route class="admin-page" id="admin-financials" path="/admin/financials">
<div class="container" id="admin-financials-container">
<script src="/pages/admin/financials.js"></script>
<div class="header" load-order="primary">
<h1>Your Financials </h1>
<soci-banner type="info" title="Auto-withdrawal enabled" style="display: none;">
Funds in your wallet will auto-deposit into your Stripe Connect account at the end of each month. </soci-banner>
<p>There are currently two ways to withdrawal money from your wallet. You can set up Stripe Connect to automatically deposit funds into your bank account at the end of each month, or you can email me at [email protected] to manually withdrawal funds. I'll try and support whatever platforms I can to send money. </p>
<!--a(href="#" target="_blank")soci-button.dashboard-link View Stripe Dashboard <svg style="margin-left: 2px" width="9" height="9" viewBox="0 0 9 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 1.5H0.5V8.5H7.5V5.5M4 5L8.5 0.5M8.5 0.5H5.5M8.5 0.5V3.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>
-->
</div>
<div class="amounts" load-order="secondary">
<div class="blocks">
<div class="block" id="financial-wallet">
<h2>Wallet</h2>
<h1 class="cash">$</h1>
<div class="button-group"><a href="#" target="_blank">
<soci-button>View Stripe Dashboard <svg style="margin-left: 2px" width="9" height="9" viewBox="0 0 9 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 1.5H0.5V8.5H7.5V5.5M4 5L8.5 0.5M8.5 0.5H5.5M8.5 0.5V3.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg></soci-button></a>
<!-- soci-button(subtle onclick="adminFinancials.openWithdrawalModal()") Withdrawal-->
<!-- soci-button(danger onclick="adminFinancials.showChangeSubscription()") Disable auto-withdrawal-->
</div>
</div>
<div class="block" id="financial-subscription">
<h2>Monthly Subscription</h2>
<h1 class="cash">$ <span>/mo</span></h1>
<div class="button-group">
<!-- soci-button(subtle onclick="adminFinancials.showChangeSubscription()") Change Subscription Amount-->
<!--soci-button.cancel-sub-button(danger onclick="adminFinancials.cancelSubscription()") Cancel Subscription-->
</div>
</div>
</div>
</div>
<div class="ledger" load-order="tertiary">
<hr>
<soci-ledger></soci-ledger>
</div>
<soci-modal title="Manual Withdrawal" id="withdrawal-modal">
<div class="modal-body">
<p>This is a manual process right now and may take up to 5 business days to complete. The good news is I ( <soci-user name="jjcm"></soci-user> ) will aim to support pretty much any type of withdrawal you need. List the platform you'd prefer and the details of how to send the cash below.</p>
<p>Here are some of the ways I can transfer:</p>
<table>
<tr>
<th>USA</th>
<th>AUS</th>
<th>International</th>
</tr>
<tr>
<td>Venmo<br>Cash App<br>Paypal</td>
<td>PayID</td>
<td>
Bitcoin<br>Ethereum</td>
</tr>
</table>
<p>If you need another way, just ask and I'll see what we can do.</p>
<soci-input placeholder="Enter platform and details here"></soci-input>
<soci-button async onclick="adminFinancials.requestManualWithdrawal()">Request Withdrawal</soci-button>
</div>
</soci-modal>
</div>
</soci-route>
<soci-route id="about" path="/about">
<div class="content info-page">
<div class="loading-block" load-order="primary">
<h1>About Non.io</h1>
<p>Non.io is a personal project of Jacob Miller (aka jjcm or @pwnies on Twitter). The purpose is to distribute a portion of your subscription to every post you upvote (split evenly between upvotes at the end of each month).</p>
<h2>Open Source </h2>
<p>The site is currently open source. You can find the repos at <a href="https://github.com/jjcm/nonio">github.com/jjcm/nonio</a>. Bug reports can be sent to the issue tracker in that project. </p>
<h2>Other Info</h2>
<soci-link href="about/privacy-policy"><a>Privacy policy</a></soci-link><br/>
<soci-link href="about/contact"><a>Contact us</a></soci-link>
</div>
</div>
</soci-route>
<soci-route id="privacy-policy" path="/about/privacy-policy">
<div class="content info-page">
<div class="loading-block" load-order="primary">
<h1>Privacy Policy</h1>
<p>Non.io collects and stores the information provided upon signup. We also store standard nginx logs, which include IP address and browser information. We also store avatars and user submitted content. None of this information is sold or shared with third parties.</p>
<h2>Billing Information</h2>
<p>All billing information is stored by Stripe. Nonio stores cryptogrpahic hashes of your Stripe subscription and your Stripe account ID. Nonio does not store any credit card information or addresses on file. For personalized payouts not using Stripe, additional contact information may be stored. </p>
<h2>Passwords</h2>
<p>Nonio stores a cryptographic hash of your password using the bcrypt algorithm. We do not store passwords in plain text.</p>
<h2>Tracking</h2>
<p>Nonio uses server side logging. We currently do not use frontend tracking, nor is any of your information sent to third parties (with the exception of Stripe for financial data). We don't sell user data, nor do we use ad targetting or tracking.</p>
<h2>Account Deletion</h2>
<p>Curently there's no account deletion, not by design, I just haven't gotten to it yet. If you want to delete your account, ping me at [email protected] or at @pwnies on Twiter. Account deletion will be best effort when done manually, with this as a goal: </p>
<h3>What will be removed:</h3>
<ul>
<li>User info (email, password, etc)</li>
<li>Avatar</li>
<li>Submitted posts and related media</li>
<li>Stripe metadata</li>
</ul>
<h3>What won't be removed </h3>
<ul>
<li>Server logs</li>
<li>Comment content. Comments will be set to "abandoned" and will be disassociated from your username, but the content will remain to preserve discussion.</li>
</ul>
<h2>Location of Data </h2>
<p>Main servers are currently located in the United States. Elements of the site may be cached by edge servers around the world. </p>
<h2>Guarantees</h2>
<p>Non.io makes no guarantees regarding uptime, payouts, accuracy of monetary transfers, or timeliness. We are very much in startup phase. </p>
<h2>Point of Contact</h2>
<p>If you need to contact us for any reason, ping Jacob at [email protected] or at @pwnies on Twitter.</p>
</div>
</div>
</soci-route>
<soci-route id="contact" path="/about/contact">
<div class="content info-page">
<div class="loading-block" load-order="primary">
<h1>Contact</h1>
<p>You can get ahold of Jacob (the site owner) the following ways:</p>
<ul>
<li>Email: <a href="mailto:[email protected]">[email protected]</a></li>
<li>Twiter: <a href="https://twitter.com/pwnies">@pwnies</a></li>
<li>Nonio: <soci-link href="/user/jjcm"><a>jjcm</a></soci-link></li>
</ul>
</div>
</div>
</soci-route>
<soci-route id="post" default fresh>
<script src="/pages/post.js"></script>
<soci-post>
<soci-tag-group slot="tags" size="large"></soci-tag-group>
<soci-comment-list slot="comments"></soci-comment-list>
</soci-post>
</soci-route>
</div>
<script>lazyload('/lib/quill.min.js')</script>
</html>