mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
e61bc33163
* Relocate dashboard scuemata to grafana-schema
* Update assorted tests, vars with dashboard path
* Remove crufty commented var
* Not sure...why that failed
* Remove prefix from base dashboard path var
* Move cue/ui remnants into grafana-schema
* Update import paths in plugin models
* Remove mudball, add package statements
* Remove cuegen.sh
Wooooo we ain't got no codegen
* Revert "Remove mudball, add package statements"
This reverts commit 9bed3098f1
.
* Tidy up all the cue files
* Move dashboard scuemata into scuemata/ subdir
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
18 lines
488 B
Go
18 lines
488 B
Go
package grafana
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
// CoreSchema embeds all core CUE files, which live in packages/grafana-schema/src
|
|
//
|
|
//go:embed cue.mod cue packages/grafana-schema/src/schema/*.cue packages/grafana-schema/src/scuemata/*/*.cue
|
|
var CoreSchema embed.FS
|
|
|
|
//go:embed public/app/plugins/*/*/*.cue public/app/plugins/*/*/plugin.json
|
|
var base embed.FS
|
|
|
|
// PluginSchema embeds all CUE files within the public/ subdirectory.
|
|
var PluginSchema, _ = fs.Sub(base, "public/app/plugins")
|