From 86b57dcbd0b4368a5ca9edb0f5c0fa9fab4de07b Mon Sep 17 00:00:00 2001
From: Spectralitree <72747870+Spectralitree@users.noreply.github.com>
Date: Sat, 31 Jul 2021 13:03:29 +0200
Subject: [PATCH] switch to a new domain name
---
package.json | 2 +-
public/404.html | 2 +-
src/App.js | 14 +++++++-------
src/Components/Footer.js | 2 +-
src/Components/Navbar.js | 12 ++++++------
src/Components/Private/MemberCard.js | 2 +-
src/Components/Private/MemberPage.js | 6 +++---
src/Components/Private/System.js | 4 ++--
src/Components/Public/Profile.js | 2 +-
src/Components/Public/ProfileCard.js | 2 +-
src/Components/Public/ProfileList.js | 2 +-
src/Pages/Home.js | 4 ++--
src/index.js | 2 +-
13 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/package.json b/package.json
index 14c988bd..4bec43aa 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "homepage": "http://spectralitree.github.io/pk-webs",
+ "homepage": "https://pk-webs.spectralitree.com",
"name": "pk-web",
"version": "0.1.0",
"private": true,
diff --git a/public/404.html b/public/404.html
index 055bf006..fb3f2dbb 100644
--- a/public/404.html
+++ b/public/404.html
@@ -22,7 +22,7 @@
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.
- var pathSegmentsToKeep = 1;
+ var pathSegmentsToKeep = 0;
var l = window.location;
l.replace(
diff --git a/src/App.js b/src/App.js
index 6f37f300..076c27b9 100644
--- a/src/App.js
+++ b/src/App.js
@@ -25,25 +25,25 @@ export default function App() {
return (
-
+
-
- { !localStorage.getItem('token') || isInvalid ? :
+
+ { !localStorage.getItem('token') || isInvalid ? :
}
-
+
-
+
-
+
-
+
diff --git a/src/Components/Footer.js b/src/Components/Footer.js
index 9ba4e7ea..8b5f8aed 100644
--- a/src/Components/Footer.js
+++ b/src/Components/Footer.js
@@ -10,7 +10,7 @@ export default function Navigation() {
-
+
Github
diff --git a/src/Components/Navbar.js b/src/Components/Navbar.js
index 349052bb..7d021344 100644
--- a/src/Components/Navbar.js
+++ b/src/Components/Navbar.js
@@ -14,21 +14,21 @@ const Navbar = ({ setIsSubmit, forceUpdate}) => {
setIsSubmit(false);
localStorage.removeItem("token");
localStorage.removeItem("user");
- history.push("/pk-webs");
+ history.push("/");
forceUpdate();
}
return(
-
+
pk-webs
diff --git a/src/Components/Private/MemberCard.js b/src/Components/Private/MemberCard.js
index a8ed77f3..f66e3115 100644
--- a/src/Components/Private/MemberCard.js
+++ b/src/Components/Private/MemberCard.js
@@ -212,7 +212,7 @@ export default function MemberCard(props) {
}
function copyLink() {
- var link = `https://spectralitree.github.io/pk-webs/profile/${sysID}/${member.id}`
+ var link = `https://pk-webs.spectralitree.com/profile/${sysID}/${member.id}`
var textField = document.createElement('textarea')
textField.innerText = link
document.body.appendChild(textField);
diff --git a/src/Components/Private/MemberPage.js b/src/Components/Private/MemberPage.js
index b636b267..fcef642a 100644
--- a/src/Components/Private/MemberPage.js
+++ b/src/Components/Private/MemberPage.js
@@ -213,7 +213,7 @@ export default function MemberPage(props) {
}
function copyLink() {
- var link = `https://spectralitree.github.io/pk-webs/profile/${sysID}/${member.id}`
+ var link = `https://pk-webs.spectralitree.com/profile/${sysID}/${member.id}`
var textField = document.createElement('textarea')
textField.innerText = link
document.body.appendChild(textField);
@@ -229,7 +229,7 @@ export default function MemberPage(props) {
memberDeleted ? Member Deleted
Member successfully deleted, click the button below to go back to the dash.
- history.push("/pk-webs/dash/reload")}>Back
+ history.push("/dash/reload")}>Back
:
<>
{ localStorage.getItem('colorbg') ? "" : member.color ? <>
@@ -421,7 +421,7 @@ export default function MemberPage(props) {
> : "" }
Description:
{ localStorage.getItem('twemoji') ? : }
- { proxyView ? "" : privacyMode ? "" : privacyView ? "" : <> setEditMode(true)}>Edit Back>}
+ { proxyView ? "" : privacyMode ? "" : privacyView ? "" : <> setEditMode(true)}>Edit Back>}
> } >
)
}
diff --git a/src/Components/Private/System.js b/src/Components/Private/System.js
index 90b66d4a..a5d452f1 100644
--- a/src/Components/Private/System.js
+++ b/src/Components/Private/System.js
@@ -14,7 +14,7 @@ import EditSystemPrivacy from "./Edit/EditSystemPrivacy.js";
export default function System(props) {
// match the url, if there's a member ID there, don't render this component at all
- const match = useRouteMatch("/pk-webs/dash/:memberID");
+ const match = useRouteMatch("/dash/:memberID");
// get the user from the localstorage
const [user, setUser] = useState(JSON.parse(localStorage.getItem("user")));
@@ -230,7 +230,7 @@ export default function System(props) {
history.push(`/pk-webs/profile/${user.id}`)}
+ onClick={() => history.push(`/profile/${user.id}`)}
>
Profile
diff --git a/src/Components/Public/Profile.js b/src/Components/Public/Profile.js
index 2ba561cb..f689a4c4 100644
--- a/src/Components/Public/Profile.js
+++ b/src/Components/Public/Profile.js
@@ -13,7 +13,7 @@ import ProfileList from "./ProfileList.js";
export default function Profile () {
- const match = useRouteMatch("/pk-webs/profile/:sysID/:memberID");
+ const match = useRouteMatch("/profile/:sysID/:memberID");
const { sysID } = useParams();
const [ system, setSystem ] = useState('');
diff --git a/src/Components/Public/ProfileCard.js b/src/Components/Public/ProfileCard.js
index b97eb545..618a6b64 100644
--- a/src/Components/Public/ProfileCard.js
+++ b/src/Components/Public/ProfileCard.js
@@ -66,7 +66,7 @@ export default function MemberCard(props) {
}, [member.description, member.color, member.birthday, member.display_name, member.pronouns, member.avatar_url, member.proxy_tags]);
function copyLink() {
- var link = `https://spectralitree.github.io/pk-webs/profile/${sysID}/${member.id}`
+ var link = `https://pk-webs.spectralitree.com/profile/${sysID}/${member.id}`
var textField = document.createElement('textarea')
textField.innerText = link
document.body.appendChild(textField);
diff --git a/src/Components/Public/ProfileList.js b/src/Components/Public/ProfileList.js
index 3a392d8b..bcb0339d 100644
--- a/src/Components/Public/ProfileList.js
+++ b/src/Components/Public/ProfileList.js
@@ -238,7 +238,7 @@ export default function Memberlist() {
}
>
-
+
{ isLoading ? :
}
diff --git a/src/Pages/Home.js b/src/Pages/Home.js
index 828e66cc..333339f1 100644
--- a/src/Pages/Home.js
+++ b/src/Pages/Home.js
@@ -39,7 +39,7 @@ const { register, handleSubmit } = useForm();
localStorage.setItem("user", JSON.stringify(data));
setIsSubmit(true);
setIsLoading(false);
- history.push("/pk-webs/dash");
+ history.push("/dash");
})
// remove the token and user data from localstorage if there's an error, also set the token as invalid
// TODO: an error doesn't mean the token is invalid, change this depending on what error is thrown
@@ -122,7 +122,7 @@ const { register, handleSubmit } = useForm();
history.push("/pk-webs/dash")}
+ onClick={() => history.push("/dash")}
>
Continue to dash
diff --git a/src/index.js b/src/index.js
index 2626bf64..c54904ce 100644
--- a/src/index.js
+++ b/src/index.js
@@ -6,7 +6,7 @@ import './index.css';
import App from './App';
ReactDOM.render(
-
+
,
document.getElementById('root')