feat: Initial clean release of CHM
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
这个提交包含在:
@@ -0,0 +1,45 @@
|
||||
import * as React from 'react';
|
||||
import Button from '../../gui/Button/Button';
|
||||
import { _ } from '@joplin/lib/locale';
|
||||
import { ButtonSpec } from '@joplin/lib/services/plugins/api/types';
|
||||
import styled from 'styled-components';
|
||||
const { space } = require('styled-system');
|
||||
|
||||
interface Props {
|
||||
buttons: ButtonSpec[];
|
||||
}
|
||||
|
||||
|
||||
const StyledButton = styled(Button)`${space}`;
|
||||
|
||||
function buttonTitle(b: ButtonSpec) {
|
||||
if (b.title) return b.title;
|
||||
|
||||
const defaultTitles: Record<string, string> = {
|
||||
'ok': _('OK'),
|
||||
'cancel': _('Cancel'),
|
||||
'yes': _('Yes'),
|
||||
'no': _('No'),
|
||||
'close': _('Close'),
|
||||
};
|
||||
|
||||
return defaultTitles[b.id] ? defaultTitles[b.id] : b.id;
|
||||
}
|
||||
|
||||
export default function UserWebviewDialogButtonBar(props: Props) {
|
||||
function renderButtons() {
|
||||
const output = [];
|
||||
for (let i = 0; i < props.buttons.length; i++) {
|
||||
const b = props.buttons[i];
|
||||
const marginRight = i !== props.buttons.length - 1 ? '6px' : '0px';
|
||||
output.push(<StyledButton key={b.id} onClick={b.onClick} title={buttonTitle(b)} mr={marginRight}/>);
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='user-dialog-button-bar'>
|
||||
{renderButtons()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户