Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/app-sf.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ The Database Playground is a platform designed to enhance your SQL skills throug
```bash
php ./bin/console app:create-user -p "yourpassword" -r "ROLE_ADMIN" "admin" "[email protected]"
```
- `ROLE_USER` is the default role suitable for regular users, such as students.
- `ROLE_ADMIN` is the administrator role that grants access to the admin panel, enables management of questions, and allows viewing of all submissions and feedback.
- `ROLE_ALLOWED_TO_SWITCH` is the role that permits switching (impersonating) to another user, which is useful for debugging.
7. (Optional) Import the schema and questions using:
```bash
php ./bin/console app:import schema.json
Expand Down
3 changes: 3 additions & 0 deletions assets/controllers/challenge_executor_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export default class extends Controller<HTMLElement> {
throw new Error(`Element not found: ${editorSelector}`);
}

const lastQuery = this.element.dataset["lastQuery"];

this.view = new EditorView({
doc: lastQuery,
extensions: [
basicSetup,
sql(),
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"twbs/bootstrap": "dev-main",
"twig/extra-bundle": "3.*",
"twig/markdown-extra": "3.*",
"twig/string-extra": "3.*",
"twig/twig": "3.*"
},
"config": {
Expand Down
Loading