Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Commits
0fc89beb
Commit
0fc89beb
authored
10 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-css' into 'dev'
F css See merge request
!108
parents
d41c566b
0f8ee50f
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!112
Release 0.12.0
,
!108
F css
Pipeline
#53490
passed
10 months ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
2
Pipelines
21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+12
-0
12 additions, 0 deletions
CHANGELOG.md
src/caosadvancedtools/crawler.py
+19
-15
19 additions, 15 deletions
src/caosadvancedtools/crawler.py
with
31 additions
and
15 deletions
CHANGELOG.md
+
12
−
0
View file @
0fc89beb
...
...
@@ -8,14 +8,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ###
-
Possibility to configure custom CSS to be used in static HTML sites created
by the crawler
### Changed ###
-
The static HTML pages that are generated by the crawler now require the
webinterface to be built with
`JS_DIST_BUNDLE=TRUE`
, i.e. all js source files
bundled into one
`webcaosdb.dist.js`
. This is the default and highly
recommended for production systems in any case but it will break the display
of these static files in certain corner cases where you may want to use
`JS_DIST_BUNDLE=FALSE`
for development or debugging reasons.
### Deprecated ###
### Removed ###
### Fixed ###
-
Rendering of entities in static HTML sites created by the crawler.
### Security ###
### Documentation ###
...
...
This diff is collapsed.
Click to expand it.
src/caosadvancedtools/crawler.py
+
19
−
15
View file @
0fc89beb
...
...
@@ -518,6 +518,12 @@ ____________________\n""".format(i+1, len(pending_changes)) + str(el[3]))
"""
from
xml.sax.saxutils
import
escape
caosdb_config
=
db
.
configuration
.
get_config
()
if
(
"
advancedtools
"
in
caosdb_config
and
"
crawler.customcssfile
"
in
caosdb_config
[
"
advancedtools
"
]):
cssfile
=
caosdb_config
[
"
advancedtools
"
][
"
crawler.customcssfile
"
]
else
:
cssfile
=
None
# TODO move path related stuff to sss_helper
form
=
"""
<html>
...
...
@@ -526,21 +532,17 @@ ____________________\n""".format(i+1, len(pending_changes)) + str(el[3]))
<meta http-equiv=
"
Content-Type
"
content=
"
text/html; charset=UTF-8
"
>
<meta name=
"
viewport
"
content=
"
width=device-width, initial-scale=1
"
>
<title>Crawler</title>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/webcaosdb.css
"
/>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/bootstrap.css
"
>
<script src=
"
{url}/webinterface/js/jquery.js
"
></script>
<script src=
"
{url}/webinterface/js/utif.js
"
></script>
<script src=
"
{url}/webinterface/js/loglevel.js
"
></script>
<script src=
"
{url}/webinterface/js/bootstrap.js
"
></script>
<script src=
"
{url}/webinterface/js/ext_table_preview.js
"
></script>
<script src=
"
{url}/webinterface/js/webcaosdb.js
"
></script>
<script src=
"
{url}/webinterface/js/plotly.js
"
></script>
<script src=
"
{url}/webinterface/js/caosdb.js
"
></script>
<script src=
"
{url}/webinterface/js/state-machine.js
"
></script>
<script src=
"
{url}/webinterface/js/showdown.js
"
></script>
<script src=
"
{url}/webinterface/js/preview.js
"
></script>
<script src=
"
{url}/webinterface/js/ext_references.js
"
></script>
<script src=
"
{url}/webinterface/js/ext_bottom_line.js
"
></script>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/webcaosdb.css
"
/>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/linkahead.css
"
/>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/dropzone.css
"
>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/tour.css
"
>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/leaflet.css
"
>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/leaflet-coordinates.css
"
>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/bootstrap-select.css
"
>
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/bootstrap-icons.css
"
>
{customcssfile}
<script src=
"
{url}/webinterface/webcaosdb.dist.js
"
></script>
</head>
<body>
<form method=
"
post
"
action=
"
{url}/scripting
"
>
...
...
@@ -582,9 +584,11 @@ ____________________\n""".format(i+1, len(pending_changes)) + str(el[3]))
</script>
</body>
</html>
"""
.
format
(
url
=
db
.
configuration
.
get
_config
()
[
"
Connection
"
][
"
url
"
],
"""
.
format
(
url
=
caosdb
_config
[
"
Connection
"
][
"
url
"
],
rid
=
run_id
,
changes
=
escape
(
"
\n
"
.
join
(
changes
)),
customcssfile
=
'
<link rel=
"
stylesheet
"
href=
"
{url}/webinterface/css/{customcssfile}
"
/>
'
.
format
(
url
=
caosdb_config
[
"
Connection
"
][
"
url
"
],
customcssfile
=
cssfile
)
if
cssfile
else
""
,
path
=
path
)
if
"
SHARED_DIR
"
in
os
.
environ
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment