From ed37590c5fe3a97f66a25a2f1d52222b3f69e944 Mon Sep 17 00:00:00 2001 From: daisuke Date: Sat, 27 Mar 2021 12:01:13 -0600 Subject: [PATCH] DashboardFE --- array.txt | 3 +++ js/scripts.js | 7 +++++++ modules/timeline.php | 6 +++++- templates/post.txt | 7 ++++--- templates/post_logout.txt | 32 ++++++++++++++++++++++++++++++++ templates/textpost.txt | 3 ++- themes/hitech/css/color.css | 3 +-- themes/hitech/css/mobile.css | 2 +- 8 files changed, 55 insertions(+), 8 deletions(-) create mode 100644 array.txt create mode 100644 templates/post_logout.txt diff --git a/array.txt b/array.txt new file mode 100644 index 0000000..dcdaeab --- /dev/null +++ b/array.txt @@ -0,0 +1,3 @@ +Array +( +) diff --git a/js/scripts.js b/js/scripts.js index 39505be..4fd2326 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -479,6 +479,11 @@ function newPosts() { if (getUrlParameter('mode') == 'bookmarks') { return false; } + var page = getUrlParameter('page'); + if (typeof page !== 'undefined') { + return false; + } + $.get("index.php?ajax=1&since=" + id + "" + pageMode, function(data) { if (data) { var scroll = $(window).scrollTop(); @@ -507,7 +512,9 @@ window.setInterval(function() { timestamp = $(this).attr('id'); $(this).html(timeSince(timestamp)+' ago'); }); + newPosts(); + }, 25000); function themecheck(name){ diff --git a/modules/timeline.php b/modules/timeline.php index 0327f1b..18db713 100644 --- a/modules/timeline.php +++ b/modules/timeline.php @@ -352,7 +352,11 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) { $post['template'] = themes("get","templates/textpost.txt"); } else { - $post['template'] = themes("get","templates/post.txt"); + if ($logedin){ + $post['template'] = themes("get","templates/post.txt"); + } else { + $post['template'] = themes("get","templates/post_logout.txt"); + } } foreach ($post as $key => $value) { diff --git a/templates/post.txt b/templates/post.txt index 7994984..5d2082e 100644 --- a/templates/post.txt +++ b/templates/post.txt @@ -1,3 +1,4 @@ +
:rt:
@@ -5,16 +6,16 @@
-
+ :acct: - :rt: + :rt:
diff --git a/templates/post_logout.txt b/templates/post_logout.txt new file mode 100644 index 0000000..4f6955e --- /dev/null +++ b/templates/post_logout.txt @@ -0,0 +1,32 @@ +
:rt:
+
+
+
+
:ancestors:
+
+
+ +
+
+ :name: + :handle: +
+
+ :acct: + :rt: +
+ + + +
+ :spoiler: +
:media:
+
+ :replyto: :text: +
+ +
:notes:
+
:descendants:
+
+ +
diff --git a/templates/textpost.txt b/templates/textpost.txt index f2c31f4..b985764 100644 --- a/templates/textpost.txt +++ b/templates/textpost.txt @@ -1,3 +1,4 @@ +
:rt:
@@ -14,7 +15,7 @@
:acct: - :rt: + :rt:
diff --git a/themes/hitech/css/color.css b/themes/hitech/css/color.css index 8d54f44..7bba22c 100644 --- a/themes/hitech/css/color.css +++ b/themes/hitech/css/color.css @@ -259,8 +259,7 @@ input[type="submit"]:hover { background-color: rgba(0,0,0,0.4); border: 2px solid #edf3fe; border-right: 6px solid #edf3fe; - box-shadow: 0 0 4px rgba(237,243,254,1); - box-shadow: 0 0 5px rgba(237,243,254,1) inset; + box-shadow: 0 0 10px rgba(237,243,254,1) inset; } /* .postform,.searchmobile { diff --git a/themes/hitech/css/mobile.css b/themes/hitech/css/mobile.css index d2614c2..03d707f 100644 --- a/themes/hitech/css/mobile.css +++ b/themes/hitech/css/mobile.css @@ -7,7 +7,7 @@ body { } .content { - width:90% !important; + width:85% !important; } .postMenu {