-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #210: validate line ending and file encodings
Signed-off-by: alexmerlin <[email protected]>
- Loading branch information
1 parent
93cb43c
commit 30692ee
Showing
16 changed files
with
2,591 additions
and
2,559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: | ||
- push | ||
|
||
name: Check File Encodings | ||
|
||
jobs: | ||
check_encoding: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check file encodings | ||
run: | | ||
find . -type f ! -path "./.git/*" -exec sh -c ' | ||
for file do | ||
encoding=$(file -bi "$file" | awk -F "=" '{print $2}') | ||
if [ "$encoding" != "utf-8" ]; then | ||
echo "File $file has encoding $encoding" | ||
exit 1 | ||
fi | ||
done | ||
' sh {} + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#2d89ef</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#2d89ef</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#2d89ef</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#2d89ef</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
$(document).ready(function () { | ||
$(document).on('click', '.language-container .language-active', function () { | ||
$(".language-list").slideToggle("fast"); | ||
}); | ||
|
||
$(document).on('click', '.language-container .language', function () { | ||
let language = $(this); | ||
let languageKey = $(this).data('language-key'); | ||
let langImageSrc = language.find('img').attr('src'); | ||
|
||
$('.language-container .language-active').find('img').attr('src', langImageSrc); | ||
|
||
$(".language-list").slideToggle("fast"); | ||
$(".language-list .language").removeClass('active'); | ||
|
||
$.post( | ||
'/language/change', | ||
{ | ||
'languageKey': languageKey | ||
} | ||
) | ||
.done(function () { | ||
// activate language in list | ||
language.addClass('active'); | ||
|
||
// reload page | ||
location.reload(); | ||
}); | ||
}); | ||
}); | ||
$(document).ready(function () { | ||
$(document).on('click', '.language-container .language-active', function () { | ||
$(".language-list").slideToggle("fast"); | ||
}); | ||
|
||
$(document).on('click', '.language-container .language', function () { | ||
let language = $(this); | ||
let languageKey = $(this).data('language-key'); | ||
let langImageSrc = language.find('img').attr('src'); | ||
|
||
$('.language-container .language-active').find('img').attr('src', langImageSrc); | ||
|
||
$(".language-list").slideToggle("fast"); | ||
$(".language-list .language").removeClass('active'); | ||
|
||
$.post( | ||
'/language/change', | ||
{ | ||
'languageKey': languageKey | ||
} | ||
) | ||
.done(function () { | ||
// activate language in list | ||
language.addClass('active'); | ||
|
||
// reload page | ||
location.reload(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
$(document).ready(function () { | ||
/* Search patterns */ | ||
$('.collapse-menu').on('click', function () { | ||
$('.profile-action-menu').slideToggle(); | ||
}); | ||
}); | ||
$(document).ready(function () { | ||
/* Search patterns */ | ||
$('.collapse-menu').on('click', function () { | ||
$('.profile-action-menu').slideToggle(); | ||
}); | ||
}); |
Oops, something went wrong.