custom page changes, and increase file deletion schedule

merge-requests/208/head
fatchan 5 years ago
parent 5863428990
commit cf3156fa4e
  1. 1
      gulp/res/css/style.css
  2. 2
      schedules.js
  3. 157
      views/custompages/faq.pug
  4. 6
      views/custompages/rules.pug
  5. 2
      views/includes/footer.pug
  6. 2
      views/pages/banners.pug
  7. 2
      views/pages/board.pug
  8. 2
      views/pages/catalog.pug
  9. 6
      views/pages/news.pug
  10. 2
      views/pages/thread.pug

@ -174,6 +174,7 @@ pre {
padding: 10px;
width: max-content;
width: -moz-max-content;
margin-bottom: 5px;
}
a, a:visited, a .post-name {

@ -81,6 +81,6 @@ async function deleteCaptchas() {
} catch (e) {
console.error(e);
}
}, msTime.minute*5);
}, msTime.day);
})();

@ -6,46 +6,63 @@ block head
block content
h1.board-title FAQ
.table-container.flex-center
table.table-body
tr.table-head
include ../includes/stickynav.pug
.table-container.flex-center.mv-5
.anchor
table
tr
th Frequently Asked Questions
tr.table-row
tr
td.post-message
b General (under construction)
b General
ul.mv-0
li What is an imageboard?
li What are the rules?
b Making posts (under construction)
li: a(href='#whats-an-imageboard') What is an imageboard?
li: a(href='/rules.html') What are the rules?
b Making posts
ul.mv-0
li: a(href='#name-formatting') How do I use the name field when making a post?
//li: a(href='#how-to-post') How do I make a post?
li: a(href='#name-formatting') How do names, tripcodes and capcodes work?
li: a(href='#post-styling') What kind of styling options are available when making a post?
b Board ownership (under construction)
b Boards, users & permissions
ul.mv-0
li How do I make my own board?
li How do I assign moderators?
.anchor#name-formatting
.table-container.flex-center
table.table-body
tr.table-head
li: a(href='#make-a-board') How do I make my own board?
li: a(href='#staff-and-permissions') How do staff, users and permissions work?
.table-container.flex-center.mv-5
.anchor#whats-an-imageboard
table
tr
th: a(href='#whats-an-imageboard') What is an imageboard?
tr
td
p
| An imageboard is a type of discussion board where users share images and text about various topics.
p
| The primary difference between imageboards and traditional forums is that anybody can make a post without registering
| an account or providing any personal information. This lowers the barrier to entry, protects user identities and focuses on what is said, rather than who says it.
.table-container.flex-center.mv-5
.anchor#name-formatting
table
tr
th: a(href='#name-formatting') Name formatting
tr.table-row
tr
td.post-message
p When posting, you can format the name field to include a name, tripcode , capcode, any combination of the three including leaving the field completely blank. Instead of a blank name, "Anonymous" is used, however this depends on board-specific configuration. The optional components are explained below.
b Format
p
| Names should be formatted as
span.mono [Name][##Tripcode][## Capcode]
| where [ ] indicate optional components. Tripcodes and capcodes may not contain "##" and the whitespace before capcodes is significant.
| Names should be input like:
input(spellcheck='false' type='text' value='Name##Tripcode## Capcode')
| . Tripcode and capcode are optional components. Tripcodes and capcodes may not contain "##" and the whitespace before capcodes is significant.
p Valid examples:
ol.mv-0
li Name
li Name##tripcode
li Name## Board Owner
li Name##tripcode## Board Owner
p For example, number 5 would look like so in a post:
li ##tripcode## Board Owner
li ##tripcode
li ## Board owner
p From the examples, you can see that all components can be used in combination or independently. In a post number 4 would look like:
-
const examplePost = {
"date" : new Date("2019-08-02T09:48:44.180Z"),
@ -68,89 +85,87 @@ block content
"postId" : 123
}
+post(examplePost)
p The name appears in the top left, followed by the tripcode with a !! prefix, then the capcode with a ## prefix. The colours may vary between themes but are generally distinct from eachother
p The name appears bold in the top left, followed by the tripcode in regular weight with a !! prefix, then the capcode in a different color, bold and with a ## prefix. The colours may vary between themes but are generally distinct from eachother
b Name
p The name is simply what name you want to be shown alongside your post. Other users can post with the same name so there is nothing preventing impersonation. This is not related to your username (for registered users).
b Tripcode
p A tripcode is a password of sorts, which users can provide in the tripcode component of their name. This tripcode is used in conjunction with a server-known secret to generate the unique* tripcode portion of the name. Users can use the same tripcode, however with a long, secure, unique tripcode, it can be used as a form of identity between posts as it is unlikely that another user will find a different tripcode that generates the same output. It is important that you keep tripcodes secret if you use them for some form of identity. A compromised tripcode can be used for impersonation and cannot be revoked in any way.
p A tripcode is a password of sorts, which users can provide in the tripcode component of their name. This tripcode is used in conjunction with a server-known secret to generate a unique* tripcode portion of the name. Long, unique tripcodes can be used as a form of identity. It is important that you keep tripcodes secret if you use them for some form of identity. A compromised tripcode can be used for impersonation and cannot be revoked in any way.
b Capcode
p A capcode is a component of the name field only available to authenticated users. This includes admins, global staff, board owners and board moderators. The capcoded string will be prefixed with the users role so board staff can make an authoritative post.
p A capcode is a component of the name field only available to authenticated users. This includes admins, global staff, board owners and board moderators. The capcoded string will be prefixed with the users role so board staff can make an authoritative post and prove their staff status.
.anchor#post-styling
.table-container.flex-center
table.table-body
tr.table-head
.table-container.flex-center.mv-5
.anchor#post-styling
table
tr
th: a(href='#post-styling') Post styling
tr.table-row
tr
td.post-message
p When posting, you can use certain characters to style your post with bold, italics, code blocks, quotes, etc. The formatting is as follows:
b Greentext
div >greentext →
span.greentext >greentext
br
b Pinktext
div <pinktext →
span.pinktext <pinktext
br
b Title
div ==title== →
span.title title
br
b Bold
div ""bold"" →
strong bold
br
b Underline
div __underline__ →
span.underline underline
br
b Strikethrough
div ~~strikethrough~~ →
span.strikethrough strikethrough
br
b Italic
div **italic** →
em italic
br
b Detected
div (((detected))) →
span.detected (((detected)))
br
b Code Block
pre.no-m-p
| ```
| var foo = 'bar';
| code block
| ```
span.code var foo = 'bar';
br
b Inline monospace
div `monospace` →
span.mono monospace
br
b Hyperlinking
span.code code block
div `inline monospace` →
span.mono inline monospace
b Hyperlinks
div https://example.com → #[a(href='https://example.com') https://example.com]
br
b Quotes
div >>123 → #[a(class="quote" href="#!") >>123]
br
b Cross Board Quotes
div >>>/b/ → #[a(class="quote" href="#!") >>>/b/]
div >>>/b/123 → #[a(class="quote" href="#!") >>>/b/123]
br
.table-container.flex-center.mv-5
.anchor#make-a-board
table
tr
th: a(href='#make-a-board') How do I make my own board?
tr
td
p
a(href='/register.html') Register
| an account, then
a(href='/create.html') create a board
|. Please avoid making excessive amounts of boards, duplicate or boards similar to an existing one unless you expect that many users will migrate to the new board for whatever reason e.g. tyrannical moderation.
.table-container.flex-center.mv-5
.anchor#staff-and-permissions
table
tr
th: a(href='#staff-and-permissions') How do staff, users and permissions work?
tr
td
p
| There are 5 levels of permissions on the site:
ol(start='0')
li Admin: All permissions
li Global staff: All permissions excluding news updates
li Board owner: Permissions to settings, reports, banners and bans and some post actions
li Board moderator: Permissions to reports, bans and some post actions
li Regular user: Permissions to some post actions
| Post actions refers to reporting, deleting, stickying, etc. More details on these permissions:
ol(start='0')
li Admin: All actions
li Global staff: All below, plus delete files, delete-by-ip-global and global ban
li Board owner: Same as board moderator
li Board moderator: All below, plus ban, delete-by-ip, sticky/sage/lock/cycle
li Regular user: Reports, and post spoiler/delete/unlink if the board has them enabled

@ -9,4 +9,8 @@ block content
table.table-body
tr.table-row
td
p No content should be posted or linked to that is illegal in the United States of America.
ul
li Do not post or link to any content that violates laws of the United States of America
li Do not spam, flood or perform any actions to an extent that negatively impacts the usual function of the website/server
li Do not post discord or other social media links or invite codes intended to replace the site or create discussion outside the site. That's how you lose your anonymity and kill chans
li Report technical issues on #[a(href='/t/index.html') >>>/t/], and email security issues to tom-69420-me (replace - with @ .)

@ -1,4 +1,4 @@
small.footer
small.footer#bottom
| -
a(href='/rules.html') rules
| -

@ -22,7 +22,7 @@ block content
p Board has no custom banners.
include ../includes/stickynav.pug
hr(size=1)
nav.pages#bottom
nav.pages
a(href=`/${board._id}/index.html`) [Index]
|
a(href=`/${board._id}/catalog.html`) [Catalog]

@ -27,7 +27,7 @@ block content
for post in thread.replies
+post(post, true)
hr(size=1)
nav.pages#bottom
nav.pages
include ../includes/pages.pug
a(href=`/${board._id}/catalog.html`) [Catalog]
|

@ -21,7 +21,7 @@ block content
for thread, i in threads
+catalogtile(board, thread, i+1)
hr(size=1)
nav.pages#bottom
nav.pages
a(href=`/${board._id}/index.html`) [Index]
|
a.bold(href=`/${board._id}/catalog.html`) [Catalog]

@ -8,5 +8,7 @@ block content
h1.board-title News
if news.length === 0
p.text-center No news.
each post in news
+newspost(post)
else
include ../includes/stickynav.pug
each post in news
+newspost(post)

@ -35,7 +35,7 @@ block content
for post in thread.replies
+post(post)
hr(size=1)
nav.pages#bottom
nav.pages
a(href=`/${board._id}/index.html`) [Index]
|
a(href=`/${board._id}/catalog.html`) [Catalog]

Loading…
Cancel
Save