Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commitcacb73d

Browse files
committed
style(Global): add ascii art to console
1 parent022db99 commitcacb73d

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

‎src/containers/GlobalLayout/index.js‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ import {
3636
SubCommunitiesExpander,
3737
ExpanderIcon,
3838
}from'./styles'
39-
import{useInit,openDoraemon,queryDoraemon,calcInitWidth}from'./logic'
39+
40+
import{
41+
useInit,
42+
openDoraemon,
43+
queryDoraemon,
44+
calcInitWidth,
45+
logBuddha,
46+
}from'./logic'
4047

4148
constGlobalLayoutContainer=({
4249
globalLayout:store,
@@ -48,10 +55,10 @@ const GlobalLayoutContainer = ({
4855
noSidebar,
4956
metric,
5057
})=>{
51-
const[innerMinWidth,setInnerMinWidth]=useState('100%')
58+
useEffect(()=>logBuddha(),[])
5259

60+
const[innerMinWidth,setInnerMinWidth]=useState('100%')
5361
const{ online}=useNetwork()
54-
5562
constmedia=useMedia()
5663
constplatform=usePlatform()
5764

‎src/containers/GlobalLayout/logic.js‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,40 @@ export const calcInitWidth = ref => {
3434
returnminWidth
3535
}
3636

37+
/**
38+
* log ascii Buddha just for fun
39+
* 控制台打印佛祖保佑
40+
*/
41+
exportconstlogBuddha=()=>{
42+
/* eslint-disable */
43+
console.log(
44+
' .......................................................\n\n\n'+
45+
' _oo0oo_ \n'+
46+
' o8888888o \n'+
47+
' 88" . "88 if (bug) { \n'+
48+
' (| -_- |) .oO bug = false \n'+
49+
' 0\\ = /0 } \n'+
50+
' ___/‘---’\\___ \n'+
51+
" .' \\| |/ '. \n"+
52+
' / \\\\||| : |||// \\ \n'+
53+
' / _|||||-【】-|||||_ \\ \n'+
54+
' | | \\\\\\ - /// | | \n'+
55+
" | \\_| ''\\---/'' |_/ | \n"+
56+
" \\ .-\\__ '-' ___/-. / \n"+
57+
" ___'. .' /--.--\\ '. .'___ \n"+
58+
' ."" ‘<‘.___\\_<|>_/___.’>’ "". \n'+
59+
' | | : ‘- \\‘.;‘\\ _ /’;.’/ - ’ : | | \n'+
60+
' \\ \\ ‘_. \\_ __\\ /__ _/ .-’ / / \n'+
61+
' =====‘-.____‘.___ \\_____/___.-’___.-’===== \n'+
62+
' ‘=---=’ \n'+
63+
' \n\n'+
64+
'.........................................................\n\n'+
65+
' ########## https://github.com/coderplanets #########\n\n'+
66+
'.........................................................'
67+
)
68+
/* eslint-enable */
69+
}
70+
3771
// ###############################
3872
// init & uninit
3973
// ###############################

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp