aboutsummaryrefslogtreecommitdiff
path: root/resources/views/components/codeblock.blade.php
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2024-01-22 01:18:12 +0000
committerFrankie B <git@diskfloppy.me>2024-01-22 01:19:24 +0000
commit0cd22cf82b5b056842df834f641e346dac8e4267 (patch)
tree5f788f9c3998d8bc4d0a37c3a6e83644bca65d04 /resources/views/components/codeblock.blade.php
parent6f83c7710949ffb5f79302525f15796f6083e52b (diff)
Remove unused HLJS code and unnecessary components
Diffstat (limited to 'resources/views/components/codeblock.blade.php')
-rw-r--r--resources/views/components/codeblock.blade.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/resources/views/components/codeblock.blade.php b/resources/views/components/codeblock.blade.php
deleted file mode 100644
index ff7c2a5..0000000
--- a/resources/views/components/codeblock.blade.php
+++ /dev/null
@@ -1,14 +0,0 @@
-@php
-$file_path = "code/".$file;
-$file_name = basename($file_path);
-
-$hl = new \Highlight\Highlighter();
-
-$highlighted = $hl->highlight($lang, Storage::disk('local')->get($file_path));
-$file_size = Storage::disk('local')->size($file_path);
-@endphp
-<div class="code-block">
- <h1>{{ $file_name }} <small>{{ $file_size}} bytes</small></h1>
- <hr>
- <code class="hljs {{$highlighted->language}}">{!! $highlighted->value !!}</code>
-</div>