Skip to content
Snippets Groups Projects
Verified Commit 8fd499c6 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: commit save point

parent 0710fe40
No related branches found
No related tags found
No related merge requests found
Showing
with 110 additions and 60 deletions
...@@ -10,6 +10,10 @@ const exitCodeCatchAll = 1 ...@@ -10,6 +10,10 @@ const exitCodeCatchAll = 1
const defaultOverviewTemplate = ` const defaultOverviewTemplate = `
---
block-headings: true
---
{{ if .HasChangelog }} {{ if .HasChangelog }}
## Changelog ## Changelog
...@@ -103,7 +107,7 @@ Last Update: null ...@@ -103,7 +107,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -184,17 +188,16 @@ Privacy: ...@@ -184,17 +188,16 @@ Privacy:
{{ end }} {{ end }}
{{ if .Privacy }} {{ if .Privacy }}
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** {{ if .Purposes }}**{{ .Purposes }}** {{ end }}**({{ .ID }})**
{{ .Description }}
{{ if .Description }} {{ .Description }}
{{ end }}
| | | | | |
|--|--| |-----------------------|----------------------------|
| Category | {{ .Category }} | | Category | {{ .Category }} |
| Data Retention Period | {{ .DataRetentionPeriod }} | | Data Retention Period | {{ .DataRetentionPeriod }} |
| Legal Basis | {{ .LegalBasis }} | | Legal Basis | {{ .LegalBasis }} |
......
...@@ -40,8 +40,16 @@ func splitYamlParts(content []byte) (error, contentRequirement) { ...@@ -40,8 +40,16 @@ func splitYamlParts(content []byte) (error, contentRequirement) {
text += before text += before
a, b, found := strings.Cut(remaining, "...") a, b, found := strings.Cut(remaining, "\n...")
if !found { if !found {
a, b, found = strings.Cut(remaining, "\n---")
if !found {
a, b, found = strings.Cut(remaining, "...")
if !found {
a, b, found = strings.Cut(remaining, "---") a, b, found = strings.Cut(remaining, "---")
if !found { if !found {
...@@ -49,6 +57,9 @@ func splitYamlParts(content []byte) (error, contentRequirement) { ...@@ -49,6 +57,9 @@ func splitYamlParts(content []byte) (error, contentRequirement) {
} }
} }
}
}
meta = a meta = a
text += b text += b
...@@ -65,10 +76,32 @@ func splitYamlParts(content []byte) (error, contentRequirement) { ...@@ -65,10 +76,32 @@ func splitYamlParts(content []byte) (error, contentRequirement) {
return err, contentRequirement{} return err, contentRequirement{}
} }
tempItem := []Item{}
for i, _ := range data.Items { for i, _ := range data.Items {
if data.Items[i].ID == "" {
continue
}
data.Items[i].ID = data.ID + "-" + data.Items[i].ID data.Items[i].ID = data.ID + "-" + data.Items[i].ID
tempItem = append(tempItem, data.Items[i])
}
data.Items = tempItem
p := []Privacy{}
for i, _ := range data.Privacy {
if data.Privacy[i].ID == "" {
continue
} }
data.Privacy[i].ID = data.ID + "-" + data.Privacy[i].ID
p = append(p, data.Privacy[i])
}
data.Privacy = p
req := contentRequirement{} req := contentRequirement{}
req.data = data req.data = data
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -117,6 +117,7 @@ Privacy: ...@@ -117,6 +117,7 @@ Privacy:
... ...
### {{ .Title }} - {{ .ID }} ### {{ .Title }} - {{ .ID }}
#### Subheading #### Subheading
...@@ -136,17 +137,16 @@ Privacy: ...@@ -136,17 +137,16 @@ Privacy:
{{ end }} {{ end }}
{{ if .Privacy }} {{ if .Privacy }}
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** {{ if .Purposes }}**{{ .Purposes }}** {{ end }}**({{ .ID }})**
{{ .Description }}
{{ if .Description }} {{ .Description }}
{{ end }}
| | | | | |
|--|--| |-----------------------|----------------------------|
| Category | {{ .Category }} | | Category | {{ .Category }} |
| Data Retention Period | {{ .DataRetentionPeriod }} | | Data Retention Period | {{ .DataRetentionPeriod }} |
| Legal Basis | {{ .LegalBasis }} | | Legal Basis | {{ .LegalBasis }} |
...@@ -156,7 +156,21 @@ Privacy: ...@@ -156,7 +156,21 @@ Privacy:
{{ end }} {{ end }}
## Level 2
test
### Level 3
test
#### Level 4
test
##### Level 5
test
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -53,9 +53,9 @@ Last Update: null ...@@ -53,9 +53,9 @@ Last Update: null
# the individual items as a list # the individual items as a list
Items: Items:
- ID: null - ID: XXX
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
...@@ -55,7 +55,7 @@ Last Update: null ...@@ -55,7 +55,7 @@ Last Update: null
Items: Items:
- ID: null - ID: null
Name: null Name: null
# what is it, a image, font, legal information, access data, texts, decisions, ... # what is it, a image, font, legal information, access data, texts, decisions, etc.
Type: null Type: null
# does this belong to a group # does this belong to a group
Group: null Group: null
...@@ -141,7 +141,7 @@ Privacy: ...@@ -141,7 +141,7 @@ Privacy:
#### Privacy #### Privacy
{{ range .Privacy }} {{ range .Privacy }}
**{{ .Purpose }} ({{ .ID }})** **{{ .Purposes }} ({{ .ID }})**
{{ .Description }} {{ .Description }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment