From 2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 Mon Sep 17 00:00:00 2001
From: Minteck
Date: Tue, 18 Oct 2022 08:59:09 +0200
Subject: Update
---
pages/actions.inc | 2 ++
pages/dashboard.inc | 30 +++++++++++++++---------------
pages/docs.inc | 30 +++++++++++++++++++++++++-----
pages/home.inc | 2 +-
pages/splitting.inc | 2 +-
pages/toys.inc | 2 ++
6 files changed, 46 insertions(+), 22 deletions(-)
(limited to 'pages')
diff --git a/pages/actions.inc b/pages/actions.inc
index 527b336..eb83f16 100644
--- a/pages/actions.inc
+++ b/pages/actions.inc
@@ -194,6 +194,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/keywords.inc';
if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/actions/actions.json")) file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/actions/actions.json", "[]");
global $_PROFILE;
+global $pagename;
+$parts = explode("/", $pagename);
?>
diff --git a/pages/dashboard.inc b/pages/dashboard.inc
index 59396e5..07a75e8 100644
--- a/pages/dashboard.inc
+++ b/pages/dashboard.inc
@@ -112,15 +112,15 @@ $viewingPonyHasSex = in_array($fronter, $poniesHavingSex) || isset($_GET['toys']
$id): $member = getMemberWithoutSystem($id[0]); ?>
- Merged members
+ Merged members
- " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
+ " style="height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
- and " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
- with " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
- and " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ with " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
@@ -131,15 +131,15 @@ $viewingPonyHasSex = in_array($fronter, $poniesHavingSex) || isset($_GET['toys']
$id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?>
- Merged members
+ Merged members
- " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
+ " style="height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
- and " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
- with " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
- and " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ with " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
@@ -150,15 +150,15 @@ $viewingPonyHasSex = in_array($fronter, $poniesHavingSex) || isset($_GET['toys']
$id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?>
- Merged members
+ Merged members
- " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
+ " style="height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
- and " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
- with " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
- and " style="width:24px; height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ with " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
+ and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
diff --git a/pages/docs.inc b/pages/docs.inc
index f893e95..0322f32 100644
--- a/pages/docs.inc
+++ b/pages/docs.inc
@@ -57,6 +57,12 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
ยท Saved
+ = 0 && $data["last"]["author"] !== $_PROFILE["login"]): ?>
+
+ This document is currently in use by = $data["last"]["author"] === "raindrops" ? "the Raindrops System" : "the Cloudburst System" ?>. It has been open in read-only to prevent conflicts with the changes they make. If they stopped editing the document, it will become editable for you after you refresh the page in = $timeDiff ?> minute= $timeDiff > 1 ? "s" : "" ?>.
+
+ = $data["contents"] ?>
+
@@ -112,6 +118,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
.ck-editor__editable {
border-color: transparent !important;
}
+
+ .ck.ck-sticky-panel__content_sticky {
+ top: 59px !important;
+ }
+
Documents
@@ -210,11 +221,12 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
return strip_tags($i["contents"]) !== "/delete";
}));
+ $categoryFirst = [];
$unsorted = [];
$categories = [];
foreach ($unsorted_pre as $item) {
if (isset($item["category"])) {
- $existing_categories = array_keys($categories);
+ $existing_categories = [...array_keys($categories), ...array_keys($categoryFirst)];
$matched_category = null;
foreach ($existing_categories as $existing_category) {
@@ -224,8 +236,14 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
}
$selected_category = $matched_category ?? $item["category"];
- if (!isset($categories[$selected_category])) $categories[$selected_category] = [];
- $categories[$selected_category][] = $item;
+
+ if (str_starts_with($item["category"], ".")) {
+ if (!isset($categoryFirst[$selected_category])) $categoryFirst[$selected_category] = [];
+ $categoryFirst[$selected_category][] = $item;
+ } else {
+ if (!isset($categories[$selected_category])) $categories[$selected_category] = [];
+ $categories[$selected_category][] = $item;
+ }
} else {
$unsorted[] = $item;
}
@@ -239,10 +257,12 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
return $b["last"]["date"] - $a["last"]["date"];
});
+ $fullList = [...$categoryFirst, ...$categories];
+
?>
- $items): ?>
-
= $category ?>
+ $items): ?>
+
= str_starts_with($category, ".") ? substr($category, 1) : $category ?>