Skip to content

Commit

Permalink
fix(websocket-test): leave modal tips every time
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Apr 3, 2023
1 parent fadc79a commit 4bb56e3
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 52 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
# cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
echo "${{ secrets.NOTARIZE_JS }}" > scripts/notarize.js
yarn release
yarn upload
# clean up keychain and provisioning profile
security delete-keychain $RUNNER_TEMP/app-signing.keychain-db
Expand All @@ -80,5 +81,6 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
yarn release
yarn upload
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"build:win:noSign": "npm run clear:electron:tsc&&npm run electron:tsc && npx esno scripts/buildNoSign.ts",
"electron:build:browser": "yarn workspace postcat-web run build",
"electron:static": "npm run electron:tsc && electron .",
"release": "npm-run-all -s electron:build:browser electron:tsc && npx esno scripts/build.ts --publish=always && node scripts/upload.js",
"release": "npm-run-all -s electron:build:browser electron:tsc && npx esno scripts/build.ts --publish=always",
"upload":"node scripts/upload.js",
"test": "npm-run-all --serial test:*",
"e2e": "cd test/e2e&&npx playwright test -c playwright.config.ts",
"test:e2e": "yarn e2e",
Expand Down
1 change: 1 addition & 0 deletions scripts/deployWindows.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ EOF
`,
'yarn install',
'yarn release',
`yarn upload`,
`nvm use ${originNodeVersion}`,
'echo Windows 打包发布完成!'
].join('\r\n')
Expand Down
38 changes: 19 additions & 19 deletions src/browser/locale/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">328</context>
<context context-type="linenumber">330</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/setting/project-setting.component.ts</context>
Expand Down Expand Up @@ -1692,11 +1692,11 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">137</context>
<context context-type="linenumber">135</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/store/api-effect.service.ts</context>
<context context-type="linenumber">249</context>
<context context-type="linenumber">254</context>
</context-group>
</trans-unit>
<trans-unit id="3760759931647245335" datatype="html">
Expand All @@ -1707,15 +1707,15 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">140</context>
<context context-type="linenumber">138</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/store/api-effect.service.ts</context>
<context context-type="linenumber">204</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/store/api-effect.service.ts</context>
<context context-type="linenumber">252</context>
<context context-type="linenumber">257</context>
</context-group>
</trans-unit>
<trans-unit id="1075865176616456400" datatype="html">
Expand Down Expand Up @@ -1918,7 +1918,7 @@
<context context-type="linenumber">39</context>
</context-group>
</trans-unit>
<trans-unit id="AddGroup" datatype="html">
<trans-unit id="NewGroupTitle" datatype="html">
<source>New Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/api-tab.service.ts</context>
Expand Down Expand Up @@ -1965,15 +1965,15 @@
<context context-type="linenumber">248</context>
</context-group>
</trans-unit>
<trans-unit id="238943392198923505" datatype="html">
<trans-unit id="NewMockTitle" datatype="html">
<source>New Mock</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/api-tab.service.ts</context>
<context context-type="linenumber">65</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">113</context>
<context context-type="linenumber">111</context>
</context-group>
</trans-unit>
<trans-unit id="5968366500418000730" datatype="html">
Expand Down Expand Up @@ -2082,7 +2082,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">200</context>
<context context-type="linenumber">207</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/setting/project-setting.component.ts</context>
Expand All @@ -2101,7 +2101,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">124</context>
<context context-type="linenumber">122</context>
</context-group>
</trans-unit>
<trans-unit id="5719912962272225542" datatype="html">
Expand All @@ -2120,7 +2120,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">127</context>
<context context-type="linenumber">125</context>
</context-group>
</trans-unit>
<trans-unit id="6112087277983123757" datatype="html">
Expand Down Expand Up @@ -2387,7 +2387,7 @@
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4150099050666823002" datatype="html">
<trans-unit id="AddGroup" datatype="html">
<source>New Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/components/group/api-group-tree.component.html</context>
Expand Down Expand Up @@ -3107,21 +3107,21 @@
<source>Postcat Client is required to use Mock.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">59</context>
<context context-type="linenumber">60</context>
</context-group>
</trans-unit>
<trans-unit id="3093336489628866803" datatype="html">
<source>Use Client</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">60</context>
<context context-type="linenumber">61</context>
</context-group>
</trans-unit>
<trans-unit id="1707787219287117667" datatype="html">
<source>No change in data</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">177</context>
<context context-type="linenumber">184</context>
</context-group>
</trans-unit>
<trans-unit id="9142685431369791033" datatype="html">
Expand Down Expand Up @@ -3465,7 +3465,7 @@
If the current test URL is a local API, please download the desktop and re-initiate the test.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/service/test-server/test-server.service.ts</context>
<context context-type="linenumber">145</context>
<context context-type="linenumber">150</context>
</context-group>
</trans-unit>
<trans-unit id="1555979633549170381" datatype="html">
Expand Down Expand Up @@ -3567,21 +3567,21 @@ If the current test URL is a local API, please download the desktop and re-initi
<source>Do you want to leave the page?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">323</context>
<context context-type="linenumber">325</context>
</context-group>
</trans-unit>
<trans-unit id="3828705763082853823" datatype="html">
<source>After leaving, the current long connection is no longer maintained, whether to confirm to leave?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">324</context>
<context context-type="linenumber">326</context>
</context-group>
</trans-unit>
<trans-unit id="2273088133016853024" datatype="html">
<source>Leave</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">336</context>
<context context-type="linenumber">338</context>
</context-group>
</trans-unit>
<trans-unit id="4157564596155275219" datatype="html">
Expand Down
42 changes: 21 additions & 21 deletions src/browser/locale/messages.zh.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">328</context>
<context context-type="linenumber">330</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/setting/project-setting.component.ts</context>
Expand Down Expand Up @@ -1884,11 +1884,11 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">137</context>
<context context-type="linenumber">135</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/store/api-effect.service.ts</context>
<context context-type="linenumber">249</context>
<context context-type="linenumber">254</context>
</context-group>
<target state="translated">删除失败</target>
</trans-unit>
Expand All @@ -1900,15 +1900,15 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">140</context>
<context context-type="linenumber">138</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/store/api-effect.service.ts</context>
<context context-type="linenumber">204</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/store/api-effect.service.ts</context>
<context context-type="linenumber">252</context>
<context context-type="linenumber">257</context>
</context-group>
<target state="translated">删除成功</target>
</trans-unit>
Expand Down Expand Up @@ -2132,7 +2132,7 @@
</context-group>
<target state="translated">新建环境</target>
</trans-unit>
<trans-unit id="AddGroup" datatype="html">
<trans-unit id="NewGroupTitle" datatype="html">
<source>New Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/api-tab.service.ts</context>
Expand Down Expand Up @@ -2168,7 +2168,7 @@
</context-group>
<target state="translated">测试 Websocket</target>
</trans-unit>
<trans-unit id="5342917002778887163" datatype="html">
<trans-unit id="5342917002778887163" datatype="html" approved="yes">
<source>New Case</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/api-tab.service.ts</context>
Expand All @@ -2182,17 +2182,17 @@
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/test/api-test.component.ts</context>
<context context-type="linenumber">248</context>
</context-group>
<target state="translated">新建用例</target>
<target state="final">新建用例</target>
</trans-unit>
<trans-unit id="238943392198923505" datatype="html">
<trans-unit id="NewMockTitle" datatype="html">
<source>New Mock</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/api-tab.service.ts</context>
<context context-type="linenumber">65</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">113</context>
<context context-type="linenumber">111</context>
</context-group>
<target state="translated">新建 Mock</target>
</trans-unit>
Expand Down Expand Up @@ -2312,7 +2312,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">200</context>
<context context-type="linenumber">207</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/setting/project-setting.component.ts</context>
Expand All @@ -2332,7 +2332,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">124</context>
<context context-type="linenumber">122</context>
</context-group>
<target state="translated">添加失败</target>
</trans-unit>
Expand All @@ -2352,7 +2352,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/api-mock.service.ts</context>
<context context-type="linenumber">127</context>
<context context-type="linenumber">125</context>
</context-group>
<target state="translated">添加成功</target>
</trans-unit>
Expand Down Expand Up @@ -2652,7 +2652,7 @@
</context-group>
<target state="translated"> 新建 API </target>
</trans-unit>
<trans-unit id="4150099050666823002" datatype="html">
<trans-unit id="AddGroup" datatype="html">
<source>New Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/components/group/api-group-tree.component.html</context>
Expand Down Expand Up @@ -3453,23 +3453,23 @@
<source>Postcat Client is required to use Mock.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">59</context>
<context context-type="linenumber">60</context>
</context-group>
<target state="translated">Mock 需要下载 Postcat 客户端.</target>
</trans-unit>
<trans-unit id="3093336489628866803" datatype="html">
<source>Use Client</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">60</context>
<context context-type="linenumber">61</context>
</context-group>
<target state="translated">使用客户端</target>
</trans-unit>
<trans-unit id="1707787219287117667" datatype="html">
<source>No change in data</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/http/mock/mock.component.ts</context>
<context context-type="linenumber">177</context>
<context context-type="linenumber">184</context>
</context-group>
<target state="translated">数据无变化</target>
</trans-unit>
Expand Down Expand Up @@ -3854,7 +3854,7 @@
If the current test URL is a local API, please download the desktop and re-initiate the test.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/service/test-server/test-server.service.ts</context>
<context context-type="linenumber">145</context>
<context context-type="linenumber">150</context>
</context-group>
<target state="translated">服务连接失败。
当前正在使用服务器测试,如果当前测试 URL 为 本地 API,请下载桌面端后重新发起测试。</target>
Expand Down Expand Up @@ -3971,23 +3971,23 @@ If the current test URL is a local API, please download the desktop and re-initi
<source>Do you want to leave the page?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">323</context>
<context context-type="linenumber">325</context>
</context-group>
<target state="translated">你想要离开当前页面吗?</target>
</trans-unit>
<trans-unit id="3828705763082853823" datatype="html">
<source>After leaving, the current long connection is no longer maintained, whether to confirm to leave?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">324</context>
<context context-type="linenumber">326</context>
</context-group>
<target state="translated">当前的长连接将会断开,是否确认离开?</target>
</trans-unit>
<trans-unit id="2273088133016853024" datatype="html">
<source>Leave</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/workspace/project/api/websocket/websocket.component.ts</context>
<context context-type="linenumber">336</context>
<context context-type="linenumber">338</context>
</context-group>
<target state="translated">离开</target>
</trans-unit>
Expand Down
Loading

0 comments on commit 4bb56e3

Please sign in to comment.