cobalt/web/src/lib/env.ts
wukko aba444ec8b
web: updated api endpoint & params, default instance override
- dialogs can be undismissable now (impossible to click away by pressing the bg behind it)
- added security warning about api override
- moved default api url to env
- added new processing settings page
2024-08-04 00:43:24 +06:00

28 lines
991 B
TypeScript

import { env } from "$env/dynamic/public";
const variables = {
HOST: env.PUBLIC_HOST,
PLAUSIBLE_HOST: env.PUBLIC_PLAUSIBLE_HOST,
PLAUSIBLE_ENABLED: env.PUBLIC_HOST && env.PUBLIC_PLAUSIBLE_HOST,
DEFAULT_API: env.PUBLIC_DEFAULT_API,
}
const donate = {
stripe: 'https://donate.stripe.com/3cs2cc6ew1Qda4wbII',
liberapay: 'https://liberapay.com/imput/donate',
crypto: {
monero: '4B1SNB6s8Pq1hxjNeKPEe8Qa8EP3zdL16Sqsa7QDoJcUecKQzEj9BMxWnEnTGu12doKLJBKRDUqnn6V9qfSdXpXi3Nw5Uod',
litecoin: 'ltc1qvp0xhrk2m7pa6p6z844qcslfyxv4p3vf95rhna',
ethereum: '0x4B4cF23051c78c7A7E0eA09d39099621c46bc302',
tron: 'TVbx7YT3rBfu931Gxko6pRfXtedYqbgnBB',
bitcoin: 'bc1qlvcnlnyzfsgnuxyxsv3k0p0q0yln0azjpadyx4',
'bitcoin (legacy)': '18PKf6N2cHrmSzz9ZzTSvDd2jAkqGC7SxA',
ton: 'UQA3SO-hHZq1oCCT--u6or6ollB8fd2o52aD8mXiLk9iDZd3'
}
};
const apiURL = "https://api.cobalt.tools";
export { donate, apiURL };
export default variables;