Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/packages/php-sandbox/commit/dde0595ee013da9d2ad2cb2c92a4f2fa405fb3fc?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
10 additions and
7 deletions
src/assets/php-console.js
src/assets/styles.css
src/routes.php
src/views/sandbox.blade.php
@ -83,7 +83,7 @@
* /
updateStatusBar = function ( e ) {
var cursor _position = editor . getCursorPosition ( ) ;
$ ( '.statusbar .position' ) . text ( 'Line: ' + ( 1 + cursor _position . row ) + ', Col : ' + cursor _position . column ) ;
$ ( '.statusbar .position' ) . text ( '@ ' + ( 1 + cursor _position . row ) + ':' + ( 1 + cursor _position . column ) ) ;
} ;
/ * *
@ -106,7 +106,7 @@
success : function ( res , status , jqXHR ) {
if ( res . memory || res . duration ) {
$ ( '.statusbar .runtime-info' ) . text ( 'Mem : ' + res . memory + ' MB, Time: ' + res . duration + ' ms' ) ;
$ ( '.statusbar .runtime-info' ) . text ( 'Load : ' + res . memory + ' MB, ' + res . duration + ' ms' ) ;
} else {
$ ( '.statusbar .runtime-info' ) . text ( '' ) ;
}
@ -154,8 +154,7 @@
editor . setOptions ( {
showPrintMargin : false ,
fontSize : '18px' ,
enableBasicAutocompletion : true ,
fontFamily : 'Source Code Pro'
enableBasicAutocompletion : true
} ) ;
// set mode
@ -1,6 +1,10 @@
body , textarea , input , body . ace_editor {
font-size : 12px ;
font-family : "IBM Plex Mono" , "Source Code Pro" , "Monaco" , monospace ;
}
body , textarea , input {
font-size : 12px ;
font-family : "Source Code Pro" , monospace ;
}
body {
@ -3,7 +3,7 @@
// sandbox
if (config('php-sandbox.enable', false)) {
Route::group([
'middleware' => config('php-sandbox.route_middleware'), ['web']
'middleware' => config('php-sandbox.route_middleware'),
], function () {
Route::get(config('php-sandbox.route', 'sandbox'),
'\MightyPork\PhpSandbox\PhpSandboxController@index')->name('php-sandbox');
@ -38,7 +38,7 @@
< a id = "btn-ren" > ren< / a >
< a id = "btn-del" > del< / a >
|
< span class = "position" > Line: 1, Col: 1< / span >
< span class = "position" > @ 1: 1< / span >
< span class = "runtime-info" > < / span >
< input type = "submit" name = "subm" value = "Run!" / >
< / div >