Compare commits

..

No commits in common. 'master' and '1.0.3' have entirely different histories.

  1. 7
      src/assets/php-console.js
  2. 6
      src/assets/styles.css
  3. 4
      src/routes.php
  4. 2
      src/views/sandbox.blade.php

@ -83,7 +83,7 @@
*/
updateStatusBar = function (e) {
var cursor_position = editor.getCursorPosition();
$('.statusbar .position').text('@ ' + (1 + cursor_position.row) + ':' + (1+cursor_position.column));
$('.statusbar .position').text('Line: ' + (1 + cursor_position.row) + ', Col: ' + cursor_position.column);
};
/**
@ -106,7 +106,7 @@
success: function (res, status, jqXHR) {
if (res.memory || res.duration) {
$('.statusbar .runtime-info').text('Load: ' + res.memory + ' MB, ' + res.duration + ' ms');
$('.statusbar .runtime-info').text('Mem: ' + res.memory + ' MB, Time: ' + res.duration + ' ms');
} else {
$('.statusbar .runtime-info').text('');
}
@ -154,7 +154,8 @@
editor.setOptions({
showPrintMargin: false,
fontSize: '18px',
enableBasicAutocompletion: true
enableBasicAutocompletion: true,
fontFamily: 'Source Code Pro'
});
// set mode

@ -1,10 +1,6 @@
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,10 +3,10 @@
// sandbox
if (config('php-sandbox.enable', false)) {
Route::group([
'middleware' => config('php-sandbox.route_middleware'),
'middleware' => config('php-sandbox.route_middleware'), ['web']
], function () {
Route::get(config('php-sandbox.route', 'sandbox'),
'\MightyPork\PhpSandbox\PhpSandboxController@index')->name('php-sandbox');
'\MightyPork\PhpSandbox\PhpSandboxController@index')->name('sandbox');
Route::post(config('php-sandbox.route', 'sandbox'),
'\MightyPork\PhpSandbox\PhpSandboxController@run'); // ajax

@ -38,7 +38,7 @@
<a id="btn-ren">ren</a>
<a id="btn-del">del</a>
&nbsp;|&nbsp;
<span class="position">@ 1:1</span>
<span class="position">Line: 1, Col: 1</span>
<span class="runtime-info"></span>
<input type="submit" name="subm" value="Run!"/>
</div>

Loading…
Cancel
Save