cleanup
This commit is contained in:
parent
cd0380f697
commit
3dea44dacf
12 changed files with 170 additions and 174 deletions
|
@ -1,28 +1,24 @@
|
|||
<form enctype='multipart/form-data' method='POST' action='/api/form/comment'>
|
||||
<h1 class='content-header'>Comments</h1>
|
||||
<div class='form-message'></div>
|
||||
<input name='targetId' hidden value='<%= id %>'>
|
||||
<input name='targetType' hidden value='<%= route %>'>
|
||||
<textarea class='form-input' name='content'></textarea>
|
||||
<br />
|
||||
<input class='form-input' type='submit'>
|
||||
<%- include('form_bare.ejs', { data: [ { label: "" , type: "text" , name: "targetId" , hidden: id }, { label: "" ,
|
||||
type: "text" , name: "targetType" , hidden: route }, { label: "Your thoughts..." , type: "textarea" ,
|
||||
name: "content" , hidden: route }, ], 'route' : '/api/form/comment' , 'title' : 'Comments' , }) -%>
|
||||
|
||||
<% for (let comment of comments) { %>
|
||||
<div class='comment'>
|
||||
<div class='avatar'>
|
||||
<img src='/pfp/<%= comment.username %>.png' class='avatar-img'>
|
||||
<div>
|
||||
<div><b>
|
||||
<a class='link' href='/client/user?id=<%= comment.username %>'>
|
||||
<%= comment.username %>
|
||||
</a>
|
||||
</b></div>
|
||||
<div><b>
|
||||
<%= (new Date(comment.date)+'').split(/(GMT|UTC)/g)[0] %>
|
||||
</b></div>
|
||||
<pre><%= comment.content %></pre>
|
||||
<div class="content">
|
||||
<% for (let comment of comments) { %>
|
||||
<div class='comment'>
|
||||
<div class='avatar'>
|
||||
<img src='/pfp/<%= comment.username %>.png' class='avatar-img'>
|
||||
<div>
|
||||
<div><b>
|
||||
<a class='link' href='/client/user?id=<%= comment.username %>'>
|
||||
<%= comment.username %>
|
||||
</a>
|
||||
</b></div>
|
||||
<div><b>
|
||||
<%= (new Date(comment.date)+'').split(/(GMT|UTC)/g)[0] %>
|
||||
</b></div>
|
||||
<pre><%= comment.content %></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
</form>
|
||||
<% } %>
|
||||
</div>
|
|
@ -1,2 +1,3 @@
|
|||
</body>
|
||||
|
||||
</html>
|
|
@ -1,19 +1,3 @@
|
|||
<%- include('header.ejs') -%>
|
||||
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
||||
<h1>
|
||||
<%= title %>
|
||||
</h1>
|
||||
<div class='form-message'></div>
|
||||
<% for (let elem of data) { %>
|
||||
<span class='form-key'>
|
||||
<%= elem.label %>
|
||||
</span>
|
||||
<% if (elem.type=='textarea' ) { %>
|
||||
<textarea class='form-input' name='<%= elem.name %>'></textarea>
|
||||
<% } else { %>
|
||||
<input class='form-input' type='<%= elem.type %>' name='<%= elem.name %>'>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<input class='form-input' type='Submit' name='Submit'>
|
||||
</form>
|
||||
<%- include('footer.ejs') -%>
|
||||
<%- include('form_bare.ejs') -%>
|
||||
<%- include('footer.ejs') -%>
|
18
views/form_bare.ejs
Normal file
18
views/form_bare.ejs
Normal file
|
@ -0,0 +1,18 @@
|
|||
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
||||
<h1 class='form-heading'>
|
||||
<%= title %>
|
||||
</h1>
|
||||
<div class='form-message'></div>
|
||||
<% for (let elem of data) { %>
|
||||
<span class='form-key'>
|
||||
<%= elem.label %>
|
||||
</span>
|
||||
<% if (elem.type=='textarea' ) { %>
|
||||
<textarea class='form-input' name='<%= elem.name %>'></textarea>
|
||||
<% } else { %>
|
||||
<input class='form-input' type='<%= elem.type %>' name='<%= elem.name %>' value='<%= elem.hidden %>'
|
||||
<%=elem.hidden ? 'hidden ' : '' %>>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<input class='form-button' type='Submit' name='Submit'>
|
||||
</form>
|
|
@ -1,12 +1,21 @@
|
|||
<ol>
|
||||
<li>Respect users and communities. Bigotry, bullying, and hacking are prohibited.</li>
|
||||
<li>Contact staff via Discord as needed.</li>
|
||||
<li>Stay within the law of the United States.</li>
|
||||
<li>Don't exploit or clog Xuyezo services, regardless of utility value. Feature requests and glitches
|
||||
can be reported on <a class='link' href='https://discord.gg/wZ3mg58JMT'>Discord</a> or <a class='link'
|
||||
href='https://git.xuyezo.net/explore/repos'>Git</a>.</li>
|
||||
<li>Respect other users' creative work. Inspiration is allowed, although re-used assets must be
|
||||
properly credited.</li>
|
||||
<li>Don't post sexually motivated content.</li>
|
||||
<li>The moderation isn't responsible for behavior on other instances.</li>
|
||||
</ol>
|
||||
<%- include('header.ejs') -%>
|
||||
<div class="content">
|
||||
<h1 class='content-header'>Terms of Use</h1>
|
||||
<h2>1. Respect</h2>
|
||||
<p>While BiglyChat encourages good-faith discussion, some topics put the site's community at harm:</p>
|
||||
<ol>
|
||||
<li>Repeated personal attacks</li>
|
||||
<li>Not safe for work content</li>
|
||||
<li>Exposing non-public personal information</li>
|
||||
<li>Illegal activity in the United States</li>
|
||||
</ol>
|
||||
<h2>2. Communication</h2>
|
||||
<p>The community is held responsible for contacting staff via Discord. This functionality is used for reporting
|
||||
misbehavior and communicating suggestions or bug fixes.</p>
|
||||
<h2>3. Exploits</h2>
|
||||
<p>Don't exploit or clog Xuyezo services, regardless of potential utility or publicity.</p>
|
||||
<h2>4. Limitations</h2>
|
||||
<p>The moderation isn't responsible for behavior on other instances of Xuyezo software.</p>
|
||||
<!-- todo: guidelines for project lifecycle + stop derv killing everything-->
|
||||
</div>
|
||||
<%- include('footer.ejs') -%>
|
|
@ -7,7 +7,7 @@
|
|||
<meta name="description" content="Collab on videos... make creative animations... and more!">
|
||||
<script src='/static/main.js'></script>
|
||||
<link rel='stylesheet' href='/static/main.css'>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -2,25 +2,23 @@
|
|||
<div class='banner'><img class='banner-background' src='/static/img/bg.svg'>
|
||||
<div class='banner-content'>
|
||||
<h1>BiglyChat</h1>
|
||||
<p>BiglyChat is a niche community for broadcasting videos to your fanbase, with integrated games and active developers.</p>
|
||||
<p>BiglyChat is a niche community for broadcasting videos to your fanbase, with integrated games and active
|
||||
developers.</p>
|
||||
<h2>Community</h2>
|
||||
<%if (username=='!nobody' ) { %>
|
||||
<a class='form-button' href="/client/register">Join the Community</a>
|
||||
<br />
|
||||
<% } %>
|
||||
<a class='form-button' href="/client/tou">Terms of Use</a>
|
||||
<a class='form-button' href="https://discord.gg/wZ3mg58JMT">Discord Server</a>
|
||||
<a class='form-button' href="https://git.xuyezo.net/Zuxxied/bigly-chat">Developer Portal</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class='content'>
|
||||
<details>
|
||||
<summary><b>Terms of Use</b></summary>
|
||||
<%- include ('guidelines.ejs') -%>
|
||||
</details>
|
||||
</div>
|
||||
<h1 class='content-header'>Follow Feed</h1>
|
||||
<div class=' videos'>
|
||||
<%- include('videos.ejs', {videos: videosFollow}) -%>
|
||||
</div>
|
||||
|
||||
<h1 class='content-header'>Recent Videos</h1>
|
||||
<div class=' videos'>
|
||||
<%- include('videos.ejs') -%>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<%- include('header.ejs') -%>
|
||||
<div class='video-wrapper'>
|
||||
<video src='/videos/<%= videoData.id %>.webm'></video>
|
||||
<video class='player' src='/videos/<%= videoData.id %>.webm'></video>
|
||||
<div class="progressbar">
|
||||
<div></div>
|
||||
<div class="progressbar-div"></div>
|
||||
</div>
|
||||
<div class='controls'>
|
||||
<div class='play'><img src='/static/img/play.svg' class='dark'></div>
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
<img src='/pfp/<%= id %>.png' class='avatar-img'>
|
||||
<div>
|
||||
<b>@<%= id %></b>
|
||||
<input class='form-input' type='submit' value="Follow">
|
||||
<input class='form-button' type='submit' value="Follow">
|
||||
</div>
|
||||
</div>
|
||||
<input name='target' hidden value="<%= id %>">
|
||||
|
||||
|
||||
<pre class='form-input'><%= user[0] ? user[0].bio : 'This user has not set a bio.' %></pre>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue