Skip to content

Commit 0df1dff

Browse files
committed
Takedown page UI
1 parent 638d5ba commit 0df1dff

15 files changed

Lines changed: 898 additions & 40 deletions

File tree

kahuna/app/lib/KahunaConfig.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class KahunaConfig(resources: GridConfigResources) extends CommonConfig(resource
5151
val showSendToPhotoSales: Option[Boolean] = booleanOpt("showSendToPhotoSales")
5252
val aiSearchResultLimit: Int = intOpt("ai.search.resultLimit").getOrElse(200)
5353

54+
val imageTakedownEnabled: Boolean = booleanOpt("image.takedown.enabled").getOrElse(false)
55+
5456
val frameAncestors: Set[String] = getStringSet("security.frameAncestors")
5557
val connectSources: Set[String] = getStringSet("security.connectSources") ++ maybeBucketForUIUploads.map { bucket =>
5658
if (isDev) "https://localstack.media.local.dev-gutools.co.uk"

kahuna/app/views/main.scala.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
announcements: @Html(announcements),
9999
imageTypes: @Html(imageTypes),
100100
agencyPicksIngredients: @Html(agencyPicksIngredients),
101+
imageTakedownEnabled: @kahunaConfig.imageTakedownEnabled,
101102
}
102103
</script>
103104

kahuna/conf/routes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
GET / controllers.KahunaController.index(ignored="")
66
GET /images/$id<[0-9a-z]+> controllers.KahunaController.index(id: String)
77
GET /images/$id<[0-9a-z]+>/crop controllers.KahunaController.index(id: String)
8+
GET /images/$id<[0-9a-z]+>/takedown controllers.KahunaController.index(id: String)
89
GET /search controllers.KahunaController.index(ignored="")
910
GET /upload controllers.KahunaController.index(ignored="")
1011
GET /quotas controllers.KahunaController.quotas

kahuna/global.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,14 @@ declare module '*.module.css' {
22
const classes: { readonly [key: string]: string }
33
export default classes
44
}
5+
6+
declare module '*.html' {
7+
const template: string;
8+
export default template;
9+
}
10+
11+
declare module '*.svg' {
12+
const content: string;
13+
export default content;
14+
}
15+

0 commit comments

Comments
 (0)