Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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-webui
Commits
882ee71a
Commit
882ee71a
authored
3 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
DOC: remove outdated instruction; update code snippet
parent
bb098840
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!50
Release v0.4.1
,
!46
ENH: add a form_panel module that allows to create a panel for web forms
Pipeline
#15300
passed
3 years ago
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doc/extension/module.md
+5
-15
5 additions, 15 deletions
src/doc/extension/module.md
with
5 additions
and
15 deletions
src/doc/extension/module.md
+
5
−
15
View file @
882ee71a
...
...
@@ -23,16 +23,16 @@ Create a new file in `src/core/js` starting with `ext_`. E.g. `ext_flight_previe
* @requires somelibrary
* (pass the dependencies as arguments)
*/
var
ext_flight_preview
=
function
(
somelibrary
)
{
const
ext_flight_preview
=
function
(
libA
,
libB
)
{
var
init
=
function
(
toolbox
)
{
const
init
=
function
()
{
/* initialization of the module */
}
/**
* doc string
*/
var
some_function
=
function
(
arg1
,
arg2
)
{
const
some_function
=
function
(
arg1
,
arg2
)
{
}
/* the main function must return the initialization of the module */
...
...
@@ -40,7 +40,7 @@ var ext_flight_preview = function (somelibrary) {
init
:
init
,
};
//pass the dependencies as arguments here as well
}(
somelibrary
);
}(
libA
,
libB
);
// this will be replaced by require.js in the future.
$
(
document
).
ready
(
function
()
{
...
...
@@ -52,16 +52,6 @@ $(document).ready(function() {
}
});
```
## Update xml
Add a section to
`src/core/xsl/main.xsl`
to include your new file.
```
xsl
<xsl:element name="script">
<xsl:attribute name="src">
<xsl:value-of select="concat($basepath,'webinterface/${BUILD_NUMBER}/js/ext_sss_markdown.js')"/>
</xsl:attribute>
</xsl:element>
```
## Add to index.html in test
If you have unittests (and you should), you need to add a line in :
...
...
@@ -69,4 +59,4 @@ If you have unittests (and you should), you need to add a line in :
## Update the changelog
## Create a merge request
\ No newline at end of file
## Create a merge request
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