File tree 18 files changed +30
-16
lines changed
18 files changed +30
-16
lines changed Original file line number Diff line number Diff line change 7
7
# react-codemirror
8
8
9
9
[ ![ Buy me a coffee] ( https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee )] ( https://jaywcjlove.github.io/#/sponsor )
10
- [ ![ jsdelivr CDN] ( https://data.jsdelivr.com/v1/package/npm/@uiw/react-codemirror/badge )] ( https://www.jsdelivr.com/package/npm/@uiw/react-codemirror )
11
10
[ ![ NPM Downloads] ( https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat )] ( https://www.npmjs.com/package/@uiw/react-codemirror )
12
11
[ ![ Build & Deploy] ( https://github.com/uiwjs/react-codemirror/actions/workflows/ci.yml/badge.svg )] ( https://github.com/uiwjs/react-codemirror/actions )
13
12
[ ![ Open in unpkg] ( https://img.shields.io/badge/Open%20in-unpkg-blue )] ( https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codemirror/file/README.md )
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Theme abcdef for CodeMirror." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const defaultSettingsAbcdef: CreateThemeOptions['settings'] = {
14
14
selectionMatch : '#515151' ,
15
15
gutterBackground : '#555' ,
16
16
gutterForeground : '#FFFFFF' ,
17
- lineHighlight : '#314151 ' ,
17
+ lineHighlight : '#0a6bcb3d ' ,
18
18
} ;
19
19
20
20
export const abcdefInit = ( options ?: Partial < CreateThemeOptions > ) => {
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Theme abyss for CodeMirror." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/abyss" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const config = {
5
5
selectionMatch : '#770811' ,
6
6
cursor : '#ddbb88' ,
7
7
dropdownBackground : '#181f2f' ,
8
- activeLine : '#082050 ' ,
8
+ activeLine : '#0055ff30 ' ,
9
9
matchingBracket : '#082050' ,
10
10
keyword : '#225588' ,
11
11
storage : '#225588' ,
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Themes all for CodeMirror 6." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Theme androidstudio for CodeMirror." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/androidstudio" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ export const defaultSettingsAndroidstudio: CreateThemeOptions['settings'] = {
8
8
background : '#282b2e' ,
9
9
foreground : '#a9b7c6' ,
10
10
caret : '#00FF00' ,
11
- selection : '#343739 ' ,
12
- selectionMatch : '#343739 ' ,
13
- lineHighlight : '#343739 ' ,
11
+ selection : '#4e5254 ' ,
12
+ selectionMatch : '#4e5254 ' ,
13
+ lineHighlight : '#7f85891f ' ,
14
14
} ;
15
15
16
16
export const androidstudioInit = ( options ?: Partial < CreateThemeOptions > ) => {
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Theme andromeda for CodeMirror." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/andromeda" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
Original file line number Diff line number Diff line change 1
1
export const config = {
2
2
background : '#23262E' ,
3
3
foreground : '#D5CED9' ,
4
- selection : '#4F4355 ' ,
4
+ selection : '#db45a280 ' ,
5
5
selectionMatch : '#db45a280' ,
6
6
cursor : '#FFF' ,
7
7
dropdownBackground : '#2b303b' ,
8
8
dropdownBorder : '#363c49' ,
9
- activeLine : '#2e323d ' ,
9
+ activeLine : '#596a992e ' ,
10
10
matchingBracket : '#746f77' ,
11
11
keyword : '#c74ded' ,
12
12
storage : '#c74ded' ,
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Theme atomone for CodeMirror." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/atomone" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ export const defaultSettingsAtomone: CreateThemeOptions['settings'] = {
11
11
background : '#272C35' ,
12
12
foreground : '#9d9b97' ,
13
13
caret : '#797977' ,
14
- selection : '#ffffff30 ' ,
15
- selectionMatch : '#2B323D ' ,
14
+ selection : '#3d4c64 ' ,
15
+ selectionMatch : '#3d4c64 ' ,
16
16
gutterBackground : '#272C35' ,
17
17
gutterForeground : '#465063' ,
18
18
gutterBorder : 'transparent' ,
19
- lineHighlight : '#2B323D ' ,
19
+ lineHighlight : '#2e3f5940 ' ,
20
20
} ;
21
21
22
22
export const atomoneInit = ( options ?: Partial < CreateThemeOptions > ) => {
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Theme aura for CodeMirror." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/aura" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ export const defaultSettingsAura: CreateThemeOptions['settings'] = {
5
5
background : '#21202e' ,
6
6
foreground : '#edecee' ,
7
7
caret : '#a277ff' ,
8
- selection : '#3d375e7f ' ,
9
- selectionMatch : '#3d375e7f ' ,
8
+ selection : '#5a51898f ' ,
9
+ selectionMatch : '#5a51898f ' ,
10
10
gutterBackground : '#21202e' ,
11
11
gutterForeground : '#edecee' ,
12
12
gutterBorder : 'transparent' ,
Original file line number Diff line number Diff line change 3
3
"version" : " 4.21.20" ,
4
4
"description" : " Theme basic for CodeMirror." ,
5
5
"homepage" : " https://uiwjs.github.io/react-codemirror/#/theme/data/basic/light" ,
6
+ "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
6
7
"author" : " kenny wong <wowohoo@qq.com>" ,
7
8
"license" : " MIT" ,
8
9
"main" : " ./cjs/index.js" ,
9
10
"module" : " ./esm/index.js" ,
10
- "funding" : " https://jaywcjlove.github.io/#/sponsor" ,
11
11
"exports" : {
12
12
"./README.md" : " ./README.md" ,
13
13
"." : {
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ const HeaderWrapper = styled.div`
21
21
top: 0;
22
22
z-index: 9999;
23
23
background-color: var(--color-canvas-subtle);
24
+ a.sponsor {
25
+ color: var(--color-danger-fg);
26
+ text-decoration: none;
27
+ }
24
28
` ;
25
29
26
30
const Title = styled ( NavLink ) `
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ export const Layout = () => {
48
48
return (
49
49
< Wrapper >
50
50
< Header >
51
+ < a href = "https://jaywcjlove.github.io/#/sponsor" rel = "noopener noreferrer" className = "sponsor" target = "_blank" >
52
+ Sponsor
53
+ </ a >
51
54
{ routes [ 0 ] . children ?. map ( ( item , key ) => {
52
55
if ( ! item . label ) return null ;
53
56
return (
Original file line number Diff line number Diff line change @@ -123,8 +123,9 @@ const hyperlink: {
123
123
label : 'CM Documentation' ,
124
124
} ,
125
125
{
126
- href : 'https://github.com/uiwjs/react-codemirror' ,
127
- label : 'Github' ,
126
+ href : 'https://jaywcjlove.github.io/#/sponsor' ,
127
+ label : 'Sponsor' ,
128
+ style : { backgroundColor : '#0f7c4e' } ,
128
129
} ,
129
130
// {
130
131
// href: 'https://github.com/codemirror/dev',
You can’t perform that action at this time.
0 commit comments