-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f84afd0
Showing
38 changed files
with
8,696 additions
and
0 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,16 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.ts] | ||
quote_type = single | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
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,17 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,15 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
tags: [ 'v*' ] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@V27 | ||
- run: nix build -L |
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,46 @@ | ||
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files. | ||
|
||
# Compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
/bazel-out | ||
|
||
# Node | ||
/node_modules | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# IDEs and editors | ||
.idea/ | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# Visual Studio Code | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
.history/* | ||
|
||
# Miscellaneous | ||
/.angular/cache | ||
.sass-cache/ | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
testem.log | ||
/typings | ||
|
||
# System files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
|
||
# CUSTOM | ||
/result |
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 @@ | ||
@feel:registry=https://codeberg.org/api/packages/m4rc3l/npm/ |
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,130 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"nuscht-search": { | ||
"projectType": "application", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"style": "scss" | ||
} | ||
}, | ||
"root": "", | ||
"sourceRoot": "src", | ||
"prefix": "app", | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:application", | ||
"options": { | ||
"outputPath": "dist/nuscht-search", | ||
"index": "src/index.html", | ||
"browser": "src/main.ts", | ||
"polyfills": [ | ||
"zone.js" | ||
], | ||
"tsConfig": "tsconfig.app.json", | ||
"inlineStyleLanguage": "scss", | ||
"assets": [ | ||
{ | ||
"glob": "**/*", | ||
"input": "public" | ||
} | ||
], | ||
"styles": [ | ||
"node_modules/@fontsource/dm-sans/400.css", | ||
"node_modules/@fontsource/dm-sans/400-italic.css", | ||
"node_modules/@fontsource/dm-sans/700.css", | ||
"node_modules/@fontsource/dm-sans/700-italic.css", | ||
"node_modules/@fontsource/dm-mono/400.css", | ||
"node_modules/@feel/style/main.scss", | ||
"src/styles.scss" | ||
], | ||
"scripts": [], | ||
"stylePreprocessorOptions": { | ||
"includePaths": [ | ||
"node_modules/@feel/style/global", | ||
"src/scss/global" | ||
] | ||
} | ||
}, | ||
"configurations": { | ||
"production": { | ||
"budgets": [ | ||
{ | ||
"type": "initial", | ||
"maximumWarning": "500kB", | ||
"maximumError": "1MB" | ||
}, | ||
{ | ||
"type": "anyComponentStyle", | ||
"maximumWarning": "2kB", | ||
"maximumError": "4kB" | ||
} | ||
], | ||
"outputHashing": "all" | ||
}, | ||
"development": { | ||
"optimization": false, | ||
"extractLicenses": false, | ||
"sourceMap": true | ||
} | ||
}, | ||
"defaultConfiguration": "production" | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"configurations": { | ||
"production": { | ||
"buildTarget": "nuscht-search:build:production" | ||
}, | ||
"development": { | ||
"buildTarget": "nuscht-search:build:development" | ||
} | ||
}, | ||
"defaultConfiguration": "development" | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n" | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"polyfills": [ | ||
"zone.js", | ||
"zone.js/testing" | ||
], | ||
"tsConfig": "tsconfig.spec.json", | ||
"inlineStyleLanguage": "scss", | ||
"assets": [ | ||
{ | ||
"glob": "**/*", | ||
"input": "public" | ||
} | ||
], | ||
"styles": [ | ||
"node_modules/@fontsource/dm-sans/400.css", | ||
"node_modules/@fontsource/dm-sans/400-italic.css", | ||
"node_modules/@fontsource/dm-sans/700.css", | ||
"node_modules/@fontsource/dm-sans/700-italic.css", | ||
"node_modules/@fontsource/dm-mono/400.css", | ||
"node_modules/@feel/style/main.scss", | ||
"src/styles.scss" | ||
], | ||
"scripts": [], | ||
"stylePreprocessorOptions": { | ||
"includePaths": [ | ||
"node_modules/@feel/style/global", | ||
"src/scss/global" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"cli": { | ||
"analytics": false, | ||
"packageManager": "pnpm" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem | ||
(system: | ||
let | ||
pkgs = (import nixpkgs) { | ||
inherit system; | ||
}; | ||
in | ||
{ | ||
packages = rec { | ||
nuscht-search = pkgs.callPackage ./nix/frontend.nix { }; | ||
mkSearch = pkgs.callPackage ./nix/wrapper.nix { inherit nuscht-search; }.mkSearch; | ||
default = nuscht-search; | ||
}; | ||
} | ||
); | ||
} |
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,33 @@ | ||
#!/usr/bin/env python | ||
import sys | ||
import json | ||
import markdown | ||
from pygments import highlight | ||
from pygments.lexers import NixLexer | ||
from pygments.formatters import HtmlFormatter | ||
|
||
file = open(sys.argv[1]) | ||
url = sys.argv[2] | ||
data = json.load(file) | ||
|
||
out = [] | ||
|
||
def code(code): | ||
assert code["_type"] == 'literalExpression' | ||
return highlight(code["text"], NixLexer(), HtmlFormatter()) | ||
|
||
for key in data: | ||
entry = data[key] | ||
entry["name"] = key | ||
del entry["loc"] | ||
entry["declarations"] = list(map(lambda x: f"{url}{x[51:]}",entry["declarations"])) | ||
|
||
entry["description"] = markdown.markdown(entry["description"]) | ||
if 'default' in entry: | ||
entry['default'] = code(entry["default"]) | ||
if 'example' in entry: | ||
entry['example'] = code(entry["example"]) | ||
out.append(entry) | ||
|
||
|
||
print(json.dumps(out)) |
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,32 @@ | ||
{ lib, stdenv, pnpm_8, nodejs }: | ||
|
||
let | ||
manifest = lib.importJSON ../package.json; | ||
in | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = manifest.name; | ||
inherit (manifest) version; | ||
|
||
src = lib.cleanSourceWith { | ||
filter = name: type: (!lib.hasSuffix ".nix" name); | ||
src = lib.cleanSource ./..; | ||
}; | ||
|
||
pnpmDeps = pnpm_8.fetchDeps { | ||
inherit (finalAttrs) pname version src; | ||
hash = "sha256-0t9qJ2Cgq2mbiVnFbd61knlzdqQ68RIIW+toa21h8NU="; | ||
}; | ||
|
||
nativeBuildInputs = [ nodejs pnpm_8.configHook ]; | ||
|
||
buildPhase = '' | ||
pnpm run build:ci | ||
''; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out | ||
cp -r ./dist/browser/* $out/ | ||
runHook postInstall | ||
''; | ||
}) |
Oops, something went wrong.