mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-04 12:22:54 +08:00
Adds themes:export_theme_bundle and themes:import_theme_bundle for packaging a theme with all its attached components and non-default settings into a single zip. Export accepts a theme name (case-insensitive) or ID, uses ThemeStore::ZipExporter for the theme and each component, diffs cached_settings against defaults, and writes a manifest.json with component metadata (name, remote URL, settings overrides). Import extracts the bundle, imports components first via RemoteTheme.import_theme_from_directory, wires up parent-child relationships, and applies settings overrides. Warns if a theme with the same name already exists. |
||
|---|---|---|
| .. | ||
| assets_precompile_spec.rb | ||
| compatibility_spec.rb | ||
| destroy_spec.rb | ||
| hashtags_spec.rb | ||
| incoming_emails_spec.rb | ||
| migrate_advanced_search_banner_to_welcome_banner_spec.rb | ||
| plugin_spec.rb | ||
| posts_spec.rb | ||
| qunit_cli_spec.rb | ||
| redis_spec.rb | ||
| release_spec.rb | ||
| themes_spec.rb | ||
| topic_localizations_spec.rb | ||
| topics_spec.rb | ||
| uploads_spec.rb | ||
| users_spec.rb | ||