Skip to content

Commit

Permalink
Added security.txt, .gitattributes and PR template (#129)
Browse files Browse the repository at this point in the history
* added security.txt, gitattributes

* Added PR template

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
dominikgeissler and pre-commit-ci[bot] authored Mar 3, 2024
1 parent 6347b55 commit 8f17414
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto

*.png binary
*.jpg binary
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Description

<!-- Briefly describe the changes introduced by this pull request -->

## Changelog

<!-- Provide your changes here, ideally with issue references. Remove unused subchapters -->
<!-- cf. https://keepachangelog.com/ -->

#### Added

#### Changed

#### Removed

## Additional information

<!-- If there is something to mention, here is the place! -->
4 changes: 0 additions & 4 deletions src/routes/[...slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import { fetch_page } from '$lib/fetch'
import { error } from '@sveltejs/kit'

export const load = async ({ params }) => {
// delegate route to static/robots.txt
// is this check necessary, will prob fallthrough anyway
if (params.slug === `robots.txt`) throw error(404)

const page = await fetch_page(params.slug)

// If no page data could be fetched for params.slug, the page doesn't exist,
Expand Down
3 changes: 3 additions & 0 deletions static/security.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Contact: mailto:it@studytutors.de
Expires: 2030-01-01T11:00:00.000Z
Preferred-Languages: en,de
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"sourceMap": true,

"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
},
"resolveJsonModule": true
}
}

0 comments on commit 8f17414

Please sign in to comment.