ThemeAllAssetsPath returns paths of all theme's assets
()
| 39 | |
| 40 | // ThemeAllAssetsPath returns paths of all theme's assets |
| 41 | func ThemeAllAssetsPath() (string, error) { |
| 42 | InitSetting() |
| 43 | |
| 44 | if len(themeFolder) == 0 { |
| 45 | return "", errors.New(`config "current_theme" is blank`) |
| 46 | } |
| 47 | |
| 48 | results := []string{ |
| 49 | themeFolder, |
| 50 | filepath.Join(themeFolder, "color.ini"), |
| 51 | filepath.Join(themeFolder, "user.css"), |
| 52 | filepath.Join(themeFolder, "theme.js"), |
| 53 | filepath.Join(themeFolder, "assets")} |
| 54 | |
| 55 | return strings.Join(results, "\n"), nil |
| 56 | } |
| 57 | |
| 58 | // ExtensionPath return path of extension file |
| 59 | func ExtensionPath(name string) (string, error) { |
no test coverage detected