Skip to content

Commit

Permalink
Merge pull request #46 from Salman2301/feat/bg-gradient
Browse files Browse the repository at this point in the history
feat: add grad bg
  • Loading branch information
cmgriffing authored Oct 31, 2024
2 parents 4e01231 + edefa0d commit 24669fb
Show file tree
Hide file tree
Showing 11 changed files with 576 additions and 24 deletions.
4 changes: 4 additions & 0 deletions playgrounds/app/migrations/0004_optimal_zemo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE `snippets_table` ADD `bgType` text DEFAULT 'solid' NOT NULL;--> statement-breakpoint
ALTER TABLE `snippets_table` ADD `bgGradientColorStart` text DEFAULT '#ffffff';--> statement-breakpoint
ALTER TABLE `snippets_table` ADD `bgGradientColorEnd` text DEFAULT '#ffffff';--> statement-breakpoint
ALTER TABLE `snippets_table` ADD `bgGradientDirection` integer DEFAULT 0;
319 changes: 319 additions & 0 deletions playgrounds/app/migrations/meta/0004_snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
{
"version": "6",
"dialect": "sqlite",
"id": "99b25c51-31d1-41bc-9aff-2240829bfa62",
"prevId": "55589ffe-ec55-466e-9854-e59f5c5810b1",
"tables": {
"snippets_table": {
"name": "snippets_table",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"userId": {
"name": "userId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"codeLeft": {
"name": "codeLeft",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"codeRight": {
"name": "codeRight",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0
},
"updatedAt": {
"name": "updatedAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0
},
"snippetWidth": {
"name": "snippetWidth",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 450
},
"yPadding": {
"name": "yPadding",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 42
},
"xPadding": {
"name": "xPadding",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 42
},
"shadowEnabled": {
"name": "shadowEnabled",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": true
},
"shadowOffsetY": {
"name": "shadowOffsetY",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 10
},
"shadowBlur": {
"name": "shadowBlur",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 10
},
"shadowColor": {
"name": "shadowColor",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'#000000'"
},
"shadowOpacity": {
"name": "shadowOpacity",
"type": "real",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0.6
},
"bgColor": {
"name": "bgColor",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'#ffffff'"
},
"bgType": {
"name": "bgType",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'solid'"
},
"bgGradientColorStart": {
"name": "bgGradientColorStart",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "'#ffffff'"
},
"bgGradientColorEnd": {
"name": "bgGradientColorEnd",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "'#ffffff'"
},
"bgGradientDirection": {
"name": "bgGradientDirection",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": 0
},
"language": {
"name": "language",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'tsx'"
},
"theme": {
"name": "theme",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'nord'"
},
"fontSize": {
"name": "fontSize",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 16
},
"fontFamily": {
"name": "fontFamily",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'Fira Code'"
}
},
"indexes": {},
"foreignKeys": {
"snippets_table_userId_users_table_id_fk": {
"name": "snippets_table_userId_users_table_id_fk",
"tableFrom": "snippets_table",
"tableTo": "users_table",
"columnsFrom": [
"userId"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"users_table": {
"name": "users_table",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"githubId": {
"name": "githubId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"githubUsername": {
"name": "githubUsername",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"githubAvatarUrl": {
"name": "githubAvatarUrl",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0
},
"updatedAt": {
"name": "updatedAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0
}
},
"indexes": {
"users_table_email_unique": {
"name": "users_table_email_unique",
"columns": [
"email"
],
"isUnique": true
},
"users_table_githubId_unique": {
"name": "users_table_githubId_unique",
"columns": [
"githubId"
],
"isUnique": true
},
"users_table_githubUsername_unique": {
"name": "users_table_githubUsername_unique",
"columns": [
"githubUsername"
],
"isUnique": true
},
"users_table_githubAvatarUrl_unique": {
"name": "users_table_githubAvatarUrl_unique",
"columns": [
"githubAvatarUrl"
],
"isUnique": true
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}
7 changes: 7 additions & 0 deletions playgrounds/app/migrations/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"when": 1730069290357,
"tag": "0003_futuristic_wiccan",
"breakpoints": true
},
{
"idx": 4,
"version": "6",
"when": 1730073978913,
"tag": "0004_optimal_zemo",
"breakpoints": true
}
]
}
Loading

0 comments on commit 24669fb

Please sign in to comment.