This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathextension.json
153 lines (153 loc) Β· 4.82 KB
/
extension.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "Sanctions",
"version": "1.2.3",
"author": "[https://femiwiki.com/ Femiwiki Team]",
"url": "https://github.com/femiwiki/sanctions",
"descriptionmsg": "sanctions-desc",
"license-name": "AGPL-3.0-or-later",
"type": "specialpage",
"requires": {
"MediaWiki": ">= 1.35.0",
"extensions": {
"Echo": "*",
"Flow": "*",
"Renameuser": "*"
}
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\Sanctions\\": "includes/"
},
"AutoloadClasses": {
"SanctionsCreateTemplates": "maintenance/SanctionsCreateTemplates.php"
},
"ServiceWiringFiles": ["includes/ServiceWiring.php"],
"ResourceModules": {
"ext.sanctions.special.sanctions.styles": {
"styles": ["styles/spacial-sanctions.less"]
},
"ext.sanctions.special.sanctions": {
"scripts": ["ext.sanctions.specialSanctions.js"]
},
"ext.sanctions.flow-board": {
"scripts": ["ext.flowBoard.js"],
"styles": ["styles/flow-board.less"],
"dependencies": ["ext.sanctions.visualEditor"]
},
"ext.sanctions.flow-topic": {
"scripts": ["ext.flowTopic.js"],
"dependencies": ["ext.sanctions.visualEditor"]
},
"ext.sanctions": {
"scripts": ["sanctions/mw.sanctions.js"]
},
"ext.sanctions.visualEditor": {
"scripts": [
"visualeditor/mw.sanctions.ve.js",
"visualeditor/ui/mw.sanctions.ve.ui.js",
"visualeditor/ui/inspectors/mw.sanctions.ve.ui.AgreeInspector.js",
"visualeditor/ui/tools/mw.sanctions.ve.ui.AgreeWithDaysTool.js",
"visualeditor/ui/commands/mw.sanctions.ve.ui.AgreeCommand.js",
"visualeditor/ui/commands/mw.sanctions.ve.ui.DisagreeCommand.js",
"visualeditor/ui/tools/mw.sanctions.ve.ui.AgreeTool.js",
"visualeditor/ui/tools/mw.sanctions.ve.ui.DisagreeTool.js"
],
"messages": [
"sanctions-ve-vote-agree-tool-title",
"sanctions-ve-vote-disagree-tool-title",
"sanctions-ve-agree-days-inspector-title",
"sanctions-ve-agree-days-inspector-remove-label",
"sanctions-ve-agree-days-inspector-invalid-value"
],
"dependencies": [
"ext.visualEditor.core",
"ext.flow.visualEditor",
"ext.sanctions",
"ext.sanctions.visualEditor.icons"
]
},
"ext.sanctions.visualEditor.icons": {
"class": "ResourceLoaderImageModule",
"selectorWithoutVariant": ".oo-ui-icon-{name}",
"selectorWithVariant": ".oo-ui-image-{variant}.oo-ui-icon-{name}",
"variants": {
"progressive": {
"color": "#36c"
}
},
"images": {
"support": {
"file": "visualeditor/ui/images/support.svg",
"variants": ["progressive"]
},
"oppose": {
"file": "visualeditor/ui/images/oppose.svg",
"variants": ["progressive"]
}
}
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "Sanctions/modules"
},
"Hooks": {
"BeforeCreateEchoEvent": "MediaWiki\\Extension\\Sanctions\\Hooks\\Notification::onBeforeCreateEchoEvent",
"ContributionsToolLinks": "ToolLinks",
"DiffTools": "ToolLinks",
"EmailConfirmed": "Notification",
"GetUserBlock": "Block",
"FlowAddModules": "main",
"HistoryTools": "ToolLinks",
"LoadExtensionSchemaUpdates": "SchemaChanges",
"RecentChange_save": "main",
"ResourceLoaderGetConfigVars": "main",
"SidebarBeforeOutput": "ToolLinks",
"UserToolLinksEdit": "ToolLinks"
},
"HookHandlers": {
"main": {
"class": "MediaWiki\\Extension\\Sanctions\\Hooks\\Main",
"services": ["SanctionStore", "VoteStore", "UserFactory"]
},
"SchemaChanges": {
"class": "MediaWiki\\Extension\\Sanctions\\Hooks\\SchemaChanges"
},
"Block": {
"class": "MediaWiki\\Extension\\Sanctions\\Hooks\\Block",
"services": ["SanctionStore", "MainWANObjectCache"]
},
"Notification": {
"class": "MediaWiki\\Extension\\Sanctions\\Hooks\\Notification"
},
"ToolLinks": {
"class": "MediaWiki\\Extension\\Sanctions\\Hooks\\ToolLinks",
"services": ["UserFactory", "LinkRenderer"]
}
},
"SpecialPages": {
"Sanctions": {
"class": "MediaWiki\\Extension\\Sanctions\\SpacialSanctions",
"services": [
"SanctionStore",
"UserFactory",
"RevisionLookup",
"LinkRenderer"
]
}
},
"DefaultUserOptions": {
"echo-subscriptions-web-sanctions-against-me": true,
"echo-subscriptions-email-sanctions-against-me": true
},
"MessagesDirs": {
"Sanctions": ["i18n"]
},
"ExtensionMessagesFiles": {
"SanctionsAlias": "Sanctions.alias.php"
},
"TestAutoloadNamespaces": {
"MediaWiki\\Extension\\Sanctions\\Tests\\Integration\\": "tests/phpunit/integration/",
"MediaWiki\\Extension\\Sanctions\\Tests\\Unit\\": "tests/phpunit/unit/"
},
"manifest_version": 1
}