Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ yarn-error.log*
next-env.d.ts

#sql
/supabase
/supabase
2 changes: 1 addition & 1 deletion .vercelignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
supabase
rls
scripts
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export async function middleware(req: NextRequest) {

export const config = {
matcher:
"/((?!api|_next/static|favicon.ico|login|demo|txt|svg|privacypolicy.txt|termsandconditions.txt|brand-logos).*)",
"/((?!api|_next/static|favicon.ico|login|demo|txt|svg|privacypolicy.txt|termsandconditions.txt|brand-logos|acknowledgements).*)",
};

export enum OnboardingState {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"slink": "supabase link --project-ref hhrehffmdrcjqowwvgqg",
"static": "next export",
"ionic:build": "yarn build && yarn static",
"ionic:serve": "npm run start"
"ionic:serve": "npm run start",
"license": "echo \"Updating licenses\" && cd ./scripts/ && deno task export-licenses && npm run fmt",
"postinstall": "echo \"Make sure to run `yarn run license` to update licenses on install/uninstall!\""
},
"dependencies": {
"@aws-sdk/client-ses": "^3.409.0",
Expand Down
32 changes: 32 additions & 0 deletions pages/acknowledgements.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { NextPageWithLayout } from "./_app";
import Layout from "@/components/layout/layout";
import { ReactElement, Fragment } from "react";
import licenses from "../public/licenses.json";

const Acknowledgements: NextPageWithLayout = () => {
return (
<>
<h1>Acknowledgements</h1>
<h2>We use the following packages under these licenses:</h2>
<div className="grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">
{Object.entries(licenses).map(([license, packages]) => (
<div key={license} className="w-auto">
<p className="w-auto">{license}</p>

{packages.map((pkg) => (
<p key={pkg} className="ml-6">
{pkg}
</p>
))}
</div>
))}
</div>
</>
);
};

export default Acknowledgements;

Acknowledgements.getLayout = function getLayout(page: ReactElement) {
return <Layout>{page}</Layout>;
};
19 changes: 0 additions & 19 deletions pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,3 @@ Login.getLayout = function getLayout(page: ReactElement) {
</BasicLayout>
);
};

/*<button
className="mt-8 flex content-center rounded-md bg-gray-200 px-4 py-3 text-[1.05rem] font-medium hover:bg-gray-300"
onClick={() =>
supabaseClient.auth.signInWithPassword({
email: "[email protected]",
password: "demo",
})
}
>
<Image
src="/brand-logos/coursify.svg"
alt="Microsoft Logo"
width={25}
height={25}
className="mr-4"
/>
Demo Coursify LMS
</button>*/
Loading