chore: add welcome message

pull/645/head
defclass 2020-11-10 09:36:16 +08:00
parent 3ea34ded54
commit 92386c0d6a
1 changed files with 18 additions and 2 deletions

View File

@ -15,10 +15,26 @@
;; set to false to enable HistoryAPI
{:use-fragment false}))
(defn start []
(defn welcome-message
[]
(js/console.log
"Welcome to Logseq! If you encounter any problem, feel free to file an issue on GitHub (https://github.com/logseq/logseq) or join our Discord server (https://discord.gg/KpN4eHY).
.____
| | ____ ____ ______ ____ ______
| | / _ \\ / ___\\/ ___// __ \\/ ____/
| |__( <_> ) /_/ >___ \\\\ ___< <_| |
|_______ \\____/\\___ /____ >\\___ >__ |
\\/ /_____/ \\/ \\/ |__|
" ))
(defn start []
(when-let [node (.getElementById js/document "root")]
(set-router!)
(rum/mount (page/current-page) node)))
(rum/mount (page/current-page) node)
(welcome-message)))
(defn ^:export init []
;; init is called ONCE when the page loads