Skip to content

Commit

Permalink
feat(saved posts): dont include saved posts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Dec 17, 2023
1 parent 6368df2 commit fa9f7e5
Showing 1 changed file with 0 additions and 145 deletions.
145 changes: 0 additions & 145 deletions store/SavedPosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,151 +34,6 @@ export class SavedPostDatabase extends Dexie {
this.posts.hook('creating', (primKey, obj, transaction) => {
obj.created_at = Date.now()
})

// Populate with some default posts
this.on('populate', async () => {
await this.posts.bulkAdd([
{
original_id: 1,

original_domain: 'safebooru.org',

data: {
id: 1,
score: null,
high_res_file: {
url: 'https://safebooru.org/images/1/e7b3dc281d431f7a9f4ab81986d2de9a20d36d2e.jpg',
width: 1200,
height: 900
},
low_res_file: {
url: 'https://safebooru.org/samples/1/sample_e7b3dc281d431f7a9f4ab81986d2de9a20d36d2e.jpg',
width: 850,
height: 638
},
preview_file: {
url: 'https://safebooru.org/thumbnails/1/thumbnail_e7b3dc281d431f7a9f4ab81986d2de9a20d36d2e.jpg',
width: 150,
height: 112
},
tags: {
artist: [],
character: [],
copyright: [],
general: [
'1girl',
'bag',
'black_hair',
'blue_miniskirt',
'blue_skirt',
'blush',
'bob_cut',
'bowieknife',
'breasts',
'breath',
'coat',
'girls',
'gloves',
'holding',
'jacket',
'landscape',
'legs',
'legs_together',
'miniskirt',
'mountain',
'necktie',
'open_mouth',
'original',
'pantyhose',
'peacoat',
'pleated_miniskirt',
'pleated_skirt',
'purse',
'scarf',
'short_hair',
'skirt',
'snow',
'solo',
'toggles',
'uniform'
],
meta: []
},
sources: ['http://www.pixiv.net/artworks/7824792'],
rating: 'safe',
media_type: 'image'
}
},
{
original_id: 5,

original_domain: 'gelbooru.com',

data: {
id: 5,
score: 48,
high_res_file: {
url: 'https://img3.gelbooru.com/images/b0/b5/b0b53e29fdeb13285591a524f23972d4.gif',
width: 533,
height: 800
},
low_res_file: {
url: null,
width: null,
height: null
},
preview_file: {
url: 'https://img3.gelbooru.com/thumbnails/b0/b5/thumbnail_b0b53e29fdeb13285591a524f23972d4.jpg',
width: 166,
height: 250
},
tags: {
artist: [],
character: [],
copyright: [],
general: [
'1girl',
'bare_shoulders',
'carrot',
'contrapposto',
'disgaea',
'flat_chest',
'hair_ribbon',
'harada_takehito',
'looking_at_viewer',
'looking_back',
'nippon_ichi',
'original',
'pleinair',
'pointy_ears',
'rabbit',
'ribbon',
'short_hair',
'simple_background',
'smile',
'solo',
'speech_bubble',
'standing',
'stuffed_animal',
'stuffed_rabbit',
'stuffed_toy',
'sweatdrop',
'thighhighs',
'translation_request',
'usagi-san',
'white_background',
'white_thighhighs',
'zettai_ryouiki'
],
meta: []
},
sources: [],
rating: 'safe',
media_type: 'image'
}
}
])
})
}
}

Expand Down

0 comments on commit fa9f7e5

Please sign in to comment.