📚 Docs + Readme

This commit is contained in:
jokob-sk
2024-08-24 08:10:00 +10:00
parent 0413ac5fb4
commit e0dd3ab53e
13 changed files with 91 additions and 18 deletions

View File

@@ -1390,7 +1390,7 @@ input[readonly] {
opacity: 0.8;
background-color: #fff;
z-index: 1000;
z-index: 800;
}
.pa_spinner {
@@ -1403,7 +1403,7 @@ input[readonly] {
padding: 15px;
width: 200px;
background-color: #fff;
z-index: 1001;
z-index: 801;
}
#loadingSpinner

View File

@@ -604,6 +604,7 @@ const handleElementOptions = (codeName, elementOptions, transformers, val) => {
let inputType = "text";
let readOnly = "";
let isMultiSelect = false;
let isOrdeable = false;
let cssClasses = "";
let placeholder = "";
let suffix = "";
@@ -627,6 +628,9 @@ const handleElementOptions = (codeName, elementOptions, transformers, val) => {
if (option.multiple === "true") {
isMultiSelect = true;
}
if (option.ordeable === "true") {
isOrdeable = true;
}
if (option.editable === "true") {
editable = true;
}
@@ -663,6 +667,7 @@ const handleElementOptions = (codeName, elementOptions, transformers, val) => {
inputType,
readOnly,
isMultiSelect,
isOrdeable,
cssClasses,
placeholder,
suffix,

View File

@@ -142,10 +142,6 @@ while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
$db->close();
// Language selector -----------------------------------------------------------------
?>
<div class="row">

View File

@@ -118,6 +118,7 @@
inputType,
readOnly,
isMultiSelect,
isOrdeable,
cssClasses,
placeholder,
suffix,

0
front/php/templates/language/es_es.json Normal file → Executable file
View File

0
front/php/templates/language/fr_fr.json Normal file → Executable file
View File

0
front/php/templates/language/ru_ru.json Normal file → Executable file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View File

@@ -6,3 +6,7 @@ A plugin to publish a notification via the Webhook gateway. Webhooks help you to
- Go to settings and fill in relevant details.
#### Sample Discord Setup
![image](Discord_Config.png)

View File

@@ -26,6 +26,66 @@
],
"params": [],
"settings": [
{
"function": "device_columns",
"type": {
"dataType": "array",
"elements": [
{
"elementType": "select",
"elementOptions": [{ "multiple": "true", "ordeable": "true" }],
"transformers": []
}
]
},
"maxLength": 50,
"default_value": [
"getString-Device_TableHead_Icon-value-3",
"getString-Device_TableHead_Name-value-0",
"getString-Device_TableHead_Type-value-2",
"getString-Device_TableHead_LastIP-value-8",
"getString-Device_TableHead_Status-value-10",
"getString-Device_TableHead_MAC_full-value-11"
],
"options": [
"getString-Device_TableHead_Name-value-0",
"getString-Device_TableHead_Owner-value-1",
"getString-Device_TableHead_Type-value-2",
"getString-Device_TableHead_Icon-value-3",
"getString-Device_TableHead_Favorite-value-4",
"getString-Device_TableHead_Group-value-5",
"getString-Device_TableHead_FirstSession-value-6",
"getString-Device_TableHead_LastSession-value-7",
"getString-Device_TableHead_LastIP-value-8",
"getString-Device_TableHead_MAC-value-9",
"getString-Device_TableHead_Status-value-10",
"getString-Device_TableHead_MAC_full-value-11",
"getString-Device_TableHead_LastIPOrder-value-12",
"getString-Device_TableHead_Rowid-value-13",
"getString-Device_TableHead_Parent_MAC-value-14",
"getString-Device_TableHead_Connected_Devices-value-15",
"getString-Device_TableHead_Location-value-16",
"getString-Device_TableHead_Vendor-value-17",
"getString-Device_TableHead_Port-value-18",
"getString-Device_TableHead_GUID-value-19",
"getString-Device_TableHead_SyncHubNodeName-value-20",
"getString-Device_TableHead_NetworkSite-value-21",
"getString-Device_TableHead_SSID-value-22"
],
"localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
"string": "Device Columns"
}
],
"description": [
{
"language_code": "en_us",
"string": "Which columns to show on the Devices page."
}
]
},
{
"function": "shown_cards",
"type": {
@@ -67,7 +127,7 @@
"description": [
{
"language_code": "en_us",
"string": "Which tiles to show on teh top of the Devices page."
"string": "Which tiles to show on the top of the Devices page."
}
]
},

View File

@@ -476,6 +476,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
inputType,
readOnly,
isMultiSelect,
isOrdeable,
cssClasses,
placeholder,
suffix,
@@ -494,8 +495,10 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
switch (elementType) {
case 'select':
let multi = isMultiSelect ? "multiple" : "";
let addCss = isOrdeable ? "select2 select2-hidden-accessible" : "";
inputHtml += `<select onChange="settingsChanged()" my-data-type="${dataType}" my-editable="${editable}" class="form-control" name="${codeName}" id="${codeName}" ${multi}>
inputHtml += `<select onChange="settingsChanged()" my-data-type="${dataType}" my-editable="${editable}" class="form-control ${addCss}" name="${codeName}" id="${codeName}" ${multi}>
<option value="" id="${codeName + "_temp_"}"></option>
</select>`;
@@ -645,6 +648,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
inputType,
readOnly,
isMultiSelect,
isOrdeable,
cssClasses,
placeholder,
suffix,