Remove some commented code

This commit is contained in:
Stan Wohlwend 2024-03-03 12:33:05 +01:00
parent dd4eaf507b
commit c0d5166e8c
5 changed files with 1 additions and 51 deletions

View File

@ -5,6 +5,4 @@ import CustomOAuthSignIn from "./custom-oauth";
export default function Page() {
return <SignIn fullPage redirectUrl={stackServerApp.urls.home} />;
// return <CustomCredentialSignIn />;
// return <CustomOAuthSignIn />;
}

View File

@ -1,33 +1,8 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
export default sidebars;

View File

@ -23,10 +23,3 @@ html[data-theme='dark'] {
.prism-code {
background-color: rgb(15,23,42,50) !important;
}
/* .navbar {
border-bottom: 1px solid #151515;
padding: 0px;
height: 0px;
visibility: hidden;
} */

View File

@ -120,8 +120,6 @@ export function Sidebar(props : SheetProps & {
flexDirection: 'column',
}}
>
{/* <SidebarHeader /> */}
<Stack sx={{ marginLeft: 2, justifyContent: 'center', height: headerHeight - 1 }}>
<Logo full height={24} href="/projects" />
</Stack>

View File

@ -143,21 +143,7 @@ export class OauthModel implements AuthorizationCodeModel {
}
async revokeToken(token: RefreshToken): Promise<boolean> {
// No refreshToken rotation for now
// try{
// const deletedToken = await prismaClient.projectUserRefreshToken.delete({
// where: {
// refreshToken: token.refreshToken
// }
// });
// return !!deletedToken;
// } catch (e) {
// if (! (e instanceof PrismaClientKnownRequestError)) {
// console.error(e);
// }
// return false;
// }
// No refreshToken rotation for now (see Git history for old code)
return true;
}