discourse/app
Martin Brennan ff96d541e9
FEATURE: Add fullscreen button for code blocks (#16044)
This commit extends the original copy-codeblocks initializer,
renaming it to codeblock-buttons, and adding another button
to make the code block fullscreen in a modal window. The fullscreen
code is then run through highlight.js.

This commit also moves much of the code out of the initializer
and into a reusable CodeblockButtons class, so it can also be used
in the fullscreen code modal for the copy + paste button.

The fullscreen button will not be shown if there is no scroll overflow
in the code block, nor will it be shown on mobile. This commit also
changes the fullscreen table button to not show on mobile.

This will make long lines of code much easier to read and interact
with. This is gated behind the same `show_copy_button_on_codeblocks`
site setting.
2022-03-01 08:37:24 +10:00
..
assets FEATURE: Add fullscreen button for code blocks (#16044) 2022-03-01 08:37:24 +10:00
controllers DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
helpers FIX: Update application_helper logic now that Ember CLI is default (#15935) 2022-02-14 13:48:18 +00:00
jobs DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
mailers FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
models DEV: Fix random typos (#16066) 2022-02-28 10:20:58 +08:00
serializers DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
services DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
views PERF: Update ember-auto-import and webpack (#15919) 2022-02-14 11:21:39 +00:00