Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
console
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
MyCard
console
Commits
ec3ca211
Commit
ec3ca211
authored
May 02, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix remove logic
parent
905c3677
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
44 deletions
+33
-44
.idea/workspace.xml
.idea/workspace.xml
+24
-35
migrate.ts
migrate.ts
+9
-8
package/main.ts
package/main.ts
+0
-1
No files found.
.idea/workspace.xml
View file @
ec3ca211
...
...
@@ -5,10 +5,8 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"f0cbce64-0ebc-4f60-8c2d-2fe9e214a8c0"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/config.ts"
afterPath=
"$PROJECT_DIR$/config.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/migrate.ts"
afterPath=
"$PROJECT_DIR$/migrate.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
src/routes/upload.ts"
afterPath=
"$PROJECT_DIR$/src/routes/upload
.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
package/main.ts"
afterPath=
"$PROJECT_DIR$/package/main
.ts"
/>
</list>
<ignored
path=
"mycard-console-backend.iws"
/>
<ignored
path=
".idea/workspace.xml"
/>
...
...
@@ -34,8 +32,8 @@
<file
leaf-file-name=
"migrate.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/migrate.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
426
"
>
<caret
line=
"
120"
column=
"7"
lean-forward=
"true"
selection-start-line=
"120"
selection-start-column=
"7"
selection-end-line=
"120"
selection-end-column=
"
7"
/>
<state
relative-caret-position=
"
-107
"
>
<caret
line=
"
41"
column=
"87"
lean-forward=
"false"
selection-start-line=
"41"
selection-start-column=
"87"
selection-end-line=
"41"
selection-end-column=
"8
7"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
...
...
@@ -79,8 +77,8 @@
<file
leaf-file-name=
"upload.ts"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
303
"
>
<caret
line=
"1
86"
column=
"23"
lean-forward=
"true"
selection-start-line=
"186"
selection-start-column=
"23"
selection-end-line=
"186"
selection-end-column=
"23
"
/>
<state
relative-caret-position=
"
439
"
>
<caret
line=
"1
91"
column=
"0"
lean-forward=
"true"
selection-start-line=
"191"
selection-start-column=
"0"
selection-end-line=
"191"
selection-end-column=
"0
"
/>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
</folding>
...
...
@@ -88,16 +86,6 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"main.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"316"
>
<caret
line=
"81"
column=
"39"
lean-forward=
"true"
selection-start-line=
"81"
selection-start-column=
"39"
selection-end-line=
"81"
selection-end-column=
"39"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"package.json"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/package.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
...
@@ -131,7 +119,6 @@
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
full
</find>
<find>
Can not change AppID
</find>
<find>
release
</find>
<find>
joi.ob
</find>
...
...
@@ -161,6 +148,7 @@
<find>
console.log
</find>
<find>
fs.remove
</find>
<find>
remove
</find>
<find>
bundle
</find>
</findStrings>
</component>
<component
name=
"Git.Settings"
>
...
...
@@ -203,10 +191,10 @@
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/package/utils.ts"
/>
<option
value=
"$PROJECT_DIR$/aria2.conf"
/>
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
<option
value=
"$PROJECT_DIR$/migrate.ts"
/>
<option
value=
"$PROJECT_DIR$/config.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<option
value=
"$PROJECT_DIR$/migrate.ts"
/>
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
</list>
</option>
</component>
...
...
@@ -470,12 +458,12 @@
<workItem
from=
"1493198225466"
duration=
"47067000"
/>
<workItem
from=
"1493371982129"
duration=
"6000"
/>
<workItem
from=
"1493372010655"
duration=
"3472000"
/>
<workItem
from=
"1493692283332"
duration=
"
1795
000"
/>
<workItem
from=
"1493692283332"
duration=
"
2717
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"20
3566
000"
/>
<option
name=
"totallyTimeSpent"
value=
"20
4488
000"
/>
</component>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
...
...
@@ -488,6 +476,7 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"55"
y=
"23"
width=
"1377"
height=
"872"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"TypeScript"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32846716"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.14011799"
sideWeight=
"0.49384886"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
...
...
@@ -498,7 +487,7 @@
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.43941605"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32975295"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
tru
e"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.31794873"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
fals
e"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.31794873"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.23725356"
sideWeight=
"0.50615114"
order=
"2"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"4"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -870,14 +859,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"316"
>
<caret
line=
"81"
column=
"39"
lean-forward=
"true"
selection-start-line=
"81"
selection-start-column=
"39"
selection-end-line=
"81"
selection-end-column=
"39"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"342"
>
...
...
@@ -888,18 +869,26 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/migrate.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
426
"
>
<caret
line=
"
120"
column=
"7"
lean-forward=
"true"
selection-start-line=
"120"
selection-start-column=
"7"
selection-end-line=
"120"
selection-end-column=
"
7"
/>
<state
relative-caret-position=
"
-107
"
>
<caret
line=
"
41"
column=
"87"
lean-forward=
"false"
selection-start-line=
"41"
selection-start-column=
"87"
selection-end-line=
"41"
selection-end-column=
"8
7"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"329"
>
<caret
line=
"81"
column=
"36"
lean-forward=
"true"
selection-start-line=
"81"
selection-start-column=
"36"
selection-end-line=
"81"
selection-end-column=
"36"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
303
"
>
<caret
line=
"1
86"
column=
"23"
lean-forward=
"true"
selection-start-line=
"186"
selection-start-column=
"23"
selection-end-line=
"186"
selection-end-column=
"23
"
/>
<state
relative-caret-position=
"
439
"
>
<caret
line=
"1
91"
column=
"0"
lean-forward=
"true"
selection-start-line=
"191"
selection-start-column=
"0"
selection-end-line=
"191"
selection-end-column=
"0
"
/>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
</folding>
...
...
migrate.ts
View file @
ec3ca211
import
axios
from
'
axios
'
;
import
config
from
'
./config
'
;
import
*
as
uuid
from
'
uuid
'
;
import
*
as
_
from
'
lodash
'
import
{
XmlDocument
}
from
'
xmldoc
'
;
...
...
@@ -115,17 +116,17 @@ async function main() {
}
}
for
(
let
app
of
data
)
{
if
([
'
th10
'
].
includes
(
app
[
'
id
'
]))
{
await
updateApp
(
app
);
}
}
// for (let app of _.sampleSize(data, 1)) {
// if (!['ygopro', 'desmume', 'test'].includes(app['id'])) {
// for (let app of data) {
// if (['th10'].includes(app['id'])) {
// await updateApp(app);
// }
// }
for
(
let
app
of
_
.
sampleSize
(
data
,
1
))
{
if
(
!
[
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
]))
{
await
updateApp
(
app
);
}
}
}
catch
(
e
)
{
console
.
trace
(
e
);
}
...
...
package/main.ts
View file @
ec3ca211
...
...
@@ -78,7 +78,6 @@ export async function bundle(...args) {
let
fullPath
=
path
.
join
(
path
.
dirname
(
filePath
),
`
${
fullHash
}
.tar.gz`
);
await
fs
.
renameAsync
(
filePath
,
fullPath
);
await
fs
.
removeAsync
(
filePath
);
await
fs
.
removeAsync
(
uploadFile_path
)
await
fs
.
removeAsync
(
package_path
)
...
...
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