mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	chore: update default theme style
This commit is contained in:
		@@ -631,8 +631,6 @@ const ChannelsTable = () => {
 | 
				
			|||||||
                      </Popup>
 | 
					                      </Popup>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color={channel.status === 1 ? 'grey' : 'green'}
 | 
					 | 
				
			||||||
                        basic={channel.status === 1}
 | 
					 | 
				
			||||||
                        onClick={() => {
 | 
					                        onClick={() => {
 | 
				
			||||||
                          manageChannel(
 | 
					                          manageChannel(
 | 
				
			||||||
                            channel.id,
 | 
					                            channel.id,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -274,12 +274,14 @@ const RedemptionsTable = () => {
 | 
				
			|||||||
                    <div>
 | 
					                    <div>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color='green'
 | 
					                        positive
 | 
				
			||||||
                        onClick={async () => {
 | 
					                        onClick={async () => {
 | 
				
			||||||
                          if (await copy(redemption.key)) {
 | 
					                          if (await copy(redemption.key)) {
 | 
				
			||||||
                            showSuccess('已复制到剪贴板!');
 | 
					                            showSuccess('已复制到剪贴板!');
 | 
				
			||||||
                          } else {
 | 
					                          } else {
 | 
				
			||||||
                            showWarning('无法复制到剪贴板,请手动复制');
 | 
					                            showWarning(
 | 
				
			||||||
 | 
					                              '无法复制到剪贴板,请手动复制,已将兑换码填入搜索框。'
 | 
				
			||||||
 | 
					                            );
 | 
				
			||||||
                            setSearchKeyword(redemption.key);
 | 
					                            setSearchKeyword(redemption.key);
 | 
				
			||||||
                          }
 | 
					                          }
 | 
				
			||||||
                        }}
 | 
					                        }}
 | 
				
			||||||
@@ -288,7 +290,7 @@ const RedemptionsTable = () => {
 | 
				
			|||||||
                      </Button>
 | 
					                      </Button>
 | 
				
			||||||
                      <Popup
 | 
					                      <Popup
 | 
				
			||||||
                        trigger={
 | 
					                        trigger={
 | 
				
			||||||
                          <Button size='small' color='red'>
 | 
					                          <Button size='small' negative>
 | 
				
			||||||
                            删除
 | 
					                            删除
 | 
				
			||||||
                          </Button>
 | 
					                          </Button>
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
@@ -307,9 +309,7 @@ const RedemptionsTable = () => {
 | 
				
			|||||||
                      </Popup>
 | 
					                      </Popup>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color={redemption.status === 1 ? 'grey' : 'green'}
 | 
					                        disabled={redemption.status === 3} // used
 | 
				
			||||||
                        basic={redemption.status === 1}
 | 
					 | 
				
			||||||
                        disabled={redemption.status === 3}
 | 
					 | 
				
			||||||
                        onClick={() => {
 | 
					                        onClick={() => {
 | 
				
			||||||
                          manageRedemption(
 | 
					                          manageRedemption(
 | 
				
			||||||
                            redemption.id,
 | 
					                            redemption.id,
 | 
				
			||||||
@@ -322,7 +322,6 @@ const RedemptionsTable = () => {
 | 
				
			|||||||
                      </Button>
 | 
					                      </Button>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color='grey'
 | 
					 | 
				
			||||||
                        as={Link}
 | 
					                        as={Link}
 | 
				
			||||||
                        to={'/redemption/edit/' + redemption.id}
 | 
					                        to={'/redemption/edit/' + redemption.id}
 | 
				
			||||||
                      >
 | 
					                      >
 | 
				
			||||||
@@ -340,7 +339,6 @@ const RedemptionsTable = () => {
 | 
				
			|||||||
            <Table.HeaderCell colSpan='8'>
 | 
					            <Table.HeaderCell colSpan='8'>
 | 
				
			||||||
              <Button
 | 
					              <Button
 | 
				
			||||||
                size='small'
 | 
					                size='small'
 | 
				
			||||||
                color='green'
 | 
					 | 
				
			||||||
                as={Link}
 | 
					                as={Link}
 | 
				
			||||||
                to='/redemption/add'
 | 
					                to='/redemption/add'
 | 
				
			||||||
                loading={loading}
 | 
					                loading={loading}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -442,7 +442,7 @@ const TokensTable = () => {
 | 
				
			|||||||
                      </Button.Group>{' '}
 | 
					                      </Button.Group>{' '}
 | 
				
			||||||
                      <Popup
 | 
					                      <Popup
 | 
				
			||||||
                        trigger={
 | 
					                        trigger={
 | 
				
			||||||
                          <Button size='small' color='red'>
 | 
					                          <Button size='small' negative>
 | 
				
			||||||
                            删除
 | 
					                            删除
 | 
				
			||||||
                          </Button>
 | 
					                          </Button>
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
@@ -461,8 +461,6 @@ const TokensTable = () => {
 | 
				
			|||||||
                      </Popup>
 | 
					                      </Popup>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color={token.status === 1 ? 'grey' : 'green'}
 | 
					 | 
				
			||||||
                        basic={token.status === 1}
 | 
					 | 
				
			||||||
                        onClick={() => {
 | 
					                        onClick={() => {
 | 
				
			||||||
                          manageToken(
 | 
					                          manageToken(
 | 
				
			||||||
                            token.id,
 | 
					                            token.id,
 | 
				
			||||||
@@ -475,7 +473,6 @@ const TokensTable = () => {
 | 
				
			|||||||
                      </Button>
 | 
					                      </Button>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color='grey'
 | 
					 | 
				
			||||||
                        as={Link}
 | 
					                        as={Link}
 | 
				
			||||||
                        to={'/token/edit/' + token.id}
 | 
					                        to={'/token/edit/' + token.id}
 | 
				
			||||||
                      >
 | 
					                      >
 | 
				
			||||||
@@ -491,10 +488,10 @@ const TokensTable = () => {
 | 
				
			|||||||
        <Table.Footer>
 | 
					        <Table.Footer>
 | 
				
			||||||
          <Table.Row>
 | 
					          <Table.Row>
 | 
				
			||||||
            <Table.HeaderCell colSpan='7'>
 | 
					            <Table.HeaderCell colSpan='7'>
 | 
				
			||||||
              <Button size='small' color='green' as={Link} to='/token/add' loading={loading}>
 | 
					              <Button size='small' as={Link} to='/token/add' loading={loading}>
 | 
				
			||||||
                添加新的令牌
 | 
					                添加新的令牌
 | 
				
			||||||
              </Button>
 | 
					              </Button>
 | 
				
			||||||
              <Button size='small' basic onClick={refresh} loading={loading}>
 | 
					              <Button size='small' onClick={refresh} loading={loading}>
 | 
				
			||||||
                刷新
 | 
					                刷新
 | 
				
			||||||
              </Button>
 | 
					              </Button>
 | 
				
			||||||
              <Dropdown
 | 
					              <Dropdown
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -287,7 +287,7 @@ const UsersTable = () => {
 | 
				
			|||||||
                    <div>
 | 
					                    <div>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color='blue'
 | 
					                        positive
 | 
				
			||||||
                        onClick={() => {
 | 
					                        onClick={() => {
 | 
				
			||||||
                          manageUser(user.username, 'promote', idx);
 | 
					                          manageUser(user.username, 'promote', idx);
 | 
				
			||||||
                        }}
 | 
					                        }}
 | 
				
			||||||
@@ -297,7 +297,7 @@ const UsersTable = () => {
 | 
				
			|||||||
                      </Button>
 | 
					                      </Button>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color='orange'
 | 
					                        color={'yellow'}
 | 
				
			||||||
                        onClick={() => {
 | 
					                        onClick={() => {
 | 
				
			||||||
                          manageUser(user.username, 'demote', idx);
 | 
					                          manageUser(user.username, 'demote', idx);
 | 
				
			||||||
                        }}
 | 
					                        }}
 | 
				
			||||||
@@ -309,7 +309,7 @@ const UsersTable = () => {
 | 
				
			|||||||
                        trigger={
 | 
					                        trigger={
 | 
				
			||||||
                          <Button
 | 
					                          <Button
 | 
				
			||||||
                            size='small'
 | 
					                            size='small'
 | 
				
			||||||
                            color='red'
 | 
					                            negative
 | 
				
			||||||
                            disabled={user.role === 100}
 | 
					                            disabled={user.role === 100}
 | 
				
			||||||
                          >
 | 
					                          >
 | 
				
			||||||
                            删除
 | 
					                            删除
 | 
				
			||||||
@@ -320,7 +320,7 @@ const UsersTable = () => {
 | 
				
			|||||||
                        hoverable
 | 
					                        hoverable
 | 
				
			||||||
                      >
 | 
					                      >
 | 
				
			||||||
                        <Button
 | 
					                        <Button
 | 
				
			||||||
                          color='red'
 | 
					                          negative
 | 
				
			||||||
                          onClick={() => {
 | 
					                          onClick={() => {
 | 
				
			||||||
                            manageUser(user.username, 'delete', idx);
 | 
					                            manageUser(user.username, 'delete', idx);
 | 
				
			||||||
                          }}
 | 
					                          }}
 | 
				
			||||||
@@ -330,8 +330,6 @@ const UsersTable = () => {
 | 
				
			|||||||
                      </Popup>
 | 
					                      </Popup>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color={user.status === 1 ? 'grey' : 'green'}
 | 
					 | 
				
			||||||
                        basic={user.status === 1}
 | 
					 | 
				
			||||||
                        onClick={() => {
 | 
					                        onClick={() => {
 | 
				
			||||||
                          manageUser(
 | 
					                          manageUser(
 | 
				
			||||||
                            user.username,
 | 
					                            user.username,
 | 
				
			||||||
@@ -345,7 +343,6 @@ const UsersTable = () => {
 | 
				
			|||||||
                      </Button>
 | 
					                      </Button>
 | 
				
			||||||
                      <Button
 | 
					                      <Button
 | 
				
			||||||
                        size={'small'}
 | 
					                        size={'small'}
 | 
				
			||||||
                        color='grey'
 | 
					 | 
				
			||||||
                        as={Link}
 | 
					                        as={Link}
 | 
				
			||||||
                        to={'/user/edit/' + user.id}
 | 
					                        to={'/user/edit/' + user.id}
 | 
				
			||||||
                      >
 | 
					                      >
 | 
				
			||||||
@@ -361,7 +358,7 @@ const UsersTable = () => {
 | 
				
			|||||||
        <Table.Footer>
 | 
					        <Table.Footer>
 | 
				
			||||||
          <Table.Row>
 | 
					          <Table.Row>
 | 
				
			||||||
            <Table.HeaderCell colSpan='7'>
 | 
					            <Table.HeaderCell colSpan='7'>
 | 
				
			||||||
              <Button size='small' color='green' as={Link} to='/user/add' loading={loading}>
 | 
					              <Button size='small' as={Link} to='/user/add' loading={loading}>
 | 
				
			||||||
                添加新的用户
 | 
					                添加新的用户
 | 
				
			||||||
              </Button>
 | 
					              </Button>
 | 
				
			||||||
              <Dropdown
 | 
					              <Dropdown
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user