🔗feat(ui): Standardize link colors and update documentation URL in EditChannel component
**Changes:** - Unify link color styling across EditChannel.js by replacing `text-blue-500` with consistent primary color scheme - Apply `!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors` to all template fill and documentation links - Update documentation URL from Calcium-Ion repository to QuantumNous repository - Add smooth hover transitions and consistent visual feedback for all clickable links **Affected Elements:** - Model mapping template fill link - Deployment region template fill link - Channel settings template fill link - Channel settings documentation link - Status code mapping template fill link **Benefits:** - Consistent visual design language across the entire application - Improved user experience with unified link styling - Better accessibility with clear hover states and transitions - Correct documentation references pointing to the current project repository **Technical Details:** - Maintains existing functionality while improving visual consistency - Links now match the color scheme used in About page and Footer components - Smooth color transitions enhance user interaction feedback
This commit is contained in:
@@ -45,7 +45,7 @@ const About = () => {
|
||||
href='https://github.com/QuantumNous/new-api'
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
|
||||
className="!text-semi-color-primary"
|
||||
>
|
||||
https://github.com/QuantumNous/new-api
|
||||
</a>
|
||||
@@ -54,28 +54,28 @@ const About = () => {
|
||||
href="https://github.com/QuantumNous/new-api"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
|
||||
className="!text-semi-color-primary"
|
||||
>
|
||||
NewAPI
|
||||
</a> {t('© {{currentYear}}', { currentYear })} <a
|
||||
href="https://github.com/QuantumNous"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
|
||||
className="!text-semi-color-primary"
|
||||
>
|
||||
QuantumNous
|
||||
</a> {t('| 基于')} <a
|
||||
href="https://github.com/songquanpeng/one-api/releases/tag/v0.5.4"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
|
||||
className="!text-semi-color-primary"
|
||||
>
|
||||
One API v0.5.4
|
||||
</a> © 2023 <a
|
||||
href="https://github.com/songquanpeng"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
|
||||
className="!text-semi-color-primary"
|
||||
>
|
||||
JustSong
|
||||
</a>
|
||||
@@ -86,7 +86,7 @@ const About = () => {
|
||||
href="https://github.com/songquanpeng/one-api/blob/v0.5.4/LICENSE"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
|
||||
className="!text-semi-color-primary"
|
||||
>
|
||||
{t('MIT许可证')}
|
||||
</a>
|
||||
@@ -95,7 +95,7 @@ const About = () => {
|
||||
href="https://github.com/QuantumNous/new-api/blob/main/LICENSE"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
|
||||
className="!text-semi-color-primary"
|
||||
>
|
||||
{t('Apache-2.0协议')}
|
||||
</a>
|
||||
|
||||
@@ -846,7 +846,7 @@ const EditChannel = (props) => {
|
||||
className="!rounded-lg font-mono"
|
||||
/>
|
||||
<Text
|
||||
className="text-blue-500 cursor-pointer mt-1 block"
|
||||
className="!text-semi-color-primary cursor-pointer mt-1 block"
|
||||
onClick={() => handleInputChange('model_mapping', JSON.stringify(MODEL_MAPPING_EXAMPLE, null, 2))}
|
||||
>
|
||||
{t('填入模板')}
|
||||
@@ -940,7 +940,7 @@ const EditChannel = (props) => {
|
||||
className="!rounded-lg font-mono"
|
||||
/>
|
||||
<Text
|
||||
className="text-blue-500 cursor-pointer mt-1 block"
|
||||
className="!text-semi-color-primary cursor-pointer mt-1 block"
|
||||
onClick={() => handleInputChange('other', JSON.stringify(REGION_EXAMPLE, null, 2))}
|
||||
>
|
||||
{t('填入模板')}
|
||||
@@ -1062,7 +1062,7 @@ const EditChannel = (props) => {
|
||||
/>
|
||||
<div className="flex gap-2 mt-1">
|
||||
<Text
|
||||
className="text-blue-500 cursor-pointer"
|
||||
className="!text-semi-color-primary cursor-pointer"
|
||||
onClick={() => {
|
||||
handleInputChange(
|
||||
'setting',
|
||||
@@ -1073,10 +1073,10 @@ const EditChannel = (props) => {
|
||||
{t('填入模板')}
|
||||
</Text>
|
||||
<Text
|
||||
className="text-blue-500 cursor-pointer"
|
||||
className="!text-semi-color-primary cursor-pointer"
|
||||
onClick={() => {
|
||||
window.open(
|
||||
'https://github.com/Calcium-Ion/new-api/blob/main/docs/channel/other_setting.md',
|
||||
'https://github.com/QuantumNous/new-api/blob/main/docs/channel/other_setting.md',
|
||||
);
|
||||
}}
|
||||
>
|
||||
@@ -1146,7 +1146,7 @@ const EditChannel = (props) => {
|
||||
className="!rounded-lg font-mono"
|
||||
/>
|
||||
<Text
|
||||
className="text-blue-500 cursor-pointer mt-1 block"
|
||||
className="!text-semi-color-primary cursor-pointer mt-1 block"
|
||||
onClick={() => {
|
||||
handleInputChange(
|
||||
'status_code_mapping',
|
||||
|
||||
Reference in New Issue
Block a user