[CORL-436] Embed Code (#2398)

* feat: initial implementation

* fix: moved embed configuration to advanced

* feat: added copy button to embed code

* fix: removing unused line
This commit is contained in:
Wyatt Johnson
2019-07-12 22:35:09 +00:00
committed by GitHub
parent bc0b0d0339
commit d312d380ae
15 changed files with 214 additions and 14 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ const config = convict({
format: "optional-url",
default: "",
env: "STATIC_URI",
arg: "staticUri",
arg: "staticURI",
},
websocket_keep_alive_timeout: {
doc:
@@ -0,0 +1,6 @@
import { GQLSettingsTypeResolver } from "coral-server/graph/tenant/schema/__generated__/types";
import { Tenant } from "coral-server/models/tenant";
export const Settings: GQLSettingsTypeResolver<Tenant> = {
staticURI: (tenant, args, ctx) => ctx.config.get("static_uri") || null,
};
@@ -1076,6 +1076,11 @@ type Settings {
"""
domain: String! @auth(roles: [ADMIN])
"""
staticURI if configured, is the static URI used to serve static files from.
"""
staticURI: String @auth(roles: [ADMIN])
"""
allowedDomains is the list of domains that stories can come from.
"""