From a51be9c00ace2169f35f3cad29265bac808a8caa Mon Sep 17 00:00:00 2001 From: Maicol Hernandez Date: Mon, 13 Jan 2025 00:54:01 -0500 Subject: [PATCH 1/3] issues with unread variables --- client/nebula/src/utils/preloadImage.tsx | 1 - client/nebula/src/views/profile.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/nebula/src/utils/preloadImage.tsx b/client/nebula/src/utils/preloadImage.tsx index 1f55c59..16ab142 100644 --- a/client/nebula/src/utils/preloadImage.tsx +++ b/client/nebula/src/utils/preloadImage.tsx @@ -1,5 +1,4 @@ import React, { useState, useEffect } from "react"; -import Loading from "../components/loading"; interface PreloadedImageProps { src: string; diff --git a/client/nebula/src/views/profile.tsx b/client/nebula/src/views/profile.tsx index f71d6b2..d2c7b17 100644 --- a/client/nebula/src/views/profile.tsx +++ b/client/nebula/src/views/profile.tsx @@ -11,7 +11,7 @@ interface FormData { } const Profile = () => { - const { user, defaultPfp, updateUser, isAnonymous } = useAuth(); + const { user, defaultPfp, updateUser } = useAuth(); const navigate = useNavigate(); //view state From 6f0070f18fcd3eef4286c2e22c498679e21fee34 Mon Sep 17 00:00:00 2001 From: Maicol Hernandez Date: Tue, 14 Jan 2025 03:07:40 -0500 Subject: [PATCH 2/3] das --- shell.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/shell.nix b/shell.nix index faa816a..a4edc5b 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,6 @@ { pkgs ? import {} }: +// ocmmnet pkgs.mkShell { buildInputs = [ pkgs.nodejs From 7208cfa72b62e6eff7b562862fa47d9c3df33d2b Mon Sep 17 00:00:00 2001 From: Michael Hernandez <87054757+mvykool@users.noreply.github.com> Date: Mon, 10 Mar 2025 19:10:32 -0400 Subject: [PATCH 3/3] Delete shell.nix --- shell.nix | 68 ------------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 shell.nix diff --git a/shell.nix b/shell.nix deleted file mode 100644 index a4edc5b..0000000 --- a/shell.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ pkgs ? import {} }: - -// ocmmnet -pkgs.mkShell { - buildInputs = [ - pkgs.nodejs - pkgs.dockerTools - pkgs.docker - ]; - - shellHook = '' - echo "Welcome to nebula-local env" - - # --- Client setup --- - # Check if the client dependencies are installed - if [ ! -d "client/nebula/node_modules" ]; then - echo "Installing client dependencies..." - cd client/nebula && npm install # Or use yarn if you prefer - fi - - # --- Server setup --- - # Check if the .uploads folder exists, create it if not - if [ ! -d "server/.uploads" ]; then - echo "Creating .uploads folder in the server directory..." - mkdir -p server/.uploads - fi - - # Check if the .env file exists in the server directory, create it if not - if [ ! -f "server/.env" ]; then - echo "Creating .env file for NestJS backend..." - cat < server/.env -# Sample environment variables for NestJS backend -DB_HOST="localhost" -DB_PORT="5432" -DB_USERNAME="default_username" -DB_NAME="default_name" -DB_PASSWORD="default_password" -SECRET="default_secret" -SECRET_REFRESH="default_refresh" -EOF - -fi - - # --- Docker setup --- - # Check if Docker is running, if not, try to start it - if ! docker info > /dev/null 2>&1; then - echo "Docker is not running, attempting to start Docker..." - sudo systemctl start docker - fi - - # Start the Docker container for Postgres (via docker-compose) - if [ ! "$(docker ps -q -f name=nestjs-postgres)" ]; then - echo "Starting Docker container for Postgres..." - cd server && docker-compose --env-file server/.env -f docker-compose.yml up -d - else - echo "Postgres Docker container is already running." - fi - - # --- Server setup --- - # Install server dependencies if necessary - if [ ! -d "server/node_modules" ]; then - echo "Installing server dependencies..." - cd server && npm install - fi - - echo "Environment setup is complete. You can now run the backend and frontend servers." - ''; -}