Browse Source

the hexbear commit, some things still need changing (mostly images)

fix/infinite-main-loading
DashEightMate 7 months ago
parent
commit
73c7c23686
  1. BIN
      public/hexbear-logo.png
  2. 4
      public/site.webmanifest
  3. 12
      public/taglines.json
  4. 7
      src/components/ErrorFallback.tsx
  5. 6
      src/components/ThemeSystemProvider.tsx
  6. 4
      src/components/Tooltip.tsx
  7. 18
      src/components/about.tsx
  8. 4
      src/components/donate.tsx
  9. 50
      src/components/privacy-policy.tsx
  10. 84
      src/components/tos.tsx
  11. 2
      src/components/user.tsx
  12. 10
      src/custom.css
  13. 5
      src/env.ts
  14. 2
      src/index.tsx
  15. 4
      src/theme.tsx
  16. 11
      src/utils.ts
  17. 26
      src/variables.css
  18. 2
      translations/en.json

BIN
public/hexbear-logo.png

Before

Width: 1628  |  Height: 1428  |  Size: 449 KiB

After

Width: 1628  |  Height: 1428  |  Size: 318 KiB

4
public/site.webmanifest

@ -1,6 +1,6 @@
{
"name": "ChapoChat",
"short_name": "Chapo",
"name": "Hexbear.net",
"short_name": "Hexbear",
"start_url": "/",
"display": "standalone",
"theme_color": "#ffffff",

12
public/taglines.json

@ -1,6 +1,5 @@
[
"<CURRENT_USER> needs to log off.",
"A fascist posted today, did you?",
"Proud member of the swoletariat",
"like digg but leftist",
@ -177,7 +176,6 @@
"This is how Bernie can still win",
"Mad, red, and nude online.",
"It’s MOSCOW_TIME in Moscow, get to posting!",
"Chapo, you have shocked the nation",
"i got pigpoop balls from the fucking moderator.",
"too young, too simple, sometimes naive!!!",
"RUSSIA RUSSIA RUSSIA",
@ -259,7 +257,6 @@
"What if we kissed while reading theory? Haha, just kidding... unless? :soviet-bashful:",
":large-adult-son:",
"There's not enough testosterone in the world to compete with the name Virgil Texas.",
"In Episode 114 of Chapo Trap House, Felix pronounces Geocities as \"jee-YAW-suh-teez\" instead of \"JEE-o-sit-eez\". I really hope somebody got fired for that blunder.",
"Why would a grown man whose shirt says \"Genius at Work\" spend all of his time posting lib shit?",
"Now where could my pipe be?",
"That's Numberwang!",
@ -273,7 +270,7 @@
"[/c/announcements](/c/announcements) is the best comm",
"[/c/politics](/c/politics) is the best comm",
"[/c/history](/c/history) is the best comm",
"[/c/askchapo](/c/askchapo) is the best comm",
"[/c/askhexbear](/c/askhexbear) is the best comm",
"[/c/technology](/c/technology) is the best comm",
"[/c/science](/c/science) is the best comm",
"[/c/literature](/c/literature) is the best comm",
@ -395,9 +392,12 @@
":le-monke: UH OH< I THINK I MADE A POOPIE :^)^)^)^)^))^)^:^)^:^) :le-monke:",
"YOU! Yes, you, <CURRENT_USER>. Go read [The Conquest of Bread](https://theanarchistlibrary.org/library/petr-kropotkin-the-conquest-of-bread)",
"YOU! Yes, you, <CURRENT_USER>. Go read [State and Revolution](https://www.marxists.org/archive/lenin/works/1917/staterev/)",
"YOU! Yes, you, <CURRENT_USER>. Go read [Trans Liberation: Beyond Pink and Blue](https://www.chapo.chat/post/48476)",
"YOU! Yes, you, <CURRENT_USER>. Go read [Trans Liberation: Beyond Pink and Blue](https://www.hexbear.net/post/48476)",
"YOU! Yes, you, <CURRENT_USER>. Go read [The Communist Manifesto](https://www.marxists.org/archive/marx/works/1848/communist-manifesto/ch01.htm)",
"YOU! Yes, you, <CURRENT_USER>. Go read [What Is To Be Done?](https://www.marxists.org/archive/lenin/works/1901/witbd/)",
"YOU! Yes, you, <CURRENT_USER>. Go read [Synopsis of Capital](https://www.marxists.org/archive/marx/works/1867-c1/1868-syn/index.htm)",
"YOU! Yes, you, <CURRENT_USER>. Go read [Letter from a Birmingham Jail](https://www.africa.upenn.edu/Articles_Gen/Letter_Birmingham.html)"
"YOU! Yes, you, <CURRENT_USER>. Go read [Letter from a Birmingham Jail](https://www.africa.upenn.edu/Articles_Gen/Letter_Birmingham.html)",
"Preventing electrical infetterence since 2020",
":im-vegan:"
]

7
src/components/ErrorFallback.tsx

@ -1,7 +1,6 @@
import React, { useState } from 'react';
import Sentry from '@sentry/react';
import React from 'react';
import Block from './elements/Block';
import { Heading, Text, Textarea, ThemeProvider, Link } from 'theme-ui';
import { Heading, Text, ThemeProvider, Link } from 'theme-ui';
import defaultTheme from '../theme';
import Button from './elements/Button';
@ -30,7 +29,7 @@ export default function ErrorFallback() {
as="a"
css={{ width: '100%', color: '#fff !important' }}
// @ts-ignore
href="https://www.chapo.chat/create_post?community=feedback"
href="https://www.hexbear.net/create_post?community=feedback"
>
Create a Bug Report
</Button>

6
src/components/ThemeSystemProvider.tsx

@ -13,7 +13,7 @@ const ThemeSystem = createContext({} as ThemeSystemState);
function ThemeSystemProvider({
children,
initialTheme = 'chapo',
initialTheme = 'hexbear',
}: {
children: React.ReactNode;
initialTheme?: string;
@ -22,7 +22,7 @@ function ThemeSystemProvider({
const theme = Object.keys(themes).includes(currentTheme)
? themes[currentTheme]
: themes.chapo;
: themes.hexbear;
useEffect(() => {
const theme = UserService?.Instance?.user?.theme;
@ -36,7 +36,7 @@ function ThemeSystemProvider({
if (Object.keys(themes).includes(e.detail)) {
setCurrentTheme(e.detail);
} else {
setCurrentTheme('chapo');
setCurrentTheme('hexbear');
}
}

4
src/components/Tooltip.tsx

@ -49,7 +49,7 @@ const TriangleTooltip: ForwardRefExoticComponentWithAs<
const { theme } = useThemeUI();
const color = currentTheme === 'chapo' ? '#2F2F37' : theme.colors.text;
const color = currentTheme === 'hexbear' ? '#2F2F37' : theme.colors.text;
return (
<>
{cloneElement(children, trigger)}
@ -83,7 +83,7 @@ const TriangleTooltip: ForwardRefExoticComponentWithAs<
style={{
backgroundColor: color,
color:
currentTheme === 'chapo'
currentTheme === 'hexbear'
? theme.colors.text
: theme.colors.background,
border: 'none',

18
src/components/about.tsx

@ -9,7 +9,7 @@ export class About extends Component<any, any> {
componentDidMount() {
document.title = `${i18n.t('about')} - ${
// @ts-ignore
WebSocketService.Instance?.site?.name || 'ChapoChat'
WebSocketService.Instance?.site?.name || 'Hexbear'
}`;
window.scrollTo(0, 0);
}
@ -27,7 +27,7 @@ export class About extends Component<any, any> {
<div className="my-4">
<div className="about-body">
<p>
The Chapo Cooperative is a collective of leftist software
The Hexbear Cooperative is a collective of leftist software
developers building an independent space for solidarity and true
democratization on the internet.
</p>
@ -63,7 +63,7 @@ export class About extends Component<any, any> {
and our community to advertisers.
</p>
<p>
We are Chapo Cooperative and we&apos;re here to show these venture
We are Hexbear Cooperative and we&apos;re here to show these venture
capitalist vultures what actual disruption of a stale and tired
industry looks like.
</p>
@ -71,18 +71,6 @@ export class About extends Component<any, any> {
PS: John Brown did nothing wrong. We can say that all we want now
that we&apos;re independent.{' '}
</p>
<div className="my-4">
<img
src={`${BASE_PATH}last-comment.png`}
alt="the last comment before the r/chapotraphouse subreddit was shut down"
className="img-fluid"
/>
<small>
The last comment on the r/chapotraphouse subreddit before it was
shut down.
</small>
</div>
</div>
</div>
</div>

4
src/components/donate.tsx

@ -21,10 +21,10 @@ export class Donate extends Component<any, any> {
<div>
<div>
<Heading as="h4" className="my-2">
Support Chapo.chat and the Chapo Collective on Liberapay
Support hexbear.net and the Hexbear Collective on Liberapay
</Heading>
<p>
The Chapo Cooperative is a collective of leftist software developers
The Hexbear Cooperative is a collective of leftist software developers
building an independent space for solidarity and true
democratization on the internet.
</p>

50
src/components/privacy-policy.tsx

@ -27,7 +27,7 @@ const PrivacyPolicy = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo.Chat Privacy Policy
Hexbear.net Privacy Policy
</span>
</h1>
<p
@ -81,7 +81,7 @@ const PrivacyPolicy = () => (
whiteSpace: 'pre-wrap',
}}
>
We want you to understand how and why Chapo (&ldquo;Chapo,&rdquo;
We want you to understand how and why Hexbear (&ldquo;Hexbear,&rdquo;
&ldquo;we&rdquo; or &ldquo;us&rdquo;) collects, uses, and shares
information about you when you use our websites and services
(collectively, the &quot;Services&quot;) or when you otherwise
@ -354,7 +354,7 @@ const PrivacyPolicy = () => (
>
&nbsp;You may choose to provide other information directly to us. For
example, we may collect information when you fill out a form,
participate in Chapo-sponsored activities or otherwise communicate
participate in Hexbear-sponsored activities or otherwise communicate
with us.
</span>
</p>
@ -454,12 +454,10 @@ const PrivacyPolicy = () => (
}}
>
&nbsp;We may log information when you access and use the Services.
This may include your IP address, user-agent string, browser type,
This may include user-agent string, browser type,
operating system, referral URLs, device information (e.g., device
IDs), pages visited, links clicked, the requested URL, hardware
settings, and search terms. Except for the IP address used to create
your account, Chapo will delete any IP addresses collected after 100
days.
settings, and search terms.
</span>
</p>
<p
@ -693,9 +691,9 @@ const PrivacyPolicy = () => (
whiteSpace: 'pre-wrap',
}}
>
Help protect the safety of Chapo and our users, which includes
Help protect the safety of Hexbear and our users, which includes
blocking suspected spammers, addressing abuse, and enforcing the
Chapo user agreement and our other policies;
Hexbear user agreement and our other policies;
</span>
</p>
</li>
@ -1229,7 +1227,7 @@ const PrivacyPolicy = () => (
>
&nbsp;We may share information if we believe your actions are
inconsistent with our user agreements, Code of Conduct, or other
Chapo policies, or to protect the rights, property, and safety of
Hexbear policies, or to protect the rights, property, and safety of
ourselves and others.
</span>
</p>
@ -1288,7 +1286,7 @@ const PrivacyPolicy = () => (
whiteSpace: 'pre-wrap',
}}
>
&nbsp;We may share information between and among Chapo, and any of
&nbsp;We may share information between and among Hexbear, and any of
our parents, affiliates, subsidiaries, and other companies under
common control and ownership.
</span>
@ -1521,12 +1519,12 @@ const PrivacyPolicy = () => (
}}
>
We have not placed any backdoors into our software and have not
received any requests for doing so. Since our launch in July 2020, we
received any requests for doing so. Since March 1st, 2021, we
have received 0 (zero) government requests for information and
complied with 0 (zero) government requests for information. No
warrants have ever been served to chapo.chat, or chapo.chat
contributors in regards to chapo.chat. No searches or seizures of any
kind have ever been performed on chapo.chat assets. Pay close
warrants have ever been served to hexbear.net, or hexbear.net
contributors in regards to hexbear.net. No searches or seizures of any
kind have ever been performed on hexbear.net assets. Pay close
attention to any modifications to the previous paragraph.
</span>
</p>
@ -1581,7 +1579,7 @@ const PrivacyPolicy = () => (
whiteSpace: 'pre-wrap',
}}
>
As a Chapo user, you have choices about how to protect and limit the
As a Hexbear user, you have choices about how to protect and limit the
collection, use, and disclosure of information about you.
</span>
</p>
@ -1637,7 +1635,7 @@ const PrivacyPolicy = () => (
}}
>
You can access and change certain information through the Services.
You can also request a copy of the personal information Chapo
You can also request a copy of the personal information Hexbear
maintains about you by&nbsp;
</span>
</p>
@ -1725,7 +1723,7 @@ const PrivacyPolicy = () => (
}}
>
. You can also submit a request to delete the personal information
Chapo maintains about you by emailing us. When you delete your
Hexbear maintains about you by emailing us. When you delete your
account, your profile is no longer visible to other users and
disassociated from content you posted under that account. Please note,
however, that the posts, comments, and messages you submitted prior to
@ -2022,7 +2020,7 @@ const PrivacyPolicy = () => (
whiteSpace: 'pre-wrap',
}}
>
In connection with Chapo&#39;s processing of personal data received
In connection with Hexbear&#39;s processing of personal data received
from the European Union and Switzerland, we adhere to the EU-U.S. and
Swiss-U.S. Privacy Shield Program (&ldquo;Privacy Shield&rdquo;) and
comply with its framework and principles.
@ -2354,11 +2352,11 @@ const PrivacyPolicy = () => (
whiteSpace: 'pre-wrap',
}}
>
Requests for a copy of the information Chapo has about your
Requests for a copy of the information Hexbear has about your
account&mdash;including EU General Data Protection Regulation (GDPR)
data subject access requests and California Consumer Privacy Act
(CCPA) consumer information requests&mdash;can be submitted to
contact@chapo.chat.
contact@hexbear.net.
</span>
</p>
<p
@ -2386,8 +2384,8 @@ const PrivacyPolicy = () => (
}}
>
All other data subject and consumer requests under data protection
laws should be sent via email to contact@chapo.chat from the email
address that you have verified with your Chapo account.
laws should be sent via email to contact@hexbear.net from the email
address that you have verified with your Hexbear account.
</span>
</p>
<p
@ -2415,10 +2413,10 @@ const PrivacyPolicy = () => (
}}
>
Before we process a request from you about your personal information,
we need to verify the request via your access to your Chapo account or
to a verified email address associated with your Chapo account. You
we need to verify the request via your access to your Hexbear account or
to a verified email address associated with your Hexbear account. You
may also designate an authorized agent to exercise these rights on
your behalf. Chapo does not discriminate against users for exercising
your behalf. Hexbear does not discriminate against users for exercising
their rights under data protection laws to make requests regarding
their personal information.
</span>

84
src/components/tos.tsx

@ -27,7 +27,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo.chat User Agreement &amp; Terms Of Service
Hexbear.net User Agreement &amp; Terms Of Service
</span>
</h1>
<p
@ -54,7 +54,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo empowers leftist to shitpost, organize, and build solidarity.
Hexbear empowers leftist to shitpost, organize, and build solidarity.
This User Agreement and your conduct make that possible.
</span>
</p>
@ -82,7 +82,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Hello, Chapos and leftists of the Internet! This Chapo.chat User
Hello, leftists of the Internet! This Hexbear.net User
Agreement (&quot;
</span>
<span
@ -149,7 +149,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
&quot;) provided by Chapo Collective. (&quot;
&quot;) provided by Hexbear Collective. (&quot;
</span>
<span
style={{
@ -165,7 +165,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo
Hexbear
</span>
<span
style={{
@ -272,7 +272,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Remember Chapo.chat is for fun and is intended to be a place for your
Remember Hexbear.net is for fun and is intended to be a place for your
entertainment, but we still need some basic rules. By accessing or
using our Services, you agree to be bound by these Terms. If you do
not agree to these Terms, you may not access or use our Services.
@ -302,7 +302,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Please take a look at Chapo&rsquo;s Code of Conduct too&mdash;it
Please take a look at Hexbear&rsquo;s Code of Conduct too&mdash;it
explains how we collect, use, and share information about you when you
access or use our Services.
</span>
@ -476,7 +476,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo grants you a personal, non-transferable, non-exclusive,
Hexbear grants you a personal, non-transferable, non-exclusive,
revocable, limited license to use and access the Services solely as
permitted by these Terms. We reserve all rights not expressly granted
to you by these Terms.
@ -659,7 +659,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
3. Your Chapo Account and Account Security
3. Your Hexbear Account and Account Security
</span>
</p>
<p
@ -687,7 +687,7 @@ const Tos = () => (
}}
>
To use certain features of our Services, you may be required to create
a Chapo account (an &quot;
a Hexbear account (an &quot;
</span>
<span
style={{
@ -749,7 +749,7 @@ const Tos = () => (
>
You are solely responsible for the information associated with Your
Account and anything that happens related to Your Account. You must
maintain the security of your Account and promptly notify Chapo if you
maintain the security of your Account and promptly notify Hexbear if you
discover or suspect that someone has accessed your Account without
your permission. We recommend that you use a strong password that is
used only with the Services.
@ -960,7 +960,7 @@ const Tos = () => (
}}
>
You retain any ownership rights you have in Your Content, but you
grant Chapo the following license to use that Content:
grant Hexbear the following license to use that Content:
</span>
</p>
<p
@ -1023,8 +1023,8 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Any ideas, suggestions, and feedback about Chapo or our Services that
you provide to us are entirely voluntary, and you agree that Chapo may
Any ideas, suggestions, and feedback about Hexbear or our Services that
you provide to us are entirely voluntary, and you agree that Hexbear may
use such ideas, suggestions, and feedback without compensation or
obligation to you.
</span>
@ -1179,9 +1179,9 @@ const Tos = () => (
contest or sweepstakes, you alone are responsible for conducting the
promotion in compliance with all applicable laws and regulations. The
terms of your promotion must specifically state that the promotion is
not sponsored by, endorsed by, or associated with Chapo and the rules
not sponsored by, endorsed by, or associated with Hexbear and the rules
for your promotion must require each entrant or participant to release
Chapo from any liability related to the promotion.
Hexbear from any liability related to the promotion.
</span>
</p>
<p
@ -1239,7 +1239,7 @@ const Tos = () => (
their rights, including by following these Terms and the Code of
Conduct, so that we all may continue to use and enjoy the Services. We
support the responsible reporting of security vulnerabilities. To
report a security issue, please send an email to contact@chapo.chat.
report a security issue, please send an email to contact@hexbear.net.
</span>
</p>
<p
@ -1490,7 +1490,7 @@ const Tos = () => (
Use the Services to harvest, collect, gather or assemble
information or data regarding the Services or users of the
Services except as permitted in these Terms or in a separate
agreement with Chapo;
agreement with Hexbear;
</span>
</p>
</li>
@ -1682,7 +1682,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Moderating a Chapo community is an unofficial, voluntary position that
Moderating a Hexbear community is an unofficial, voluntary position that
may be available to users of the Services. We are not responsible for
actions taken by the moderators. We recognize that moderation can take
some work, so we may change the features or abilities associated with
@ -1715,7 +1715,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
If you choose to moderate a Chapo community:
If you choose to moderate a Hexbear community:
</span>
</p>
<ul
@ -1849,7 +1849,7 @@ const Tos = () => (
}}
>
You may not represent that you are authorized to act on behalf of
Chapo, Inc.;
Hexbear, Inc.;
</span>
</p>
</li>
@ -1892,7 +1892,7 @@ const Tos = () => (
}}
>
You may not enter into any agreement with a third party on behalf
of Chapo, or any subChapos that you moderate, without our written
of Hexbear, or any communities that you moderate, without our written
approval;
</span>
</p>
@ -1979,7 +1979,7 @@ const Tos = () => (
}}
>
If you have access to non-public information as a result of
moderating a subChapo, you will use such information only in
moderating a community, you will use such information only in
connection with your performance as a moderator; and
</span>
</p>
@ -2022,7 +2022,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
You may create and enforce rules for the Chapo community you
You may create and enforce rules for the Hexbear community you
moderate, provided that such rules do not conflict with these
Terms and Code Of Conduct
</span>
@ -2053,9 +2053,9 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo reserves the right, but has no obligation, to overturn any
action or decision of a moderator if Chapo believes that such action
or decision is not in the interest of Chapo or the Chapo community.
Hexbear reserves the right, but has no obligation, to overturn any
action or decision of a moderator if Hexbear believes that such action
or decision is not in the interest of Hexbear or the Hexbear community.
</span>
</p>
<p
@ -2109,14 +2109,14 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo is legally required to enforce the intellectual property of
Hexbear is legally required to enforce the intellectual property of
others and must require that users of our Services do the same. We
have a policy that includes the removal of any infringing materials
from the Services and for the termination, in appropriate
circumstances, of users of our Services who are repeat infringers. If
you believe that anything on our Services infringes a copyright that
you own or control, you may notify Chapo&rsquo;s Designated Agent by
contacting contact@chapo.chat.
you own or control, you may notify Hexbear&rsquo;s Designated Agent by
contacting contact@hexbear.net.
</span>
</p>
<p
@ -2144,7 +2144,7 @@ const Tos = () => (
}}
>
Also, please note that if you knowingly misrepresent that any activity
or material on our Service is infringing, you may be liable to Chapo
or material on our Service is infringing, you may be liable to Hexbear
for certain costs and damages.
</span>
</p>
@ -2173,7 +2173,7 @@ const Tos = () => (
}}
>
If we remove Your Content in response to a copyright or trademark
notice, we will notify you via Chapo&rsquo;s private messaging system.
notice, we will notify you via Hexbear&rsquo;s private messaging system.
If you believe Your Content was wrongly removed due to a mistake or
misidentification, you can send a counter notification to our
Copyright Agent (contact information provided above). Please see
@ -2288,7 +2288,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
Chapo Entities
Hexbear Entities
</span>
<span
style={{
@ -2368,12 +2368,12 @@ const Tos = () => (
AVAILABLE&quot; WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
NON-INFRINGEMENT. CHAPO, ITS LICENSORS, AND ITS THIRD PARTY SERVICE
NON-INFRINGEMENT. HEXBEAR, ITS LICENSORS, AND ITS THIRD PARTY SERVICE
PROVIDERS DO NOT WARRANT THAT THE SERVICES ARE ACCURATE, COMPLETE,
RELIABLE, CURRENT, OR ERROR FREE. CHAPO DOES NOT CONTROL, ENDORSE, OR
RELIABLE, CURRENT, OR ERROR FREE. HEXBEAR DOES NOT CONTROL, ENDORSE, OR
TAKE RESPONSIBILITY FOR ANY CONTENT AVAILABLE ON OR LINKED TO THE
SERVICES OR THE ACTIONS OF ANY THIRD PARTY OR USER, INCLUDING
MODERATORS. WHILE CHAPO ATTEMPTS TO MAKE YOUR ACCESS TO AND USE OF OUR
MODERATORS. WHILE HEXBEAR ATTEMPTS TO MAKE YOUR ACCESS TO AND USE OF OUR
SERVICES SAFE, WE DO NOT REPRESENT OR WARRANT THAT OUR SERVICES OR
SERVERS ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS.
</span>
@ -2431,7 +2431,7 @@ const Tos = () => (
>
IN NO EVENT AND UNDER NO THEORY OF LIABILITY, INCLUDING CONTRACT,
TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE, WILL THE
Chapo ENTITIES BE LIABLE TO YOU FOR ANY INDIRECT, CONSEQUENTIAL,
Hexbear ENTITIES BE LIABLE TO YOU FOR ANY INDIRECT, CONSEQUENTIAL,
EXEMPLARY, INCIDENTAL, SPECIAL, OR PUNITIVE DAMAGES, OR LOST PROFITS
ARISING FROM OR RELATING TO THESE TERMS OR THE SERVICES, INCLUDING
THOSE ARISING FROM OR RELATING TO CONTENT MADE AVAILABLE ON THE
@ -2439,12 +2439,12 @@ const Tos = () => (
ACCESS TO, AND USE OF, THE SERVICES IS AT YOUR OWN DISCRETION AND
RISK, AND YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE
OR COMPUTER SYSTEM, OR LOSS OF DATA RESULTING THEREFROM. IN NO EVENT
WILL THE AGGREGATE LIABILITY OF THE CHAPO ENTITIES EXCEED THE GREATER
OF ONE HUNDRED U.S. DOLLARS ($100) OR ANY AMOUNT YOU PAID CHAPO IN THE
WILL THE AGGREGATE LIABILITY OF THE HEXBEAR ENTITIES EXCEED THE GREATER
OF ONE HUNDRED U.S. DOLLARS ($100) OR ANY AMOUNT YOU PAID HEXBEAR IN THE
PREVIOUS SIX MONTHS FOR THE SERVICES GIVING RISE TO THE CLAIM. THE
LIMITATIONS OF THIS SECTION WILL APPLY TO ANY THEORY OF LIABILITY,
INCLUDING THOSE BASED ON WARRANTY, CONTRACT, STATUTE, TORT (INCLUDING
NEGLIGENCE) OR OTHERWISE, AND EVEN IF THE Chapo ENTITIES HAVE BEEN
NEGLIGENCE) OR OTHERWISE, AND EVEN IF THE Hexbear ENTITIES HAVE BEEN
ADVISED OF THE POSSIBILITY OF ANY SUCH DAMAGE, AND EVEN IF ANY REMEDY
SET FORTH HEREIN IS FOUND TO HAVE FAILED ITS ESSENTIAL PURPOSE. THE
FOREGOING LIMITATION OF LIABILITY WILL APPLY TO THE FULLEST EXTENT
@ -2502,7 +2502,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
We want you to enjoy Chapo, so if you have an issue or dispute, you
We want you to enjoy Hexbear, so if you have an issue or dispute, you
agree to raise it and try to resolve it with us informally. You can
contact us with feedback and concerns here or by emailing us at&nbsp;
</span>
@ -2520,7 +2520,7 @@ const Tos = () => (
whiteSpace: 'pre-wrap',
}}
>
contact@chapo.com
contact@hexbear.net
</span>
<span
style={{

2
src/components/user.tsx

@ -284,7 +284,7 @@ class BaseUser extends Component<any, UserState> {
show_nsfw: UserService.Instance.user.show_nsfw,
theme: UserService.Instance.user.theme
? UserService.Instance.user.theme
: 'chapo',
: 'hexbear',
default_sort_type: UserService.Instance.user.default_sort_type,
default_listing_type:
UserService.Instance.user.default_listing_type,

10
src/custom.css

@ -571,7 +571,7 @@ a.text-body {
}
.badge-light {
background-color: var(--chapo-secondary);
background-color: var(--hexbear-secondary);
color: #fff;
font-size: 12px;
}
@ -596,7 +596,7 @@ a.text-body {
}
.nsfw-badge {
background-color: var(--chapo-accent) !important;
background-color: var(--hexbear-accent) !important;
color: #333;
}
@ -606,7 +606,7 @@ a.text-body {
}
.stickied-border {
border-right: 2px solid var(--chapo-success) !important;
border-right: 2px solid var(--hexbear-success) !important;
}
.comment-badge {
@ -677,12 +677,12 @@ a.text-body {
}
[data-reach-combobox-option]:hover {
background-color: var(--chapo-accent) !important;
background-color: var(--hexbear-accent) !important;
color: #fff;
}
[data-reach-combobox-option][data-highlighted] {
background-color: var(--chapo-accent);
background-color: var(--hexbear-accent);
color: #333;
}

5
src/env.ts

@ -4,11 +4,6 @@ const port = `${
}`;
const endpoint = `${host}:${port}`;
// for testing against prod endpoint
// const endpoint = 'www.chapo.chat';
// for testing against dev endpoint
// const endpoint = `thoseamongbranches.chapo.chat:`;
export const wsUri = `${
window.location.protocol == 'https:' ? 'wss://' : 'ws://'
}${endpoint}/api/v1/ws`;

2
src/index.tsx

@ -38,7 +38,7 @@ function PPB() {
return (
<div style={{ maxWidth: '500px' }}>
<img
src="https://www.chapo.chat/pictrs/image/4lR80uZ1C1.jpg"
src="https://www.hexbear.net/pictrs/image/4lR80uZ1C1.jpg"
className="img-fluid"
alt="a pig that has pooped on its own balls"
/>

4
src/theme.tsx

@ -281,14 +281,14 @@ const defaultTheme: ThemeProviderProps<Theme> = {
};
export const themes = {
chapo: { ...defaultTheme },
hexbear: { ...defaultTheme },
dark,
...remainingThemes,
...customThemes,
};
// create custom event to allow theme to be changed from anywhere
export function changeTheme(themeName = 'chapo'): void {
export function changeTheme(themeName = 'hexbear'): void {
const event = new CustomEvent('change-theme', { detail: themeName });
document.dispatchEvent(event);
}

11
src/utils.ts

@ -601,8 +601,8 @@ export function testMessageToast(): void {
messageToastify(
'example-user',
null,
'<p>Example toast. <img src="https://thoseamongbranches.chapo.chat/pictrs/image/YsYoLsoLaf.jpg" alt=""/> The quick brown fox jumped over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
'thoseamongbranches.chapo.chat',
'<p>Example toast. <img src="https://www.chapo.chat/pictrs/image/JNmEXL1LM2.png" alt=""/> The quick brown fox jumped over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
'www.chapo.chat',
null
);
}
@ -1071,7 +1071,7 @@ export function imagesDownsize(
can_expand: boolean
): string {
const imgPictrsRegex = new RegExp(
/<img src=(("https:\/\/.*?chapo\.chat\/pictrs\/image\/)(.{10})(.jpg"))( alt=".*?">)/g
/<img src=(("https:\/\/.*?hexbear\.net\/pictrs\/image\/)(.{10})(.jpg"))( alt=".*?">)/g
);
const imgTagRegex = new RegExp(/<img((?!icon).)*$/g);
html = html.replace(
@ -1187,13 +1187,10 @@ export function isMessageChanged(operation: UserOperation): boolean {
);
}
export const siteName = isProduction ? 'ChapoChat' : 'chapochat (dev)';
export const siteName = isProduction ? 'Hexbear' : 'hexbear (dev)';
export const api = axios.create({
baseURL: isProduction ? '/api/v1/' : 'http://localhost:8536/api/v1/',
// baseURL: isProduction
// ? '/api/v1/'
// : 'https://thoseamongbranches.chapo.chat/api/v1/',
});
export const fetcher = (url: string): Promise<any> =>

26
src/variables.css

@ -1,26 +1,26 @@
:root {
--chapo-primary: #DA1B9A;
--chapo-secondary: #2030DF;
--chapo-accent: #F3B90C;
--chapo-success: #00bc8c;
--chapo-mod: #08D673;
--chapo-admin: #F37171;
--chapo-sitemod: #F3f171;
--chapo-creator: #F471C8;
--hexbear-primary: #DA1B9A;
--hexbear-secondary: #2030DF;
--hexbear-accent: #F3B90C;
--hexbear-success: #00bc8c;
--hexbear-mod: #08D673;
--hexbear-admin: #F37171;
--hexbear-sitemod: #F3f171;
--hexbear-creator: #F471C8;
}
/* helper classes */
.chapo-bg-secondary {
background-color: var(--chapo-secondary) !important;
.hexbear-bg-secondary {
background-color: var(--hexbear-secondary) !important;
}
.bg-accent {
background-color: var(--chapo-accent) !important;
background-color: var(--hexbear-accent) !important;
}
.mod-text {
color: var(--chapo-mod);
color: var(--hexbear-mod);
}
.admin-text {
@ -32,7 +32,7 @@
}
.mod-badge {
background-color: var(--chapo-mod);
background-color: var(--hexbear-mod);
color: #145234 !important;
}

2
translations/en.json

@ -11,7 +11,7 @@
"posts": "Posts",
"related_posts": "These posts might be related",
"cross_posts": "This link has also been posted to:",
"TOS": "I agree to the Chapo.chat terms of service.",
"TOS": "I agree to the Hexbear.net terms of service.",
"cross_post": "cross-post",
"cross_posted_to": "cross-posted to: ",
"comments": "Comments",

Loading…
Cancel
Save