Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for skin logo #978

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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