Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
moecube
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
JoyJ
moecube
Commits
c260dc60
Commit
c260dc60
authored
Oct 29, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reformat code
parent
b884a9ec
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
49 deletions
+19
-49
app/app-detail.component.css
app/app-detail.component.css
+1
-6
app/app-detail.component.ts
app/app-detail.component.ts
+1
-2
app/mycard.component.css
app/mycard.component.css
+0
-4
app/ygopro.component.css
app/ygopro.component.css
+0
-5
index.js
index.js
+17
-13
maotama.js
maotama.js
+0
-19
No files found.
app/app-detail.component.css
View file @
c260dc60
...
@@ -9,13 +9,8 @@
...
@@ -9,13 +9,8 @@
width
:
20rem
;
width
:
20rem
;
}
}
.news-block
{
padding
:
0
;
}
progress
{
progress
{
margin
:
0
;
margin
:
2px
0
0
;
margin-top
:
2px
;
}
}
.carousel-inner
img
{
.carousel-inner
img
{
...
...
app/app-detail.component.ts
View file @
c260dc60
...
@@ -20,8 +20,7 @@ export class AppDetailComponent implements OnInit {
...
@@ -20,8 +20,7 @@ export class AppDetailComponent implements OnInit {
platform
=
process
.
platform
;
platform
=
process
.
platform
;
installConfig
:
InstallConfig
;
installConfig
:
InstallConfig
;
constructor
(
private
appsService
:
AppsService
,
private
settingsService
:
SettingsService
,
constructor
(
private
appsService
:
AppsService
,
private
settingsService
:
SettingsService
,
private
downloadService
:
DownloadService
)
{
private
downloadService
:
DownloadService
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
...
...
app/mycard.component.css
View file @
c260dc60
...
@@ -36,10 +36,6 @@ nav.darwin {
...
@@ -36,10 +36,6 @@ nav.darwin {
/*margin-bottom: 60px;*/
/*margin-bottom: 60px;*/
}
}
.nav-right
{
float
:
right
;
}
#avatar
{
#avatar
{
display
:
block
;
display
:
block
;
float
:
left
;
float
:
left
;
...
...
app/ygopro.component.css
View file @
c260dc60
...
@@ -24,11 +24,6 @@
...
@@ -24,11 +24,6 @@
border-radius
:
50%
;
border-radius
:
50%
;
}
}
#game-list-modal
.players
{
padding-top
:
.5rem
;
padding-bottom
:
.5rem
;
}
#game-list-modal
.close
{
#game-list-modal
.close
{
position
:
absolute
;
position
:
absolute
;
top
:
15px
;
top
:
15px
;
...
...
index.js
View file @
c260dc60
'
use strict
'
;
'
use strict
'
;
const
electron
=
require
(
'
electron
'
)
const
electron
=
require
(
'
electron
'
)
;
// Module to control application life.
// Module to control application life.
const
app
=
electron
.
app
const
app
=
electron
.
app
;
// Module to create native browser window.
// Module to create native browser window.
const
BrowserWindow
=
electron
.
BrowserWindow
const
BrowserWindow
=
electron
.
BrowserWindow
;
const
child_process
=
require
(
'
child_process
'
);
const
child_process
=
require
(
'
child_process
'
);
const
path
=
require
(
'
path
'
);
const
path
=
require
(
'
path
'
);
...
@@ -76,11 +76,15 @@ function handleSquirrelEvent() {
...
@@ -76,11 +76,15 @@ function handleSquirrelEvent() {
app
.
quit
();
app
.
quit
();
return
true
;
return
true
;
}
}
};
}
function
handleElevate
()
{
function
handleElevate
()
{
if
(
process
.
argv
[
1
]
==
'
-e
'
)
{
if
(
process
.
argv
[
1
]
==
'
-e
'
)
{
app
.
dock
.
hide
();
app
.
dock
.
hide
();
const
os
=
require
(
'
os
'
);
const
readline
=
require
(
'
readline
'
);
process
.
send
=
(
message
,
sendHandle
,
options
,
callback
)
=>
process
.
stdout
.
write
(
JSON
.
stringify
(
message
)
+
os
.
EOL
,
callback
);
process
.
stdin
.
on
(
'
end
'
,
()
=>
process
.
emit
(
'
disconnect
'
));
readline
.
createInterface
({
input
:
process
.
stdin
}).
on
(
'
line
'
,
(
line
)
=>
process
.
emit
(
'
message
'
,
JSON
.
parse
(
line
)));
require
(
"
./
"
+
process
.
argv
[
2
]);
require
(
"
./
"
+
process
.
argv
[
2
]);
return
true
;
return
true
;
}
}
...
@@ -110,7 +114,7 @@ const aria2c = createAria2c();
...
@@ -110,7 +114,7 @@ const aria2c = createAria2c();
// Keep a global reference of the window object, if you don't, the window will
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
// be closed automatically when the JavaScript object is garbage collected.
let
mainWindow
let
mainWindow
;
function
createWindow
()
{
function
createWindow
()
{
// Create the browser window.
// Create the browser window.
...
@@ -119,13 +123,13 @@ function createWindow() {
...
@@ -119,13 +123,13 @@ function createWindow() {
height
:
640
,
height
:
640
,
frame
:
process
.
platform
==
'
darwin
'
,
frame
:
process
.
platform
==
'
darwin
'
,
titleBarStyle
:
process
.
platform
==
'
darwin
'
?
'
hidden
'
:
null
titleBarStyle
:
process
.
platform
==
'
darwin
'
?
'
hidden
'
:
null
})
})
;
// and load the index.html of the app.
// and load the index.html of the app.
mainWindow
.
loadURL
(
`file://
${
__dirname
}
/index.html`
)
mainWindow
.
loadURL
(
`file://
${
__dirname
}
/index.html`
)
;
// Open the DevTools.
// Open the DevTools.
mainWindow
.
webContents
.
openDevTools
()
mainWindow
.
webContents
.
openDevTools
()
;
// Emitted when the window is closed.
// Emitted when the window is closed.
mainWindow
.
on
(
'
closed
'
,
function
()
{
mainWindow
.
on
(
'
closed
'
,
function
()
{
...
@@ -139,12 +143,12 @@ function createWindow() {
...
@@ -139,12 +143,12 @@ function createWindow() {
// This method will be called when Electron has finished
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
// Some APIs can only be used after this event occurs.
app
.
on
(
'
ready
'
,
createWindow
)
app
.
on
(
'
ready
'
,
createWindow
)
;
// Quit when all windows are closed.
// Quit when all windows are closed.
app
.
on
(
'
window-all-closed
'
,
function
()
{
app
.
on
(
'
window-all-closed
'
,
function
()
{
app
.
quit
()
app
.
quit
()
})
})
;
app
.
on
(
'
activate
'
,
function
()
{
app
.
on
(
'
activate
'
,
function
()
{
// On OS X it's common to re-create a window in the app when the
// On OS X it's common to re-create a window in the app when the
...
@@ -152,7 +156,7 @@ app.on('activate', function () {
...
@@ -152,7 +156,7 @@ app.on('activate', function () {
if
(
mainWindow
===
null
)
{
if
(
mainWindow
===
null
)
{
createWindow
()
createWindow
()
}
}
})
})
;
// In this file you can include the rest of your app's specific main process
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
// code. You can also put them in separate files and require them here.
...
@@ -162,4 +166,4 @@ app.on('quit', ()=> {
...
@@ -162,4 +166,4 @@ app.on('quit', ()=> {
if
(
process
.
platform
!=
'
win32
'
)
{
if
(
process
.
platform
!=
'
win32
'
)
{
aria2c
.
kill
()
aria2c
.
kill
()
}
}
})
});
\ No newline at end of file
\ No newline at end of file
maotama.js
View file @
c260dc60
const
os
=
require
(
'
os
'
);
const
readline
=
require
(
'
readline
'
);
process
.
send
=
(
message
,
sendHandle
,
options
,
callback
)
=>
{
process
.
stdout
.
write
(
JSON
.
stringify
(
message
)
+
os
.
EOL
);
if
(
callback
)
{
callback
()
}
};
process
.
stdin
.
on
(
'
end
'
,
()
=>
{
process
.
emit
(
'
disconnect
'
)
});
readline
.
createInterface
({
input
:
process
.
stdin
}).
on
(
'
line
'
,
(
line
)
=>
{
process
.
emit
(
'
message
'
,
JSON
.
parse
(
line
))
});
const
raw
=
require
(
"
raw-socket
"
);
const
raw
=
require
(
"
raw-socket
"
);
let
socket
=
raw
.
createSocket
({
protocol
:
raw
.
Protocol
.
UDP
});
let
socket
=
raw
.
createSocket
({
protocol
:
raw
.
Protocol
.
UDP
});
...
...
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