stacks 0.48.2 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/buddy/README.md +13 -13
- package/buddy/node_modules/.bin/unbuild +2 -2
- package/buddy/package.json +5 -5
- package/buddy/src/cli.ts +2 -3
- package/buddy/src/commands/build.ts +2 -2
- package/buddy/src/commands/changelog.ts +1 -1
- package/buddy/src/commands/create.ts +1 -1
- package/buddy/src/commands/dev.ts +13 -4
- package/buddy/src/commands/fresh.ts +1 -1
- package/buddy/src/commands/key.ts +1 -1
- package/buddy/src/commands/lint.ts +1 -1
- package/buddy/src/commands/make.ts +1 -1
- package/buddy/src/commands/release.ts +1 -1
- package/buddy/src/commands/test.ts +6 -6
- package/buddy/src/index.ts +1 -1
- package/components/vue/main.ts +1 -1
- package/components/vue/package.json +1 -1
- package/components/web/package.json +1 -1
- package/components.d.ts +0 -3
- package/core/actions/node_modules/.bin/mkdist +2 -2
- package/core/actions/package.json +6 -6
- package/core/actions/src/build-core.ts +1 -1
- package/core/actions/src/dev-components.ts +5 -0
- package/core/actions/src/dev.ts +5 -0
- package/core/actions/src/helpers/package-json.ts +1 -1
- package/core/actions/src/helpers/utils.ts +5 -1
- package/core/actions/src/update.ts +4 -4
- package/core/ai/node_modules/.bin/mkdist +2 -2
- package/core/ai/package.json +5 -5
- package/core/alias/node_modules/.bin/mkdist +2 -2
- package/core/alias/package.json +5 -5
- package/core/arrays/node_modules/.bin/mkdist +2 -2
- package/core/arrays/package.json +5 -5
- package/core/auth/node_modules/.bin/mkdist +2 -2
- package/core/auth/package.json +5 -5
- package/core/build/node_modules/.bin/mkdist +2 -2
- package/core/build/node_modules/.bin/unbuild +2 -2
- package/core/build/node_modules/.bin/vite +2 -2
- package/core/build/node_modules/.bin/vite-ssg +2 -2
- package/core/build/package.json +10 -12
- package/core/build/src/desktop.ts +0 -5
- package/core/build/src/pages.ts +9 -9
- package/core/build/src/stacks.ts +26 -21
- package/core/build/src/vue-components.ts +11 -5
- package/core/build/web-types.ts +2 -2
- package/core/cache/node_modules/.bin/mkdist +2 -2
- package/core/cache/package.json +6 -6
- package/core/chat/node_modules/.bin/mkdist +2 -2
- package/core/chat/package.json +9 -9
- package/core/cli/README.md +1 -1
- package/core/cli/node_modules/.bin/mkdist +2 -2
- package/core/cli/package.json +6 -5
- package/core/cli/src/actions/run.ts +1 -1
- package/core/cli/src/helpers.ts +4 -3
- package/core/cloud/node_modules/.bin/mkdist +2 -2
- package/core/cloud/package.json +5 -5
- package/core/collections/node_modules/.bin/mkdist +2 -2
- package/core/collections/package.json +5 -5
- package/core/config/node_modules/.bin/mkdist +2 -2
- package/core/config/node_modules/.bin/unbuild +2 -2
- package/core/config/package.json +6 -6
- package/core/dashboard/node_modules/.bin/mkdist +2 -2
- package/core/dashboard/package.json +5 -5
- package/core/database/node_modules/.bin/mkdist +2 -2
- package/core/database/package.json +6 -6
- package/core/datetime/node_modules/.bin/mkdist +2 -2
- package/core/datetime/package.json +5 -5
- package/core/desktop/node_modules/.bin/mkdist +2 -2
- package/core/desktop/package.json +5 -5
- package/core/docs/node_modules/.bin/mkdist +2 -2
- package/core/docs/node_modules/.bin/vitepress +2 -2
- package/core/docs/package.json +6 -6
- package/core/domains/node_modules/.bin/mkdist +2 -2
- package/core/domains/package.json +5 -5
- package/core/drivers/node_modules/.bin/mkdist +2 -2
- package/core/drivers/package.json +5 -5
- package/core/email/node_modules/.bin/mkdist +2 -2
- package/core/email/package.json +16 -16
- package/core/error-handling/node_modules/.bin/mkdist +2 -2
- package/core/error-handling/package.json +5 -5
- package/core/events/node_modules/.bin/mkdist +2 -2
- package/core/events/package.json +5 -5
- package/core/events/src/index.ts +1 -1
- package/core/git/node_modules/.bin/mkdist +2 -2
- package/core/git/package.json +5 -5
- package/core/health/node_modules/.bin/mkdist +2 -2
- package/core/health/package.json +5 -5
- package/core/lint/node_modules/.bin/eslint +2 -2
- package/core/lint/node_modules/.bin/mkdist +2 -2
- package/core/lint/package.json +6 -6
- package/core/logging/node_modules/.bin/mkdist +2 -2
- package/core/logging/package.json +5 -5
- package/core/modules/node_modules/.bin/mkdist +2 -2
- package/core/modules/package.json +5 -5
- package/core/modules/src/i18n.ts +20 -20
- package/core/notifications/node_modules/.bin/mkdist +2 -2
- package/core/notifications/node_modules/.bin/unbuild +2 -2
- package/core/notifications/package.json +27 -27
- package/core/objects/node_modules/.bin/mkdist +2 -2
- package/core/objects/package.json +5 -5
- package/core/path/node_modules/.bin/mkdist +2 -2
- package/core/path/package.json +5 -5
- package/core/payments/node_modules/.bin/mkdist +2 -2
- package/core/payments/package.json +5 -5
- package/core/push/node_modules/.bin/mkdist +2 -2
- package/core/push/package.json +7 -7
- package/core/realtime/node_modules/.bin/mkdist +2 -2
- package/core/realtime/package.json +5 -5
- package/core/router/node_modules/.bin/mkdist +2 -2
- package/core/router/package.json +5 -5
- package/core/search-engine/node_modules/.bin/mkdist +2 -2
- package/core/search-engine/package.json +6 -6
- package/core/search-engine/src/helpers.ts +60 -0
- package/core/search-engine/src/index.ts +33 -2
- package/core/security/node_modules/.bin/mkdist +2 -2
- package/core/security/package.json +6 -6
- package/core/server/node_modules/.bin/mkdist +2 -2
- package/core/server/node_modules/.bin/vite +2 -2
- package/core/server/package.json +6 -6
- package/core/server/src/config.ts +3 -2
- package/core/sms/node_modules/.bin/mkdist +2 -2
- package/core/sms/package.json +15 -15
- package/core/storage/node_modules/.bin/mkdist +2 -2
- package/core/storage/package.json +5 -5
- package/core/strings/node_modules/.bin/mkdist +2 -2
- package/core/strings/node_modules/.bin/unbuild +2 -2
- package/core/strings/package.json +7 -6
- package/core/tables/build.config.ts +17 -0
- package/core/tables/dist/index.html +0 -0
- package/core/tables/index.html +13 -0
- package/core/tables/node_modules/.bin/mkdist +2 -2
- package/core/tables/node_modules/.bin/unbuild +2 -2
- package/core/tables/node_modules/.bin/vite +17 -0
- package/core/tables/old.vite.config.ts +97 -0
- package/core/tables/package.json +14 -47
- package/core/tables/src/App.vue +23 -0
- package/core/tables/src/functions/table.ts +28 -1
- package/core/tables/src/main.js +4 -0
- package/core/tables/vite.config.ts +26 -0
- package/core/testing/node_modules/.bin/mkdist +2 -2
- package/core/testing/node_modules/.bin/playwright +2 -2
- package/core/testing/node_modules/.bin/vitest +2 -2
- package/core/testing/package.json +9 -9
- package/core/types/node_modules/.bin/mkdist +2 -2
- package/core/types/node_modules/.bin/vitepress +2 -2
- package/core/types/package.json +9 -9
- package/core/types/src/cli.ts +2 -1
- package/core/types/src/markdown.ts +1 -1
- package/core/types/src/tables.ts +9 -0
- package/core/ui/node_modules/.bin/mkdist +2 -2
- package/core/ui/node_modules/.bin/vue-tsc +2 -2
- package/core/ui/package.json +8 -8
- package/core/utils/node_modules/.bin/mkdist +2 -2
- package/core/utils/node_modules/.bin/rimraf +2 -2
- package/core/utils/package.json +9 -9
- package/core/utils/src/helpers.ts +2 -2
- package/core/x-ray/node_modules/.bin/mkdist +2 -2
- package/core/x-ray/package.json +5 -5
- package/functions/package.json +1 -1
- package/package.json +5 -5
- package/tsconfig.json +2 -0
package/core/tables/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/tables",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "The easy & modern way to work with tables. Facet filtering, searching, pagination, ...",
|
|
5
5
|
"author": "Open Web Labs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,64 +27,31 @@
|
|
|
27
27
|
"Chris Breuer <chris@ow3.org>"
|
|
28
28
|
],
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=v18.
|
|
31
|
-
"pnpm": ">=7.
|
|
30
|
+
"node": ">=v18.13.0",
|
|
31
|
+
"pnpm": ">=7.25.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"dev": "
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"dev:
|
|
38
|
-
"development": "pnpm buddy dev",
|
|
39
|
-
"build": "pnpm buddy build",
|
|
40
|
-
"build:components": "pnpm buddy build:components",
|
|
41
|
-
"build:vue-components": "pnpm buddy build:web-components",
|
|
42
|
-
"build:web-components": "pnpm buddy build:web-components",
|
|
43
|
-
"build:functions": "pnpm buddy build:functions // needs to have option to ",
|
|
44
|
-
"build:docs": "pnpm buddy build:docs",
|
|
45
|
-
"prod": "pnpm buddy build",
|
|
46
|
-
"prod:components": "pnpm buddy build:components",
|
|
47
|
-
"prod:vue-components": "pnpm buddy build:web-components",
|
|
48
|
-
"prod:web-components": "pnpm buddy build:web-components",
|
|
49
|
-
"prod:functions": "pnpm buddy build:functions // needs to have option to ",
|
|
50
|
-
"prod:docs": "pnpm buddy build:docs",
|
|
51
|
-
"production": "pnpm buddy build",
|
|
52
|
-
"deploy": "pnpm buddy deploy",
|
|
53
|
-
"deploy:functions": "pnpm buddy deploy:functions",
|
|
54
|
-
"deploy:pages": "pnpm buddy deploy:functions",
|
|
55
|
-
"deploy:docs": "pnpm buddy deploy:docs",
|
|
56
|
-
"deploy:all": "pnpm buddy deploy:all",
|
|
57
|
-
"lint": "pnpm buddy lint",
|
|
58
|
-
"lint:fix": "pnpm buddy lint:fix",
|
|
59
|
-
"serve": "pnpm buddy dev",
|
|
60
|
-
"serve:pages": "pnpm buddy dev:pages",
|
|
61
|
-
"serve:functions": "pnpm buddy dev:functions",
|
|
62
|
-
"make": "pnpm buddy make",
|
|
63
|
-
"make:table": "pnpm buddy make:table",
|
|
64
|
-
"commit": "pnpm buddy commit",
|
|
65
|
-
"release": "pnpm buddy release",
|
|
66
|
-
"changelog": "pnpm buddy changelog",
|
|
67
|
-
"generate": "pnpm buddy generate",
|
|
68
|
-
"generate:entries": "pnpm buddy generate:entries",
|
|
69
|
-
"generate:vue-compat": "pnpm buddy generate:vue-compat",
|
|
70
|
-
"generate:vscode-custom-data": "pnpm buddy generate:vscode-custom-data",
|
|
71
|
-
"generate:web-types": "pnpm buddy generate:web-types",
|
|
72
|
-
"generate:component-meta": "pnpm buddy generate:component-meta",
|
|
73
|
-
"test": "pnpm buddy test",
|
|
74
|
-
"test:coverage": "pnpm buddy test:coverage",
|
|
75
|
-
"test:types": "pnpm buddy test:types"
|
|
34
|
+
"dev": "vite",
|
|
35
|
+
"build": "vite build",
|
|
36
|
+
"preview": "vite preview",
|
|
37
|
+
"dev:components": "vite -c vite.config.ts"
|
|
76
38
|
},
|
|
77
39
|
"peerDependencies": {
|
|
40
|
+
"@stacksjs/search-engine": "workspace:*",
|
|
41
|
+
"@stacksjs/server": "workspace:*",
|
|
78
42
|
"@stacksjs/types": "workspace:*",
|
|
79
43
|
"@stacksjs/utils": "workspace:*",
|
|
80
44
|
"@vueform/multiselect": "^2.5.8",
|
|
81
45
|
"meilisearch": "^0.30.0"
|
|
82
46
|
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"vite": "^4.0.4"
|
|
49
|
+
},
|
|
83
50
|
"devDependencies": {
|
|
84
51
|
"@stacksjs/testing": "workspace:*",
|
|
85
|
-
"mkdist": "^1.
|
|
52
|
+
"mkdist": "^1.1.0",
|
|
86
53
|
"typescript": "^4.9.4",
|
|
87
|
-
"unbuild": "^1.
|
|
54
|
+
"unbuild": "^1.1.1"
|
|
88
55
|
},
|
|
89
56
|
"lint-staged": {
|
|
90
57
|
"*.{js,jsx,ts,tsx,vue}": "eslint --fix"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import Table from './components/Table.vue'
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<Table />
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<style scoped>
|
|
12
|
+
.logo {
|
|
13
|
+
height: 6em;
|
|
14
|
+
padding: 1.5em;
|
|
15
|
+
will-change: filter;
|
|
16
|
+
}
|
|
17
|
+
.logo:hover {
|
|
18
|
+
filter: drop-shadow(0 0 2em #646cffaa);
|
|
19
|
+
}
|
|
20
|
+
.logo.vue:hover {
|
|
21
|
+
filter: drop-shadow(0 0 2em #42b883aa);
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { calculatePagination, currentPage, filterName,
|
|
1
|
+
import { calculatePagination, currentPage, filterName, totalPages } from '@stacksjs/search-engine'
|
|
2
2
|
import { isObject, isString, useStorage } from '@stacksjs/utils'
|
|
3
3
|
import type { Ref, TableStore } from '@stacksjs/types'
|
|
4
4
|
import { computed } from 'vue-demi'
|
|
@@ -6,6 +6,23 @@ import { computed } from 'vue-demi'
|
|
|
6
6
|
const table = (useStorage('table', determineState()).value as TableStore)
|
|
7
7
|
|
|
8
8
|
// table related
|
|
9
|
+
export const filters = computed(() => table.filters)
|
|
10
|
+
export const goToNextPage = computed(() => table.goToNextPage)
|
|
11
|
+
export const goToPage = computed(() => table.goToPage)
|
|
12
|
+
export const goToPrevPage = computed(() => table.goToPrevPage)
|
|
13
|
+
export const hits = computed(() => table.hits)
|
|
14
|
+
export const index = computed(() => table.index)
|
|
15
|
+
export const lastPageNumber = computed(() => table.lastPageNumber)
|
|
16
|
+
export const perPage = computed(() => table.perPage)
|
|
17
|
+
export const query = computed(() => table.query)
|
|
18
|
+
export const results = computed(() => table.results)
|
|
19
|
+
export const search = computed(() => table.search)
|
|
20
|
+
export const searchFilters = computed(() => table.searchFilters)
|
|
21
|
+
export const searchParams = computed(() => table.searchParams)
|
|
22
|
+
export const setTotalHits = computed(() => table.setTotalHits)
|
|
23
|
+
export const sort = computed(() => table.sort)
|
|
24
|
+
export const sorts = computed(() => table.sorts)
|
|
25
|
+
|
|
9
26
|
const columns = computed(() => table.columns)
|
|
10
27
|
const actions = computed(() => table.actions)
|
|
11
28
|
const actionable = computed(() => table.actionable)
|
|
@@ -64,6 +81,16 @@ function determineState(): TableStore {
|
|
|
64
81
|
perPage: 20,
|
|
65
82
|
currentPage: 1,
|
|
66
83
|
query: '',
|
|
84
|
+
goToNextPage: 2,
|
|
85
|
+
goToPage: 1,
|
|
86
|
+
goToPrevPage: 1,
|
|
87
|
+
hits: [],
|
|
88
|
+
lastPageNumber: 1,
|
|
89
|
+
results: {},
|
|
90
|
+
search: () => {},
|
|
91
|
+
searchFilters: {},
|
|
92
|
+
searchParams: {},
|
|
93
|
+
setTotalHits: () => {},
|
|
67
94
|
}
|
|
68
95
|
|
|
69
96
|
return table
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
plugins: [vue()],
|
|
6
|
+
server: {
|
|
7
|
+
hmr: {
|
|
8
|
+
overlay: false,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
build: {
|
|
12
|
+
rollupOptions: {
|
|
13
|
+
external: ['vue', 'vue-demi'],
|
|
14
|
+
output: {
|
|
15
|
+
// exports: 'named',
|
|
16
|
+
globals: {
|
|
17
|
+
'vue': 'Vue',
|
|
18
|
+
'vue-demi': 'vue-demi',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
sourcemap: true,
|
|
24
|
+
minify: true,
|
|
25
|
+
},
|
|
26
|
+
})
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/@playwright+test@1.29.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/@playwright+test@1.29.2/node_modules/@playwright/test/cli.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/@playwright+test@1.29.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/@playwright+test@1.29.2/node_modules/@playwright/test/cli.js" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.1_@vitest+ui@0.27.1/node_modules/vitest/vitest.mjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.1_@vitest+ui@0.27.1/node_modules/vitest/vitest.mjs" "$@"
|
|
17
17
|
fi
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/testing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks way of testing.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"engines": {
|
|
42
|
-
"node": ">=v18.
|
|
43
|
-
"pnpm": ">=7.
|
|
42
|
+
"node": ">=v18.13.0",
|
|
43
|
+
"pnpm": ">=7.25.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "mkdist -d",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"typecheck": "tsc --noEmit"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@playwright/test": "^1.29.
|
|
53
|
-
"@vitest/coverage-istanbul": "^0.
|
|
54
|
-
"@vitest/ui": "^0.
|
|
55
|
-
"vitest": "^0.
|
|
52
|
+
"@playwright/test": "^1.29.2",
|
|
53
|
+
"@vitest/coverage-istanbul": "^0.27.1",
|
|
54
|
+
"@vitest/ui": "^0.27.1",
|
|
55
|
+
"vitest": "^0.27.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"mkdist": "^1.
|
|
58
|
+
"mkdist": "^1.1.0",
|
|
59
59
|
"typescript": "^4.9.4"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.36_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.36_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
|
|
17
17
|
fi
|
package/core/types/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks framework types.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"README.md"
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=v18.
|
|
37
|
-
"pnpm": ">=7.
|
|
36
|
+
"node": ">=v18.13.0",
|
|
37
|
+
"pnpm": ">=7.25.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "mkdist -d",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"@mdit-vue/plugin-component": "^0.11.2",
|
|
47
47
|
"@mdit-vue/plugin-frontmatter": "^0.11.1",
|
|
48
48
|
"@mdit-vue/types": "^0.11.0",
|
|
49
|
-
"@prisma/client": "^4.8.
|
|
49
|
+
"@prisma/client": "^4.8.1",
|
|
50
50
|
"@rollup/pluginutils": "^5.0.2",
|
|
51
51
|
"@types/bcryptjs": "^2.4.2",
|
|
52
52
|
"@types/crypto-js": "^4.1.1",
|
|
53
53
|
"@types/eslint": "^8.4.10",
|
|
54
|
-
"@types/fs-extra": "^
|
|
54
|
+
"@types/fs-extra": "^11.0.1",
|
|
55
55
|
"@types/markdown-it-link-attributes": "^3.0.1",
|
|
56
56
|
"@types/minimatch": "^5.1.2",
|
|
57
57
|
"@types/node": "^18.11.18",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"@types/prompts": "^2.4.2",
|
|
61
61
|
"cac": "^6.7.14",
|
|
62
62
|
"markdown-it": "^13.0.1",
|
|
63
|
-
"mkdist": "^1.
|
|
63
|
+
"mkdist": "^1.1.0",
|
|
64
64
|
"typescript": "^4.9.4",
|
|
65
65
|
"unplugin-auto-import": "^0.12.1",
|
|
66
66
|
"unplugin-vue-components": "^0.22.12",
|
|
67
|
-
"vite-plugin-inspect": "^0.7.
|
|
67
|
+
"vite-plugin-inspect": "^0.7.14",
|
|
68
68
|
"vite-plugin-vue-layouts": "^0.7.0",
|
|
69
69
|
"vite-ssg": "^0.22.1",
|
|
70
|
-
"vitepress": "1.0.0-alpha.
|
|
70
|
+
"vitepress": "1.0.0-alpha.36"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/core/types/src/cli.ts
CHANGED
|
@@ -177,7 +177,7 @@ export const enum NpmScript {
|
|
|
177
177
|
BuildStacks = 'build:stacks',
|
|
178
178
|
Clean = 'rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules',
|
|
179
179
|
Dev = 'dev',
|
|
180
|
-
DevComponents = '
|
|
180
|
+
DevComponents = 'vite --config ./.stacks/core/build/src/vue-components.ts',
|
|
181
181
|
DevDocs = 'dev:docs',
|
|
182
182
|
DevDesktop = 'dev:desktop',
|
|
183
183
|
DevPages = 'dev:pages',
|
|
@@ -244,6 +244,7 @@ export const enum Action {
|
|
|
244
244
|
Typecheck = 'typecheck', // wip
|
|
245
245
|
KeyGenerate = 'key-generate', // wip
|
|
246
246
|
MakeNotification = 'make-notification', // wip
|
|
247
|
+
DevComponents = 'dev-components', // wip
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
export type { CAC as CLI } from 'cac'
|
package/core/types/src/tables.ts
CHANGED
|
@@ -37,7 +37,16 @@ export interface TableStore {
|
|
|
37
37
|
selectedAll?: boolean // optional: determines whether all the rows are selected (defaults: false)
|
|
38
38
|
// stickyHeader?: string | boolean // optional: determines whether the table displays the sticky header (defaults: false)
|
|
39
39
|
// stickyFooter?: string | boolean // optional: determines whether the table displays the sticky footer (defaults: false)
|
|
40
|
+
goToNextPage: number
|
|
41
|
+
goToPage: number
|
|
42
|
+
goToPrevPage: number
|
|
43
|
+
lastPageNumber: number
|
|
44
|
+
searchFilters?: object
|
|
45
|
+
searchParams?: object
|
|
46
|
+
setTotalHits: number
|
|
47
|
+
|
|
40
48
|
/**
|
|
49
|
+
*
|
|
41
50
|
* The current page number
|
|
42
51
|
* @default 1
|
|
43
52
|
* @type {number}
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@1.0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@1.0.24_typescript@4.9.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@1.0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@1.0.24_typescript@4.9.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
|
|
17
17
|
fi
|
package/core/ui/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks atomic UI engine, powered by UnoCSS.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"README.md"
|
|
38
38
|
],
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=v18.
|
|
41
|
-
"pnpm": ">=7.
|
|
40
|
+
"node": ">=v18.13.0",
|
|
41
|
+
"pnpm": ">=7.25.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "mkdist -d",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"@julr/unocss-preset-forms": "^0.0.2",
|
|
53
53
|
"@stacksjs/build": "workspace:*",
|
|
54
54
|
"@stacksjs/config": "workspace:*",
|
|
55
|
-
"@unocss/transformer-compile-class": "^0.48.
|
|
55
|
+
"@unocss/transformer-compile-class": "^0.48.4",
|
|
56
56
|
"pinia": "^2.0.28",
|
|
57
|
-
"unocss": "^0.48.
|
|
57
|
+
"unocss": "^0.48.4",
|
|
58
58
|
"vue": "^3.2.45",
|
|
59
|
-
"vue-tsc": "^1.0.
|
|
59
|
+
"vue-tsc": "^1.0.24"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@stacksjs/testing": "workspace:*",
|
|
63
|
-
"mkdist": "^1.
|
|
63
|
+
"mkdist": "^1.1.0",
|
|
64
64
|
"typescript": "^4.9.4"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/rimraf@
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/rimraf@4.0.5/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/rimraf@
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/rimraf@4.0.5/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
|
|
17
17
|
fi
|
package/core/utils/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks helper functions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"README.md"
|
|
38
38
|
],
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=v18.
|
|
41
|
-
"pnpm": ">=7.
|
|
40
|
+
"node": ">=v18.13.0",
|
|
41
|
+
"pnpm": ">=7.25.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "mkdist -d",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"@stacksjs/path": "workspace:*",
|
|
55
55
|
"@stacksjs/storage": "workspace:*",
|
|
56
56
|
"@stacksjs/types": "workspace:*",
|
|
57
|
-
"@vueuse/core": "^9.
|
|
57
|
+
"@vueuse/core": "^9.10.0",
|
|
58
58
|
"@vueuse/head": "^1.0.22",
|
|
59
|
-
"@vueuse/math": "^9.
|
|
60
|
-
"@vueuse/shared": "^9.
|
|
59
|
+
"@vueuse/math": "^9.10.0",
|
|
60
|
+
"@vueuse/shared": "^9.10.0",
|
|
61
61
|
"defu": "^6.1.1",
|
|
62
62
|
"detect-indent": "^7.0.1",
|
|
63
63
|
"detect-newline": "^4.0.0",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"fast-glob": "^3.2.12",
|
|
67
67
|
"kolorist": "1.6.0",
|
|
68
68
|
"p-limit": "^4.0.0",
|
|
69
|
-
"rimraf": "^
|
|
69
|
+
"rimraf": "^4.0.5",
|
|
70
70
|
"throttle-debounce": "^5.0.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@stacksjs/testing": "workspace:*",
|
|
74
74
|
"@types/throttle-debounce": "^5.0.0",
|
|
75
|
-
"mkdist": "^1.
|
|
75
|
+
"mkdist": "^1.1.0",
|
|
76
76
|
"typescript": "^4.9.4"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { log, runCommand, spawn } from '@stacksjs/cli'
|
|
2
|
-
import {
|
|
2
|
+
import type { CliOptions, Manifest, NpmScript } from '@stacksjs/types'
|
|
3
3
|
import { frameworkPath, projectPath } from '@stacksjs/path'
|
|
4
4
|
import storage from '@stacksjs/storage'
|
|
5
5
|
import { ui } from '@stacksjs/config'
|
|
@@ -15,7 +15,7 @@ export async function isProjectCreated() {
|
|
|
15
15
|
return await isAppKeySet()
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export async function
|
|
18
|
+
export async function frameworkVersion(): Promise<string> {
|
|
19
19
|
const packageJson = await storage.fs.readJson(frameworkPath('package.json'))
|
|
20
20
|
return packageJson.version
|
|
21
21
|
}
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
package/core/x-ray/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/x-ray",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "All you need to debug, log & analyze.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": ">=v18.
|
|
42
|
-
"pnpm": ">=7.
|
|
41
|
+
"node": ">=v18.13.0",
|
|
42
|
+
"pnpm": ">=7.25.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "echo 'wip'",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@stacksjs/testing": "workspace:*",
|
|
60
|
-
"mkdist": "^1.
|
|
60
|
+
"mkdist": "^1.1.0",
|
|
61
61
|
"typescript": "^4.9.4"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/functions/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks framework.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"components.d.ts"
|
|
61
61
|
],
|
|
62
62
|
"engines": {
|
|
63
|
-
"node": ">=v18.
|
|
64
|
-
"pnpm": ">=7.
|
|
63
|
+
"node": ">=v18.13.0",
|
|
64
|
+
"pnpm": ">=7.25.0"
|
|
65
65
|
},
|
|
66
66
|
"web-types": "./web-types.json",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@stacksjs/buddy": "0.
|
|
68
|
+
"@stacksjs/buddy": "0.49.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"buddy": "esno ./buddy/src/cli.ts",
|
package/tsconfig.json
CHANGED
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
"@stacksjs/drivers/*": ["./core/drivers/src/*"],
|
|
62
62
|
"@stacksjs/email": ["./core/email/src/index.ts"],
|
|
63
63
|
"@stacksjs/email/*": ["./core/email/src/*"],
|
|
64
|
+
"@stacksjs/events": ["./core/events/src/index.ts"],
|
|
65
|
+
"@stacksjs/events/*": ["./core/events/src/*"],
|
|
64
66
|
"@stacksjs/error-handling": ["./core/error-handling/src/index.ts"],
|
|
65
67
|
"@stacksjs/logging": ["./core/logging/src/index.ts"],
|
|
66
68
|
"@stacksjs/logging/*": ["./core/logging/src/*"],
|