mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
* refactor: move app/theme to pkg/theme * refactor * wip * use dockerindocker * add providertest * wip * wip * test(docker): get state now uses dind container to test against a real provider * test(docker): move to docker_test package * refactor(docker): create container_inspect.go * test(docker): add more dind test * test(docker): event test now use docker in docker * refactor: remove unused instance type props * refactor test docker * fix instance list sort * stabilize test * remove testcontainers custom config
17 lines
326 B
Go
17 lines
326 B
Go
package theme
|
|
|
|
import "strings"
|
|
|
|
// List all the loaded themes
|
|
func (t *Themes) List() []string {
|
|
themes := make([]string, 0)
|
|
|
|
for _, template := range t.themes.Templates() {
|
|
if strings.HasSuffix(template.Name(), ".html") {
|
|
themes = append(themes, strings.TrimSuffix(template.Name(), ".html"))
|
|
}
|
|
}
|
|
|
|
return themes
|
|
}
|