Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Mobile
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
Mycard Mobile
Commits
0fb3e190
Commit
0fb3e190
authored
Jun 17, 2018
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1c12b52c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
package.json
package.json
+1
-0
src/app/new-room/new-room.component.ts
src/app/new-room/new-room.component.ts
+1
-3
src/app/ygopro.service.ts
src/app/ygopro.service.ts
+9
-0
src/typings.d.ts
src/typings.d.ts
+4
-3
No files found.
package.json
View file @
0fb3e190
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
"ng"
:
"ng"
,
"ng"
:
"ng"
,
"start"
:
"ng serve --aot"
,
"start"
:
"ng serve --aot"
,
"build"
:
"ng build --i18n-locale zh-CN --base-href /mobile/ --prod"
,
"build"
:
"ng build --i18n-locale zh-CN --base-href /mobile/ --prod"
,
"build:dev"
:
"ng build --i18n-locale zh-CN --base-href /mobile2/ --prod"
,
"postinstall"
:
"patch -i webpack.patch -p0 -t"
,
"postinstall"
:
"patch -i webpack.patch -p0 -t"
,
"lint"
:
"ng lint"
"lint"
:
"ng lint"
},
},
...
...
src/app/new-room/new-room.component.ts
View file @
0fb3e190
...
@@ -41,9 +41,7 @@ export class NewRoomComponent {
...
@@ -41,9 +41,7 @@ export class NewRoomComponent {
}
}
share
(
host_password
:
string
)
{
share
(
host_password
:
string
)
{
return
navigator
.
share
({
this
.
ygopro
.
share
(
'
房间密码是
'
+
host_password
);
text
:
'
房间密码是
'
+
host_password
});
}
}
set_start_lp
()
{
set_start_lp
()
{
...
...
src/app/ygopro.service.ts
View file @
0fb3e190
...
@@ -396,6 +396,15 @@ export class YGOProService {
...
@@ -396,6 +396,15 @@ export class YGOProService {
alert
(
JSON
.
stringify
({
method
:
'
backHome
'
,
params
:
[]
}));
alert
(
JSON
.
stringify
({
method
:
'
backHome
'
,
params
:
[]
}));
}
}
}
}
share
(
text
:
string
)
{
try
{
window
.
ygopro
.
share
(
text
);
}
catch
(
error
)
{
console
.
error
(
error
);
alert
(
JSON
.
stringify
({
method
:
'
share
'
,
params
:
[
text
]
}));
}
}
}
}
type
Message
=
type
Message
=
...
...
src/typings.d.ts
View file @
0fb3e190
...
@@ -14,6 +14,7 @@ interface Window {
...
@@ -14,6 +14,7 @@ interface Window {
openDrawer
():
void
;
openDrawer
():
void
;
backHome
():
void
;
backHome
():
void
;
share
(
text
:
string
):
void
updateUser
(
name
:
string
,
avatar
:
string
,
status
:
string
):
void
;
updateUser
(
name
:
string
,
avatar
:
string
,
status
:
string
):
void
;
readFile
(
path
:
string
):
string
;
readFile
(
path
:
string
):
string
;
...
@@ -25,6 +26,6 @@ interface Window {
...
@@ -25,6 +26,6 @@ interface Window {
};
};
}
}
interface
Navigator
{
//
interface Navigator {
share
:
(
options
:
{
title
?:
string
;
text
?:
string
;
url
?:
string
})
=>
Promise
<
{}
>
;
//
share: (options: { title?: string; text?: string; url?: string }) => Promise<{}>;
}
//
}
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