Skip to content

Instantly share code, notes, and snippets.

@guiprav
Last active July 24, 2018 21:46
Show Gist options
  • Select an option

  • Save guiprav/5c45b7b1d6c324e10297801a5275fc91 to your computer and use it in GitHub Desktop.

Select an option

Save guiprav/5c45b7b1d6c324e10297801a5275fc91 to your computer and use it in GitHub Desktop.

Revisions

  1. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    StdTable com fetch extensions

    Attached*
    Inicialização*
    caso não tenha fetch-fn -> Comportamento original
    caso tenha fetch-fn -> Carregar itens

  2. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    StdTable com fetch extensions

    Attached*
    caso não tenha fetch-fn -> Comportamento original
    caso tenha fetch-fn -> Carregar itens
    @@ -19,6 +19,6 @@ StdTable com fetch extensions
    ao mudar filtros -> Carregar itens
    ao mudar ordenamento -> Carregar itens
    ao mudar página -> Carregar itens

    Mostrar erro
    tentar novamente -> Carregar itens
  3. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,20 @@
    StdTable com fetch extensions

    Attached*
    caso tenha fetch-fn -> Carregar itens
    caso não tenha fetch-fn -> Comportamento original

    caso tenha fetch-fn -> Carregar itens

    Comportamento original
    ao mudar filtros -> Comportamento original
    ao mudar ordenamento -> Comportamento original
    ao mudar página -> Comportamento original

    Comportamento novo

    Carregar itens
    caso sucesso -> Mostrar itens
    caso erro -> Mostrar erro

    Mostrar itens
    ao mudar filtros -> Carregar itens
    ao mudar ordenamento -> Carregar itens
  4. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    StdTable com fetch-fn
    StdTable com fetch extensions

    Attached*
    caso tenha fetch-fn -> Carregar itens
  5. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 12 additions and 10 deletions.
    22 changes: 12 additions & 10 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -8,15 +8,17 @@ StdTable com fetch-fn
    ao mudar filtros -> Comportamento original
    ao mudar ordenamento -> Comportamento original
    ao mudar página -> Comportamento original

    Carregar itens
    caso sucesso -> Mostrar itens
    caso erro -> Mostrar erro

    Mostrar itens
    ao mudar filtros -> Carregar itens
    ao mudar ordenamento -> Carregar itens
    ao mudar página -> Carregar itens
    Comportamento novo

    Carregar itens
    caso sucesso -> Mostrar itens
    caso erro -> Mostrar erro

    Mostrar erro
    tentar novamente -> Carregar itens
    Mostrar itens
    ao mudar filtros -> Carregar itens
    ao mudar ordenamento -> Carregar itens
    ao mudar página -> Carregar itens

    Mostrar erro
    tentar novamente -> Carregar itens
  6. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,11 @@ StdTable com fetch-fn
    Attached*
    caso tenha fetch-fn -> Carregar itens
    caso não tenha fetch-fn -> Comportamento original

    Co

    Comportamento original
    ao mudar filtros -> Comportamento original
    ao mudar ordenamento -> Comportamento original
    ao mudar página -> Comportamento original

    Carregar itens
    caso sucesso -> Mostrar itens
  7. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,10 @@
    StdTable com fetch-fn

    Attached*
    caso fetch-fn -> Carregar itens
    caso tenha fetch-fn -> Carregar itens
    caso não tenha fetch-fn -> Comportamento original

    Co

    Carregar itens
    caso sucesso -> Mostrar itens
  8. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,13 @@
    StdTable com fetch-fn

    Attached*
    caso fetch-fn -> Carregar itens

    Carregar itens*
    Carregar itens
    caso sucesso -> Mostrar itens
    caso erro -> Mostrar erro

    Display items
    Mostrar itens
    ao mudar filtros -> Carregar itens
    ao mudar ordenamento -> Carregar itens
    ao mudar página -> Carregar itens
  9. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@ StdTable com fetch-fn

    Display items
    ao mudar filtros -> Carregar itens
    ao mudar ordenamento -> Load items
    ao mudar página -> Load items
    ao mudar ordenamento -> Carregar itens
    ao mudar página -> Carregar itens

    Error
    retry -> Load items
    Mostrar erro
    tentar novamente -> Carregar itens
  10. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    StdTable com fetch-fn

    Carregar itens*
    sucesso -> Mostrar itens
    error -> Mostrar erro
    caso sucesso -> Mostrar itens
    caso erro -> Mostrar erro

    Display items
    change filters -> Load items
    change sorting -> Load items
    change page -> Load items
    ao mudar filtros -> Carregar itens
    ao mudar ordenamento -> Load items
    ao mudar página -> Load items

    Error
    retry -> Load items
  11. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    StdTable with fetch-fn
    StdTable com fetch-fn

    Load items*
    on success -> Display items
    on error -> Error
    Carregar itens*
    sucesso -> Mostrar itens
    error -> Mostrar erro

    Display items
    change filters -> Load items
  12. Guilherme Prá revised this gist Jul 24, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    StdTable with fetch extensions
    StdTable with fetch-fn

    Load items*
    on success -> Display items
  13. Guilherme Prá created this gist Jul 24, 2018.
    13 changes: 13 additions & 0 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    StdTable with fetch extensions

    Load items*
    on success -> Display items
    on error -> Error

    Display items
    change filters -> Load items
    change sorting -> Load items
    change page -> Load items

    Error
    retry -> Load items
    6 changes: 6 additions & 0 deletions SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    function render(model){
    let current_state_name = model.active_states[0].name;
    return $("h1",
    {style: {color: "darkBlue"}},
    `The current state is: ${current_state_name}`);
    }