Compare commits

..

17 commits

Author SHA1 Message Date
Laura Hausmann 2a1445d6e9
[frontend] Fix favicon
All checks were successful
/ test-build (push) Successful in 1m24s
2023-12-16 17:43:33 +01:00
Laura Hausmann d7d2401ca0
[frontend] Improve api helper function 2023-12-16 17:43:33 +01:00
Laura Hausmann 80fbba219b
[yarn] Add build:rewrite command for faster builds 2023-12-16 17:43:33 +01:00
Laura Hausmann fd1b29e7ef
[backend/web-api] Fix session table migration 2023-12-16 17:43:32 +01:00
Laura Hausmann 2d6c4ef5d3
[backend/web-api] Add endpoint security policy, response & request body types 2023-12-16 17:43:32 +01:00
Laura Hausmann f4dcd08e89
[backend/web-api] Add response descriptions and status codes 2023-12-16 17:43:32 +01:00
Laura Hausmann ddfe8bb48e
[backend/web-api] Add OpenAPI descriptions and fix controller naming 2023-12-16 17:43:32 +01:00
Laura Hausmann d1aa541a53
[backend/web-api] Add pagination to timeline and user note endpoints 2023-12-16 17:43:32 +01:00
Laura Hausmann a168e4ec03
[backend/web-api] Move auth code into handler 2023-12-16 17:43:31 +01:00
Laura Hausmann ba76c5e67b
[backend/web-api] Add basic timeline endpoint 2023-12-16 17:43:31 +01:00
Laura Hausmann 8134e92284
[backend/web-api] Make auth status response less confusing 2023-12-16 17:43:31 +01:00
Laura Hausmann 1870dc33b5
[backend/web-api] Add basic auth endpoints and a bunch of other things 2023-12-16 17:43:31 +01:00
Laura Hausmann b9c86d0d4c
[backend] More Web API rewrite preparations 2023-12-16 17:43:31 +01:00
Laura Hausmann 71d171a953
[frontend] Set up ESLint 2023-12-16 17:43:30 +01:00
Laura Hausmann e2a56a0061
[frontend] Web client groundwork 2023-12-16 17:43:30 +01:00
Laura Hausmann b6523bc87f
[yarn] Update VueJS to latest version 2023-12-16 17:43:29 +01:00
Laura Hausmann 152cd72593
[backend] Web API groundwork 2023-12-16 17:43:29 +01:00
249 changed files with 6523 additions and 4963 deletions

View file

@ -57,18 +57,6 @@ db:
# host: localhost
# rejectUnauthorized: false
# You can enable different different logging levels by setting the value of logging to any of the values listed below
# * 'error' - logs all failed queries and errors
# * 'slow' - logs slow queries
# * 'query' - logs all queries
# * 'schema' - logs the schema build process
# * 'info' - logs internal orm informative messages
# * 'log' - logs internal orm log messages
# You can set multiple log level by specifying them as an array i.e ['log', 'info']
# You can set disable all log levels by specifying an empty array: []
# You can set enable all log levels by specifying the special value: 'all'
logging: ['error', 'slow']
# ┌─────────────────────┐
#───┘ Redis configuration └─────────────────────────────────────

4
.gitignore vendored
View file

@ -81,7 +81,3 @@ pnpm*
# Nix Development shell items
.devenv
.direnv
# helm chart dependencies
chart/charts
chart/Chart.lock

1791
.pnp.cjs generated

File diff suppressed because it is too large Load diff

86
.pnp.loader.mjs generated
View file

@ -1,6 +1,3 @@
/* eslint-disable */
// @ts-nocheck
import fs from 'fs';
import { URL as URL$1, fileURLToPath, pathToFileURL } from 'url';
import path from 'path';
@ -112,9 +109,10 @@ async function copyImpl(prelayout, postlayout, destinationFs, destination, sourc
updated = await copySymlink(prelayout, postlayout, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts);
}
break;
default: {
throw new Error(`Unsupported file type (${sourceStat.mode})`);
}
default:
{
throw new Error(`Unsupported file type (${sourceStat.mode})`);
}
}
if (opts.linkStrategy?.type !== `HardlinkFromIndex` || !sourceStat.isFile()) {
if (updated || destinationStat?.mtime?.getTime() !== mtime.getTime() || destinationStat?.atime?.getTime() !== atime.getTime()) {
@ -177,10 +175,7 @@ async function copyFolder(prelayout, postlayout, destinationFs, destination, des
}
async function copyFileViaIndex(prelayout, postlayout, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts, linkStrategy) {
const sourceHash = await sourceFs.checksumFilePromise(source, { algorithm: `sha1` });
const defaultMode = 420;
const sourceMode = sourceStat.mode & 511;
const indexFileName = `${sourceHash}${sourceMode !== defaultMode ? sourceMode.toString(8) : ``}`;
const indexPath = destinationFs.pathUtils.join(linkStrategy.indexPath, sourceHash.slice(0, 2), `${indexFileName}.dat`);
const indexPath = destinationFs.pathUtils.join(linkStrategy.indexPath, sourceHash.slice(0, 2), `${sourceHash}.dat`);
let AtomicBehavior;
((AtomicBehavior2) => {
AtomicBehavior2[AtomicBehavior2["Lock"] = 0] = "Lock";
@ -236,12 +231,8 @@ async function copyFileViaIndex(prelayout, postlayout, destinationFs, destinatio
}
});
postlayout.push(async () => {
if (!indexStat) {
if (!indexStat)
await destinationFs.lutimesPromise(indexPath, defaultTime, defaultTime);
if (sourceMode !== defaultMode) {
await destinationFs.chmodPromise(indexPath, sourceMode);
}
}
if (tempPath && !tempPathCleaned) {
await destinationFs.unlinkPromise(tempPath);
}
@ -833,12 +824,6 @@ class ProxiedFS extends FakeFS {
rmdirSync(p, opts) {
return this.baseFs.rmdirSync(this.mapToBase(p), opts);
}
async rmPromise(p, opts) {
return this.baseFs.rmPromise(this.mapToBase(p), opts);
}
rmSync(p, opts) {
return this.baseFs.rmSync(this.mapToBase(p), opts);
}
async linkPromise(existingP, newP) {
return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP));
}
@ -1220,18 +1205,6 @@ class NodeFS extends BasePortableFakeFS {
rmdirSync(p, opts) {
return this.realFs.rmdirSync(npath.fromPortablePath(p), opts);
}
async rmPromise(p, opts) {
return await new Promise((resolve, reject) => {
if (opts) {
this.realFs.rm(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
} else {
this.realFs.rm(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
}
});
}
rmSync(p, opts) {
return this.realFs.rmSync(npath.fromPortablePath(p), opts);
}
async linkPromise(existingP, newP) {
return await new Promise((resolve, reject) => {
this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject));
@ -1419,13 +1392,9 @@ class VirtualFS extends ProxiedFS {
}
}
const URL = Number(process.versions.node.split('.', 1)[0]) < 20 ? URL$1 : globalThis.URL;
const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13;
const HAS_LAZY_LOADED_TRANSLATORS = major === 20 && minor < 6 || major === 19 && minor >= 3;
const SUPPORTS_IMPORT_ATTRIBUTES = major >= 21 || major === 20 && minor >= 10 || major === 18 && minor >= 20;
const SUPPORTS_IMPORT_ATTRIBUTES_ONLY = major >= 22;
function readPackageScope(checkPath) {
const rootSeparatorIndex = checkPath.indexOf(npath.sep);
@ -1463,7 +1432,7 @@ async function tryReadFile$1(path2) {
}
function tryParseURL(str, base) {
try {
return new URL(str, base);
return new URL$1(str, base);
} catch {
return null;
}
@ -1516,21 +1485,10 @@ async function load$1(urlString, context, nextLoad) {
const format = getFileFormat(filePath);
if (!format)
return nextLoad(urlString, context, nextLoad);
if (format === `json`) {
if (SUPPORTS_IMPORT_ATTRIBUTES_ONLY) {
if (context.importAttributes?.type !== `json`) {
const err = new TypeError(`[ERR_IMPORT_ATTRIBUTE_MISSING]: Module "${urlString}" needs an import attribute of "type: json"`);
err.code = `ERR_IMPORT_ATTRIBUTE_MISSING`;
throw err;
}
} else {
const type = `importAttributes` in context ? context.importAttributes?.type : context.importAssertions?.type;
if (type !== `json`) {
const err = new TypeError(`[ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "${urlString}" needs an import ${SUPPORTS_IMPORT_ATTRIBUTES ? `attribute` : `assertion`} of type "json"`);
err.code = `ERR_IMPORT_ASSERTION_TYPE_MISSING`;
throw err;
}
}
if (format === `json` && context.importAssertions?.type !== `json`) {
const err = new TypeError(`[ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "${urlString}" needs an import assertion of type "json"`);
err.code = `ERR_IMPORT_ASSERTION_TYPE_MISSING`;
throw err;
}
if (process.env.WATCH_REPORT_DEPENDENCIES && process.send) {
const pathToSend = pathToFileURL(
@ -1718,6 +1676,28 @@ function getPackageScopeConfig(resolved, readFileSyncFn) {
return packageConfig;
}
/**
@license
Copyright Node.js contributors. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
*/
function throwImportNotDefined(specifier, packageJSONUrl, base) {
throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(
specifier,

Binary file not shown.

BIN
.yarn/cache/@babel-parser-npm-7.23.5-6bd8ea402a-828c250ace.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@esbuild-darwin-arm64-npm-0.19.8-b1920f84ba-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@esbuild-darwin-x64-npm-0.19.8-36f500fc51-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@esbuild-linux-arm64-npm-0.19.8-2687227d41-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@esbuild-linux-x64-npm-0.19.8-231d24e5e4-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@eslint-eslintrc-npm-2.1.4-1ff4b5f908-7a3b14f4b4.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@eslint-js-npm-8.55.0-ec5eb0638e-34b001a95b.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@hapi-boom-npm-10.0.1-306fb2f69f-99415b0e2f.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@hapi-hoek-npm-11.0.4-3a5c13a5d9-0cf1c0dbd2.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@iceshrimp-koa-openapi-npm-3.2.0-d2c290057b-5ec6ea58be.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@koa-cors-npm-4.0.0-e1649c9262-1509d98b72.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@koa-router-npm-12.0.1-6a9764e4df-f9427c8eb2.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@polka-url-npm-1.0.0-next.24-058e984602-00baec4458.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@rollup-pluginutils-npm-4.2.1-0f52a5eba2-503a6f0a44.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@types-eslint-npm-8.44.8-54a444f190-d6e0788eb7.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@types-json-schema-npm-7.0.15-fd16381786-1a3c3e0623.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@types-koa-ratelimit-npm-5.0.4-92296aa01b-5233eec465.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@types-validator-npm-13.11.7-1eda8f8948-5935d363a9.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@typescript-eslint-types-npm-6.14.0-2f9024a803-bcb32d69ac.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@typescript-eslint-utils-npm-6.14.0-647650f908-fec7338edc.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@ungap-structured-clone-npm-1.2.0-648f0b82e0-c6fe89a505.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@volar-language-core-npm-1.11.1-e30e50203f-2fef58727b.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@volar-source-map-npm-1.11.1-19e27a8f3b-b90c32b23b.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@volar-typescript-npm-1.11.1-9a11b85d7c-714eeb3472.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@vue-compiler-core-npm-3.3.11-9c921513a3-21c26fbd74.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-compiler-dom-npm-3.3.11-3c9cd5090b-3f50737112.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-compiler-sfc-npm-3.3.11-7897401907-6da08010d1.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-compiler-ssr-npm-3.3.11-9997e0d2ab-c62264f08f.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-devtools-api-npm-6.5.1-a00bfbc22f-e94443ce37.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@vue-language-core-npm-1.8.25-60dd634fe2-680d233742.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@vue-reactivity-npm-3.3.11-5aa6345ab2-32081c87db.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-runtime-core-npm-3.3.11-e25ab9e5d4-d81d8e1577.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-runtime-dom-npm-3.3.11-e98ff3a8e5-4bbb3faadc.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-server-renderer-npm-3.3.11-3a26e522c0-2c43dfbdd6.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@vue-shared-npm-3.3.11-b7bfa56604-78ec6715c7.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/async-ratelimiter-npm-1.3.12-25c4d3ff00-bf492d85a3.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/class-transformer-npm-0.5.1-96b5161e6c-750327e3e9.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/class-validator-npm-0.14.0-b600d5fe72-bf550a4ab7.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/commander-npm-11.1.0-56e979613c-66bd2d8a05.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/computeds-npm-0.0.1-bef3a1eb28-738625ccec.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/de-indent-npm-1.0.2-66cccde30f-30bf43744d.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/esbuild-npm-0.19.8-209f9c6f87-8c440db468.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/eslint-npm-8.45.0-a03a909c3f-54820753ae.zip (Stored with Git LFS) vendored

Binary file not shown.

BIN
.yarn/cache/eslint-npm-8.55.0-7e84babe85-afd016cfbe.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/eslint-plugin-vue-npm-9.19.2-535821f985-4cadfd71ef.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/eslint-scope-npm-7.2.2-53cb0df8e8-5c660fb905.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/eslint-visitor-keys-npm-3.4.3-a356ac7e46-3f357c554a.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/handlebars-npm-4.7.8-25244c2c82-bd528f4dd1.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/helmet-npm-6.0.1-204284f33b-0eec311e1a.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/helmet-npm-6.2.0-43622c54ea-f112fcd0d8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/koa-connect-npm-2.1.0-6088d6d945-71ab70c306.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/koa-helmet-npm-7.0.2-4d457c75ac-a2f8f72f05.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/koa-ratelimit-npm-5.1.0-1ab589a18d-09c718b727.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/koa2-swagger-ui-npm-5.10.0-54bce94261-40575d377d.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more