Skip to content

Commit

Permalink
fix: mqtt next auth styles
Browse files Browse the repository at this point in the history
  • Loading branch information
cyator committed Nov 16, 2022
1 parent 20d8c64 commit 5d38405
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ COPY . ./

#ARG MQTT_URI
#ENV MQTT_URI=$MQTT_URI
ENV NEXTAUTH_URL=http://localhost:3000
ENV NEXTAUTH_SECRET="lYa2X1BtF4GFAlAYnCv72gD9nDnvkYfx9kst2fgdsjo="

# Uncomment the following line to disable telemetry at build time
# ENV NEXT_TELEMETRY_DISABLED 1

Expand Down Expand Up @@ -58,7 +61,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/.env.production ./.env.production

# Environment variables must be redefined at run time
#ARG MQTT_URI
#ENV MQTT_URI=$MQTT_URI
ENV NEXTAUTH_URL=http://localhost:3000
ENV NEXTAUTH_SECRET="lYa2X1BtF4GFAlAYnCv72gD9nDnvkYfx9kst2fgdsjo="

# Uncomment the following line to disable telemetry at run time
# ENV NEXT_TELEMETRY_DISABLED 1
Expand Down
6 changes: 3 additions & 3 deletions config/mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ module.exports = {

switch (mode) {
case 'ignite':
publish(client, 'esp32/ignite', status);
publish(client, 'controls/ignite', status);
break;
case 'eject':
publish(client, 'esp32/ejection', status);
publish(client, 'controls/ejection', status);
break;
case 'eject2':
publish(client, 'esp32/ejection2', status);
publish(client, 'controls/ejection2', status);
break;
default:
break;
Expand Down
2 changes: 1 addition & 1 deletion pages/auth/signin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Signin() {
};

return (
<div className="w-screen h-screen flex justify-center items-center bg-green-100">
<div className="max-w-screen h-screen flex justify-center items-center bg-green-100">
<div>
{error && (
<div
Expand Down
2 changes: 1 addition & 1 deletion pages/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function Dashboard() {
</Head>

<main className="p-1">
<div className="text-sm lg:text-base text-center">
<div className="py-2 lg:py-0 text-sm lg:text-base text-center">
The WebSocket is currently {connectionStatus}
</div>
<div className="absolute py-2 px-4 top-0 left-0">
Expand Down
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ function Home() {
<h1 className="font-medium leading-tight text-4xl">
Nakuja Project
</h1>
<button className="my-4 bg-transparent hover:bg-blue-500 text-blue-700 text-sm font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent w-1/6 h-16">
<button className="my-4 bg-transparent hover:bg-blue-500 text-blue-700 text-sm font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent w-2/6 lg:w-1/6 h-16">
<Link href="/dashboard">Dashboard</Link>
</button>
<button
className="my-4 bg-transparent hover:bg-blue-500 text-blue-700 text-sm font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent w-1/6 h-16"
className="my-4 bg-transparent hover:bg-blue-500 text-blue-700 text-sm font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent w-2/6 lg:w-1/6 h-16"
onClick={() => signIn()}
>
Login
Expand Down

0 comments on commit 5d38405

Please sign in to comment.