0 |
From 4521a041efc54235c4bcf15494c26629c299bec5 Mon Sep 17 00:00:00 2001 |
1 |
From: Jaidyn Ann <jadedctrl@teknik.io> |
2 |
Date: Sat, 12 Aug 2023 16:24:05 -0500 |
3 |
Subject: [PATCH 2/2] =?UTF-8?q?Ebligi=20ligilojn=20de=20reguloj/pripanelo?= |
4 |
=?UTF-8?q?=20al=20subpa=C4=9Doj?= |
5 |
MIME-Version: 1.0 |
6 |
Content-Type: text/plain; charset=UTF-8 |
7 |
Content-Transfer-Encoding: 8bit |
8 |
|
9 |
Ĉi tio helpas la trovadon kaj reklamadon de paĝoj! |
10 |
--- |
11 |
.../instance_specific_panel/instance_specific_panel.js | 5 +++++ |
12 |
.../instance_specific_panel/instance_specific_panel.vue | 4 +--- |
13 |
.../terms_of_service_panel/terms_of_service_panel.js | 5 +++++ |
14 |
.../terms_of_service_panel/terms_of_service_panel.vue | 9 +++------ |
15 |
4 files changed, 14 insertions(+), 9 deletions(-) |
16 |
|
17 |
diff --git a/src/components/instance_specific_panel/instance_specific_panel.js b/src/components/instance_specific_panel/instance_specific_panel.js |
18 |
index 09e3d055..3c0b9670 100644 |
19 |
--- a/src/components/instance_specific_panel/instance_specific_panel.js |
20 |
+++ b/src/components/instance_specific_panel/instance_specific_panel.js |
21 |
@@ -1,4 +1,9 @@ |
22 |
+import LinksDynamically from '../links_dynamically/links_dynamically.vue' |
23 |
+ |
24 |
const InstanceSpecificPanel = { |
25 |
+ components: { |
26 |
+ LinksDynamically |
27 |
+ }, |
28 |
computed: { |
29 |
instanceSpecificPanelContent () { |
30 |
return this.$store.state.instance.instanceSpecificPanelContent |
31 |
diff --git a/src/components/instance_specific_panel/instance_specific_panel.vue b/src/components/instance_specific_panel/instance_specific_panel.vue |
32 |
index c8ed0a2d..a49c20cf 100644 |
33 |
--- a/src/components/instance_specific_panel/instance_specific_panel.vue |
34 |
+++ b/src/components/instance_specific_panel/instance_specific_panel.vue |
35 |
@@ -2,9 +2,7 @@ |
36 |
<div class="instance-specific-panel"> |
37 |
<div class="panel panel-default"> |
38 |
<div class="panel-body"> |
39 |
- <!-- eslint-disable vue/no-v-html --> |
40 |
- <div v-html="instanceSpecificPanelContent" /> |
41 |
- <!-- eslint-enable vue/no-v-html --> |
42 |
+ <LinksDynamically :content="instanceSpecificPanelContent" /> |
43 |
</div> |
44 |
</div> |
45 |
</div> |
46 |
diff --git a/src/components/terms_of_service_panel/terms_of_service_panel.js b/src/components/terms_of_service_panel/terms_of_service_panel.js |
47 |
index 4276f8f7..41382c60 100644 |
48 |
--- a/src/components/terms_of_service_panel/terms_of_service_panel.js |
49 |
+++ b/src/components/terms_of_service_panel/terms_of_service_panel.js |
50 |
@@ -1,4 +1,9 @@ |
51 |
+import LinksDynamically from '../links_dynamically/links_dynamically.vue' |
52 |
+ |
53 |
const TermsOfServicePanel = { |
54 |
+ components: { |
55 |
+ LinksDynamically |
56 |
+ }, |
57 |
computed: { |
58 |
content () { |
59 |
return this.$store.state.instance.tos |
60 |
diff --git a/src/components/terms_of_service_panel/terms_of_service_panel.vue b/src/components/terms_of_service_panel/terms_of_service_panel.vue |
61 |
index bff0ae74..0d90c00d 100644 |
62 |
--- a/src/components/terms_of_service_panel/terms_of_service_panel.vue |
63 |
+++ b/src/components/terms_of_service_panel/terms_of_service_panel.vue |
64 |
@@ -2,12 +2,9 @@ |
65 |
<div> |
66 |
<div class="panel panel-default"> |
67 |
<div class="panel-body"> |
68 |
- <!-- eslint-disable vue/no-v-html --> |
69 |
- <div |
70 |
- class="tos-content" |
71 |
- v-html="content" |
72 |
- /> |
73 |
- <!-- eslint-enable vue/no-v-html --> |
74 |
+ <div class="tos-content"> |
75 |
+ <LinksDynamically :content="content" /> |
76 |
+ </div> |
77 |
</div> |
78 |
</div> |
79 |
</div> |
80 |
-- |
81 |
2.40.1 |
82 |
|