Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psd-parse-web
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
劳工
psd-parse-web
Commits
2339e01d
Commit
2339e01d
authored
Nov 17, 2020
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改json返回
parent
f6991f50
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
+4
-4
1f6366eceaa6ebd0f14a749d70a996703f7e94bd.png
imagesPath/1f6366eceaa6ebd0f14a749d70a996703f7e94bd.png
+0
-0
b2af0b52a195e0632471cfc92ee5feb24dec19c7.png
imagesPath/b2af0b52a195e0632471cfc92ee5feb24dec19c7.png
+0
-0
cfbba72b1cb37578be027387c79ae66987f65344.png
imagesPath/cfbba72b1cb37578be027387c79ae66987f65344.png
+0
-0
package.json
package.json
+1
-1
zeroing.js
src/zeroing.js
+3
-3
No files found.
imagesPath/1f6366eceaa6ebd0f14a749d70a996703f7e94bd.png
deleted
100644 → 0
View file @
f6991f50
1.9 KB
imagesPath/b2af0b52a195e0632471cfc92ee5feb24dec19c7.png
deleted
100644 → 0
View file @
f6991f50
1.96 KB
imagesPath/cfbba72b1cb37578be027387c79ae66987f65344.png
deleted
100644 → 0
View file @
f6991f50
12.3 KB
package.json
View file @
2339e01d
{
{
"name"
:
"psd-parse-web"
,
"name"
:
"psd-parse-web"
,
"version"
:
"1.0.
2
"
,
"version"
:
"1.0.
3
"
,
"main"
:
"src/index.js"
,
"main"
:
"src/index.js"
,
"module"
:
"dist/index.es.js"
,
"module"
:
"dist/index.es.js"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/zeroing.js
View file @
2339e01d
...
@@ -270,9 +270,9 @@ async function execute(psdFile, options = {}) {
...
@@ -270,9 +270,9 @@ async function execute(psdFile, options = {}) {
assets
,
assets
,
view
:
viewRoot
,
view
:
viewRoot
,
};
};
return
data
;
let
dataString
=
JSON
.
stringify
(
data
);
/* let dataString = JSON.stringify(data);
let buf = new Buffer(dataString);
let buf = new Buffer(dataString);
return await new Promise((resolve, reject) => {
return await new Promise((resolve, reject) => {
zlib.gzip(buf, function (err, res) {
zlib.gzip(buf, function (err, res) {
...
@@ -283,7 +283,7 @@ async function execute(psdFile, options = {}) {
...
@@ -283,7 +283,7 @@ async function execute(psdFile, options = {}) {
resolve(res);
resolve(res);
}
}
});
});
})
})
*/
}
}
...
...
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