wiki-plugin-wmap 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +39 -0
- package/client/dialog/index.html +12 -0
- package/client/wmap.css +34 -0
- package/client/wmap.js +4630 -0
- package/factory.json +5 -0
- package/package.json +42 -0
- package/pages/about-wmap-plugin +98 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Federated Wiki - Wmap Plugin
|
|
2
|
+
|
|
3
|
+
This plugin, type: wmap, extends the markup of the federated wiki.
|
|
4
|
+
|
|
5
|
+
It allows for the rendering of inline wardley maps using the wmap syntax.
|
|
6
|
+
|
|
7
|
+
## Development workflow
|
|
8
|
+
|
|
9
|
+
This project has a `Makefile` that encapsulates some of the common development
|
|
10
|
+
tasks.
|
|
11
|
+
|
|
12
|
+
To help with development, you can to run the plugin in a local instance of
|
|
13
|
+
wiki. You need to set the path of that using the `WIKIDIR` environment variable.
|
|
14
|
+
|
|
15
|
+
The `Makefile` assumes the wiki is in `../../vendor/wiki`.
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
# If your wiki directory is elsehwere.
|
|
19
|
+
WIKIDIR=$HOME/workspace/wiki make link
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The source needs to be built before it can be used. `make build` builds it.
|
|
23
|
+
|
|
24
|
+
### Linking the project.
|
|
25
|
+
|
|
26
|
+
`make link` will create a link from this project to the local fedwiki instance,
|
|
27
|
+
so it can load the latest version of your code.
|
|
28
|
+
|
|
29
|
+
### Running the local Wiki.
|
|
30
|
+
|
|
31
|
+
`make` will run the wiki.
|
|
32
|
+
`make watch` will rebuild the client on any change.
|
|
33
|
+
|
|
34
|
+
### Code quality.
|
|
35
|
+
|
|
36
|
+
- Run tests with `make test`
|
|
37
|
+
- Format the code with `make format`
|
|
38
|
+
- Lint the code with `make lint`
|
|
39
|
+
- Generate typescript types with `make types`
|
package/client/wmap.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.wmap {
|
|
2
|
+
|
|
3
|
+
position: relative;
|
|
4
|
+
|
|
5
|
+
.actions {
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
transition: all 300ms;
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
padding: 0 2px;
|
|
13
|
+
|
|
14
|
+
img {
|
|
15
|
+
height: 18px;
|
|
16
|
+
width: 18px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
menu {
|
|
21
|
+
list-style: none;
|
|
22
|
+
padding: 0;
|
|
23
|
+
|
|
24
|
+
li { display: inline-block; }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:hover .actions {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
img {
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
}
|