Skip to content

Commit

Permalink
feat: add support for skin logo (#978)
Browse files Browse the repository at this point in the history
* feat: add support for skin logo

* Add content_color column to schema.sql

---------

Co-authored-by: Chaitanya <[email protected]>
  • Loading branch information
wa0x6e and ChaituVR authored Feb 5, 2025
1 parent f5bcebb commit 7fe83c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/graphql/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const SKIN_SETTINGS = [
'heading_color',
'header_color',
'primary_color',
'theme'
'theme',
'logo'
];

export function checkLimits(args: any = {}, type) {
Expand Down
1 change: 1 addition & 0 deletions src/graphql/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ type SkinSettings {
header_color: String
primary_color: String
theme: String
logo: String
}

type Network {
Expand Down
4 changes: 3 additions & 1 deletion src/helpers/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,16 @@ CREATE TABLE skins (
bg_color VARCHAR(6) DEFAULT NULL,
link_color VARCHAR(6) DEFAULT NULL,
text_color VARCHAR(6) DEFAULT NULL,
content_color VARCHAR(6) DEFAULT NULL,
border_color VARCHAR(6) DEFAULT NULL,
heading_color VARCHAR(6) DEFAULT NULL,
primary_color VARCHAR(6) DEFAULT NULL,
header_color VARCHAR(6) DEFAULT NULL,
theme VARCHAR(5) NOT NULL DEFAULT 'light',
logo VARCHAR(256) DEFAULT NULL,
PRIMARY KEY (id)
);

CREATE TABLE networks (
id VARCHAR(64) NOT NULL,
premium SMALLINT UNSIGNED NOT NULL DEFAULT '0',
Expand Down

0 comments on commit 7fe83c5

Please sign in to comment.