Просмотр исходного кода

init: fx file server stack with docs and clean repo layout

root 1 месяц назад
Сommit
b72bcd9918
100 измененных файлов с 37108 добавлено и 0 удалено
  1. 25 0
      .gitignore
  2. 114 0
      README.md
  3. 173 0
      compose.yaml
  4. 10 0
      converter/Dockerfile
  5. 99 0
      converter/convert.py
  6. 80 0
      filebrowser-proxy/default.conf
  7. 284 0
      filebrowser-proxy/fb-brand-hook.js
  8. 139 0
      filebrowser-proxy/fb-inline-search.js
  9. 72 0
      filebrowser-proxy/fb-oo-hook.js
  10. 39 0
      filebrowser-proxy/fb-root-filter.js
  11. 208 0
      filebrowser-proxy/fb-search.css
  12. 38 0
      filebrowser-proxy/fb-search.html
  13. 306 0
      filebrowser-proxy/fb-search.js
  14. 29 0
      filebrowser-proxy/fb-theme-hook.js
  15. 373 0
      filebrowser-proxy/fb-theme.css
  16. BIN
      filebrowser-proxy/frappe.webp
  17. BIN
      filebrowser-proxy/latte.webp
  18. BIN
      filebrowser-proxy/macchiato.webp
  19. BIN
      filebrowser-proxy/mocha.webp
  20. BIN
      filebrowser-proxy/preview.webp
  21. 8 0
      filebrowser/settings.json
  22. 27 0
      hugo/Dockerfile
  23. 12 0
      hugo/bootstrap/.babelrc.js
  24. 12 0
      hugo/bootstrap/.browserslistrc
  25. 66 0
      hugo/bootstrap/.bundlewatch.config.json
  26. 131 0
      hugo/bootstrap/.cspell.json
  27. 11 0
      hugo/bootstrap/.editorconfig
  28. 9 0
      hugo/bootstrap/.eslintignore
  29. 240 0
      hugo/bootstrap/.eslintrc.json
  30. 8 0
      hugo/bootstrap/.gitattributes
  31. 3 0
      hugo/bootstrap/.github/CODEOWNERS
  32. 258 0
      hugo/bootstrap/.github/CONTRIBUTING.md
  33. 62 0
      hugo/bootstrap/.github/ISSUE_TEMPLATE/bug_report.yml
  34. 4 0
      hugo/bootstrap/.github/ISSUE_TEMPLATE/config.yml
  35. 29 0
      hugo/bootstrap/.github/ISSUE_TEMPLATE/feature_request.yml
  36. 38 0
      hugo/bootstrap/.github/PULL_REQUEST_TEMPLATE.md
  37. 11 0
      hugo/bootstrap/.github/SUPPORT.md
  38. 3 0
      hugo/bootstrap/.github/codeql/codeql-config.yml
  39. 26 0
      hugo/bootstrap/.github/dependabot.yml
  40. 60 0
      hugo/bootstrap/.github/release-drafter.yml
  41. 46 0
      hugo/bootstrap/.github/workflows/browserstack.yml
  42. 43 0
      hugo/bootstrap/.github/workflows/bundlewatch.yml
  43. 32 0
      hugo/bootstrap/.github/workflows/calibreapp-image-actions.yml
  44. 44 0
      hugo/bootstrap/.github/workflows/codeql.yml
  45. 36 0
      hugo/bootstrap/.github/workflows/cspell.yml
  46. 40 0
      hugo/bootstrap/.github/workflows/css.yml
  47. 50 0
      hugo/bootstrap/.github/workflows/docs.yml
  48. 26 0
      hugo/bootstrap/.github/workflows/issue-close-require.yml
  49. 26 0
      hugo/bootstrap/.github/workflows/issue-labeled.yml
  50. 52 0
      hugo/bootstrap/.github/workflows/js.yml
  51. 37 0
      hugo/bootstrap/.github/workflows/lint.yml
  52. 49 0
      hugo/bootstrap/.github/workflows/node-sass.yml
  53. 23 0
      hugo/bootstrap/.github/workflows/release-notes.yml
  54. 46 0
      hugo/bootstrap/.gitignore
  55. 12 0
      hugo/bootstrap/.prettierignore
  56. 6 0
      hugo/bootstrap/.stylelintignore
  57. 60 0
      hugo/bootstrap/.stylelintrc.json
  58. 132 0
      hugo/bootstrap/CODE_OF_CONDUCT.md
  59. 21 0
      hugo/bootstrap/LICENSE
  60. 247 0
      hugo/bootstrap/README.md
  61. 7 0
      hugo/bootstrap/SECURITY.md
  62. 20 0
      hugo/bootstrap/build/banner.mjs
  63. 108 0
      hugo/bootstrap/build/build-plugins.mjs
  64. 113 0
      hugo/bootstrap/build/change-version.mjs
  65. 169 0
      hugo/bootstrap/build/docs-prep.sh
  66. 64 0
      hugo/bootstrap/build/generate-sri.mjs
  67. 17 0
      hugo/bootstrap/build/postcss.config.mjs
  68. 59 0
      hugo/bootstrap/build/rollup.config.mjs
  69. 66 0
      hugo/bootstrap/build/vnu-jar.mjs
  70. 101 0
      hugo/bootstrap/build/zip-examples.mjs
  71. 32 0
      hugo/bootstrap/composer.json
  72. 56 0
      hugo/bootstrap/config.yml
  73. 4085 0
      hugo/bootstrap/dist/css/bootstrap-grid.css
  74. 1 0
      hugo/bootstrap/dist/css/bootstrap-grid.css.map
  75. 6 0
      hugo/bootstrap/dist/css/bootstrap-grid.min.css
  76. 1 0
      hugo/bootstrap/dist/css/bootstrap-grid.min.css.map
  77. 4084 0
      hugo/bootstrap/dist/css/bootstrap-grid.rtl.css
  78. 1 0
      hugo/bootstrap/dist/css/bootstrap-grid.rtl.css.map
  79. 6 0
      hugo/bootstrap/dist/css/bootstrap-grid.rtl.min.css
  80. 1 0
      hugo/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map
  81. 597 0
      hugo/bootstrap/dist/css/bootstrap-reboot.css
  82. 1 0
      hugo/bootstrap/dist/css/bootstrap-reboot.css.map
  83. 6 0
      hugo/bootstrap/dist/css/bootstrap-reboot.min.css
  84. 1 0
      hugo/bootstrap/dist/css/bootstrap-reboot.min.css.map
  85. 594 0
      hugo/bootstrap/dist/css/bootstrap-reboot.rtl.css
  86. 1 0
      hugo/bootstrap/dist/css/bootstrap-reboot.rtl.css.map
  87. 6 0
      hugo/bootstrap/dist/css/bootstrap-reboot.rtl.min.css
  88. 1 0
      hugo/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map
  89. 5406 0
      hugo/bootstrap/dist/css/bootstrap-utilities.css
  90. 1 0
      hugo/bootstrap/dist/css/bootstrap-utilities.css.map
  91. 6 0
      hugo/bootstrap/dist/css/bootstrap-utilities.min.css
  92. 1 0
      hugo/bootstrap/dist/css/bootstrap-utilities.min.css.map
  93. 5397 0
      hugo/bootstrap/dist/css/bootstrap-utilities.rtl.css
  94. 1 0
      hugo/bootstrap/dist/css/bootstrap-utilities.rtl.css.map
  95. 6 0
      hugo/bootstrap/dist/css/bootstrap-utilities.rtl.min.css
  96. 1 0
      hugo/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map
  97. 12043 0
      hugo/bootstrap/dist/css/bootstrap.css
  98. 1 0
      hugo/bootstrap/dist/css/bootstrap.css.map
  99. 6 0
      hugo/bootstrap/dist/css/bootstrap.min.css
  100. 0 0
      hugo/bootstrap/dist/css/bootstrap.min.css.map

+ 25 - 0
.gitignore

@@ -0,0 +1,25 @@
+# backup / temporary
+*.bak
+*.bak.*
+*.rollback*
+backup-*/
+backups/
+*.tmp
+*.swp
+
+# runtime / build
+site/node_modules/
+site/public/
+site/resources/_gen/
+site/.hugo_build.lock
+
+# local data / secrets
+.env
+.env.*
+*.log
+
+# IDE/OS
+.DS_Store
+Thumbs.db
+.vscode/
+.idea/

+ 114 - 0
README.md

@@ -0,0 +1,114 @@
+# FX File Server
+
+一个轻量级文档管理与预览系统,基于 `Hugo + Nginx + Filebrowser + OnlyOffice + Docker Compose`。
+
+## 1. 系统目标
+
+- 统一文件入口:上传、浏览、检索、预览
+- 多格式预览:`pdf/docx/xlsx` 等
+- 前后端解耦:文档站点展示与文件管理分离
+- 低运维成本:单机 docker-compose 一键部署
+
+## 2. 架构与组件角色
+
+### 2.1 核心服务
+
+- `filebrowser`(文件管理核心)
+  - 角色:文件上传、目录管理、权限控制
+  - 对外端口:不直接暴露,通过代理访问
+- `filebrowser_proxy`(文件管理前端代理,端口 `8081`)
+  - 角色:UI主题定制、搜索页接入、OnlyOffice 预览跳转
+  - 关键配置:`filebrowser-proxy/default.conf`
+- `onlyoffice`(文档预览/编辑,端口 `8090`)
+  - 角色:在线渲染 `docx/xlsx/pptx`
+  - 关键配置:`onlyoffice/local.json`、`onlyoffice/ds-docservice.conf`
+- `nginx`(文档门户与静态托管,端口 `8080`)
+  - 角色:Hugo 产物发布、原始文件与预览页路由
+  - 关键配置:`nginx/default.conf`
+- `hugo`/`build`(站点构建)
+  - 角色:文档网站编译、主题能力承载
+
+### 2.2 可扩展组件
+
+- `converter/`、`word_converter/`
+  - 角色:文档离线转换(可选扩展,不是当前主路径)
+
+## 3. 目录说明
+
+- `compose.yaml`:主编排入口
+- `filebrowser/`:Filebrowser 配置(如 `settings.json`)
+- `filebrowser-proxy/`:Filebrowser 前端代理与自定义脚本
+- `onlyoffice/`:OnlyOffice 配置
+- `nginx/`:门户 nginx 配置
+- `site/`:Hugo 站点源码
+- `hugo/`:Hugo 构建镜像相关内容
+
+## 4. 扩展性设计
+
+- 存储扩展
+  - 当前为本地 volume;可扩展到 NFS/对象存储挂载
+- 身份与权限扩展
+  - 现由 Filebrowser 提供用户权限;可接入反向代理统一认证(OIDC/SSO)
+- 预览扩展
+  - 当前由 OnlyOffice 处理 Office 文档;可按需新增 PDF/媒体专用服务
+- 前端扩展
+  - `filebrowser-proxy/*.js` 为低侵入注入式改造,便于迭代主题/交互
+
+## 5. 安装指引(单机)
+
+### 5.1 环境要求
+
+- Linux 主机(推荐 Ubuntu 22.04+/Debian 12+)
+- Docker 24+,Docker Compose v2+
+- 建议 CPU >= 2C,内存 >= 4G(OnlyOffice 建议 8G)
+
+### 5.2 快速部署
+
+```bash
+# 1) 拉代码
+git clone http://47.92.55.118:3000/jiangkai/fx-file-server.git
+cd fx-file-server
+
+# 2) 启动核心服务
+docker compose up -d filebrowser filebrowser_proxy onlyoffice nginx
+
+# 3) 如需构建文档站
+docker compose run --rm build
+```
+
+### 5.3 访问入口
+
+- 文档门户:`http://<HOST>:8080`
+- 文件管理:`http://<HOST>:8081/files/`
+- OnlyOffice:`http://<HOST>:8090`
+
+### 5.4 常用运维命令
+
+```bash
+# 查看服务状态
+docker compose ps
+
+# 查看某服务日志
+docker compose logs -f filebrowser_proxy
+
+# 重启代理(前端脚本更新后常用)
+docker compose restart filebrowser_proxy
+
+# 配置校验(容器内)
+docker compose exec -T filebrowser_proxy nginx -t
+```
+
+## 6. 版本与变更建议
+
+- 建议以 `compose.yaml + proxy js` 为变更主线
+- 任何临时调试文件(`.bak`、`backup-*`)禁止入库
+- 每次 UI/路由改动后执行:
+  - `docker compose restart filebrowser_proxy`
+  - 浏览器强刷(`Ctrl+F5`)
+
+## 7. 安全建议
+
+- 生产环境建议仅开放必要端口
+- OnlyOffice 建议启用 JWT 并配置可信来源
+- 建议在外层加 TLS 反向代理(Nginx/Caddy/Traefik)
+

+ 173 - 0
compose.yaml

@@ -0,0 +1,173 @@
+# Hugo + Docsy compose.yaml
+# 用法:
+#   初始化新站点: docker compose run --rm init
+#   开发预览:     docker compose up server
+#   构建静态文件: docker compose run --rm build
+
+services:
+
+  # ── 1. 初始化站点(仅首次执行)──────────────────────────────────────
+  init:
+    build: ./hugo
+    working_dir: /src
+    volumes:
+      - ./site:/src
+    environment:
+      GOPROXY: https://goproxy.io,https://goproxy.cn,direct
+      GONOSUMDB: "*"
+      GOFLAGS: "-mod=mod"
+    entrypoint: /bin/sh
+    command:
+      - -c
+      - |
+        set -e
+        if [ -f hugo.toml ]; then
+          echo "hugo.toml already exists, skip init."
+          exit 0
+        fi
+        hugo new site . --force
+        hugo mod init github.com/me/my-docsy-site
+        printf 'module github.com/me/my-docsy-site\n\ngo 1.21\n\nrequire github.com/google/docsy v0.12.0\n\nreplace (\n\tgithub.com/google/docsy => /opt/docsy\n\tgithub.com/twbs/bootstrap => /opt/bootstrap\n\tgithub.com/FortAwesome/Font-Awesome => /opt/fontawesome\n)\n' > go.mod
+        hugo mod tidy
+        printf '{"dependencies":{"autoprefixer":"^10.4.14","postcss":"^8.4.24","postcss-cli":"^10.1.0"}}' > package.json
+        npm install --ignore-scripts --registry https://registry.npmmirror.com
+        printf '\n[module]\n  proxy = "https://goproxy.io,https://goproxy.cn,direct"\n  [module.hugoVersion]\n    extended = true\n    min = "0.146.0"\n  [[module.imports]]\n    path = "github.com/google/docsy"\n    disable = false\n' >> hugo.toml
+        echo "Site initialized. Run: docker compose up server"
+
+  # ── 2. 开发服务器(热重载)──────────────────────────────────────────
+  server:
+    build: ./hugo
+    working_dir: /src
+    volumes:
+      - ./site:/src
+      - hugo_cache:/tmp/hugo_cache
+      - pdf_store:/src/static/pdfs
+      - excel_html_store:/src/static/excels
+      - word_html_store:/src/static/words
+    ports:
+      - "1313:1313"
+    environment:
+      HUGO_CACHEDIR: /tmp/hugo_cache
+      GOPROXY: "off"
+      GONOSUMDB: "*"
+      GOFLAGS: "-mod=mod"
+    command: server
+      --bind 0.0.0.0
+      --port 1313
+      --baseURL /
+      --disableFastRender
+      --poll 700ms
+    restart: unless-stopped
+    networks:
+      - docsy_bridge
+
+  # ── 3. 生产构建(输出到 site/public)───────────────────────────────
+  build:
+    build: ./hugo
+    working_dir: /src
+    volumes:
+      - ./site:/src
+      - hugo_cache:/tmp/hugo_cache
+      - site_public:/src/public
+      - word_html_store:/src/static/words
+    environment:
+      HUGO_CACHEDIR: /tmp/hugo_cache
+      HUGO_ENV: production
+      GOPROXY: "off"
+      GONOSUMDB: "*"
+      GOFLAGS: "-mod=mod"
+    command: --minify --gc --baseURL /
+
+  # ── 4. Nginx 静态文件托管(生产预览)───────────────────────────────
+  nginx:
+    image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine
+    volumes:
+      - site_public:/usr/share/nginx/html:ro
+      - pdf_store:/data/pdfs:ro
+      - excel_html_store:/data/excels:ro
+      - word_html_store:/data/words:ro
+      - excel_store:/data/raw_excels:ro
+      - word_store:/data/raw_words:ro
+      - uploads_store:/data/uploads:ro
+      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
+    ports:
+      - "8080:80"
+    depends_on:
+      build:
+        condition: service_completed_successfully
+    restart: unless-stopped
+    networks:
+      - docsy_bridge
+
+  # ── 5. Filebrowser 文件上传管理 ─────────────────────────────────────
+  filebrowser:
+    image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/filebrowser/filebrowser:latest
+    volumes:
+      - uploads_store:/srv
+      - pdf_store:/srv/pdfs
+      - excel_store:/srv/excels
+      - excel_html_store:/srv/excels_html:ro
+      - word_html_store:/srv/words_html:ro
+      - word_store:/srv/words
+      - ./site/content:/srv/content
+      - filebrowser_data:/database
+      - ./filebrowser/settings.json:/.filebrowser.json
+    restart: unless-stopped
+    networks:
+      - docsy_bridge
+
+  # ── 5b. Filebrowser 预览代理(8081)────────────────────────────────
+  filebrowser_proxy:
+    image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine
+    volumes:
+      - ./filebrowser-proxy:/etc/nginx/conf.d:ro
+      - /home/fxapp/log.png:/opt/fb-assets/log.png:ro
+    depends_on:
+      - filebrowser
+    ports:
+      - "8081:80"
+    restart: unless-stopped
+    networks:
+      - docsy_bridge
+
+  # ── 6. Excel → HTML 自动转换器 ───────────────────────────────────────
+  # ── 7. Word(docx) → HTML 自动转换器 ─────────────────────────────────
+  # ── 8. OnlyOffice 文档预览/编辑服务 ───────────────────────────────
+  onlyoffice:
+    image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/onlyoffice/documentserver:latest
+    environment:
+      JWT_ENABLED: "false"
+      TZ: Asia/Shanghai
+    ports:
+      - "8090:80"
+    volumes:
+      - onlyoffice_data:/var/www/onlyoffice/Data
+      - onlyoffice_log:/var/log/onlyoffice
+      - onlyoffice_lib:/var/lib/onlyoffice
+      - onlyoffice_db:/var/lib/postgresql
+      - ./onlyoffice/local.json:/etc/onlyoffice/documentserver/local.json:ro
+      - ./onlyoffice/ds-docservice.conf:/etc/nginx/includes/ds-docservice.conf:ro
+    restart: unless-stopped
+    networks:
+      - docsy_bridge
+
+volumes:
+  hugo_cache:
+  site_public:
+  pdf_store:
+  filebrowser_data:
+  excel_store:
+  excel_html_store:
+  word_store:
+  uploads_store:
+  word_html_store:
+  onlyoffice_data:
+  onlyoffice_log:
+  onlyoffice_lib:
+  onlyoffice_db:
+
+
+networks:
+  docsy_bridge:
+    driver: bridge
+    name: hugo_docsy_bridge

+ 10 - 0
converter/Dockerfile

@@ -0,0 +1,10 @@
+FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.12-alpine
+
+RUN pip install --no-cache-dir \
+    -i https://pypi.tuna.tsinghua.edu.cn/simple \
+    openpyxl watchdog
+
+WORKDIR /app
+COPY convert.py .
+
+CMD ["python", "-u", "convert.py"]

+ 99 - 0
converter/convert.py

@@ -0,0 +1,99 @@
+#!/usr/bin/env python3
+"""
+Excel → HTML 自动转换器
+监听 /watch 目录,xlsx/xls 文件上传后自动转成 HTML 写入 /output
+"""
+
+import os
+import time
+import html
+import logging
+from pathlib import Path
+
+import openpyxl
+from watchdog.observers.polling import PollingObserver   # 卷挂载用 polling
+from watchdog.events import FileSystemEventHandler
+
+WATCH_DIR  = Path("/watch")
+OUTPUT_DIR = Path("/output")
+OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
+
+logging.basicConfig(
+    level=logging.INFO,
+    format="%(asctime)s [converter] %(levelname)s %(message)s",
+)
+log = logging.getLogger(__name__)
+
+
+def xlsx_to_html(src: Path, dst: Path) -> None:
+    wb = openpyxl.load_workbook(src, read_only=True, data_only=True)
+    parts = []
+    parts.append(
+        "<!doctype html><html><head><meta charset='utf-8'>"
+        "<style>"
+        "body{font-family:sans-serif;font-size:13px;padding:8px}"
+        "h2{margin:16px 0 6px}"
+        "table{border-collapse:collapse;width:100%;margin-bottom:24px}"
+        "th,td{border:1px solid #ccc;padding:4px 8px;text-align:left;white-space:pre-wrap}"
+        "th{background:#f0f0f0;font-weight:600}"
+        "tr:hover td{background:#fafafa}"
+        "</style></head><body>"
+    )
+    parts.append(f"<h1>{html.escape(src.name)}</h1>")
+
+    for sheet in wb.worksheets:
+        parts.append(f"<h2>{html.escape(sheet.title)}</h2>")
+        parts.append("<table>")
+        first_row = True
+        for row in sheet.iter_rows(values_only=True):
+            tag = "th" if first_row else "td"
+            cells = "".join(
+                f"<{tag}>{html.escape(str(c)) if c is not None else ''}</{tag}>"
+                for c in row
+            )
+            parts.append(f"<tr>{cells}</tr>")
+            first_row = False
+        parts.append("</table>")
+
+    parts.append("</body></html>")
+    dst.write_text("\n".join(parts), encoding="utf-8")
+    log.info("Converted: %s -> %s", src.name, dst.name)
+
+
+def convert_file(path: Path) -> None:
+    if path.suffix.lower() not in (".xlsx", ".xls"):
+        return
+    try:
+        out = OUTPUT_DIR / (path.stem + ".html")
+        xlsx_to_html(path, out)
+    except Exception as e:
+        log.error("Failed to convert %s: %s", path, e)
+
+
+class ExcelHandler(FileSystemEventHandler):
+    def on_created(self, event):
+        if not event.is_directory:
+            convert_file(Path(event.src_path))
+
+    def on_modified(self, event):
+        if not event.is_directory:
+            convert_file(Path(event.src_path))
+
+
+if __name__ == "__main__":
+    log.info("Converter started. Watching: %s", WATCH_DIR)
+    # 启动时转换已有文件
+    for f in WATCH_DIR.rglob("*.xlsx"):
+        convert_file(f)
+    for f in WATCH_DIR.rglob("*.xls"):
+        convert_file(f)
+
+    observer = PollingObserver(timeout=2)
+    observer.schedule(ExcelHandler(), str(WATCH_DIR), recursive=True)
+    observer.start()
+    try:
+        while True:
+            time.sleep(5)
+    except KeyboardInterrupt:
+        observer.stop()
+    observer.join()

+ 80 - 0
filebrowser-proxy/default.conf

@@ -0,0 +1,80 @@
+server {
+    listen 80;
+    server_name _;
+
+    location = /fb-oo-hook.js {
+        alias /etc/nginx/conf.d/fb-oo-hook.js;
+        default_type application/javascript;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /fb-brand-hook.js {
+        alias /etc/nginx/conf.d/fb-brand-hook.js;
+        default_type application/javascript;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /fb-theme-hook.js {
+        alias /etc/nginx/conf.d/fb-theme-hook.js;
+        default_type application/javascript;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /fb-search.js {
+        alias /etc/nginx/conf.d/fb-search.js;
+        default_type application/javascript;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /fb-root-filter.js {
+        alias /etc/nginx/conf.d/fb-root-filter.js;
+        default_type application/javascript;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /fb-theme.css {
+        alias /etc/nginx/conf.d/fb-theme.css;
+        default_type text/css;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /fb-search.css {
+        alias /etc/nginx/conf.d/fb-search.css;
+        default_type text/css;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /search {
+        alias /etc/nginx/conf.d/fb-search.html;
+        default_type text/html;
+        add_header Cache-Control "no-store";
+    }
+
+    location ~ ^/fb-wallpaper/(frappe|latte|macchiato|mocha|preview)\.webp$ {
+        alias /etc/nginx/conf.d/$1.webp;
+        default_type image/webp;
+        add_header Cache-Control "no-store";
+    }
+
+    location = /fb-logo.png {
+        alias /opt/fb-assets/log.png;
+        default_type image/png;
+        add_header Cache-Control "no-store";
+    }
+
+    location / {
+        proxy_pass http://filebrowser:80;
+        proxy_http_version 1.1;
+        proxy_set_header Host $host;
+        proxy_set_header X-Real-IP $remote_addr;
+        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        proxy_set_header X-Forwarded-Proto $scheme;
+        proxy_read_timeout 3600;
+
+        proxy_set_header Accept-Encoding "";
+        sub_filter_once off;
+        sub_filter_types text/html;
+        sub_filter "</head>" "<style id=\"fb-prehide-native-brand\">header img[src*=\"/img/logo.svg\"]{opacity:0!important;}</style><link rel=\"stylesheet\" href=\"/fb-theme.css?v=20260306x2\"></head>";
+        sub_filter "</body>" "<script src='/fb-oo-hook.js?v=20260306x11'></script><script src='/fb-brand-hook.js?v=20260306x11'></script><script src='/fb-theme-hook.js?v=20260306x11'></script><script src='/fb-root-filter.js?v=20260306y3'></script></body>";
+    }
+}

+ 284 - 0
filebrowser-proxy/fb-brand-hook.js

@@ -0,0 +1,284 @@
+(function () {
+  var LOGO_URL = '/fb-logo.png?v=20260306w';
+  var HOME_SEARCH_CACHE_KEY = 'fb.home.search.q';
+  function setFavicons() {
+    var rels = ['icon', 'shortcut icon', 'apple-touch-icon'];
+    rels.forEach(function (rel) {
+      var link = document.querySelector('link[rel="' + rel + '"]');
+      if (!link) {
+        link = document.createElement('link');
+        link.setAttribute('rel', rel);
+        document.head.appendChild(link);
+      }
+      link.setAttribute('href', LOGO_URL);
+      link.setAttribute('type', 'image/png');
+    });
+    var msTile = document.querySelector('meta[name="msapplication-TileImage"]');
+    if (msTile) msTile.setAttribute('content', LOGO_URL);
+  }
+
+  function ensureStaticStyles() {
+    if (document.getElementById('fb-brand-style')) return;
+    var style = document.createElement('style');
+    style.id = 'fb-brand-style';
+    style.textContent = [
+      '.credits { display: none !important; }',
+      '[class*="credits"] { display: none !important; }',
+      '#fb-header-brand {',
+      '  display: inline-flex;',
+      '  align-items: center;',
+      '  margin-right: 10px;',
+      '  line-height: 1;',
+      '  pointer-events: none;',
+      '  user-select: none;',
+      '}',
+      '#fb-header-brand img { width: 26px; height: 26px; object-fit: contain; display:block; }',
+      '#fb-top-corner-brand {',
+      '  position: fixed;',
+      '  top: 10px;',
+      '  left: 12px;',
+      '  z-index: 2147483000;',
+      '  display: inline-flex;',
+      '  align-items: center;',
+      '  justify-content: center;',
+      '  width: 40px;',
+      '  height: 40px;',
+      '  border-radius: 10px;',
+      '  background: rgba(41,44,60,.75);',
+      '  border: 1px solid rgba(198,208,245,.25);',
+      '  backdrop-filter: blur(8px);',
+      '  pointer-events: none;',
+      '  user-select: none;',
+      '}',
+      '#fb-top-corner-brand img { width: 22px; height: 22px; object-fit: contain; display:block; }',
+      'body#login-page #fb-top-corner-brand, #login #fb-top-corner-brand { display: none !important; }',
+      'body#login-page #fb-header-brand, #login #fb-header-brand { display: none !important; }',
+      '@media (max-width: 736px) { #fb-top-corner-brand { top: 8px; left: 8px; width: 34px; height: 34px; } }'
+    ].join('\n');
+    document.head.appendChild(style);
+  }
+
+  function tuneLoginBrand() {
+    var login = document.getElementById('login');
+    if (!login) return;
+    var form = login.querySelector('form');
+    if (!form) return;
+
+    var imgs = form.querySelectorAll('img');
+    if (imgs.length > 0) {
+      imgs.forEach(function (img, idx) {
+        if (idx === 0) {
+          if (img.dataset.fbLogoReady !== '1') {
+            img.src = LOGO_URL;
+            img.srcset = '';
+            img.style.width = '92px';
+            img.style.height = '92px';
+            img.style.objectFit = 'contain';
+            img.style.display = 'block';
+            img.style.margin = '0 auto 8px';
+            img.dataset.fbLogoReady = '1';
+          }
+        } else {
+          img.remove();
+        }
+      });
+    }
+
+    var title = form.querySelector('h1');
+    if (title && title.textContent !== '繁星文档') {
+      title.textContent = '繁星文档';
+      title.style.marginTop = '6px';
+    }
+  }
+
+  function suppressNativeHeaderBrand() {
+    if (location.pathname.indexOf('/login') === 0 || document.getElementById('login')) return;
+    var header = document.querySelector('header');
+    if (!header) return;
+
+    var walker = document.createTreeWalker(header, NodeFilter.SHOW_TEXT, null);
+    var node;
+    while ((node = walker.nextNode())) {
+      var txt = (node.nodeValue || '').trim();
+      if (txt === 'File Browser' || txt === '文件浏览器') {
+        node.nodeValue = '';
+      }
+    }
+
+    var nativeImgs = header.querySelectorAll('img:not(#fb-header-brand img)');
+    nativeImgs.forEach(function (img) {
+      if (img.closest && img.closest('#fb-header-brand')) return;
+      img.style.display = 'none';
+    });
+  }
+
+  function ensureHeaderBrand() {
+    var onLogin = location.pathname.indexOf('/login') === 0 || !!document.getElementById('login');
+    var old = document.getElementById('fb-header-brand');
+    if (onLogin) {
+      if (old) old.remove();
+      return false;
+    }
+
+    var header = document.querySelector('header');
+    if (!header) return false;
+
+    var brand = old;
+    if (!brand) {
+      brand = document.createElement('div');
+      brand.id = 'fb-header-brand';
+      brand.setAttribute('aria-hidden', 'true');
+      brand.innerHTML = '<img src="' + LOGO_URL + '" alt="logo" />';
+      header.insertBefore(brand, header.firstChild);
+    } else {
+      var img = brand.querySelector('img');
+      if (img) img.src = LOGO_URL;
+      if (brand.parentElement !== header) {
+        header.insertBefore(brand, header.firstChild);
+      }
+    }
+    return true;
+  }
+
+  function ensureTopCornerFallback(useHeader) {
+    var onLogin = location.pathname.indexOf('/login') === 0 || !!document.getElementById('login');
+    var el = document.getElementById('fb-top-corner-brand');
+
+    if (onLogin || useHeader) {
+      if (el) el.remove();
+      return;
+    }
+
+    if (!el) {
+      el = document.createElement('div');
+      el.id = 'fb-top-corner-brand';
+      el.setAttribute('aria-hidden', 'true');
+      el.innerHTML = '<img src="' + LOGO_URL + '" alt="logo" />';
+      document.body.appendChild(el);
+    } else {
+      var img = el.querySelector('img');
+      if (img) img.src = LOGO_URL;
+    }
+  }
+
+  function renameSidebarRoot() {
+    var walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null);
+    var node;
+    while ((node = walker.nextNode())) {
+      var txt = (node.nodeValue || '').trim();
+      if (txt === '我的文件' || txt === 'My Files') {
+        node.nodeValue = node.nodeValue.replace(txt, '繁星文档');
+      }
+    }
+  }
+
+  function removeLegacyInlineSearch() {
+    var legacy = document.getElementById('fb-inline-search');
+    if (legacy) legacy.remove();
+    var legacyStyle = document.getElementById('fb-inline-search-style');
+    if (legacyStyle) legacyStyle.remove();
+    var search = document.getElementById('search');
+    if (search && search.style && search.style.display === 'none') search.style.display = '';
+  }
+
+  function isSearchInput(el) {
+    if (!el || el.tagName !== 'INPUT') return false;
+    var t = (el.getAttribute('type') || '').toLowerCase();
+    var p = (el.getAttribute('placeholder') || '').toLowerCase();
+    if (t === 'search') return true;
+    if (p.indexOf('search') >= 0 || p.indexOf('搜索') >= 0) return true;
+    if ((el.className || '').toString().toLowerCase().indexOf('search') >= 0) return true;
+    return false;
+  }
+
+  function readCachedHomeSearch() {
+    try {
+      return (sessionStorage.getItem(HOME_SEARCH_CACHE_KEY) || '').trim();
+    } catch (e) {
+      return '';
+    }
+  }
+
+  function writeCachedHomeSearch(q) {
+    try {
+      sessionStorage.setItem(HOME_SEARCH_CACHE_KEY, (q || '').trim());
+    } catch (e) {}
+  }
+
+  function goSearch(q) {
+    if (location.pathname === '/search') return;
+    var qs = (q || '').trim();
+    if (!qs) qs = readCachedHomeSearch();
+    location.assign('/search' + (qs ? ('?q=' + encodeURIComponent(qs)) : ''));
+  }
+
+  function installSearchRedirectGuards() {
+    if (window.__fbSearchRedirectGuardInstalled) return;
+    window.__fbSearchRedirectGuardInstalled = true;
+
+    // Keep home search input value cached for /search fallback.
+    document.addEventListener('input', function (e) {
+      if (location.pathname.indexOf('/login') === 0) return;
+      var homeInput = e.target && e.target.closest && e.target.closest('#search input, #search #input input');
+      if (!homeInput) return;
+      writeCachedHomeSearch(e.target.value || '');
+    }, true);
+
+    document.addEventListener('click', function (e) {
+      if (location.pathname.indexOf('/login') === 0) return;
+
+      var inSearch = e.target && e.target.closest && e.target.closest('#search');
+      if (!inSearch) return;
+
+      var onInput = e.target && e.target.closest && e.target.closest('#search input, #search #input input');
+      if (onInput) return; // keep typing, no redirect on click.
+
+      // Intercept magnifier / action click to prevent built-in index popup.
+      var icon = e.target && e.target.closest && e.target.closest('.search-button,header .search-button,#search #input > i,#search .search-button,#search .action,#search [title*="search" i],#search [aria-label*="search" i],#search [title*="搜索" i],#search [aria-label*="搜索" i],#search i');
+      if (!icon) return;
+
+      e.preventDefault();
+      e.stopPropagation();
+      if (e.stopImmediatePropagation) e.stopImmediatePropagation();
+    }, true);
+
+    document.addEventListener('keydown', function (e) {
+      if (location.pathname.indexOf('/login') === 0) return;
+      if (location.pathname === '/search') return;
+
+      var homeInput = e.target && e.target.closest && e.target.closest('#search input, #search #input input');
+      if (!homeInput) return;
+
+      if (e.key !== 'Enter') return;
+      var q = (e.target.value || '').trim();
+      writeCachedHomeSearch(q);
+      e.preventDefault();
+      e.stopPropagation();
+      if (e.stopImmediatePropagation) e.stopImmediatePropagation();
+      goSearch(q);
+    }, true);
+  }
+
+  function apply() {
+    setFavicons();
+    ensureStaticStyles();
+    tuneLoginBrand();
+    suppressNativeHeaderBrand();
+    var ok = ensureHeaderBrand();
+    ensureTopCornerFallback(ok);
+    renameSidebarRoot();
+    removeLegacyInlineSearch();
+    installSearchRedirectGuards();
+  }
+
+  var timer = null;
+  var ob = new MutationObserver(function () {
+    if (timer) clearTimeout(timer);
+    timer = setTimeout(apply, 20);
+  });
+
+  ob.observe(document.documentElement, { childList: true, subtree: true });
+  apply();
+  if (window.requestAnimationFrame) requestAnimationFrame(apply);
+  setTimeout(apply, 30);
+})();

+ 139 - 0
filebrowser-proxy/fb-inline-search.js

@@ -0,0 +1,139 @@
+(function () {
+  var BAR_ID = 'fb-inline-search';
+
+  function q(sel, root) { return (root || document).querySelector(sel); }
+  function qa(sel, root) { return Array.from((root || document).querySelectorAll(sel)); }
+
+  function ensureBar() {
+    var bar = q('#' + BAR_ID);
+    if (bar) return bar;
+
+    bar = document.createElement('div');
+    bar.id = BAR_ID;
+    bar.innerHTML = '' +
+      '<input id="fb-inline-search-input" type="text" autocomplete="off" placeholder="筛选当前目录文件(Ctrl+F)" />' +
+      '<button class="fb-clear" type="button" title="清空">×</button>' +
+      '<span class="fb-count"></span>';
+
+    document.body.appendChild(bar);
+
+    var input = q('#fb-inline-search-input', bar);
+    var clearBtn = q('.fb-clear', bar);
+
+    input.addEventListener('input', applyFilter);
+    input.addEventListener('keydown', function (e) {
+      if (e.key === 'Escape') {
+        input.value = '';
+        applyFilter();
+      }
+    });
+
+    clearBtn.addEventListener('click', function () {
+      input.value = '';
+      applyFilter();
+      input.focus();
+    });
+
+    return bar;
+  }
+
+  function getItems() {
+    var nodes = qa('#listing .item, #listing [data-type], #listing tr, #listing li');
+    var seen = new Set();
+    return nodes.filter(function (el) {
+      if (!el || seen.has(el)) return false;
+      seen.add(el);
+      return !!(el.querySelector('.name') || el.getAttribute('data-type') || (el.textContent || '').trim());
+    });
+  }
+
+  function getName(el) {
+    var n = q('.name', el);
+    if (n && n.textContent) return n.textContent.trim();
+    var a = q('a', el);
+    if (a && a.textContent) return a.textContent.trim();
+    return (el.textContent || '').trim();
+  }
+
+  function setVisible(el, show) {
+    if (show) {
+      if (el.dataset.fbOrigDisplay !== undefined) {
+        el.style.display = el.dataset.fbOrigDisplay;
+        delete el.dataset.fbOrigDisplay;
+      } else {
+        el.style.removeProperty('display');
+      }
+      el.removeAttribute('data-fb-hidden');
+      return;
+    }
+
+    if (el.dataset.fbOrigDisplay === undefined) {
+      el.dataset.fbOrigDisplay = el.style.display || '';
+    }
+    el.style.display = 'none';
+    el.setAttribute('data-fb-hidden', '1');
+  }
+
+  function applyFilter() {
+    var bar = ensureBar();
+    var input = q('#fb-inline-search-input', bar);
+    var count = q('.fb-count', bar);
+    var query = (input.value || '').trim().toLowerCase();
+
+    var items = getItems();
+    var shown = 0;
+
+    items.forEach(function (el) {
+      var ok = !query || getName(el).toLowerCase().indexOf(query) !== -1;
+      setVisible(el, ok);
+      if (ok) shown += 1;
+    });
+
+    count.textContent = query ? (shown + '/' + items.length) : '';
+  }
+
+  function focusSearch() {
+    var input = q('#fb-inline-search-input') || q('#fb-inline-search-input', ensureBar());
+    if (!input) return;
+    input.focus();
+    input.select();
+  }
+
+  function intercept(evt) {
+    var ctrlF = evt.type === 'keydown' && (evt.ctrlKey || evt.metaKey) && (evt.key === 'f' || evt.key === 'F');
+    var btn = evt.type === 'click' && evt.target && evt.target.closest && evt.target.closest('.search-button');
+    if (!ctrlF && !btn) return;
+
+    evt.preventDefault();
+    evt.stopPropagation();
+    if (evt.stopImmediatePropagation) evt.stopImmediatePropagation();
+
+    ensureBar();
+    focusSearch();
+  }
+
+  function closeNativeSearch() {
+    var nativeSearch = q('#search');
+    if (!nativeSearch) return;
+    nativeSearch.classList.remove('active', 'ongoing');
+    nativeSearch.style.display = 'none';
+    document.body.style.overflow = 'auto';
+  }
+
+  function bootstrap() {
+    ensureBar();
+    closeNativeSearch();
+    applyFilter();
+  }
+
+  window.addEventListener('keydown', intercept, true);
+  window.addEventListener('click', intercept, true);
+
+  var mo = new MutationObserver(function () {
+    closeNativeSearch();
+    if (q('#fb-inline-search-input') && q('#fb-inline-search-input').value) applyFilter();
+  });
+
+  bootstrap();
+  mo.observe(document.documentElement, { childList: true, subtree: true });
+})();

+ 72 - 0
filebrowser-proxy/fb-oo-hook.js

@@ -0,0 +1,72 @@
+(function(){
+  var OFFICE_EXT = ["docx","pptx","ppt","xlsx","xls"];
+  var PREVIEW_BASE = "http://" + location.hostname + ":8080";
+
+  function startsWithFiles(p){ return (p || "").toLowerCase().indexOf("/files/") === 0; }
+
+  function normalizeFilePath(path){
+    var p = path || "";
+    if (!startsWithFiles(p)) return "";
+    p = p.slice(7);
+    try { p = decodeURIComponent(p); } catch(e) {}
+    while (p.length > 0 && p.charAt(0) === "/") p = p.slice(1);
+    return p;
+  }
+
+  function isOffice(path){
+    var s = (path || "").toLowerCase();
+    for (var i = 0; i < OFFICE_EXT.length; i++) {
+      if (s.endsWith("." + OFFICE_EXT[i])) return true;
+    }
+    return false;
+  }
+
+  function encodePathSegments(path){
+    return (path || "").split("/").map(function(seg){ return encodeURIComponent(seg); }).join("/");
+  }
+
+  function buildRawPath(rel){
+    var low = (rel || "").toLowerCase();
+    if (low.indexOf("words/") === 0) {
+      return "/raw/words/" + encodePathSegments((rel || "").slice(6));
+    }
+    if (low.indexOf("excels/") === 0) {
+      return "/raw/excels/" + encodePathSegments((rel || "").slice(7));
+    }
+    return "/raw/files/" + encodePathSegments(rel || "");
+  }
+
+  function buildPreviewUrlFromPath(pathname){
+    var rel = normalizeFilePath(pathname);
+    if (!rel || !isOffice(rel)) return "";
+    var ext = (rel.split(".").pop() || "").toLowerCase();
+    var rawUrl = PREVIEW_BASE + buildRawPath(rel);
+    var nonce = Date.now().toString() + "-" + Math.random().toString(16).slice(2, 8);
+    return PREVIEW_BASE + "/oo-preview.html?url=" + encodeURIComponent(rawUrl) + "&type=" + encodeURIComponent(ext) + "&title=" + encodeURIComponent(rel) + "&_fbv=" + encodeURIComponent(nonce);
+  }
+
+  function maybeJump(){
+    var p = location.pathname || "";
+    var u = buildPreviewUrlFromPath(p);
+    if (!u) return;
+    if (location.pathname === "/oo-preview.html") return;
+    location.replace(u);
+  }
+
+  var pushed = history.pushState;
+  history.pushState = function(){
+    pushed.apply(history, arguments);
+    setTimeout(maybeJump, 0);
+  };
+
+  var replaced = history.replaceState;
+  history.replaceState = function(){
+    replaced.apply(history, arguments);
+    setTimeout(maybeJump, 0);
+  };
+
+  window.addEventListener("popstate", function(){ setTimeout(maybeJump, 0); });
+  window.addEventListener("hashchange", function(){ setTimeout(maybeJump, 0); });
+
+  setTimeout(maybeJump, 0);
+})();

+ 39 - 0
filebrowser-proxy/fb-root-filter.js

@@ -0,0 +1,39 @@
+(function () {
+  var HIDE_AT_ROOT = new Set(['content', 'excels', 'excels_html', 'pdfs', 'words', 'words_html']);
+
+  function isRootFilesPath(path) {
+    var p = (path || '').replace(/\/+$/, '');
+    return p === '' || p === '/files';
+  }
+
+  function textOf(el) {
+    var n = el.querySelector && el.querySelector('.name');
+    var t = n ? (n.textContent || '') : (el.textContent || '');
+    return t.trim();
+  }
+
+  function hideDefaultFoldersAtRoot() {
+    if (!isRootFilesPath(location.pathname)) return;
+
+    var items = document.querySelectorAll('#listing .item');
+    items.forEach(function (item) {
+      var name = textOf(item);
+      if (!name || !HIDE_AT_ROOT.has(name)) return;
+
+      // hide item card/row without affecting backend data
+      item.style.display = 'none';
+      item.setAttribute('data-fb-hidden-default', '1');
+    });
+  }
+
+  function apply() {
+    hideDefaultFoldersAtRoot();
+  }
+
+  var ob = new MutationObserver(function () { apply(); });
+  ob.observe(document.documentElement, { childList: true, subtree: true });
+
+  apply();
+  setTimeout(apply, 100);
+  setTimeout(apply, 400);
+})();

+ 208 - 0
filebrowser-proxy/fb-search.css

@@ -0,0 +1,208 @@
+:root {
+  --fb-bg-url: url('/fb-wallpaper/frappe.webp?v=20260306w');
+  --fb-accent: #8caaee;
+  --fb-accent-2: #ca9ee6;
+  --fb-text: #c6d0f5;
+  --fb-subtext: #a5adce;
+  --fb-base: #303446;
+  --fb-mantle: #292c3c;
+  --fb-crust: #232634;
+  --fb-surface: rgba(48, 52, 70, 0.78);
+  --fb-surface-strong: rgba(41, 44, 60, 0.92);
+  --fb-border: rgba(198, 208, 245, 0.20);
+}
+
+* { box-sizing: border-box; }
+
+html, body {
+  margin: 0;
+  height: 100%;
+  color: var(--fb-text);
+  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
+}
+
+.bg {
+  position: fixed;
+  inset: 0;
+  background:
+    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--fb-accent-2) 28%, transparent), transparent 45%),
+    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--fb-accent) 24%, transparent), transparent 40%),
+    var(--fb-bg-url) center/cover no-repeat;
+  opacity: 0.36;
+  z-index: 0;
+}
+
+.overlay {
+  position: fixed;
+  inset: 0;
+  background: linear-gradient(180deg, color-mix(in srgb, var(--fb-crust) 82%, transparent), color-mix(in srgb, var(--fb-crust) 92%, transparent));
+  z-index: 0;
+}
+
+.topbar, .layout {
+  position: relative;
+  z-index: 1;
+}
+
+.topbar {
+  height: 68px;
+  display: grid;
+  grid-template-columns: 220px 1fr 120px;
+  align-items: center;
+  gap: 12px;
+  padding: 12px 18px;
+  border-bottom: 1px solid var(--fb-border);
+  background: var(--fb-surface-strong);
+  backdrop-filter: blur(10px);
+}
+
+.brand {
+  font-size: 16px;
+  font-weight: 700;
+}
+
+.search-form {
+  display: flex;
+  gap: 8px;
+}
+
+.search-form input {
+  flex: 1;
+  height: 40px;
+  border-radius: 10px;
+  border: 1px solid var(--fb-border);
+  background: color-mix(in srgb, var(--fb-base) 72%, transparent);
+  color: var(--fb-text);
+  padding: 0 12px;
+  outline: none;
+}
+
+.search-form button,
+.back-link {
+  height: 40px;
+  border-radius: 10px;
+  border: 1px solid var(--fb-border);
+  padding: 0 14px;
+  color: var(--fb-text);
+  background: color-mix(in srgb, var(--fb-base) 72%, transparent);
+  text-decoration: none;
+  display: inline-flex;
+  align-items: center;
+  justify-content: center;
+  cursor: pointer;
+}
+
+.search-form button:hover,
+.back-link:hover {
+  background: color-mix(in srgb, var(--fb-accent) 20%, transparent);
+}
+
+.layout {
+  display: grid;
+  grid-template-columns: 360px 1fr;
+  gap: 14px;
+  padding: 14px;
+  height: calc(100% - 68px);
+}
+
+.left-panel,
+.right-panel {
+  border: 1px solid var(--fb-border);
+  border-radius: 12px;
+  background: var(--fb-surface);
+  backdrop-filter: blur(8px);
+  overflow: hidden;
+  min-height: 0;
+}
+
+.panel-title {
+  height: 46px;
+  display: flex;
+  align-items: center;
+  padding: 0 14px;
+  border-bottom: 1px solid var(--fb-border);
+  font-size: 14px;
+  font-weight: 700;
+}
+
+.hint {
+  padding: 10px 14px;
+  font-size: 12px;
+  color: var(--fb-subtext);
+}
+
+.tree,
+.results {
+  height: calc(100% - 78px);
+  overflow: auto;
+  padding: 0 8px 10px;
+}
+
+.tree ul {
+  list-style: none;
+  margin: 0;
+  padding: 0 0 0 14px;
+}
+
+.tree-row {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  height: 30px;
+  border-radius: 8px;
+  padding: 0 8px;
+  cursor: pointer;
+}
+
+.tree-row:hover { background: color-mix(in srgb, var(--fb-accent) 16%, transparent); }
+
+.tree-toggle {
+  width: 16px;
+  text-align: center;
+  color: var(--fb-subtext);
+  font-size: 11px;
+}
+
+.tree-icon { width: 16px; text-align: center; }
+
+.tree-name {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.result-item {
+  margin: 8px 8px 0;
+  padding: 10px 12px;
+  border-radius: 10px;
+  border: 1px solid var(--fb-border);
+  background: color-mix(in srgb, var(--fb-base) 56%, transparent);
+}
+
+.result-item a {
+  color: var(--fb-accent);
+  text-decoration: none;
+}
+
+.result-item a:hover { color: var(--fb-accent-2); text-decoration: underline; }
+
+.result-path {
+  margin-top: 4px;
+  font-size: 12px;
+  color: var(--fb-subtext);
+  word-break: break-all;
+}
+
+@media (max-width: 980px) {
+  .topbar {
+    grid-template-columns: 1fr;
+    height: auto;
+  }
+  .layout {
+    grid-template-columns: 1fr;
+    height: auto;
+  }
+  .left-panel, .right-panel {
+    min-height: 320px;
+  }
+}

+ 38 - 0
filebrowser-proxy/fb-search.html

@@ -0,0 +1,38 @@
+<!doctype html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>繁星文档搜索</title>
+  <link rel="stylesheet" href="/fb-search.css?v=20260306w" />
+</head>
+<body>
+  <div class="bg"></div>
+  <div class="overlay"></div>
+
+  <header class="topbar">
+    <div class="brand">繁星文档 · 搜索</div>
+    <form id="searchForm" class="search-form" autocomplete="off">
+      <input id="q" type="text" placeholder="输入关键字,回车搜索" />
+      <button type="submit">搜索</button>
+    </form>
+    <a class="back-link" href="/files/">返回文件</a>
+  </header>
+
+  <main class="layout">
+    <aside class="left-panel">
+      <div class="panel-title">可访问文件树</div>
+      <div id="treeStatus" class="hint">加载中...</div>
+      <div id="tree" class="tree"></div>
+    </aside>
+
+    <section class="right-panel">
+      <div class="panel-title">搜索结果</div>
+      <div id="resultMeta" class="hint">输入关键字后开始搜索</div>
+      <div id="results" class="results"></div>
+    </section>
+  </main>
+
+  <script src="/fb-search.js?v=20260306x11"></script>
+</body>
+</html>

+ 306 - 0
filebrowser-proxy/fb-search.js

@@ -0,0 +1,306 @@
+(function () {
+  var form = document.getElementById('searchForm');
+  var input = document.getElementById('q');
+  var treeEl = document.getElementById('tree');
+  var treeStatus = document.getElementById('treeStatus');
+  var resultMeta = document.getElementById('resultMeta');
+  var resultsEl = document.getElementById('results');
+
+  var nodeState = new Map();
+  var runningSearchId = 0;
+  var HOME_SEARCH_CACHE_KEY = 'fb.home.search.q';
+
+  function parseQuery() {
+    var params = new URLSearchParams(location.search || '');
+    return (params.get('q') || '').trim();
+  }
+
+  function readCachedQuery() {
+    try {
+      return (sessionStorage.getItem(HOME_SEARCH_CACHE_KEY) || '').trim();
+    } catch (e) {
+      return '';
+    }
+  }
+
+  function writeCachedQuery(q) {
+    try {
+      sessionStorage.setItem(HOME_SEARCH_CACHE_KEY, (q || '').trim());
+    } catch (e) {}
+  }
+
+  function encodePath(path) {
+    var p = (path || '').replace(/^\/+|\/+$/g, '');
+    if (!p) return '';
+    return p.split('/').map(function (s) { return encodeURIComponent(s); }).join('/');
+  }
+
+  function fileLink(path) {
+    return '/files/' + encodePath(path || '');
+  }
+
+  function apiUrl(path) {
+    var p = encodePath(path || '');
+    return '/api/resources/' + p;
+  }
+
+  function childPath(base, item) {
+    if (item && typeof item.path === 'string' && item.path.length > 0) return item.path;
+    var name = item && typeof item.name === 'string' ? item.name : '';
+    if (!base) return name;
+    return base + '/' + name;
+  }
+
+  function isDir(item) {
+    return !!(item && (item.isDir || item.is_dir || item.dir || item.type === 'directory'));
+  }
+
+  function itemName(item) {
+    return (item && (item.name || item.filename || item.basename || '')) || '';
+  }
+
+  async function getResource(path) {
+    var res = await fetch(apiUrl(path), {
+      credentials: 'include',
+      headers: { 'Accept': 'application/json' }
+    });
+
+    if (res.status === 401) {
+      location.href = '/login?redirect=' + encodeURIComponent('/search' + location.search);
+      throw new Error('unauthorized');
+    }
+    if (!res.ok) throw new Error('HTTP ' + res.status);
+
+    var data = await res.json();
+    var items = [];
+    if (Array.isArray(data && data.items)) items = data.items;
+    else if (Array.isArray(data && data.children)) items = data.children;
+
+    return items.map(function (it) {
+      return {
+        name: itemName(it),
+        path: childPath(path || '', it),
+        isDir: isDir(it),
+        raw: it
+      };
+    }).filter(function (it) { return !!it.name; });
+  }
+
+  function makeNode(path, name, dir) {
+    return { path: path || '', name: name || '/', isDir: !!dir, loaded: false, loading: false, children: [] };
+  }
+
+  function getNode(path) {
+    var p = path || '';
+    if (!nodeState.has(p)) {
+      var name = p ? p.split('/').pop() : '/';
+      nodeState.set(p, makeNode(p, name, true));
+    }
+    return nodeState.get(p);
+  }
+
+  async function loadNode(path) {
+    var node = getNode(path);
+    if (!node.isDir || node.loaded || node.loading) return node;
+
+    node.loading = true;
+    try {
+      var children = await getResource(path);
+      node.children = children.sort(function (a, b) {
+        if (a.isDir !== b.isDir) return a.isDir ? -1 : 1;
+        return a.name.localeCompare(b.name, 'zh-CN');
+      });
+      node.loaded = true;
+    } finally {
+      node.loading = false;
+    }
+    return node;
+  }
+
+  function renderTreeNode(node, parentUl) {
+    var li = document.createElement('li');
+    var row = document.createElement('div');
+    row.className = 'tree-row';
+
+    var tg = document.createElement('span');
+    tg.className = 'tree-toggle';
+    tg.textContent = node.isDir ? '▸' : '';
+
+    var ic = document.createElement('span');
+    ic.className = 'tree-icon';
+    ic.textContent = node.isDir ? '📁' : '📄';
+
+    var nm = document.createElement('span');
+    nm.className = 'tree-name';
+    nm.textContent = node.path ? node.name : '根目录';
+
+    row.appendChild(tg);
+    row.appendChild(ic);
+    row.appendChild(nm);
+
+    var childWrap = document.createElement('ul');
+    childWrap.style.display = 'none';
+
+    row.addEventListener('click', async function () {
+      if (!node.isDir) {
+        input.value = node.name;
+        return;
+      }
+
+      var opening = childWrap.style.display === 'none';
+      childWrap.style.display = opening ? 'block' : 'none';
+      tg.textContent = opening ? '▾' : '▸';
+
+      if (opening && childWrap.childElementCount === 0) {
+        var children = [];
+        try {
+          await loadNode(node.path);
+          children = getNode(node.path).children;
+        } catch (e) {
+          var err = document.createElement('li');
+          err.className = 'hint';
+          err.textContent = '加载失败: ' + (e.message || e);
+          childWrap.appendChild(err);
+          return;
+        }
+
+        children.forEach(function (ch) {
+          var childNode = makeNode(ch.path, ch.name, ch.isDir);
+          nodeState.set(ch.path, childNode);
+          renderTreeNode(childNode, childWrap);
+        });
+      }
+    });
+
+    li.appendChild(row);
+    li.appendChild(childWrap);
+    parentUl.appendChild(li);
+  }
+
+  async function initTree() {
+    treeStatus.textContent = '加载中...';
+    treeEl.innerHTML = '';
+
+    var root = getNode('');
+    try {
+      await loadNode('');
+      var ul = document.createElement('ul');
+      renderTreeNode(root, ul);
+      treeEl.appendChild(ul);
+      treeStatus.textContent = '仅显示当前账号有权限访问的目录和文件';
+    } catch (e) {
+      treeStatus.textContent = '文件树加载失败: ' + (e.message || e);
+    }
+  }
+
+  function setResultMeta(text) {
+    resultMeta.textContent = text;
+  }
+
+  function renderResults(items) {
+    resultsEl.innerHTML = '';
+    if (items.length === 0) {
+      var empty = document.createElement('div');
+      empty.className = 'hint';
+      empty.textContent = '没有匹配结果';
+      resultsEl.appendChild(empty);
+      return;
+    }
+
+    items.forEach(function (it) {
+      var box = document.createElement('div');
+      box.className = 'result-item';
+      var title = document.createElement('a');
+      title.href = fileLink(it.path);
+      title.textContent = (it.isDir ? '[目录] ' : '[文件] ') + it.name;
+      var path = document.createElement('div');
+      path.className = 'result-path';
+      path.textContent = it.path || '/';
+      box.appendChild(title);
+      box.appendChild(path);
+      resultsEl.appendChild(box);
+    });
+  }
+
+  async function runSearch(q) {
+    var id = ++runningSearchId;
+    var query = (q || '').trim().toLowerCase();
+
+    if (!query) {
+      setResultMeta('输入关键字后开始搜索');
+      resultsEl.innerHTML = '';
+      return;
+    }
+
+    setResultMeta('搜索中...');
+    var queue = [''];
+    var visited = new Set();
+    var matched = [];
+    var scanned = 0;
+    var maxNodes = 2500;
+
+    while (queue.length > 0) {
+      if (id !== runningSearchId) return;
+
+      var current = queue.shift();
+      if (visited.has(current)) continue;
+      visited.add(current);
+
+      var children = [];
+      try {
+        var node = await loadNode(current);
+        children = node.children || [];
+      } catch (e) {
+        continue;
+      }
+
+      for (var i = 0; i < children.length; i += 1) {
+        var it = children[i];
+        scanned += 1;
+        if (it.name.toLowerCase().indexOf(query) >= 0) matched.push(it);
+        if (it.isDir) queue.push(it.path);
+        if (scanned >= maxNodes) {
+          setResultMeta('已扫描 ' + scanned + ' 项(达到上限),结果 ' + matched.length + ' 条');
+          renderResults(matched);
+          return;
+        }
+      }
+    }
+
+    setResultMeta('已扫描 ' + scanned + ' 项,结果 ' + matched.length + ' 条');
+    renderResults(matched);
+  }
+
+  function syncQueryFromUrl() {
+    var fromUrl = parseQuery();
+    var q = fromUrl || readCachedQuery();
+    input.value = q;
+    if (q) {
+      if (!fromUrl) {
+        history.replaceState(null, '', '/search?q=' + encodeURIComponent(q));
+      }
+      runSearch(q);
+    }
+  }
+
+  form.addEventListener('submit', function (e) {
+    e.preventDefault();
+    var q = (input.value || '').trim();
+    writeCachedQuery(q);
+    var url = '/search' + (q ? ('?q=' + encodeURIComponent(q)) : '');
+    history.replaceState(null, '', url);
+    runSearch(q);
+  });
+
+  input.addEventListener('keydown', function (e) {
+    if (e.key === 'Escape') {
+      input.value = '';
+      writeCachedQuery('');
+      history.replaceState(null, '', '/search');
+      runSearch('');
+    }
+  });
+
+  initTree();
+  syncQueryFromUrl();
+})();

+ 29 - 0
filebrowser-proxy/fb-theme-hook.js

@@ -0,0 +1,29 @@
+(function () {
+  var FIXED = 'frappe';
+  var VER = '20260306w';
+
+  function apply() {
+    var html = document.documentElement;
+    var body = document.body;
+
+    html.setAttribute('data-fb-skin', FIXED);
+    if (body) body.setAttribute('data-fb-skin', FIXED);
+
+    html.style.setProperty('--fb-bg-url', "url('/fb-wallpaper/" + FIXED + ".webp?v=" + VER + "')");
+
+    try {
+      localStorage.setItem('fb.skin', FIXED);
+      localStorage.removeItem('fb.skin.min');
+    } catch (e) {}
+
+    var picker = document.getElementById('fb-theme-picker');
+    if (picker && picker.parentNode) picker.parentNode.removeChild(picker);
+
+    var meta = document.querySelector('meta[name="theme-color"]');
+    if (meta) meta.setAttribute('content', '#303446');
+  }
+
+  apply();
+  var ob = new MutationObserver(apply);
+  ob.observe(document.documentElement, { childList: true, subtree: true });
+})();

+ 373 - 0
filebrowser-proxy/fb-theme.css

@@ -0,0 +1,373 @@
+:root {
+  --fb-bg-url: url('/fb-wallpaper/frappe.webp?v=20260306w');
+  --fb-accent: #8caaee;
+  --fb-accent-2: #ca9ee6;
+  --fb-text: #c6d0f5;
+  --fb-subtext: #a5adce;
+  --fb-base: #303446;
+  --fb-mantle: #292c3c;
+  --fb-crust: #232634;
+  --fb-surface: rgba(48, 52, 70, 0.78);
+  --fb-surface-strong: rgba(41, 44, 60, 0.90);
+  --fb-border: rgba(198, 208, 245, 0.20);
+}
+
+html,
+body {
+  background: var(--fb-crust) !important;
+  color: var(--fb-text) !important;
+  overflow-x: hidden;
+}
+
+html::before {
+  content: '';
+  position: fixed;
+  inset: 0;
+  background:
+    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--fb-accent-2) 28%, transparent), transparent 45%),
+    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--fb-accent) 24%, transparent), transparent 40%),
+    var(--fb-bg-url) center/cover no-repeat;
+  opacity: 0.36;
+  pointer-events: none;
+  z-index: 0;
+}
+
+body::after {
+  content: '';
+  position: fixed;
+  inset: 0;
+  background: linear-gradient(180deg, color-mix(in srgb, var(--fb-crust) 82%, transparent), color-mix(in srgb, var(--fb-crust) 90%, transparent));
+  pointer-events: none;
+  z-index: 0;
+}
+
+#app,
+.v-application,
+.application {
+  position: relative;
+  z-index: 1;
+  color: var(--fb-text) !important;
+}
+
+[class*='toolbar'],
+[class*='header'],
+.v-toolbar,
+.v-app-bar,
+header {
+  background: var(--fb-surface-strong) !important;
+  backdrop-filter: blur(10px);
+  border-bottom: 1px solid var(--fb-border) !important;
+  color: var(--fb-text) !important;
+}
+
+[class*='drawer'],
+.v-navigation-drawer,
+aside {
+  background: color-mix(in srgb, var(--fb-mantle) 88%, transparent) !important;
+  border-right: 1px solid var(--fb-border) !important;
+  backdrop-filter: blur(10px);
+}
+
+main,
+.v-main,
+.v-sheet,
+.v-card,
+.v-table,
+.v-data-table,
+.v-table__wrapper,
+.v-list,
+#listing,
+#listing .item,
+#listing tr,
+#listing li,
+[class*='files'],
+[class*='list'],
+[class*='table'] {
+  background: var(--fb-surface) !important;
+  border-color: var(--fb-border) !important;
+  color: var(--fb-text) !important;
+}
+
+.v-list-item,
+.v-data-table__tr,
+tr,
+#listing .item,
+[class*='item'],
+[class*='file'] {
+  background: transparent !important;
+  color: var(--fb-text) !important;
+  border-radius: 10px !important;
+}
+
+.v-list-item:hover,
+.v-data-table__tr:hover,
+tr:hover,
+#listing .item:hover,
+[class*='item']:hover,
+[class*='file']:hover {
+  background: color-mix(in srgb, var(--fb-accent) 14%, transparent) !important;
+}
+
+button,
+.v-btn,
+[type='button'],
+[type='submit'] {
+  border-radius: 10px !important;
+  border: 1px solid var(--fb-border) !important;
+  color: var(--fb-text) !important;
+}
+
+.v-btn--variant-elevated,
+.v-btn--variant-flat,
+button.primary,
+button[class*='primary'] {
+  background: linear-gradient(
+    135deg,
+    color-mix(in srgb, var(--fb-accent) 92%, #fff 8%),
+    color-mix(in srgb, var(--fb-accent-2) 92%, #fff 8%)
+  ) !important;
+  color: #1f2435 !important;
+  border: none !important;
+  font-weight: 650;
+}
+
+input,
+textarea,
+select,
+.v-field,
+.v-text-field,
+.v-input__control,
+.v-field__field,
+.v-field__input {
+  background: color-mix(in srgb, var(--fb-base) 72%, transparent) !important;
+  border: 1px solid var(--fb-border) !important;
+  color: var(--fb-text) !important;
+  border-radius: 10px !important;
+}
+
+input::placeholder,
+textarea::placeholder {
+  color: var(--fb-subtext) !important;
+  opacity: 1;
+}
+
+a,
+.v-link,
+[class*='link'] {
+  color: var(--fb-accent) !important;
+}
+
+a:hover,
+.v-link:hover {
+  color: var(--fb-accent-2) !important;
+}
+
+/* FB settings theme begin */
+.card,
+.card.floating,
+#dropdown,
+#file-selection,
+.overlay .card {
+  background: color-mix(in srgb, var(--fb-mantle) 90%, transparent) !important;
+  color: var(--fb-text) !important;
+  border: 1px solid var(--fb-border) !important;
+  box-shadow: 0 12px 28px rgba(0,0,0,.35) !important;
+}
+
+.card .card-title,
+.card .card-content,
+.card .card-action,
+.collapsible > label,
+.collapsible .collapse,
+table,
+table th,
+table td {
+  color: var(--fb-text) !important;
+  border-color: var(--fb-border) !important;
+}
+
+.button,
+.button--red,
+.button--blue,
+.button--flat,
+.card .action,
+#dropdown .action,
+#file-selection .action {
+  background: color-mix(in srgb, var(--fb-base) 70%, transparent) !important;
+  color: var(--fb-text) !important;
+  border: 1px solid var(--fb-border) !important;
+  box-shadow: none !important;
+}
+
+.button:hover,
+.card .action:hover,
+#dropdown .action:hover,
+#file-selection .action:hover {
+  background: color-mix(in srgb, var(--fb-accent) 22%, transparent) !important;
+}
+
+.input,
+.input--textarea,
+.card input,
+.card select,
+.card textarea,
+.tusConditionalSettings input {
+  background: color-mix(in srgb, var(--fb-base) 70%, transparent) !important;
+  color: var(--fb-text) !important;
+  border: 1px solid var(--fb-border) !important;
+}
+
+input::placeholder,
+textarea::placeholder {
+  color: var(--fb-subtext) !important;
+}
+
+#dropdown {
+  backdrop-filter: blur(8px);
+}
+
+.rules input[type='text'],
+.rules button,
+.card code {
+  background: color-mix(in srgb, var(--fb-base) 60%, transparent) !important;
+  color: var(--fb-text) !important;
+  border-color: var(--fb-border) !important;
+}
+/* FB settings theme end */
+
+/* FB breadcrumb theme begin */
+.breadcrumbs,
+#breadcrumbs,
+header .breadcrumbs,
+main .breadcrumbs,
+#editor-container .breadcrumbs {
+  display: flex !important;
+  align-items: center !important;
+  box-sizing: border-box !important;
+  height: 3em !important;
+  min-height: 3em !important;
+  padding: 0 0.6em !important;
+  margin: 0 0 0.45em 0 !important;
+  background: color-mix(in srgb, var(--fb-mantle) 88%, transparent) !important;
+  border: 1px solid var(--fb-border) !important;
+  border-radius: 10px !important;
+  color: var(--fb-text) !important;
+  box-shadow: none !important;
+  overflow: hidden !important;
+}
+
+.breadcrumbs > span,
+#breadcrumbs > span,
+#editor-container .breadcrumbs > span {
+  display: inline-flex !important;
+  align-items: center !important;
+  min-height: 100% !important;
+  max-width: 100% !important;
+  gap: 2px !important;
+  white-space: nowrap !important;
+}
+
+.breadcrumbs a,
+.breadcrumbs span,
+.breadcrumbs i,
+#breadcrumbs a,
+#breadcrumbs span,
+#breadcrumbs i,
+.breadcrumbs .action,
+#breadcrumbs .action {
+  color: var(--fb-text) !important;
+  line-height: 1 !important;
+}
+
+.breadcrumbs a,
+#breadcrumbs a,
+.breadcrumbs .action,
+#breadcrumbs .action {
+  display: inline-flex !important;
+  align-items: center !important;
+  justify-content: center !important;
+  height: 2.1em !important;
+  padding: 0 0.35em !important;
+  border-radius: 8px !important;
+  box-sizing: border-box !important;
+}
+
+/* remove inner frame to avoid layered boxes in Home area */
+.breadcrumbs .action,
+#breadcrumbs .action,
+.breadcrumbs a,
+#breadcrumbs a {
+  border: none !important;
+  box-shadow: none !important;
+  background: transparent !important;
+}
+
+.breadcrumbs a:hover,
+#breadcrumbs a:hover,
+.breadcrumbs .action:hover,
+#breadcrumbs .action:hover {
+  background: color-mix(in srgb, var(--fb-accent) 18%, transparent) !important;
+  color: var(--fb-accent-2) !important;
+}
+
+.breadcrumbs .chevron,
+#breadcrumbs .chevron,
+.breadcrumbs .home,
+#breadcrumbs .home {
+  color: var(--fb-subtext) !important;
+}
+/* FB breadcrumb theme end */
+
+/* FB iconview theme begin */
+#listing.mosaic {
+  padding-top: 0.6em !important;
+  padding-left: 0.35em !important;
+  padding-right: 0.35em !important;
+  margin: 0 !important;
+}
+
+#listing.mosaic .item,
+#listing.mosaic.gallery .item {
+  box-sizing: border-box !important;
+  border: 1px solid var(--fb-border) !important;
+  box-shadow: none !important;
+  background: color-mix(in srgb, var(--fb-base) 58%, transparent) !important;
+  overflow: hidden !important;
+}
+
+#listing.mosaic .item > div,
+#listing.mosaic.gallery .item > div {
+  background: transparent !important;
+  border: none !important;
+  box-shadow: none !important;
+}
+
+#listing.mosaic .item div:last-of-type {
+  width: calc(100% - 5.2em) !important;
+  padding-right: 0.15em !important;
+}
+
+#listing.mosaic.gallery .item div:last-of-type {
+  width: calc(100% - 1em) !important;
+  border-top: 1px solid color-mix(in srgb, var(--fb-border) 70%, transparent) !important;
+  background: color-mix(in srgb, var(--fb-mantle) 72%, transparent) !important;
+}
+/* FB iconview theme end */
+
+
+
+/* Search/toolbar hotfix (20260306x2) */
+#search #input input,
+header #search #input input {
+  background: transparent !important;
+  border: none !important;
+  box-shadow: none !important;
+}
+
+#search #input {
+  box-shadow: none !important;
+}
+
+header > div:last-child {
+  margin-left: auto !important;
+}

BIN
filebrowser-proxy/frappe.webp


BIN
filebrowser-proxy/latte.webp


BIN
filebrowser-proxy/macchiato.webp


BIN
filebrowser-proxy/mocha.webp


BIN
filebrowser-proxy/preview.webp


+ 8 - 0
filebrowser/settings.json

@@ -0,0 +1,8 @@
+{
+  "port": 80,
+  "baseURL": "",
+  "address": "",
+  "log": "stdout",
+  "database": "/database/filebrowser.db",
+  "root": "/srv"
+}

+ 27 - 0
hugo/Dockerfile

@@ -0,0 +1,27 @@
+# 多阶段构建:Hugo Extended(官方 ghcr.io)+ Go runtime(golang:alpine)
+# 两个基础镜像均通过华为云 SWR 代理拉取,无需直连 Docker Hub / ghcr.io
+
+# Stage 1: 从华为云镜像缓存的官方 ghcr.io 取 Hugo Extended 二进制
+FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/gohugoio/hugo:v0.147.6 AS hugo-bin
+# 将 hugo 二进制复制到固定路径(不同版本镜像 hugo 所在路径可能不同)
+RUN cp $(which hugo) /tmp/hugo
+
+# Stage 2: 以 golang:alpine 为运行时(包含 Go,Hugo Modules 必需)
+FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.23-alpine
+
+# git:hugo mod 拉取依赖必需;nodejs + npm:Docsy PostCSS 编译必需
+RUN apk add --no-cache git nodejs npm
+
+# 从 Stage 1 复制 Hugo 二进制(路径已在 stage 1 统一固定为 /tmp/hugo)
+COPY --from=hugo-bin /tmp/hugo /usr/local/bin/hugo
+
+# 预置 Docsy 主题及其依赖(bootstrap、font-awesome)到镜像内
+# 避免服务器 init 时直连 GitHub(国内网络不稳定)
+COPY docsy       /opt/docsy
+COPY bootstrap   /opt/bootstrap
+COPY fontawesome /opt/fontawesome
+# 注意:不在此处 npm install
+# Hugo 要求 node_modules 必须在工作目录(/src)内,init 脚本会在 /src 执行 npm install
+
+WORKDIR /src
+ENTRYPOINT ["hugo"]

+ 12 - 0
hugo/bootstrap/.babelrc.js

@@ -0,0 +1,12 @@
+module.exports = {
+  presets: [
+    [
+      '@babel/preset-env',
+      {
+        loose: true,
+        bugfixes: true,
+        modules: false
+      }
+    ]
+  ]
+};

+ 12 - 0
hugo/bootstrap/.browserslistrc

@@ -0,0 +1,12 @@
+# https://github.com/browserslist/browserslist#readme
+
+>= 0.5%
+last 2 major versions
+not dead
+Chrome >= 60
+Firefox >= 60
+Firefox ESR
+iOS >= 12
+Safari >= 12
+not Explorer <= 11
+not kaios <= 2.5 # fix floating label issues in Firefox (see https://github.com/postcss/autoprefixer/issues/1533)

+ 66 - 0
hugo/bootstrap/.bundlewatch.config.json

@@ -0,0 +1,66 @@
+{
+  "files": [
+    {
+      "path": "./dist/css/bootstrap-grid.css",
+      "maxSize": "6.5 kB"
+    },
+    {
+      "path": "./dist/css/bootstrap-grid.min.css",
+      "maxSize": "6.0 kB"
+    },
+    {
+      "path": "./dist/css/bootstrap-reboot.css",
+      "maxSize": "3.5 kB"
+    },
+    {
+      "path": "./dist/css/bootstrap-reboot.min.css",
+      "maxSize": "3.25 kB"
+    },
+    {
+      "path": "./dist/css/bootstrap-utilities.css",
+      "maxSize": "11.75 kB"
+    },
+    {
+      "path": "./dist/css/bootstrap-utilities.min.css",
+      "maxSize": "10.75 kB"
+    },
+    {
+      "path": "./dist/css/bootstrap.css",
+      "maxSize": "32.5 kB"
+    },
+    {
+      "path": "./dist/css/bootstrap.min.css",
+      "maxSize": "30.25 kB"
+    },
+    {
+      "path": "./dist/js/bootstrap.bundle.js",
+      "maxSize": "43.0 kB"
+    },
+    {
+      "path": "./dist/js/bootstrap.bundle.min.js",
+      "maxSize": "23.5 kB"
+    },
+    {
+      "path": "./dist/js/bootstrap.esm.js",
+      "maxSize": "28.0 kB"
+    },
+    {
+      "path": "./dist/js/bootstrap.esm.min.js",
+      "maxSize": "18.25 kB"
+    },
+    {
+      "path": "./dist/js/bootstrap.js",
+      "maxSize": "28.75 kB"
+    },
+    {
+      "path": "./dist/js/bootstrap.min.js",
+      "maxSize": "16.25 kB"
+    }
+  ],
+  "ci": {
+    "trackBranches": [
+      "main",
+      "v4-dev"
+    ]
+  }
+}

+ 131 - 0
hugo/bootstrap/.cspell.json

@@ -0,0 +1,131 @@
+{
+  "version": "0.2",
+  "words": [
+    "affordance",
+    "allowfullscreen",
+    "Analyser",
+    "autohide",
+    "autohiding",
+    "autoplay",
+    "autoplays",
+    "autoplaying",
+    "blazingly",
+    "Blockquotes",
+    "Bootstrappers",
+    "borderless",
+    "Brotli",
+    "browserslist",
+    "browserslistrc",
+    "btncheck",
+    "btnradio",
+    "callout",
+    "callouts",
+    "camelCase",
+    "clearfix",
+    "Codesniffer",
+    "combinator",
+    "Contentful",
+    "Cpath",
+    "Crossfade",
+    "crossfading",
+    "cssgrid",
+    "Csvg",
+    "Datalists",
+    "Deque",
+    "discoverability",
+    "docsearch",
+    "docsref",
+    "dropend",
+    "dropleft",
+    "dropright",
+    "dropstart",
+    "dropup",
+    "dgst",
+    "errorf",
+    "favicon",
+    "favicons",
+    "fieldsets",
+    "flexbox",
+    "fullscreen",
+    "getbootstrap",
+    "Grayscale",
+    "Hoverable",
+    "hreflang",
+    "hstack",
+    "importmap",
+    "jsdelivr",
+    "Jumpstart",
+    "keyframes",
+    "libera",
+    "libman",
+    "Libsass",
+    "lightboxes",
+    "Lowercased",
+    "markdownify",
+    "mediaqueries",
+    "minifiers",
+    "misfunction",
+    "mkdir",
+    "monospace",
+    "mouseleave",
+    "navbars",
+    "navs",
+    "Neue",
+    "noindex",
+    "Noto",
+    "offcanvas",
+    "offcanvases",
+    "Packagist",
+    "popperjs",
+    "prebuild",
+    "prefersreducedmotion",
+    "prepended",
+    "printf",
+    "rects",
+    "relref",
+    "rgba",
+    "roboto",
+    "RTLCSS",
+    "ruleset",
+    "sassrc",
+    "screenreaders",
+    "scrollbars",
+    "scrollspy",
+    "Segoe",
+    "semibold",
+    "socio",
+    "srcset",
+    "stackblitz",
+    "stickied",
+    "Stylelint",
+    "subnav",
+    "tabbable",
+    "textareas",
+    "toggleable",
+    "topbar",
+    "touchend",
+    "twbs",
+    "unitless",
+    "unstylable",
+    "unstyled",
+    "Uppercased",
+    "urlize",
+    "urlquery",
+    "vbtn",
+    "viewports",
+    "Vite",
+    "vstack",
+    "walkthroughs",
+    "WCAG",
+    "zindex"
+  ],
+  "language": "en-US",
+  "ignorePaths": [
+    ".cspell.json",
+    "dist/",
+    "*.min.*",
+    "**/*rtl*",
+    "**/tests/**"
+  ],
+  "useGitignore": true
+}

+ 11 - 0
hugo/bootstrap/.editorconfig

@@ -0,0 +1,11 @@
+# editorconfig.org
+
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 9 - 0
hugo/bootstrap/.eslintignore

@@ -0,0 +1,9 @@
+**/*.min.js
+**/dist/
+**/vendor/
+/_site/
+/site/public/
+/js/coverage/
+/site/static/sw.js
+/site/static/docs/**/assets/sw.js
+/site/layouts/partials/

+ 240 - 0
hugo/bootstrap/.eslintrc.json

@@ -0,0 +1,240 @@
+{
+  "root": true,
+  "extends": [
+    "plugin:import/errors",
+    "plugin:import/warnings",
+    "plugin:unicorn/recommended",
+    "xo",
+    "xo/browser"
+  ],
+  "rules": {
+    "arrow-body-style": "off",
+    "capitalized-comments": "off",
+    "comma-dangle": [
+      "error",
+      "never"
+    ],
+    "import/extensions": [
+      "error",
+      "ignorePackages",
+      {
+        "js": "always"
+      }
+    ],
+    "import/first": "error",
+    "import/newline-after-import": "error",
+    "import/no-absolute-path": "error",
+    "import/no-amd": "error",
+    "import/no-cycle": [
+      "error",
+      {
+        "ignoreExternal": true
+      }
+    ],
+    "import/no-duplicates": "error",
+    "import/no-extraneous-dependencies": "error",
+    "import/no-mutable-exports": "error",
+    "import/no-named-as-default": "error",
+    "import/no-named-as-default-member": "error",
+    "import/no-named-default": "error",
+    "import/no-self-import": "error",
+    "import/no-unassigned-import": [
+      "error"
+    ],
+    "import/no-useless-path-segments": "error",
+    "import/order": "error",
+    "indent": [
+      "error",
+      2,
+      {
+        "MemberExpression": "off",
+        "SwitchCase": 1
+      }
+    ],
+    "logical-assignment-operators": "off",
+    "max-params": [
+      "warn",
+      5
+    ],
+    "multiline-ternary": [
+      "error",
+      "always-multiline"
+    ],
+    "new-cap": [
+      "error",
+      {
+        "properties": false
+      }
+    ],
+    "no-console": "error",
+    "no-negated-condition": "off",
+    "object-curly-spacing": [
+      "error",
+      "always"
+    ],
+    "operator-linebreak": [
+      "error",
+      "after"
+    ],
+    "prefer-object-has-own": "off",
+    "prefer-template": "error",
+    "semi": [
+      "error",
+      "never"
+    ],
+    "strict": "error",
+    "unicorn/explicit-length-check": "off",
+    "unicorn/filename-case": "off",
+    "unicorn/no-anonymous-default-export": "off",
+    "unicorn/no-array-callback-reference": "off",
+    "unicorn/no-array-method-this-argument": "off",
+    "unicorn/no-null": "off",
+    "unicorn/no-typeof-undefined": "off",
+    "unicorn/no-unused-properties": "error",
+    "unicorn/numeric-separators-style": "off",
+    "unicorn/prefer-array-flat": "off",
+    "unicorn/prefer-at": "off",
+    "unicorn/prefer-dom-node-dataset": "off",
+    "unicorn/prefer-module": "off",
+    "unicorn/prefer-query-selector": "off",
+    "unicorn/prefer-spread": "off",
+    "unicorn/prefer-string-raw": "off",
+    "unicorn/prefer-string-replace-all": "off",
+    "unicorn/prefer-structured-clone": "off",
+    "unicorn/prevent-abbreviations": "off"
+  },
+  "overrides": [
+    {
+      "files": [
+        "build/**"
+      ],
+      "env": {
+        "browser": false,
+        "node": true
+      },
+      "parserOptions": {
+        "sourceType": "module"
+      },
+      "rules": {
+        "no-console": "off",
+        "unicorn/prefer-top-level-await": "off"
+      }
+    },
+    {
+      "files": [
+        "js/**"
+      ],
+      "parserOptions": {
+        "sourceType": "module"
+      }
+    },
+    {
+      "files": [
+        "js/tests/*.js",
+        "js/tests/integration/rollup*.js"
+      ],
+      "env": {
+        "node": true
+      },
+      "parserOptions": {
+        "sourceType": "script"
+      }
+    },
+    {
+      "files": [
+        "js/tests/unit/**"
+      ],
+      "env": {
+        "jasmine": true
+      },
+      "rules": {
+        "no-console": "off",
+        "unicorn/consistent-function-scoping": "off",
+        "unicorn/no-useless-undefined": "off",
+        "unicorn/prefer-add-event-listener": "off"
+      }
+    },
+    {
+      "files": [
+        "js/tests/visual/**"
+      ],
+      "plugins": [
+        "html"
+      ],
+      "settings": {
+        "html/html-extensions": [
+          ".html"
+        ]
+      },
+      "rules": {
+        "no-console": "off",
+        "no-new": "off",
+        "unicorn/no-array-for-each": "off"
+      }
+    },
+    {
+      "files": [
+        "scss/tests/**"
+      ],
+      "env": {
+        "node": true
+      },
+      "parserOptions": {
+        "sourceType": "script"
+      }
+    },
+    {
+      "files": [
+        "site/**"
+      ],
+      "env": {
+        "browser": true,
+        "node": false
+      },
+      "parserOptions": {
+        "sourceType": "script",
+        "ecmaVersion": 2019
+      },
+      "rules": {
+        "no-new": "off",
+        "unicorn/no-array-for-each": "off"
+      }
+    },
+    {
+      "files": [
+        "site/src/assets/application.js",
+        "site/src/assets/partials/*.js",
+        "site/src/assets/search.js",
+        "site/src/assets/snippets.js",
+        "site/src/assets/stackblitz.js",
+        "site/src/plugins/*.js"
+      ],
+      "parserOptions": {
+        "sourceType": "module",
+        "ecmaVersion": 2020
+      }
+    },
+    {
+      "files": [
+        "**/*.md"
+      ],
+      "plugins": [
+        "markdown"
+      ],
+      "processor": "markdown/markdown"
+    },
+    {
+      "files": [
+        "**/*.md/*.js",
+        "**/*.md/*.mjs"
+      ],
+      "extends": "plugin:markdown/recommended-legacy",
+      "parserOptions": {
+        "sourceType": "module"
+      },
+      "rules": {
+        "unicorn/prefer-node-protocol": "off"
+      }
+    }
+  ]
+}

+ 8 - 0
hugo/bootstrap/.gitattributes

@@ -0,0 +1,8 @@
+# Enforce Unix newlines
+* text=auto eol=lf
+
+# Don't diff or textually merge source maps
+*.map binary
+
+bootstrap.css linguist-vendored=false
+bootstrap.js linguist-vendored=false

+ 3 - 0
hugo/bootstrap/.github/CODEOWNERS

@@ -0,0 +1,3 @@
+*.js    @twbs/js-review
+*.css   @twbs/css-review
+*.scss  @twbs/css-review

+ 258 - 0
hugo/bootstrap/.github/CONTRIBUTING.md

@@ -0,0 +1,258 @@
+# Contributing to Bootstrap
+
+Looking to contribute something to Bootstrap? **Here’s how you can help.**
+
+Please take a moment to review this document in order to make the contribution
+process easy and effective for everyone involved.
+
+Following these guidelines helps to communicate that you respect the time of
+the developers managing and developing this open source project. In return,
+they should reciprocate that respect in addressing your issue or assessing
+patches and features.
+
+
+## Using the issue tracker
+
+The [issue tracker](https://github.com/twbs/bootstrap/issues) is
+the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests)
+and [submitting pull requests](#pull-requests), but please respect the following
+restrictions:
+
+- Please **do not** use the issue tracker for personal support requests. Stack Overflow ([`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5) tag), [our GitHub Discussions](https://github.com/twbs/bootstrap/discussions) or [IRC](/README.md#community) are better places to get help.
+
+- Please **do not** derail or troll issues. Keep the discussion on topic and
+  respect the opinions of others.
+
+- Please **do not** post comments consisting solely of "+1" or ":thumbsup:".
+  Use [GitHub's "reactions" feature](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
+  instead. We reserve the right to delete comments which violate this rule.
+
+- Please **do not** open issues regarding the official themes offered on <https://themes.getbootstrap.com/>.
+  Instead, please email any questions or feedback regarding those themes to `themes AT getbootstrap DOT com`.
+
+
+## Issues assignment
+
+The core team will be looking at the open issues, analyze them, and provide guidance on how to proceed. **Issues won’t be assigned to anyone outside the core team.** However, contributors are welcome to participate in the discussion and provide their input on how to best solve the issue, and even submit a PR if they want to. Please wait that the issue is ready to be worked on before submitting a PR, we don’t want to waste your time.
+
+Please keep in mind that the core team is small, has limited resources and that we are not always able to respond immediately. We will try to provide feedback as soon as possible, but please be patient. If you don’t get a response immediately, it doesn’t mean that we are ignoring you or that we don’t care about your issue or PR. We will get back to you as soon as we can.
+
+
+## Issues and labels
+
+Our bug tracker utilizes several labels to help organize and identify issues. Here’s what they represent and how we use them:
+
+- `browser bug` - Issues that are reported to us, but actually are the result of a browser-specific bug. These are diagnosed with reduced test cases and result in an issue opened on that browser's own bug tracker.
+- `confirmed` - Issues that have been confirmed with a reduced test case and identify a bug in Bootstrap.
+- `css` - Issues stemming from our compiled CSS or source Sass files.
+- `docs` - Issues for improving or updating our documentation.
+- `examples` - Issues involving the example templates included in our docs.
+- `feature` - Issues asking for a new feature to be added, or an existing one to be extended or modified. New features require a minor version bump (e.g., `v3.0.0` to `v3.1.0`).
+- `build` - Issues with our build system, which is used to run all our tests, concatenate and compile source files, and more.
+- `help wanted` - Issues we need or would love help from the community to resolve.
+- `js` - Issues stemming from our compiled or source JavaScript files.
+- `meta` - Issues with the project itself or our GitHub repository.
+
+For a complete look at our labels, see the [project labels page](https://github.com/twbs/bootstrap/labels).
+
+
+## Bug reports
+
+A bug is a _demonstrable problem_ that is caused by the code in the repository.
+Good bug reports are extremely helpful, so thanks!
+
+Guidelines for bug reports:
+
+0. **[Validate your HTML](https://html5.validator.nu/)** to ensure your
+   problem isn’t caused by a simple error in your own code.
+
+1. **Use the GitHub issue search** &mdash; check if the issue has already been
+   reported.
+
+2. **Check if the issue has been fixed** &mdash; try to reproduce it using the
+   latest `main` (or `v4-dev` branch if the issue is about v4) in the repository.
+
+3. **Isolate the problem** &mdash; ideally create a [reduced test
+   case](https://css-tricks.com/reduced-test-cases/) and a live example.
+   These [v4 CodePen](https://codepen.io/team/bootstrap/pen/yLabNQL) and [v5 CodePen](https://codepen.io/team/bootstrap/pen/qBamdLj) are helpful templates.
+
+
+A good bug report shouldn’t leave others needing to chase you up for more
+information. Please try to be as detailed as possible in your report. What is
+your environment? What steps will reproduce the issue? What browser(s) and OS
+experience the problem? Do other browsers show the bug differently? What
+would you expect to be the outcome? All these details will help people to fix
+any potential bugs.
+
+Example:
+
+> Short and descriptive example bug report title
+>
+> A summary of the issue and the browser/OS environment in which it occurs. If
+> suitable, include the steps required to reproduce the bug.
+>
+> 1. This is the first step
+> 2. This is the second step
+> 3. Further steps, etc.
+>
+> `<url>` - a link to the reduced test case
+>
+> Any other information you want to share that is relevant to the issue being
+> reported. This might include the lines of code that you have identified as
+> causing the bug, and potential solutions (and your opinions on their
+> merits).
+
+### Reporting upstream browser bugs
+
+Sometimes bugs reported to us are actually caused by bugs in the browser(s) themselves, not bugs in Bootstrap per se.
+
+| Vendor(s)     | Browser(s)                   | Rendering engine | Bug reporting website(s)                               | Notes                                                    |
+| ------------- | ---------------------------- | ---------------- | ------------------------------------------------------ | -------------------------------------------------------- |
+| Mozilla       | Firefox                      | Gecko            | <https://bugzilla.mozilla.org/enter_bug.cgi>             | "Core" is normally the right product option to choose.   |
+| Apple         | Safari                       | WebKit           | <https://bugs.webkit.org/enter_bug.cgi?product=WebKit>   | In Apple’s bug reporter, choose "Safari" as the product. |
+| Google, Opera | Chrome, Chromium, Opera v15+ | Blink            | <https://bugs.chromium.org/p/chromium/issues/list>       | Click the "New issue" button.                            |
+| Microsoft     | Edge                         | Blink            | <https://developer.microsoft.com/en-us/microsoft-edge/>  | Go to "Help > Send Feedback" from the browser            |
+
+
+## Feature requests
+
+Feature requests are welcome. But take a moment to find out whether your idea
+fits with the scope and aims of the project. It’s up to _you_ to make a strong
+case to convince the project’s developers of the merits of this feature. Please
+provide as much detail and context as possible.
+
+
+## Pull requests
+
+Good pull requests—patches, improvements, new features—are a fantastic
+help. They should remain focused in scope and avoid containing unrelated
+commits.
+
+**Please ask first** before embarking on any **significant** pull request (e.g.
+implementing features, refactoring code, porting to a different language),
+otherwise you risk spending a lot of time working on something that the
+project’s developers might not want to merge into the project. For trivial
+things, or things that don’t require a lot of your time, you can go ahead and
+make a PR.
+
+Please adhere to the [coding guidelines](#code-guidelines) used throughout the
+project (indentation, accurate comments, etc.) and any other requirements
+(such as test coverage).
+
+**Do not edit `bootstrap.css` or `bootstrap.js`, and do not commit
+any dist files (`dist/` or `js/dist`).** Those files are automatically generated by our build tools. You should
+edit the source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/main/scss)
+and/or [`/bootstrap/js/src/`](https://github.com/twbs/bootstrap/tree/main/js/src) instead.
+
+Similarly, when contributing to Bootstrap’s documentation, you should edit the
+documentation source files in
+[the `/bootstrap/site/content/docs/` directory of the `main` branch](https://github.com/twbs/bootstrap/tree/main/site/content/docs).
+**Do not edit the `gh-pages` branch.** That branch is generated from the
+documentation source files and is managed separately by the Bootstrap Core Team.
+
+Adhering to the following process is the best way to get your work
+included in the project:
+
+1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork,
+   and configure the remotes:
+
+   ```bash
+   # Clone your fork of the repo into the current directory
+   git clone https://github.com/<your-username>/bootstrap.git
+   # Navigate to the newly cloned directory
+   cd bootstrap
+   # Assign the original repo to a remote called "upstream"
+   git remote add upstream https://github.com/twbs/bootstrap.git
+   ```
+
+2. If you cloned a while ago, get the latest changes from upstream:
+
+   ```bash
+   git checkout main
+   git pull upstream main
+   ```
+
+3. Install or update project dependencies with npm:
+
+   ```bash
+   npm install
+   ```
+
+4. Create a new topic branch (off the main project development branch) to
+   contain your feature, change, or fix:
+
+   ```bash
+   git checkout -b <topic-branch-name>
+   ```
+
+5. Commit your changes in logical chunks. Please adhere to these [git commit
+   message guidelines](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
+   or your code is unlikely be merged into the main project. Use Git’s
+   [interactive rebase](https://help.github.com/articles/about-git-rebase/)
+   feature to tidy up your commits before making them public.
+
+6. Ensure your changes compile the dist CSS and JS files in the `dist/` directory. Verify
+   the build succeeds locally without errors.
+
+   ```bash
+   npm run dist
+   ```
+
+7. Locally merge (or rebase) the upstream development branch into your topic branch:
+
+   ```bash
+   git pull [--rebase] upstream main
+   ```
+
+8. Commit your changes, but **do not push compiled CSS and JS files in `dist` and `js/dist`**.
+   Push your topic branch up to your fork:
+
+   ```bash
+   git push origin <topic-branch-name>
+   ```
+
+9. [Open a pull request](https://help.github.com/articles/about-pull-requests/)
+   with a clear title and description against the `main` branch.
+
+**IMPORTANT**: By submitting a patch, you agree to allow the project owners to
+license your work under the terms of the [MIT License](../LICENSE) (if it
+includes code changes) and under the terms of the
+[Creative Commons Attribution 3.0 Unported License](https://creativecommons.org/licenses/by/3.0/)
+(if it includes documentation changes).
+
+
+## Code guidelines
+
+### HTML
+
+[Adhere to the Code Guide.](https://codeguide.co/#html)
+
+- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags).
+- Use CDNs and HTTPS for third-party JS when possible. We don’t use protocol-relative URLs in this case because they break when viewing the page locally via `file://`.
+- Use [WAI-ARIA](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) attributes in documentation examples to promote accessibility.
+
+### CSS
+
+[Adhere to the Code Guide.](https://codeguide.co/#css)
+
+- When feasible, default color palettes should comply with [WCAG color contrast guidelines](https://www.w3.org/TR/WCAG/#distinguishable).
+- Except in rare cases, don’t remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](https://www.a11yproject.com/posts/2013-01-25-never-remove-css-outlines/) for more details.
+
+### JS
+
+- No semicolons (in client-side JS)
+- 2 spaces (no tabs)
+- strict mode
+- "Attractive"
+
+### Checking coding style
+
+Run `npm run test` before committing to ensure your changes follow our coding standards.
+
+
+## License
+
+By contributing your code, you agree to license your contribution under the [MIT License](../LICENSE).
+By contributing to the documentation, you agree to license your contribution under the [Creative Commons Attribution 3.0 Unported License](https://creativecommons.org/licenses/by/3.0/).
+
+Prior to v3.1.0, Bootstrap’s code was released under the Apache License v2.0.

+ 62 - 0
hugo/bootstrap/.github/ISSUE_TEMPLATE/bug_report.yml

@@ -0,0 +1,62 @@
+name: Report a bug
+description: Tell us about a bug or issue you may have identified in Bootstrap.
+title: "Provide a general summary of the issue"
+labels: [bug]
+assignees: "-"
+body:
+  - type: checkboxes
+    attributes:
+      label: Prerequisites
+      description: Take a couple minutes to help our maintainers work faster.
+      options:
+        - label: I have [searched](https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue) for duplicate or closed issues
+          required: true
+        - label: I have [validated](https://html5.validator.nu/) any HTML to avoid common problems
+          required: true
+        - label: I have read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md)
+          required: true
+  - type: textarea
+    id: what-happened
+    attributes:
+      label: Describe the issue
+      description: Provide a summary of the issue and what you expected to happen, including specific steps to reproduce.
+    validations:
+      required: true
+  - type: textarea
+    id: reduced-test-case
+    attributes:
+      label: Reduced test cases
+      description: Include links [reduced test case](https://css-tricks.com/reduced-test-cases/) links or suggested fixes using CodePen ([v4 template](https://codepen.io/team/bootstrap/pen/yLabNQL) or [v5 template](https://codepen.io/team/bootstrap/pen/qBamdLj)).
+    validations:
+      required: true
+  - type: dropdown
+    id: os
+    attributes:
+      label: What operating system(s) are you seeing the problem on?
+      multiple: true
+      options:
+        - Windows
+        - macOS
+        - Android
+        - iOS
+        - Linux
+    validations:
+      required: true
+  - type: dropdown
+    id: browser
+    attributes:
+      label: What browser(s) are you seeing the problem on?
+      multiple: true
+      options:
+        - Chrome
+        - Safari
+        - Firefox
+        - Microsoft Edge
+        - Opera
+  - type: input
+    id: version
+    attributes:
+      label: What version of Bootstrap are you using?
+      placeholder: "e.g., v5.1.0 or v4.5.2"
+    validations:
+      required: true

+ 4 - 0
hugo/bootstrap/.github/ISSUE_TEMPLATE/config.yml

@@ -0,0 +1,4 @@
+contact_links:
+  - name: Ask the community
+    url: https://github.com/twbs/bootstrap/discussions/new
+    about: Ask and discuss questions with other Bootstrap community members.

+ 29 - 0
hugo/bootstrap/.github/ISSUE_TEMPLATE/feature_request.yml

@@ -0,0 +1,29 @@
+name: Feature request
+description: Suggest new or updated features to include in Bootstrap.
+title: "Suggest a new feature"
+labels: [feature]
+assignees: []
+body:
+  - type: checkboxes
+    attributes:
+      label: Prerequisites
+      description: Take a couple minutes to help our maintainers work faster.
+      options:
+        - label: I have [searched](https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue) for duplicate or closed feature requests
+          required: true
+        - label: I have read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md)
+          required: true
+  - type: textarea
+    id: proposal
+    attributes:
+      label: Proposal
+      description: Provide detailed information for what we should add, including relevant links to prior art, screenshots, or live demos whenever possible.
+    validations:
+      required: true
+  - type: textarea
+    id: motivation
+    attributes:
+      label: Motivation and context
+      description: Tell us why this change is needed or helpful, and what problems it may help solve.
+    validations:
+      required: true

+ 38 - 0
hugo/bootstrap/.github/PULL_REQUEST_TEMPLATE.md

@@ -0,0 +1,38 @@
+### Description
+
+<!-- Describe your changes in detail -->
+
+### Motivation & Context
+
+<!-- Why is this change required? What problem does it solve? -->
+
+### Type of changes
+
+<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. -->
+
+- [ ] Bug fix (non-breaking change which fixes an issue)
+- [ ] New feature (non-breaking change which adds functionality)
+- [ ] Refactoring (non-breaking change)
+- [ ] Breaking change (fix or feature that would change existing functionality)
+
+### Checklist
+
+<!-- Go over all the following points, and put an `x` in all the boxes that apply. -->
+<!-- If you’re unsure about any of these, don’t hesitate to ask. We’re here to help! -->
+
+- [ ] I have read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md)
+- [ ] My code follows the code style of the project _(using `npm run lint`)_
+- [ ] My change introduces changes to the documentation
+- [ ] I have updated the documentation accordingly
+- [ ] I have added tests to cover my changes
+- [ ] All new and existing tests passed
+
+#### Live previews
+
+<!-- Please add direct links where your modifications can be seen in the documentation -->
+
+- <https://deploy-preview-{your_pr_number}--twbs-bootstrap.netlify.app/>
+
+### Related issues
+
+<!-- Please link any related issues here. -->

+ 11 - 0
hugo/bootstrap/.github/SUPPORT.md

@@ -0,0 +1,11 @@
+### Bug reports
+
+See the [contributing guidelines](CONTRIBUTING.md) for sharing bug reports.
+
+### How-to
+
+For general troubleshooting or help getting started:
+
+- Ask and explore [our GitHub Discussions](https://github.com/twbs/bootstrap/discussions).
+- Chat with fellow Bootstrappers in IRC. On the `irc.libera.chat` server, in the `#bootstrap` channel.
+- Ask and explore Stack Overflow with the [`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5) tag.

+ 3 - 0
hugo/bootstrap/.github/codeql/codeql-config.yml

@@ -0,0 +1,3 @@
+name: "CodeQL config"
+paths-ignore:
+  - dist

+ 26 - 0
hugo/bootstrap/.github/dependabot.yml

@@ -0,0 +1,26 @@
+version: 2
+updates:
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: weekly
+      day: tuesday
+      time: "12:00"
+      timezone: Europe/Athens
+  - package-ecosystem: npm
+    directory: "/"
+    labels:
+      - dependencies
+      - v5
+    schedule:
+      interval: weekly
+      day: tuesday
+      time: "12:00"
+      timezone: Europe/Athens
+    versioning-strategy: increase
+    rebase-strategy: disabled
+    groups:
+      production-dependencies:
+        dependency-type: "production"
+      development-dependencies:
+        dependency-type: "development"

+ 60 - 0
hugo/bootstrap/.github/release-drafter.yml

@@ -0,0 +1,60 @@
+name-template: 'v$NEXT_MAJOR_VERSION'
+tag-template: 'v$NEXT_MAJOR_VERSION'
+prerelease: true
+exclude-labels:
+  - 'skip-changelog'
+categories:
+  - title: '❗ Breaking Changes'
+    labels:
+      - 'breaking-change'
+  - title: '🚀 Highlights'
+    labels:
+      - 'release-highlight'
+  - title: '🚀 Features'
+    labels:
+      - 'new-feature'
+      - 'feature'
+      - 'enhancement'
+  - title: '🐛 Bug fixes'
+    labels:
+      - 'fix'
+      - 'bugfix'
+      - 'bug'
+  - title: '⚡ Performance improvements'
+    labels:
+      - 'performance'
+  - title: '🎨 CSS'
+    labels:
+      - 'css'
+  - title: '☕️ JavaScript'
+    labels:
+      - 'js'
+  - title: '📖 Docs'
+    labels:
+      - 'docs'
+  - title: '🛠 Examples'
+    labels:
+      - 'examples'
+  - title: '🌎 Accessibility'
+    labels:
+      - 'accessibility'
+  - title: '🔧 Utility API'
+    labels:
+      - 'utility API'
+      - 'utilities'
+  - title: '🏭 Tests'
+    labels:
+      - 'tests'
+  - title: '🧰 Misc'
+    labels:
+      - 'build'
+      - 'meta'
+      - 'chore'
+      - 'CI'
+  - title: '📦 Dependencies'
+    labels:
+      - 'dependencies'
+change-template: '- #$NUMBER: $TITLE'
+template: |
+  ## Changes
+  $CHANGES

+ 46 - 0
hugo/bootstrap/.github/workflows/browserstack.yml

@@ -0,0 +1,46 @@
+name: BrowserStack
+
+on:
+  push:
+    branches:
+      - "**"
+      - "!dependabot/**"
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+  NODE: 20
+
+permissions:
+  contents: read
+
+jobs:
+  browserstack:
+    runs-on: ubuntu-latest
+    if: github.repository == 'twbs/bootstrap'
+    timeout-minutes: 30
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: "${{ env.NODE }}"
+          cache: npm
+
+      - name: Install npm dependencies
+        run: npm ci
+
+      - name: Run dist
+        run: npm run dist
+
+      - name: Run BrowserStack tests
+        run: npm run js-test-cloud
+        env:
+          BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
+          BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
+          GITHUB_SHA: "${{ github.sha }}"

+ 43 - 0
hugo/bootstrap/.github/workflows/bundlewatch.yml

@@ -0,0 +1,43 @@
+name: Bundlewatch
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+  NODE: 20
+
+permissions:
+  contents: read
+
+jobs:
+  bundlewatch:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: "${{ env.NODE }}"
+          cache: npm
+
+      - name: Install npm dependencies
+        run: npm ci
+
+      - name: Run dist
+        run: npm run dist
+
+      - name: Run bundlewatch
+        run: npm run bundlewatch
+        env:
+          BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
+          CI_BRANCH_BASE: main

+ 32 - 0
hugo/bootstrap/.github/workflows/calibreapp-image-actions.yml

@@ -0,0 +1,32 @@
+name: Compress Images
+
+on:
+  pull_request:
+    paths:
+      - '**.jpg'
+      - '**.jpeg'
+      - '**.png'
+      - '**.webp'
+
+permissions:
+  contents: read
+
+jobs:
+  build:
+    # Only run on Pull Requests within the same repository, and not from forks.
+    if: github.event.pull_request.head.repo.full_name == github.repository
+    name: calibreapp/image-actions
+    runs-on: ubuntu-latest
+    permissions:
+      # allow calibreapp/image-actions to update PRs
+      pull-requests: write
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Compress Images
+        uses: calibreapp/image-actions@1.1.0
+        with:
+          githubToken: ${{ secrets.GITHUB_TOKEN }}

+ 44 - 0
hugo/bootstrap/.github/workflows/codeql.yml

@@ -0,0 +1,44 @@
+name: "CodeQL"
+
+on:
+  push:
+    branches:
+      - main
+      - v4-dev
+      - "!dependabot/**"
+  pull_request:
+    branches:
+      - main
+      - v4-dev
+      - "!dependabot/**"
+  schedule:
+    - cron: "0 2 * * 4"
+  workflow_dispatch:
+
+jobs:
+  analyze:
+    name: Analyze
+    runs-on: ubuntu-latest
+    permissions:
+      security-events: write
+
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Initialize CodeQL
+        uses: github/codeql-action/init@v3
+        with:
+          config-file: ./.github/codeql/codeql-config.yml
+          languages: "javascript"
+          queries: +security-and-quality
+
+      - name: Autobuild
+        uses: github/codeql-action/autobuild@v3
+
+      - name: Perform CodeQL Analysis
+        uses: github/codeql-action/analyze@v3
+        with:
+          category: "/language:javascript"

+ 36 - 0
hugo/bootstrap/.github/workflows/cspell.yml

@@ -0,0 +1,36 @@
+name: cspell
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+
+permissions:
+  contents: read
+
+jobs:
+  cspell:
+    permissions:
+      # allow streetsidesoftware/cspell-action to fetch files for commits and PRs
+      contents: read
+      pull-requests: read
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Run cspell
+        uses: streetsidesoftware/cspell-action@v6
+        with:
+          config: ".cspell.json"
+          files: "**/*.{md,mdx}"
+          inline: error
+          incremental_files_only: false

+ 40 - 0
hugo/bootstrap/.github/workflows/css.yml

@@ -0,0 +1,40 @@
+name: CSS
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+  NODE: 20
+
+permissions:
+  contents: read
+
+jobs:
+  css:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: "${{ env.NODE }}"
+          cache: npm
+
+      - name: Install npm dependencies
+        run: npm ci
+
+      - name: Build CSS
+        run: npm run css
+
+      - name: Run CSS tests
+        run: npm run css-test

+ 50 - 0
hugo/bootstrap/.github/workflows/docs.yml

@@ -0,0 +1,50 @@
+name: Docs
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+  NODE: 20
+
+permissions:
+  contents: read
+
+jobs:
+  docs:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: "${{ env.NODE }}"
+          cache: npm
+
+      - run: java -version
+
+      - name: Install npm dependencies
+        run: npm ci
+
+      - name: Build docs
+        run: npm run docs-build
+
+      - name: Validate HTML
+        run: npm run docs-vnu
+
+      - name: Run linkinator
+        uses: JustinBeckwith/linkinator-action@v1
+        with:
+          paths: _site
+          recurse: true
+          verbosity: error
+          skip: "^(?!http://localhost)"

+ 26 - 0
hugo/bootstrap/.github/workflows/issue-close-require.yml

@@ -0,0 +1,26 @@
+name: Close Issue Awaiting Reply
+
+on:
+  schedule:
+    - cron: "0 0 * * *"
+
+permissions:
+  contents: read
+
+jobs:
+  issue-close-require:
+    permissions:
+      # allow actions-cool/issues-helper to update issues and PRs
+      issues: write
+      pull-requests: write
+    runs-on: ubuntu-latest
+    if: github.repository == 'twbs/bootstrap'
+    steps:
+      - name: awaiting reply
+        uses: actions-cool/issues-helper@v3
+        with:
+          actions: "close-issues"
+          labels: "awaiting-reply"
+          inactive-day: 14
+          body: |
+            As the issue was labeled with `awaiting-reply`, but there has been no response in 14 days, this issue will be closed. If you have any questions, you can comment/reply.

+ 26 - 0
hugo/bootstrap/.github/workflows/issue-labeled.yml

@@ -0,0 +1,26 @@
+name: Issue Labeled
+
+on:
+  issues:
+    types: [labeled]
+
+permissions:
+  contents: read
+
+jobs:
+  issue-labeled:
+    permissions:
+      # allow actions-cool/issues-helper to update issues and PRs
+      issues: write
+      pull-requests: write
+    if: github.repository == 'twbs/bootstrap'
+    runs-on: ubuntu-latest
+    steps:
+      - name: awaiting reply
+        if: github.event.label.name == 'needs-example'
+        uses: actions-cool/issues-helper@v3
+        with:
+          actions: "create-comment"
+          token: ${{ secrets.GITHUB_TOKEN }}
+          body: |
+            Hello @${{ github.event.issue.user.login }}. Bug reports must include a **live demo** of the issue. Per our [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md), please create a reduced test case on [CodePen](https://codepen.io/) or [StackBlitz](https://stackblitz.com/) and report back with your link, Bootstrap version, and specific browser and Operating System details.

+ 52 - 0
hugo/bootstrap/.github/workflows/js.yml

@@ -0,0 +1,52 @@
+name: JS Tests
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+  NODE: 20
+
+permissions:
+  contents: read
+
+jobs:
+  run:
+    permissions:
+      # allow coverallsapp/github-action to create new checks issues and fetch code
+      checks: write
+      contents: read
+    name: JS Tests
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: ${{ env.NODE }}
+          cache: npm
+
+      - name: Install npm dependencies
+        run: npm ci
+
+      - name: Run dist
+        run: npm run js
+
+      - name: Run JS tests
+        run: npm run js-test
+
+      - name: Run Coveralls
+        uses: coverallsapp/github-action@v2
+        if: ${{ !github.event.repository.fork }}
+        with:
+          github-token: "${{ secrets.GITHUB_TOKEN }}"
+          path-to-lcov: "./js/coverage/lcov.info"

+ 37 - 0
hugo/bootstrap/.github/workflows/lint.yml

@@ -0,0 +1,37 @@
+name: Lint
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+  NODE: 20
+
+permissions:
+  contents: read
+
+jobs:
+  lint:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: "${{ env.NODE }}"
+          cache: npm
+
+      - name: Install npm dependencies
+        run: npm ci
+
+      - name: Lint
+        run: npm run lint

+ 49 - 0
hugo/bootstrap/.github/workflows/node-sass.yml

@@ -0,0 +1,49 @@
+name: CSS (node-sass)
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+  workflow_dispatch:
+
+env:
+  FORCE_COLOR: 2
+  NODE: 20
+
+permissions:
+  contents: read
+
+jobs:
+  css:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: "${{ env.NODE }}"
+
+      - name: Build CSS with node-sass
+        run: |
+          npx --package node-sass@latest node-sass --version
+          npx --package node-sass@latest node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/ -o dist-sass/css/
+          ls -Al dist-sass/css
+
+      - name: Check built CSS files for Sass variables
+        shell: bash
+        run: |
+          SASS_VARS_FOUND=$(find "dist-sass/css/" -type f -name "*.css" -print0 | xargs -0 --no-run-if-empty grep -F "\$" || true)
+          if [[ -z "$SASS_VARS_FOUND" ]]; then
+            echo "All good, no Sass variables found!"
+            exit 0
+          else
+            echo "Found $(echo "$SASS_VARS_FOUND" | wc -l | bc) Sass variables:"
+            echo "$SASS_VARS_FOUND"
+            exit 1
+          fi

+ 23 - 0
hugo/bootstrap/.github/workflows/release-notes.yml

@@ -0,0 +1,23 @@
+name: Release notes
+
+on:
+  push:
+    branches:
+      - main
+  workflow_dispatch:
+
+permissions:
+  contents: read
+
+jobs:
+  update_release_draft:
+    permissions:
+      # allow release-drafter/release-drafter to create GitHub releases and add labels to PRs
+      contents: write
+      pull-requests: write
+    runs-on: ubuntu-latest
+    if: github.repository == 'twbs/bootstrap'
+    steps:
+      - uses: release-drafter/release-drafter@v6
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 46 - 0
hugo/bootstrap/.gitignore

@@ -0,0 +1,46 @@
+# Ignore docs files
+/_site/
+
+# Numerous always-ignore extensions
+*.diff
+*.err
+*.log
+*.orig
+*.rej
+*.swo
+*.swp
+*.vi
+*.zip
+*~
+
+# OS or Editor folders
+._*
+.cache
+.DS_Store
+.idea
+.project
+.settings
+.tmproj
+*.esproj
+*.sublime-project
+*.sublime-workspace
+nbproject
+Thumbs.db
+/.vscode/
+# Local Netlify folder
+.netlify
+
+# Komodo
+.komodotools
+*.komodoproject
+
+# Folders to ignore
+/dist-sass/
+/js/coverage/
+/node_modules/
+
+# Site
+/site/dist
+/site/node_modules
+/site/.astro
+/site/public

+ 12 - 0
hugo/bootstrap/.prettierignore

@@ -0,0 +1,12 @@
+# Prettier is only used for the website
+
+site/.astro
+site/dist
+site/public
+site/src/assets
+site/src/scss
+site/src/pages/**/*.md
+site/src/pages/**/*.mdx
+site/src/content/**/*.mdx
+site/src/layouts/RedirectLayout.astro
+site/static

+ 6 - 0
hugo/bootstrap/.stylelintignore

@@ -0,0 +1,6 @@
+**/*.min.css
+**/dist/
+**/vendor/
+/_site/
+/site/public/
+/js/coverage/

+ 60 - 0
hugo/bootstrap/.stylelintrc.json

@@ -0,0 +1,60 @@
+{
+  "extends": [
+    "stylelint-config-twbs-bootstrap"
+  ],
+  "reportInvalidScopeDisables": true,
+  "reportNeedlessDisables": true,
+  "overrides": [
+    {
+      "files": "**/*.scss",
+      "rules": {
+        "declaration-property-value-disallowed-list": {
+          "border": "none",
+          "outline": "none"
+        },
+        "function-disallowed-list": [
+          "calc",
+          "lighten",
+          "darken"
+        ],
+        "property-disallowed-list": [
+          "border-radius",
+          "border-top-left-radius",
+          "border-top-right-radius",
+          "border-bottom-right-radius",
+          "border-bottom-left-radius",
+          "transition"
+        ],
+        "scss/dollar-variable-default": [
+          true,
+          {
+            "ignore": "local"
+          }
+        ],
+        "scss/selector-no-union-class-name": true
+      }
+    },
+    {
+      "files": "scss/**/*.{test,spec}.scss",
+      "rules": {
+        "scss/dollar-variable-default": null,
+        "declaration-no-important": null
+      }
+    },
+    {
+      "files": "site/**/*.scss",
+      "rules": {
+        "scss/dollar-variable-default": null
+      }
+    },
+    {
+      "files": "site/**/examples/**/*.css",
+      "rules": {
+        "comment-empty-line-before": null,
+        "property-no-vendor-prefix": null,
+        "selector-no-qualifying-type": null,
+        "value-no-vendor-prefix": null
+      }
+    }
+  ]
+}

+ 132 - 0
hugo/bootstrap/CODE_OF_CONDUCT.md

@@ -0,0 +1,132 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+We as members, contributors, and leaders pledge to make participation in our
+community a harassment-free experience for everyone, regardless of age, body
+size, visible or invisible disability, ethnicity, sex characteristics, gender
+identity and expression, level of experience, education, socio-economic status,
+nationality, personal appearance, race, caste, color, religion, or sexual
+identity and orientation.
+
+We pledge to act and interact in ways that contribute to an open, welcoming,
+diverse, inclusive, and healthy community.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+- Demonstrating empathy and kindness toward other people
+- Being respectful of differing opinions, viewpoints, and experiences
+- Giving and gracefully accepting constructive feedback
+- Accepting responsibility and apologizing to those affected by our mistakes,
+  and learning from the experience
+- Focusing on what is best not just for us as individuals, but for the overall
+  community
+
+Examples of unacceptable behavior include:
+
+- The use of sexualized language or imagery, and sexual attention or advances of
+  any kind
+- Trolling, insulting or derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others’ private information, such as a physical or email address,
+  without their explicit permission
+- Other conduct which could reasonably be considered inappropriate in a
+  professional setting
+
+## Enforcement Responsibilities
+
+Community leaders are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any behavior that they deem inappropriate, threatening, offensive,
+or harmful.
+
+Community leaders have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, and will communicate reasons for moderation
+decisions when appropriate.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+Examples of representing our community include using an official e-mail address,
+posting via an official social media account, or acting as an appointed
+representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the community leaders responsible for enforcement at
+mdo@getbootstrap.com.
+All complaints will be reviewed and investigated promptly and fairly.
+
+All community leaders are obligated to respect the privacy and security of the
+reporter of any incident.
+
+## Enforcement Guidelines
+
+Community leaders will follow these Community Impact Guidelines in determining
+the consequences for any action they deem in violation of this Code of Conduct:
+
+### 1. Correction
+
+**Community Impact**: Use of inappropriate language or other behavior deemed
+unprofessional or unwelcome in the community.
+
+**Consequence**: A private, written warning from community leaders, providing
+clarity around the nature of the violation and an explanation of why the
+behavior was inappropriate. A public apology may be requested.
+
+### 2. Warning
+
+**Community Impact**: A violation through a single incident or series of
+actions.
+
+**Consequence**: A warning with consequences for continued behavior. No
+interaction with the people involved, including unsolicited interaction with
+those enforcing the Code of Conduct, for a specified period of time. This
+includes avoiding interactions in community spaces as well as external channels
+like social media. Violating these terms may lead to a temporary or permanent
+ban.
+
+### 3. Temporary Ban
+
+**Community Impact**: A serious violation of community standards, including
+sustained inappropriate behavior.
+
+**Consequence**: A temporary ban from any sort of interaction or public
+communication with the community for a specified period of time. No public or
+private interaction with the people involved, including unsolicited interaction
+with those enforcing the Code of Conduct, is allowed during this period.
+Violating these terms may lead to a permanent ban.
+
+### 4. Permanent Ban
+
+**Community Impact**: Demonstrating a pattern of violation of community
+standards, including sustained inappropriate behavior, harassment of an
+individual, or aggression toward or disparagement of classes of individuals.
+
+**Consequence**: A permanent ban from any sort of public interaction within the
+community.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 2.1, available at
+[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
+
+Community Impact Guidelines were inspired by
+[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
+
+For answers to common questions about this code of conduct, see the FAQ at
+[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
+[https://www.contributor-covenant.org/translations][translations].
+
+[homepage]: https://www.contributor-covenant.org
+[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
+[Mozilla CoC]: https://github.com/mozilla/diversity
+[FAQ]: https://www.contributor-covenant.org/faq
+[translations]: https://www.contributor-covenant.org/translations

+ 21 - 0
hugo/bootstrap/LICENSE

@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2011-2025 The Bootstrap Authors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

+ 247 - 0
hugo/bootstrap/README.md

@@ -0,0 +1,247 @@
+<p align="center">
+  <a href="https://getbootstrap.com/">
+    <img src="https://getbootstrap.com/docs/5.3/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
+  </a>
+</p>
+
+<h3 align="center">Bootstrap</h3>
+
+<p align="center">
+  Sleek, intuitive, and powerful front-end framework for faster and easier web development.
+  <br>
+  <a href="https://getbootstrap.com/docs/5.3/"><strong>Explore Bootstrap docs »</strong></a>
+  <br>
+  <br>
+  <a href="https://github.com/twbs/bootstrap/issues/new?assignees=-&labels=bug&template=bug_report.yml">Report bug</a>
+  ·
+  <a href="https://github.com/twbs/bootstrap/issues/new?assignees=&labels=feature&template=feature_request.yml">Request feature</a>
+  ·
+  <a href="https://themes.getbootstrap.com/">Themes</a>
+  ·
+  <a href="https://blog.getbootstrap.com/">Blog</a>
+</p>
+
+
+## Bootstrap 5
+
+Our default branch is for development of our Bootstrap 5 release. Head to the [`v4-dev` branch](https://github.com/twbs/bootstrap/tree/v4-dev) to view the readme, documentation, and source code for Bootstrap 4.
+
+
+## Table of contents
+
+- [Quick start](#quick-start)
+- [Status](#status)
+- [What’s included](#whats-included)
+- [Bugs and feature requests](#bugs-and-feature-requests)
+- [Documentation](#documentation)
+- [Contributing](#contributing)
+- [Community](#community)
+- [Versioning](#versioning)
+- [Creators](#creators)
+- [Thanks](#thanks)
+- [Copyright and license](#copyright-and-license)
+
+
+## Quick start
+
+Several quick start options are available:
+
+- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.3.6.zip)
+- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
+- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@v5.3.6`
+- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@v5.3.6`
+- Install with [Bun](https://bun.sh/): `bun add bootstrap@v5.3.6`
+- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.3.6`
+- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
+
+Read the [Getting started page](https://getbootstrap.com/docs/5.3/getting-started/introduction/) for information on the framework contents, templates, examples, and more.
+
+
+## Status
+
+[![Build Status](https://img.shields.io/github/actions/workflow/status/twbs/bootstrap/js.yml?branch=main&label=JS%20Tests&logo=github)](https://github.com/twbs/bootstrap/actions/workflows/js.yml?query=workflow%3AJS+branch%3Amain)
+[![npm version](https://img.shields.io/npm/v/bootstrap?logo=npm&logoColor=fff)](https://www.npmjs.com/package/bootstrap)
+[![Gem version](https://img.shields.io/gem/v/bootstrap?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/bootstrap)
+[![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue?logo=meteor&logoColor=fff)](https://atmospherejs.com/twbs/bootstrap)
+[![Packagist Prerelease](https://img.shields.io/packagist/vpre/twbs/bootstrap?logo=packagist&logoColor=fff)](https://packagist.org/packages/twbs/bootstrap)
+[![NuGet](https://img.shields.io/nuget/vpre/bootstrap?logo=nuget&logoColor=fff)](https://www.nuget.org/packages/bootstrap/absoluteLatest)
+[![Coverage Status](https://img.shields.io/coveralls/github/twbs/bootstrap/main?logo=coveralls&logoColor=fff)](https://coveralls.io/github/twbs/bootstrap?branch=main)
+[![CSS gzip size](https://img.badgesize.io/twbs/bootstrap/main/dist/css/bootstrap.min.css?compression=gzip&label=CSS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
+[![CSS Brotli size](https://img.badgesize.io/twbs/bootstrap/main/dist/css/bootstrap.min.css?compression=brotli&label=CSS%20Brotli%20size)](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
+[![JS gzip size](https://img.badgesize.io/twbs/bootstrap/main/dist/js/bootstrap.min.js?compression=gzip&label=JS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
+[![JS Brotli size](https://img.badgesize.io/twbs/bootstrap/main/dist/js/bootstrap.min.js?compression=brotli&label=JS%20Brotli%20size)](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
+[![Backers on Open Collective](https://img.shields.io/opencollective/backers/bootstrap?logo=opencollective&logoColor=fff)](#backers)
+[![Sponsors on Open Collective](https://img.shields.io/opencollective/sponsors/bootstrap?logo=opencollective&logoColor=fff)](#sponsors)
+
+
+## What’s included
+
+Within the download you’ll find the following directories and files, logically grouping common assets and providing both compiled and minified variations.
+
+<details>
+  <summary>Download contents</summary>
+
+  ```text
+  bootstrap/
+  ├── css/
+  │   ├── bootstrap-grid.css
+  │   ├── bootstrap-grid.css.map
+  │   ├── bootstrap-grid.min.css
+  │   ├── bootstrap-grid.min.css.map
+  │   ├── bootstrap-grid.rtl.css
+  │   ├── bootstrap-grid.rtl.css.map
+  │   ├── bootstrap-grid.rtl.min.css
+  │   ├── bootstrap-grid.rtl.min.css.map
+  │   ├── bootstrap-reboot.css
+  │   ├── bootstrap-reboot.css.map
+  │   ├── bootstrap-reboot.min.css
+  │   ├── bootstrap-reboot.min.css.map
+  │   ├── bootstrap-reboot.rtl.css
+  │   ├── bootstrap-reboot.rtl.css.map
+  │   ├── bootstrap-reboot.rtl.min.css
+  │   ├── bootstrap-reboot.rtl.min.css.map
+  │   ├── bootstrap-utilities.css
+  │   ├── bootstrap-utilities.css.map
+  │   ├── bootstrap-utilities.min.css
+  │   ├── bootstrap-utilities.min.css.map
+  │   ├── bootstrap-utilities.rtl.css
+  │   ├── bootstrap-utilities.rtl.css.map
+  │   ├── bootstrap-utilities.rtl.min.css
+  │   ├── bootstrap-utilities.rtl.min.css.map
+  │   ├── bootstrap.css
+  │   ├── bootstrap.css.map
+  │   ├── bootstrap.min.css
+  │   ├── bootstrap.min.css.map
+  │   ├── bootstrap.rtl.css
+  │   ├── bootstrap.rtl.css.map
+  │   ├── bootstrap.rtl.min.css
+  │   └── bootstrap.rtl.min.css.map
+  └── js/
+      ├── bootstrap.bundle.js
+      ├── bootstrap.bundle.js.map
+      ├── bootstrap.bundle.min.js
+      ├── bootstrap.bundle.min.js.map
+      ├── bootstrap.esm.js
+      ├── bootstrap.esm.js.map
+      ├── bootstrap.esm.min.js
+      ├── bootstrap.esm.min.js.map
+      ├── bootstrap.js
+      ├── bootstrap.js.map
+      ├── bootstrap.min.js
+      └── bootstrap.min.js.map
+  ```
+</details>
+
+We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://web.dev/articles/source-maps) (`bootstrap.*.map`) are available for use with certain browsers’ developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/docs/v2/).
+
+
+## Bugs and feature requests
+
+Have a bug or a feature request? Please first read the [issue guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md#using-the-issue-tracker) and search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/twbs/bootstrap/issues/new/choose).
+
+
+## Documentation
+
+Bootstrap’s documentation, included in this repo in the root directory, is built with [Astro](https://astro.build/) and publicly hosted on GitHub Pages at <https://getbootstrap.com/>. The docs may also be run locally.
+
+Documentation search is powered by [Algolia's DocSearch](https://docsearch.algolia.com/).
+
+### Running documentation locally
+
+1. Run `npm install` to install the Node.js dependencies, including Astro (the site builder).
+2. Run `npm run test` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
+3. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
+4. Open `http://localhost:9001/` in your browser, and voilà.
+
+Learn more about using Astro by reading its [documentation](https://docs.astro.build/en/getting-started/).
+
+### Documentation for previous releases
+
+You can find all our previous releases docs on <https://getbootstrap.com/docs/versions/>.
+
+[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
+
+
+## Contributing
+
+Please read through our [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
+
+Moreover, if your pull request contains JavaScript patches or features, you must include [relevant unit tests](https://github.com/twbs/bootstrap/tree/main/js/tests). All HTML and CSS should conform to the [Code Guide](https://github.com/mdo/code-guide), maintained by [Mark Otto](https://github.com/mdo).
+
+Editor preferences are available in the [editor config](https://github.com/twbs/bootstrap/blob/main/.editorconfig) for easy use in common text editors. Read more and download plugins at <https://editorconfig.org/>.
+
+
+## Community
+
+Get updates on Bootstrap’s development and chat with the project maintainers and community members.
+
+- Follow [@getbootstrap on X](https://x.com/getbootstrap).
+- Read and subscribe to [The Official Bootstrap Blog](https://blog.getbootstrap.com/).
+- Ask questions and explore [our GitHub Discussions](https://github.com/twbs/bootstrap/discussions).
+- Discuss, ask questions, and more on [the community Discord](https://discord.gg/bZUvakRU3M) or [Bootstrap subreddit](https://www.reddit.com/r/bootstrap/).
+- Chat with fellow Bootstrappers in IRC. On the `irc.libera.chat` server, in the `#bootstrap` channel.
+- Implementation help may be found at Stack Overflow (tagged [`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5)).
+- Developers should use the keyword `bootstrap` on packages which modify or add to the functionality of Bootstrap when distributing through [npm](https://www.npmjs.com/browse/keyword/bootstrap) or similar delivery mechanisms for maximum discoverability.
+
+
+## Versioning
+
+For transparency into our release cycle and in striving to maintain backward compatibility, Bootstrap is maintained under [the Semantic Versioning guidelines](https://semver.org/). Sometimes we screw up, but we adhere to those rules whenever possible.
+
+See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap. Release announcement posts on [the official Bootstrap blog](https://blog.getbootstrap.com/) contain summaries of the most noteworthy changes made in each release.
+
+
+## Creators
+
+**Mark Otto**
+
+- <https://x.com/mdo>
+- <https://github.com/mdo>
+
+**Jacob Thornton**
+
+- <https://x.com/fat>
+- <https://github.com/fat>
+
+
+## Thanks
+
+<a href="https://www.browserstack.com/">
+  <img src="https://live.browserstack.com/images/opensource/browserstack-logo.svg" alt="BrowserStack" width="192" height="42">
+</a>
+
+Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to test in real browsers!
+
+<a href="https://www.netlify.com/">
+  <img src="https://www.netlify.com/v3/img/components/full-logo-light.svg" alt="Netlify" width="147" height="40">
+</a>
+
+Thanks to [Netlify](https://www.netlify.com/) for providing us with Deploy Previews!
+
+
+## Sponsors
+
+Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/bootstrap#sponsor)]
+
+[![OC sponsor 0](https://opencollective.com/bootstrap/sponsor/0/avatar.svg)](https://opencollective.com/bootstrap/sponsor/0/website)
+[![OC sponsor 1](https://opencollective.com/bootstrap/sponsor/1/avatar.svg)](https://opencollective.com/bootstrap/sponsor/1/website)
+[![OC sponsor 2](https://opencollective.com/bootstrap/sponsor/2/avatar.svg)](https://opencollective.com/bootstrap/sponsor/2/website)
+[![OC sponsor 3](https://opencollective.com/bootstrap/sponsor/3/avatar.svg)](https://opencollective.com/bootstrap/sponsor/3/website)
+[![OC sponsor 4](https://opencollective.com/bootstrap/sponsor/4/avatar.svg)](https://opencollective.com/bootstrap/sponsor/4/website)
+[![OC sponsor 5](https://opencollective.com/bootstrap/sponsor/5/avatar.svg)](https://opencollective.com/bootstrap/sponsor/5/website)
+[![OC sponsor 6](https://opencollective.com/bootstrap/sponsor/6/avatar.svg)](https://opencollective.com/bootstrap/sponsor/6/website)
+[![OC sponsor 7](https://opencollective.com/bootstrap/sponsor/7/avatar.svg)](https://opencollective.com/bootstrap/sponsor/7/website)
+[![OC sponsor 8](https://opencollective.com/bootstrap/sponsor/8/avatar.svg)](https://opencollective.com/bootstrap/sponsor/8/website)
+[![OC sponsor 9](https://opencollective.com/bootstrap/sponsor/9/avatar.svg)](https://opencollective.com/bootstrap/sponsor/9/website)
+
+
+## Backers
+
+Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/bootstrap#backer)]
+
+[![Backers](https://opencollective.com/bootstrap/backers.svg?width=890)](https://opencollective.com/bootstrap#backers)
+
+
+## Copyright and license
+
+Code and documentation copyright 2011-2025 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors). Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).

+ 7 - 0
hugo/bootstrap/SECURITY.md

@@ -0,0 +1,7 @@
+# Reporting Security Issues
+
+The Bootstrap team and community take security issues in Bootstrap seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
+
+To report a security issue, email [security@getbootstrap.com](mailto:security@getbootstrap.com) and include the word "SECURITY" in the subject line.
+
+We'll endeavor to respond quickly, and will keep you updated throughout the process.

+ 20 - 0
hugo/bootstrap/build/banner.mjs

@@ -0,0 +1,20 @@
+import fs from 'node:fs/promises'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url))
+
+const pkgJson = path.join(__dirname, '../package.json')
+const pkg = JSON.parse(await fs.readFile(pkgJson, 'utf8'))
+
+const year = new Date().getFullYear()
+
+function getBanner(pluginFilename) {
+  return `/*!
+  * Bootstrap${pluginFilename ? ` ${pluginFilename}` : ''} v${pkg.version} (${pkg.homepage})
+  * Copyright 2011-${year} ${pkg.author}
+  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+  */`
+}
+
+export default getBanner

+ 108 - 0
hugo/bootstrap/build/build-plugins.mjs

@@ -0,0 +1,108 @@
+#!/usr/bin/env node
+
+/*!
+ * Script to build our plugins to use them separately.
+ * Copyright 2020-2025 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */
+
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+import { babel } from '@rollup/plugin-babel'
+import { globby } from 'globby'
+import { rollup } from 'rollup'
+import banner from './banner.mjs'
+
+const __filename = fileURLToPath(import.meta.url)
+const __dirname = path.dirname(fileURLToPath(import.meta.url))
+
+const sourcePath = path.resolve(__dirname, '../js/src/').replace(/\\/g, '/')
+const jsFiles = await globby(`${sourcePath}/**/*.js`)
+
+// Array which holds the resolved plugins
+const resolvedPlugins = []
+
+// Trims the "js" extension and uppercases => first letter, hyphens, backslashes & slashes
+const filenameToEntity = filename => filename.replace('.js', '')
+  .replace(/(?:^|-|\/|\\)[a-z]/g, str => str.slice(-1).toUpperCase())
+
+for (const file of jsFiles) {
+  resolvedPlugins.push({
+    src: file,
+    dist: file.replace('src', 'dist'),
+    fileName: path.basename(file),
+    className: filenameToEntity(path.basename(file))
+    // safeClassName: filenameToEntity(path.relative(sourcePath, file))
+  })
+}
+
+const build = async plugin => {
+  /**
+   * @type {import('rollup').GlobalsOption}
+   */
+  const globals = {}
+
+  const bundle = await rollup({
+    input: plugin.src,
+    plugins: [
+      babel({
+        // Only transpile our source code
+        exclude: 'node_modules/**',
+        // Include the helpers in each file, at most one copy of each
+        babelHelpers: 'bundled'
+      })
+    ],
+    external(source) {
+      // Pattern to identify local files
+      const pattern = /^(\.{1,2})\//
+
+      // It's not a local file, e.g a Node.js package
+      if (!pattern.test(source)) {
+        globals[source] = source
+        return true
+      }
+
+      const usedPlugin = resolvedPlugins.find(plugin => {
+        return plugin.src.includes(source.replace(pattern, ''))
+      })
+
+      if (!usedPlugin) {
+        throw new Error(`Source ${source} is not mapped!`)
+      }
+
+      // We can change `Index` with `UtilIndex` etc if we use
+      // `safeClassName` instead of `className` everywhere
+      globals[path.normalize(usedPlugin.src)] = usedPlugin.className
+      return true
+    }
+  })
+
+  await bundle.write({
+    banner: banner(plugin.fileName),
+    format: 'umd',
+    name: plugin.className,
+    sourcemap: true,
+    globals,
+    generatedCode: 'es2015',
+    file: plugin.dist
+  })
+
+  console.log(`Built ${plugin.className}`)
+}
+
+(async () => {
+  try {
+    const basename = path.basename(__filename)
+    const timeLabel = `[${basename}] finished`
+
+    console.log('Building individual plugins...')
+    console.time(timeLabel)
+
+    await Promise.all(Object.values(resolvedPlugins).map(plugin => build(plugin)))
+
+    console.timeEnd(timeLabel)
+  } catch (error) {
+    console.error(error)
+    process.exit(1)
+  }
+})()

+ 113 - 0
hugo/bootstrap/build/change-version.mjs

@@ -0,0 +1,113 @@
+#!/usr/bin/env node
+
+/*!
+ * Script to update version number references in the project.
+ * Copyright 2017-2025 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */
+
+import { execFile } from 'node:child_process'
+import fs from 'node:fs/promises'
+import process from 'node:process'
+
+const VERBOSE = process.argv.includes('--verbose')
+const DRY_RUN = process.argv.includes('--dry') || process.argv.includes('--dry-run')
+
+// These are the files we only care about replacing the version
+const FILES = [
+  'README.md',
+  'config.yml',
+  'js/src/base-component.js',
+  'package.js',
+  'scss/mixins/_banner.scss',
+  'site/data/docs-versions.yml'
+]
+
+// Blame TC39... https://github.com/benjamingr/RegExp.escape/issues/37
+function regExpQuote(string) {
+  return string.replace(/[$()*+-.?[\\\]^{|}]/g, '\\$&')
+}
+
+function regExpQuoteReplacement(string) {
+  return string.replace(/\$/g, '$$')
+}
+
+async function replaceRecursively(file, oldVersion, newVersion) {
+  const originalString = await fs.readFile(file, 'utf8')
+  const newString = originalString
+    .replace(
+      new RegExp(regExpQuote(oldVersion), 'g'),
+      regExpQuoteReplacement(newVersion)
+    )
+    // Also replace the version used by the rubygem,
+    // which is using periods (`.`) instead of hyphens (`-`)
+    .replace(
+      new RegExp(regExpQuote(oldVersion.replace(/-/g, '.')), 'g'),
+      regExpQuoteReplacement(newVersion.replace(/-/g, '.'))
+    )
+
+  // No need to move any further if the strings are identical
+  if (originalString === newString) {
+    return
+  }
+
+  if (VERBOSE) {
+    console.log(`Found ${oldVersion} in ${file}`)
+  }
+
+  if (DRY_RUN) {
+    return
+  }
+
+  await fs.writeFile(file, newString, 'utf8')
+}
+
+function bumpNpmVersion(newVersion) {
+  if (DRY_RUN) {
+    return
+  }
+
+  execFile('npm', ['version', newVersion, '--no-git-tag'], { shell: true }, error => {
+    if (error) {
+      console.error(error)
+      process.exit(1)
+    }
+  })
+}
+
+function showUsage(args) {
+  console.error('USAGE: change-version old_version new_version [--verbose] [--dry[-run]]')
+  console.error('Got arguments:', args)
+  process.exit(1)
+}
+
+async function main(args) {
+  let [oldVersion, newVersion] = args
+
+  if (!oldVersion || !newVersion) {
+    showUsage(args)
+  }
+
+  // Strip any leading `v` from arguments because
+  // otherwise we will end up with duplicate `v`s
+  [oldVersion, newVersion] = [oldVersion, newVersion].map(arg => {
+    return arg.startsWith('v') ? arg.slice(1) : arg
+  })
+
+  if (oldVersion === newVersion) {
+    showUsage(args)
+  }
+
+  bumpNpmVersion(newVersion)
+
+  try {
+    await Promise.all(
+      FILES.map(file => replaceRecursively(file, oldVersion, newVersion))
+    )
+  } catch (error) {
+    console.error(error)
+    process.exit(1)
+  }
+}
+
+main(process.argv.slice(2))

+ 169 - 0
hugo/bootstrap/build/docs-prep.sh

@@ -0,0 +1,169 @@
+#!/bin/bash
+
+# Colors for output
+RED='\033[0;31m'
+GREEN='\033[0;32m'
+YELLOW='\033[0;33m'
+BLUE='\033[0;34m'
+NC='\033[0m' # No Color
+
+# Default branch suffix
+BRANCH_SUFFIX="release"
+
+# Check if a custom version parameter was provided
+if [ $# -eq 1 ]; then
+  BRANCH_SUFFIX="$1"
+fi
+
+# Branch name to create
+NEW_BRANCH="gh-pages-${BRANCH_SUFFIX}"
+
+# Function to print colored messages
+print_success() {
+  echo -e "${GREEN}✓ $1${NC}"
+}
+
+print_error() {
+  echo -e "${RED}✗ $1${NC}"
+  exit 1
+}
+
+print_info() {
+  echo -e "${BLUE}ℹ $1${NC}"
+}
+
+print_warning() {
+  echo -e "${YELLOW}⚠ $1${NC}"
+}
+
+# Function to execute command with error handling
+execute() {
+  print_info "Running: $1"
+  eval $1
+  if [ $? -ne 0 ]; then
+    print_error "Failed to execute: $1"
+  else
+    print_success "Successfully executed: $1"
+  fi
+}
+
+# Check if /tmp/_site directory exists from a previous run
+if [ -d "/tmp/_site" ]; then
+  print_warning "Found existing /tmp/_site directory. Removing it…"
+  rm -rf /tmp/_site
+fi
+
+# Main process
+print_info "Starting documentation deployment process…"
+
+# Step 1: Build documentation
+print_info "Building documentation with npm run docs…"
+npm run docs
+if [ $? -ne 0 ]; then
+  print_error "Documentation build failed!"
+fi
+print_success "Documentation built successfully"
+
+# Step 2: Move _site to /tmp/
+print_info "Moving _site to temporary location…"
+execute "mv _site /tmp/"
+
+# Step 3: Switch to gh-pages branch
+print_info "Checking out gh-pages branch…"
+git checkout gh-pages
+if [ $? -ne 0 ]; then
+  print_error "Failed to checkout gh-pages branch. Make sure it exists."
+fi
+print_success "Switched to gh-pages branch"
+
+# Step 4: Create a new branch for the update
+print_info "Creating new branch ${NEW_BRANCH}…"
+execute "git checkout -b ${NEW_BRANCH}"
+
+# Step 5: Move root files
+print_info "Moving root files from temporary location…"
+ROOT_FILES=("404.html" "CNAME" "apple-touch-icon.png" "favicon.ico" "index.html" "robots.txt" "sitemap-0.xml" "sitemap-index.xml" "sw.js")
+for file in "${ROOT_FILES[@]}"; do
+  if [ -f "/tmp/_site/$file" ]; then
+    execute "mv /tmp/_site/$file ."
+  else
+    print_warning "File /tmp/_site/$file not found. Skipping."
+  fi
+done
+
+# Step 6: Move directories with cleanup
+print_info "Moving directories from temporary location…"
+DIRS=("about" "components" "docsref" "examples" "getting-started" "migration")
+for dir in "${DIRS[@]}"; do
+  if [ -d "/tmp/_site/$dir" ]; then
+    if [ -d "$dir" ]; then
+      execute "rm -rf $dir"
+    fi
+    execute "mv /tmp/_site/$dir ."
+  else
+    print_warning "Directory /tmp/_site/$dir not found. Skipping."
+  fi
+done
+
+# Step 7: Handle special doc directories
+print_info "Handling special documentation directories…"
+SPECIAL_DOCS=("docs/getting-started" "docs/versions")
+for dir in "${SPECIAL_DOCS[@]}"; do
+  if [ -d "/tmp/_site/$dir" ]; then
+    if [ -d "$dir" ]; then
+      execute "rm -rf $dir"
+    fi
+    # Make sure parent directory exists
+    parent_dir=$(dirname "$dir")
+    mkdir -p "$parent_dir"
+    execute "mv /tmp/_site/$dir $parent_dir/"
+  else
+    print_warning "Directory /tmp/_site/$dir not found. Skipping."
+  fi
+done
+
+# Step 8: Move docs index.html
+if [ -f "/tmp/_site/docs/index.html" ]; then
+  execute "mv /tmp/_site/docs/index.html docs/index.html"
+else
+  print_warning "File /tmp/_site/docs/index.html not found. Skipping."
+fi
+
+# Step 9: Handle docs/5.3
+if [ -d "/tmp/_site/docs/5.3" ]; then
+  if [ -d "docs/5.3" ]; then
+    execute "rm -rf docs/5.3"
+  fi
+  execute "mv /tmp/_site/docs/5.3 docs/"
+else
+  print_warning "Directory /tmp/_site/docs/5.3 not found. Skipping."
+fi
+
+# Clean up remaining files in /tmp/_site if any
+if [ -d "/tmp/_site" ]; then
+  remaining_files=$(find /tmp/_site -type f | wc -l)
+  remaining_dirs=$(find /tmp/_site -type d | wc -l)
+  if [ $remaining_files -gt 0 ] || [ $remaining_dirs -gt 1 ]; then
+    print_warning "There are still some files or directories in /tmp/_site that weren't moved."
+    print_warning "You may want to inspect /tmp/_site to see if anything important was missed."
+  else
+    print_info "Cleaning up temporary directory…"
+    rm -rf /tmp/_site
+    print_success "Temporary directory cleaned up"
+  fi
+fi
+
+# Step 10: Remove empty site directory if it exists
+if [ -d "site" ]; then
+  print_info "Removing empty site directory…"
+  execute "rm -rf site"
+fi
+
+print_success "Docs prep complete!"
+print_info "Review changes before committing and pushing."
+print_info "Next steps:"
+print_info "  1. Run a local server to review changes"
+print_info "  2. Check browser and web inspector for any errors"
+print_info "  3. git add ."
+print_info "  4. git commit -m \"Update documentation\""
+print_info "  5. git push origin ${NEW_BRANCH}"

+ 64 - 0
hugo/bootstrap/build/generate-sri.mjs

@@ -0,0 +1,64 @@
+#!/usr/bin/env node
+
+/*!
+ * Script to generate SRI hashes for use in our docs.
+ * Remember to use the same vendor files as the CDN ones,
+ * otherwise the hashes won't match!
+ *
+ * Copyright 2017-2025 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */
+
+import crypto from 'node:crypto'
+import fs from 'node:fs'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+import sh from 'shelljs'
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url))
+
+sh.config.fatal = true
+
+const configFile = path.join(__dirname, '../config.yml')
+
+// Array of objects which holds the files to generate SRI hashes for.
+// `file` is the path from the root folder
+// `configPropertyName` is the config.yml variable's name of the file
+const files = [
+  {
+    file: 'dist/css/bootstrap.min.css',
+    configPropertyName: 'css_hash'
+  },
+  {
+    file: 'dist/css/bootstrap.rtl.min.css',
+    configPropertyName: 'css_rtl_hash'
+  },
+  {
+    file: 'dist/js/bootstrap.min.js',
+    configPropertyName: 'js_hash'
+  },
+  {
+    file: 'dist/js/bootstrap.bundle.min.js',
+    configPropertyName: 'js_bundle_hash'
+  },
+  {
+    file: 'node_modules/@popperjs/core/dist/umd/popper.min.js',
+    configPropertyName: 'popper_hash'
+  }
+]
+
+for (const { file, configPropertyName } of files) {
+  fs.readFile(file, 'utf8', (error, data) => {
+    if (error) {
+      throw error
+    }
+
+    const algorithm = 'sha384'
+    const hash = crypto.createHash(algorithm).update(data, 'utf8').digest('base64')
+    const integrity = `${algorithm}-${hash}`
+
+    console.log(`${configPropertyName}: ${integrity}`)
+
+    sh.sed('-i', new RegExp(`^(\\s+${configPropertyName}:\\s+["'])\\S*(["'])`), `$1${integrity}$2`, configFile)
+  })
+}

+ 17 - 0
hugo/bootstrap/build/postcss.config.mjs

@@ -0,0 +1,17 @@
+const mapConfig = {
+  inline: false,
+  annotation: true,
+  sourcesContent: true
+}
+
+export default context => {
+  return {
+    map: context.file.dirname.includes('examples') ? false : mapConfig,
+    plugins: {
+      autoprefixer: {
+        cascade: false
+      },
+      rtlcss: context.env === 'RTL'
+    }
+  }
+}

+ 59 - 0
hugo/bootstrap/build/rollup.config.mjs

@@ -0,0 +1,59 @@
+import path from 'node:path'
+import process from 'node:process'
+import { fileURLToPath } from 'node:url'
+import { babel } from '@rollup/plugin-babel'
+import { nodeResolve } from '@rollup/plugin-node-resolve'
+import replace from '@rollup/plugin-replace'
+import banner from './banner.mjs'
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url))
+
+const BUNDLE = process.env.BUNDLE === 'true'
+const ESM = process.env.ESM === 'true'
+
+let destinationFile = `bootstrap${ESM ? '.esm' : ''}`
+const external = ['@popperjs/core']
+const plugins = [
+  babel({
+    // Only transpile our source code
+    exclude: 'node_modules/**',
+    // Include the helpers in the bundle, at most one copy of each
+    babelHelpers: 'bundled'
+  })
+]
+const globals = {
+  '@popperjs/core': 'Popper'
+}
+
+if (BUNDLE) {
+  destinationFile += '.bundle'
+  // Remove last entry in external array to bundle Popper
+  external.pop()
+  delete globals['@popperjs/core']
+  plugins.push(
+    replace({
+      'process.env.NODE_ENV': '"production"',
+      preventAssignment: true
+    }),
+    nodeResolve()
+  )
+}
+
+const rollupConfig = {
+  input: path.resolve(__dirname, `../js/index.${ESM ? 'esm' : 'umd'}.js`),
+  output: {
+    banner: banner(),
+    file: path.resolve(__dirname, `../dist/js/${destinationFile}.js`),
+    format: ESM ? 'esm' : 'umd',
+    globals,
+    generatedCode: 'es2015'
+  },
+  external,
+  plugins
+}
+
+if (!ESM) {
+  rollupConfig.output.name = 'bootstrap'
+}
+
+export default rollupConfig

+ 66 - 0
hugo/bootstrap/build/vnu-jar.mjs

@@ -0,0 +1,66 @@
+#!/usr/bin/env node
+
+/*!
+ * Script to run vnu-jar if Java is available.
+ * Copyright 2017-2025 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */
+
+import { execFile, spawn } from 'node:child_process'
+import vnu from 'vnu-jar'
+
+execFile('java', ['-version'], (error, stdout, stderr) => {
+  if (error) {
+    console.error('Skipping vnu-jar test; Java is probably missing.')
+    console.error(error)
+    return
+  }
+
+  console.log('Running vnu-jar validation...')
+
+  const is32bitJava = !/64-Bit/.test(stderr)
+
+  // vnu-jar accepts multiple ignores joined with a `|`.
+  // Also note that the ignores are string regular expressions.
+  const ignores = [
+    // "autocomplete" is included in <button> and checkboxes and radio <input>s due to
+    // Firefox's non-standard autocomplete behavior - see https://bugzilla.mozilla.org/show_bug.cgi?id=654072
+    'Attribute “autocomplete” is only allowed when the input type is.*',
+    'Attribute “autocomplete” not allowed on element “button” at this point.',
+    // Per https://www.w3.org/TR/html-aria/#docconformance having "aria-disabled" on a link is
+    // NOT RECOMMENDED, but it's still valid - we explain in the docs that it's not ideal,
+    // and offer more robust alternatives, but also need to show a less-than-ideal example
+    'An “aria-disabled” attribute whose value is “true” should not be specified on an “a” element that has an “href” attribute.',
+    // A `code` element with the `is:raw` attribute coming from remark-prismjs (Astro upstream possible bug)
+    'Attribute “is:raw” is not serializable as XML 1.0.',
+    'Attribute “is:raw” not allowed on element “code” at this point.',
+    // Astro's expecting trailing slashes on HTML tags such as <br />
+    'Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.',
+    // Allow `switch` attribute.
+    'Attribute “switch” not allowed on element “input” at this point.'
+  ].join('|')
+
+  const args = [
+    '-jar',
+    `"${vnu}"`,
+    '--asciiquotes',
+    '--skip-non-html',
+    '--Werror',
+    `--filterpattern "${ignores}"`,
+    '_site/',
+    'js/tests/'
+  ]
+
+  // For the 32-bit Java we need to pass `-Xss512k`
+  if (is32bitJava) {
+    args.splice(0, 0, '-Xss512k')
+  }
+
+  console.log(`command used: java ${args.join(' ')}`)
+
+  return spawn('java', args, {
+    shell: true,
+    stdio: 'inherit'
+  })
+    .on('exit', process.exit)
+})

+ 101 - 0
hugo/bootstrap/build/zip-examples.mjs

@@ -0,0 +1,101 @@
+#!/usr/bin/env node
+
+/*!
+ * Script to create the built examples zip archive;
+ * requires the `zip` command to be present!
+ * Copyright 2020-2025 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */
+
+import fs from 'node:fs/promises'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+import sh from 'shelljs'
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url))
+
+const pkgJson = path.join(__dirname, '../package.json')
+const pkg = JSON.parse(await fs.readFile(pkgJson, 'utf8'))
+
+const versionShort = pkg.config.version_short
+const distFolder = `bootstrap-${pkg.version}-examples`
+const rootDocsDir = '_site'
+const docsDir = `${rootDocsDir}/docs/${versionShort}/`
+
+// these are the files we need in the examples
+const cssFiles = [
+  'bootstrap.min.css',
+  'bootstrap.min.css.map',
+  'bootstrap.rtl.min.css',
+  'bootstrap.rtl.min.css.map'
+]
+const jsFiles = [
+  'bootstrap.bundle.min.js',
+  'bootstrap.bundle.min.js.map'
+]
+const imgFiles = [
+  'bootstrap-logo.svg',
+  'bootstrap-logo-white.svg'
+]
+const staticJsFiles = [
+  'color-modes.js'
+]
+
+sh.config.fatal = true
+
+if (!sh.test('-d', rootDocsDir)) {
+  throw new Error(`The "${rootDocsDir}" folder does not exist, did you forget building the docs?`)
+}
+
+// switch to the root dir
+sh.cd(path.join(__dirname, '..'))
+
+// remove any previously created folder/zip with the same name
+sh.rm('-rf', [distFolder, `${distFolder}.zip`])
+
+// create any folders so that `cp` works
+sh.mkdir('-p', [
+  distFolder,
+  `${distFolder}/assets/brand/`,
+  `${distFolder}/assets/dist/css/`,
+  `${distFolder}/assets/dist/js/`,
+  `${distFolder}/assets/js/`
+])
+
+sh.cp('-Rf', `${docsDir}/examples/*`, distFolder)
+
+for (const file of cssFiles) {
+  sh.cp('-f', `${docsDir}/dist/css/${file}`, `${distFolder}/assets/dist/css/`)
+}
+
+for (const file of jsFiles) {
+  sh.cp('-f', `${docsDir}/dist/js/${file}`, `${distFolder}/assets/dist/js/`)
+}
+
+for (const file of imgFiles) {
+  sh.cp('-f', `${docsDir}/assets/brand/${file}`, `${distFolder}/assets/brand/`)
+}
+
+for (const file of staticJsFiles) {
+  sh.cp('-f', `${docsDir}/assets/js/${file}`, `${distFolder}/assets/js/`)
+}
+
+sh.rm(`${distFolder}/index.html`)
+
+// get all examples' HTML files
+for (const file of sh.find(`${distFolder}/**/*.html`)) {
+  const fileContents = sh.cat(file)
+    .toString()
+    .replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
+    .replace(/"..\/dist\//g, '"../assets/dist/')
+    .replace(/(<link href="\.\.\/.*) integrity=".*>/g, '$1>')
+    .replace(/(<script src="\.\.\/.*) integrity=".*>/g, '$1></script>')
+    .replace(/( +)<!-- favicons(.|\n)+<style>/i, '    <style>')
+  new sh.ShellString(fileContents).to(file)
+}
+
+// create the zip file
+sh.exec(`zip -qr9 "${distFolder}.zip" "${distFolder}"`)
+
+// remove the folder we created
+sh.rm('-rf', distFolder)

+ 32 - 0
hugo/bootstrap/composer.json

@@ -0,0 +1,32 @@
+{
+  "name": "twbs/bootstrap",
+  "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
+  "keywords": [
+    "css",
+    "js",
+    "sass",
+    "mobile-first",
+    "responsive",
+    "front-end",
+    "framework",
+    "web"
+  ],
+  "homepage": "https://getbootstrap.com/",
+  "authors": [
+    {
+      "name": "Mark Otto",
+      "email": "markdotto@gmail.com"
+    },
+    {
+      "name": "Jacob Thornton",
+      "email": "jacobthornton@gmail.com"
+    }
+  ],
+  "support": {
+    "issues": "https://github.com/twbs/bootstrap/issues"
+  },
+  "license": "MIT",
+  "replace": {
+    "twitter/bootstrap": "self.version"
+  }
+}

+ 56 - 0
hugo/bootstrap/config.yml

@@ -0,0 +1,56 @@
+title:                  "Bootstrap"
+baseURL:                "https://getbootstrap.com"
+
+docsDir:                "site"
+
+subtitle:               "The most popular HTML, CSS, and JS library in the world."
+description:            "Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to life with powerful JavaScript plugins."
+authors:                "Mark Otto, Jacob Thornton, and Bootstrap contributors"
+
+current_version:        "5.3.6"
+current_ruby_version:   "5.3.6"
+docs_version:           "5.3"
+rfs_version:            "v10.0.0"
+github_org:             "https://github.com/twbs"
+repo:                   "https://github.com/twbs/bootstrap"
+x:                      "getbootstrap"
+opencollective:         "https://opencollective.com/bootstrap"
+blog:                   "https://blog.getbootstrap.com/"
+themes:                 "https://themes.getbootstrap.com/"
+icons:                  "https://icons.getbootstrap.com/"
+swag:                   "https://cottonbureau.com/people/bootstrap"
+
+analytics:
+  fathom_site:          "ITUSEYJG"
+
+algolia:
+  app_id:                "AK7KMZKZHQ"
+  api_key:               "3151f502c7b9e9dafd5e6372b691a24e"
+  index_name:            "bootstrap"
+
+download:
+  source:               "https://github.com/twbs/bootstrap/archive/v5.3.6.zip"
+  dist:                 "https://github.com/twbs/bootstrap/releases/download/v5.3.6/bootstrap-5.3.6-dist.zip"
+  dist_examples:        "https://github.com/twbs/bootstrap/releases/download/v5.3.6/bootstrap-5.3.6-examples.zip"
+
+cdn:
+  # See https://www.srihash.org for info on how to generate the hashes
+  css:                  "https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.min.css"
+  css_hash:             "sha384-4Q6Gf2aSP4eDXB8Miphtr37CMZZQ5oXLH2yaXMJ2w8e2ZtHTl7GptT4jmndRuHDT"
+  css_rtl:              "https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.rtl.min.css"
+  css_rtl_hash:         "sha384-MdqCcafa5BLgxBDJ3d/4D292geNL64JyRtSGjEszRUQX9rhL1QkcnId+OT7Yw+D+"
+  js:                   "https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.min.js"
+  js_hash:              "sha384-RuyvpeZCxMJCqVUGFI0Do1mQrods/hhxYlcVfGPOfQtPJh0JCw12tUAZ/Mv10S7D"
+  js_bundle:            "https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.bundle.min.js"
+  js_bundle_hash:       "sha384-j1CDi7MgGQ12Z7Qab0qlWQ/Qqz24Gc6BM0thvEMVjHnfYGF0rmFCozFSxQBxwHKO"
+  popper:               "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
+  popper_hash:          "sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
+  popper_esm:           "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/esm/popper.min.js"
+
+anchors:
+  min:                  2
+  max:                  5
+
+toc:
+  min:                  2
+  max:                  6

Разница между файлами не показана из-за своего большого размера
+ 4085 - 0
hugo/bootstrap/dist/css/bootstrap-grid.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-grid.css.map


Разница между файлами не показана из-за своего большого размера
+ 6 - 0
hugo/bootstrap/dist/css/bootstrap-grid.min.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-grid.min.css.map


Разница между файлами не показана из-за своего большого размера
+ 4084 - 0
hugo/bootstrap/dist/css/bootstrap-grid.rtl.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-grid.rtl.css.map


Разница между файлами не показана из-за своего большого размера
+ 6 - 0
hugo/bootstrap/dist/css/bootstrap-grid.rtl.min.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map


+ 597 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.css

@@ -0,0 +1,597 @@
+/*!
+ * Bootstrap Reboot v5.3.6 (https://getbootstrap.com/)
+ * Copyright 2011-2025 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */
+:root,
+[data-bs-theme=light] {
+  --bs-blue: #0d6efd;
+  --bs-indigo: #6610f2;
+  --bs-purple: #6f42c1;
+  --bs-pink: #d63384;
+  --bs-red: #dc3545;
+  --bs-orange: #fd7e14;
+  --bs-yellow: #ffc107;
+  --bs-green: #198754;
+  --bs-teal: #20c997;
+  --bs-cyan: #0dcaf0;
+  --bs-black: #000;
+  --bs-white: #fff;
+  --bs-gray: #6c757d;
+  --bs-gray-dark: #343a40;
+  --bs-gray-100: #f8f9fa;
+  --bs-gray-200: #e9ecef;
+  --bs-gray-300: #dee2e6;
+  --bs-gray-400: #ced4da;
+  --bs-gray-500: #adb5bd;
+  --bs-gray-600: #6c757d;
+  --bs-gray-700: #495057;
+  --bs-gray-800: #343a40;
+  --bs-gray-900: #212529;
+  --bs-primary: #0d6efd;
+  --bs-secondary: #6c757d;
+  --bs-success: #198754;
+  --bs-info: #0dcaf0;
+  --bs-warning: #ffc107;
+  --bs-danger: #dc3545;
+  --bs-light: #f8f9fa;
+  --bs-dark: #212529;
+  --bs-primary-rgb: 13, 110, 253;
+  --bs-secondary-rgb: 108, 117, 125;
+  --bs-success-rgb: 25, 135, 84;
+  --bs-info-rgb: 13, 202, 240;
+  --bs-warning-rgb: 255, 193, 7;
+  --bs-danger-rgb: 220, 53, 69;
+  --bs-light-rgb: 248, 249, 250;
+  --bs-dark-rgb: 33, 37, 41;
+  --bs-primary-text-emphasis: #052c65;
+  --bs-secondary-text-emphasis: #2b2f32;
+  --bs-success-text-emphasis: #0a3622;
+  --bs-info-text-emphasis: #055160;
+  --bs-warning-text-emphasis: #664d03;
+  --bs-danger-text-emphasis: #58151c;
+  --bs-light-text-emphasis: #495057;
+  --bs-dark-text-emphasis: #495057;
+  --bs-primary-bg-subtle: #cfe2ff;
+  --bs-secondary-bg-subtle: #e2e3e5;
+  --bs-success-bg-subtle: #d1e7dd;
+  --bs-info-bg-subtle: #cff4fc;
+  --bs-warning-bg-subtle: #fff3cd;
+  --bs-danger-bg-subtle: #f8d7da;
+  --bs-light-bg-subtle: #fcfcfd;
+  --bs-dark-bg-subtle: #ced4da;
+  --bs-primary-border-subtle: #9ec5fe;
+  --bs-secondary-border-subtle: #c4c8cb;
+  --bs-success-border-subtle: #a3cfbb;
+  --bs-info-border-subtle: #9eeaf9;
+  --bs-warning-border-subtle: #ffe69c;
+  --bs-danger-border-subtle: #f1aeb5;
+  --bs-light-border-subtle: #e9ecef;
+  --bs-dark-border-subtle: #adb5bd;
+  --bs-white-rgb: 255, 255, 255;
+  --bs-black-rgb: 0, 0, 0;
+  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
+  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
+  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
+  --bs-body-font-family: var(--bs-font-sans-serif);
+  --bs-body-font-size: 1rem;
+  --bs-body-font-weight: 400;
+  --bs-body-line-height: 1.5;
+  --bs-body-color: #212529;
+  --bs-body-color-rgb: 33, 37, 41;
+  --bs-body-bg: #fff;
+  --bs-body-bg-rgb: 255, 255, 255;
+  --bs-emphasis-color: #000;
+  --bs-emphasis-color-rgb: 0, 0, 0;
+  --bs-secondary-color: rgba(33, 37, 41, 0.75);
+  --bs-secondary-color-rgb: 33, 37, 41;
+  --bs-secondary-bg: #e9ecef;
+  --bs-secondary-bg-rgb: 233, 236, 239;
+  --bs-tertiary-color: rgba(33, 37, 41, 0.5);
+  --bs-tertiary-color-rgb: 33, 37, 41;
+  --bs-tertiary-bg: #f8f9fa;
+  --bs-tertiary-bg-rgb: 248, 249, 250;
+  --bs-heading-color: inherit;
+  --bs-link-color: #0d6efd;
+  --bs-link-color-rgb: 13, 110, 253;
+  --bs-link-decoration: underline;
+  --bs-link-hover-color: #0a58ca;
+  --bs-link-hover-color-rgb: 10, 88, 202;
+  --bs-code-color: #d63384;
+  --bs-highlight-color: #212529;
+  --bs-highlight-bg: #fff3cd;
+  --bs-border-width: 1px;
+  --bs-border-style: solid;
+  --bs-border-color: #dee2e6;
+  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
+  --bs-border-radius: 0.375rem;
+  --bs-border-radius-sm: 0.25rem;
+  --bs-border-radius-lg: 0.5rem;
+  --bs-border-radius-xl: 1rem;
+  --bs-border-radius-xxl: 2rem;
+  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
+  --bs-border-radius-pill: 50rem;
+  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
+  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
+  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
+  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
+  --bs-focus-ring-width: 0.25rem;
+  --bs-focus-ring-opacity: 0.25;
+  --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
+  --bs-form-valid-color: #198754;
+  --bs-form-valid-border-color: #198754;
+  --bs-form-invalid-color: #dc3545;
+  --bs-form-invalid-border-color: #dc3545;
+}
+
+[data-bs-theme=dark] {
+  color-scheme: dark;
+  --bs-body-color: #dee2e6;
+  --bs-body-color-rgb: 222, 226, 230;
+  --bs-body-bg: #212529;
+  --bs-body-bg-rgb: 33, 37, 41;
+  --bs-emphasis-color: #fff;
+  --bs-emphasis-color-rgb: 255, 255, 255;
+  --bs-secondary-color: rgba(222, 226, 230, 0.75);
+  --bs-secondary-color-rgb: 222, 226, 230;
+  --bs-secondary-bg: #343a40;
+  --bs-secondary-bg-rgb: 52, 58, 64;
+  --bs-tertiary-color: rgba(222, 226, 230, 0.5);
+  --bs-tertiary-color-rgb: 222, 226, 230;
+  --bs-tertiary-bg: #2b3035;
+  --bs-tertiary-bg-rgb: 43, 48, 53;
+  --bs-primary-text-emphasis: #6ea8fe;
+  --bs-secondary-text-emphasis: #a7acb1;
+  --bs-success-text-emphasis: #75b798;
+  --bs-info-text-emphasis: #6edff6;
+  --bs-warning-text-emphasis: #ffda6a;
+  --bs-danger-text-emphasis: #ea868f;
+  --bs-light-text-emphasis: #f8f9fa;
+  --bs-dark-text-emphasis: #dee2e6;
+  --bs-primary-bg-subtle: #031633;
+  --bs-secondary-bg-subtle: #161719;
+  --bs-success-bg-subtle: #051b11;
+  --bs-info-bg-subtle: #032830;
+  --bs-warning-bg-subtle: #332701;
+  --bs-danger-bg-subtle: #2c0b0e;
+  --bs-light-bg-subtle: #343a40;
+  --bs-dark-bg-subtle: #1a1d20;
+  --bs-primary-border-subtle: #084298;
+  --bs-secondary-border-subtle: #41464b;
+  --bs-success-border-subtle: #0f5132;
+  --bs-info-border-subtle: #087990;
+  --bs-warning-border-subtle: #997404;
+  --bs-danger-border-subtle: #842029;
+  --bs-light-border-subtle: #495057;
+  --bs-dark-border-subtle: #343a40;
+  --bs-heading-color: inherit;
+  --bs-link-color: #6ea8fe;
+  --bs-link-hover-color: #8bb9fe;
+  --bs-link-color-rgb: 110, 168, 254;
+  --bs-link-hover-color-rgb: 139, 185, 254;
+  --bs-code-color: #e685b5;
+  --bs-highlight-color: #dee2e6;
+  --bs-highlight-bg: #664d03;
+  --bs-border-color: #495057;
+  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
+  --bs-form-valid-color: #75b798;
+  --bs-form-valid-border-color: #75b798;
+  --bs-form-invalid-color: #ea868f;
+  --bs-form-invalid-border-color: #ea868f;
+}
+
+*,
+*::before,
+*::after {
+  box-sizing: border-box;
+}
+
+@media (prefers-reduced-motion: no-preference) {
+  :root {
+    scroll-behavior: smooth;
+  }
+}
+
+body {
+  margin: 0;
+  font-family: var(--bs-body-font-family);
+  font-size: var(--bs-body-font-size);
+  font-weight: var(--bs-body-font-weight);
+  line-height: var(--bs-body-line-height);
+  color: var(--bs-body-color);
+  text-align: var(--bs-body-text-align);
+  background-color: var(--bs-body-bg);
+  -webkit-text-size-adjust: 100%;
+  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+
+hr {
+  margin: 1rem 0;
+  color: inherit;
+  border: 0;
+  border-top: var(--bs-border-width) solid;
+  opacity: 0.25;
+}
+
+h6, h5, h4, h3, h2, h1 {
+  margin-top: 0;
+  margin-bottom: 0.5rem;
+  font-weight: 500;
+  line-height: 1.2;
+  color: var(--bs-heading-color);
+}
+
+h1 {
+  font-size: calc(1.375rem + 1.5vw);
+}
+@media (min-width: 1200px) {
+  h1 {
+    font-size: 2.5rem;
+  }
+}
+
+h2 {
+  font-size: calc(1.325rem + 0.9vw);
+}
+@media (min-width: 1200px) {
+  h2 {
+    font-size: 2rem;
+  }
+}
+
+h3 {
+  font-size: calc(1.3rem + 0.6vw);
+}
+@media (min-width: 1200px) {
+  h3 {
+    font-size: 1.75rem;
+  }
+}
+
+h4 {
+  font-size: calc(1.275rem + 0.3vw);
+}
+@media (min-width: 1200px) {
+  h4 {
+    font-size: 1.5rem;
+  }
+}
+
+h5 {
+  font-size: 1.25rem;
+}
+
+h6 {
+  font-size: 1rem;
+}
+
+p {
+  margin-top: 0;
+  margin-bottom: 1rem;
+}
+
+abbr[title] {
+  -webkit-text-decoration: underline dotted;
+  text-decoration: underline dotted;
+  cursor: help;
+  -webkit-text-decoration-skip-ink: none;
+  text-decoration-skip-ink: none;
+}
+
+address {
+  margin-bottom: 1rem;
+  font-style: normal;
+  line-height: inherit;
+}
+
+ol,
+ul {
+  padding-left: 2rem;
+}
+
+ol,
+ul,
+dl {
+  margin-top: 0;
+  margin-bottom: 1rem;
+}
+
+ol ol,
+ul ul,
+ol ul,
+ul ol {
+  margin-bottom: 0;
+}
+
+dt {
+  font-weight: 700;
+}
+
+dd {
+  margin-bottom: 0.5rem;
+  margin-left: 0;
+}
+
+blockquote {
+  margin: 0 0 1rem;
+}
+
+b,
+strong {
+  font-weight: bolder;
+}
+
+small {
+  font-size: 0.875em;
+}
+
+mark {
+  padding: 0.1875em;
+  color: var(--bs-highlight-color);
+  background-color: var(--bs-highlight-bg);
+}
+
+sub,
+sup {
+  position: relative;
+  font-size: 0.75em;
+  line-height: 0;
+  vertical-align: baseline;
+}
+
+sub {
+  bottom: -0.25em;
+}
+
+sup {
+  top: -0.5em;
+}
+
+a {
+  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
+  text-decoration: underline;
+}
+a:hover {
+  --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
+}
+
+a:not([href]):not([class]), a:not([href]):not([class]):hover {
+  color: inherit;
+  text-decoration: none;
+}
+
+pre,
+code,
+kbd,
+samp {
+  font-family: var(--bs-font-monospace);
+  font-size: 1em;
+}
+
+pre {
+  display: block;
+  margin-top: 0;
+  margin-bottom: 1rem;
+  overflow: auto;
+  font-size: 0.875em;
+}
+pre code {
+  font-size: inherit;
+  color: inherit;
+  word-break: normal;
+}
+
+code {
+  font-size: 0.875em;
+  color: var(--bs-code-color);
+  word-wrap: break-word;
+}
+a > code {
+  color: inherit;
+}
+
+kbd {
+  padding: 0.1875rem 0.375rem;
+  font-size: 0.875em;
+  color: var(--bs-body-bg);
+  background-color: var(--bs-body-color);
+  border-radius: 0.25rem;
+}
+kbd kbd {
+  padding: 0;
+  font-size: 1em;
+}
+
+figure {
+  margin: 0 0 1rem;
+}
+
+img,
+svg {
+  vertical-align: middle;
+}
+
+table {
+  caption-side: bottom;
+  border-collapse: collapse;
+}
+
+caption {
+  padding-top: 0.5rem;
+  padding-bottom: 0.5rem;
+  color: var(--bs-secondary-color);
+  text-align: left;
+}
+
+th {
+  text-align: inherit;
+  text-align: -webkit-match-parent;
+}
+
+thead,
+tbody,
+tfoot,
+tr,
+td,
+th {
+  border-color: inherit;
+  border-style: solid;
+  border-width: 0;
+}
+
+label {
+  display: inline-block;
+}
+
+button {
+  border-radius: 0;
+}
+
+button:focus:not(:focus-visible) {
+  outline: 0;
+}
+
+input,
+button,
+select,
+optgroup,
+textarea {
+  margin: 0;
+  font-family: inherit;
+  font-size: inherit;
+  line-height: inherit;
+}
+
+button,
+select {
+  text-transform: none;
+}
+
+[role=button] {
+  cursor: pointer;
+}
+
+select {
+  word-wrap: normal;
+}
+select:disabled {
+  opacity: 1;
+}
+
+[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {
+  display: none !important;
+}
+
+button,
+[type=button],
+[type=reset],
+[type=submit] {
+  -webkit-appearance: button;
+}
+button:not(:disabled),
+[type=button]:not(:disabled),
+[type=reset]:not(:disabled),
+[type=submit]:not(:disabled) {
+  cursor: pointer;
+}
+
+::-moz-focus-inner {
+  padding: 0;
+  border-style: none;
+}
+
+textarea {
+  resize: vertical;
+}
+
+fieldset {
+  min-width: 0;
+  padding: 0;
+  margin: 0;
+  border: 0;
+}
+
+legend {
+  float: left;
+  width: 100%;
+  padding: 0;
+  margin-bottom: 0.5rem;
+  line-height: inherit;
+  font-size: calc(1.275rem + 0.3vw);
+}
+@media (min-width: 1200px) {
+  legend {
+    font-size: 1.5rem;
+  }
+}
+legend + * {
+  clear: left;
+}
+
+::-webkit-datetime-edit-fields-wrapper,
+::-webkit-datetime-edit-text,
+::-webkit-datetime-edit-minute,
+::-webkit-datetime-edit-hour-field,
+::-webkit-datetime-edit-day-field,
+::-webkit-datetime-edit-month-field,
+::-webkit-datetime-edit-year-field {
+  padding: 0;
+}
+
+::-webkit-inner-spin-button {
+  height: auto;
+}
+
+[type=search] {
+  -webkit-appearance: textfield;
+  outline-offset: -2px;
+}
+
+/* rtl:raw:
+[type="tel"],
+[type="url"],
+[type="email"],
+[type="number"] {
+  direction: ltr;
+}
+*/
+::-webkit-search-decoration {
+  -webkit-appearance: none;
+}
+
+::-webkit-color-swatch-wrapper {
+  padding: 0;
+}
+
+::-webkit-file-upload-button {
+  font: inherit;
+  -webkit-appearance: button;
+}
+
+::file-selector-button {
+  font: inherit;
+  -webkit-appearance: button;
+}
+
+output {
+  display: inline-block;
+}
+
+iframe {
+  border: 0;
+}
+
+summary {
+  display: list-item;
+  cursor: pointer;
+}
+
+progress {
+  vertical-align: baseline;
+}
+
+[hidden] {
+  display: none !important;
+}
+
+/*# sourceMappingURL=bootstrap-reboot.css.map */

Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.css.map


Разница между файлами не показана из-за своего большого размера
+ 6 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.min.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.min.css.map


+ 594 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.rtl.css

@@ -0,0 +1,594 @@
+/*!
+ * Bootstrap Reboot v5.3.6 (https://getbootstrap.com/)
+ * Copyright 2011-2025 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */
+:root,
+[data-bs-theme=light] {
+  --bs-blue: #0d6efd;
+  --bs-indigo: #6610f2;
+  --bs-purple: #6f42c1;
+  --bs-pink: #d63384;
+  --bs-red: #dc3545;
+  --bs-orange: #fd7e14;
+  --bs-yellow: #ffc107;
+  --bs-green: #198754;
+  --bs-teal: #20c997;
+  --bs-cyan: #0dcaf0;
+  --bs-black: #000;
+  --bs-white: #fff;
+  --bs-gray: #6c757d;
+  --bs-gray-dark: #343a40;
+  --bs-gray-100: #f8f9fa;
+  --bs-gray-200: #e9ecef;
+  --bs-gray-300: #dee2e6;
+  --bs-gray-400: #ced4da;
+  --bs-gray-500: #adb5bd;
+  --bs-gray-600: #6c757d;
+  --bs-gray-700: #495057;
+  --bs-gray-800: #343a40;
+  --bs-gray-900: #212529;
+  --bs-primary: #0d6efd;
+  --bs-secondary: #6c757d;
+  --bs-success: #198754;
+  --bs-info: #0dcaf0;
+  --bs-warning: #ffc107;
+  --bs-danger: #dc3545;
+  --bs-light: #f8f9fa;
+  --bs-dark: #212529;
+  --bs-primary-rgb: 13, 110, 253;
+  --bs-secondary-rgb: 108, 117, 125;
+  --bs-success-rgb: 25, 135, 84;
+  --bs-info-rgb: 13, 202, 240;
+  --bs-warning-rgb: 255, 193, 7;
+  --bs-danger-rgb: 220, 53, 69;
+  --bs-light-rgb: 248, 249, 250;
+  --bs-dark-rgb: 33, 37, 41;
+  --bs-primary-text-emphasis: #052c65;
+  --bs-secondary-text-emphasis: #2b2f32;
+  --bs-success-text-emphasis: #0a3622;
+  --bs-info-text-emphasis: #055160;
+  --bs-warning-text-emphasis: #664d03;
+  --bs-danger-text-emphasis: #58151c;
+  --bs-light-text-emphasis: #495057;
+  --bs-dark-text-emphasis: #495057;
+  --bs-primary-bg-subtle: #cfe2ff;
+  --bs-secondary-bg-subtle: #e2e3e5;
+  --bs-success-bg-subtle: #d1e7dd;
+  --bs-info-bg-subtle: #cff4fc;
+  --bs-warning-bg-subtle: #fff3cd;
+  --bs-danger-bg-subtle: #f8d7da;
+  --bs-light-bg-subtle: #fcfcfd;
+  --bs-dark-bg-subtle: #ced4da;
+  --bs-primary-border-subtle: #9ec5fe;
+  --bs-secondary-border-subtle: #c4c8cb;
+  --bs-success-border-subtle: #a3cfbb;
+  --bs-info-border-subtle: #9eeaf9;
+  --bs-warning-border-subtle: #ffe69c;
+  --bs-danger-border-subtle: #f1aeb5;
+  --bs-light-border-subtle: #e9ecef;
+  --bs-dark-border-subtle: #adb5bd;
+  --bs-white-rgb: 255, 255, 255;
+  --bs-black-rgb: 0, 0, 0;
+  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
+  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
+  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
+  --bs-body-font-family: var(--bs-font-sans-serif);
+  --bs-body-font-size: 1rem;
+  --bs-body-font-weight: 400;
+  --bs-body-line-height: 1.5;
+  --bs-body-color: #212529;
+  --bs-body-color-rgb: 33, 37, 41;
+  --bs-body-bg: #fff;
+  --bs-body-bg-rgb: 255, 255, 255;
+  --bs-emphasis-color: #000;
+  --bs-emphasis-color-rgb: 0, 0, 0;
+  --bs-secondary-color: rgba(33, 37, 41, 0.75);
+  --bs-secondary-color-rgb: 33, 37, 41;
+  --bs-secondary-bg: #e9ecef;
+  --bs-secondary-bg-rgb: 233, 236, 239;
+  --bs-tertiary-color: rgba(33, 37, 41, 0.5);
+  --bs-tertiary-color-rgb: 33, 37, 41;
+  --bs-tertiary-bg: #f8f9fa;
+  --bs-tertiary-bg-rgb: 248, 249, 250;
+  --bs-heading-color: inherit;
+  --bs-link-color: #0d6efd;
+  --bs-link-color-rgb: 13, 110, 253;
+  --bs-link-decoration: underline;
+  --bs-link-hover-color: #0a58ca;
+  --bs-link-hover-color-rgb: 10, 88, 202;
+  --bs-code-color: #d63384;
+  --bs-highlight-color: #212529;
+  --bs-highlight-bg: #fff3cd;
+  --bs-border-width: 1px;
+  --bs-border-style: solid;
+  --bs-border-color: #dee2e6;
+  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
+  --bs-border-radius: 0.375rem;
+  --bs-border-radius-sm: 0.25rem;
+  --bs-border-radius-lg: 0.5rem;
+  --bs-border-radius-xl: 1rem;
+  --bs-border-radius-xxl: 2rem;
+  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
+  --bs-border-radius-pill: 50rem;
+  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
+  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
+  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
+  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
+  --bs-focus-ring-width: 0.25rem;
+  --bs-focus-ring-opacity: 0.25;
+  --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
+  --bs-form-valid-color: #198754;
+  --bs-form-valid-border-color: #198754;
+  --bs-form-invalid-color: #dc3545;
+  --bs-form-invalid-border-color: #dc3545;
+}
+
+[data-bs-theme=dark] {
+  color-scheme: dark;
+  --bs-body-color: #dee2e6;
+  --bs-body-color-rgb: 222, 226, 230;
+  --bs-body-bg: #212529;
+  --bs-body-bg-rgb: 33, 37, 41;
+  --bs-emphasis-color: #fff;
+  --bs-emphasis-color-rgb: 255, 255, 255;
+  --bs-secondary-color: rgba(222, 226, 230, 0.75);
+  --bs-secondary-color-rgb: 222, 226, 230;
+  --bs-secondary-bg: #343a40;
+  --bs-secondary-bg-rgb: 52, 58, 64;
+  --bs-tertiary-color: rgba(222, 226, 230, 0.5);
+  --bs-tertiary-color-rgb: 222, 226, 230;
+  --bs-tertiary-bg: #2b3035;
+  --bs-tertiary-bg-rgb: 43, 48, 53;
+  --bs-primary-text-emphasis: #6ea8fe;
+  --bs-secondary-text-emphasis: #a7acb1;
+  --bs-success-text-emphasis: #75b798;
+  --bs-info-text-emphasis: #6edff6;
+  --bs-warning-text-emphasis: #ffda6a;
+  --bs-danger-text-emphasis: #ea868f;
+  --bs-light-text-emphasis: #f8f9fa;
+  --bs-dark-text-emphasis: #dee2e6;
+  --bs-primary-bg-subtle: #031633;
+  --bs-secondary-bg-subtle: #161719;
+  --bs-success-bg-subtle: #051b11;
+  --bs-info-bg-subtle: #032830;
+  --bs-warning-bg-subtle: #332701;
+  --bs-danger-bg-subtle: #2c0b0e;
+  --bs-light-bg-subtle: #343a40;
+  --bs-dark-bg-subtle: #1a1d20;
+  --bs-primary-border-subtle: #084298;
+  --bs-secondary-border-subtle: #41464b;
+  --bs-success-border-subtle: #0f5132;
+  --bs-info-border-subtle: #087990;
+  --bs-warning-border-subtle: #997404;
+  --bs-danger-border-subtle: #842029;
+  --bs-light-border-subtle: #495057;
+  --bs-dark-border-subtle: #343a40;
+  --bs-heading-color: inherit;
+  --bs-link-color: #6ea8fe;
+  --bs-link-hover-color: #8bb9fe;
+  --bs-link-color-rgb: 110, 168, 254;
+  --bs-link-hover-color-rgb: 139, 185, 254;
+  --bs-code-color: #e685b5;
+  --bs-highlight-color: #dee2e6;
+  --bs-highlight-bg: #664d03;
+  --bs-border-color: #495057;
+  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
+  --bs-form-valid-color: #75b798;
+  --bs-form-valid-border-color: #75b798;
+  --bs-form-invalid-color: #ea868f;
+  --bs-form-invalid-border-color: #ea868f;
+}
+
+*,
+*::before,
+*::after {
+  box-sizing: border-box;
+}
+
+@media (prefers-reduced-motion: no-preference) {
+  :root {
+    scroll-behavior: smooth;
+  }
+}
+
+body {
+  margin: 0;
+  font-family: var(--bs-body-font-family);
+  font-size: var(--bs-body-font-size);
+  font-weight: var(--bs-body-font-weight);
+  line-height: var(--bs-body-line-height);
+  color: var(--bs-body-color);
+  text-align: var(--bs-body-text-align);
+  background-color: var(--bs-body-bg);
+  -webkit-text-size-adjust: 100%;
+  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+
+hr {
+  margin: 1rem 0;
+  color: inherit;
+  border: 0;
+  border-top: var(--bs-border-width) solid;
+  opacity: 0.25;
+}
+
+h6, h5, h4, h3, h2, h1 {
+  margin-top: 0;
+  margin-bottom: 0.5rem;
+  font-weight: 500;
+  line-height: 1.2;
+  color: var(--bs-heading-color);
+}
+
+h1 {
+  font-size: calc(1.375rem + 1.5vw);
+}
+@media (min-width: 1200px) {
+  h1 {
+    font-size: 2.5rem;
+  }
+}
+
+h2 {
+  font-size: calc(1.325rem + 0.9vw);
+}
+@media (min-width: 1200px) {
+  h2 {
+    font-size: 2rem;
+  }
+}
+
+h3 {
+  font-size: calc(1.3rem + 0.6vw);
+}
+@media (min-width: 1200px) {
+  h3 {
+    font-size: 1.75rem;
+  }
+}
+
+h4 {
+  font-size: calc(1.275rem + 0.3vw);
+}
+@media (min-width: 1200px) {
+  h4 {
+    font-size: 1.5rem;
+  }
+}
+
+h5 {
+  font-size: 1.25rem;
+}
+
+h6 {
+  font-size: 1rem;
+}
+
+p {
+  margin-top: 0;
+  margin-bottom: 1rem;
+}
+
+abbr[title] {
+  -webkit-text-decoration: underline dotted;
+  text-decoration: underline dotted;
+  cursor: help;
+  -webkit-text-decoration-skip-ink: none;
+  text-decoration-skip-ink: none;
+}
+
+address {
+  margin-bottom: 1rem;
+  font-style: normal;
+  line-height: inherit;
+}
+
+ol,
+ul {
+  padding-right: 2rem;
+}
+
+ol,
+ul,
+dl {
+  margin-top: 0;
+  margin-bottom: 1rem;
+}
+
+ol ol,
+ul ul,
+ol ul,
+ul ol {
+  margin-bottom: 0;
+}
+
+dt {
+  font-weight: 700;
+}
+
+dd {
+  margin-bottom: 0.5rem;
+  margin-right: 0;
+}
+
+blockquote {
+  margin: 0 0 1rem;
+}
+
+b,
+strong {
+  font-weight: bolder;
+}
+
+small {
+  font-size: 0.875em;
+}
+
+mark {
+  padding: 0.1875em;
+  color: var(--bs-highlight-color);
+  background-color: var(--bs-highlight-bg);
+}
+
+sub,
+sup {
+  position: relative;
+  font-size: 0.75em;
+  line-height: 0;
+  vertical-align: baseline;
+}
+
+sub {
+  bottom: -0.25em;
+}
+
+sup {
+  top: -0.5em;
+}
+
+a {
+  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
+  text-decoration: underline;
+}
+a:hover {
+  --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
+}
+
+a:not([href]):not([class]), a:not([href]):not([class]):hover {
+  color: inherit;
+  text-decoration: none;
+}
+
+pre,
+code,
+kbd,
+samp {
+  font-family: var(--bs-font-monospace);
+  font-size: 1em;
+}
+
+pre {
+  display: block;
+  margin-top: 0;
+  margin-bottom: 1rem;
+  overflow: auto;
+  font-size: 0.875em;
+}
+pre code {
+  font-size: inherit;
+  color: inherit;
+  word-break: normal;
+}
+
+code {
+  font-size: 0.875em;
+  color: var(--bs-code-color);
+  word-wrap: break-word;
+}
+a > code {
+  color: inherit;
+}
+
+kbd {
+  padding: 0.1875rem 0.375rem;
+  font-size: 0.875em;
+  color: var(--bs-body-bg);
+  background-color: var(--bs-body-color);
+  border-radius: 0.25rem;
+}
+kbd kbd {
+  padding: 0;
+  font-size: 1em;
+}
+
+figure {
+  margin: 0 0 1rem;
+}
+
+img,
+svg {
+  vertical-align: middle;
+}
+
+table {
+  caption-side: bottom;
+  border-collapse: collapse;
+}
+
+caption {
+  padding-top: 0.5rem;
+  padding-bottom: 0.5rem;
+  color: var(--bs-secondary-color);
+  text-align: right;
+}
+
+th {
+  text-align: inherit;
+  text-align: -webkit-match-parent;
+}
+
+thead,
+tbody,
+tfoot,
+tr,
+td,
+th {
+  border-color: inherit;
+  border-style: solid;
+  border-width: 0;
+}
+
+label {
+  display: inline-block;
+}
+
+button {
+  border-radius: 0;
+}
+
+button:focus:not(:focus-visible) {
+  outline: 0;
+}
+
+input,
+button,
+select,
+optgroup,
+textarea {
+  margin: 0;
+  font-family: inherit;
+  font-size: inherit;
+  line-height: inherit;
+}
+
+button,
+select {
+  text-transform: none;
+}
+
+[role=button] {
+  cursor: pointer;
+}
+
+select {
+  word-wrap: normal;
+}
+select:disabled {
+  opacity: 1;
+}
+
+[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {
+  display: none !important;
+}
+
+button,
+[type=button],
+[type=reset],
+[type=submit] {
+  -webkit-appearance: button;
+}
+button:not(:disabled),
+[type=button]:not(:disabled),
+[type=reset]:not(:disabled),
+[type=submit]:not(:disabled) {
+  cursor: pointer;
+}
+
+::-moz-focus-inner {
+  padding: 0;
+  border-style: none;
+}
+
+textarea {
+  resize: vertical;
+}
+
+fieldset {
+  min-width: 0;
+  padding: 0;
+  margin: 0;
+  border: 0;
+}
+
+legend {
+  float: right;
+  width: 100%;
+  padding: 0;
+  margin-bottom: 0.5rem;
+  line-height: inherit;
+  font-size: calc(1.275rem + 0.3vw);
+}
+@media (min-width: 1200px) {
+  legend {
+    font-size: 1.5rem;
+  }
+}
+legend + * {
+  clear: right;
+}
+
+::-webkit-datetime-edit-fields-wrapper,
+::-webkit-datetime-edit-text,
+::-webkit-datetime-edit-minute,
+::-webkit-datetime-edit-hour-field,
+::-webkit-datetime-edit-day-field,
+::-webkit-datetime-edit-month-field,
+::-webkit-datetime-edit-year-field {
+  padding: 0;
+}
+
+::-webkit-inner-spin-button {
+  height: auto;
+}
+
+[type=search] {
+  -webkit-appearance: textfield;
+  outline-offset: -2px;
+}
+
+[type="tel"],
+[type="url"],
+[type="email"],
+[type="number"] {
+  direction: ltr;
+}
+::-webkit-search-decoration {
+  -webkit-appearance: none;
+}
+
+::-webkit-color-swatch-wrapper {
+  padding: 0;
+}
+
+::-webkit-file-upload-button {
+  font: inherit;
+  -webkit-appearance: button;
+}
+
+::file-selector-button {
+  font: inherit;
+  -webkit-appearance: button;
+}
+
+output {
+  display: inline-block;
+}
+
+iframe {
+  border: 0;
+}
+
+summary {
+  display: list-item;
+  cursor: pointer;
+}
+
+progress {
+  vertical-align: baseline;
+}
+
+[hidden] {
+  display: none !important;
+}
+/*# sourceMappingURL=bootstrap-reboot.rtl.css.map */

Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.rtl.css.map


Разница между файлами не показана из-за своего большого размера
+ 6 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.rtl.min.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map


Разница между файлами не показана из-за своего большого размера
+ 5406 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.css.map


Разница между файлами не показана из-за своего большого размера
+ 6 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.min.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.min.css.map


Разница между файлами не показана из-за своего большого размера
+ 5397 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.rtl.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.rtl.css.map


Разница между файлами не показана из-за своего большого размера
+ 6 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.rtl.min.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map


Разница между файлами не показана из-за своего большого размера
+ 12043 - 0
hugo/bootstrap/dist/css/bootstrap.css


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
hugo/bootstrap/dist/css/bootstrap.css.map


Разница между файлами не показана из-за своего большого размера
+ 6 - 0
hugo/bootstrap/dist/css/bootstrap.min.css


+ 0 - 0
hugo/bootstrap/dist/css/bootstrap.min.css.map


Некоторые файлы не были показаны из-за большого количества измененных файлов