mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 06:59:44 +07:00
[PyCharm] PY-29177 Jupyter (fix): Added path resolution to relative local files (../../../1.png)
Part 1, initial commit of JS part. (cherry picked from commit 8e28858f8e6b206b044c4b7cb46a6d4932a7e29d) (cherry picked from commit f75ec86191d844fce62acb7d0f3835349d48378d) IJ-CR-155171 GitOrigin-RevId: 16ddacb8aa77275dd894c488d36931670e45881c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
daedb39b66
commit
a9fbe0f975
@@ -22,7 +22,7 @@ abstract class JupyterCefHttpHandlerBase(private val absolutePathFiles: Set<Stri
|
|||||||
companion object {
|
companion object {
|
||||||
private val allowedTypes = setOf("css", "js", "html", "svg", "woff", "woff2", "ttf")
|
private val allowedTypes = setOf("css", "js", "html", "svg", "woff", "woff2", "ttf")
|
||||||
private const val JUPYTER_HTTP_URI = "jupyter"
|
private const val JUPYTER_HTTP_URI = "jupyter"
|
||||||
private const val PATH_PREFIX = "/${JUPYTER_HTTP_URI}"
|
const val PATH_PREFIX: String = "/${JUPYTER_HTTP_URI}"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Jupyter HTTP files can be accessed with this URL
|
* Jupyter HTTP files can be accessed with this URL
|
||||||
@@ -117,4 +117,4 @@ abstract class JupyterCefHttpHandlerBase(private val absolutePathFiles: Set<Stri
|
|||||||
val resource = getResource(this::class.java, "${appName}/${file}")
|
val resource = getResource(this::class.java, "${appName}/${file}")
|
||||||
return resource.readBytes()
|
return resource.readBytes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user