From 80b920cda29bbb4de7f62782fc334034354ea4ec Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Wed, 9 Jul 2025 17:17:26 -0400 Subject: [PATCH] bargo now includes default nix --- RelevanceNavigation.html | 122 +++++++++++++++++++++++++++++++++++++++ bargo.py | 9 ++- 2 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 RelevanceNavigation.html diff --git a/RelevanceNavigation.html b/RelevanceNavigation.html new file mode 100644 index 0000000..6541135 --- /dev/null +++ b/RelevanceNavigation.html @@ -0,0 +1,122 @@ +@@ + .relevance-high {background:#388e3c;} /* green */ + ++ /* ─────────── Floating navigation arrows ─────────── */ ++ .nav-arrow{ ++ position:fixed; ++ top:50%; ++ transform:translateY(-50%); ++ width:42px; ++ height:42px; ++ border:none; ++ border-radius:50%; ++ background:#0d47a1; ++ color:#fff; ++ font-size:1.35rem; ++ line-height:1; ++ display:flex; ++ align-items:center; ++ justify-content:center; ++ cursor:pointer; ++ box-shadow:0 2px 6px rgba(0,0,0,.25); ++ z-index:110; ++ transition:background .2s ease; ++ } ++ .nav-arrow:hover{ ++ background:#1565c0; ++ } ++ .nav-arrow:disabled{ ++ opacity:.35; ++ cursor:default; ++ } ++ .nav-arrow--left {left:.75rem;} ++ .nav-arrow--right{right:.75rem;} ++ +@@ + + + ++ ++ ++ ++ + + + + \ No newline at end of file diff --git a/bargo.py b/bargo.py index 7fa4f80..09f0a2a 100755 --- a/bargo.py +++ b/bargo.py @@ -7,6 +7,7 @@ import json import argparse import os import subprocess +import shutil import create_git_repo as repo import util.color_io as io @@ -22,6 +23,10 @@ out/ ./cmake-build*/ ./build/ ./out/ +*.sqlite3 +*.sqlite +*.env +.env """ cmake_macros = """macro(sanitizers target_name) @@ -159,7 +164,7 @@ parser.add_argument("--lib", action="store_true", help="Create a lib instead of parser.add_argument("--graphics", "-g", default=False, action="store_true", help="Init with graphics in mind, ie use BLT With Graphics") parser.add_argument("action", help="Type of action to take, currently only 'init' is supported.") -parser.add_argument("name", help="Project Name") +parser.add_argument("name", help="Project Name. This utility creates a directory called this.") args = parser.parse_args() @@ -247,6 +252,8 @@ if use_git: if use_blt: setup_blt(use_git=use_git, blt_url=blt_url, blt_path=blt_path) + if args.graphics: + shutil.copyfile("lib/" + blt_path + "/default.nix", "./default.nix") sub_dirs += "add_subdirectory(lib/" + blt_path + ")" links += "target_link_libraries(${PROJECT_NAME} PRIVATE " + blt_lib + ")"