Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: added button to copy environment Id #290

Merged
merged 2 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
<ng-template #iconTplEnv>
<i nz-icon nzType="question-circle" nzTheme="fill" style="color: #FAAD14;"></i>
</ng-template>
<nz-divider nzType="vertical"></nz-divider>
<a (click)="copyText(env.id)" class="copy-id">
<span style="color: #717D8A;" i18n="@@org.project.copy-id">Copy Id</span>
<i style="color: #717D8A;" nz-icon i18n-nz-tooltip="@@org.project.env-id-copy-description" nz-tooltip="Copy Id of the environment, the Id is needed when calling FeatBit REST API" nzType="icons:icon-info-outline"></i>
</a>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@
nz-divider {
top: 4px;
}

.copy-id {
display: flex;
gap: 4px;
justify-content: flex-start;
align-items: center;
}
}
}
}
Expand Down
38 changes: 26 additions & 12 deletions modules/front-end/src/locale/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">131</context>
<context context-type="linenumber">136</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/segments/details/setting/setting.component.html</context>
Expand Down Expand Up @@ -1228,7 +1228,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">116</context>
<context context-type="linenumber">121</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.envUpdateSuccess" datatype="html">
Expand Down Expand Up @@ -2104,7 +2104,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">96</context>
<context context-type="linenumber">101</context>
</context-group>
</trans-unit>
<trans-unit id="common.projects" datatype="html">
Expand Down Expand Up @@ -2855,7 +2855,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">106</context>
<context context-type="linenumber">111</context>
</context-group>
</trans-unit>
<trans-unit id="common.remove" datatype="html">
Expand Down Expand Up @@ -2942,7 +2942,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">110</context>
<context context-type="linenumber">115</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/segments/index/index.component.html</context>
Expand Down Expand Up @@ -4875,7 +4875,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">132</context>
<context context-type="linenumber">137</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/segments/index/index.component.html</context>
Expand Down Expand Up @@ -5950,42 +5950,56 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">101</context>
<context context-type="linenumber">106</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.copy-id" datatype="html">
<source>Copy Id</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.env-id-copy-description" datatype="html">
<source>Copy Id of the environment, the Id is needed when calling FeatBit REST API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">91</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.secret-name" datatype="html">
<source>The name of the secret</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">136</context>
<context context-type="linenumber">141</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.type-description" datatype="html">
<source>The secret would be used by a client side or server side SDK</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">146</context>
<context context-type="linenumber">151</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.secret-type" datatype="html">
<source>Type</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">146</context>
<context context-type="linenumber">151</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.secret-type-client-side-sdk" datatype="html">
<source>Client Side SDK</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">149</context>
<context context-type="linenumber">154</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.secret-type-server-side-sdk" datatype="html">
<source>Server Side SDK</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">150</context>
<context context-type="linenumber">155</context>
</context-group>
</trans-unit>
<trans-unit id="org.project.env-remove-success" datatype="html">
Expand Down
40 changes: 28 additions & 12 deletions modules/front-end/src/locale/messages.zh.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">131</context>
<context context-type="linenumber">136</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/segments/details/setting/setting.component.html</context>
Expand Down Expand Up @@ -1289,7 +1289,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">116</context>
<context context-type="linenumber">121</context>
</context-group>
<target>添加环境</target>
</trans-unit>
Expand Down Expand Up @@ -2241,7 +2241,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">96</context>
<context context-type="linenumber">101</context>
</context-group>
<target>当前选项</target>
</trans-unit>
Expand Down Expand Up @@ -3057,7 +3057,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">106</context>
<context context-type="linenumber">111</context>
</context-group>
<target>删除后不可恢复,确定要删除么?</target>
</trans-unit>
Expand Down Expand Up @@ -3145,7 +3145,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">110</context>
<context context-type="linenumber">115</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/segments/index/index.component.html</context>
Expand Down Expand Up @@ -5305,7 +5305,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">132</context>
<context context-type="linenumber">137</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/segments/index/index.component.html</context>
Expand Down Expand Up @@ -6521,47 +6521,63 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">101</context>
<context context-type="linenumber">106</context>
</context-group>
<target>编辑</target>
</trans-unit>
<trans-unit id="org.project.copy-id" datatype="html">
<source>Copy Id</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">90</context>
</context-group>
<target>复制 Id</target>
</trans-unit>
<trans-unit id="org.project.env-id-copy-description" datatype="html">
<source>Copy Id of the environment, the Id is needed when calling FeatBit REST API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">91</context>
</context-group>
<target>复制环境 Id, 当调用 FeatBit REST API 时需要提供此 Id</target>
</trans-unit>
<trans-unit id="org.project.secret-name" datatype="html">
<source>The name of the secret</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">136</context>
<context context-type="linenumber">141</context>
</context-group>
<target>秘钥名称</target>
</trans-unit>
<trans-unit id="org.project.type-description" datatype="html">
<source>The secret would be used by a client side or server side SDK</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">146</context>
<context context-type="linenumber">151</context>
</context-group>
<target>该秘钥将被用于客户端还是服务端 SDK</target>
</trans-unit>
<trans-unit id="org.project.secret-type" datatype="html">
<source>Type</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">146</context>
<context context-type="linenumber">151</context>
</context-group>
<target>类型</target>
</trans-unit>
<trans-unit id="org.project.secret-type-client-side-sdk" datatype="html">
<source>Client Side SDK</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">149</context>
<context context-type="linenumber">154</context>
</context-group>
<target>客户端 SDK</target>
</trans-unit>
<trans-unit id="org.project.secret-type-server-side-sdk" datatype="html">
<source>Server Side SDK</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/features/safe/organizations/project/project.component.html</context>
<context context-type="linenumber">150</context>
<context context-type="linenumber">155</context>
</context-group>
<target>服务端 SDK</target>
</trans-unit>
Expand Down