Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
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
syntax_j
mycard
Commits
42c9d68c
Commit
42c9d68c
authored
Feb 22, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n
parent
7a69947f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
95 additions
and
19 deletions
+95
-19
app/app-detail.component.html
app/app-detail.component.html
+2
-2
app/candy.component.html
app/candy.component.html
+4
-4
app/lobby.component.html
app/lobby.component.html
+1
-1
app/mycard.component.css
app/mycard.component.css
+1
-1
app/mycard.component.html
app/mycard.component.html
+10
-10
app/mycard.module.ts
app/mycard.module.ts
+2
-1
locale/messages.en-US.xlf
locale/messages.en-US.xlf
+75
-0
No files found.
app/app-detail.component.html
View file @
42c9d68c
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
</div>
</div>
<div
class=
"panel"
id=
"game_info_2"
>
<div
class=
"panel"
id=
"game_info_2"
>
<dl>
<dl>
<dt>
开发
</dt>
<dt
i18n
>
开发
</dt>
<dd>
<dd>
<div
*ngFor=
"let developer of currentApp.developers"
>
<div
*ngFor=
"let developer of currentApp.developers"
>
<a
*ngIf=
"developer.url"
target=
"_blank"
[href]=
"developer.url"
>
{{developer.name}}
</a>
<a
*ngIf=
"developer.url"
target=
"_blank"
[href]=
"developer.url"
>
{{developer.name}}
</a>
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
</div>
</div>
</dd>
</dd>
<dt>
发行日期
</dt>
<dt
i18n
>
发行日期
</dt>
<dd>
{{currentApp.released_at | date:'mediumDate'}}
</dd>
<dd>
{{currentApp.released_at | date:'mediumDate'}}
</dd>
</dl>
</dl>
</div>
</div>
...
...
app/candy.component.html
View file @
42c9d68c
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
</div>
</div>
<div
style=
"position:absolute; top:5px; right:10px;"
>
<div
style=
"position:absolute; top:5px; right:10px;"
>
<i
id=
"minimize"
class=
"fa fa-minus hover-color"
(click)=
"minimize()"
data-size=
""
title=
"最小化"
></i>
<i
id=
"minimize"
class=
"fa fa-minus hover-color"
(click)=
"minimize()"
data-size=
""
i18n-title
title=
"最小化"
></i>
<i
id=
"unminimize"
class=
"fa fa-minus hover-color"
(click)=
"restore()"
data-size=
""
title=
"取消最小化"
hidden
></i>
<i
id=
"unminimize"
class=
"fa fa-minus hover-color"
(click)=
"restore()"
data-size=
""
i18n-title
title=
"取消最小化"
hidden
></i>
<i
id=
"restore"
class=
"fa fa fa-chevron-down hover-color"
(click)=
"restore()"
data-size=
""
title=
"还原"
hidden
></i>
<i
id=
"restore"
class=
"fa fa fa-chevron-down hover-color"
(click)=
"restore()"
data-size=
""
i18n-title
title=
"还原"
hidden
></i>
<i
id=
"maximize"
class=
"fa fa fa-chevron-up hover-color"
(click)=
"maximize()"
title=
"最大化"
></i>
<i
id=
"maximize"
class=
"fa fa fa-chevron-up hover-color"
(click)=
"maximize()"
i18n-title
title=
"最大化"
></i>
</div>
</div>
app/lobby.component.html
View file @
42c9d68c
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</li>
</li>
</ul>
</ul>
<span
i18n
*ngIf=
"grouped_apps.test"
>
测试
</span>
<span
*ngIf=
"grouped_apps.test"
>
测试
</span>
<ul
*ngIf=
"grouped_apps.test"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.test"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.test"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.test"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.moe/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.moe/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
...
...
app/mycard.component.css
View file @
42c9d68c
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#update-status
>
i
{
#update-status
>
i
{
line-height
:
1.5
;
line-height
:
1.5
;
color
:
#
eceeef
;
color
:
#
5e5e5e
;
padding-top
:
.425rem
;
padding-top
:
.425rem
;
padding-bottom
:
.425rem
;
padding-bottom
:
.425rem
;
}
}
...
...
app/mycard.component.html
View file @
42c9d68c
...
@@ -24,23 +24,23 @@
...
@@ -24,23 +24,23 @@
</ul>
</ul>
<div
id=
"navbar-right"
>
<div
id=
"navbar-right"
>
<div
id=
"update-status"
>
<div
id=
"update-status"
>
<i
#error
[hidden]=
"update_status != 'error'"
(click)=
"update_retry()"
class=
"fa fa-exclamation-circle"
data-toggle=
"tooltip"
title=
"更新出错,点击重试"
></i>
<i
#error
[hidden]=
"update_status != 'error'"
(click)=
"update_retry()"
class=
"fa fa-exclamation-circle"
data-toggle=
"tooltip"
i18n-title
title=
"更新出错,点击重试"
></i>
<i
#checking_for_update
[hidden]=
"update_status != 'checking-for-update'"
class=
"fa fa-spinner fa-pulse fa-spin"
data-toggle=
"tooltip"
title=
"正在检查更新"
></i>
<i
#checking_for_update
[hidden]=
"update_status != 'checking-for-update'"
class=
"fa fa-spinner fa-pulse fa-spin"
data-toggle=
"tooltip"
i18n-title
title=
"正在检查更新"
></i>
<i
#update_available
[hidden]=
"update_status != 'update-available'"
class=
"fa fa-refresh fa-spin"
data-toggle=
"tooltip"
title=
"正在下载更新"
></i>
<i
#update_available
[hidden]=
"update_status != 'update-available'"
class=
"fa fa-refresh fa-spin"
data-toggle=
"tooltip"
i18n-title
title=
"正在下载更新"
></i>
<i
#update_downloaded
[hidden]=
"update_status != 'update-downloaded'"
(click)=
"update_install()"
class=
"fa fa-angle-double-up"
data-toggle=
"tooltip"
title=
"下载更新完成,点击安装"
></i>
<i
#update_downloaded
[hidden]=
"update_status != 'update-downloaded'"
(click)=
"update_install()"
class=
"fa fa-angle-double-up"
data-toggle=
"tooltip"
i18n-title
title=
"下载更新完成,点击安装"
></i>
</div>
</div>
<div
id=
"user"
*ngIf=
"loginService.logged_in"
>
<div
id=
"user"
*ngIf=
"loginService.logged_in"
>
<a
href=
"#"
class=
"profile"
><img
id=
"avatar"
[src]=
"loginService.user.avatar_url"
alt=
"image"
></a>
<a
href=
"#"
class=
"profile"
><img
id=
"avatar"
[src]=
"loginService.user.avatar_url"
alt=
"image"
></a>
<a
href=
"#"
class=
"profile item"
id=
"username"
>
{{loginService.user.username}}
</a>
<a
href=
"#"
class=
"profile item"
id=
"username"
>
{{loginService.user.username}}
</a>
<i
i18n
(click)=
"loginService.logout()"
class=
"fa fa-sign-out item-icon"
aria-hidden=
"true"
title=
"登出
"
></i>
<i
i18n
(click)=
"loginService.logout()"
class=
"fa fa-sign-out item-icon"
aria-hidden=
"true"
i18n-title
title=
"切换用户
"
></i>
<i
i18n
data-toggle=
"modal"
data-target=
"#settings-modal"
class=
"fa fa-cog item-icon"
aria-hidden=
"true"
title=
"设置"
></i>
<i
i18n
data-toggle=
"modal"
data-target=
"#settings-modal"
class=
"fa fa-cog item-icon"
aria-hidden=
"true"
i18n-title
title=
"设置"
></i>
</div>
</div>
<div
id=
"border"
>
|
</div>
<div
id=
"border"
>
|
</div>
<div
id=
"window-buttons"
>
<div
id=
"window-buttons"
>
<i
i18n
(click)=
"currentWindow.minimize()"
class=
"fa fa-minus"
title=
"最小化"
></i>
<i
i18n
(click)=
"currentWindow.minimize()"
class=
"fa fa-minus"
i18n-title
title=
"最小化"
></i>
<i
i18n
*ngIf=
"!currentWindow.isMaximized()"
(click)=
"currentWindow.maximize()"
class=
"fa fa-expand"
title=
"最大化"
></i>
<i
i18n
*ngIf=
"!currentWindow.isMaximized()"
(click)=
"currentWindow.maximize()"
class=
"fa fa-expand"
i18n-title
title=
"最大化"
></i>
<i
i18n
*ngIf=
"currentWindow.isMaximized()"
(click)=
"currentWindow.unmaximize()"
class=
"fa fa-clone"
title=
"还原"
></i>
<i
i18n
*ngIf=
"currentWindow.isMaximized()"
(click)=
"currentWindow.unmaximize()"
class=
"fa fa-clone"
i18n-title
title=
"还原"
></i>
<i
i18n
(click)=
"currentWindow.hide()"
class=
"fa fa-times"
title=
"关闭"
></i>
<i
i18n
(click)=
"currentWindow.hide()"
class=
"fa fa-times"
i18n-title
title=
"关闭"
></i>
</div>
</div>
</div>
</div>
</nav>
</nav>
...
...
app/mycard.module.ts
View file @
42c9d68c
...
@@ -24,7 +24,8 @@ import {CandyComponent} from './candy.component';
...
@@ -24,7 +24,8 @@ import {CandyComponent} from './candy.component';
],
],
bootstrap
:
[
MyCardComponent
],
bootstrap
:
[
MyCardComponent
],
providers
:
[
providers
:
[
AppsService
,
SettingsService
,
LoginService
,
DownloadService
,
{
AppsService
,
SettingsService
,
LoginService
,
DownloadService
,
{
provide
:
LOCALE_ID
,
provide
:
LOCALE_ID
,
deps
:
[
SettingsService
],
deps
:
[
SettingsService
],
useFactory
:
(
settingsService
:
SettingsService
)
=>
settingsService
.
getLocale
()
useFactory
:
(
settingsService
:
SettingsService
)
=>
settingsService
.
getLocale
()
...
...
locale/messages.en-US.xlf
View file @
42c9d68c
...
@@ -215,6 +215,11 @@
...
@@ -215,6 +215,11 @@
<source><x
id=
"INTERPOLATION"
/>
跟
<x
id=
"INTERPOLATION_1"
/>
的决斗
</source>
<source><x
id=
"INTERPOLATION"
/>
跟
<x
id=
"INTERPOLATION_1"
/>
的决斗
</source>
<target><x
id=
"INTERPOLATION"
/>
Vs.
<x
id=
"INTERPOLATION_1"
/></target>
<target><x
id=
"INTERPOLATION"
/>
Vs.
<x
id=
"INTERPOLATION_1"
/></target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"4fbedd55acdf8789c0d5bb10792a2775540c990b"
>
<source><x
id=
"INTERPOLATION"
/>
购买
</source>
<target><x
id=
"INTERPOLATION"
/>
Buy
</target>
</trans-unit>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"a8cae935472a05e1c8c9be436bb7b1bdea96a54a"
>
<trans-unit
datatype=
"html"
id=
"a8cae935472a05e1c8c9be436bb7b1bdea96a54a"
>
<source>
安装
</source>
<source>
安装
</source>
...
@@ -325,6 +330,16 @@
...
@@ -325,6 +330,16 @@
<source>
更多资料
</source>
<source>
更多资料
</source>
<target>
More Info
</target>
<target>
More Info
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"d894d6d2877894a61841bb27d0ed7a85419b58aa"
>
<source>
开发
</source>
<target>
Developer
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"502c98fe1d2359937a3be80448a1343c43eb0e82"
>
<source>
发行日期
</source>
<target>
Release Date
</target>
</trans-unit>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"63346eb53d54138db02c1713ae58f73bb1b8786f"
>
<trans-unit
datatype=
"html"
id=
"63346eb53d54138db02c1713ae58f73bb1b8786f"
>
<source>
新闻
</source>
<source>
新闻
</source>
...
@@ -425,6 +440,36 @@
...
@@ -425,6 +440,36 @@
<source>
导入到
</source>
<source>
导入到
</source>
<target>
Import to
</target>
<target>
Import to
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"446a2e3833dd7f4122a0a3f2046e7b062b54d575"
>
<source>
购买
<x
id=
"INTERPOLATION"
/></source>
<target>
Buy
<x
id=
"INTERPOLATION"
/></target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"6b296cbd1145fbf948c58a7afa5c4d200cdfd98b"
>
<source>
购买
</source>
<target>
Buy
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"ef65da47763167a418e811d9007c53b896b50479"
>
<source>
最小化
</source>
<target>
Minimize
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"a4148531ad465c2e931b7e754db36872c37d81e9"
>
<source>
取消最小化
</source>
<target>
Unminimize
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"3b5d294cb083dfe7adeef5030777e93a14b3ba25"
>
<source>
还原
</source>
<target>
Restore
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"5d721f211851b0df47f1b25a5cc0b66ba0c1d2ec"
>
<source>
最大化
</source>
<target>
Maximize
</target>
</trans-unit>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"1761e51e36b01ae1e0012914bd58aa2a741d0401"
>
<trans-unit
datatype=
"html"
id=
"1761e51e36b01ae1e0012914bd58aa2a741d0401"
>
<source>
已安装
</source>
<source>
已安装
</source>
...
@@ -470,6 +515,36 @@
...
@@ -470,6 +515,36 @@
<source>
社区
</source>
<source>
社区
</source>
<target>
Community
</target>
<target>
Community
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"a8bb0580a537d7a47ff0a2df6907b5f6acee50c6"
>
<source>
更新出错,点击重试
</source>
<target>
Download update failed, click to retry
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"a75ff3d3253e8d65f703cf2a9384fc09532a73d5"
>
<source>
正在检查更新
</source>
<target>
Checking for updates
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"21d13c0058fb50264b8e8a867dff4133861e5260"
>
<source>
正在下载更新
</source>
<target>
Downloading updates
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"abd0524ada522c2ca41fa6ac06bbc6a887828d70"
>
<source>
下载更新完成,点击安装
</source>
<target>
Update Downloaded, click to install
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"d2f3938b0b672d936a9b157211b6212d7f015c21"
>
<source>
切换用户
</source>
<target>
Logout
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"065034046fe7863f3fe1a1f68e5767cf58bed3c1"
>
<source>
关闭
</source>
<target>
Close
</target>
</trans-unit>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"9d9335d175b40b85f2b98610af517a8b7509c089"
>
<trans-unit
datatype=
"html"
id=
"9d9335d175b40b85f2b98610af517a8b7509c089"
>
<source>
MyCard 设置
</source>
<source>
MyCard 设置
</source>
...
...
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