diff --git a/src/html/components/dashboard/_topbar.astro b/src/html/components/dashboard/_topbar.astro index c26ab360bf3..4c7e9f29898 100644 --- a/src/html/components/dashboard/_topbar.astro +++ b/src/html/components/dashboard/_topbar.astro @@ -154,6 +154,15 @@ const distPath = path; + +
Alexander Pierce - Web Developer
Member since Nov. 2023
diff --git a/src/ts/adminlte.ts b/src/ts/adminlte.ts
index 3fcfe681d76..35c24ab200c 100644
--- a/src/ts/adminlte.ts
+++ b/src/ts/adminlte.ts
@@ -3,11 +3,13 @@ import PushMenu from './push-menu'
import Treeview from './treeview'
import DirectChat from './direct-chat'
import CardWidget from './card-widget'
+import FullScreen from './fullscreen'
export {
Layout,
PushMenu,
Treeview,
DirectChat,
- CardWidget
+ CardWidget,
+ FullScreen
}
diff --git a/src/ts/fullscreen.ts b/src/ts/fullscreen.ts
new file mode 100644
index 00000000000..b24e3a4acac
--- /dev/null
+++ b/src/ts/fullscreen.ts
@@ -0,0 +1,109 @@
+/**
+ * ----------------------------------------------------------------------------
+ * AdminLTE fullscreen.ts
+ * License MIT
+ * ----------------------------------------------------------------------------
+ */
+
+import {
+ onDOMContentLoaded
+} from './util/index'
+
+/**
+ * Constants
+ * ============================================================================
+ */
+const DATA_KEY = 'lte.fullscreen'
+const EVENT_KEY = `.${DATA_KEY}`
+const EVENT_MAXIMIZED = `maximized${EVENT_KEY}`
+const EVENT_MINIMIZED = `minimized${EVENT_KEY}`
+
+const SELECTOR_FULLSCREEN_TOGGLE = '[data-lte-toggle="fullscreen"]'
+const SELECTOR_MAXIMIZE_ICON = '[data-lte-icon="maximize"]'
+const SELECTOR_MINIMIZE_ICON = '[data-lte-icon="minimize"]'
+
+/**
+ * Class Definition.
+ * ============================================================================
+ */
+class FullScreen {
+ _element: HTMLElement
+ _config: undefined
+
+ constructor(element: HTMLElement, config?: undefined) {
+ this._element = element
+ this._config = config
+ }
+
+ inFullScreen(): void {
+ const event = new Event(EVENT_MAXIMIZED)
+
+ const iconMaximize = document.querySelector