Compare commits
No commits in common. "7075e9b09753e096d84721e94ff86f78ab1792f0" and "fe4674c681506519d954d10ce4916d8f653d666f" have entirely different histories.
7075e9b097
...
fe4674c681
12
.gitmodules
vendored
12
.gitmodules
vendored
@ -1,12 +0,0 @@
|
|||||||
[submodule "submodules/query-config"]
|
|
||||||
path = submodules/query-config
|
|
||||||
url = git@git.xiongxiao.me:kevisual/kevisual-query-config.git
|
|
||||||
[submodule "submodules/query-login"]
|
|
||||||
path = submodules/query-login
|
|
||||||
url = git@git.xiongxiao.me:kevisual/kevisual-query-login.git
|
|
||||||
[submodule "submodules/query-upload"]
|
|
||||||
path = submodules/query-upload
|
|
||||||
url = git@git.xiongxiao.me:kevisual/kevisual-query-upload.git
|
|
||||||
[submodule "submodules/query-mark"]
|
|
||||||
path = submodules/query-mark
|
|
||||||
url = git@git.xiongxiao.me:kevisual/kevisual-query-mark.git
|
|
@ -1,13 +0,0 @@
|
|||||||
// @ts-check
|
|
||||||
import { execSync } from 'node:child_process';
|
|
||||||
import glob from 'fast-glob';
|
|
||||||
import fs from 'node:fs';
|
|
||||||
const files = await glob(['packages/*/dist', 'submodules/*/dist'], { onlyDirectories: true });
|
|
||||||
|
|
||||||
console.log('files', files);
|
|
||||||
const clean = 'rimraf dist && mkdir dist';
|
|
||||||
execSync(clean);
|
|
||||||
for (let dir of files) {
|
|
||||||
const rsync = `rsync ${dir}/* ./dist`;
|
|
||||||
execSync(rsync);
|
|
||||||
}
|
|
21
package.json
21
package.json
@ -4,11 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo run build",
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
"postbuild": "bun bun.copy.config.mjs"
|
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
@ -16,21 +12,10 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"packageManager": "pnpm@10.11.0",
|
"packageManager": "pnpm@10.6.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kevisual/query": "^0.0.18",
|
"@kevisual/query": "^0.0.18",
|
||||||
"@kevisual/router": "^0.0.20",
|
"@kevisual/router": "^0.0.20"
|
||||||
"@kevisual/types": "^0.0.10",
|
|
||||||
"@kevisual/use-config": "^1.0.17",
|
|
||||||
"fast-glob": "^3.3.3"
|
|
||||||
},
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"import": "./dist/query-login-browser.js"
|
|
||||||
},
|
|
||||||
"./*": {
|
|
||||||
"import": "./dist/*"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,30 +0,0 @@
|
|||||||
// @ts-check
|
|
||||||
import { resolvePath, getDevInputs } from '@kevisual/use-config/env';
|
|
||||||
import { execSync } from 'node:child_process';
|
|
||||||
import glob from 'fast-glob';
|
|
||||||
|
|
||||||
const files = await glob('src/*.ts');
|
|
||||||
const inputs = getDevInputs(files);
|
|
||||||
const external = ['@kevisual/router'];
|
|
||||||
for (let input of inputs) {
|
|
||||||
const entry = input.path;
|
|
||||||
const naming = input.naming;
|
|
||||||
/**
|
|
||||||
* @type {import('bun').BuildConfig}
|
|
||||||
*/
|
|
||||||
await Bun.build({
|
|
||||||
target: 'node',
|
|
||||||
format: 'esm',
|
|
||||||
entrypoints: [resolvePath(entry, { meta: import.meta })],
|
|
||||||
outdir: resolvePath('./dist', { meta: import.meta }),
|
|
||||||
|
|
||||||
naming: {
|
|
||||||
entry: naming + '.js',
|
|
||||||
},
|
|
||||||
external: external,
|
|
||||||
env: 'KEVISUAL_*',
|
|
||||||
});
|
|
||||||
|
|
||||||
const cmd = `dts -i ${entry} -o ${naming}.d.ts`;
|
|
||||||
execSync(cmd, { stdio: 'inherit' });
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@kevisual/query-app",
|
|
||||||
"version": "0.0.1",
|
|
||||||
"description": "",
|
|
||||||
"main": "index.js",
|
|
||||||
"scripts": {
|
|
||||||
"build": "bun bun.config.mjs"
|
|
||||||
},
|
|
||||||
"keywords": [],
|
|
||||||
"files": [
|
|
||||||
"src",
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
|
||||||
"license": "MIT",
|
|
||||||
"packageManager": "pnpm@10.6.2",
|
|
||||||
"type": "module"
|
|
||||||
}
|
|
@ -1,57 +0,0 @@
|
|||||||
import { QueryUtil } from './common.ts';
|
|
||||||
|
|
||||||
export const appDefine = QueryUtil.create({
|
|
||||||
getApp: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'get',
|
|
||||||
description: '获取应用信息',
|
|
||||||
},
|
|
||||||
|
|
||||||
updateApp: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'update',
|
|
||||||
description: '更新应用信息',
|
|
||||||
},
|
|
||||||
|
|
||||||
deleteApp: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'delete',
|
|
||||||
description: '删除应用信息',
|
|
||||||
},
|
|
||||||
|
|
||||||
listApps: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'list',
|
|
||||||
description: '列出所有应用信息',
|
|
||||||
},
|
|
||||||
|
|
||||||
canUploadFiles: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'canUploadFiles',
|
|
||||||
description: '检查是否可以上传文件',
|
|
||||||
},
|
|
||||||
|
|
||||||
uploadFiles: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'uploadFiles',
|
|
||||||
description: '上传文件',
|
|
||||||
},
|
|
||||||
|
|
||||||
publishApp: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'publish',
|
|
||||||
description: '发布应用',
|
|
||||||
},
|
|
||||||
|
|
||||||
getMinioList: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'get-minio-list',
|
|
||||||
description: '获取 MinIO 文件列表',
|
|
||||||
},
|
|
||||||
|
|
||||||
detectVersionList: {
|
|
||||||
path: 'app',
|
|
||||||
key: 'detectVersionList',
|
|
||||||
description: '检测版本列表并同步 MinIO 数据',
|
|
||||||
},
|
|
||||||
});
|
|
@ -1 +0,0 @@
|
|||||||
export { QueryUtil } from '@kevisual/router/define';
|
|
@ -1,3 +0,0 @@
|
|||||||
import { appDefine } from './app';
|
|
||||||
import { userAppDefine } from './user-app';
|
|
||||||
export { appDefine, userAppDefine };
|
|
@ -1,33 +0,0 @@
|
|||||||
import { QueryUtil } from './common.ts';
|
|
||||||
|
|
||||||
export const userAppDefine = QueryUtil.create({
|
|
||||||
listUserApps: {
|
|
||||||
path: 'user-app',
|
|
||||||
key: 'list',
|
|
||||||
description: '列出当前用户的所有应用(不包含 data 字段)',
|
|
||||||
},
|
|
||||||
|
|
||||||
getUserApp: {
|
|
||||||
path: 'user-app',
|
|
||||||
key: 'get',
|
|
||||||
description: '获取用户应用信息,可以指定 id 或 key',
|
|
||||||
},
|
|
||||||
|
|
||||||
updateUserApp: {
|
|
||||||
path: 'user-app',
|
|
||||||
key: 'update',
|
|
||||||
description: '更新或创建用户应用',
|
|
||||||
},
|
|
||||||
|
|
||||||
deleteUserApp: {
|
|
||||||
path: 'user-app',
|
|
||||||
key: 'delete',
|
|
||||||
description: '删除用户应用及关联数据',
|
|
||||||
},
|
|
||||||
|
|
||||||
testUserApp: {
|
|
||||||
path: 'user-app',
|
|
||||||
key: 'test',
|
|
||||||
description: '对 user-app 的数据进行测试,获取版本信息',
|
|
||||||
},
|
|
||||||
});
|
|
@ -1 +0,0 @@
|
|||||||
export * from './defines/index.ts';
|
|
@ -1,18 +0,0 @@
|
|||||||
import { appDefine, userAppDefine } from './defines/index.ts';
|
|
||||||
|
|
||||||
import { BaseQuery, DataOpts, Query } from '@kevisual/query/query';
|
|
||||||
|
|
||||||
export { appDefine, userAppDefine };
|
|
||||||
|
|
||||||
export class QueryApp extends BaseQuery {
|
|
||||||
appDefine = appDefine;
|
|
||||||
userAppDefine = userAppDefine;
|
|
||||||
constructor(opts?: { query: Query }) {
|
|
||||||
super(opts!);
|
|
||||||
this.appDefine.query = this.query;
|
|
||||||
this.userAppDefine.query = this.query;
|
|
||||||
}
|
|
||||||
getList(data: any, opts?: DataOpts) {
|
|
||||||
return this.appDefine.queryChain('listApps').post(data, opts);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { QueryApp } from '../query-app.ts';
|
|
||||||
import { Query } from '@kevisual/query/query';
|
|
||||||
const query = new Query();
|
|
||||||
const qa = new QueryApp({ query: query });
|
|
||||||
|
|
||||||
qa.appDefine.queryChain('getApp').post({});
|
|
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "@kevisual/types/json/frontend.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": ".",
|
|
||||||
"typeRoots": [
|
|
||||||
"./node_modules/@types",
|
|
||||||
"./node_modules/@kevisual"
|
|
||||||
],
|
|
||||||
"paths": {
|
|
||||||
"@/*": [
|
|
||||||
"src/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"src/**/*",
|
|
||||||
],
|
|
||||||
}
|
|
1571
pnpm-lock.yaml
generated
1571
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
|||||||
Subproject commit 53cd97454dc4300a1a1040c25dd26d86c390f1c8
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 0a0ffbdb235e01ee3b63745e3d4045e032d42216
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 757be9fc2fbfa2ac0af92a3002cccc9edba995ba
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit efa7fbe62e32a432b509629f4fe2f04719ef8a43
|
|
22
turbo.json
22
turbo.json
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://turbo.build/schema.json",
|
|
||||||
"tasks": {
|
|
||||||
"build": {
|
|
||||||
"dependsOn": [
|
|
||||||
"^build"
|
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"dist/**"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dev:lib": {
|
|
||||||
"persistent": true,
|
|
||||||
"cache": true
|
|
||||||
},
|
|
||||||
"build:lib": {
|
|
||||||
"dependsOn": [
|
|
||||||
"^build:lib"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user