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
943feaa3
Commit
943feaa3
authored
Jun 01, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reconstruction of optimized code
重构优化代码
parent
ee38d527
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
index.js
source/modules/filemanager/index.js
+2
-7
about.js
source/modules/settings/about.js
+1
-1
No files found.
source/modules/filemanager/index.js
View file @
943feaa3
/**
* 文件管理模板
* 更新:2016/0
4/13
* 更新:2016/0
5/14
* 作者:蚁逅 <https://github.com/antoor>
*/
'use strict'
;
// import Files from './files';
// import Tasks from './tasks';
// import Folder from './folder';
// import ENCODES from '../../base/encodes';
const
Files
=
require
(
'./files'
);
const
Tasks
=
require
(
'./tasks'
);
const
Folder
=
require
(
'./folder'
);
...
...
@@ -17,8 +13,7 @@ const ENCODES = require('../../base/encodes');
const
fs
=
require
(
'fs'
);
const
iconv
=
require
(
'iconv-lite'
);
const
crypto
=
require
(
'crypto'
);
const
remote
=
require
(
'remote'
);
const
dialog
=
remote
.
require
(
'dialog'
);
const
dialog
=
antSword
.
remote
.
dialog
;
// 加载语言模板
const
LANG
=
antSword
[
'language'
][
'filemanager'
];
...
...
source/modules/settings/about.js
View file @
943feaa3
...
...
@@ -15,7 +15,7 @@ class About {
const
cell
=
sidebar
.
cells
(
'about'
);
cell
.
attachHTMLString
(
`
<div align="center" class="about">
<img src="
../static
/imgs/logo.png" />
<img src="
ant-static:/
/imgs/logo.png" />
<hr/>
<h2>
${
LANG
[
'header'
]}
<span> v
${
antSword
[
'package'
][
'version'
]}
</span></h2>
<p>
...
...
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