From 874d99a7cc581ac64261ab8956c4319ded6b434b Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Wed, 4 Jun 2025 16:47:30 +0530 Subject: [PATCH 01/16] Update index.js added info tooltip for LNURL-auth button --- pages/settings/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pages/settings/index.js b/pages/settings/index.js index 5ad2f813c..81ef23668 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -861,10 +861,28 @@ function AuthMethods ({ methods, apiKeyEnabled }) { :
} else if (provider === 'lightning') { return ( +
await unlink(provider)} /> + +
    +
  • + This is an LNURL-auth. Not sure what it is? Check here +
  • +
  • + Linking your Lightning wallet allows you to quickly sign in and zap directly from your wallet. +
  • +
  • + You can unlink your wallet at any time. +
  • +
  • + Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets +
  • +
+
+
) } else if (provider === 'nostr') { return await unlink(provider)} /> From 7be8fc5c9c86f28d980ae203e5e6d21f6ca08ebe Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Thu, 5 Jun 2025 10:05:21 +0530 Subject: [PATCH 02/16] Update index.js --- pages/settings/index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index 81ef23668..8ed0031a6 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -861,15 +861,15 @@ function AuthMethods ({ methods, apiKeyEnabled }) { :
} else if (provider === 'lightning') { return ( -
+
await unlink(provider)} /> - +
  • - This is an LNURL-auth. Not sure what it is? Check here + This is an LNURL-auth. Not sure what it is? Check here
  • Linking your Lightning wallet allows you to quickly sign in and zap directly from your wallet. @@ -878,12 +878,12 @@ function AuthMethods ({ methods, apiKeyEnabled }) { You can unlink your wallet at any time.
  • - Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets + Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets
-
-
- ) + +
+ ) } else if (provider === 'nostr') { return await unlink(provider)} /> } else { From a959a3359fb9904eee3606f87f836e87d403abb8 Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Thu, 5 Jun 2025 11:33:48 +0530 Subject: [PATCH 03/16] Update index.js --- pages/settings/index.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index 8ed0031a6..42281b486 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -869,21 +869,18 @@ function AuthMethods ({ methods, apiKeyEnabled }) {
  • - This is an LNURL-auth. Not sure what it is? Check here -
  • -
  • - Linking your Lightning wallet allows you to quickly sign in and zap directly from your wallet. + This is an LNURL-auth. Not sure what it is? Check here
  • You can unlink your wallet at any time.
  • - Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets + Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets
-
- - ) + + + ) } else if (provider === 'nostr') { return await unlink(provider)} /> } else { From 23f2d2b8c620d6afa10b2df6b2c9291125aed6ad Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Thu, 5 Jun 2025 11:57:20 +0530 Subject: [PATCH 04/16] Update lint.yml --- .github/workflows/lint.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 00267f4b4..577539417 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,7 @@ name: Lint Check -on: [pull_request] +on: + [pull_request]: + workflow_dispatch: jobs: lint-run: From da48f1ee0c462e1a7bcfcd4baba39f40afb80ffb Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Thu, 5 Jun 2025 11:57:51 +0530 Subject: [PATCH 05/16] Update lint.yml --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 577539417..89eb9b6ba 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,6 @@ name: Lint Check on: - [pull_request]: + pull_request: workflow_dispatch: jobs: From 3105a1180e72def0d039b6a3592a8da5ca3f3050 Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Thu, 5 Jun 2025 12:04:05 +0530 Subject: [PATCH 06/16] Update index.js --- pages/settings/index.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index 42281b486..30ada94f9 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -860,27 +860,27 @@ function AuthMethods ({ methods, apiKeyEnabled }) { ) :
} else if (provider === 'lightning') { - return ( + return (
- await unlink(provider)} - /> - -
    -
  • - This is an LNURL-auth. Not sure what it is? Check here -
  • -
  • - You can unlink your wallet at any time. -
  • -
  • - Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets -
  • -
-
+ await unlink(provider)} + /> + +
    +
  • + This is an LNURL-auth. Not sure what it is? Check here +
  • +
  • + You can unlink your wallet at any time. +
  • +
  • + Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets. +
  • +
+
- ) + ) } else if (provider === 'nostr') { return await unlink(provider)} /> } else { From 326ececb8515259831426434c7fbcca6a7f8756c Mon Sep 17 00:00:00 2001 From: Holonite Date: Thu, 5 Jun 2025 12:34:43 +0530 Subject: [PATCH 07/16] Update index.js fixed linting errors --- pages/settings/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index 30ada94f9..08b0e907b 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -860,7 +860,7 @@ function AuthMethods ({ methods, apiKeyEnabled }) { ) :
} else if (provider === 'lightning') { - return ( + return (
Date: Thu, 5 Jun 2025 12:42:04 +0530 Subject: [PATCH 08/16] Update lint.yml --- .github/workflows/lint.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89eb9b6ba..00267f4b4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,5 @@ name: Lint Check -on: - pull_request: - workflow_dispatch: +on: [pull_request] jobs: lint-run: From bb43ef00d163c239e705d2a410f54e341092d5f4 Mon Sep 17 00:00:00 2001 From: Holonite Date: Thu, 5 Jun 2025 22:19:00 +0530 Subject: [PATCH 09/16] the license file in the root directory of this source tree was not mentioned in the package-lock.json file. --- package-lock.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package-lock.json b/package-lock.json index 22c5ae194..9f1e6eaf2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18851,6 +18851,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "eslint": "^8.41.0", "eslint-config-standard": "17.1.0", From be5541806e2f9bcd30c3889fd34b2f0b2dd8ab08 Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Thu, 5 Jun 2025 22:24:45 +0530 Subject: [PATCH 10/16] Update package-lock.json --- package-lock.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 9f1e6eaf2..22c5ae194 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18851,7 +18851,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "eslint": "^8.41.0", "eslint-config-standard": "17.1.0", From bfab38ef3089d6a0f28ef4c7d8f506c28a10fefb Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Fri, 6 Jun 2025 08:52:51 +0530 Subject: [PATCH 11/16] Update index.js removed extra padding --- pages/settings/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index 08b0e907b..b0f2d2edd 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -866,7 +866,7 @@ function AuthMethods ({ methods, apiKeyEnabled }) { key={provider} provider={provider} status={methods[provider]} unlink={async () => await unlink(provider)} /> - +
  • This is an LNURL-auth. Not sure what it is? Check here From d893949d010ffef9b1f0b75e174e4f1caa54d6fc Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Fri, 6 Jun 2025 14:24:49 +0530 Subject: [PATCH 12/16] Update index.js --- pages/settings/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index b0f2d2edd..2450d44fc 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -861,7 +861,7 @@ function AuthMethods ({ methods, apiKeyEnabled }) { :
    } else if (provider === 'lightning') { return ( -
    +
    await unlink(provider)} From 736c7d2df763f7a04fd44180dc94839bd0ac024e Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Fri, 6 Jun 2025 14:28:02 +0530 Subject: [PATCH 13/16] Update index.js --- pages/settings/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index 2450d44fc..9420d6f68 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -861,7 +861,7 @@ function AuthMethods ({ methods, apiKeyEnabled }) { :
    } else if (provider === 'lightning') { return ( -
    +
    await unlink(provider)} From f3ecb22faf090fee4b491e76c967624440096a10 Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Sun, 8 Jun 2025 21:57:09 +0530 Subject: [PATCH 14/16] Update sndev --- sndev | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sndev b/sndev index fa38b2a24..28629e03c 100755 --- a/sndev +++ b/sndev @@ -1,4 +1,13 @@ -#!/bin/sh +#!/bin/bash + +# Detect if running in GitHub Codespaces +if [ "$CODESPACES" = "true" ]; then + # Ensure Docker is running in Codespaces + if ! docker info > /dev/null 2>&1; then + echo "Docker is not running. Please start Docker in your Codespace." + exit 1 + fi +fi set -e set -a # automatically export all variables @@ -687,4 +696,4 @@ call() { fi } -call "sndev__$1" "$@" \ No newline at end of file +call "sndev__$1" "$@" From f0a02004c2d9467a5dd16cddb91526d34362734a Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Sun, 8 Jun 2025 22:11:02 +0530 Subject: [PATCH 15/16] Update index.js --- pages/settings/index.js | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/pages/settings/index.js b/pages/settings/index.js index 9420d6f68..5ad2f813c 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -861,25 +861,10 @@ function AuthMethods ({ methods, apiKeyEnabled }) { :
    } else if (provider === 'lightning') { return ( -
    - await unlink(provider)} - /> - -
      -
    • - This is an LNURL-auth. Not sure what it is? Check here -
    • -
    • - You can unlink your wallet at any time. -
    • -
    • - Tip: Use a wallet that supports LNURL-auth for seamless experience. Check the list of supported wallets. -
    • -
    -
    -
    + await unlink(provider)} + /> ) } else if (provider === 'nostr') { return await unlink(provider)} /> From dfb5751d2e116c10602a288f6f227e8dab2a01c4 Mon Sep 17 00:00:00 2001 From: Axel Vyrn Date: Sat, 14 Jun 2025 09:00:20 +0530 Subject: [PATCH 16/16] Update sndev --- sndev | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/sndev b/sndev index 28629e03c..5e19432c9 100755 --- a/sndev +++ b/sndev @@ -1,12 +1,26 @@ #!/bin/bash +# sndev - Stacker News Development Environment +# This script manages a docker based Stacker News development environment. +# It provides commands to start, stop, and manage the environment, as well as +# to interact with the Stacker News application, database, and other services. +# Usage: sndev [COMMAND] [OPTIONS] +# Example: sndev start - starts the development environment +# Example: sndev stop - stops the development environment +# Example: sndev logs - shows logs from the development environment +# Example: sndev cli lnd getinfo - runs a command on the lnd service +# Example: sndev pr 123 - fetches and checks out pull request #123 +# Example: sndev login nym - logs in as a nym +# Example: sndev set_balance nym 1000000 - sets the balance of a nym to 1,000,000 millisatoshis +# Example: sndev fund lnd_bolt11 - pays a bolt11 for funding +# Example: sndev withdraw 1000 - creates a bolt11 for withdrawal of 1000 sats +# Example: sndev psql - opens psql on the database +# Example: sndev prisma migrate dev - runs a prisma migration -# Detect if running in GitHub Codespaces if [ "$CODESPACES" = "true" ]; then - # Ensure Docker is running in Codespaces - if ! docker info > /dev/null 2>&1; then - echo "Docker is not running. Please start Docker in your Codespace." - exit 1 - fi + export CPU_SHARES_IMPORTANT=1024 + export CPU_SHARES_MODERATE=512 + export CPU_SHARES_LOW=256 + export OPENSEARCH_PASSWORD=mVchg1T5oA9wudUh fi set -e