Skip to content

Commit eb5f55d

Browse files
initial
0 parents  commit eb5f55d

9 files changed

+869
-0
lines changed

LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org>

Makefile

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
ZIP_NAME ?= "FindDuplicateFieldValues.zip"
2+
3+
PLUGIN_NAME = find-duplicate-field-values
4+
5+
COFFEE_FILES = find-duplicate-field-values.coffee
6+
7+
help:
8+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
9+
10+
all: build ## build all
11+
12+
build: clean ## clean, compile, copy files to build folder
13+
14+
mkdir -p build
15+
mkdir -p build/$(PLUGIN_NAME)
16+
mkdir -p build/$(PLUGIN_NAME)/webfrontend
17+
mkdir -p build/$(PLUGIN_NAME)/l10n
18+
19+
mkdir -p src/tmp # build code from coffee
20+
cp src/webfrontend/*.coffee src/tmp
21+
cd src/tmp && coffee -b --compile ${COFFEE_FILES} # bare-parameter is obligatory!
22+
cat src/tmp/*.js > build/$(PLUGIN_NAME)/webfrontend/find-duplicate-field-values.js
23+
24+
rm -rf src/tmp # clean tmp
25+
26+
cp l10n/find-duplicate-field-values.csv build/$(PLUGIN_NAME)/l10n/find-duplicate-field-values.csv # copy l10n
27+
28+
cp src/webfrontend/css/find-duplicate-field-values.css build/$(PLUGIN_NAME)/webfrontend/find-duplicate-field-values.css # copy css
29+
30+
cp manifest.master.yml build/$(PLUGIN_NAME)/manifest.yml # copy manifest
31+
32+
# buildinfo
33+
repo=`git remote get-url origin | sed -e 's/\.git$$//' -e 's#.*[/\\]##'` ;\
34+
rev=`git show --no-patch --format=%H` ;\
35+
lastchanged=`git show --no-patch --format=%ad --date=format:%Y-%m-%dT%T%z` ;\
36+
builddate=`date +"%Y-%m-%dT%T%z"` ;\
37+
echo '{' > build/$(PLUGIN_NAME)/build-info.json ;\
38+
echo ' "repository": "'$$repo'",' >> build/$(PLUGIN_NAME)/build-info.json ;\
39+
echo ' "rev": "'$$rev'",' >> build/$(PLUGIN_NAME)/build-info.json ;\
40+
echo ' "lastchanged": "'$$lastchanged'",' >> build/$(PLUGIN_NAME)/build-info.json ;\
41+
echo ' "builddate": "'$$builddate'"' >> build/$(PLUGIN_NAME)/build-info.json ;\
42+
echo '}' >> build/$(PLUGIN_NAME)/build-info.json
43+
44+
clean: ## clean
45+
rm -rf build
46+
47+
zip: build ## build zip file
48+
cd build && zip ${ZIP_NAME} -r $(PLUGIN_NAME)/

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
> This Plugin / Repo is being maintained by a community of developers.
2+
There is no warranty given or bug fixing guarantee; especially not by
3+
Programmfabrik GmbH. Please use the github issue tracking to report bugs
4+
and self organize bug fixing. Feel free to directly contact the committing
5+
developers.
6+
7+
# fylr-plugin-find-duplicate-field-values
8+
Masksplitter that is configured for a text field and shows in the editor whether the field has the same value in the user's visibility range before.
9+
10+
This is a plugin for [fylr](https://documentation.fylr.cloud/docs) with MaskSplitter `FindDublicateFieldValues`.
11+
12+
## installation
13+
14+
The latest version of this plugin can be found [here](https://github.com/programmfabrik/fylr-plugin-find-duplicate-field-values/releases/latest/download/FindDuplicateFieldValues.zip).
15+
16+
The ZIP can be downloaded and installed using the plugin manager, or used directly (recommended).
17+
18+
Github has an overview page to get a list of [all release](https://github.com/programmfabrik/fylr-plugin-find-duplicate-field-values/releases/).
19+
20+
## configuration
21+
22+
This masksplitter can be configured:
23+
24+
### Baseconfig
25+
26+
* Name of the usergroups, which are allowed to see and use the splitter in editor
27+
28+
### Mask options
29+
30+
* Name of the tested field. Must be text_online.
31+
32+
## sources
33+
34+
The source code of this plugin is managed in a git repository at <https://github.com/programmfabrik/fylr-plugin-find-duplicate-field-values>.

l10n/find-duplicate-field-values.csv

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
key,de-DE,en-US
2+
find.dublicate.field.values.name,Finde doppelte Feldwerte,Find duplicate field values
3+
find.dublicate.field.values.title,Finde doppelte Feldwerte,Find duplicate field values
4+
mask.splitter.panel.spliter_name.find-dublicate-field-values-end|text,Finde doppelte Feldwerte (Ende des Splitters),Find duplicate field values (end of splitter)
5+
server.config.name.system.FindDuplicateFieldvalues,Konfiguration,Configuration
6+
server.config.parameter.system.FindDuplicateFieldvalues.find_duplicate_field_values.label,Gruppen wählen,Select groups
7+
server.config.parameter.system.FindDuplicateFieldvalues.find_duplicate_field_values.group_id.label,Gruppe,Group
8+
find.duplicate.field.values.fieldtotestforduplicates,Feld auswählen,Choose field
9+
fylr-plugin-find-duplicate-field-values.info.link,Dubletten gefunden. Mehr Info hier,Duplicates found. More information
10+
fylr-plugin-find-duplicate-field-values.modal.open.link,Öffnen,Öffnen

manifest.master.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
plugin:
2+
name: find-duplicate-field-values
3+
version: 1.0
4+
url: https://github.com/programmfabrik/fylr-plugin-find-duplicate-field-values
5+
displayname:
6+
de-DE: Finde doppelte Feldwerte
7+
en-US: Find dublicate field values
8+
info:
9+
de-DE: "Masksplitter, der für ein Textfeld konfiguriert wird und im Editor anzeigt, ob das Feld im Sichtbarkeitsbereich des Nutzers schon einmal den gleichen Wert hat."
10+
en-US: "Masksplitter that is configured for a text field and shows in the editor whether the field has the same value in the user's visibility range before."
11+
webfrontend:
12+
url: find-duplicate-field-values.js
13+
css: find-duplicate-field-values.css
14+
l10n: l10n/find-duplicate-field-values.csv
15+
16+
base_url_prefix: "webfrontend"
17+
18+
base_config:
19+
- name: FindDuplicateFieldvalues
20+
group: findduplicatefieldvalues
21+
parameters:
22+
find_duplicate_field_values:
23+
position: 0
24+
type: table
25+
label: groups
26+
fields:
27+
- name: group_id
28+
position: 0
29+
type: int
30+
plugin_type: group_easydb_select
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* the table, in which the found dublicate-values are displayed */
2+
.dublicate-info-standard-display {
3+
margin-right: 30px;
4+
margin-left: 30px;
5+
}
6+
7+
.dublicate-info-standard-display table {
8+
border-collapse: collapse;
9+
width: 100%;
10+
}
11+
12+
.dublicate-info-standard-display table tr:nth-child(even) {
13+
background-color: #E2E2E2;
14+
}
15+
16+
.dublicate-info-standard-display table th, td {
17+
padding: 10px 30px;
18+
}

0 commit comments

Comments
 (0)