mirror of
https://github.com/spatie/dnsrecords.io.git
synced 2026-04-27 08:25:57 +03:00
[PR #20] [MERGED] Behave like a terminal #34
Labels
No labels
bug
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dnsrecords.io#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spatie/dnsrecords.io/pull/20
Author: @rchoffardet
Created: 10/29/2017
Status: ✅ Merged
Merged: 10/30/2017
Merged by: @freekmurze
Base:
feature-terminal← Head:feature/behave-like-a-terminal📝 Commits (9)
9a2c0da✨ add history feature50fb29fMerge branch 'master' into master121192fMerge branch 'master' into master9b39948📝 merge submit eventab9e981📝 remove else keyword by making use of early return162dc2a📝 end file with a newline04e63c0✨ add limit to history (1000 elements max)0373d11✨ behave like a terminalb6658d2✨ add redirection for "old" sharable url📊 Changes
16 files changed (+219 additions, -105 deletions)
View changed files
📝
app/Http/Controllers/HomeController.php(+6 -0)📝
app/Services/Commands/CommandChain.php(+0 -2)➖
app/Services/Commands/Commands/Clear.php(+0 -19)📝
app/Services/Commands/Commands/DnsLookup.php(+8 -4)➖
app/Services/Commands/Commands/Doom.php(+0 -19)📝
app/Services/Commands/Commands/Ip.php(+4 -3)📝
app/Services/Commands/Commands/Localhost.php(+4 -3)📝
app/Services/Commands/Commands/Manual.php(+4 -3)📝
resources/assets/css/base/headings.css(+1 -0)➕
resources/assets/js/History.js(+49 -0)📝
resources/assets/js/app.js(+8 -7)➕
resources/assets/js/bootstrap.js(+13 -0)➕
resources/assets/js/components/terminal.vue(+119 -0)📝
resources/views/home/index.blade.php(+2 -35)➖
resources/views/layout/_partials/flash.blade.php(+0 -10)📝
resources/views/layout/master.blade.php(+1 -0)📄 Description
This PR introduces a terminal-like behavior to the application as suggested in #18
Work is mostly done, but it introduces a breaking change : Shareable URL now needs to have a Hash before the command like so :
http://dnsrecords.io/#google.frIf it matters, I have an idea to ensure backward compatibility :)
UI isn't one of my skills, so don't hesitate to give me advice/tips on how to improve it !
PS: Terminals have history so I included my previous work in #13
I also added the
history -ccommand to clear history, I can change it to 'clear-history' or anything else.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.