Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
de0e53fc
Commit
de0e53fc
authored
Apr 30, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the startup time &&console-LOGO
增加启动时间以及控制台LOGO
parent
2c0d6d8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
load.entry.jsx
source/load.entry.jsx
+18
-1
No files found.
source/load.entry.jsx
View file @
de0e53fc
/**
* 中国蚁剑::前端加载模块
* 开写: 2016/04/23
* 更新: 2016/04/2
4
* 更新: 2016/04/2
8
* 作者: 蚁逅 <https://github.com/antoor>
*/
...
...
@@ -10,6 +10,9 @@
// 加载jQuery
window
.
$
=
window
.
jQuery
=
require
(
'../static/libs/jquery/dist/jquery.min.js'
);
// 开始加载时间
let
APP_START_TIME
=
+
new
Date
;
$
(
document
).
ready
(()
=>
{
/**
* 时间格式化函数
...
...
@@ -120,5 +123,19 @@ $(document).ready(() => {
require
(
'babel/register'
)();
// 加载程序入口
require
(
'./app.entry.jsx'
);
// LOGO
console
.
log
(
`%c
_____ _ _____ _
| _ |___| |_| __|_ _ _ ___ ___ _| |
| | | _|__ | | | | . | _| . |
|__|__|_|_|_| |_____|_____|___|_| |___|%c
->| Ver: %c
${
antSword
.
package
.
version
}
%c
-+=>| Git: %c
${
antSword
.
package
.
repository
[
'url'
]}
%c
-*| End: %c
${
+
new
Date
-
APP_START_TIME
}
%c/ms`
,
'color: #F44336;'
,
'color: #9E9E9E;'
,
'color: #4CAF50;'
,
'color: #9E9E9E;'
,
'color: #2196F3;'
,
'color: #9E9E9E;'
,
'color: #FF9800;'
,
'color: #9E9E9E;'
);
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment