From 244edcecd9cd78d67e1804b8c3e00c99ea98141d Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Thu, 22 May 2025 22:26:11 +0930 Subject: [PATCH 1/9] Update links_helper.rb Added 'WalltakeriOS-iPhone-Shortcut (mikapika.)' and 'WalltakeriOS-iPad-Shortcut (mikapika.)' to link_agent_to_icon. This is because I have created a way to use Walltaker on iOS devices using the Shortcuts app. --- app/helpers/links_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/links_helper.rb b/app/helpers/links_helper.rb index bf2eb909..24e5b55f 100644 --- a/app/helpers/links_helper.rb +++ b/app/helpers/links_helper.rb @@ -36,6 +36,8 @@ def link_agent_to_icon(link_agent) return :pawslut if link_agent.include? 'PawSlut' return :collin if link_agent.include? 'umbrella Collin\'s Walltaker Setter Thing' return :pawbies if link_agent.include? 'WTPopOutViewer' + return :ios_iphone if link_agent.include? 'WalltakeriOS-iPhone-Shortcut (mikapika.)' + return :ios_ipad if link_agent.include? 'WalltakeriOS-iPad-Shortcut (mikapika.)' :unknown end From ceb3dc61e7c602612d04ce04362795e0823ea666 Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Thu, 22 May 2025 22:28:58 +0930 Subject: [PATCH 2/9] Update _details.html.erb Added ios_iphone and ios_ipad to devices, which use mobile and desktop respectively. This is because I have created a way to use Walltaker from an iOS device using the Shortcuts app. --- app/views/links/_details.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/links/_details.html.erb b/app/views/links/_details.html.erb index 7d54076f..c9e10945 100644 --- a/app/views/links/_details.html.erb +++ b/app/views/links/_details.html.erb @@ -20,6 +20,8 @@ pawslut: :desktop, collin: :desktop, pawbies: :desktop, + ios_ipad: :desktop, + ios_iphone: :mobile, unknown: :desktop } %> <% device = devices[client] %> From fc3b85daa06765a959d06210cc6a0096434f13c2 Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Sun, 25 May 2025 00:47:27 +0930 Subject: [PATCH 3/9] Update base.css Fix vertical alignment of online indicator --- public/base.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/base.css b/public/base.css index ed8393a7..b13ca132 100644 --- a/public/base.css +++ b/public/base.css @@ -475,8 +475,10 @@ h3 span.beta-tag { h2 > .online { font-size: 1rem; - transform: translateY(-0.9rem); + vertical-align: middle; + transform: none; display: inline-block; + padding-bottom: 0; } h2 ion-icon { From 3a3ae96b3a802ae5313d7cdc26232feea07a4d86 Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Sun, 25 May 2025 00:49:23 +0930 Subject: [PATCH 4/9] Update link.css Fix vertical alignment of online indicator --- public/link.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/link.css b/public/link.css index 3b2a650a..8fe29666 100644 --- a/public/link.css +++ b/public/link.css @@ -284,11 +284,12 @@ strong.online ion-icon { strong.online::after { content: ''; display: inline-block; - width: 1ch; - height: 1ch; + width: 10px; + height: 10px; background: currentColor; border-radius: 100%; margin-left: 0.25rem; + vertical-align: 3px; } strong.offline { From f775b0e4779ab1eb3a6730e8aa5958735e9c39a5 Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Sun, 25 May 2025 11:18:16 +0930 Subject: [PATCH 5/9] Update _details.html.erb Change name of devices for iPhone and iPad --- app/views/links/_details.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/links/_details.html.erb b/app/views/links/_details.html.erb index c9e10945..e856fe4b 100644 --- a/app/views/links/_details.html.erb +++ b/app/views/links/_details.html.erb @@ -20,8 +20,8 @@ pawslut: :desktop, collin: :desktop, pawbies: :desktop, - ios_ipad: :desktop, - ios_iphone: :mobile, + ipad_shortcuts: :desktop, + iphone_shortcuts: :mobile, unknown: :desktop } %> <% device = devices[client] %> From 6ad3c9c85bc0e757dc9f774de511ede79a0887c6 Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Sun, 25 May 2025 11:23:02 +0930 Subject: [PATCH 6/9] Update links_helper.rb Moved devices up above :ioswidget and :switft --- app/helpers/links_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/links_helper.rb b/app/helpers/links_helper.rb index 24e5b55f..d6aecc36 100644 --- a/app/helpers/links_helper.rb +++ b/app/helpers/links_helper.rb @@ -24,6 +24,8 @@ def link_agent_to_icon(link_agent) return :wallpaper_engine if link_agent.include? 'Wallpaper-Engine-Client' return :automate if link_agent.include? 'walltaker-android-automate' return :arson_automate if link_agent.include? 'arson-walltaker-automate' + return :ios_iphone if link_agent.include? 'WalltakeriOS-iPhone-Shortcut (mikapika.)' + return :ios_ipad if link_agent.include? 'WalltakeriOS-iPad-Shortcut (mikapika.)' return :ioswidget if link_agent.include? 'widgetExtension' return :swift if link_agent.include? 'CFNetwork/' return :android_changer if link_agent.include? 'Walltaker-Changer/' @@ -36,8 +38,6 @@ def link_agent_to_icon(link_agent) return :pawslut if link_agent.include? 'PawSlut' return :collin if link_agent.include? 'umbrella Collin\'s Walltaker Setter Thing' return :pawbies if link_agent.include? 'WTPopOutViewer' - return :ios_iphone if link_agent.include? 'WalltakeriOS-iPhone-Shortcut (mikapika.)' - return :ios_ipad if link_agent.include? 'WalltakeriOS-iPad-Shortcut (mikapika.)' :unknown end From 098c20bcdb9357ebb92bf964ec483a5d175be245 Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Sun, 25 May 2025 11:23:55 +0930 Subject: [PATCH 7/9] Update links_helper.rb Renamed devices to iphone_shortcuts and ipad_shortcuts --- app/helpers/links_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/links_helper.rb b/app/helpers/links_helper.rb index d6aecc36..0a1c2d0d 100644 --- a/app/helpers/links_helper.rb +++ b/app/helpers/links_helper.rb @@ -24,8 +24,8 @@ def link_agent_to_icon(link_agent) return :wallpaper_engine if link_agent.include? 'Wallpaper-Engine-Client' return :automate if link_agent.include? 'walltaker-android-automate' return :arson_automate if link_agent.include? 'arson-walltaker-automate' - return :ios_iphone if link_agent.include? 'WalltakeriOS-iPhone-Shortcut (mikapika.)' - return :ios_ipad if link_agent.include? 'WalltakeriOS-iPad-Shortcut (mikapika.)' + return :iphone_shortcuts if link_agent.include? 'WalltakeriOS-iPhone-Shortcut (mikapika.)' + return :ipad_shortcuts if link_agent.include? 'WalltakeriOS-iPad-Shortcut (mikapika.)' return :ioswidget if link_agent.include? 'widgetExtension' return :swift if link_agent.include? 'CFNetwork/' return :android_changer if link_agent.include? 'Walltaker-Changer/' From a64b0a64c5c967459f5b323da95ba5fdb949a2eb Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Sun, 25 May 2025 11:25:06 +0930 Subject: [PATCH 8/9] Update _details.html.erb Moved devices to above :ioswidget and :swift --- app/views/links/_details.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/links/_details.html.erb b/app/views/links/_details.html.erb index e856fe4b..4a81186c 100644 --- a/app/views/links/_details.html.erb +++ b/app/views/links/_details.html.erb @@ -8,6 +8,8 @@ automate: :mobile, arson_automate: :mobile, wallpaper_engine: :desktop, + ipad_shortcuts: :desktop, + iphone_shortcuts: :mobile, ioswidget: :mobile, swift: :desktop, android_changer: :mobile, @@ -20,8 +22,6 @@ pawslut: :desktop, collin: :desktop, pawbies: :desktop, - ipad_shortcuts: :desktop, - iphone_shortcuts: :mobile, unknown: :desktop } %> <% device = devices[client] %> From e417962ad9fd17e53dd0d489acc48920afe99973 Mon Sep 17 00:00:00 2001 From: mika! <103912612+m-mikapika@users.noreply.github.com> Date: Sun, 25 May 2025 11:32:44 +0930 Subject: [PATCH 9/9] Update _link.html.erb Added iphone_shortcuts and ipad_shortcuts icons --- app/views/links/_link.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/links/_link.html.erb b/app/views/links/_link.html.erb index eb7a86c4..03bf64ee 100644 --- a/app/views/links/_link.html.erb +++ b/app/views/links/_link.html.erb @@ -145,6 +145,12 @@ <% when :joihow %> JOI.how + <% when :ipad_shortcuts> + Walltaker Getter via Shortcuts + + <% when :iphone_shortcuts> + Walltaker Getter via Shortcuts + <% when :automate %> Deans' Client @@ -219,4 +225,4 @@ <% if !link.never_expires && link.expires <= Time.now.utc %> <% end %> -<% end %> \ No newline at end of file +<% end %>