Logo
Explore Help
Register Sign In
immich-app/immich
1
0
Fork 0
You've already forked immich
mirror of https://github.com/immich-app/immich.git synced 2025-12-18 01:11:07 +03:00
Code Issues Packages Projects Releases 16 Wiki Activity
Files
cb0e37e76e72984a5fc00ca9cda911fe6079c5f9
immich/web/src/routes/custom.css/+server.ts

14 lines
324 B
TypeScript
Raw Normal View History

feat(web): custom stylesheets (#4602) * add initial ui and api definitions for stylesheets * proper saving * make custom css work * add textarea * rebuild api * run prettier * add typecast * update typings * move css accordion to be sorted alphabetically * set content-type properly * rename stylesheets to theme * fix server test
2023-10-23 11:38:41 -07:00
import { RequestHandler, text } from '@sveltejs/kit';
export const GET = (async ({ locals: { api } }) => {
fix(web): fix Theme Custom CSS endpoint requiring the user to be logged in as the server admin (#4633) * fix custom css requiring the user to be the admin and logged in * move theme api to custom endpoint * add e2e test
2023-10-25 15:13:05 -07:00
const {
data: {
theme: { customCss },
},
} = await api.serverInfoApi.getTheme();
feat(web): custom stylesheets (#4602) * add initial ui and api definitions for stylesheets * proper saving * make custom css work * add textarea * rebuild api * run prettier * add typecast * update typings * move css accordion to be sorted alphabetically * set content-type properly * rename stylesheets to theme * fix server test
2023-10-23 11:38:41 -07:00
return text(customCss, {
headers: {
'Content-Type': 'text/css',
},
});
}) satisfies RequestHandler;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 40ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API