Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
from_secret: mattermost_nightly_hook
commands:
- mkdir build
- cp -r -v archived.html css/ images/ img/ js/ index.html results.html robots.txt 403.html 404.html .htaccess ./build
- cp -r -v archived.html css/ fonts/ images/ img/ js/ index.html results.html robots.txt 403.html 404.html .htaccess ./build
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
Expand Down Expand Up @@ -143,6 +143,6 @@ trigger:

---
kind: signature
hmac: a002e30e04f1c87e97ac1d7ca091e3a71f5d958b15cb162c91a2e6200701f48b
hmac: 9242651eddd196e5111a0ab5d2197cd2a21f1505649a1c8c8c2d313f0d760686

...
1 change: 1 addition & 0 deletions css/joomla-fontawesome.min.css

Large diffs are not rendered by default.

Binary file added fonts/fa-brands-400.ttf
Binary file not shown.
Binary file added fonts/fa-brands-400.woff2
Binary file not shown.
Binary file added fonts/fa-regular-400.ttf
Binary file not shown.
Binary file added fonts/fa-regular-400.woff2
Binary file not shown.
Binary file added fonts/fa-solid-900.ttf
Binary file not shown.
Binary file added fonts/fa-solid-900.woff2
Binary file not shown.
Binary file added fonts/fa-v4compatibility.ttf
Binary file not shown.
Binary file added fonts/fa-v4compatibility.woff2
Binary file not shown.
372 changes: 189 additions & 183 deletions index.html

Large diffs are not rendered by default.

91 changes: 91 additions & 0 deletions js/alert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import { e as enableDismissTrigger, d as defineJQueryPlugin, B as BaseComponent, E as EventHandler } from './dom.js?5.3.8';

/**
* --------------------------------------------------------------------------
* Bootstrap alert.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/


/**
* Constants
*/

const NAME = 'alert';
const DATA_KEY = 'bs.alert';
const EVENT_KEY = `.${DATA_KEY}`;
const EVENT_CLOSE = `close${EVENT_KEY}`;
const EVENT_CLOSED = `closed${EVENT_KEY}`;
const CLASS_NAME_FADE = 'fade';
const CLASS_NAME_SHOW = 'show';

/**
* Class definition
*/

class Alert extends BaseComponent {
// Getters
static get NAME() {
return NAME;
}

// Public
close() {
const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE);
if (closeEvent.defaultPrevented) {
return;
}
this._element.classList.remove(CLASS_NAME_SHOW);
const isAnimated = this._element.classList.contains(CLASS_NAME_FADE);
this._queueCallback(() => this._destroyElement(), this._element, isAnimated);
}

// Private
_destroyElement() {
this._element.remove();
EventHandler.trigger(this._element, EVENT_CLOSED);
this.dispose();
}

// Static
static jQueryInterface(config) {
return this.each(function () {
const data = Alert.getOrCreateInstance(this);
if (typeof config !== 'string') {
return;
}
if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
throw new TypeError(`No method named "${config}"`);
}
data[config](this);
});
}
}

/**
* Data API implementation
*/

enableDismissTrigger(Alert, 'close');

/**
* jQuery
*/

defineJQueryPlugin(Alert);

window.bootstrap = window.bootstrap || {};
window.bootstrap.Alert = Alert;
if (Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const alerts = Joomla.getOptions('bootstrap.alert');
// Initialise the elements
if (alerts && alerts.length) {
alerts.forEach(selector => {
document.querySelectorAll(selector).forEach(el => new window.bootstrap.Alert(el));
});
}
}

export { Alert as A };
1 change: 1 addition & 0 deletions js/alert.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions js/button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { E as EventHandler, d as defineJQueryPlugin, B as BaseComponent } from './dom.js?5.3.8';

/**
* --------------------------------------------------------------------------
* Bootstrap button.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/


/**
* Constants
*/

const NAME = 'button';
const DATA_KEY = 'bs.button';
const EVENT_KEY = `.${DATA_KEY}`;
const DATA_API_KEY = '.data-api';
const CLASS_NAME_ACTIVE = 'active';
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="button"]';
const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`;

/**
* Class definition
*/

class Button extends BaseComponent {
// Getters
static get NAME() {
return NAME;
}

// Public
toggle() {
// Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE));
}

// Static
static jQueryInterface(config) {
return this.each(function () {
const data = Button.getOrCreateInstance(this);
if (config === 'toggle') {
data[config]();
}
});
}
}

/**
* Data API implementation
*/

EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => {
event.preventDefault();
const button = event.target.closest(SELECTOR_DATA_TOGGLE);
const data = Button.getOrCreateInstance(button);
data.toggle();
});

/**
* jQuery
*/

defineJQueryPlugin(Button);

window.bootstrap = window.bootstrap || {};
window.bootstrap.Button = Button;
if (Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const buttons = Joomla.getOptions('bootstrap.button');
// Initialise the elements
if (buttons && buttons.length) {
buttons.forEach(selector => {
document.querySelectorAll(selector).forEach(el => new window.bootstrap.Button(el));
});
}
}

export { Button as B };
1 change: 1 addition & 0 deletions js/button.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading