This file contains hidden or 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
| // Based on https://walkthrough.so/pblc/QCawSCKwOQLn/creating-a-custom-editorjs-block-tool-with-react | |
| import type { | |
| API, | |
| BlockAPI, | |
| BlockTool, | |
| BlockToolConstructorOptions, | |
| } from '@editorjs/editorjs' | |
| import ReactDOM from 'react-dom' |
This file contains hidden or 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
| import { HttpService, Injectable, Logger } from '@nestjs/common'; | |
| import { InjectModel } from '@nestjs/sequelize'; | |
| import { ReadStream } from 'fs'; | |
| import { Sequelize } from 'sequelize-typescript'; | |
| import * as xlsx from 'xlsx'; | |
| import { WorkBook, WorkSheet } from 'xlsx'; | |
| import { ArquivoImportacao } from './dto/arquivo-importacao.dto'; | |
| @Injectable() | |
| export class ImportacaoProcessosService { |
This file contains hidden or 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
| #1 Install dependecies : | |
| - fs-extra | |
| - exceljs | |
| - multer | |
| - @types/multer | |
| - lodash | |
| - class-validator | |
| - class-transformer | |
| - rxjs | |
This file contains hidden or 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
| ## | |
| # File properties | |
| ## | |
| UPLOAD_LOCATION=/Users/dummyusername/Documents/temp/nvaluate | |
| # Max 5Mb allowed | |
| MAX_FILE_SIZE=5 | |
| MAX_FILE_COUNTS=20 |
This file contains hidden or 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
| /* | |
| This is an example about how to use a public client written in Golang to authenticate using Keycloak. | |
| This example is only for demonstration purposes and lacks important | |
| */ | |
| package main | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "log" |
This file contains hidden or 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
| license: gpl-3.0 |
OlderNewer