Compare commits
No commits in common. "57c0a247c0d21b9b59c984d38fdab377bd5f44df" and "c5c0ca450b39c3988653a71129ec9739b9172e40" have entirely different histories.
57c0a247c0
...
c5c0ca450b
@ -5,7 +5,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test & build
|
- name: test & build
|
||||||
image: node:20.8.1-bookworm
|
image: node:18.16.1-bookworm
|
||||||
commands:
|
commands:
|
||||||
# - git config --global --add safe.directory "/drone/src"
|
# - git config --global --add safe.directory "/drone/src"
|
||||||
- corepack enable
|
- corepack enable
|
||||||
@ -17,7 +17,7 @@ steps:
|
|||||||
npm_config_registry: https://registry.npmmirror.com
|
npm_config_registry: https://registry.npmmirror.com
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: node:20.8.1-bookworm
|
image: node:18.16.1-bookworm
|
||||||
environment:
|
environment:
|
||||||
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
||||||
GITEA_API_KEY:
|
GITEA_API_KEY:
|
||||||
|
4
.npmrc
4
.npmrc
@ -1,3 +1,3 @@
|
|||||||
use-node-version=20.8.1
|
use-node-version=18.16.0
|
||||||
node-version=20.8.1
|
node-version=18.16.0
|
||||||
engine-strict=true
|
engine-strict=true
|
||||||
|
@ -33,7 +33,7 @@ export function AppRoot() {
|
|||||||
</Tab>
|
</Tab>
|
||||||
<Tab>
|
<Tab>
|
||||||
<Icon as={MdQuestionAnswer} mr="1" />
|
<Icon as={MdQuestionAnswer} mr="1" />
|
||||||
<chakra.span>答疑</chakra.span>
|
<chakra.span>问答</chakra.span>
|
||||||
</Tab>
|
</Tab>
|
||||||
</TabList>
|
</TabList>
|
||||||
|
|
||||||
|
@ -16,8 +16,9 @@ export function SegmentAddKeyDropdown() {
|
|||||||
ml="2"
|
ml="2"
|
||||||
borderTopLeftRadius={0}
|
borderTopLeftRadius={0}
|
||||||
borderBottomLeftRadius={0}
|
borderBottomLeftRadius={0}
|
||||||
pointerEvents="none"
|
isDisabled
|
||||||
aria-label="下拉按钮"
|
css={{ ':disabled': { opacity: 1 } }}
|
||||||
|
aria-label="示例按钮"
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
@ -18,16 +18,15 @@ test('should be able to forward request to worker client bus', async () => {
|
|||||||
vi.spyOn(bus, 'request').mockImplementation(
|
vi.spyOn(bus, 'request').mockImplementation(
|
||||||
async (actionName: DECRYPTION_WORKER_ACTION_NAME, payload: unknown): Promise<unknown> => {
|
async (actionName: DECRYPTION_WORKER_ACTION_NAME, payload: unknown): Promise<unknown> => {
|
||||||
return { actionName, payload };
|
return { actionName, payload };
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const queue = new DecryptionQueue(bus, 1);
|
const queue = new DecryptionQueue(bus, 1);
|
||||||
await expect(queue.add({ id: 'file://1', blobURI: 'blob://mock-file', options: {} })).resolves.toEqual({
|
await expect(queue.add({ id: 'file://1', blobURI: 'blob://mock-file' })).resolves.toEqual({
|
||||||
actionName: DECRYPTION_WORKER_ACTION_NAME.DECRYPT,
|
actionName: DECRYPTION_WORKER_ACTION_NAME.DECRYPT,
|
||||||
payload: {
|
payload: {
|
||||||
blobURI: 'blob://mock-file',
|
blobURI: 'blob://mock-file',
|
||||||
id: 'file://1',
|
id: 'file://1',
|
||||||
options: {},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user