Initial version

This commit is contained in:
Mauricio Baeza 2021-06-27 19:30:41 -05:00
parent fcba5f295a
commit 839bc8b40c
3 changed files with 25 additions and 10 deletions

4
CHANGELOG Normal file
View File

@ -0,0 +1,4 @@
v 0.1.0 [27-jun-2021]
- Initial version
- Function `reverse`
- Function `eval`

31
conf.py
View File

@ -23,17 +23,17 @@ import logging
# ~ 1 = normal extension
# ~ 2 = new component
# ~ 3 = Calc addin
TYPE_EXTENSION = 1
TYPE_EXTENSION = 3
# ~ Your great extension name, not used spaces
NAME = 'MyFirstExtension'
NAME = 'ZAZFunctions'
# ~ https://semver.org/
VERSION = '0.1.0'
# ~ Should be unique, used URL inverse
ID = 'org.myfirstextension'
ID = 'net.elmau.zaz.functions'
# ~ If you extension will be multilanguage set: True
# ~ This feature used gettext, set pythonpath and easymacro in True
@ -48,9 +48,10 @@ PATH_MSGMERGE = 'msgmerge'
# ~ Show in extension manager
URL_PROJECT = 'https://git.cuates.net/elmau/zaz-functions'
PUBLISHER = {
'en': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'},
'es': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'},
'en': {'text': 'El Mau', 'link': URL_PROJECT},
'es': {'text': 'El Mau', 'link': URL_PROJECT},
}
# ~ Name in this folder for copy
@ -135,13 +136,23 @@ MENUS = (
# ~ Functions, only for TYPE_EXTENSION = 3
FUNCTIONS = {
'test': {
'displayname': {'en': 'test', 'es': 'prueba'},
'description': {'en': 'My test', 'es': 'Mi prueba'},
'reverse': {
'displayname': {'en': 'reverse', 'es': 'reversa'},
'description': {'en': 'Get reverse string', 'es': 'Retorna la cadena en forma inversa'},
'parameters': {
'value': {
'displayname': {'en': 'value', 'es': 'valor'},
'description': {'en': 'The value', 'es': 'El valor'},
'displayname': {'en': 'string', 'es': 'texto'},
'description': {'en': 'The string', 'es': 'El cadena'},
},
},
},
'eval': {
'displayname': {'en': 'eval', 'es': 'evalua'},
'description': {'en': 'Parse and execute string expressions', 'es': 'Parsea y ejecuta una expresión en texto'},
'parameters': {
'value': {
'displayname': {'en': 'expression', 'es': 'expresion'},
'description': {'en': 'The expression to execute', 'es': 'La expresión a ejecutar'},
},
},
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB