NobGit
public anord read

Ledger

Why work hard when you can work easier?

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 86% CSS 10% SQL 3% Shell 1% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/anord/ledger.git
ssh://[email protected]:2222/orgs/anord/ledger.git

Trace

apps/api/src/services/settings.ts

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

settings.ts on main
Author Date Commit Line Code
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
1
import { env } from "../config/env.js";
Open commit View diff
1 import { env } from "../config/env.js";
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
2
import { pool } from "../db/pool.js";
Open commit View diff
2 import { pool } from "../db/pool.js";
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
3
Open commit View diff
3
Alex Nord 3 months ago 7b9fd81

Continues UI Fixes

Full commit hash
7b9fd81fba50e4e63f3a981dc8ac583996c2482c
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
4
const FIXED_FOOTER = "Powered by Ledger made by ANord.cc";
Open commit View diff
4 const FIXED_FOOTER = "Powered by Ledger made by ANord.cc";
same change 7b9fd81

Continues UI Fixes

Full commit hash
7b9fd81fba50e4e63f3a981dc8ac583996c2482c
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
5
Open commit View diff
5
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
6
function parseFooterLinks(value: unknown) {
Open commit View diff
6 function parseFooterLinks(value: unknown) {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
7
  if (!Array.isArray(value)) {
Open commit View diff
7 if (!Array.isArray(value)) {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
8
    return [] as Array<{ label: string; href: string }>;
Open commit View diff
8 return [] as Array<{ label: string; href: string }>;
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
9
  }
Open commit View diff
9 }
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
10
Open commit View diff
10
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
11
  return value
Open commit View diff
11 return value
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
12
    .map((item) => {
Open commit View diff
12 .map((item) => {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
13
      if (!item || typeof item !== "object") {
Open commit View diff
13 if (!item || typeof item !== "object") {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
14
        return null;
Open commit View diff
14 return null;
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
15
      }
Open commit View diff
15 }
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
16
Open commit View diff
16
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
17
      const label = "label" in item ? String(item.label ?? "").trim() : "";
Open commit View diff
17 const label = "label" in item ? String(item.label ?? "").trim() : "";
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
18
      const href = "href" in item ? String(item.href ?? "").trim() : "";
Open commit View diff
18 const href = "href" in item ? String(item.href ?? "").trim() : "";
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
19
      if (!label || !href) {
Open commit View diff
19 if (!label || !href) {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
20
        return null;
Open commit View diff
20 return null;
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
21
      }
Open commit View diff
21 }
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
22
Open commit View diff
22
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
23
      return { label, href };
Open commit View diff
23 return { label, href };
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
24
    })
Open commit View diff
24 })
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
25
    .filter(Boolean) as Array<{ label: string; href: string }>;
Open commit View diff
25 .filter(Boolean) as Array<{ label: string; href: string }>;
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
26
}
Open commit View diff
26 }
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
27
Open commit View diff
27
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
28
export async function getBrandingSettings() {
Open commit View diff
28 export async function getBrandingSettings() {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
29
  const result = await pool.query(`SELECT * FROM branding_settings ORDER BY created_at ASC LIMIT 1`);
Open commit View diff
29 const result = await pool.query(`SELECT * FROM branding_settings ORDER BY created_at ASC LIMIT 1`);
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
30
  const row =
Open commit View diff
30 const row =
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
31
    result.rows[0] ?? {
Open commit View diff
31 result.rows[0] ?? {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
32
      id: "default",
Open commit View diff
32 id: "default",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
33
      site_name: "Ledger",
Open commit View diff
33 site_name: "Ledger",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
34
      logo_url: null,
Open commit View diff
34 logo_url: null,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
35
      brand_color: "#245cff",
Open commit View diff
35 brand_color: "#245cff",
Alex Nord 3 months ago 7b9fd81

Continues UI Fixes

Full commit hash
7b9fd81fba50e4e63f3a981dc8ac583996c2482c
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
36
      footer_text: FIXED_FOOTER,
Open commit View diff
36 footer_text: FIXED_FOOTER,
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
37
      footer_links: [],
Open commit View diff
37 footer_links: [],
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
38
      public_knowledge_base_enabled: true
Open commit View diff
38 public_knowledge_base_enabled: true
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
39
    };
Open commit View diff
39 };
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
40
Open commit View diff
40
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
41
  return {
Open commit View diff
41 return {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
42
    ...row,
Open commit View diff
42 ...row,
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
43
    footer_text: FIXED_FOOTER,
Open commit View diff
43 footer_text: FIXED_FOOTER,
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
44
    footer_links: parseFooterLinks(row.footer_links)
Open commit View diff
44 footer_links: parseFooterLinks(row.footer_links)
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
45
  };
Open commit View diff
45 };
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
46
}
Open commit View diff
46 }
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
47
Open commit View diff
47
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
48
export async function upsertBrandingSettings(input: {
Open commit View diff
48 export async function upsertBrandingSettings(input: {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
49
  siteName: string;
Open commit View diff
49 siteName: string;
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
50
  logoUrl: string | null;
Open commit View diff
50 logoUrl: string | null;
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
51
  brandColor: string;
Open commit View diff
51 brandColor: string;
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
52
  publicKnowledgeBaseEnabled: boolean;
Open commit View diff
52 publicKnowledgeBaseEnabled: boolean;
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
53
  footerLinks: Array<{ label: string; href: string }>;
Open commit View diff
53 footerLinks: Array<{ label: string; href: string }>;
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
54
}) {
Open commit View diff
54 }) {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
55
  const existing = await getBrandingSettings();
Open commit View diff
55 const existing = await getBrandingSettings();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
56
  if (existing) {
Open commit View diff
56 if (existing) {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
57
    const result = await pool.query(
Open commit View diff
57 const result = await pool.query(
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
58
      `
Open commit View diff
58 `
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
59
        UPDATE branding_settings
Open commit View diff
59 UPDATE branding_settings
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
60
        SET site_name = $2, logo_url = $3, brand_color = $4, footer_text = $5,
Open commit View diff
60 SET site_name = $2, logo_url = $3, brand_color = $4, footer_text = $5,
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
61
            public_knowledge_base_enabled = $6, footer_links = $7, updated_at = now()
Open commit View diff
61 public_knowledge_base_enabled = $6, footer_links = $7, updated_at = now()
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
62
        WHERE id = $1
Open commit View diff
62 WHERE id = $1
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
63
        RETURNING *
Open commit View diff
63 RETURNING *
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
64
      `,
Open commit View diff
64 `,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
65
      [
Open commit View diff
65 [
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
66
        existing.id,
Open commit View diff
66 existing.id,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
67
        input.siteName,
Open commit View diff
67 input.siteName,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
68
        input.logoUrl,
Open commit View diff
68 input.logoUrl,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
69
        input.brandColor,
Open commit View diff
69 input.brandColor,
Alex Nord 3 months ago 7b9fd81

Continues UI Fixes

Full commit hash
7b9fd81fba50e4e63f3a981dc8ac583996c2482c
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
70
        FIXED_FOOTER,
Open commit View diff
70 FIXED_FOOTER,
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
71
        input.publicKnowledgeBaseEnabled,
Open commit View diff
71 input.publicKnowledgeBaseEnabled,
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
72
        JSON.stringify(input.footerLinks)
Open commit View diff
72 JSON.stringify(input.footerLinks)
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
73
      ]
Open commit View diff
73 ]
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
74
    );
Open commit View diff
74 );
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
75
    return {
Open commit View diff
75 return {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
76
      ...result.rows[0],
Open commit View diff
76 ...result.rows[0],
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
77
      footer_text: FIXED_FOOTER,
Open commit View diff
77 footer_text: FIXED_FOOTER,
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
78
      footer_links: parseFooterLinks(result.rows[0].footer_links)
Open commit View diff
78 footer_links: parseFooterLinks(result.rows[0].footer_links)
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
79
    };
Open commit View diff
79 };
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
80
  }
Open commit View diff
80 }
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
81
Open commit View diff
81
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
82
  const created = await pool.query(
Open commit View diff
82 const created = await pool.query(
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
83
    `
Open commit View diff
83 `
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
84
      INSERT INTO branding_settings (site_name, logo_url, brand_color, footer_text, public_knowledge_base_enabled, footer_links)
Open commit View diff
84 INSERT INTO branding_settings (site_name, logo_url, brand_color, footer_text, public_knowledge_base_enabled, footer_links)
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
85
      VALUES ($1, $2, $3, $4, $5, $6)
Open commit View diff
85 VALUES ($1, $2, $3, $4, $5, $6)
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
86
      RETURNING *
Open commit View diff
86 RETURNING *
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
87
    `,
Open commit View diff
87 `,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
88
    [
Open commit View diff
88 [
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
89
      input.siteName,
Open commit View diff
89 input.siteName,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
90
      input.logoUrl,
Open commit View diff
90 input.logoUrl,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
91
      input.brandColor,
Open commit View diff
91 input.brandColor,
Alex Nord 3 months ago 7b9fd81

Continues UI Fixes

Full commit hash
7b9fd81fba50e4e63f3a981dc8ac583996c2482c
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
92
      FIXED_FOOTER,
Open commit View diff
92 FIXED_FOOTER,
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
93
      input.publicKnowledgeBaseEnabled,
Open commit View diff
93 input.publicKnowledgeBaseEnabled,
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
94
      JSON.stringify(input.footerLinks)
Open commit View diff
94 JSON.stringify(input.footerLinks)
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
95
    ]
Open commit View diff
95 ]
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
96
  );
Open commit View diff
96 );
Alex Nord 3 months ago b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
97
  return {
Open commit View diff
97 return {
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
98
    ...created.rows[0],
Open commit View diff
98 ...created.rows[0],
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
99
    footer_text: FIXED_FOOTER,
Open commit View diff
99 footer_text: FIXED_FOOTER,
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
100
    footer_links: parseFooterLinks(created.rows[0].footer_links)
Open commit View diff
100 footer_links: parseFooterLinks(created.rows[0].footer_links)
same change b71e6dd

Fixing loading issue when putting Ledger behind domain

Full commit hash
b71e6dd42f7e2cd7409b68365a17c561433e6687
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
101
  };
Open commit View diff
101 };
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
102
}
Open commit View diff
102 }
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
103
Open commit View diff
103
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
104
export async function getAdminSettingsBundle() {
Open commit View diff
104 export async function getAdminSettingsBundle() {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
105
  const branding = await getBrandingSettings();
Open commit View diff
105 const branding = await getBrandingSettings();
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
106
  const smtp = await pool.query(`SELECT * FROM smtp_settings ORDER BY created_at ASC LIMIT 1`);
Open commit View diff
106 const smtp = await pool.query(`SELECT * FROM smtp_settings ORDER BY created_at ASC LIMIT 1`);
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
107
  const ai = await pool.query(`SELECT * FROM ai_settings ORDER BY created_at ASC LIMIT 1`);
Open commit View diff
107 const ai = await pool.query(`SELECT * FROM ai_settings ORDER BY created_at ASC LIMIT 1`);
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
108
Open commit View diff
108
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
109
  return {
Open commit View diff
109 return {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
110
    branding,
Open commit View diff
110 branding,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
111
    smtp: smtp.rows[0],
Open commit View diff
111 smtp: smtp.rows[0],
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
112
    ai: ai.rows[0],
Open commit View diff
112 ai: ai.rows[0],
Alex Nord 3 months ago 5600eb6

Build enterprise imports webhooks and AI admin workflows

Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
113
    mcp: {
Open commit View diff
113 mcp: {
Alex Nord 3 months ago 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
114
      endpoint: `${env.LEDGER_APP_URL}/mcp`,
Open commit View diff
114 endpoint: `${env.LEDGER_APP_URL}/mcp`,
Alex Nord 3 months ago 5600eb6

Build enterprise imports webhooks and AI admin workflows

Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
115
      authMode: "session_cookie"
Open commit View diff
115 authMode: "session_cookie"
same change 5600eb6

Build enterprise imports webhooks and AI admin workflows

Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
116
    },
Open commit View diff
116 },
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
117
    authProviders: {
Open commit View diff
117 authProviders: {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
118
      oidc: Boolean(env.OIDC_ISSUER && env.OIDC_CLIENT_ID && env.OIDC_CLIENT_SECRET),
Open commit View diff
118 oidc: Boolean(env.OIDC_ISSUER && env.OIDC_CLIENT_ID && env.OIDC_CLIENT_SECRET),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
119
      google: Boolean(env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET),
Open commit View diff
119 google: Boolean(env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
120
      discord: Boolean(env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET),
Open commit View diff
120 discord: Boolean(env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
121
      microsoft: Boolean(env.MICROSOFT_CLIENT_ID && env.MICROSOFT_CLIENT_SECRET),
Open commit View diff
121 microsoft: Boolean(env.MICROSOFT_CLIENT_ID && env.MICROSOFT_CLIENT_SECRET),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
122
      slack: Boolean(env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET)
Open commit View diff
122 slack: Boolean(env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET)
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
123
    }
Open commit View diff
123 }
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
124
  };
Open commit View diff
124 };
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
125
}
Open commit View diff
125 }