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
27e1abca
Commit
27e1abca
authored
Aug 04, 2023
by
nickchen
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up: license命名
parent
c86951d9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
152 additions
and
18 deletions
+152
-18
UserController.cs
... Vault Management/backstage/Controllers/UserController.cs
+1
-1
_layout.zh.resx
...nagement/backstage/Resources/Views/Shared/_layout.zh.resx
+3
-0
LicenseInfo.zh.resx
...gement/backstage/Resources/Views/User/LicenseInfo.zh.resx
+123
-0
TokenVault_NSECURED.csproj
...ken Vault Management/backstage/TokenVault_NSECURED.csproj
+6
-0
_Layout.cshtml
...en Vault Management/backstage/Views/Shared/_Layout.cshtml
+6
-4
LicenseInfo.cshtml
... Vault Management/backstage/Views/User/LicenseInfo.cshtml
+13
-13
No files found.
Merchant Token Vault Management/backstage/Controllers/UserController.cs
View file @
27e1abca
...
...
@@ -1874,7 +1874,7 @@ namespace backstage.Controllers
[
Authorize
(
Policy
=
"AdminOnly"
)]
[
HttpGet
]
public
async
Task
<
IActionResult
>
UploadLicense
()
public
async
Task
<
IActionResult
>
LicenseInfo
()
{
var
url
=
_config
[
"IP"
]
+
"/license/get"
;
var
httpMethod
=
HttpMethod
.
Post
;
...
...
Merchant Token Vault Management/backstage/Resources/Views/Shared/_layout.zh.resx
View file @
27e1abca
...
...
@@ -126,6 +126,9 @@
<data
name=
"Keys"
xml:space=
"preserve"
>
<value>
金鑰管理
</value>
</data>
<data
name=
"License Information"
xml:space=
"preserve"
>
<value>
授權資訊
</value>
</data>
<data
name=
"Login"
xml:space=
"preserve"
>
<value>
登入
</value>
</data>
...
...
Merchant Token Vault Management/backstage/Resources/Views/User/LicenseInfo.zh.resx
0 → 100644
View file @
27e1abca
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema
id=
"root"
xmlns=
""
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:msdata=
"urn:schemas-microsoft-com:xml-msdata"
>
<xsd:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
use=
"required"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"data"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
<xsd:element
name=
"comment"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"2"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"resheader"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader
name=
"resmimetype"
>
<value>
text/microsoft-resx
</value>
</resheader>
<resheader
name=
"version"
>
<value>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<data
name=
"string"
xml:space=
"preserve"
>
<value
/>
</data>
</root>
\ No newline at end of file
Merchant Token Vault Management/backstage/TokenVault_NSECURED.csproj
View file @
27e1abca
...
...
@@ -178,6 +178,12 @@
<Folder Include="wwwroot\lib\fonts\bootstrap\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources\Views\User\ListDepartments.zh.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="" appsettings_1production_1json__JsonSchema="" properties_4launchsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
</Project>
Merchant Token Vault Management/backstage/Views/Shared/_Layout.cshtml
View file @
27e1abca
...
...
@@ -77,10 +77,8 @@
</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>
...
...
@@ -96,6 +94,10 @@
<i
class=
"mdi mdi-logout mr-2 text-danger"
></i>
@Localizer["Logout"]
</a>
<div
class=
"dropdown-divider"
></div>
<a
class=
"dropdown-item"
asp-controller=
"User"
asp-action=
"LicenseInfo"
>
<i
class=
"mdi mdi-folder-upload mr-2"
></i>
@Localizer["License Information"]
</a>
<div
class=
"dropdown-divider"
></div>
<div
class=
"versionNo"
>
@Localizer["version"]: v2.39
</div>
...
...
Merchant Token Vault Management/backstage/Views/User/
UploadLicense
.cshtml
→
Merchant Token Vault Management/backstage/Views/User/
LicenseInfo
.cshtml
View file @
27e1abca
...
...
@@ -7,7 +7,7 @@
}
<div class="page-header">
<h3 class="page-title">@Localizer["
Upload New License File
"]</h3>
<h3 class="page-title">@Localizer["
License Information
"]</h3>
<input id="msg" hidden value="@TempData["msg"]" />
@if (TempData["isSuccess"] != null)
{
...
...
@@ -29,57 +29,57 @@
<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>
<p class="form-title card-description">
@Localizer["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>
<label class="custom-file-label" id="uploadLicenseFileLabel" for="uploadLicenseFile">
@Localizer["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="Upload" class="btn btn-primary">
Upload
</button>
<button type="button" id="Upload" class="btn btn-primary">
@Localizer["Upload"]
</button>
</div>
</div>
</div>
</form>
<p class="form-title card-description mt-5">
License Info
</p>
<p class="form-title card-description mt-5">
@Localizer["License Information"]
</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>
<th style=" border-left: solid 1px #d9d9d9;">
@Localizer["Product Name"]
</th>
<td>@Model.Product_name</td>
</tr>
<tr>
<th>Expireation Date
</th>
<th>@Localizer["Expireation Date"]
</th>
<td>@Model.Expiration_date</td>
</tr>
<tr>
<th>Product Max Version
</th>
<th>@Localizer["Product Max Version"]
</th>
<td>@Model.Product_max_version</td>
</tr>
<tr>
<th>Department
</th>
<th>@Localizer["Customer"]
</th>
<td>@Model.Department</td>
</tr>
<tr>
<th>Creation Date
</th>
<th>@Localizer["Creation Date"]
</th>
<td>@Model.Creation_date</td>
</tr>
<tr>
<th>Name
</th>
<th>@Localizer["Name"]
</th>
<td>@Model.Name</td>
</tr>
<tr>
<
!--<
tr>
<th style=" border-right: solid 0.1px #d9d9d9;">Other</th>
<td>@Model.Other</td>
</tr
>
</tr>--
>
</tbody>
</table>
</div>
...
...
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