File tree 9 files changed +321
-8
lines changed
advanced/[engine]/index.html
9 files changed +321
-8
lines changed Original file line number Diff line number Diff line change 29
29
[ ![ react.js] ( https://www.vectorlogo.zone/logos/reactjs/reactjs-ar21.svg )] ( https://reactjs.org/ " UI Framework ")
30
30
[ ![ TypeScript] ( https://www.vectorlogo.zone/logos/typescriptlang/typescriptlang-ar21.svg )] ( https://www.typescriptlang.org/ " Programming Language ")
31
31
[ ![ SimpleShare.dev] ( https://www.vectorlogo.zone/logos/simplesharedev/simplesharedev-ar21.svg )] ( http://simpleshare.dev/ " Privacy-friendly sharing links ")
32
- [ ![ VectorLogoZone] ( https://www.vectorlogo.zone/logos/vectorlogozone/vectorlogozone-ar21.svg )] ( https://www.vectorlogo.zone/ " Logos ")
32
+ [ ![ svgrepo] ( https://www.vectorlogo.zone/logos/svgrepo/svgrepo-ar21.svg )] ( https://www.svgrepo.com/svg/249535/browser-accept " browser icon (modified) ")
33
+ [ ![ VectorLogoZone] ( https://www.vectorlogo.zone/logos/vectorlogozone/vectorlogozone-ar21.svg )] ( https://www.vectorlogo.zone/ " Logos ")
34
+
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ docker build \
15
15
# exit 0
16
16
17
17
docker run \
18
- --env PORT=' 4000' \
18
+ --env PORT=4000 \
19
19
--expose 4000 \
20
+ --interactive \
20
21
--publish 4000:4000 \
22
+ --rm \
23
+ --tty \
21
24
regexplanet-next
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default function TestForm(props: TestFormProps) {
38
38
const [ testInput , setTestInput ] = useState < TestInput > ( props . testInput ) ;
39
39
40
40
const inputRows = testInput . inputs . map ( ( input , index ) => (
41
- < div className = "mb-2" key = { `key ${ index } ` } >
41
+ < div className = "mb-2" key = { `ikey ${ index } ` } >
42
42
{ index <= 0 ? < label htmlFor = { `row${ index } ` } className = "col-sm-2 col-form-label" > Inputs</ label > : < > </ > }
43
43
< input type = "text" className = "form-control" id = { `input${ index } ` } name = "input" defaultValue = { input } />
44
44
</ div >
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ async function lookupShareCode(shareCode: string): Promise<ShareFormState> {
18
18
} ;
19
19
}
20
20
//shareCode = "yyyyfud6z4r";
21
- const response = await fetch ( `https://www.regexplanet.com/share/index.json?share=${ shareCode } ` ) ;
21
+ const shareApiUrl = shareCode . indexOf ( '-' ) === - 1
22
+ ? `https://appengine.regexplanet.com/share/index.json?share=${ shareCode } `
23
+ : `https://www.regex.zone/share/lookup.json?share=${ shareCode } ` ;
24
+ const response = await fetch ( shareApiUrl ) ;
22
25
const data = await response . json ( ) ;
23
26
console . log ( `server response=${ JSON . stringify ( data ) } ` ) ;
24
27
if ( data . success ) {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function Footer() {
18
18
{ link . label }
19
19
</ Link > ) ;
20
20
if ( index < links . length - 1 ) {
21
- initial . push ( < span className = "mx-1" key = { `key ${ index } ` } > |</ span > ) ;
21
+ initial . push ( < span className = "mx-1" key = { `fkey ${ index } ` } > |</ span > ) ;
22
22
}
23
23
}
24
24
) ;
Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ export const browser: RegexEngine = {
22
22
handle : "browser" ,
23
23
level : "alpha" ,
24
24
links : { } ,
25
- logo_icon : "https://www.vectorlogo.zone/logos/firefox/firefox -icon.svg" , // LATER: dynamic
26
- logo_ar21 : "https://www.vectorlogo.zone/logos/firefox/firefox -ar21.svg" , // LATER: dynamic
25
+ logo_icon : "/images/browsers/browser -icon.svg" ,
26
+ logo_ar21 : "/images/browsers/browser -ar21.svg" ,
27
27
nodeping_url : undefined ,
28
+ notfound : [ "javascript" , "typescript" ] ,
28
29
options : [
29
30
{
30
31
code : "d" ,
@@ -63,7 +64,7 @@ export const browser: RegexEngine = {
63
64
short_name : "Your Browser" ,
64
65
source_url : "https://github.com/regexplanet/regexplanet-next" ,
65
66
status_url : undefined ,
66
- // test_url: "javascript:browserTest ",
67
+ test_url : "javascript:" ,
67
68
} ;
68
69
69
70
Original file line number Diff line number Diff line change @@ -22,4 +22,6 @@ export const dotnet: RegexEngine = {
22
22
logo_ar21 : "https://www.vectorlogo.zone/logos/dotnet/dotnet-ar21.svg" ,
23
23
options : [ ] ,
24
24
short_name : ".NET" ,
25
+ status_url : "https://dotnet.gcr.regexplanet.com/status.json" ,
26
+ test_url : "https://dotnet.gcr.regexplanet.com/test.json" ,
25
27
} ;
You can’t perform that action at this time.
0 commit comments