Skip to content

Commit 32ec2b5

Browse files
committed
The biggest update for the non-beta site
1 parent 4a70e05 commit 32ec2b5

262 files changed

Lines changed: 25713 additions & 12092 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codesandbox/tasks.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// These tasks will run in order when initializing your CodeSandbox project.
3+
"setupTasks": [
4+
{
5+
"name": "Installing Dependencies",
6+
"command": "yarn install --ignore-engines"
7+
}
8+
],
9+
10+
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
11+
"tasks": {
12+
"build": {
13+
"name": "build",
14+
"command": "yarn build"
15+
},
16+
"development": {
17+
"name": "Development server",
18+
"command": "yarn development",
19+
"runAtStart": true,
20+
"preview": {
21+
"port": 3000
22+
}
23+
}
24+
}
25+
}

.github/workflows/build_site.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build Random Rants +
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
18+
strategy:
19+
matrix:
20+
node-version: [16.x]
21+
22+
steps:
23+
- name: Checkout main branch 🛎️
24+
uses: actions/checkout@v4
25+
26+
- name: Use Node.js ${{ matrix.node-version }} ⚙️
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
- name: Install and Build Frontend 🏗️
32+
run: |
33+
npm install
34+
npm run build
35+
36+
- name: Commit and Push to Deploy Branch 🚀
37+
run: |
38+
git config --global user.name 'github-actions[bot]'
39+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
40+
git checkout -B deploy
41+
git add .
42+
git add -f public
43+
git commit -m "${{ github.sha }} [Run webpack for commit]" || echo "No changes to commit"
44+
git push -f origin deploy

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
.git
77
.data
88
.config
9-
node_modules
10-
public
11-
counters
9+
package-lock.json
10+
yarn.lock
11+
goorm.manifest
12+
arkain.manifest
13+
node_modules/
14+
public/
15+
counters/
16+
crashlogs/
17+
usermedia/

.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ignore_dirs":["node_modules",".next"]}

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
[![Random Rants +](./wpstatic/images/randomrants-plus.svg)](https://randomrants-plus.onrender.com)
22

3+
### Temporary repostory notice
4+
5+
Lost the other github account, so have to wait until I get access to it again.
6+
This _will_ be deleted and transfered to the original when I get it back, so don't try to use this as an permalink.
7+
38
## What is Random Rants +?
49

510
Random Rants + is the next generation of Random Rants,
@@ -25,7 +30,7 @@ I recommend using Node.JS 16.x, then either `git clone https://github.com/Random
2530

2631
In the directory of package.json, run `npm install`. After that, use `npm run build` to build the website, and use `npm run start` to start up the server.
2732

28-
If you now want to auto reload when you edit something: Then instead of `npm run start`, use `npm run dev`. Note this works for both building and server code.
33+
For auto reload: Then instead of `npm run start`, use `npm run development`. Note this works for both building and server code.
2934

3035
Go to `http://localhost:3000/` to see the functional Random Rants + site in action.
3136

encrypt/base64.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ function btoa(val) {
44
function atob(val) {
55
return Buffer.from(val, 'base64').toString('ascii');
66
}
7-
module.exports = {btoa,atob};
7+
module.exports = {btoa,atob};

encrypt/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,4 @@ accountEncrypt.decrypt = function (string) {
8989
};
9090

9191
module.exports = accountEncrypt;
92+

errors/400.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<title>400 Invalid request - You sent invalid data</title>
5+
</head>
6+
<body>
7+
<style>
8+
body {
9+
background: #b8b8b8;
10+
color: black;
11+
font-family: arial;
12+
}
13+
14+
.centeredDialog {
15+
position: fixed;
16+
top: 50%;
17+
left: 50%;
18+
transform: translate(-50%, -50%);
19+
background: #ffffff;
20+
border-radius: 10px;
21+
box-shadow: 0 0px 30px black;
22+
padding: 15px 15px;
23+
}
24+
25+
.sep1 {
26+
border-top: 3px dashed #696969;
27+
padding: 5px 20px;
28+
outline: none;
29+
}
30+
31+
.header {
32+
font-weight: bold;
33+
font-size: 35px;
34+
padding: 3px 3px;
35+
}
36+
37+
.small {
38+
font-size: 10px;
39+
}
40+
41+
a {
42+
font-family: arial;
43+
color: #4287f5;
44+
}
45+
</style>
46+
47+
<div class="centeredDialog">
48+
<span class="header">400 Invalid request</span><br />
49+
<span class="small">(You sent invalid data)</span>
50+
<div class="sep1"></div>
51+
The server is saying "You are trippin on what you're sending"<br />
52+
Means, you sent invalid data to the server, write it in a format that
53+
works and it does right. <br />
54+
<a href="./">Click here to go back to something that works</a>
55+
</div>
56+
</body>
57+
</html>

errors/403.html

Lines changed: 50 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,57 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<title>403 Forbidden — No Entry</title>
6-
<style>
7-
:root {
8-
--bg-color: #b8b8b8;
9-
--main-font: arial, sans-serif;
10-
--main-text-color: black;
11-
--button-bg-color: #e0e0e0;
12-
--button-text-color: #696969;
13-
--button-hover-bg-color: #f2f2f2;
14-
--border-radius: 3px;
15-
--connection-status-error-color: #9e0000;
16-
}
3+
<head>
4+
<title>403 Forbidden - No Entry</title>
5+
</head>
6+
<body>
7+
<style>
8+
body {
9+
background: #b8b8b8;
10+
color: black;
11+
font-family: arial;
12+
}
1713

18-
body {
19-
background-color: var(--bg-color);
20-
font-family: var(--main-font);
21-
color: var(--main-text-color);
22-
margin: 0;
23-
height: 100vh;
24-
display: flex;
25-
justify-content: center;
26-
align-items: center;
27-
user-select: none;
28-
}
14+
.centeredDialog {
15+
position: fixed;
16+
top: 50%;
17+
left: 50%;
18+
transform: translate(-50%, -50%);
19+
background: #ffffff;
20+
border-radius: 10px;
21+
box-shadow: 0 0px 30px black;
22+
padding: 15px 15px;
23+
}
2924

30-
.container {
31-
background: var(--button-bg-color);
32-
border-radius: var(--border-radius);
33-
padding: 30px 40px;
34-
max-width: 420px;
35-
box-shadow: 0 0 15px rgba(0,0,0,0.1);
36-
text-align: center;
37-
}
25+
.sep1 {
26+
border-top: 3px dashed #696969;
27+
padding: 5px 20px;
28+
outline: none;
29+
}
3830

39-
h1 {
40-
margin: 0 0 12px 0;
41-
font-size: 36px;
42-
font-weight: 700;
43-
color: var(--connection-status-error-color);
44-
letter-spacing: 1px;
45-
}
31+
.header {
32+
font-weight: bold;
33+
font-size: 35px;
34+
padding: 3px 3px;
35+
}
4636

47-
p {
48-
margin: 0 0 16px 0;
49-
font-size: 17px;
50-
line-height: 1.4;
51-
color: #4a4a4a;
52-
}
37+
.small {
38+
font-size: 10px;
39+
}
5340

54-
.hint {
55-
font-style: italic;
56-
font-size: 14px;
57-
color: #696969;
58-
}
59-
</style>
60-
</head>
61-
<body>
62-
<div class="container">
63-
<h1>403 Forbidden</h1>
64-
<p>Uh-oh, you don’t have permission to see this.<br>Maybe try logging in, or just chill somewhere else for now.</p>
65-
<div class="hint">Access denied, no ranting here yet.</div>
66-
</div>
67-
</body>
41+
a {
42+
font-family: arial;
43+
color: #4287f5;
44+
}
45+
</style>
46+
47+
<div class="centeredDialog">
48+
<span class="header">403 Forbidden</span><br />
49+
<span class="small">(No entry)</span>
50+
<div class="sep1"></div>
51+
The server says "you aren't allowed here!"<br />
52+
Must mean you're trying to do something that isn't allowed, or you don't
53+
have permission to do that action. <br />
54+
<a href="./">Click here to go back to something that works</a>
55+
</div>
56+
</body>
6857
</html>

0 commit comments

Comments
 (0)