Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TokenVaultManagement
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jasonwai
TokenVaultManagement
Commits
bec52ba1
Commit
bec52ba1
authored
Aug 01, 2023
by
nickchen
🎨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.taipay.com.tw/jasonwai/tokenvaultmanagement
parents
a9bea75e
d3e43e56
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
141 additions
and
21 deletions
+141
-21
TokenVaultController .cs
...Management/backstage/Controllers/TokenVaultController .cs
+1
-1
ListKeys.zh.resx
...Management/backstage/Resources/Views/Key/ListKeys.zh.resx
+2
-2
List.zh.resx
...agement/backstage/Resources/Views/TokenVault/List.zh.resx
+12
-0
ListMasks.zh.resx
...nt/backstage/Resources/Views/TokenVault/ListMasks.zh.resx
+4
-4
ListKeys.cshtml
...oken Vault Management/backstage/Views/Key/ListKeys.cshtml
+3
-3
_Layout.cshtml
...en Vault Management/backstage/Views/Shared/_Layout.cshtml
+4
-0
List.cshtml
...n Vault Management/backstage/Views/TokenVault/List.cshtml
+6
-6
ListFields.cshtml
...t Management/backstage/Views/TokenVault/ListFields.cshtml
+1
-1
ListMasks.cshtml
...lt Management/backstage/Views/TokenVault/ListMasks.cshtml
+3
-3
ListUsers.cshtml
...lt Management/backstage/Views/TokenVault/ListUsers.cshtml
+1
-1
UploadLicense.cshtml
...ault Management/backstage/Views/User/UploadLicense.cshtml
+91
-0
tokenizationPlatform.css
...Management/backstage/wwwroot/css/tokenizationPlatform.css
+13
-0
No files found.
Merchant Token Vault Management/backstage/Controllers/TokenVaultController .cs
View file @
bec52ba1
...
...
@@ -1840,7 +1840,7 @@ namespace backstage.Controllers
permission
=
"Permission"
;
Fields
=
"Fields"
;
backup
=
"Backup"
;
restitute
=
"Rest
itut
e"
;
restitute
=
"Rest
or
e"
;
break
;
case
"zh"
:
permission
=
"權限"
;
...
...
Merchant Token Vault Management/backstage/Resources/Views/Key/ListKeys.zh.resx
View file @
bec52ba1
...
...
@@ -210,10 +210,10 @@
<data
name=
"Inactive"
xml:space=
"preserve"
>
<value>
未啟用
</value>
</data>
<data
name=
"Key
part
1"
xml:space=
"preserve"
>
<data
name=
"Key
Part
1"
xml:space=
"preserve"
>
<value>
第一組Key
</value>
</data>
<data
name=
"Key
part
2"
xml:space=
"preserve"
>
<data
name=
"Key
Part
2"
xml:space=
"preserve"
>
<value>
第二組Key
</value>
</data>
<data
name=
"Keys List"
xml:space=
"preserve"
>
...
...
Merchant Token Vault Management/backstage/Resources/Views/TokenVault/List.zh.resx
View file @
bec52ba1
...
...
@@ -117,6 +117,9 @@
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<data
name=
"Backup"
xml:space=
"preserve"
>
<value>
備份
</value>
</data>
<data
name=
"Cancel"
xml:space=
"preserve"
>
<value>
取消
</value>
</data>
...
...
@@ -150,6 +153,9 @@
<data
name=
"Description"
xml:space=
"preserve"
>
<value>
描述
</value>
</data>
<data
name=
"Download"
xml:space=
"preserve"
>
<value>
下載
</value>
</data>
<data
name=
"ID"
xml:space=
"preserve"
>
<value>
編號
</value>
</data>
...
...
@@ -171,6 +177,12 @@
<data
name=
"Please confirm to delete vault."
xml:space=
"preserve"
>
<value>
儲存庫刪除確認
</value>
</data>
<data
name=
"Please download the bakup file."
xml:space=
"preserve"
>
<value>
請下載備份檔
</value>
</data>
<data
name=
"Restore"
xml:space=
"preserve"
>
<value>
還原
</value>
</data>
<data
name=
"Serial number"
xml:space=
"preserve"
>
<value>
編號
</value>
</data>
...
...
Merchant Token Vault Management/backstage/Resources/Views/TokenVault/ListMasks.zh.resx
View file @
bec52ba1
...
...
@@ -171,7 +171,7 @@
<data
name=
"Delete"
xml:space=
"preserve"
>
<value>
刪除
</value>
</data>
<data
name=
"Delete
m
ask"
xml:space=
"preserve"
>
<data
name=
"Delete
M
ask"
xml:space=
"preserve"
>
<value>
刪除遮罩
</value>
</data>
<data
name=
"Description"
xml:space=
"preserve"
>
...
...
@@ -228,9 +228,6 @@
<data
name=
"Select user"
xml:space=
"preserve"
>
<value>
新增用戶
</value>
</data>
<data
name=
"Send out"
xml:space=
"preserve"
>
<value>
送出
</value>
</data>
<data
name=
"Serial number"
xml:space=
"preserve"
>
<value>
編號
</value>
</data>
...
...
@@ -240,6 +237,9 @@
<data
name=
"Status"
xml:space=
"preserve"
>
<value>
狀態
</value>
</data>
<data
name=
"Submit"
xml:space=
"preserve"
>
<value>
送出
</value>
</data>
<data
name=
"Token Vault List"
xml:space=
"preserve"
>
<value>
代碼化保險庫列表管理
</value>
</data>
...
...
Merchant Token Vault Management/backstage/Views/Key/ListKeys.cshtml
View file @
bec52ba1
...
...
@@ -158,13 +158,13 @@
</div>
<div class="hidden" id="recoverKeyForm">
<div class="form-group">
<label class="control-label">@Localizer["Key
part
1"]:</label>
<label class="control-label">@Localizer["Key
Part
1"]:</label>
<div>
<input type="text" class="form-control input-sm" id="key1">
</div>
</div>
<div class="form-group">
<label class="control-label">@Localizer["Key
part
2"]:</label>
<label class="control-label">@Localizer["Key
Part
2"]:</label>
<div>
<input type="text" class="form-control input-sm" id="key2">
</div>
...
...
@@ -241,7 +241,7 @@
-->
<h3 class="modal-title">
@*<img src="~/images/memberGo/apiKey/newapp-orange-300ppi.png">*@
@Localizer["Edit
k
ey"]
@Localizer["Edit
K
ey"]
</h3>
</div> <!--END of div "modal-header"-->
<div class="modal-body" style="padding-top:35px">
...
...
Merchant Token Vault Management/backstage/Views/Shared/_Layout.cshtml
View file @
bec52ba1
...
...
@@ -77,6 +77,10 @@
</div>
</a>
<div
class=
"dropdown-menu navbar-dropdown"
aria-labelledby=
"profileDropdown"
>
<a
class=
"dropdown-item"
asp-controller=
"User"
asp-action=
"UploadLicense"
>
<i
class=
"mdi mdi-folder-upload mr-2"
></i>
@Localizer["Upload New License File"]
</a>
<div
class=
"dropdown-divider"
></div>
<a
class=
"dropdown-item"
asp-controller=
"User"
asp-action=
"ChangePassword"
asp-route-username=
"@Context.User.Claims.FirstOrDefault(m => m.Type == "
username
").
Value
"
asp-route-returnUrl=
"@Context.Request.Path.Value"
>
<i
class=
"mdi mdi-lock-open mr-2"
></i>
@Localizer["Change Password"]
</a>
...
...
Merchant Token Vault Management/backstage/Views/TokenVault/List.cshtml
View file @
bec52ba1
...
...
@@ -55,7 +55,7 @@
<div>
<div class="rank-table">
<div class="table-responsive">
<table class="table table-striped ">
<table class="table table-striped
TBL_tokenVaultList
">
<thead>
<tr class="">
<th> @Localizer["ID"]</th>
...
...
@@ -109,14 +109,14 @@
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">
Backup
</h3>
<h3 class="modal-title">
@Localizer["Backup"]
</h3>
</div>
<div class="modal-body" style="padding-top:35px; padding-bottom: 35px">
<p class="modal-body-title">
下載備份檔到本機
</p>
<p>
下載備份檔到本機
</p>
<p class="modal-body-title"></p>
<p>
@Localizer["Please download the bakup file."]
</p>
<div class="SubmitBlock SubmitBlock_sm">
<button type="button" id="backupConfirm" class="btn btn-mainblue-solid" data-dismiss="modal" style="">@Localizer["
Confirm
"]</button>
<button type="button" id="backupConfirm" class="btn btn-mainblue-solid" data-dismiss="modal" style="">@Localizer["
Download
"]</button>
<button type="button" class="btn btn-mainblue-hollow" data-dismiss="modal" style="">@Localizer["Cancel"]</button>
</div>
</div>
...
...
@@ -135,7 +135,7 @@
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">
Restitute
</h3>
<h3 class="modal-title">
@Localizer["Restore"]
</h3>
</div>
<div class="modal-body" style="padding-top:35px; padding-bottom: 35px">
...
...
Merchant Token Vault Management/backstage/Views/TokenVault/ListFields.cshtml
View file @
bec52ba1
...
...
@@ -97,7 +97,7 @@
<div>
<div class="rank-table">
<div class="table-responsive">
<table class="table table-striped ">
<table class="table table-striped
TBL_fieldList
">
<thead>
<tr class="">
<th>@Localizer["Serial number"]</th>
...
...
Merchant Token Vault Management/backstage/Views/TokenVault/ListMasks.cshtml
View file @
bec52ba1
...
...
@@ -148,7 +148,7 @@
<button type="button" class="close" data-dismiss="modal">×</button>
-->
<h3 class="modal-title">
@Localizer["Add
m
ask"]
@Localizer["Add
M
ask"]
</h3>
</div> <!--END of div "modal-header"-->
...
...
@@ -219,7 +219,7 @@
</div>
</div>
<div class="SubmitBlock">
<button id="createMaskBtn" type="button" class="btn btn-mainblue-solid btnSubmit0"> @Localizer["S
end ou
t"]</button>
<button id="createMaskBtn" type="button" class="btn btn-mainblue-solid btnSubmit0"> @Localizer["S
ubmi
t"]</button>
<button type="button" class="btn btn-mainblue-hollow btnReset0" data-dismiss="modal"> @Localizer["Cancel"]</button>
</div>
</form>
...
...
@@ -247,7 +247,7 @@
<div class="modal-header">
<h4>
@Localizer["Delete
m
ask"]
@Localizer["Delete
M
ask"]
</h4>
</div> <!--END of div "modal-header"-->
...
...
Merchant Token Vault Management/backstage/Views/TokenVault/ListUsers.cshtml
View file @
bec52ba1
...
...
@@ -97,7 +97,7 @@
<td class="editUser">@i.default_mask_id</td>
<td>
<a data-id="@i.id" class="btn btnPermission btn-sm" data-toggle="modal" data-target="#delete-field-user">@Localizer["Remove
u
ser"]</a>
<a data-id="@i.id" class="btn btnPermission btn-sm" data-toggle="modal" data-target="#delete-field-user">@Localizer["Remove
U
ser"]</a>
</td>
</tr>
}
...
...
Merchant Token Vault Management/backstage/Views/User/UploadLicense.cshtml
0 → 100644
View file @
bec52ba1
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
@model backstage.Models.Users.UserResponse
@{
bool isAdmin = User.IsInRole("Admin");
string disabledClass = isAdmin ? "" : "disabled";
}
<div class="page-header">
<h3 class="page-title">@Localizer["Upload New License File"]</h3>
<input id="msg" hidden value="@TempData["msg"]" />
@if (TempData["isSuccess"] != null)
{
<input id="isSuccess" hidden value="@TempData["isSuccess"].ToString()" />
}
<div class="floating-msg" id="msgDiv"></div>
</div>
@section header
{
<script>
var localizationStrings = {
success: '@Localizer["成功"]',
error: '@Localizer["錯誤"]'
};
</script>
}
<div class="row">
<div class="col-lg-12 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<p class="form-title card-description">Upload File</p>
<form class="forms-sample">
<div class="row align-items-center">
<div class="col-md-8 col-lg-6 form-group0 mt-1 mb-1">
<div class="input-group input-group-lg">
<div class="custom-file">
<input type="file" class="form-control custom-file-input" id="uploadLicenseFile" accept="">
<label class="custom-file-label" id="uploadLicenseFileLabel" for="uploadLicenseFile">Choose file</label>
</div>
</div>
</div>
<div class="col-md-4 col-lg-6 form-group0">
<div class="SubmitBlock0 SubmitBlock_sm0">
<button type="button" id="" class="btn btn-primary">Upload</button>
</div>
</div>
</div>
</form>
<p class="form-title card-description mt-5">License Info</p>
<div class="table-responsive">
<table class="table table-striped table-hover0 table-bordered TBL_licenseInfo">
<tbody>
<tr>
<th style=" border-left: solid 1px #d9d9d9;">Product Name</th>
<td>Token Vault</td>
</tr>
<tr>
<th>Expireation Date</th>
<td>2033-07-21 17:00:30</td>
</tr>
<tr>
<th>Product Max Version</th>
<td>1.0</td>
</tr>
<tr>
<th>Department</th>
<td>Taipay</td>
</tr>
<tr>
<th>Creation Date</th>
<td>2023-07-17 17:49:30</td>
</tr>
<tr>
<th>Name</th>
<td>API License</td>
</tr>
<tr>
<th style=" border-right: solid 0.1px #d9d9d9;">Other</th>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
Merchant Token Vault Management/backstage/wwwroot/css/tokenizationPlatform.css
View file @
bec52ba1
...
...
@@ -4055,8 +4055,21 @@ TBL_keysList tbody td {
margin-bottom
:
10px
;
}
.TBL_tokenVaultList
a
{
color
:
#337ab7
!important
;
}
.TBL_fieldList
a
{
color
:
#337ab7
!important
;
}
.TBL_licenseInfo
tbody
th
{
background
:
#4c6482
;
color
:
#fff
;
width
:
15%
;
}
...
...
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