Toggle navigation
Toggle navigation
This project
Loading...
Sign in
성준영
/
klas-file-downloader
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
성준영
2017-06-08 00:51:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc5a88631b76f2774caff77a617e257885b738ec
fc5a8863
1 parent
04586a09
로그아웃시 바로 로그인하면 로그인 되는 버그 수정
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
desktop-app/app.js
desktop-app/createInstaller.js
desktop-app/logic.js
package.json
desktop-app/app.js
View file @
fc5a886
...
...
@@ -22,7 +22,7 @@ function createWindow () {
}))
// Open the DevTools.
//
win.webContents.openDevTools()
win
.
webContents
.
openDevTools
()
// Emitted when the window is closed.
win
.
on
(
'closed'
,
()
=>
{
...
...
desktop-app/createInstaller.js
0 → 100644
View file @
fc5a886
const
createWindowsInstaller
=
require
(
'electron-winstaller'
).
createWindowsInstaller
const
path
=
require
(
'path'
)
getInstallerConfig
()
.
then
(
createWindowsInstaller
)
.
catch
((
error
)
=>
{
console
.
error
(
error
.
message
||
error
)
process
.
exit
(
1
)
})
function
getInstallerConfig
()
{
console
.
log
(
'creating windows installer'
)
const
rootPath
=
path
.
join
(
'./'
)
const
outPath
=
path
.
join
(
rootPath
,
'release-builds'
)
return
Promise
.
resolve
({
appDirectory
:
path
.
join
(
outPath
,
'KLAS파일다운로더'
),
authors
:
'Sung Junyoung'
,
noMsi
:
true
,
outputDirectory
:
path
.
join
(
outPath
,
'windows-installer'
),
exe
:
'KLAS파일다운로더.exe'
,
setupExe
:
'KLAS파일다운로더-Installer.exe'
,
setupIcon
:
path
.
join
(
rootPath
,
'assets'
,
'icons'
,
'win'
,
'logo_256.ico'
)
})
}
\ No newline at end of file
desktop-app/logic.js
View file @
fc5a886
...
...
@@ -60,9 +60,11 @@ $(document).ready(function () {
let
id
=
$
(
'#id'
).
val
();
let
pw
=
$
(
'#pw'
).
val
();
userLectures
=
[];
lectureFiles
=
[];
selectedLecture
=
''
;
disableAll
(
'로그인 중입니다...'
);
klasFD
.
getLectureList
(
id
,
pw
,
function
(
res
)
{
console
.
log
(
res
);
if
(
res
.
code
)
{
ableAll
();
...
...
@@ -246,6 +248,7 @@ $(document).ready(function () {
$
(
'#logout'
).
hide
();
$
(
'#id'
).
val
(
''
);
$
(
'#pw'
).
val
(
''
);
location
.
reload
();
}
function
disableAll
(
text
)
{
...
...
package.json
View file @
fc5a886
...
...
@@ -33,5 +33,8 @@
"querystring"
:
"^0.2.0"
,
"read"
:
"^1.0.7"
,
"request"
:
"^2.81.0"
},
"devDependencies"
:
{
"electron-winstaller"
:
"^2.6.1"
}
}
...
...
Please
register
or
login
to post a comment