generated from Seekra/repository-template
Compare commits
46
Commits
503a39aa03
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c01353d6b7
|
||
|
|
48e955bbf6
|
||
|
|
62c050f2b6
|
||
|
|
8af71a05ce
|
||
|
|
43d5be194a
|
||
|
|
5a3b27ff22
|
||
|
|
210e007b16 | ||
|
|
4eaeb1a269 | ||
|
|
6d1f736922 | ||
|
|
018b3e5efd | ||
|
|
873a0514c9 | ||
|
|
bda16c82ed | ||
|
|
1ae6293ca3 | ||
|
|
fccc3e1e5e | ||
|
|
7f68ccbc5d | ||
|
|
e4a1ec936f | ||
|
|
4cc97f3a1a | ||
|
|
58fdbfc35b | ||
|
|
8b6abf9c90 | ||
|
|
1ef439ff6e | ||
|
|
2ec47287eb | ||
|
|
2003b08a1b | ||
|
|
ee84983242 | ||
|
|
783a7a2a19 | ||
|
|
9f4e6c36a1 | ||
|
|
d339a65cea | ||
|
|
2415b7df32 | ||
|
|
126b68953e | ||
|
|
6ef56e7d16 | ||
|
|
b93c515f55 | ||
|
|
1e21e1889f | ||
|
|
e1ecb06f42 | ||
|
|
73646b35dd | ||
|
|
9adc98a795 | ||
|
|
e47555e386 | ||
|
|
b3056831cb | ||
|
|
5f1339f9cf | ||
|
|
1cfc2538f3 | ||
|
|
a989166b4a | ||
|
|
346be44724 | ||
|
|
1bd62c70e6 | ||
|
|
33672800b4 | ||
|
|
31a278d06e | ||
|
|
c1ec298820 | ||
|
|
6282d40265 | ||
|
|
a5e72d5e47 |
@@ -0,0 +1,18 @@
|
|||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.woff2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.woff filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jpg filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tiff filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jfif filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bmp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pbm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pgm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ppm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ogg filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.m4a filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wav filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# ------------------------------------------------ SUBJECT AREA
|
||||||
|
# ---------------------------------------------------------------------- DETAIL AREA
|
||||||
|
|
||||||
|
# Please enter a subject that is not longer than 50 characters.
|
||||||
|
# If you enter a detailed description, each line should not be longer
|
||||||
|
# than 72 characters. Break the line as soon as you reach this limit.
|
||||||
@@ -1,3 +1,23 @@
|
|||||||
# repository-template
|
# frontend-assets
|
||||||
|
|
||||||
The template for repositories
|
The assets for the frontend of the search engine *Seekra*
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Please execute the setup script in `scripts/` for your platform when cloning the repository.
|
||||||
|
|
||||||
|
## Project structure
|
||||||
|
|
||||||
|
All assets are located in subfolders for their asset type in `src/`. Assets types are:
|
||||||
|
|
||||||
|
- Fonts (`fonts`)
|
||||||
|
- Images (`images`)
|
||||||
|
- Videos (`videos`)
|
||||||
|
- Audio (`audio`)
|
||||||
|
- Icons (`icons`)
|
||||||
|
|
||||||
|
There are also some special `src/` subfolders like those for legal content.
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Please execute the setup script in `scripts/` for your platform when cloning the repository.
|
||||||
+10
-9
@@ -21,32 +21,33 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises';
|
|||||||
export default async function build () {
|
export default async function build () {
|
||||||
const md = MarkdownIt();
|
const md = MarkdownIt();
|
||||||
|
|
||||||
const imprintMd = await readFile('./src/legal/imprint.md', { encoding: 'utf-8' });
|
const legalNoticeMd = await readFile('./src/legal/legal_notice.md', { encoding: 'utf-8' });
|
||||||
const imprintHtml = md.render(imprintMd);
|
const legalNoticeHtml = md.render(legalNoticeMd);
|
||||||
|
|
||||||
const fullImprintHTML = `
|
const fullLegalNoticeHTML = `
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>
|
<title>
|
||||||
Imprint
|
Legal Notice
|
||||||
</title>
|
</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>
|
<h1>
|
||||||
Imprint
|
Legal Notice
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
${imprintHtml}
|
${legalNoticeHtml}
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
|
|
||||||
const imprintHtmlMinified = await minify(fullImprintHTML, {
|
const legalNoticeHtmlMinified = await minify(fullLegalNoticeHTML, {
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
|
conservativeCollapse: true,
|
||||||
collapseInlineTagWhitespace: true,
|
collapseInlineTagWhitespace: true,
|
||||||
removeComments: true
|
removeComments: true
|
||||||
});
|
});
|
||||||
@@ -55,10 +56,10 @@ export default async function build () {
|
|||||||
artifacts: [
|
artifacts: [
|
||||||
{
|
{
|
||||||
name: 'legal',
|
name: 'legal',
|
||||||
path: 'legal/imprint.html',
|
path: 'legal/legal_notice.html',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
options: {
|
options: {
|
||||||
content: imprintHtmlMinified,
|
content: legalNoticeHtmlMinified,
|
||||||
encoding: 'utf-8'
|
encoding: 'utf-8'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## [1.0.0] - 2026-08-02
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- *Inter* font
|
||||||
|
- Legal notice
|
||||||
|
- Build system for building the assets
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "frontend-assets",
|
"name": "frontend-assets",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "frontend-assets",
|
"name": "frontend-assets",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"html-minifier-terser": "^7.2.0",
|
"html-minifier-terser": "^7.2.0",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "frontend-assets",
|
"name": "frontend-assets",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"description": "The assets for the frontend of Seekra",
|
"description": "The assets for the frontend of Seekra",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
|
||||||
|
# Copyright 2026 Seekra
|
||||||
|
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
git config --local commit.template .gitmessage
|
||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# Copyright 2026 Seekra
|
||||||
|
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
git config --local commit.template .gitmessage
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user