From 8e17efb9c6e1b460906bc0066901f232e2d6e8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 9 Sep 2021 09:34:51 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Head/Header.js | 55 +++++++---- src/forge/Head/header.scss | 93 +++++++++++++++---- src/forge/SecuritySetting/Index.jsx | 13 ++- .../SecuritySetting/notice/manager/Index.jsx | 21 +++-- .../SecuritySetting/notice/myNotice/Index.jsx | 75 ++++++++------- .../notice/myNotice/Index.scss | 47 ++++++---- 6 files changed, 206 insertions(+), 98 deletions(-) diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js index 1dcfdbeae..9197f6915 100644 --- a/src/forge/Head/Header.js +++ b/src/forge/Head/Header.js @@ -13,6 +13,8 @@ import '../../modules/tpm/TPMIndex.css'; import CheckProfile from '../Component/ProfileModal/Profile'; import './header.scss'; +import '../SecuritySetting/notice/myNotice/Index.scss' +import NoticeContent from './NoticeContent'; const $ = window.$ // TODO 这部分脚本从公共脚本中直接调用 const { Search } = Input; @@ -47,6 +49,7 @@ class NewHeader extends Component { settings: null, visiblemyss: false, openSearch:false, + noticeType:"0", } } componentDidMount() { @@ -256,20 +259,38 @@ class NewHeader extends Component { ) } + click = (e) =>{ + this.setState({ + noticeType: e.key, + }) + } + messageList=()=>{ + let { noticeType } = this.state; return(
- - 系统通知 - 私信 - @我 - -
- aaa +
+ + 系统通知 + 私信 + @我 +
-
+
+ + + + + + + + + + +
+
全部消息 - 标记为已读 + 所有{noticeType==="0"?"系统消息":noticeType==="1"?"私信":"@我"}一键已读
) @@ -457,14 +478,14 @@ class NewHeader extends Component { {/* {current_user && current_user.login && notice_url ? */} {current_user && current_user.login ? - - - - - - - - :"" + + + + + + + + : "" }
{!user || (user && !user.login) ? diff --git a/src/forge/Head/header.scss b/src/forge/Head/header.scss index 7831788c8..48de6c2ac 100644 --- a/src/forge/Head/header.scss +++ b/src/forge/Head/header.scss @@ -27,21 +27,6 @@ margin-left: 15px; } -.messageHoverDiv{ - padding: 20px 17px 13px; - width: 386px; - min-height: 294px; - background: #FFFFFF; - box-shadow: 0px 4px 8px 2px rgba(212,212,212,0.5); - border-radius: 4px; - border: 1px solid red; - - .buttom{ - display: flex; - justify-content: space-between; - } -} - .currentMenu{ width: 120px; text-align: center; @@ -142,4 +127,80 @@ width: 110px; text-align: right; } -} \ No newline at end of file +} + +//popover小尖尖 +.ant-popover-arrow{ + display: none; +} + +//popover框 +.ant-popover-inner-content { + width: 386px; + height: 446px; + box-shadow: 0px 4px 8px 2px rgba(212, 212, 212, 0.5); + border-radius: 4px; + margin-top: -10px; +} +.hoverNotice-head>.ant-menu-horizontal { + border-bottom: 1px solid #e8e8e8 !important; +} + +.hoverNotice-head .ant-badge{ + font-size: 14px !important; +} + +.hoverNotice-body{ + height: 342px; + overflow-y: scroll; +} + +.hoverNotice-buttom{ + display: flex; + justify-content: space-between; + margin-top: 12px; + + a{ + color: #466AFF; + } +} + +.noticeCont{ + display: flex; + padding:12px 10px 10px 0; + + i{ + font-size: 16px !important; + margin-right: 5px; + } + + .text{ + position: relative; + max-height: 48px; + color:#333333; + .boldSpan{ + font-weight: 600; + } + + .timeSpan{ + position: absolute; + right: 0px; + font-size: 12px; + color: #666666; + } + } +} + +::-webkit-scrollbar { + width: 5px; /*对垂直流动条有效*/ +} +/*定义滑块颜色、内阴影及圆角*/ +::-webkit-scrollbar-thumb { + border-radius: 6px; + box-shadow: inset 0 0 6px #FFF; + background-color: #D4D4D4; +} +::-webkit-scrollbar-track { + box-shadow: inset 0 0 6px #fff; + background-color: #FFF; +} diff --git a/src/forge/SecuritySetting/Index.jsx b/src/forge/SecuritySetting/Index.jsx index edbd763f3..550f6f65e 100644 --- a/src/forge/SecuritySetting/Index.jsx +++ b/src/forge/SecuritySetting/Index.jsx @@ -36,6 +36,12 @@ const SSHIndex = Loadable({ loader: () => import("./sub/SSH"), loading: Loading, }); + +const PrivateLetter = Loadable({ + loader: () => import("./notice/privateLetter/Index"), + loading: Loading, +}); + function Index(props){ const { current_user } = props; const { pathname } = props.location; @@ -96,12 +102,17 @@ function Index(props){ )} > + ( + + )} + >
- ) } diff --git a/src/forge/SecuritySetting/notice/manager/Index.jsx b/src/forge/SecuritySetting/notice/manager/Index.jsx index 94bac3d22..ea64a4393 100644 --- a/src/forge/SecuritySetting/notice/manager/Index.jsx +++ b/src/forge/SecuritySetting/notice/manager/Index.jsx @@ -1,3 +1,4 @@ +import { Button, Checkbox } from "antd"; import React from "react"; import './Index.scss'; @@ -16,18 +17,18 @@ function NoticeManager(props){
易修状态变更
- - + 站内信 + 邮件
易修截止日期到达最后一天
- - + 站内信 + 邮件
合并请求状态变更
- - + 站内信 + 邮件
@@ -35,13 +36,13 @@ function NoticeManager(props){
被关注
- - + 站内信 + 邮件
被点赞
- - + 站内信 + 邮件
diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.jsx b/src/forge/SecuritySetting/notice/myNotice/Index.jsx index 5a9bfff5d..0989eb1e3 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.jsx +++ b/src/forge/SecuritySetting/notice/myNotice/Index.jsx @@ -1,10 +1,11 @@ import React, { useState, useEffect } from 'react'; import { Badge, Button, Menu } from 'antd'; import './Index.scss'; +import DelModal from '../../../Wiki/components/ModalFun'; function MyNotice(props) { - const [noticeType, setNoticeType] = useState("2"); + const [noticeType, setNoticeType] = useState("1"); const [selectedNum, setSelectedNum] = React.useState(0); const [isBatchDelete, setIsBatchDelete] = useState(false); @@ -13,17 +14,6 @@ function MyNotice(props) { if (e.key != "2") { setIsBatchDelete(false); } - // if(e.key==="0"){ - // const contentDiv = document.getElementsByClassName("content"); - // for (var i = 0; i < contentDiv.length; i++) { - // contentDiv[i].className="content baselineDiv"; - // } - // }else{ - // const contentDiv = document.getElementsByClassName("content"); - // for (var i = 0; i < contentDiv.length; i++) { - // contentDiv[i].className="content"; - // } - // } } function onChange() { @@ -45,13 +35,23 @@ function MyNotice(props) { setSelectedNum(e.target.checked ? checkbox.length : 0); } + function deleteNotice() { + DelModal({ + title: noticeType === "1" ? '删除私信' : '删除与我相关', + contentTitle: noticeType === "1" ? '您确定要删除与 xxx 的聊天吗?' : selectedNum === 0 ? '您确定要删除这条@我消息吗?' : '您确定要删除选中的' + selectedNum + '条消息吗?', + content: noticeType === "1" ? '此操作将删除与xxx的聊天框和xxx的所有聊天记录,请进行确认以防数据的丢失' : selectedNum === 0 ? '此操作将删除这条消息,请进行确认以防数据的丢失' : '此操作将删除选中的' + selectedNum + '条消息,请进行确认以防数据的丢失', + onOk: () => { + + } + }); + } return (
系统通知 - 私信 + 私信 @我 @@ -68,86 +68,89 @@ function MyNotice(props) {
  - 全选   已选择{selectedNum}项 + 全选   已选择 {selectedNum} 项
     - +
+ {noticeType === "1" ? -
+
props.history.push('/settings/notice/privateLetter')}> -
-
+
+
蒋宇航 4分钟前 - 删除 + 删除
最好的OpenStack控制台,对标OpenStack社区Horizon项目,在易用性、页面性能等方面进行深度优化,提供简单控制台。
- :
+ :
{/* 系统通知 */} {noticeType === "0" ? : ""} {noticeType === "0" ? : ""} - {noticeType === "2" ? : ""} + {noticeType === "2" ? : ""} + {noticeType === "2" ? : ""} 蒋宇航在Gitlink/Gitlink新建易修:【Bug】链接地址错误
4分钟前 - 标记为已读   {noticeType==="0"?"":删除} + 标记为已读   {noticeType === "0" ? "" : 删除}
} {noticeType === "1" ? -
+
-
-
+
+
段甲生 5分钟前 - 删除 + 删除
gitlink平台 react 前端代码
- :
+ :
{/* 系统通知 */} {noticeType === "0" ? : ""} {noticeType === "0" ? : ""} - {noticeType === "2" ? : ""} - 蒋宇航在蒋宇航/软件工程课程协同开发案例指派给你一个合并请求:请进行合并请求test + {noticeType === "2" ? : ""} + {noticeType === "2" ? : ""} + 蒋宇航在蒋宇航/软件工程课程协同开发案例指派给你一个合并请求:请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test
10分钟前 - 标记为已读   {noticeType==="0"?"":删除} + 标记为已读   {noticeType === "0" ? "" : 删除}
} {noticeType === "1" ? -
+
-
-
+
+
巴拉迪维 7分钟前 - 删除 + 删除
构建卷积神经网络,训练模型,预测模型效果。
- :
+ :
{/* 系统通知 */} @@ -158,7 +161,7 @@ function MyNotice(props) {
1小时前 - 标记为已读   {noticeType==="0"?"":删除} + 标记为已读   {noticeType === "0" ? "" : 删除}
}
diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.scss b/src/forge/SecuritySetting/notice/myNotice/Index.scss index d4773048f..c784bc88c 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.scss +++ b/src/forge/SecuritySetting/notice/myNotice/Index.scss @@ -2,23 +2,29 @@ padding:0 10px 0px 0px !important; .ant-badge{ font-size: 16px; - font-weight: 500; + color: #333333; } .ant-menu-item{ padding:0px; - margin-right:50px!important; + // margin-right:34px!important; height: 34px; + width: 64px; + text-align: center; line-height: 0px; position: relative; } + #item{ + margin: 0 34px !important; + } + li.ant-menu-item, .ant-menu-horizontal > .ant-menu-item { border-bottom: 0px; } .ant-menu-item-selected{ color: #333333 !important; - font-weight: 700; + font-weight: 600; border-bottom: 2px solid #2A61FF !important; } @@ -57,15 +63,17 @@ button:active { .deleteBut:hover{ background: #DF0002; + border: 1px solid #DF0002; color:#FFFFFF; } .deleteBut:active{ background: #CE0002; + border: 1px solid #CE0002; color:#FFFFFF; } -.content { +.mynotice-content { display: flex; align-items: center; justify-content: space-between; @@ -107,6 +115,7 @@ button:active { .cont{ display: flex; align-items: center; + padding:0; } } @@ -137,24 +146,26 @@ button:active { line-height: 16px; } -.right { +.private-letter-right { flex: auto; margin: 0px 10px; -} - -.right div { - display: flex; - justify-content: space-between; - - span{ - max-width: 640px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; + & div{ + display: flex; + justify-content: space-between; } } -.highlightSpan:hover{ - color: #466AFF; +.highlightSpan{ + max-width: 40rem; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + &:hover{ + color: #466AFF; + cursor: pointer; + } } +#numberSpan{ + color: #466AFF; +} \ No newline at end of file From e07e4355570e77ffc3e3c129d64e58053dfbd63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 9 Sep 2021 14:25:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/SecuritySetting/Index.jsx | 12 +- src/forge/SecuritySetting/Index.scss | 16 ++- .../SecuritySetting/notice/manager/Index.jsx | 117 +++++++++++++----- .../SecuritySetting/notice/manager/Index.scss | 62 ++++++++-- .../SecuritySetting/notice/myNotice/Index.jsx | 62 +++++----- .../notice/myNotice/Index.scss | 34 +++-- src/forge/SecuritySetting/sub/SSH.jsx | 2 +- src/forge/users/Material/Base.jsx | 2 +- src/forge/users/Material/Index.jsx | 14 ++- src/forge/users/Material/Index.scss | 6 + src/forge/users/Material/Password.jsx | 2 +- 11 files changed, 232 insertions(+), 97 deletions(-) diff --git a/src/forge/SecuritySetting/Index.jsx b/src/forge/SecuritySetting/Index.jsx index 550f6f65e..ab50dc720 100644 --- a/src/forge/SecuritySetting/Index.jsx +++ b/src/forge/SecuritySetting/Index.jsx @@ -55,15 +55,15 @@ function Index(props){ {current_user && current_user.username}
-
    -
  • 消息通知
  • -
  • -1 ?"active":""}>我的通知
  • -
  • -1 ?"active":""}>通知管理
  • -
-
    +
    • 个人信息
    • -1 ?"active":""}>基本资料
    +
      +
    • 消息通知
    • +
    • -1 || pathname.indexOf("/settings/notice/privateLetter")>-1 ?"active":""}>我的通知
    • +
    • -1 ?"active":""}>通知管理
    • +
    • 安全设置
    • -1 ?"active":""}>SSH密钥
    • diff --git a/src/forge/SecuritySetting/Index.scss b/src/forge/SecuritySetting/Index.scss index 06dadb4d8..5dbb77f9e 100644 --- a/src/forge/SecuritySetting/Index.scss +++ b/src/forge/SecuritySetting/Index.scss @@ -36,10 +36,11 @@ color: #333; margin-bottom: 0px; padding-bottom: 0px; + padding-top: 5px; li{ font-size: 14px; - margin-top: 8px; - margin-bottom: 8px; + margin-top: 10px; + margin-bottom: 10px; height: 27px; line-height: 27px; position: relative; @@ -66,7 +67,7 @@ width: 3px; border-radius: 2px; content: ""; - background-color: #2A61FF; + background-color: #466AFF; } i{ @@ -75,6 +76,10 @@ } } } + .ul-border-buttom{ + border-bottom: 1px solid rgba(153, 153, 153, 0.22); + padding-bottom: 5px; + } } .sshHead{ display: flex; @@ -86,6 +91,11 @@ &>span{ font-size: 18px; font-weight: 600; + color: #333333; + } + & .add-ssh-but{ + padding:0 12px; + margin-bottom: 5px; } } .ant-list-item{ diff --git a/src/forge/SecuritySetting/notice/manager/Index.jsx b/src/forge/SecuritySetting/notice/manager/Index.jsx index ea64a4393..5950f156c 100644 --- a/src/forge/SecuritySetting/notice/manager/Index.jsx +++ b/src/forge/SecuritySetting/notice/manager/Index.jsx @@ -6,44 +6,93 @@ import './Index.scss'; function NoticeManager(props){ return( -
      +
      通知管理
      -
      - 您可以通过通知管理来选择接受通知的方式 -
      - 我创建或负责的 -
      -
      -
      易修状态变更
      - 站内信 - 邮件 -
      -
      -
      易修截止日期到达最后一天
      - 站内信 - 邮件 -
      -
      -
      合并请求状态变更
      - 站内信 - 邮件 -
      +
      + 您可以通过通知管理来选择接受通知的方式 +
      + 我创建或负责的 +
      +
      +
      易修状态变更
      + 站内信 + 邮件 +
      +
      +
      易修截止日期到达最后一天
      + 站内信 + 邮件 +
      +
      +
      合并请求状态变更
      + 站内信 + 邮件 +
      +
      +
      易修有新的评论
      + 站内信 + 邮件 +
      +
      +
      合并请求有新的评论
      + 站内信 + 邮件 +
      -
      - 我管理的仓库 -
      -
      -
      被关注
      - 站内信 - 邮件 -
      -
      -
      被点赞
      - 站内信 - 邮件 -
      +
      + 我管理的仓库 +
      +
      +
      被关注
      + 站内信 + 邮件 +
      +
      +
      被点赞
      + 站内信 + 邮件 +
      +
      +
      被复刻
      + 站内信 + 邮件 +
      +
      +
      有新的里程碑
      + 站内信 + 邮件 +
      + +
      + 我关注的仓库 +
      +
      +
      被删除
      + 站内信 + 邮件 +
      +
      +
      被转移
      + 站内信 + 邮件 +
      +
      +
      有新的易修
      + 站内信 + 邮件 +
      +
      +
      有新的合并请求
      + 站内信 + 邮件 +
      +
      +
      有新的版本发布
      + 站内信 + 邮件 +
      ) diff --git a/src/forge/SecuritySetting/notice/manager/Index.scss b/src/forge/SecuritySetting/notice/manager/Index.scss index 987e81118..1b5729ae6 100644 --- a/src/forge/SecuritySetting/notice/manager/Index.scss +++ b/src/forge/SecuritySetting/notice/manager/Index.scss @@ -1,5 +1,8 @@ - -.cont-top{ +.notice-manager-tip{ + font-size:16px; + font-weight:400; +} +.manager-cont-top{ font-size: 14px; font-weight: 600; height: 44px; @@ -12,18 +15,63 @@ margin-top: 25px; } -.cont{ +.manager-cont{ padding: 8px 20px 6px; display: flex; align-items: center; font-size: 14px; - .title{ + .manager-cont-title{ width: 320px; } - label{ - margin-left: 6px; - margin-right: 34px; + +} + +.notice01{ + .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after { + border-color: white; + } + .ant-checkbox-disabled .ant-checkbox-inner { + background-color: #999999 !important; + border-color: #999999 !important; + } + + .ant-checkbox-checked .ant-checkbox-inner { + background-color: #466AFF; + border: #466AFF; + } + + .ant-checkbox-checked::after{ + border: 1px solid #466AFF; + } + .ant-checkbox-wrapper:hover .ant-checkbox-inner, .ant-checkbox:hover .ant-checkbox-inner, .ant-checkbox-input:focus + .ant-checkbox-inner,.ant-radio-checked .ant-radio-inner,.ant-radio-wrapper:hover .ant-radio, .ant-radio:hover .ant-radio-inner, .ant-radio-input:focus + .ant-radio-inner { + border-color: #466AFF; + } + + .ant-checkbox + span,.manager-cont-title { + color: #000000; + } + + .ant-radio-inner::after{ + background-color:#466AFF; + } + + // .ant-radio-checked .ant-radio-inner { + // border-color: #466AFF; + // } + + .but25{ + background-color: #466AFF; + color: #fff; + border-color: #466AFF; + &:hover{ + background-color: #4a76f8; + border-color: #4a76f8; + } + &:active{ + background-color: #466AFF; + border-color: #466AFF; + } } } \ No newline at end of file diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.jsx b/src/forge/SecuritySetting/notice/myNotice/Index.jsx index 0989eb1e3..3a5eb1751 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.jsx +++ b/src/forge/SecuritySetting/notice/myNotice/Index.jsx @@ -1,6 +1,7 @@ import React, { useState, useEffect } from 'react'; -import { Badge, Button, Menu } from 'antd'; +import { Badge, Button, Checkbox, Menu } from 'antd'; import './Index.scss'; +import '../manager/Index.scss' import DelModal from '../../../Wiki/components/ModalFun'; function MyNotice(props) { @@ -47,29 +48,30 @@ function MyNotice(props) { } return ( -
      +
      系统通知 私信 @我 - +
      - -   - 仅看未读{noticeType === "1" ? "私信" : "消息"}(12) - +
      + {/*   + 仅看未读{noticeType === "1" ? "私信" : "消息"}(12) */} + 仅看未读{noticeType === "1" ? "私信" : "消息"}(12) +
      {noticeType === "2" ? : ""}
      - +
        全选   已选择 {selectedNum} 项 - +
           @@ -77,7 +79,7 @@ function MyNotice(props) {
      {noticeType === "1" ? -
      props.history.push('/settings/notice/privateLetter')}> +
      props.history.push('/settings/notice/privateLetter')}>
      @@ -86,28 +88,28 @@ function MyNotice(props) { 删除
      - 最好的OpenStack控制台,对标OpenStack社区Horizon项目,在易用性、页面性能等方面进行深度优化,提供简单控制台。 + 最好的OpenStack控制台,对标OpenStack社区Horizon项目,最好的OpenStack控制台,对标OpenStack社区Horizon项目,在易用性、页面性能等方面进行深度优化,提供简单控制台。
      - :
      -
      + :
      +
      {/* 系统通知 */} {noticeType === "0" ? : ""} {noticeType === "0" ? : ""} {noticeType === "2" ? : ""} {noticeType === "2" ? : ""} - 蒋宇航在Gitlink/Gitlink新建易修:【Bug】链接地址错误 + 蒋宇航在Gitlink/Gitlink新建易修:【Bug】链接地址错误
      -
      +
      4分钟前 - 标记为已读   {noticeType === "0" ? "" : 删除} + 标记为已读   {noticeType === "0" ? "" : 删除}
      } {noticeType === "1" ? -
      +
      @@ -116,28 +118,28 @@ function MyNotice(props) { 删除
      - gitlink平台 react 前端代码 + gitlink平台 react 前端代码
      - :
      -
      + :
      +
      {/* 系统通知 */} {noticeType === "0" ? : ""} {noticeType === "0" ? : ""} {noticeType === "2" ? : ""} {noticeType === "2" ? : ""} - 蒋宇航在蒋宇航/软件工程课程协同开发案例指派给你一个合并请求:请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test + 蒋宇航在蒋宇航/软件工程课程协同开发案例指派给你一个合并请求:请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test请进行合并请求test
      -
      +
      10分钟前 - 标记为已读   {noticeType === "0" ? "" : 删除} + 标记为已读   {noticeType === "0" ? "" : 删除}
      } {noticeType === "1" ? -
      +
      @@ -146,22 +148,22 @@ function MyNotice(props) { 删除
      - 构建卷积神经网络,训练模型,预测模型效果。 + 构建卷积神经网络,训练模型,预测模型效果。
      - :
      -
      + :
      +
      {/* 系统通知 */} {noticeType === "0" ?     : ""} {noticeType === "0" ? : ""} {noticeType === "2" ? : ""} - 你关注的仓库王涛/协同案例分析已被删除 + 你关注的仓库王涛/协同案例分析已被删除
      -
      +
      1小时前 - 标记为已读   {noticeType === "0" ? "" : 删除} + 标记为已读   {noticeType === "0" ? "" : 删除}
      }
      diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.scss b/src/forge/SecuritySetting/notice/myNotice/Index.scss index c784bc88c..6b8afdd87 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.scss +++ b/src/forge/SecuritySetting/notice/myNotice/Index.scss @@ -49,6 +49,7 @@ button { background: #FAFBFC; border: 1px solid #D0D0D0; border-radius: 4px; + height: 32px; } button:hover { background: #F3F4F6; @@ -74,8 +75,6 @@ button:active { } .mynotice-content { - display: flex; - align-items: center; justify-content: space-between; padding: 15px 0 15px 10px; border-bottom: 1px solid #EEEEEE; @@ -112,9 +111,7 @@ button:active { // margin-right: 10px; } - .cont{ - display: flex; - align-items: center; + .mynotice-cont{ padding:0; } } @@ -156,16 +153,35 @@ button:active { } .highlightSpan{ - max-width: 40rem; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; &:hover{ color: #466AFF; cursor: pointer; } } +.letter-length-limit{ + max-width: 50rem; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.sysNotice-length{ + max-width: 52rem; +} + +.at-length{ + max-width: 48rem; +} #numberSpan{ color: #466AFF; +} + +.vertical-center-style{ + display: flex; + align-items: center; +} + +.float-left-little{ + margin-right: 10px; } \ No newline at end of file diff --git a/src/forge/SecuritySetting/sub/SSH.jsx b/src/forge/SecuritySetting/sub/SSH.jsx index bc004e119..80294b398 100644 --- a/src/forge/SecuritySetting/sub/SSH.jsx +++ b/src/forge/SecuritySetting/sub/SSH.jsx @@ -56,7 +56,7 @@ function SSH(props) { setVisibleDesc(false)} desc={content}/>
      SSH密钥 - +
      { list && list.length > 0 && diff --git a/src/forge/users/Material/Base.jsx b/src/forge/users/Material/Base.jsx index 5f776f8db..f9707ab0d 100644 --- a/src/forge/users/Material/Base.jsx +++ b/src/forge/users/Material/Base.jsx @@ -125,7 +125,7 @@ export default Form.create()( - + {/* */} diff --git a/src/forge/users/Material/Index.jsx b/src/forge/users/Material/Index.jsx index 2ea0ecc17..869c1877f 100644 --- a/src/forge/users/Material/Index.jsx +++ b/src/forge/users/Material/Index.jsx @@ -1,5 +1,6 @@ import React , { useEffect , useState } from 'react'; import './Index.scss'; +import '../../SecuritySetting/notice/manager/Index.scss' import { Menu } from 'antd'; import { Link } from 'react-router-dom'; import Base from './Base'; @@ -25,11 +26,14 @@ function Index(props){ return( -
      - - 基本资料 - {/* 密码管理 */} - +
      +
      + + 基本资料 + {/* 基本资料 */} + {/* 密码管理 */} + +
      { key === "0" ? diff --git a/src/forge/users/Material/Index.scss b/src/forge/users/Material/Index.scss index b24d3eb19..f4e79a52b 100644 --- a/src/forge/users/Material/Index.scss +++ b/src/forge/users/Material/Index.scss @@ -19,6 +19,12 @@ .ant-menu-item{ a{ font-size: 16px; + color: #333333; + position: relative; + bottom: -10px; + } + a:hover{ + color: #333333; } } } \ No newline at end of file diff --git a/src/forge/users/Material/Password.jsx b/src/forge/users/Material/Password.jsx index 12b31ac53..d7a2abc6a 100644 --- a/src/forge/users/Material/Password.jsx +++ b/src/forge/users/Material/Password.jsx @@ -89,7 +89,7 @@ export default Form.create()( - + From c477fbe89a7cd6b816418879a8566970b6e674db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 9 Sep 2021 14:31:31 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9A=84=E4=B8=89=E4=B8=AA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Head/NoticeContent.jsx | 19 ++ .../notice/privateLetter/Index.jsx | 82 ++++++++ .../notice/privateLetter/Index.scss | 181 ++++++++++++++++++ 3 files changed, 282 insertions(+) create mode 100644 src/forge/Head/NoticeContent.jsx create mode 100644 src/forge/SecuritySetting/notice/privateLetter/Index.jsx create mode 100644 src/forge/SecuritySetting/notice/privateLetter/Index.scss diff --git a/src/forge/Head/NoticeContent.jsx b/src/forge/Head/NoticeContent.jsx new file mode 100644 index 000000000..ab637f96e --- /dev/null +++ b/src/forge/Head/NoticeContent.jsx @@ -0,0 +1,19 @@ +import React, { useEffect, useState } from 'react'; +import { Badge} from 'antd'; +import './header.scss'; + +function NoticeContent(props) { + const noticeType = props.noticeType; + return( +
      + + {noticeType === "0" ? : ""} +
      + 蒋宇航: + 最好的OpenStack控制台,对标Open社区项目Horizon,在易... + 4分钟前 +
      +
      + ) +} +export default NoticeContent; diff --git a/src/forge/SecuritySetting/notice/privateLetter/Index.jsx b/src/forge/SecuritySetting/notice/privateLetter/Index.jsx new file mode 100644 index 000000000..be5b1bb36 --- /dev/null +++ b/src/forge/SecuritySetting/notice/privateLetter/Index.jsx @@ -0,0 +1,82 @@ +import React, { useState, useEffect } from 'react'; +import './Index.scss' +import '../manager/Index.scss' +import { Button, Input, Icon, Badge } from 'antd'; + +function PrivateLetter(props){ + + const { TextArea,Search } = Input; + + function deleteNotice(){ + alert("删除消息"); + } + + return( +
      +
      +
      + + 蒋宇航 +
      +
      +
      + +
      +
      + 嗨在吗?哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈 + 删除 +
      + 2021-08-29 11:59 +
      + +
      + +
      +
      + 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈 + 删除 +
      + 2021-08-29 11:59 +
      + +
      +
      +
      + +