Skip to content

Commit f5ba0b1

Browse files
committed
Merge branch 'main' of github.com:laravelcm/laravel.cm into main
2 parents 56f1c50 + 5a3f812 commit f5ba0b1

File tree

7 files changed

+17
-3
lines changed

7 files changed

+17
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<a href="https://github.com/laravelcm/laravel.cm/actions">
77
<img src="https://github.com/laravelcm/laravel.cm/workflows/Tests/badge.svg" alt="Build Status" />
88
</a>
9+
<a href="https://forge.laravel.com">
10+
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fforge.laravel.com%2Fsite-badges%2Fb0b9e269-e85c-40eb-9b8d-cfa8197a1bb2&style=plastic" alt="Laravel Forge Site Deployment Status" />
11+
</a>
912
</p>
1013

1114
## Laravel.cm

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"axios": "^0.21.1",
3939
"canvas-confetti": "^1.4.0",
4040
"choices.js": "^9.0.1",
41+
"highlight.js": "^11.7.0",
4142
"htm": "^3.1.0",
4243
"intl-tel-input": "^17.0.13",
4344
"preact": "^10.5.15",

public/css/app.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/js/app.js": "/js/app.js?id=14e78ed3da0550befb1ae94a465013f5",
3-
"/css/app.css": "/css/app.css?id=e949df09924e368d035a31b5f215b118",
2+
"/js/app.js": "/js/app.js?id=d891a2d14ba2c320f58fd39d97107432",
3+
"/css/app.css": "/css/app.css?id=eaeae4ed6500cc10a072b4753147ef7f",
44
"/css/filament.css": "/css/filament.css?id=31807c66ef04b2d10d4b1a197a767d07"
55
}

resources/css/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import "tailwindcss/utilities";
44

55
@import '../../vendor/filament/forms/dist/module.esm.css';
6+
@import "~highlight.js/styles/atom-one-dark.css";
67
@import '~choices.js/public/assets/styles/choices.css';
78
@import '~intl-tel-input/build/css/intlTelInput.css';
89

resources/js/helpers.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
import hljs from 'highlight.js'
12
import Choices from 'choices.js'
23

34
// Create a multiselect element.
45
window.choices = (element) => {
56
return new Choices(element, { maxItemCount: 3, removeItemButton: true });
67
}
78

9+
// Syntax highlight code blocks.
10+
window.highlightCode = (element) => {
11+
element.querySelectorAll('pre code').forEach((block) => {
12+
hljs.highlightBlock(block);
13+
})
14+
}
15+
816
// Create Capitalize string
917
window.capitalize = (string) => string.replace(/^\w/, (c) => c.toUpperCase())
1018

0 commit comments

Comments
 (0)