Skip to content

Commit

Permalink
added dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
xiduzo committed Nov 7, 2023
1 parent c039787 commit df70e4c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 26 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Basic `dependabot.yml` file with
# minimum configuration for two package managers

version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "weekly"

# # Enable version updates for Docker
# - package-ecosystem: "docker"
# # Look for a `Dockerfile` in the `root` directory
# directory: "/"
# # Check for updates once a week
# schedule:
# interval: "weekly"
4 changes: 3 additions & 1 deletion apps/nextjs/src/pages/api/cron/sync-fissa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export default async function handler(_: NextApiRequest, res: NextApiResponse) {

if (delay >= CRON_INTERVAL) continue;

logger.info(`${fissa.pin}, next track in ${delay}ms`);
logger.info(
`${fissa.pin}, next track in ${delay}ms, process running for: ${process.uptime()}s`,
);

const promise = new Promise<string>((resolve) => {
setTimeout(() => {
Expand Down
49 changes: 24 additions & 25 deletions apps/nextjs/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { NextPage } from "next";
import Head from "next/head";
import { signIn, signOut } from "next-auth/react";

import { api } from "~/utils/api";

Expand All @@ -22,7 +21,7 @@ const Home: NextPage = () => {
<h1 className="text-5xl font-extrabold tracking-tight sm:text-[5rem]">
Create <span className="text-pink-400">T3</span> Turbo
</h1>
<AuthShowcase />
{/* <AuthShowcase /> */}
<button onClick={() => mutateAsync([])}>Create fissa</button>
</div>
</main>
Expand All @@ -32,28 +31,28 @@ const Home: NextPage = () => {

export default Home;

const AuthShowcase: React.FC = () => {
const { data: session } = api.auth.getSession.useQuery();
// const AuthShowcase: React.FC = () => {
// const { data: session } = api.auth.getSession.useQuery();

const { data: secretMessage } = api.auth.getSecretMessage.useQuery(
undefined, // no input
{ enabled: !!session?.user },
);
// const { data: secretMessage } = api.auth.getSecretMessage.useQuery(
// undefined, // no input
// { enabled: !!session?.user },
// );

return (
<div className="flex flex-col items-center justify-center gap-4">
{session?.user && (
<p className="text-center text-2xl text-white">
{session && <span>Logged in as {session?.user?.name}</span>}
{secretMessage && <span> - {secretMessage}</span>}
</p>
)}
<button
className="rounded-full bg-white/10 px-10 py-3 font-semibold text-white no-underline transition hover:bg-white/20"
onClick={session ? () => void signOut() : () => void signIn()}
>
{session ? "Sign out" : "Sign in"}
</button>
</div>
);
};
// return (
// <div className="flex flex-col items-center justify-center gap-4">
// {session?.user && (
// <p className="text-center text-2xl text-white">
// {session && <span>Logged in as {session?.user?.name}</span>}
// {secretMessage && <span> - {secretMessage}</span>}
// </p>
// )}
// <button
// className="rounded-full bg-white/10 px-10 py-3 font-semibold text-white no-underline transition hover:bg-white/20"
// onClick={session ? () => void signOut() : () => void signIn()}
// >
// {session ? "Sign out" : "Sign in"}
// </button>
// </div>
// );
// };

1 comment on commit df70e4c

@vercel
Copy link

@vercel vercel bot commented on df70e4c Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.