This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure TWebModule1.WebModuleBeforeDispatch(Sender: TObject; | |
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); | |
begin | |
Response.ContentType := 'text/html; charset=utf-8'; | |
Response.ContentEncoding := 'utf-8'; | |
if FServerFunctionInvokerAction <> nil then | |
FServerFunctionInvokerAction.Enabled := AllowServerFunctionInvoker; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p class="tip">**Nota Importante** | |
API em desenvolvimento. | |
</p> | |
## Repositório no github | |
[https://github.com/RaulSBunicenha/api-ts](https://github.com/RaulSBunicenha/api-ts) | |
``` | |
Instalando o repositório |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Diretório da Aplicação: | |
<!-- AUTO-GENERATED-CONTENT:START (DIRTREE:dir=./) --> | |
<!-- AUTO-GENERATED-CONTENT:END --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const path = require('path') | |
const markdownMagic = require('markdown-magic') | |
const config = { | |
transforms: { | |
DIRTREE: require('./doc-directory-tree.js') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
const { statSync } = require('fs') | |
const archy = require('archy') | |
const dirTree = require('directory-tree') | |
const defaults = { | |
depth: Infinity, | |
dir: '.', | |
onlyDirs: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Options | |
**dir** - `process.cwd()` by default | |
**ignore** - `['.git', '.gitkeep', '.gitignore', 'node_modules']` by default | |
**depth** - `Infinity` by default (how deep in the tree to traverse) | |
**onlyDirs** - `false` by default (how mnuch t) | |
Exemplo de uso: passando o parametro depth=100 e onlyDirs=true | |
<!-- AUTO-GENERATED-CONTENT:START (DIRTREE:dir=./src&depth=100&onlyDirs=true) --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Estrutura de diretórios | |
<!-- AUTO-GENERATED-CONTENT:START (DIRTREE:dir=./&onlyDirs=true) --> | |
<!-- AUTO-GENERATED-CONTENT:END --> | |
## Estrutura de diretórios e arquivos | |
<!-- AUTO-GENERATED-CONTENT:START (DIRTREE:dir=./) --> | |
<!-- AUTO-GENERATED-CONTENT:END --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
“scripts”: { | |
“atualizar-diretorios”: “node ./doc-directory-create.js” | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- AUTO-GENERATED-CONTENT:START (DIRTREE:dir=./src&depth=2&onlyDirs=true) --> | |
<!-- AUTO-GENERATED-CONTENT:END --> |
OlderNewer