UX: update admin popular theme list (#23134)
This commit is contained in:
parent
10c6b2a0c2
commit
51e369a2c6
|
@ -1,4 +1,11 @@
|
||||||
export const POPULAR_THEMES = [
|
export const POPULAR_THEMES = [
|
||||||
|
{
|
||||||
|
name: "Air",
|
||||||
|
value: "https://github.com/discourse/discourse-air",
|
||||||
|
preview: "https://discourse.theme-creator.io/theme/awesomerobot/air-theme",
|
||||||
|
description: "A clean and modern theme for Discourse.",
|
||||||
|
meta_url: "https://meta.discourse.org/t/discourse-air-theme/197703",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Graceful",
|
name: "Graceful",
|
||||||
value: "https://github.com/discourse/graceful",
|
value: "https://github.com/discourse/graceful",
|
||||||
|
@ -12,16 +19,17 @@ export const POPULAR_THEMES = [
|
||||||
value: "https://github.com/discourse/material-design-stock-theme",
|
value: "https://github.com/discourse/material-design-stock-theme",
|
||||||
preview: "https://discourse.theme-creator.io/theme/tshenry/material-design",
|
preview: "https://discourse.theme-creator.io/theme/tshenry/material-design",
|
||||||
description:
|
description:
|
||||||
"Inspired by Material Design, this theme comes with several color palettes (incl. a dark one).",
|
"Inspired by Material Design, this theme comes with several color palettes.",
|
||||||
meta_url: "https://meta.discourse.org/t/material-design-stock-theme/47142",
|
meta_url: "https://meta.discourse.org/t/material-design-stock-theme/47142",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Minima",
|
name: "Mint",
|
||||||
value: "https://github.com/discourse/minima",
|
value: "https://github.com/discourse/discourse-mint-theme",
|
||||||
preview: "https://discourse.theme-creator.io/theme/awesomerobot/minima",
|
preview: "https://discourse.theme-creator.io/theme/awesomerobot/mint",
|
||||||
description: "A minimal theme with reduced UI elements and focus on text.",
|
description:
|
||||||
|
"A minty colored theme with featured homepage categories and a search banner.",
|
||||||
meta_url:
|
meta_url:
|
||||||
"https://meta.discourse.org/t/minima-a-minimal-theme-for-discourse/108178",
|
"https://meta.discourse.org/t/mint-a-modern-theme-for-discourse/202822",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Sam's Simple Theme",
|
name: "Sam's Simple Theme",
|
||||||
|
@ -52,7 +60,7 @@ export const POPULAR_THEMES = [
|
||||||
component: true,
|
component: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Gifs Search",
|
name: "GIFs Search",
|
||||||
value: "https://github.com/discourse/discourse-gifs",
|
value: "https://github.com/discourse/discourse-gifs",
|
||||||
description: "Adds a button to easily search and insert GIFs in posts.",
|
description: "Adds a button to easily search and insert GIFs in posts.",
|
||||||
meta_url: "https://meta.discourse.org/t/discourse-gifs-component/158738",
|
meta_url: "https://meta.discourse.org/t/discourse-gifs-component/158738",
|
||||||
|
@ -68,6 +76,15 @@ export const POPULAR_THEMES = [
|
||||||
meta_url: "https://meta.discourse.org/t/discourse-category-banners/86241",
|
meta_url: "https://meta.discourse.org/t/discourse-category-banners/86241",
|
||||||
component: true,
|
component: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Tag Banners",
|
||||||
|
value: "https://github.com/discourse/discourse-tag-banners",
|
||||||
|
preview:
|
||||||
|
"https://discourse.theme-creator.io/theme/awesomerobot/tag-banners",
|
||||||
|
description: "Show banners on tag pages using your existing tag details.",
|
||||||
|
meta_url: "https://meta.discourse.org/t/tag-banners/124240",
|
||||||
|
component: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Kanban Board",
|
name: "Kanban Board",
|
||||||
value: "https://github.com/discourse/discourse-kanban-theme",
|
value: "https://github.com/discourse/discourse-kanban-theme",
|
||||||
|
@ -77,14 +94,6 @@ export const POPULAR_THEMES = [
|
||||||
"https://meta.discourse.org/t/kanban-board-theme-component/118164",
|
"https://meta.discourse.org/t/kanban-board-theme-component/118164",
|
||||||
component: true,
|
component: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "Hamburger Theme Selector",
|
|
||||||
value: "https://github.com/discourse/discourse-hamburger-theme-selector",
|
|
||||||
description:
|
|
||||||
"Displays a theme selector in the hamburger menu provided there is more than one user-selectable theme.",
|
|
||||||
meta_url: "https://meta.discourse.org/t/hamburger-theme-selector/61210",
|
|
||||||
component: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "Sidebar Theme Toggle",
|
name: "Sidebar Theme Toggle",
|
||||||
value: "https://github.com/discourse/discourse-sidebar-theme-toggle",
|
value: "https://github.com/discourse/discourse-sidebar-theme-toggle",
|
||||||
|
|
|
@ -111,7 +111,7 @@ acceptance("Admin - Themes - Install modal", function (needs) {
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
query(
|
query(
|
||||||
'.popular-theme-item[data-name="Minima"] .popular-theme-buttons button'
|
'.popular-theme-item[data-name="Mint"] .popular-theme-buttons button'
|
||||||
),
|
),
|
||||||
"install button is shown for not installed themes"
|
"install button is shown for not installed themes"
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue