diff --git a/packages/default.gbui/aggregated_code.md b/packages/default.gbui/aggregated_code.md deleted file mode 100644 index 3d81aebe..00000000 --- a/packages/default.gbui/aggregated_code.md +++ /dev/null @@ -1,1961 +0,0 @@ -```sh ./a.sh -#!/bin/bash - -# Help message function -show_help() { - echo "Usage: $0 [directory] [output_file]" - echo - echo "Aggregates code files into a single markdown file with code blocks" - echo - echo "Arguments:" - echo " directory Directory to scan for code files (default: current directory)" - echo " output_file Output file name (default: aggregated_code.md)" - echo - echo "Example:" - echo " $0 ./my_project output.md" -} - -# Default values -dir="${1:-.}" -output_file="${2:-aggregated_code.md}" - -# Show help if requested -if [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then - show_help - exit 0 -fi - -# Check if directory exists -if [ ! -d "$dir" ]; then - echo "Error: Directory '$dir' not found!" - exit 1 -fi - -# Clear or create output file -> "$output_file" - -# Find and process files -find "$dir" -type f \( -name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.jsx" -o -name "*.tsx" -o -name "*.html" -o -name "*.css" -o -name "*.java" -o -name "*.cpp" -o -name "*.c" -o -name "*.sh" \) | while read -r file; do - # Get the file extension - ext="${file##*.}" - - # Add the markdown code block header - echo -e "\`\`\`$ext $file" >> "$output_file" - - # Add the file content - cat "$file" >> "$output_file" - - # Add the closing code block - echo -e "\`\`\`\n" >> "$output_file" -done - -echo "Files have been aggregated into $output_file"``` - -```html ./public/index.html - - - - - - - - - - - - {title} | General Bots - - - - -
- - -``` - -```js ./src/players/GBUrlPlayer.js -/*****************************************************************************\ -| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® | -| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | -| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ | -| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | -| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | -| | -| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | -| Licensed under the AGPL-3.0. | -| | -| According to our dual licensing model, this program can be used either | -| under the terms of the GNU Affero General Public License, version 3, | -| or under a proprietary license. | -| | -| The texts of the GNU Affero General Public License with an additional | -| permission and of our proprietary license can be found at and | -| in the LICENSE file you have received along with this program. | -| | -| This program is distributed in the hope that it will be useful, | -| but WITHOUT ANY WARRANTY; without even the implied warranty of | -| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | -| GNU Affero General Public License for more details. | -| | -| "General Bots" is a registered trademark of pragmatismo.cloud. | -| The licensing of the program under the AGPLv3 does not imply a | -| trademark license. Therefore any rights, title and interest in | -| our trademarks remain entirely with us. | -| | -\*****************************************************************************/ - -import React, { Component } from "react"; - -class GBUrlPlayer extends Component { - constructor() { - super(); - this.state = { - src: "" - }; - } - - play(url) { - this.setState({ src: url }); - } - - stop() { - this.setState({ src: "" }); - } - render() { - return ( -
-