@kkuffour/solid-moderation-plugin 0.2.3 → 0.3.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/.data/.internal/idp/keys/cookie-secret$.json +1 -0
- package/.data/.internal/idp/keys/jwks$.json +1 -0
- package/.data/.internal/setup/current-base-url$.json +1 -0
- package/PLUGIN_DEVELOPER_GUIDE.md +213 -0
- package/README.md +25 -28
- package/components/context.jsonld +11 -0
- package/config/default.json +14 -28
- package/dist/ModerationHandler.d.ts +21 -0
- package/dist/ModerationHandler.d.ts.map +1 -0
- package/dist/ModerationHandler.js +158 -0
- package/dist/ModerationHandler.js.map +1 -0
- package/dist/ModerationHandler.jsonld +126 -0
- package/dist/components/components.jsonld +4 -9
- package/dist/components/context.jsonld +6 -245
- package/dist/index.d.ts +1 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/providers/SightEngineProvider.jsonld +2 -2
- package/package.json +10 -10
- package/src/ModerationHandler.ts +189 -0
- package/src/index.ts +1 -6
- package/ARCHITECTURE.md +0 -52
- package/CONFIG-GUIDE.md +0 -49
- package/DEVELOPMENT.md +0 -129
- package/ENV-VARIABLES.md +0 -137
- package/INSTALLATION.md +0 -90
- package/MIGRATION.md +0 -81
- package/PRODUCTION.md +0 -186
- package/PUBLISHING.md +0 -104
- package/TESTING.md +0 -93
- package/css-moderation-spec.md +0 -1422
- package/dist/ModerationConfig.d.ts +0 -16
- package/dist/ModerationConfig.d.ts.map +0 -1
- package/dist/ModerationConfig.js +0 -18
- package/dist/ModerationConfig.js.map +0 -1
- package/dist/ModerationConfig.jsonld +0 -66
- package/dist/ModerationMixin.d.ts +0 -13
- package/dist/ModerationMixin.d.ts.map +0 -1
- package/dist/ModerationMixin.js +0 -136
- package/dist/ModerationMixin.js.map +0 -1
- package/dist/ModerationMixin.jsonld +0 -180
- package/dist/ModerationOperationHandler.d.ts +0 -16
- package/dist/ModerationOperationHandler.d.ts.map +0 -1
- package/dist/ModerationOperationHandler.js +0 -45
- package/dist/ModerationOperationHandler.js.map +0 -1
- package/dist/ModerationOperationHandler.jsonld +0 -140
- package/dist/ModerationRecord.d.ts +0 -20
- package/dist/ModerationRecord.d.ts.map +0 -1
- package/dist/ModerationRecord.js +0 -3
- package/dist/ModerationRecord.js.map +0 -1
- package/dist/ModerationRecord.jsonld +0 -59
- package/dist/ModerationResourceStore.d.ts +0 -30
- package/dist/ModerationResourceStore.d.ts.map +0 -1
- package/dist/ModerationResourceStore.js +0 -167
- package/dist/ModerationResourceStore.js.map +0 -1
- package/dist/ModerationResourceStore.jsonld +0 -157
- package/dist/ModerationStore.d.ts +0 -12
- package/dist/ModerationStore.d.ts.map +0 -1
- package/dist/ModerationStore.js +0 -37
- package/dist/ModerationStore.js.map +0 -1
- package/dist/ModerationStore.jsonld +0 -59
- package/dist/util/GuardedStream.d.ts +0 -33
- package/dist/util/GuardedStream.d.ts.map +0 -1
- package/dist/util/GuardedStream.js +0 -89
- package/dist/util/GuardedStream.js.map +0 -1
- package/simple-test.json +0 -7
- package/src/ModerationConfig.ts +0 -29
- package/src/ModerationMixin.ts +0 -153
- package/src/ModerationOperationHandler.ts +0 -64
- package/src/ModerationRecord.ts +0 -19
- package/src/ModerationResourceStore.ts +0 -227
- package/src/ModerationStore.ts +0 -41
- package/src/util/GuardedStream.ts +0 -101
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/config/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld"
|
|
6
|
+
],
|
|
7
|
+
"@id": "npmd:@kkuffour/solid-moderation-plugin",
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler",
|
|
11
|
+
"@type": "Class",
|
|
12
|
+
"requireElement": "ModerationHandler",
|
|
13
|
+
"extends": [
|
|
14
|
+
"css:dist/http/ldp/OperationHandler.jsonld#OperationHandler"
|
|
15
|
+
],
|
|
16
|
+
"parameters": [
|
|
17
|
+
{
|
|
18
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_enabled",
|
|
19
|
+
"range": "xsd:boolean"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_imageNudityThreshold",
|
|
23
|
+
"range": "xsd:number"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_textSexualThreshold",
|
|
27
|
+
"range": "xsd:number"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_textToxicThreshold",
|
|
31
|
+
"range": "xsd:number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_videoNudityThreshold",
|
|
35
|
+
"range": "xsd:number"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_client",
|
|
39
|
+
"range": "ksmp:dist/providers/SightEngineProvider.jsonld#SightEngineProvider"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"memberFields": [
|
|
43
|
+
{
|
|
44
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_logger",
|
|
45
|
+
"memberFieldName": "logger"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_client",
|
|
49
|
+
"memberFieldName": "client"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_enabled",
|
|
53
|
+
"memberFieldName": "enabled"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_imageNudityThreshold",
|
|
57
|
+
"memberFieldName": "imageNudityThreshold"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_textSexualThreshold",
|
|
61
|
+
"memberFieldName": "textSexualThreshold"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_textToxicThreshold",
|
|
65
|
+
"memberFieldName": "textToxicThreshold"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_videoNudityThreshold",
|
|
69
|
+
"memberFieldName": "videoNudityThreshold"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_constructor",
|
|
73
|
+
"memberFieldName": "constructor"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_handle",
|
|
77
|
+
"memberFieldName": "handle"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_shouldModerate",
|
|
81
|
+
"memberFieldName": "shouldModerate"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_isModeratable",
|
|
85
|
+
"memberFieldName": "isModeratable"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_moderateImage",
|
|
89
|
+
"memberFieldName": "moderateImage"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_moderateVideo",
|
|
93
|
+
"memberFieldName": "moderateVideo"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_moderateText",
|
|
97
|
+
"memberFieldName": "moderateText"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler__member_getFileExtension",
|
|
101
|
+
"memberFieldName": "getFileExtension"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"constructorArguments": [
|
|
105
|
+
{
|
|
106
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_client"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_enabled"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_imageNudityThreshold"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_textSexualThreshold"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_textToxicThreshold"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"@id": "ksmp:dist/ModerationHandler.jsonld#ModerationHandler_videoNudityThreshold"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/config/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@kkuffour/solid-moderation-plugin",
|
|
7
7
|
"@type": "Module",
|
|
8
8
|
"requireName": "@kkuffour/solid-moderation-plugin",
|
|
9
9
|
"import": [
|
|
10
|
-
"npmd:@kkuffour/solid-moderation-plugin/^0.
|
|
11
|
-
"npmd:@kkuffour/solid-moderation-plugin/^0.
|
|
12
|
-
"npmd:@kkuffour/solid-moderation-plugin/^0.2.0/dist/ModerationConfig.jsonld",
|
|
13
|
-
"npmd:@kkuffour/solid-moderation-plugin/^0.2.0/dist/ModerationStore.jsonld",
|
|
14
|
-
"npmd:@kkuffour/solid-moderation-plugin/^0.2.0/dist/ModerationRecord.jsonld",
|
|
15
|
-
"npmd:@kkuffour/solid-moderation-plugin/^0.2.0/dist/ModerationMixin.jsonld",
|
|
16
|
-
"npmd:@kkuffour/solid-moderation-plugin/^0.2.0/dist/providers/SightEngineProvider.jsonld"
|
|
10
|
+
"npmd:@kkuffour/solid-moderation-plugin/^0.3.0/dist/ModerationHandler.jsonld",
|
|
11
|
+
"npmd:@kkuffour/solid-moderation-plugin/^0.3.0/dist/providers/SightEngineProvider.jsonld"
|
|
17
12
|
]
|
|
18
13
|
}
|
|
@@ -1,250 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"@prefix": true,
|
|
10
|
-
"@context": {
|
|
11
|
-
"enabled": {
|
|
12
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_enabled"
|
|
13
|
-
},
|
|
14
|
-
"auditLoggingEnabled": {
|
|
15
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_auditLoggingEnabled"
|
|
16
|
-
},
|
|
17
|
-
"auditLoggingStorePath": {
|
|
18
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_auditLoggingStorePath"
|
|
19
|
-
},
|
|
20
|
-
"sightEngineApiUser": {
|
|
21
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_sightEngineApiUser"
|
|
22
|
-
},
|
|
23
|
-
"sightEngineApiSecret": {
|
|
24
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_sightEngineApiSecret"
|
|
25
|
-
},
|
|
26
|
-
"imagesEnabled": {
|
|
27
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_imagesEnabled"
|
|
28
|
-
},
|
|
29
|
-
"textEnabled": {
|
|
30
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_textEnabled"
|
|
31
|
-
},
|
|
32
|
-
"videoEnabled": {
|
|
33
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_videoEnabled"
|
|
34
|
-
},
|
|
35
|
-
"imageNudityThreshold": {
|
|
36
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_imageNudityThreshold"
|
|
37
|
-
},
|
|
38
|
-
"textSexualThreshold": {
|
|
39
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_textSexualThreshold"
|
|
40
|
-
},
|
|
41
|
-
"textToxicThreshold": {
|
|
42
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_textToxicThreshold"
|
|
43
|
-
},
|
|
44
|
-
"videoNudityThreshold": {
|
|
45
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_videoNudityThreshold"
|
|
46
|
-
},
|
|
47
|
-
"source": {
|
|
48
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_source"
|
|
49
|
-
},
|
|
50
|
-
"": {
|
|
51
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_enabled"
|
|
52
|
-
},
|
|
53
|
-
"ggingEnabled": {
|
|
54
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_auditLoggingEnabled"
|
|
55
|
-
},
|
|
56
|
-
"ggingStorePath": {
|
|
57
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_auditLoggingStorePath"
|
|
58
|
-
},
|
|
59
|
-
"gineApiUser": {
|
|
60
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_sightEngineApiUser"
|
|
61
|
-
},
|
|
62
|
-
"gineApiSecret": {
|
|
63
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_sightEngineApiSecret"
|
|
64
|
-
},
|
|
65
|
-
"nabled": {
|
|
66
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_imagesEnabled"
|
|
67
|
-
},
|
|
68
|
-
"bled": {
|
|
69
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_textEnabled"
|
|
70
|
-
},
|
|
71
|
-
"abled": {
|
|
72
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_videoEnabled"
|
|
73
|
-
},
|
|
74
|
-
"dityThreshold": {
|
|
75
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_videoNudityThreshold"
|
|
76
|
-
},
|
|
77
|
-
"ualThreshold": {
|
|
78
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_textSexualThreshold"
|
|
79
|
-
},
|
|
80
|
-
"icThreshold": {
|
|
81
|
-
"@id": "ksmp:dist/ModerationOperationHandler.jsonld#ModerationOperationHandler_textToxicThreshold"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"ModerationResourceStore": {
|
|
86
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore",
|
|
87
|
-
"@prefix": true,
|
|
88
|
-
"@context": {
|
|
89
|
-
"enabled": {
|
|
90
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_enabled"
|
|
91
|
-
},
|
|
92
|
-
"imageNudityThreshold": {
|
|
93
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_imageNudityThreshold"
|
|
94
|
-
},
|
|
95
|
-
"textSexualThreshold": {
|
|
96
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_textSexualThreshold"
|
|
97
|
-
},
|
|
98
|
-
"textToxicThreshold": {
|
|
99
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_textToxicThreshold"
|
|
100
|
-
},
|
|
101
|
-
"videoNudityThreshold": {
|
|
102
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_videoNudityThreshold"
|
|
103
|
-
},
|
|
104
|
-
"client": {
|
|
105
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_client"
|
|
106
|
-
},
|
|
107
|
-
"source": {
|
|
108
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_source"
|
|
109
|
-
},
|
|
110
|
-
"": {
|
|
111
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_enabled"
|
|
112
|
-
},
|
|
113
|
-
"dityThreshold": {
|
|
114
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_videoNudityThreshold"
|
|
115
|
-
},
|
|
116
|
-
"ualThreshold": {
|
|
117
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_textSexualThreshold"
|
|
118
|
-
},
|
|
119
|
-
"icThreshold": {
|
|
120
|
-
"@id": "ksmp:dist/ModerationResourceStore.jsonld#ModerationResourceStore_textToxicThreshold"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"ModerationConfig": {
|
|
125
|
-
"@id": "ksmp:dist/ModerationConfig.jsonld#ModerationConfig",
|
|
126
|
-
"@prefix": true,
|
|
127
|
-
"@context": {}
|
|
128
|
-
},
|
|
129
|
-
"ModerationStore": {
|
|
130
|
-
"@id": "ksmp:dist/ModerationStore.jsonld#ModerationStore",
|
|
131
|
-
"@prefix": true,
|
|
132
|
-
"@context": {
|
|
133
|
-
"storePath": {
|
|
134
|
-
"@id": "ksmp:dist/ModerationStore.jsonld#ModerationStore_storePath"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"ModerationRecord": {
|
|
139
|
-
"@id": "ksmp:dist/ModerationRecord.jsonld#ModerationRecord",
|
|
140
|
-
"@prefix": true,
|
|
141
|
-
"@context": {}
|
|
142
|
-
},
|
|
143
|
-
"ModerationMixin": {
|
|
144
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin",
|
|
145
|
-
"@prefix": true,
|
|
146
|
-
"@context": {
|
|
147
|
-
"moderationConfig_enabled": {
|
|
148
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_enabled"
|
|
149
|
-
},
|
|
150
|
-
"moderationConfig_auditLoggingEnabled": {
|
|
151
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_auditLoggingEnabled"
|
|
152
|
-
},
|
|
153
|
-
"moderationConfig_auditLoggingStorePath": {
|
|
154
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_auditLoggingStorePath"
|
|
155
|
-
},
|
|
156
|
-
"moderationConfig_sightEngineApiUser": {
|
|
157
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_sightEngineApiUser"
|
|
158
|
-
},
|
|
159
|
-
"moderationConfig_sightEngineApiSecret": {
|
|
160
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_sightEngineApiSecret"
|
|
161
|
-
},
|
|
162
|
-
"moderationConfig_imagesEnabled": {
|
|
163
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_imagesEnabled"
|
|
164
|
-
},
|
|
165
|
-
"moderationConfig_textEnabled": {
|
|
166
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_textEnabled"
|
|
167
|
-
},
|
|
168
|
-
"moderationConfig_videoEnabled": {
|
|
169
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_videoEnabled"
|
|
170
|
-
},
|
|
171
|
-
"moderationConfig_imageNudityThreshold": {
|
|
172
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_imageNudityThreshold"
|
|
173
|
-
},
|
|
174
|
-
"moderationConfig_textSexualThreshold": {
|
|
175
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_textSexualThreshold"
|
|
176
|
-
},
|
|
177
|
-
"moderationConfig_textToxicThreshold": {
|
|
178
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_textToxicThreshold"
|
|
179
|
-
},
|
|
180
|
-
"moderationConfig_videoNudityThreshold": {
|
|
181
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_videoNudityThreshold"
|
|
182
|
-
},
|
|
183
|
-
"enabled": {
|
|
184
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_enabled"
|
|
185
|
-
},
|
|
186
|
-
"auditLoggingEnabled": {
|
|
187
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_auditLoggingEnabled"
|
|
188
|
-
},
|
|
189
|
-
"auditLoggingStorePath": {
|
|
190
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_auditLoggingStorePath"
|
|
191
|
-
},
|
|
192
|
-
"sightEngineApiUser": {
|
|
193
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_sightEngineApiUser"
|
|
194
|
-
},
|
|
195
|
-
"sightEngineApiSecret": {
|
|
196
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_sightEngineApiSecret"
|
|
197
|
-
},
|
|
198
|
-
"imagesEnabled": {
|
|
199
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_imagesEnabled"
|
|
200
|
-
},
|
|
201
|
-
"textEnabled": {
|
|
202
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_textEnabled"
|
|
203
|
-
},
|
|
204
|
-
"videoEnabled": {
|
|
205
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_videoEnabled"
|
|
206
|
-
},
|
|
207
|
-
"imageNudityThreshold": {
|
|
208
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_imageNudityThreshold"
|
|
209
|
-
},
|
|
210
|
-
"textSexualThreshold": {
|
|
211
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_textSexualThreshold"
|
|
212
|
-
},
|
|
213
|
-
"textToxicThreshold": {
|
|
214
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_textToxicThreshold"
|
|
215
|
-
},
|
|
216
|
-
"videoNudityThreshold": {
|
|
217
|
-
"@id": "ksmp:dist/ModerationMixin.jsonld#ModerationMixin_moderationConfig_videoNudityThreshold"
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
"SightEngineProvider": {
|
|
222
|
-
"@id": "ksmp:dist/providers/SightEngineProvider.jsonld#SightEngineProvider",
|
|
223
|
-
"@prefix": true,
|
|
224
|
-
"@context": {
|
|
225
|
-
"apiUser": {
|
|
226
|
-
"@id": "ksmp:dist/providers/SightEngineProvider.jsonld#SightEngineProvider_apiUser"
|
|
227
|
-
},
|
|
228
|
-
"apiSecret": {
|
|
229
|
-
"@id": "ksmp:dist/providers/SightEngineProvider.jsonld#SightEngineProvider_apiSecret"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"SightEngineResult": {
|
|
234
|
-
"@id": "ksmp:dist/providers/SightEngineProvider.jsonld#SightEngineResult",
|
|
235
|
-
"@prefix": true,
|
|
236
|
-
"@context": {}
|
|
237
|
-
},
|
|
238
|
-
"SightEngineTextResult": {
|
|
239
|
-
"@id": "ksmp:dist/providers/SightEngineProvider.jsonld#SightEngineTextResult",
|
|
240
|
-
"@prefix": true,
|
|
241
|
-
"@context": {}
|
|
242
|
-
},
|
|
243
|
-
"SightEngineVideoResult": {
|
|
244
|
-
"@id": "ksmp:dist/providers/SightEngineProvider.jsonld#SightEngineVideoResult",
|
|
245
|
-
"@prefix": true,
|
|
246
|
-
"@context": {}
|
|
247
|
-
}
|
|
5
|
+
"ksmp": "https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/",
|
|
6
|
+
|
|
7
|
+
"ModerationHandler": "ksmp:ModerationHandler",
|
|
8
|
+
"SightEngineProvider": "ksmp:SightEngineProvider"
|
|
248
9
|
}
|
|
249
10
|
]
|
|
250
|
-
}
|
|
11
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './ModerationResourceStore';
|
|
3
|
-
export * from './ModerationConfig';
|
|
4
|
-
export * from './ModerationStore';
|
|
5
|
-
export * from './ModerationRecord';
|
|
6
|
-
export * from './ModerationMixin';
|
|
1
|
+
export * from './ModerationHandler';
|
|
7
2
|
export * from './providers/SightEngineProvider';
|
|
8
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,11 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./ModerationResourceStore"), exports);
|
|
19
|
-
__exportStar(require("./ModerationConfig"), exports);
|
|
20
|
-
__exportStar(require("./ModerationStore"), exports);
|
|
21
|
-
__exportStar(require("./ModerationRecord"), exports);
|
|
22
|
-
__exportStar(require("./ModerationMixin"), exports);
|
|
17
|
+
__exportStar(require("./ModerationHandler"), exports);
|
|
23
18
|
__exportStar(require("./providers/SightEngineProvider"), exports);
|
|
24
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kEAAgD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/config/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@kkuffour/solid-moderation-plugin",
|
|
7
7
|
"components": [
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kkuffour/solid-moderation-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Content moderation plugin for Community Solid Server",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin",
|
|
8
8
|
"lsd:components": "dist/components/components.jsonld",
|
|
9
9
|
"lsd:contexts": {
|
|
10
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
11
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
10
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/components/context.jsonld": "dist/components/context.jsonld",
|
|
11
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/config/context.jsonld": "config/context.jsonld"
|
|
12
12
|
},
|
|
13
13
|
"lsd:importPaths": {
|
|
14
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
15
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
16
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.
|
|
14
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/components/": "dist/components/",
|
|
15
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/config/": "config/",
|
|
16
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@kkuffour/solid-moderation-plugin/^0.3.0/dist/": "dist/"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "npm run build:ts && npm run build:components",
|
|
20
20
|
"build:ts": "tsc",
|
|
21
|
-
"build:components": "componentsjs-generator -s src -c dist/components -r ksmp",
|
|
22
|
-
"build:copy": "mkdir -p dist/components && cp components/*.jsonld dist/components/",
|
|
21
|
+
"build:components": "componentsjs-generator -s src -c dist/components -r ksmp && cp components/context.jsonld dist/components/",
|
|
23
22
|
"test": "jest"
|
|
24
23
|
},
|
|
25
24
|
"keywords": [
|
|
@@ -34,12 +33,13 @@
|
|
|
34
33
|
"@solid/community-server": "^7.0.0"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
36
|
+
"asynchronous-handlers": "^1.0.2",
|
|
37
37
|
"form-data": "^4.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@solid/community-server": "^7.0.0",
|
|
41
|
+
"@types/node": "^20.0.0",
|
|
41
42
|
"componentsjs-generator": "^3.1.0",
|
|
42
|
-
"typescript": "^5.0.0"
|
|
43
|
-
"@types/node": "^20.0.0"
|
|
43
|
+
"typescript": "^5.0.0"
|
|
44
44
|
}
|
|
45
45
|
}
|