Skip to content

Commit 0d2ed2c

Browse files
committed
chore: wip
1 parent 7656fab commit 0d2ed2c

File tree

7 files changed

+30
-17
lines changed

7 files changed

+30
-17
lines changed

.stacks/core/search-engine/src/drivers/meilisearch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { log } from '@stacksjs/cli'
22
import { searchEngine } from '@stacksjs/config'
33
import { MeiliSearch } from 'meilisearch'
4+
import type { SearchResponse } from 'meilisearch' // TODO: import from @stacksjs/types
45

56
interface SearchEngineOptions {
67
host: string
@@ -25,7 +26,7 @@ function client(options?: SearchEngineOptions) {
2526
return new MeiliSearch({ host, apiKey })
2627
}
2728

28-
async function search(index: string, params: any) {
29+
async function search(index: string, params: any): Promise<SearchResponse<Record<string, any>>> {
2930
return await client()
3031
.index(index)
3132
.search(params.query, { limit: params.perPage, offset: params.page * params.perPage })

.stacks/core/types/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@mdit-vue/plugin-component": "^0.12.0",
4343
"@mdit-vue/plugin-frontmatter": "^0.12.0",
4444
"@mdit-vue/types": "^0.12.0",
45+
"@novu/stateless": "^0.13.0",
4546
"@rollup/pluginutils": "^5.0.2",
4647
"@stacksjs/development": "workspace:*",
4748
"@types/bcryptjs": "^2.4.2",
@@ -60,10 +61,12 @@
6061
"meilisearch": "^0.32.2",
6162
"neverthrow": "^6.0.0",
6263
"ora": "^6.3.0",
64+
"unocss": "^0.50.6",
6365
"unplugin-auto-import": "^0.15.2",
6466
"unplugin-vue-components": "^0.24.1",
6567
"vite": "^4.2.0",
6668
"vite-plugin-inspect": "^0.7.18",
69+
"vite-plugin-pwa": "^0.14.7",
6770
"vite-plugin-vue-layouts": "^0.8.0",
6871
"vite-ssg": "^0.22.1",
6972
"vitepress": "1.0.0-alpha.65",

.stacks/core/types/src/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ZodBoolean as Boolean, ZodDate as Date, ZodNumber as Number, ZodString as String } from 'zod'
2-
import type { SearchIndexSettings } from 'stacks/core/types/src'
2+
import type { SearchIndexSettings } from './search-engine'
33

44
export interface SeedOptions {
55
count: number

.stacks/core/types/src/ssg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { type ViteSSGContext } from '@stacksjs/types'
1+
import { type ViteSSGContext } from './'
22

33
export type UserModule = (ctx: ViteSSGContext) => void

app/jobs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CronJob } from '../../.stacks/core/types/src'
1+
import type { CronJob } from 'stacks/core/types/src'
22

33
// easily monitor and manage your cron jobs
44
export default <CronJob> { // or <CronJobs>

app/models/User.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { faker } from '../../.stacks/core/faker/src' // stacks/faker or @stacksjs/faker
2-
import { validate } from '../../.stacks/core/validation/src' // stacks/validate or @stacksjs/validate
3-
import type { Model } from '../../.stacks/core/types/src' // stacks/types or @stacksjs/types
1+
import { faker } from 'stacks/core/faker/src' // stacks/faker or @stacksjs/faker
2+
import { validate } from 'stacks/core/validation/src' // stacks/validate or @stacksjs/validate
3+
import type { Model } from 'stacks/core/types/src' // stacks/types or @stacksjs/types
44

55
enum Type {
66
String = 'String',

pnpm-lock.yaml

Lines changed: 19 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)