🖌️ feat(ui): always show colorful console banner for NewAPI in every environment
Add a branded console log to `web/src/index.js` that prints: “We ❤ NewAPI Github: https://github.com/QuantumNous/new-api” Changes include: • Remove the `NODE_ENV` guard so the banner appears in both development and production. • Increase font size to 24 px and keep “NewAPI” in bold green for stronger branding. This is a purely visual/developer-experience enhancement—no runtime behavior is affected.
This commit is contained in:
@@ -10,6 +10,13 @@ import PageLayout from './components/layout/PageLayout.js';
|
||||
import './i18n/i18n.js';
|
||||
import './index.css';
|
||||
|
||||
// 欢迎信息(二次开发者不准将此移除)
|
||||
if (typeof window !== 'undefined') {
|
||||
console.log('%cWe ❤ NewAPI%c Github: https://github.com/QuantumNous/new-api',
|
||||
'color: #10b981; font-weight: bold; font-size: 24px;',
|
||||
'color: inherit; font-size: 14px;');
|
||||
}
|
||||
|
||||
// initialization
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
|
||||
Reference in New Issue
Block a user