Skip to content

Commit

Permalink
feat: add support for skin logo
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Feb 5, 2025
1 parent f5bcebb commit 5fb4075
Show file tree
Hide file tree
Showing 3 changed files with 5 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
3 changes: 2 additions & 1 deletion src/helpers/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,10 @@ CREATE TABLE skins (
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 5fb4075

Please sign in to comment.