mirror of
https://github.com/ProjectSegfault/website.git
synced 2025-05-31 14:12:04 +05:30
fix build
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import HCaptcha from "svelte-hcaptcha";
|
||||
import { Note } from "$lib/Form";
|
||||
import config from "$lib/config";
|
||||
|
||||
let submit = false;
|
||||
|
||||
const showSubmitButton = () => {
|
||||
submit = !submit;
|
||||
};
|
||||
|
||||
export let sitekey: string;
|
||||
</script>
|
||||
|
||||
<Note
|
||||
@@ -15,7 +16,7 @@
|
||||
icon="i-fa6-solid:circle-info"
|
||||
/>
|
||||
<HCaptcha
|
||||
sitekey={config.app.hcaptcha.sitekey}
|
||||
{sitekey}
|
||||
on:success={showSubmitButton}
|
||||
/>
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<svelte:window bind:innerWidth />
|
||||
|
||||
<nav
|
||||
class="bg-primary border-b-1 border-b-grey flex p-2 flex-col justify-between nav:(flex-row items-center)"
|
||||
class="bg-primary border-b-1 border-b-solid border-b-grey flex p-2 flex-col justify-between nav:(flex-row items-center)"
|
||||
>
|
||||
<div class="flex flex-row items-center justify-between">
|
||||
<a
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
import { parse } from "yaml";
|
||||
import fs from "fs";
|
||||
|
||||
interface Config {
|
||||
db: {
|
||||
url: string;
|
||||
};
|
||||
app: {
|
||||
auth: {
|
||||
clientId: string;
|
||||
clientSecret: string;
|
||||
issuer: string;
|
||||
}
|
||||
hcaptcha: {
|
||||
secret: string;
|
||||
sitekey: string;
|
||||
};
|
||||
webhook: string;
|
||||
};
|
||||
}
|
||||
|
||||
const config: Config = parse(fs.readFileSync("./config/config.yml", "utf8"));
|
||||
|
||||
export default config;
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Sequelize, DataTypes } from "sequelize";
|
||||
import config from "$lib/config";
|
||||
import consola from "consola";
|
||||
import { env } from "$env/dynamic/private";
|
||||
|
||||
const sequelize = new Sequelize(config.db.url);
|
||||
const sequelize = new Sequelize(env.DB_URL);
|
||||
|
||||
sequelize.define("Announcements", {
|
||||
title: {
|
||||
|
||||
Reference in New Issue
Block a user