Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add export to png & fix bugs #153

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

hetao92
Copy link
Contributor

@hetao92 hetao92 commented Mar 22, 2022

No description provided.

@hetao92 hetao92 force-pushed the hetao-dev branch 3 times, most recently from a8eff23 to f34788b Compare March 23, 2022 09:40
Comment on lines 27 to 45
if(version?.startsWith('v2')) {
return [
{
required: true,
message: intl.get('formRules.nameRequired'),
},
{
pattern: NAME_REGEX,
message: intl.get('formRules.nameValidate'),
},
];
} else {
return [
{
required: true,
message: intl.get('formRules.nameRequired'),
},
];
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const fnList = [
  {
    required: true,
    message: intl.get('formRules.nameRequired'),
  },
];
const v2FnList = [
  {
    pattern: NAME_REGEX,
    message: intl.get('formRules.nameValidate'),
  },
];

return version?.startsWith('v2') ? [...fnList, ...v2FnList] : fnList;

} catch (err) {
console.log('err', err);
} finally {
await setLoading(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary await

<TextArea autoSize={true} disabled={true} />
<TextArea className="config-area" autoSize={true} disabled={true} />
</Form.Item>
<Form.Item noStyle={true}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<Form.Item noStyle>

fix: fix version

fix: code review

mod: add template file

fix: fix memory problem

mod: code review

mod: code review
@huaxiabuluo huaxiabuluo merged commit 9474879 into vesoft-inc:v3.3.0-dev Mar 24, 2022
@hetao92 hetao92 deleted the hetao-dev branch March 24, 2022 06:37
hetao92 added a commit to hetao92/nebula-studio that referenced this pull request Mar 31, 2022
fix: fix version
mod: add template file
fix: fix memory problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants