修正原生壳公开主站配置
将原生壳公开主站统一为 www.genarrative.world 调整 Tauri release 直接加载线上主站并移除 frontendDist 打包 补齐创作入口配置开发代理与回归测试 同步原生壳方案文档和共享记忆
This commit is contained in:
@@ -91,7 +91,7 @@ describe('BLOCK_WEBVIEW_DOWNLOAD_SCRIPT', () => {
|
||||
});
|
||||
|
||||
test('阻断危险下载协议的窗口打开', () => {
|
||||
const opened = window.open('blob:https://app.genarrative.world/file-id');
|
||||
const opened = window.open('blob:https://www.genarrative.world/file-id');
|
||||
|
||||
expect(opened).toBeNull();
|
||||
});
|
||||
@@ -231,7 +231,7 @@ describe('TRACK_MOBILE_WEBVIEW_HISTORY_SCRIPT', () => {
|
||||
};
|
||||
|
||||
window.eval(MOBILE_WEBVIEW_BEFORE_CONTENT_SCRIPT);
|
||||
const opened = window.open('blob:https://app.genarrative.world/file-id');
|
||||
const opened = window.open('blob:https://www.genarrative.world/file-id');
|
||||
window.history.pushState(null, '', '/creation/puzzle');
|
||||
|
||||
expect(opened).toBeNull();
|
||||
@@ -248,7 +248,7 @@ describe('shouldBlockMobileWebViewDownloadUrl', () => {
|
||||
test('识别不能进入移动壳 WebView 的下载协议', () => {
|
||||
expect(
|
||||
shouldBlockMobileWebViewDownloadUrl(
|
||||
'blob:https://app.genarrative.world/file-id',
|
||||
'blob:https://www.genarrative.world/file-id',
|
||||
),
|
||||
).toBe(true);
|
||||
expect(shouldBlockMobileWebViewDownloadUrl('data:text/plain,hello')).toBe(
|
||||
@@ -259,7 +259,7 @@ describe('shouldBlockMobileWebViewDownloadUrl', () => {
|
||||
);
|
||||
expect(
|
||||
shouldBlockMobileWebViewDownloadUrl(
|
||||
'filesystem:https://app.genarrative.world/temporary/export.png',
|
||||
'filesystem:https://www.genarrative.world/temporary/export.png',
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
@@ -267,7 +267,7 @@ describe('shouldBlockMobileWebViewDownloadUrl', () => {
|
||||
test('放行普通网页和系统外链协议', () => {
|
||||
expect(
|
||||
shouldBlockMobileWebViewDownloadUrl(
|
||||
'https://app.genarrative.world/works/detail?work=PZ-1',
|
||||
'https://www.genarrative.world/works/detail?work=PZ-1',
|
||||
),
|
||||
).toBe(false);
|
||||
expect(shouldBlockMobileWebViewDownloadUrl('/creation/puzzle')).toBe(false);
|
||||
@@ -282,12 +282,12 @@ describe('shouldBlockMobileWebViewNavigationRequest', () => {
|
||||
test('在 WebView 导航前拦截下载协议', () => {
|
||||
expect(
|
||||
shouldBlockMobileWebViewNavigationRequest({
|
||||
url: 'blob:https://app.genarrative.world/file-id',
|
||||
url: 'blob:https://www.genarrative.world/file-id',
|
||||
}),
|
||||
).toBe(true);
|
||||
expect(
|
||||
shouldBlockMobileWebViewNavigationRequest({
|
||||
url: 'https://app.genarrative.world/creation/puzzle',
|
||||
url: 'https://www.genarrative.world/creation/puzzle',
|
||||
}),
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user