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
da5ae0bf
Commit
da5ae0bf
authored
Apr 24, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis
parent
06928a08
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
188 deletions
+125
-188
.idea/workspace.xml
.idea/workspace.xml
+73
-162
.travis.yml
.travis.yml
+18
-0
src/routes/AppDetail.js
src/routes/AppDetail.js
+34
-26
No files found.
.idea/workspace.xml
View file @
da5ae0bf
This diff is collapsed.
Click to expand it.
.travis.yml
0 → 100644
View file @
da5ae0bf
language
:
node_js
node_js
:
node
env
:
global
:
secure
:
mLQXO2VcEtVujx67y5H08S+FUckI+CHaYk0E54QbrBuyzcQHX6pwio78oO5bOoy5XdqS8GtFaL8w039RlfdAI1IWpaKNpTQgFwNRYcYN9HiqN5kqFQUyJgW+hG7Jc40Dbx7p8KJZKFm/a8nfk50Zkv2R4brXFj8KibgTtuk+KZQIxFStVQ98vv2ykjS22q2+ttCMdr7uRmfJnTneD0TgUB8Y7ypy5fkc/vknC6fTAJnuUL5jCaEPqgvidZcDrayRUu2PMDk94K70MQ5wr9oTgnBMfflmbtiYE0lXIGvEcX3tnKm1dQ6+aQIdp5BV8rCOXmTSlxNYZUR1HeZYzxu4yvN86maBgP5nWbrR/CnEGLvY6EUFdt/oNoJSd+N1slCrr5MDL2ZlPR7edfD85q+shmuDOhZGjRivFSClGsXB5d2uGDJ1jJmqRjrN1r0Eado+NaBr1MJHjc/hNPNEv24rLoNzhDzc57ABJNGD5u/0F72s1K4Jy/Ft3iEgddEXfXmCltANqLz4Ct6FwJY2yVfiaCGniHiFwGRdOzexxPcqBsPnkv8UTkq4zxkmccoYNBi7XZnCYgYtX7UW7HWxSbXxNAslX/GR//ctgTmG7gJpcxOAu9Yyox27cv+E43BRLLw46nOn3Eyh40xvMlVFhzkduQpOZgVBxEQDuuPANzecJI0=
script
:
npm run build
before_deploy
:
-
curl --location --retry 5 --output ossutil 'https://github.com/mycard/ossutil/releases/download/1.0.0.Beta2/ossutil'
-
chmod +x ossutil
-
./ossutil config --endpoint oss-cn-hangzhou.aliyuncs.com --access-key-id $ALIYUN_ID
--access-key-secret $ALIYUN_SECRET
deploy
:
provider
:
script
script
:
./ossutil cp -rf dist oss://mycard/console
skip_cleanup
:
true
on
:
branch
:
master
src/routes/AppDetail.js
View file @
da5ae0bf
import
React
from
'
react
'
;
import
{
connect
}
from
'
dva
'
;
import
styles
from
'
./AppDetail.less
'
;
import
config
from
'
../config
'
import
vercomp
from
'
vercomp
'
import
uuid
from
'
uuid
'
import
React
from
"
react
"
;
import
{
connect
}
from
"
dva
"
;
import
styles
from
"
./AppDetail.less
"
;
import
config
from
"
../config
"
;
import
uuid
from
"
uuid
"
;
import
{
Alert
,
Button
,
Card
,
Col
,
Form
,
Input
,
Icon
,
Radio
,
Tag
,
Tooltip
,
Button
,
Select
,
Tabs
,
Upload
,
Input
,
message
,
Modal
,
Table
,
Badge
,
Alert
,
Progress
,
message
,
Popconfirm
,
Radio
,
Row
,
Col
,
Card
,
Select
,
Spin
,
}
from
'
antd
'
Tabs
,
Upload
}
from
"
antd
"
;
const
FormItem
=
Form
.
Item
;
const
RadioButton
=
Radio
.
Button
;
const
RadioGroup
=
Radio
.
Group
;
...
...
@@ -897,7 +891,8 @@ class AppDetail extends React.Component {
pack
.
status
==
'
failed
'
&&
<
Alert
message
=
"
上传失败,请重试
"
type
=
"
warning
"
showIcon
/>
}
{
this
.
props
.
isUpload
&&
<
Progress
percent
=
{
this
.
props
.
percent
}
status
=
{
this
.
props
.
status
}
/
>
this
.
props
.
isUpload
&&
<
Progress
percent
=
{
this
.
props
.
percent
}
status
=
{
this
.
props
.
status
}
/
>
}
<
Dragger
{...
uploadProps
}
...
...
@@ -905,15 +900,28 @@ class AppDetail extends React.Component {
const
status
=
info
.
file
.
status
;
if
(
status
==
'
uploading
'
)
{
dispatch
({
type
:
'
Common/upload
'
,
payload
:
{
percent
:
info
.
file
.
percent
,
uploadStatus
:
'
active
'
,
isUpload
:
true
}})
dispatch
({
type
:
'
Common/upload
'
,
payload
:
{
percent
:
info
.
file
.
percent
,
uploadStatus
:
'
active
'
,
isUpload
:
true
}
})
}
if
(
status
===
'
done
'
)
{
message
.
info
(
'
上传成功, 打包中...
'
,
3
)
dispatch
({
type
:
'
packages/fetch
'
,
payload
:
{
appId
:
this
.
props
.
params
.
id
}})
dispatch
({
type
:
'
Common/upload
'
,
payload
:
{
percent
:
0
,
uploadStatus
:
''
,
isUpload
:
false
}})
dispatch
({
type
:
'
Common/upload
'
,
payload
:
{
percent
:
0
,
uploadStatus
:
''
,
isUpload
:
false
}
})
}
else
if
(
status
===
'
error
'
)
{
dispatch
({
type
:
'
Common/upload
'
,
payload
:
{
percent
:
info
.
file
.
percent
,
uploadStatus
:
'
exception
'
,
isUpload
:
true
}})
dispatch
({
type
:
'
Common/upload
'
,
payload
:
{
percent
:
info
.
file
.
percent
,
uploadStatus
:
'
exception
'
,
isUpload
:
true
}
})
message
.
error
(
info
.
file
.
response
.
message
);
}
}}
...
...
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