新建文件-content用base64加密

This commit is contained in:
caishi 2022-12-08 14:50:49 +08:00
parent 311c3d072c
commit f688ef5258
8 changed files with 21 additions and 10 deletions

View File

@ -4,6 +4,7 @@ import { Form, Input, Button, Radio, Icon, Spin } from "antd";
import { Link } from "react-router-dom";
import "./index.css";
import { turnbar , returnbar } from 'educoder';
import { Base64 } from 'js-base64';
import axios from "axios";
const TextArea = Input.TextArea;
@ -63,7 +64,7 @@ class UserSubmitComponent extends Component {
filepath: filename ? filename : path,
branch: returnbar(branch),
new_branch: submitType === "1" ? values.branchname : undefined,
content,
content:Base64.encode(content),
message: values.desc,
})
.then((result) => {

View File

@ -128,7 +128,7 @@
.topWrapper_btn {
background: #fff;
border: 1px solid $primary-color;
color: $primary-color ;
color: $primary-color!important ;
padding: 0px 12px;
text-align: center;
height: 32px;

View File

@ -5,6 +5,10 @@ import { notification } from 'antd';
import axios from 'axios';
import educoderLogo from './educoder.png';
import qqlogo from './qq.png';
import WeChatlogo from './WeChat.png';
import giteelogo from './gitee.png';
import githublogo from './github.png';
import cookie from 'react-cookies';
import './LoginDialog.css';
import { broadcastChannelPostMessage } from 'educoder'
@ -458,6 +462,7 @@ class LoginDialog extends Component {
})
}
render() {
let { login, isGoing, isGoingValue, disabled , Phonenumberisnotco , dialogBox, isRender, weixinlogin, settings } = this.state;
@ -569,14 +574,14 @@ class LoginDialog extends Component {
</span>
</p>
{
settings && settings.third_party && settings.third_party.length > 0 ?
settings && settings.third_party_new && settings.third_party_new.length > 0 ?
<p className="clearfix mt20">
<span className={"startlogin"}> 快速登录 </span>
<div className={"mt10"}>
{settings.third_party.map((item,key)=>{
{settings.third_party_new.map((item,key)=>{
return(
<a href={`${item.url}`}>
<img src={item.name === "educoder" ? educoderLogo : ""} width="46px" alt={`${item.name}登录`} />
<a href={`${item.url}`} className="ml12 mr12">
<img src={item.name === "educoder" ? educoderLogo : item.name === "qq" ? qqlogo : item.name === "wechat" ? WeChatlogo : item.name === "gitee" ? giteelogo : item.name === "github" ? githublogo : ""} width="42px" alt={`${item.name}登录`} />
</a>
)
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
src/modules/login/gitee.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -3,6 +3,10 @@ import { Form, Input, Button, Checkbox } from "antd";
import { Link } from "react-router-dom";
import axios from 'axios';
import educoderLogo from '../login/educoder.png';
import qqlogo from '../login/qq@2x.png';
import WeChatlogo from '../login/WeChat@2x.png';
import giteelogo from '../login/gitee.png';
import githublogo from '../login/github.png';
import cookie from 'react-cookies';
import './LoginRegisterPage.scss';
@ -59,6 +63,7 @@ function Login(props){
}
}
return(
<div>
<div className="right_cont login_content">
@ -107,14 +112,14 @@ function Login(props){
</Form>
{
setting && setting.third_party && setting.third_party.length > 0 ?
setting && setting.third_party_new && setting.third_party_new.length > 0 ?
<p className="quick_logon">
<p className="quick_logon_p"></p>
<span className={"startlogin"}>&nbsp;快速登录&nbsp;</span>
{setting.third_party.map((item,key)=>{
{setting.third_party_new.map((item,key)=>{
return(
<a href={`${item.url}`}>
<img src={item.name === "educoder" ? educoderLogo : ""} width="46px" alt={`${item.name}登录`} />
<a href={`${item.url}`} className="ml15 mr15">
<img src={item.name === "educoder" ? educoderLogo : item.name === "qq" ? qqlogo : item.name === "wechat" ? WeChatlogo : item.name === "gitee" ? giteelogo : item.name === "github" ? githublogo : ""} width="46px" alt={`${item.name}登录`} />
</a>
)
})