From ed45574c84c35736fde62d76f3627ceb010826d7 Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Tue, 22 Mar 2022 16:58:30 +1300 Subject: [PATCH 1/6] fix: :pencil2: Typo in issue template 3 --- .github/ISSUE_TEMPLATE/03_public_instance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/03_public_instance.md b/.github/ISSUE_TEMPLATE/03_public_instance.md index 31bf42b..3763064 100755 --- a/.github/ISSUE_TEMPLATE/03_public_instance.md +++ b/.github/ISSUE_TEMPLATE/03_public_instance.md @@ -16,7 +16,7 @@ What country is the server in: What server hardware/provider is the server on: -Are you using CloudFlare or any Google serives (domain, DNS, etc): +Are you using CloudFlare or any Google services (domain, DNS, etc): What version of zer0bin is it running: From b6476606f86bdf2190a3b59c86cbb81a01a93e5d Mon Sep 17 00:00:00 2001 From: Kainoa Kanter <44733677+ThatOneCalculator@users.noreply.github.com> Date: Mon, 21 Mar 2022 23:43:05 -0700 Subject: [PATCH 2/6] docs: :memo: Add tinker.nz as instance Closes #35 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c207e5f..e680f5f 100755 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Submit your public instance [here](https://github.com/Domterion/zer0bin/issues/n | ---------------------------------------------- | ---------- | -------------- | ------- | ------- | | zer0b.in | 7 days | 40,000 chars | v1.0.0 | πŸ‡ΊπŸ‡Έ USA | | [stepbro.voring.me](https://stepbro.voring.me) | 365 days | 69,000 chars | v0.7.1 | πŸ‡ΊπŸ‡Έ USA | +| [tinker.nz](https://tinker.nz/) | 28 days | 69,420 chars | v0.7.1 | πŸ‡³πŸ‡Ώ NZ | # Technologies used From 4c618f948642495b87c46ab3c130fdcc48dd0b56 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter <44733677+ThatOneCalculator@users.noreply.github.com> Date: Mon, 21 Mar 2022 23:45:27 -0700 Subject: [PATCH 3/6] =?UTF-8?q?community:=20=F0=9F=AB=82=20Update=20public?= =?UTF-8?q?=20instance=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/03_public_instance.md | 24 ++++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/03_public_instance.md b/.github/ISSUE_TEMPLATE/03_public_instance.md index 3763064..70d9c8e 100755 --- a/.github/ISSUE_TEMPLATE/03_public_instance.md +++ b/.github/ISSUE_TEMPLATE/03_public_instance.md @@ -12,19 +12,13 @@ Thanks for offering us your public instance! ## Details -What country is the server in: - -What server hardware/provider is the server on: - -Are you using CloudFlare or any Google services (domain, DNS, etc): - -What version of zer0bin is it running: - -Have you made any modifications to zer0bin? If so, what?: - -What are the ratelimits: - -What is the expiration time of pastes: - -What is the max paste size: +- Domain name: +- What country is the server in: +- What server hardware/provider is the server on: +- Are you using CloudFlare or any Google services (domain, DNS, etc): +- What version of zer0bin is it running: +- Have you made any modifications to zer0bin? If so, what?: +- What are the ratelimits: +- What is the expiration time of pastes: +- What is the max paste size: From 30a843c3905ba406aeb9faa223efff25ddcc18ed Mon Sep 17 00:00:00 2001 From: Dominic Harris Date: Tue, 22 Mar 2022 11:59:00 -0400 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=93=9D=20doc:=20Add=20official=20zer0?= =?UTF-8?q?bin=20instance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- example.nginx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e680f5f..f48cef9 100755 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ Submit your public instance [here](https://github.com/Domterion/zer0bin/issues/n | Website | Expiration | Max paste size | Version | Country | | ---------------------------------------------- | ---------- | -------------- | ------- | ------- | -| zer0b.in | 7 days | 40,000 chars | v1.0.0 | πŸ‡ΊπŸ‡Έ USA | +| [zer0b.in](https://zer0b.in) | 90 days | 50,000 chars | v0.7.1 | πŸ‡ΊπŸ‡Έ USA | | [stepbro.voring.me](https://stepbro.voring.me) | 365 days | 69,000 chars | v0.7.1 | πŸ‡ΊπŸ‡Έ USA | -| [tinker.nz](https://tinker.nz/) | 28 days | 69,420 chars | v0.7.1 | πŸ‡³πŸ‡Ώ NZ | +| [tinker.nz](https://tinker.nz/) | 28 days | 69,420 chars | v0.7.1 | πŸ‡³πŸ‡Ώ NZ | # Technologies used diff --git a/example.nginx b/example.nginx index 7badea1..34edeef 100755 --- a/example.nginx +++ b/example.nginx @@ -5,7 +5,7 @@ server { #listen 80 is default - server_name www.example.tld; + server_name example.tld; return 301 https://example.tld$request_uri; # brotli on; } From a7b149f26e11a03b8c1c94cf43fc0656b220bdb3 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 22 Mar 2022 09:46:25 -0700 Subject: [PATCH 5/6] feat: :sparkles: Block DarkReader --- README.md | 2 +- frontend/index.pug | 1 + frontend/package.json | 1 + frontend/src/index.ts | 2 ++ frontend/yarn.lock | 8 ++++++++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f48cef9..d0763b6 100755 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Submit your public instance [here](https://github.com/Domterion/zer0bin/issues/n ### Frontend: -
+
### Backend: diff --git a/frontend/index.pug b/frontend/index.pug index 39efbd8..e5ef485 100755 --- a/frontend/index.pug +++ b/frontend/index.pug @@ -6,6 +6,7 @@ head link(rel='shortcut icon' type='image/x-icon' href='favicon.ico') meta(name='theme-color' content='#90BDC9') meta(name='keywords' content='zerobin, zer0bin, paste, paste bin, pastebin, pastebin alternative, foss pastebin, open source pastebin, free pastebin, ghostbin, hastebin, pastebin.com, free pastebin online, paste online, github paste, github gist, github gist paste') + meta(name='darkreader' content='NO-DARKREADER-PLUGIN') link(href='style/style.scss' rel='stylesheet') link(href='style/rosepine.min.css' rel='stylesheet') meta(name='title' content='zer0bin') diff --git a/frontend/package.json b/frontend/package.json index 2eafc8f..a7f7213 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,6 +26,7 @@ "@ant-design/icons-svg": "^4.2.1", "highlight.js": "^11.4.0", "js-confetti": "^0.10.2", + "no-darkreader": "^1.0.1", "smooth-scrollbar": "^8.7.4", "tippy.js": "^6.3.7" } diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 0b8e314..8c2233d 100755 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -1,3 +1,5 @@ +import "no-darkreader" + import hljs from "highlight.js" import JSConfetti from "js-confetti" import Scrollbar from "smooth-scrollbar" diff --git a/frontend/yarn.lock b/frontend/yarn.lock index f57c239..7e413ac 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -2373,6 +2373,13 @@ __metadata: languageName: node linkType: hard +"no-darkreader@npm:^1.0.1": + version: 1.0.1 + resolution: "no-darkreader@npm:1.0.1" + checksum: d2723be352daff453ae775daced9c755767e2caaf138b645f10073fa9b3253cf28eadc2addd8ce6b17bc720b8201cc0c7e045b6352b44cdc51a9e143fee4e989 + languageName: node + linkType: hard + "node-addon-api@npm:^3.2.1": version: 3.2.1 resolution: "node-addon-api@npm:3.2.1" @@ -3659,6 +3666,7 @@ __metadata: "@types/node": ^17.0.21 highlight.js: ^11.4.0 js-confetti: ^0.10.2 + no-darkreader: ^1.0.1 parcel: ^2.3.2 smooth-scrollbar: ^8.7.4 tippy.js: ^6.3.7 From 49aaa073abdc1ad620791fd3db26b1a724d16f3e Mon Sep 17 00:00:00 2001 From: Kainoa Kanter <44733677+ThatOneCalculator@users.noreply.github.com> Date: Tue, 22 Mar 2022 09:55:09 -0700 Subject: [PATCH 6/6] =?UTF-8?q?config:=20=E2=9A=99=20Change=20default=20co?= =?UTF-8?q?nfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/config.example.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/config.example.json b/backend/config.example.json index 382c0bc..189e83c 100755 --- a/backend/config.example.json +++ b/backend/config.example.json @@ -4,9 +4,9 @@ "backend_port": 8000 }, "pastes": { - "character_limit": 40000, - "days_til_expiration": 7, - "id_length": 10 + "character_limit": 50000, + "days_til_expiration": 30, + "id_length": 6 }, "ratelimits": { "seconds_in_between_pastes": 2,