Compare commits

...

4 Commits

Author SHA1 Message Date
57c0a247c0 test: fix type for test
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-19 02:39:30 +01:00
c5910c088c chore: text update for faq 2023-10-19 02:16:21 +01:00
3f09d197af chore: readme update 2023-10-19 02:16:12 +01:00
fbb2257e28 chore: prefer node v20.8.1 over v18 2023-10-19 02:05:23 +01:00
5 changed files with 10 additions and 10 deletions

View File

@ -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
View File

@ -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

View File

@ -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>

View File

@ -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>
); );

View File

@ -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: {},
}, },
}); });
}); });