@things-factory/font-base 5.0.0-alpha.55 → 5.0.0-alpha.56
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.
|
@@ -30,8 +30,13 @@ let FontQuery = class FontQuery {
|
|
|
30
30
|
}
|
|
31
31
|
async fonts(params, context) {
|
|
32
32
|
const { domain } = context.state;
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
34
|
+
repository: (0, typeorm_1.getRepository)(font_1.Font),
|
|
35
|
+
params,
|
|
36
|
+
domain,
|
|
37
|
+
searchables: ['name', 'description']
|
|
38
|
+
});
|
|
39
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
35
40
|
return { items, total };
|
|
36
41
|
}
|
|
37
42
|
async domain(font) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font-query.js","sourceRoot":"","sources":["../../../server/service/font/font-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAuC;AAEvC,qEAA4D;AAC5D,yDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"font-query.js","sourceRoot":"","sources":["../../../server/service/font/font-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAuC;AAEvC,qEAA4D;AAC5D,yDAAgD;AAChD,iDAAwF;AAExF,iCAA6B;AAC7B,2CAAsC;AAGtC,IAAa,SAAS,GAAtB,MAAa,SAAS;IAEpB,KAAK,CAAC,IAAI,CAAY,EAAU,EAAS,OAAY;QACnD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,uBAAa,EAAC,WAAI,CAAC,CAAC,OAAO,CAAC;YACvC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;IACJ,CAAC;IAGD,KAAK,CAAC,K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,CAAC;IAC/C,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;qCAMvC;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,oBAAQ,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IAC1D,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;sCAapC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;uCAE9B;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,4BAAU,CAAC;IACrB,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;qCAAZ,WAAI;;sCAO7B;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;wCAE/B;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;wCAE/B;AAjDU,SAAS;IADrB,IAAA,uBAAQ,EAAC,WAAI,CAAC;GACF,SAAS,CAkDrB;AAlDY,8BAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/font-base",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.56",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/attachment-base": "^5.0.0-alpha.
|
|
28
|
-
"@things-factory/auth-base": "^5.0.0-alpha.
|
|
29
|
-
"@things-factory/shell": "^5.0.0-alpha.
|
|
27
|
+
"@things-factory/attachment-base": "^5.0.0-alpha.56",
|
|
28
|
+
"@things-factory/auth-base": "^5.0.0-alpha.56",
|
|
29
|
+
"@things-factory/shell": "^5.0.0-alpha.56"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "105413a014a3cacefc97550b8f23e46789465219"
|
|
32
32
|
}
|
|
@@ -3,7 +3,7 @@ import { getRepository } from 'typeorm'
|
|
|
3
3
|
|
|
4
4
|
import { Attachment } from '@things-factory/attachment-base'
|
|
5
5
|
import { User } from '@things-factory/auth-base'
|
|
6
|
-
import {
|
|
6
|
+
import { Domain, getQueryBuilderFromListParams, ListParam } from '@things-factory/shell'
|
|
7
7
|
|
|
8
8
|
import { Font } from './font'
|
|
9
9
|
import { FontList } from './font-type'
|
|
@@ -23,8 +23,14 @@ export class FontQuery {
|
|
|
23
23
|
async fonts(@Args() params: ListParam, @Ctx() context: any): Promise<FontList> {
|
|
24
24
|
const { domain } = context.state
|
|
25
25
|
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const queryBuilder = getQueryBuilderFromListParams({
|
|
27
|
+
repository: getRepository(Font),
|
|
28
|
+
params,
|
|
29
|
+
domain,
|
|
30
|
+
searchables: ['name', 'description']
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const [items, total] = await queryBuilder.getManyAndCount()
|
|
28
34
|
|
|
29
35
|
return { items, total }
|
|
30
36
|
}
|