@nocobase/plugin-multi-keyword-filter 2.0.3
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/LICENSE +201 -0
- package/README.md +99 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/0d9b6225e99c9b66.js +10 -0
- package/dist/client/MultipleKeywordsInput.d.ts +15 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.js +10 -0
- package/dist/client/interceptor.d.ts +9 -0
- package/dist/client/locale.d.ts +10 -0
- package/dist/externalVersion.js +20 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/de-DE.json +18 -0
- package/dist/locale/en-US.json +18 -0
- package/dist/locale/es-ES.json +18 -0
- package/dist/locale/fr-FR.json +18 -0
- package/dist/locale/hu-HU.json +18 -0
- package/dist/locale/id-ID.json +18 -0
- package/dist/locale/it-IT.json +18 -0
- package/dist/locale/ja-JP.json +18 -0
- package/dist/locale/ko-KR.json +18 -0
- package/dist/locale/nl-NL.json +18 -0
- package/dist/locale/pt-BR.json +18 -0
- package/dist/locale/ru-RU.json +18 -0
- package/dist/locale/tr-TR.json +18 -0
- package/dist/locale/uk-UA.json +18 -0
- package/dist/locale/vi-VN.json +18 -0
- package/dist/locale/zh-CN.json +18 -0
- package/dist/locale/zh-TW.json +18 -0
- package/dist/node_modules/qs/.editorconfig +43 -0
- package/dist/node_modules/qs/.eslintrc +38 -0
- package/dist/node_modules/qs/.github/FUNDING.yml +12 -0
- package/dist/node_modules/qs/.nycrc +13 -0
- package/dist/node_modules/qs/dist/qs.js +2087 -0
- package/dist/node_modules/qs/lib/formats.js +23 -0
- package/dist/node_modules/qs/lib/index.js +1 -0
- package/dist/node_modules/qs/lib/parse.js +264 -0
- package/dist/node_modules/qs/lib/stringify.js +320 -0
- package/dist/node_modules/qs/lib/utils.js +252 -0
- package/dist/node_modules/qs/package.json +1 -0
- package/dist/node_modules/qs/test/empty-keys-cases.js +37 -0
- package/dist/node_modules/qs/test/parse.js +898 -0
- package/dist/node_modules/qs/test/stringify.js +972 -0
- package/dist/node_modules/qs/test/utils.js +136 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/middlewares.d.ts +10 -0
- package/dist/server/middlewares.js +63 -0
- package/dist/server/plugin.d.ts +19 -0
- package/dist/server/plugin.js +58 -0
- package/package.json +31 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var inspect = require('object-inspect');
|
|
5
|
+
var SaferBuffer = require('safer-buffer').Buffer;
|
|
6
|
+
var forEach = require('for-each');
|
|
7
|
+
var utils = require('../lib/utils');
|
|
8
|
+
|
|
9
|
+
test('merge()', function (t) {
|
|
10
|
+
t.deepEqual(utils.merge(null, true), [null, true], 'merges true into null');
|
|
11
|
+
|
|
12
|
+
t.deepEqual(utils.merge(null, [42]), [null, 42], 'merges null into an array');
|
|
13
|
+
|
|
14
|
+
t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
|
|
15
|
+
|
|
16
|
+
var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } });
|
|
17
|
+
t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array');
|
|
18
|
+
|
|
19
|
+
var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } });
|
|
20
|
+
t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array');
|
|
21
|
+
|
|
22
|
+
var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' });
|
|
23
|
+
t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array');
|
|
24
|
+
|
|
25
|
+
var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] });
|
|
26
|
+
t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] });
|
|
27
|
+
|
|
28
|
+
var noOptionsNonObjectSource = utils.merge({ foo: 'baz' }, 'bar');
|
|
29
|
+
t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true });
|
|
30
|
+
|
|
31
|
+
t.test(
|
|
32
|
+
'avoids invoking array setters unnecessarily',
|
|
33
|
+
{ skip: typeof Object.defineProperty !== 'function' },
|
|
34
|
+
function (st) {
|
|
35
|
+
var setCount = 0;
|
|
36
|
+
var getCount = 0;
|
|
37
|
+
var observed = [];
|
|
38
|
+
Object.defineProperty(observed, 0, {
|
|
39
|
+
get: function () {
|
|
40
|
+
getCount += 1;
|
|
41
|
+
return { bar: 'baz' };
|
|
42
|
+
},
|
|
43
|
+
set: function () { setCount += 1; }
|
|
44
|
+
});
|
|
45
|
+
utils.merge(observed, [null]);
|
|
46
|
+
st.equal(setCount, 0);
|
|
47
|
+
st.equal(getCount, 1);
|
|
48
|
+
observed[0] = observed[0]; // eslint-disable-line no-self-assign
|
|
49
|
+
st.equal(setCount, 1);
|
|
50
|
+
st.equal(getCount, 2);
|
|
51
|
+
st.end();
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
t.end();
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test('assign()', function (t) {
|
|
59
|
+
var target = { a: 1, b: 2 };
|
|
60
|
+
var source = { b: 3, c: 4 };
|
|
61
|
+
var result = utils.assign(target, source);
|
|
62
|
+
|
|
63
|
+
t.equal(result, target, 'returns the target');
|
|
64
|
+
t.deepEqual(target, { a: 1, b: 3, c: 4 }, 'target and source are merged');
|
|
65
|
+
t.deepEqual(source, { b: 3, c: 4 }, 'source is untouched');
|
|
66
|
+
|
|
67
|
+
t.end();
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
test('combine()', function (t) {
|
|
71
|
+
t.test('both arrays', function (st) {
|
|
72
|
+
var a = [1];
|
|
73
|
+
var b = [2];
|
|
74
|
+
var combined = utils.combine(a, b);
|
|
75
|
+
|
|
76
|
+
st.deepEqual(a, [1], 'a is not mutated');
|
|
77
|
+
st.deepEqual(b, [2], 'b is not mutated');
|
|
78
|
+
st.notEqual(a, combined, 'a !== combined');
|
|
79
|
+
st.notEqual(b, combined, 'b !== combined');
|
|
80
|
+
st.deepEqual(combined, [1, 2], 'combined is a + b');
|
|
81
|
+
|
|
82
|
+
st.end();
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
t.test('one array, one non-array', function (st) {
|
|
86
|
+
var aN = 1;
|
|
87
|
+
var a = [aN];
|
|
88
|
+
var bN = 2;
|
|
89
|
+
var b = [bN];
|
|
90
|
+
|
|
91
|
+
var combinedAnB = utils.combine(aN, b);
|
|
92
|
+
st.deepEqual(b, [bN], 'b is not mutated');
|
|
93
|
+
st.notEqual(aN, combinedAnB, 'aN + b !== aN');
|
|
94
|
+
st.notEqual(a, combinedAnB, 'aN + b !== a');
|
|
95
|
+
st.notEqual(bN, combinedAnB, 'aN + b !== bN');
|
|
96
|
+
st.notEqual(b, combinedAnB, 'aN + b !== b');
|
|
97
|
+
st.deepEqual([1, 2], combinedAnB, 'first argument is array-wrapped when not an array');
|
|
98
|
+
|
|
99
|
+
var combinedABn = utils.combine(a, bN);
|
|
100
|
+
st.deepEqual(a, [aN], 'a is not mutated');
|
|
101
|
+
st.notEqual(aN, combinedABn, 'a + bN !== aN');
|
|
102
|
+
st.notEqual(a, combinedABn, 'a + bN !== a');
|
|
103
|
+
st.notEqual(bN, combinedABn, 'a + bN !== bN');
|
|
104
|
+
st.notEqual(b, combinedABn, 'a + bN !== b');
|
|
105
|
+
st.deepEqual([1, 2], combinedABn, 'second argument is array-wrapped when not an array');
|
|
106
|
+
|
|
107
|
+
st.end();
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
t.test('neither is an array', function (st) {
|
|
111
|
+
var combined = utils.combine(1, 2);
|
|
112
|
+
st.notEqual(1, combined, '1 + 2 !== 1');
|
|
113
|
+
st.notEqual(2, combined, '1 + 2 !== 2');
|
|
114
|
+
st.deepEqual([1, 2], combined, 'both arguments are array-wrapped when not an array');
|
|
115
|
+
|
|
116
|
+
st.end();
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
t.end();
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
test('isBuffer()', function (t) {
|
|
123
|
+
forEach([null, undefined, true, false, '', 'abc', 42, 0, NaN, {}, [], function () {}, /a/g], function (x) {
|
|
124
|
+
t.equal(utils.isBuffer(x), false, inspect(x) + ' is not a buffer');
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
var fakeBuffer = { constructor: Buffer };
|
|
128
|
+
t.equal(utils.isBuffer(fakeBuffer), false, 'fake buffer is not a buffer');
|
|
129
|
+
|
|
130
|
+
var saferBuffer = SaferBuffer.from('abc');
|
|
131
|
+
t.equal(utils.isBuffer(saferBuffer), true, 'SaferBuffer instance is a buffer');
|
|
132
|
+
|
|
133
|
+
var buffer = Buffer.from && Buffer.alloc ? Buffer.from('abc') : new Buffer('abc');
|
|
134
|
+
t.equal(utils.isBuffer(buffer), true, 'real Buffer instance is a buffer');
|
|
135
|
+
t.end();
|
|
136
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export { default } from './plugin';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var server_exports = {};
|
|
38
|
+
__export(server_exports, {
|
|
39
|
+
default: () => import_plugin.default
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(server_exports);
|
|
42
|
+
var import_plugin = __toESM(require("./plugin"));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { Context, Next } from 'koa';
|
|
10
|
+
export declare function bodyToQueryMiddleware(ctx: Context, next: Next): Promise<void>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var middlewares_exports = {};
|
|
38
|
+
__export(middlewares_exports, {
|
|
39
|
+
bodyToQueryMiddleware: () => bodyToQueryMiddleware
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(middlewares_exports);
|
|
42
|
+
var import_qs = __toESM(require("qs"));
|
|
43
|
+
async function bodyToQueryMiddleware(ctx, next) {
|
|
44
|
+
var _a;
|
|
45
|
+
const bodyData = ctx.request.body || {};
|
|
46
|
+
if (bodyData.__params__) {
|
|
47
|
+
ctx.method = ((_a = bodyData.__method__) == null ? void 0 : _a.toUpperCase()) || "GET";
|
|
48
|
+
const parsedQuerystring = import_qs.default.parse(ctx.request.querystring, { strictNullHandling: true });
|
|
49
|
+
const mergedQuery = { ...parsedQuerystring, ...bodyData.__params__ };
|
|
50
|
+
delete bodyData.__params__;
|
|
51
|
+
delete bodyData.__method__;
|
|
52
|
+
ctx.request.query = mergedQuery;
|
|
53
|
+
ctx.request.querystring = import_qs.default.stringify(mergedQuery, {
|
|
54
|
+
strictNullHandling: true,
|
|
55
|
+
arrayFormat: "brackets"
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
await next();
|
|
59
|
+
}
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
bodyToQueryMiddleware
|
|
63
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from '@nocobase/server';
|
|
10
|
+
export declare class PluginFilterOperatorMultipleKeywordsServer extends Plugin {
|
|
11
|
+
afterAdd(): Promise<void>;
|
|
12
|
+
beforeLoad(): Promise<void>;
|
|
13
|
+
load(): Promise<void>;
|
|
14
|
+
install(): Promise<void>;
|
|
15
|
+
afterEnable(): Promise<void>;
|
|
16
|
+
afterDisable(): Promise<void>;
|
|
17
|
+
remove(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export default PluginFilterOperatorMultipleKeywordsServer;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var plugin_exports = {};
|
|
28
|
+
__export(plugin_exports, {
|
|
29
|
+
PluginFilterOperatorMultipleKeywordsServer: () => PluginFilterOperatorMultipleKeywordsServer,
|
|
30
|
+
default: () => plugin_default
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(plugin_exports);
|
|
33
|
+
var import_server = require("@nocobase/server");
|
|
34
|
+
var import_middlewares = require("./middlewares");
|
|
35
|
+
class PluginFilterOperatorMultipleKeywordsServer extends import_server.Plugin {
|
|
36
|
+
async afterAdd() {
|
|
37
|
+
}
|
|
38
|
+
async beforeLoad() {
|
|
39
|
+
this.app.use(import_middlewares.bodyToQueryMiddleware, {
|
|
40
|
+
after: "bodyParser"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
async load() {
|
|
44
|
+
}
|
|
45
|
+
async install() {
|
|
46
|
+
}
|
|
47
|
+
async afterEnable() {
|
|
48
|
+
}
|
|
49
|
+
async afterDisable() {
|
|
50
|
+
}
|
|
51
|
+
async remove() {
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
var plugin_default = PluginFilterOperatorMultipleKeywordsServer;
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
PluginFilterOperatorMultipleKeywordsServer
|
|
58
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nocobase/plugin-multi-keyword-filter",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"main": "dist/server/index.js",
|
|
5
|
+
"displayName": "Multi-keyword filter",
|
|
6
|
+
"displayName.zh-CN": "多关键词筛选",
|
|
7
|
+
"description": "Supports multi-keyword filtering for common fields, with options for quick input or batch import of keywords from Excel.",
|
|
8
|
+
"description.zh-CN": "支持常见字段的多关键词筛选,支持快捷输入或从 Excel 批量导入关键词。",
|
|
9
|
+
"homepage": "https://docs.nocobase.com/handbook/multi-keyword-filter",
|
|
10
|
+
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/multi-keyword-filter",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"Multiple keywords"
|
|
13
|
+
],
|
|
14
|
+
"nocobase": {
|
|
15
|
+
"supportedVersions": [
|
|
16
|
+
"1.x"
|
|
17
|
+
],
|
|
18
|
+
"editionLevel": 0
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"xlsx": "0.18.5"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@nocobase/client": "2.x",
|
|
25
|
+
"@nocobase/server": "2.x",
|
|
26
|
+
"@nocobase/test": "2.x",
|
|
27
|
+
"antd": "5.x"
|
|
28
|
+
},
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"gitHead": "5bcb42fc092f85adb9511c1a351b388bd7aaf66e"
|
|
31
|
+
}
|
package/server.d.ts
ADDED
package/server.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/server/index.js');
|