~jadedctrl/jam-xwx-moe

Showing details for patch a81396cc31445b16d87b7e64ddfd2bfe42dd4453.
2023-08-13 (Sun), 5:07 AM - Jaidyn Ann - a81396cc31445b16d87b7e64ddfd2bfe42dd4453

Kreas »reiran« butonon por paĝoj

Summary of changes
1 files modified with 25 lines added and 17 lines removed
  • pleroma-fe/0001-Subtenon-de-subpa-oj.patch with 25 added and 17 removed lines
diff -rN -u old-jam-xwx-moe/pleroma-fe/0001-Subtenon-de-subpa-oj.patch new-jam-xwx-moe/pleroma-fe/0001-Subtenon-de-subpa-oj.patch
--- old-jam-xwx-moe/pleroma-fe/0001-Subtenon-de-subpa-oj.patch	2024-11-23 02:41:15.738603812 +0000
+++ new-jam-xwx-moe/pleroma-fe/0001-Subtenon-de-subpa-oj.patch	2024-11-23 02:41:15.738603812 +0000
@@ -1,7 +1,7 @@
-From 63f5257c0e92433a7aee379cda51cdcae1e7352d Mon Sep 17 00:00:00 2001
+From 6b4412d816329acf1be741db005732e3cdcbb9f3 Mon Sep 17 00:00:00 2001
 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com>
 Date: Sat, 12 Aug 2023 12:36:26 -0500
-Subject: [PATCH 1/2] =?UTF-8?q?Subtenon=20de=20subpa=C4=9Doj?=
+Subject: [PATCH] =?UTF-8?q?Subtenon=20de=20subpa=C4=9Doj?=
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
@@ -12,11 +12,11 @@
 Simple kreu HTML-ajn dosierojn ĉe /static/static/*!
 ---
  src/boot/routes.js                            |  3 +
- .../links_dynamically/links_dynamically.js    | 41 +++++++++++++
- .../links_dynamically/links_dynamically.vue   | 11 ++++
- src/components/subpage/subpage.js             | 56 +++++++++++++++++
- src/components/subpage/subpage.vue            | 60 +++++++++++++++++++
- 5 files changed, 171 insertions(+)
+ .../links_dynamically/links_dynamically.js    | 41 +++++++++++
+ .../links_dynamically/links_dynamically.vue   | 11 +++
+ src/components/subpage/subpage.js             | 54 +++++++++++++++
+ src/components/subpage/subpage.vue            | 69 +++++++++++++++++++
+ 5 files changed, 178 insertions(+)
  create mode 100644 src/components/links_dynamically/links_dynamically.js
  create mode 100644 src/components/links_dynamically/links_dynamically.vue
  create mode 100644 src/components/subpage/subpage.js
@@ -109,10 +109,10 @@
 +<script src="./links_dynamically.js"></script>
 diff --git a/src/components/subpage/subpage.js b/src/components/subpage/subpage.js
 new file mode 100644
-index 00000000..e4da7d9f
+index 00000000..73b6c68a
 --- /dev/null
 +++ b/src/components/subpage/subpage.js
-@@ -0,0 +1,56 @@
+@@ -0,0 +1,54 @@
 +import LinksDynamically from '../links_dynamically/links_dynamically.vue'
 +
 +// Wow, I really don’t know how to write JS! Nor use Vue!
@@ -151,7 +151,7 @@
 +      // Actually set the panel’s content.
 +      this.content = htmlDom.body.innerHTML
 +
-+      if (!response.ok) {
++      if (!response.ok || firstChild.tagName.toLowerCase() === 'noscript') {
 +        this.error = true
 +      }
 +    }
@@ -161,9 +161,7 @@
 +  },
 +  watch: {
 +    '$route.params.page': function (newPage) {
-+      if (newPage) {
-+        this.switchPage(newPage)
-+      }
++      this.switchPage(newPage)
 +    }
 +  }
 +}
@@ -171,10 +169,10 @@
 +export default SubPage
 diff --git a/src/components/subpage/subpage.vue b/src/components/subpage/subpage.vue
 new file mode 100644
-index 00000000..b56241ca
+index 00000000..b2b1fa6d
 --- /dev/null
 +++ b/src/components/subpage/subpage.vue
-@@ -0,0 +1,60 @@
+@@ -0,0 +1,70 @@
 +<template>
 +  <div>
 +    <div class="panel panel-default">
@@ -191,6 +189,12 @@
 +        >
 +          {{ title }}
 +        </div>
++        <router-link
++          class="pagelist-icon"
++          to="./"
++        >
++          Paĝoj ↸
++        </router-link>
 +      </div>
 +      <div
 +        v-if="error"
@@ -202,7 +206,7 @@
 +          <p>Krome, eblas ke foriĝis (aŭ neniam fariĝis) tiu paĝo. Tiuokaze, bedaŭron!</p>
 +          <p>
 +            Vi eble volas reviziti la
-+            <router-link to="index">
++            <router-link to="./">
 +              paĝoliston
 +            </router-link>.
 +          </p>
@@ -234,7 +238,11 @@
 +  display: table-cell;
 +  vertical-align: bottom;
 +}
++.pagelist-icon {
++  text-align: right;
++  margin-left: auto;
++}
 +</style>
 -- 
-2.40.1
+2.42.0