mirror of
				https://github.com/Blah-IM/Weblah.git
				synced 2025-10-31 01:51:37 +00:00 
			
		
		
		
	refactor: remove sqlite & drizzle
We will just use idb and localstorage to keep web client simple.
This commit is contained in:
		
							parent
							
								
									7098580d10
								
							
						
					
					
						commit
						8a91ea13fd
					
				
					 6 changed files with 1 additions and 1193 deletions
				
			
		
							
								
								
									
										1168
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										1168
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							|  | @ -12,6 +12,7 @@ | ||||||
| 		"lint": "prettier --check . && eslint .", | 		"lint": "prettier --check . && eslint .", | ||||||
| 		"format": "prettier --write ." | 		"format": "prettier --write ." | ||||||
| 	}, | 	}, | ||||||
|  | 	"type": "module", | ||||||
| 	"devDependencies": { | 	"devDependencies": { | ||||||
| 		"@melt-ui/pp": "^0.3.2", | 		"@melt-ui/pp": "^0.3.2", | ||||||
| 		"@sveltejs/adapter-auto": "^3.2.5", | 		"@sveltejs/adapter-auto": "^3.2.5", | ||||||
|  | @ -20,7 +21,6 @@ | ||||||
| 		"@tailwindcss/typography": "^0.5.15", | 		"@tailwindcss/typography": "^0.5.15", | ||||||
| 		"@types/eslint": "^9.6.1", | 		"@types/eslint": "^9.6.1", | ||||||
| 		"autoprefixer": "^10.4.20", | 		"autoprefixer": "^10.4.20", | ||||||
| 		"drizzle-kit": "^0.25.0", |  | ||||||
| 		"eslint": "^9.12.0", | 		"eslint": "^9.12.0", | ||||||
| 		"eslint-config-prettier": "^9.1.0", | 		"eslint-config-prettier": "^9.1.0", | ||||||
| 		"eslint-plugin-svelte": "^2.44.1", | 		"eslint-plugin-svelte": "^2.44.1", | ||||||
|  | @ -36,15 +36,12 @@ | ||||||
| 		"vite": "^5.4.8", | 		"vite": "^5.4.8", | ||||||
| 		"vitest": "^2.1.2" | 		"vitest": "^2.1.2" | ||||||
| 	}, | 	}, | ||||||
| 	"type": "module", |  | ||||||
| 	"dependencies": { | 	"dependencies": { | ||||||
| 		"@blah-im/core": "^0.2.5", | 		"@blah-im/core": "^0.2.5", | ||||||
| 		"@melt-ui/svelte": "^0.83.0", | 		"@melt-ui/svelte": "^0.83.0", | ||||||
| 		"@zeabur/svelte-adapter": "^1.0.0", | 		"@zeabur/svelte-adapter": "^1.0.0", | ||||||
| 		"bits-ui": "^0.21.16", | 		"bits-ui": "^0.21.16", | ||||||
| 		"canonicalize": "^2.0.0", | 		"canonicalize": "^2.0.0", | ||||||
| 		"drizzle-orm": "^0.34.1", |  | ||||||
| 		"sqlocal": "^0.11.3", |  | ||||||
| 		"svelte-boring-avatars": "^1.2.6", | 		"svelte-boring-avatars": "^1.2.6", | ||||||
| 		"svelte-hero-icons": "^5.2.0", | 		"svelte-hero-icons": "^5.2.0", | ||||||
| 		"svelte-persisted-store": "^0.11.0", | 		"svelte-persisted-store": "^0.11.0", | ||||||
|  |  | ||||||
|  | @ -1,5 +0,0 @@ | ||||||
| import { SQLocalDrizzle } from 'sqlocal/drizzle'; |  | ||||||
| import { drizzle } from 'drizzle-orm/sqlite-proxy'; |  | ||||||
| 
 |  | ||||||
| const { driver, batchDriver } = new SQLocalDrizzle('database.sqlite3'); |  | ||||||
| export const db = drizzle(driver, batchDriver); |  | ||||||
|  | @ -1,6 +0,0 @@ | ||||||
| import { sqliteTable, text } from 'drizzle-orm/sqlite-core'; |  | ||||||
| 
 |  | ||||||
| export const configs = sqliteTable('weblah-config', { |  | ||||||
| 	key: text('key').primaryKey(), |  | ||||||
| 	value: text('value') |  | ||||||
| }); |  | ||||||
|  | @ -1,10 +0,0 @@ | ||||||
| import { sqliteTable, text } from 'drizzle-orm/sqlite-core'; |  | ||||||
| 
 |  | ||||||
| export const identities = sqliteTable('weblah-identities', { |  | ||||||
| 	idKey: text('id_key').primaryKey(), |  | ||||||
| 	actKeys: text('act_keys').notNull(), |  | ||||||
| 	profileName: text('profile_name').notNull(), |  | ||||||
| 	profileBio: text('profile_bio'), |  | ||||||
| 	preferredChatServerUrls: text('preferred_chat_server_urls').notNull(), |  | ||||||
| 	idUrls: text('id_urls').notNull() |  | ||||||
| }); |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shibo Lyu
						Shibo Lyu