Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena Web
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
GaiaXalter
Ygopro Arena Web
Commits
7b99d6bb
Commit
7b99d6bb
authored
Jan 22, 2018
by
ganjingcun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editor
parent
889fa9a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
src/api.js
src/api.js
+2
-2
src/components/Deck.vue
src/components/Deck.vue
+1
-1
src/main.js
src/main.js
+19
-19
No files found.
src/api.js
View file @
7b99d6bb
...
...
@@ -5,8 +5,8 @@ import config from './config';
Vue
.
use
(
VueResource
)
//
const URL = "http://localhost:3000/api"
const
URL
=
"
https://api.mycard.moe/ygopro/arena
"
const
URL
=
"
http://localhost:3000/api
"
//
const URL = "https://api.mycard.moe/ygopro/arena"
export
default
class
Api
{
...
...
src/components/Deck.vue
View file @
7b99d6bb
...
...
@@ -72,7 +72,7 @@
</el-form-item>
<el-form-item
label=
"图片URL"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"avatar_url_new"
placeholder=
"请输入您希望展示的图片的地址"
auto-complete=
"off"
></el-input>
<a
href=
"https://ygobbs.com/"
target=
"_blank"
class=
"el-icon-upload2"
>
图片上传地址
</a>
<a
href=
"https://ygobbs.com/
t/86271
"
target=
"_blank"
class=
"el-icon-upload2"
>
图片上传地址
</a>
</el-form-item>
<!--
<el-form-item
label=
"类型"
:label-width=
"formLabelWidth"
>
<el-select
v-model=
"form.region"
placeholder=
"请选择类型"
>
...
...
src/main.js
View file @
7b99d6bb
...
...
@@ -44,12 +44,12 @@ Vue.use(VueHtml5Editor,{
sizeLimit
:
512
*
1024
,
// 上传参数,默认把图片转为base64而不上传
// upload config,default null and convert image to base64
upload
:
{
url
:
null
,
headers
:
{},
params
:
{},
fieldName
:
{}
},
//
upload: {
//
url: null,
//
headers: {},
//
params: {},
//
fieldName: {}
//
},
// 压缩参数,默认使用localResizeIMG进行压缩,设置为null禁止压缩
// compression config,default resize image by localResizeIMG (https://github.com/think2011/localResizeIMG)
// set null to disable compression
...
...
@@ -60,15 +60,15 @@ Vue.use(VueHtml5Editor,{
},
// 响应数据处理,最终返回图片链接
// handle response data,return image url
uploadHandler
(
responseText
){
//default accept json data like {ok:false,msg:"unexpected"} or {ok:true,data:"image url"}
var
json
=
JSON
.
parse
(
responseText
)
if
(
!
json
.
ok
)
{
alert
(
json
.
msg
)
}
else
{
return
json
.
data
}
}
//
uploadHandler(responseText){
//
//default accept json data like {ok:false,msg:"unexpected"} or {ok:true,data:"image url"}
//
var json = JSON.parse(responseText)
//
if (!json.ok) {
//
alert(json.msg)
//
} else {
//
return json.data
//
}
//
}
},
// 语言,内建的有英文(en-us)和中文(zh-cn)
//default en-us, en-us and zh-cn are built-in
...
...
@@ -89,7 +89,7 @@ Vue.use(VueHtml5Editor,{
"
eraser
"
:
"
格式清除
"
,
"
info
"
:
"
关于
"
,
"
color
"
:
"
颜色
"
,
"
please enter a url
"
:
"
请输入
地址
"
,
"
please enter a url
"
:
"
请输入
图片的URL
"
,
"
create link
"
:
"
创建链接
"
,
"
bold
"
:
"
加粗
"
,
"
italic
"
:
"
倾斜
"
,
...
...
@@ -109,8 +109,8 @@ Vue.use(VueHtml5Editor,{
"
background color
"
:
"
背景色
"
,
"
row count
"
:
"
行数
"
,
"
column count
"
:
"
列数
"
,
"
save
"
:
"
确定
"
,
"
upload
"
:
"
上传
"
,
"
save
"
:
"
插入图片
"
,
"
upload
"
:
"
点我没用
"
,
"
progress
"
:
"
进度
"
,
"
unknown
"
:
"
未知
"
,
"
please wait
"
:
"
请稍等
"
,
...
...
@@ -134,7 +134,7 @@ Vue.use(VueHtml5Editor,{
"
link
"
,
"
unlink
"
,
"
tabulation
"
,
//
"image",
"
image
"
,
"
hr
"
,
// "eraser",
// "undo",
...
...
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