Compare commits
4 Commits
c5c0ca450b
...
57c0a247c0
Author | SHA1 | Date | |
---|---|---|---|
57c0a247c0 | |||
c5910c088c | |||
3f09d197af | |||
fbb2257e28 |
@ -5,7 +5,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test & build
|
- name: test & build
|
||||||
image: node:18.16.1-bookworm
|
image: node:20.8.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:18.16.1-bookworm
|
image: node:20.8.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=18.16.0
|
use-node-version=20.8.1
|
||||||
node-version=18.16.0
|
node-version=20.8.1
|
||||||
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,9 +16,8 @@ export function SegmentAddKeyDropdown() {
|
|||||||
ml="2"
|
ml="2"
|
||||||
borderTopLeftRadius={0}
|
borderTopLeftRadius={0}
|
||||||
borderBottomLeftRadius={0}
|
borderBottomLeftRadius={0}
|
||||||
isDisabled
|
pointerEvents="none"
|
||||||
css={{ ':disabled': { opacity: 1 } }}
|
aria-label="下拉按钮"
|
||||||
aria-label="示例按钮"
|
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
@ -18,15 +18,16 @@ 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' })).resolves.toEqual({
|
await expect(queue.add({ id: 'file://1', blobURI: 'blob://mock-file', options: {} })).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