Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
del notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lijiao authored and Lijiao committed Feb 4, 2021
1 parent 84b9ff2 commit 35ce9f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
30 changes: 0 additions & 30 deletions src/webportal/src/app/user/fabric/user-profile/ssh-list-dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,36 +62,6 @@ const SSHListDialog = ({ sshKeys, onDismiss, onAddPublickeys }) => {
onDismiss();
}
}

// if (title.trim() === '') {
// setInputTitleError('Please input title');
// } else if (
// sshKeys !== undefined &&
// sshKeys.filter(item => item.title === title.trim()).length > 0
// ) {
// setInputTitleError('This title already exists, please re-input');
// } else if (
// value.trim() === '' ||
// !value.trim().match(/^ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3}.*$/)
// ) {
// setInputValueError(
// 'Please input correct SSH Public key, it should be starting with ssh-rsa.',
// );
// } else {
// setProcessing(true);
// try {
// await onAddPublickeys({
// title: title.trim(),
// value: value.trim(),
// time: new Date().getTime(),
// });
// } catch (error) {
// setError(error.message);
// } finally {
// setProcessing(false);
// onDismiss();
// }
// }
};

return (
Expand Down
14 changes: 0 additions & 14 deletions src/webportal/src/app/user/fabric/user-profile/ssh-list.jsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
// to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import c from 'classnames';
import React, { useState } from 'react';
Expand Down

0 comments on commit 35ce9f5

Please sign in to comment.