-
Notifications
You must be signed in to change notification settings - Fork 33
/
constants.ts
32 lines (31 loc) · 1.02 KB
/
constants.ts
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
import type { Config } from './config';
export const Constants = {
defaultConfig: {
extensionEnabled: true,
pumlServerUrl: 'https://plantuml-service-willbooster.fly.dev',
allowedUrls: [
'https://github.com/*',
'https://raw.githubusercontent.com/*',
'https://gitlab.com/*',
'https://gist.github.com/*',
'file:///*/*',
],
deniedUrls: ['https://github.com/*/edit/*'],
} as Config,
versionUmlText: ['@startuml', 'version', '@enduml'].join('\n'),
ignoreAttribute: 'data-wb-ignore',
imageTestIdAttribute: 'puml-vis-wb-img',
textTestIdAttribute: 'puml-vis-wb-txt',
commands: {
getConfig: 'getConfig',
getExtensionEnabled: 'getExtensionEnabled',
getAllowedUrls: 'getAllowedUrls',
getDeniedUrls: 'getDeniedUrls',
getPumlServerUrl: 'getPumlServerUrl',
setConfig: 'setConfig',
toggleExtensionEnabled: 'toggleExtensionEnabled',
setAllowedUrls: 'setAllowedUrls',
setDeniedUrls: 'setDeniedUrls',
setPumlServerUrl: 'setPumlServerUrl',
},
} as const;