diff options
Diffstat (limited to 'vfd-dashboard/src/main/scala/vfd/dashboard/Environment.scala')
-rw-r--r-- | vfd-dashboard/src/main/scala/vfd/dashboard/Environment.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vfd-dashboard/src/main/scala/vfd/dashboard/Environment.scala b/vfd-dashboard/src/main/scala/vfd/dashboard/Environment.scala new file mode 100644 index 0000000..d4dd306 --- /dev/null +++ b/vfd-dashboard/src/main/scala/vfd/dashboard/Environment.scala @@ -0,0 +1,14 @@ +package vfd.dashboard + +import org.scalajs.dom.HTMLElement + +/** Represents an application's environment */ +trait Environment { + + /** The application's root element. */ + def root: HTMLElement + + /** Retrieve an asset's URL based on its file location. */ + def asset(file: String): String + +}
\ No newline at end of file |