This commit is contained in:
ADAMJR 2021-09-25 16:54:06 +01:00
parent 6dce9e1ae0
commit 13888d1b67
4 changed files with 11 additions and 25 deletions

View File

@ -10,7 +10,6 @@ echo $CNAME > CNAME
BIN_PATH="../../bin/build"
REDIRECT_SCRIPT=$(cat $BIN_PATH/redirect-script.html)
cp $BIN_PATH/404.html .
sed -i '/<\/body><\/html>/ i' $REDIRECT_SCRIPT index.html
git init
git remote add origin https://github.com/accord-dot-app/accord-dot-app.github.io

View File

@ -1,22 +0,0 @@
<script type="text/javascript" defer>
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script checks to see if a redirect is present in the query string,
// converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function(l) {
if (l.search[1] === '/' ) {
var decoded = l.search.slice(1).split('&').map(function(s) {
return s.replace(/~and~/g, '&')
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))
</script>

View File

@ -35,7 +35,7 @@ const ChannelSettings: React.FunctionComponent = () => {
<div className="col-span-6 h-full">
{tab === 'overview' && <ChannelSettingsOverview />}
{tab === 'perms' && <div className="mt-20">In development...</div>}
{tab === 'perms' && <div>In development...</div>}
</div>
<div className="col-span-2 h-full">

11
types/ws.d.ts vendored
View File

@ -203,7 +203,6 @@ declare namespace WS {
export interface UserUpdate {
avatarURL?: string;
username?: string;
email?: string;
ignored?: UserTypes.Self['ignored'];
token: string;
}
@ -342,4 +341,14 @@ declare namespace WS {
partialUser: Partial<UserTypes.Self>;
}
}
}
/** @deprecated In process of being replaced with Partial. */
// FIXME: Removing this breaks react.
export namespace PartialEntity {
export type Guild = Partial<Entity.Guild>;
export type GuildMember = Partial<Entity.GuildMember>;
export type Message = Partial<Entity.Message>;
export type Role = Partial<Entity.Role>;
export type User = Partial<UserTypes.Self>;
}