Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
f38bb4bab9 | |||
26f9bef087 | |||
634dabe52d |
BIN
docs/cista.webp
BIN
docs/cista.webp
Binary file not shown.
Before Width: | Height: | Size: 363 KiB After Width: | Height: | Size: 40 KiB |
@ -3,7 +3,10 @@
|
|||||||
<GalleryFigure v-if="editing?.key === 'new'" :doc="editing" :key=editing.key :editing="{rename: mkdir, exit}" />
|
<GalleryFigure v-if="editing?.key === 'new'" :doc="editing" :key=editing.key :editing="{rename: mkdir, exit}" />
|
||||||
<template v-for="(doc, index) in documents" :key=doc.key>
|
<template v-for="(doc, index) in documents" :key=doc.key>
|
||||||
<GalleryFigure :doc=doc :editing="editing === doc ? {rename, exit} : null" @menu="contextMenu($event, doc)">
|
<GalleryFigure :doc=doc :editing="editing === doc ? {rename, exit} : null" @menu="contextMenu($event, doc)">
|
||||||
<BreadCrumb v-if=showFolderBreadcrumb(index) :path="doc.loc ? doc.loc.split('/') : []" class="folder-change"/>
|
<template v-if=showFolderBreadcrumb(index)>
|
||||||
|
<BreadCrumb :path="doc.loc ? doc.loc.split('/') : []" class="folder-change"/>
|
||||||
|
<div class="spacer"></div>
|
||||||
|
</template>
|
||||||
</GalleryFigure>
|
</GalleryFigure>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
@ -255,6 +258,9 @@ const contextMenu = (ev: MouseEvent, doc: Doc) => {
|
|||||||
align-items: end;
|
align-items: end;
|
||||||
}
|
}
|
||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
border-radius: .5em;
|
border-radius: .5em 0 0 .5em;
|
||||||
|
}
|
||||||
|
.spacer {
|
||||||
|
flex: 0 1000000000 4rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -49,7 +49,7 @@ source = "vcs"
|
|||||||
|
|
||||||
[tool.hatch.build]
|
[tool.hatch.build]
|
||||||
artifacts = ["cista/wwwroot"]
|
artifacts = ["cista/wwwroot"]
|
||||||
hooks.custom.path = "scripts/build-frontend.py"
|
targets.sdist.hooks.custom.path = "scripts/build-frontend.py"
|
||||||
hooks.vcs.version-file = "cista/_version.py"
|
hooks.vcs.version-file = "cista/_version.py"
|
||||||
hooks.vcs.template = """
|
hooks.vcs.template = """
|
||||||
# This file is automatically generated by hatch build.
|
# This file is automatically generated by hatch build.
|
||||||
|
@ -10,9 +10,6 @@ from hatchling.builders.hooks.plugin.interface import BuildHookInterface
|
|||||||
class CustomBuildHook(BuildHookInterface):
|
class CustomBuildHook(BuildHookInterface):
|
||||||
def initialize(self, version, build_data):
|
def initialize(self, version, build_data):
|
||||||
super().initialize(version, build_data)
|
super().initialize(version, build_data)
|
||||||
# A hack to stop building twice on run
|
|
||||||
if not build_data.get("force_include"):
|
|
||||||
return
|
|
||||||
stderr.write(">>> Building Cista frontend\n")
|
stderr.write(">>> Building Cista frontend\n")
|
||||||
npm = shutil.which("npm")
|
npm = shutil.which("npm")
|
||||||
if npm is None:
|
if npm is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user