/
amesk
/
gitlab-analyzer
Обзор
Документация
Войти
/
amesk
/
gitlab-analyzer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
help.html
173 строки
7 KB
amesk
Changed application icon.
06 фев 2025, 12:15
06 фев 2025, 12:15
b98ad8d
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Help - GitLab Manager</title> <link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="node_modules/bootstrap-icons/font/bootstrap-icons.min.css" rel="stylesheet"> <link href="./styles.css" rel="stylesheet"> <style> body { background-color: #f0f0f0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } .container { background-color: #ffffff; padding: 2rem; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 2rem; } h1, h2, h3 { color: #292961; } h1 { margin-bottom: 1.5rem; } h2 { margin-top: 2rem; margin-bottom: 1rem; } h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; } ul { padding-left: 1.5rem; } li { margin-bottom: 0.5rem; } code { background-color: #f8f9fa; padding: 0.2rem 0.4rem; border-radius: 4px; color: #d63384; } .example { background-color: #f8f9fa; padding: 1rem; border-radius: 4px; margin-bottom: 1rem; } .example strong { color: #292961; } </style> </head> <body> <div class="container-fluid"> <div class="row align-items-center mb-3"> <div class="col-md-12"> <div id="pagetitle" class="d-flex align-items-center p-3 bg-primary text-white rounded"> <i class="bi bi-gitlab fs-3 me-3"></i> <div> <h1 class="h4 mb-0">GitLab Manager</h1> <small class="text-white-50">Manage your GitLab issues with ease</small> </div> </div> </div> </div> <div class="scrollable-container-help"> <h1>Help</h1> <p>This is the help page for the GitLab Manager application.</p> <p>Here you can find information on how to use the application:</p> <ul> <li>Enter the Project ID to load issues.</li> <li>Use the search bar to filter issues by title, labels, or ID.</li> <li>Select issues and modify their labels using the form at the bottom.</li> </ul> <h1>Advanced Issues Filtering</h1> <p>This functionality is designed to filter a list of issues (or tasks) based on a custom condition that can include logical operators (AND, OR, NOT) and regular expressions. The class provides methods to tokenize the input condition, parse it into a JavaScript expression, and evaluate the condition against each issue in the list.</p> <h2>Key Features:</h2> <ul> <li><strong>Tokenization:</strong> The input condition is split into tokens (e.g., numbers, operators, parentheses, or regular expressions).</li> <li><strong>Logical Operators:</strong> Supports AND, OR, and NOT operators for complex filtering.</li> <li><strong>Regular Expressions:</strong> Allows filtering based on regex patterns in issue titles, labels, or IDs.</li> <li><strong>Dynamic Filter Function:</strong> Constructs a JavaScript function dynamically to evaluate the condition for each issue.</li> <li><strong>Error Handling:</strong> Gracefully handles invalid syntax or errors during filtering.</li> </ul> <h2>Example Queries:</h2> <p>Here are some examples of conditions that <strong>RegexFilter</strong> can handle:</p> <div class="example"> <h3>Simple Title Match:</h3> <p><strong>Condition:</strong> "bug"</p> <p><strong>Description:</strong> Filters issues where the title contains the word "bug" (case-insensitive).</p> </div> <div class="example"> <h3>Combining Conditions with AND:</h3> <p><strong>Condition:</strong> "bug AND critical"</p> <p><strong>Description:</strong> Filters issues where the title contains both "bug" and "critical".</p> </div> <div class="example"> <h3>Combining Conditions with OR:</h3> <p><strong>Condition:</strong> "bug OR feature"</p> <p><strong>Description:</strong> Filters issues where the title contains either "bug" or "feature".</p> </div> <div class="example"> <h3>Using NOT to Exclude:</h3> <p><strong>Condition:</strong> "bug NOT low"</p> <p><strong>Description:</strong> Filters issues where the title contains "bug" but not "low".</p> </div> <div class="example"> <h3>Complex Logical Expressions:</h3> <p><strong>Condition:</strong> "(bug OR feature) AND (critical OR high)"</p> <p><strong>Description:</strong> Filters issues where the title contains either "bug" or "feature", and also contains either "critical" or "high".</p> </div> <div class="example"> <h3>Regular Expressions:</h3> <p><strong>Condition:</strong> RE("b[aeiou]g")</p> <p><strong>Description:</strong> Filters issues where the title matches the regex pattern <code>b[aeiou]g</code> (e.g., "bag", "beg", "big", "bog", "bug").</p> </div> <div class="example"> <h3>Mixing Regex and Keywords:</h3> <p><strong>Condition:</strong> RE("b[aeiou]g") AND critical</p> <p><strong>Description:</strong> Filters issues where the title matches the regex pattern <code>b[aeiou]g</code> and also contains the word "critical".</p> </div> <div class="example"> <h3>Filtering by Issue ID:</h3> <p><strong>Condition:</strong> "123"</p> <p><strong>Description:</strong> Filters issues where the ID is exactly 123.</p> </div> <div class="example"> <h3>Combining ID and Text:</h3> <p><strong>Condition:</strong> "123 AND bug"</p> <p><strong>Description:</strong> Filters issues where the ID is 123 and the title contains "bug".</p> </div> <div class="example"> <h3>Nested Conditions:</h3> <p><strong>Condition:</strong> "(bug OR feature) AND (critical OR (high AND urgent))"</p> <p><strong>Description:</strong> Filters issues where the title contains either "bug" or "feature", and also contains either "critical" or both "high" and "urgent".</p> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> </body> </html>