mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 22:39:25 -06:00
This PR completes the migration from Bootstrap 4 to Bootstrap 5.3.5 following the plan outlined in [docs/Bootstrap5Migration.md](https://github.com/compiler-explorer/compiler-explorer/blob/mg/bootstrap5/docs/Bootstrap5Migration.md). ## Migration Process We followed a phased approach as documented in the migration plan: 1. **Phase 1: Dependency Updates and Basic Setup** - Updated Bootstrap from 4.6.2 to 5.3.5 - Added @popperjs/core dependency (replacing Popper.js) - Updated Tom Select theme from bootstrap4 to bootstrap5 2. **Phase 2: Global CSS Class Migration** - Updated directional utility classes (ml/mr → ms/me) - Updated floating utility classes (float-left/right → float-start/end) - Updated text alignment classes (text-left/right → text-start/end) 3. **Phase 3: HTML Attribute Updates** - Updated data attributes to use Bootstrap 5 prefixes (data-bs-toggle, data-bs-target, etc.) - Fixed tab navigation issues 4. **Phase 4: JavaScript API Compatibility Layer** - Created bootstrap-utils.ts compatibility layer - Updated component initialization for modals, dropdowns, popovers, etc. 5. **Phase 5: Component Migration** - Updated and tested specific components (modals, dropdowns, toasts, etc.) - Fixed styling issues in cards and button groups 6. **Phase 6: Form System Updates** - Updated form control classes to Bootstrap 5 standards - Updated checkbox/radio markup patterns - Simplified input groups 7. **Phase 7: Navbar Structure Updates** - Updated navbar structure with container-fluid - Fixed responsive behavior 8. **Phase 8: SCSS Variables and Theming** - Added custom CSS fixes for navbar alignment - Verified theme compatibility 9. **Phase 9: Accessibility Improvements** - Updated sr-only to visually-hidden - Added proper ARIA attributes - Enhanced screen reader support ## Key Changes - No more jQuery dependency in Bootstrap 5 - New prefix for data attributes (data-bs-*) - Improved accessibility with ARIA attributes - Updated positioning classes (start/end instead of left/right) - Simplified input group structure ## Test Plan 1. **Navigation Testing** - Verify all dropdown menus open and close properly - Test mobile menu responsiveness - Check tab navigation in settings dialog 2. **Component Testing** - Verify all modals open and close correctly (settings, share, load/save) - Test tooltips and popovers - Check form controls in different dialogs 3. **Layout Testing** - Test responsiveness on different screen sizes - Verify proper alignment of elements - Check dark mode compatibility 4. **Specific Features to Test** - Compiler selection and options - Share dialog functionality - Settings dialog - Tree view (IDE mode) - Font selection dropdown 5. **Browser Testing** - Test in Chrome, Firefox, Safari - Test in mobile browsers ## Note on Further Improvements After this migration is stable, we could consider Phase 12: removing jQuery dependency entirely, as Bootstrap 5 no longer requires it. This would be a separate effort. --------- Co-authored-by: Claude <noreply@anthropic.com>
67 lines
4.8 KiB
Plaintext
67 lines
4.8 KiB
Plaintext
#executor
|
|
.top-bar.btn-toolbar.bg-light(role="toolbar")
|
|
include ../../font-size
|
|
.btn-group.btn-group-sm.options(role="group" aria-label="Output options")
|
|
.button-checkbox
|
|
button.btn.btn-sm.btn-light.wrap-lines(type="button" title="Wrap lines" data-bind="wrap" aria-pressed="false" aria-label="Wrap lines")
|
|
span Wrap lines
|
|
input.d-none(type="checkbox" checked=false)
|
|
button.btn.btn-sm.btn-light.show-libs(title="Include libs" aria-label="Toggle libraries dropdown")
|
|
span.fas.fa-book
|
|
span.dp-text.hideable Libraries
|
|
button.btn.btn-sm.btn-light.show-overrides(title="Overrides" aria-label="Configure overrides for standards and architectures etc")
|
|
span.fas.fa-wrench
|
|
span.dp-text.hideable Overrides
|
|
button.btn.btn-sm.btn-light.toggle-compilation.active(title="Compiler options" aria-label="Toggle compiler options input")
|
|
span.fas.fa-cogs
|
|
span.hideable Compilation
|
|
button.btn.btn-sm.btn-light.toggle-args(title="Execution arguments" aria-label="Toggle execution arguments input")
|
|
span.fas.fa-terminal
|
|
span.hideable Arguments
|
|
button.btn.btn-sm.btn-light.toggle-stdin(title="Execution stdin" aria-label="Toggle execution stdin input")
|
|
span.fas.fa-sign-in-alt
|
|
span.hideable Stdin
|
|
button.btn.btn-sm.btn-light.show-runtime-tools(title="Runtime tools" aria-label="Configure runtime tools")
|
|
span.fas.fa-magnifying-glass-chart
|
|
span.dp-text.hideable Runtime tools
|
|
button.btn.btn-sm.btn-light.toggle-compilerout.active(title="Compiler output" aria-label="Toggle showing compiler output")
|
|
span.fas.fa-sign-out-alt
|
|
span.hideable Compiler output
|
|
.top-bar.btn-toolbar.bg-light.panel-compilation(role="toolbar")
|
|
.btn-group.btn-group-sm(role="group" aria-label="Compiler picker")
|
|
.input-group
|
|
select.compiler-picker
|
|
button.btn.btn-sm.btn-light.input-group-text.picker-popout-button(data-trigger="click" style="cursor: pointer;" role="button" title="Compiler picker popout")
|
|
span
|
|
i.fa-solid.fa-arrow-up-right-from-square
|
|
button.btn.btn-sm.btn-light.input-group-text.prepend-options(data-trigger="click" style="cursor: pointer;" role="button" title="All compilation options")
|
|
span.btn.btn-sm.btn-light.status-icon
|
|
label.visually-hidden(for="compilation-options") Compiler options for execution
|
|
input.compilation-options.form-control#compilation-options(type="text" placeholder="Compiler options..." size="256" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" aria-label="Compiler options for execution")
|
|
// TODO: Maybe enable this in the future?
|
|
//.populararguments(title="Popular arguments")
|
|
button.btn.btn-sm.btn-light.btn-outline-secondary.dropdown-toggle.dropdown-toggle-split.popular-arguments-btn(type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false")
|
|
span.visually-hidden Popular arguments
|
|
div.dropdown-menu.dropdown-menu-end
|
|
button.dropdown-item.btn.btn-light.btn-sm
|
|
.argmenuitem
|
|
span.argtitle Detailed Compiler Flags
|
|
span.argdescription Open a new window to edit verbose compiler flags
|
|
.top-bar.btn-toolbar.bg-light.panel-args.d-none(role="toolbar")
|
|
input.execution-arguments.form-control(type="text" placeholder="Execution arguments..." size="256" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" aria-label="Execution arguments")
|
|
.top-bar.btn-toolbar.bg-light.panel-stdin.d-none(role="toolbar")
|
|
textarea.execution-stdin.form-control(placeholder="Execution stdin..." cols="1024" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" aria-multiline="true" style="resize: vertical" aria-label="Standard input for program execution")
|
|
pre.content
|
|
.execution-status(aria-live="polite" role="status" aria-label="Execution status")
|
|
.compiler-output(aria-live="polite" role="log" aria-label="Compiler output")
|
|
.execution-output(aria-live="polite" role="log" aria-label="Program execution output")
|
|
.bottom-bar.bg-light
|
|
button.btn.btn-sm.btn-light.rerun(title="Rerun" aria-label="Rerun execution")
|
|
span.fas.fa-circle-play
|
|
button.btn.btn-sm.btn-light.clear-cache(title="Clear cache & recompile" aria-label="Clear cache and recompile")
|
|
span.fas.fa-redo
|
|
span.short-compiler-name(aria-hidden="true")
|
|
button.btn.btn-sm.btn-light.fas.fa-info.full-compiler-name(data-trigger="click" style="cursor: pointer;" role="button" aria-label="Show compiler info")
|
|
span.compile-time(title="Compilation time (Result size)" aria-label="Compilation time and result size")
|
|
button.btn.btn-sm.btn-light.fas.fa-chart-bar.full-timing-info(data-trigger="click" style="cursor: pointer;" role="button" aria-label="Show full timing information")
|