Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
09e7a347
Commit
09e7a347
authored
Dec 07, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浏览本地文件到下级
parent
a833af7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
app/apps.service.ts
app/apps.service.ts
+2
-12
No files found.
app/apps.service.ts
View file @
09e7a347
...
@@ -347,19 +347,9 @@ export class AppsService {
...
@@ -347,19 +347,9 @@ export class AppsService {
remote
.
getCurrentWindow
().
minimize
();
remote
.
getCurrentWindow
().
minimize
();
}
}
// TODO: 定位到下级文件,即现在的目录之内
// 如果有actions.main.execuate, 定位那个execuate的顶层路径
// 如果没有,定位目录里面任意一个顶级文件
browse
(
app
:
App
)
{
browse
(
app
:
App
)
{
if
(
app
.
local
)
{
if
(
app
.
local
)
{
let
appPath
=
app
.
local
.
path
;
remote
.
shell
.
showItemInFolder
(
app
.
local
.
path
+
"
/.
"
);
fs
.
readdir
(
appPath
,
(
err
,
files
)
=>
{
if
(
!
err
)
{
remote
.
shell
.
showItemInFolder
(
appPath
+
"
/.
"
);
}
else
{
console
.
log
(
"
Browser Window Error:
"
,
appPath
,
err
);
}
});
}
}
}
}
...
@@ -387,7 +377,7 @@ export class AppsService {
...
@@ -387,7 +377,7 @@ export class AppsService {
if
(
connection
)
{
if
(
connection
)
{
connection
.
connection
.
close
();
connection
.
connection
.
close
();
}
}
console
.
log
(
server
.
url
);
//
console.log(server.url);
connection
=
{
connection
:
new
WebSocket
(
server
.
url
),
address
:
null
};
connection
=
{
connection
:
new
WebSocket
(
server
.
url
),
address
:
null
};
let
id
:
Timer
|
null
;
let
id
:
Timer
|
null
;
this
.
connections
.
set
(
app
,
connection
);
this
.
connections
.
set
(
app
,
connection
);
...
...
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