Skip to content

Instantly share code, notes, and snippets.

View zindel's full-sized avatar

Oleksiy Golovko zindel

  • Prague, The Czech Republic
View GitHub Profile
import React from 'react';
import {Preloader} from 'rex-widget/ui';
import {Fetch} from 'rex-widget/data';
import * as forms from 'rex-widget/form';
@Fetch(function fetchGreeting(propsAndDataParams) {
let {data, id} = propsAndDataParams;
return {
data: data.params({'user:id': id}).getSingleEntity(),
use-query:
title: Using Query
type: make
entity: individual
fields:
- identity.fullname
- identity.birthdate
- sex
query: |
/do(
@zindel
zindel / edit.yaml
Last active February 11, 2016 09:34
use-query:
title: Using Query
type: edit
entity: individual
input:
- individual
fields:
- identity.fullname
- identity.birthdate
- sex
/form:
action:
title: form
type: wizard
path:
- minimal:
actions:
minimal:
title: Minimal Configuration
type: form
save-data:
title: Saving Data
type: form
value: |
top(individual){
code,
sex,
identity{fullname, birthdate}
}
fields:
/override1/@/states-context: !override
title: Overriding with Wizard
type: wizard
path:
- page1:
actions:
page1:
title: Page 1
type: page
text: Hello, world!
diff -r 89fbe7517b6f src/rex/widget_chrome/access.py
--- a/src/rex/widget_chrome/access.py Tue Feb 16 12:08:45 2016 +0300
+++ b/src/rex/widget_chrome/access.py Tue Feb 16 11:19:16 2016 +0100
@@ -1,4 +1,4 @@
-from rex.core import Initialize, get_settings, cached
+from rex.core import Initialize, get_settings, cached, get_packages
from rex.web import route, Authorize
from rex.urlmap import Override
from rex.action.map import ActionRenderer
@@ -37,10 +37,15 @@
function LaunchButton({url, text, attachLeft = false, attachRight = false}) {
return (!url ? null :
<ui.Button
size="small"
attach={{left: attachLeft, right: attachRight}}>
<Link href={url} target="_blank">
{text}
</Link>
</ui.Button>
);
" CtrlP settings
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](\.git|\.hg|\.svn|[^\/]+\.egg-info)$',
\ 'file': '\v\.(exe|so|dll|pyc)$',
\ 'link': 'some_bad_symbolic_links',
\ }
let g:ctrlp_root_markers = ['rex.core']
nnoremap <C-B> :CtrlPBuffer<CR>
nnoremap <C-o> :CtrlP $VIRTUAL_ENV/src<CR>

General Wizard Functionality Demo

This wizard aims to demonstrate the general REX ACTION capabilities including defining new wizard, changing basic action fields, using states etc. Here is the complete source code of it.

.. literalinclude:: ../../static/urlmap/wizard.yaml
   :language: yaml