profile
viewpoint
Ali Hasani disizali interesteds in Typescript , Javascript , Rust & absolutly @denoland

disizali/espresso 32

Minimal web framework for Deno

disizali/ahassssani.github.io 1

Myfirst Website on Github

disizali/deno 1

A secure JavaScript and TypeScript runtime

disizali/awesome-deno 0

Curated list of awesome things related to Deno

disizali/coffee 0

Deno Configuration

created tagdisizali/espresso

tag0.1.1

Minimal web framework for Deno

created time in 7 days

release disizali/espresso

0.1.1

released time in 7 days

created tagdisizali/espresso

tag0.1.0

Minimal web framework for Deno

created time in 7 days

release disizali/espresso

0.1.0

released time in 7 days

startedcheckly/puppeteer-recorder

started time in 20 days

push eventirandeno/interaction

Mojtaba

commit sha a8f22a6c4c1f385877f04b1374718c552f3ce00b

(core) make backspace work in numeric and alphabetical types (#19)

view details

push time in 22 days

pull request commentirandeno/interaction

make numeric and alphabetical backspace work.

Thanks, @Mojtaba-79 for this grate work!

Mojtaba-79

comment created time in 22 days

Pull request review commentirandeno/interaction

make numeric and alphabetical backspace work.

 const DOWN = "B"; const RIGHT = "C"; const UP = "A"; const CLEAR_DOWN = "0J";+const CLEAR_RIGHT = "0P";

use 0k for clear until end of current line, please.

Mojtaba-79

comment created time in 22 days

Pull request review commentirandeno/interaction

make numeric and alphabetical backspace work.

 export class Numeric extends Interact {     ];     for await (const pressedKey of readKeypress()) {       if (typeof pressedKey.key == "undefined") continue;++      if (pressedKey.key === "backspace") {+        if (input.length === 0) {+          continue;+        }+        input = input.slice(0, -1);+        moveLeft(1);

ditto

Mojtaba-79

comment created time in 22 days

Pull request review commentirandeno/interaction

make numeric and alphabetical backspace work.

 export class Alphabetical extends Interact {        // TODO: implement backspace keyboard       if (pressedKey.key === "backspace") {+        if (input.length === 0) {+          continue;+        }+        input = input.slice(0, -1);+        moveLeft(1);

await

Mojtaba-79

comment created time in 22 days

push eventirandeno/interaction

Mojtaba

commit sha d57afd83d438f1a086cab1264c5cb6bf933bfc92

(core) expose alphabetical type (#17)

view details

push time in a month

PR merged irandeno/interaction

add alphabetical type

adding alphabetical type in to the project

+62 -3

0 comment

6 changed files

Mojtaba-79

pr closed time in a month

delete branch disizali/interaction

delete branch : error_handling

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha f15779cc9bc48e2334faaa52dcea016ee0f4c63b

(core) init error handling (#18)

view details

push time in a month

PR merged irandeno/interaction

init error handling

add EssentialAbsence error class

+11 -3

0 comment

3 changed files

disizali

pr closed time in a month

Pull request review commentirandeno/interaction

add alphabetical type

+import { Interact, InteractOptions } from "../core/interact.ts";+import * as logger from "../helpers/logger.ts";+import { readKeypress } from "../deps.ts";++export class Alphabetical extends Interact {+  constructor(opts: InteractOptions) {+    super(opts);+  }+  async request(): Promise<string> {+    await this.printMessage();+    const result = await this.getUserChar();+    return Promise.resolve(result);+  }++  public isAlphabetical(input: string): boolean {+    const enAlphabet = input.charCodeAt(0) >= 65 && input.charCodeAt(0) <= 122;+    // TODO: Adding persian, greek alphabet++    return enAlphabet;+  }++  protected async getUserChar(): Promise<string> {

this function name must be plural.

Mojtaba-79

comment created time in a month

Pull request review commentirandeno/interaction

add alphabetical type

 const results = await interaction.interact([     type: InteractType.numeric,     bold: false,   },+  {+    name: "alpha",+    message: "enter a key",

Replace this example with a more realistic one. like: type your favorite color

Mojtaba-79

comment created time in a month

Pull request review commentirandeno/interaction

add alphabetical type

+{+    "deno.enable": true,+    "[typescript]": {+        "editor.formatOnType": true,+        "editor.insertSpaces": true,+        "editor.tabSize": 2+    },+    "[typescriptreact]": {+        "editor.formatOnType": true,+        "editor.insertSpaces": true,+        "editor.tabSize": 2+    }+}

could you remove this file, please?

Mojtaba-79

comment created time in a month

PR opened irandeno/interaction

init error handling

add EssentialAbsence error class

+11 -3

0 comment

3 changed files

pr created time in a month

create barnchdisizali/interaction

branch : error_handling

created branch time in a month

push eventirandeno/coffee

Erfan Safari

commit sha 89ff706cd9e440870399c63822fdc1c176b05f50

(ci) upgrade deno version to 1.2.0 (#30)

view details

push time in a month

PR merged irandeno/coffee

Update ci.yml
+2 -2

0 comment

1 changed file

erfanium

pr closed time in a month

delete branch disizali/interaction

delete branch : global_configs

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 68e27748d64fc85a848d46caabaef3e7c8d3c0c0

(api) make prefix, suffix and bold global configurable (#16)

view details

push time in a month

PR merged irandeno/interaction

global configs

make bold, prefix, suffix global configurable

+27 -17

0 comment

3 changed files

disizali

pr closed time in a month

PR opened irandeno/interaction

global configs

make bold, prefix, suffix global configurable

+27 -17

0 comment

3 changed files

pr created time in a month

create barnchdisizali/interaction

branch : global_configs

created branch time in a month

issue openedirandeno/interaction

Roadmap to 0.2.0

api :

  • [ ] make prefix, suffix, bold global configurable

types :

  • [ ] expose alphabetical type

core :

  • [ ] error handling

created time in a month

issue closedirandeno/interaction

Roadmap to 0.1.0

core :

  • [x] project structure
  • [x] core interactive
  • [x] Interact options interface
  • [x] interact types

types :

  • [x] any type
  • [x] numeric type
  • [x] choice type

utilities

  • [x] write logger ( & style manager)
  • [x] cursor manager
  • [x] keyboard manager
  • [x] state manager
  • [x] deep extender

[x] Release 0.1.0

closed time in a month

disizali

issue commentirandeno/interaction

Roadmap to 0.1.0

v0.1.0 Released!

disizali

comment created time in a month

created tagirandeno/interaction

tag0.1.0

Deno interactive command line interface

created time in a month

release irandeno/interaction

0.1.0

released time in a month

delete branch disizali/interaction

delete branch : examples

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha d6dd61c9922f784e4fd32cec20f777ce7982cea5

(examples) add example for any, numeric and choice types (#14)

view details

push time in a month

PR merged irandeno/interaction

first example
+34 -0

0 comment

1 changed file

disizali

pr closed time in a month

PR opened irandeno/interaction

first example
+34 -0

0 comment

1 changed file

pr created time in a month

create barnchdisizali/interaction

branch : examples

created branch time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 0fb6aee31c40ec5eb01d2788d08f9cc30e052e94

(core) expose choice type (#13)

view details

push time in a month

PR merged irandeno/interaction

expose choice type

expose choice type + fix some links + deps.ts

+92 -8

0 comment

7 changed files

disizali

pr closed time in a month

PR opened irandeno/interaction

expose choice type

expose choice type + fix some links + deps.ts

+92 -8

0 comment

7 changed files

pr created time in a month

create barnchdisizali/interaction

branch : choice_type

created branch time in a month

delete branch disizali/interaction

delete branch : colorize_logger

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 37f287fc12b6ac4064515bfc6d976f8b7ed78583

(helpers) colorize logger (#12)

view details

push time in a month

PR merged irandeno/interaction

colorize logger
+4 -0

0 comment

1 changed file

disizali

pr closed time in a month

PR opened irandeno/interaction

colorize logger
+4 -0

0 comment

1 changed file

pr created time in a month

create barnchdisizali/interaction

branch : colorize_logger

created branch time in a month

delete branch disizali/interaction

delete branch : cursor_manager

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 8dd2478a154c11870a94906dc8f7f25480c57e89

(helpers) init cursor helper + move logger to helpers (#11)

view details

push time in a month

PR merged irandeno/interaction

init cursor helper

initial cursor helper

+47 -1

0 comment

3 changed files

disizali

pr closed time in a month

PR opened irandeno/interaction

init cursor helper

initial cursor helper

+47 -1

0 comment

3 changed files

pr created time in a month

push eventdisizali/interaction

Ali Hasani

commit sha 97f52715a3910b617cdce46dcc8915adca051ade

cursor manager + helpers

view details

push time in a month

create barnchdisizali/interaction

branch : cursor_manager

created branch time in a month

delete branch disizali/interaction

delete branch : state_manager

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 6384c054788fe4694e02986c86e49dcb974b2641

(core) init state manager (#10)

view details

push time in a month

PR merged irandeno/interaction

init state manager

initial state manger

+43 -0

0 comment

2 changed files

disizali

pr closed time in a month

PR opened irandeno/interaction

init state manager

initial state manger

+43 -0

0 comment

2 changed files

pr created time in a month

create barnchdisizali/interaction

branch : state_manager

created branch time in a month

push eventirandeno/interaction

Ali Hasani

commit sha f8787275ac6a57a525e2ca53f8e311b8af763fc6

(core) expose numeric type (#9)

view details

push time in a month

delete branch disizali/interaction

delete branch : numeric_type

delete time in a month

PR merged irandeno/interaction

expose numeric type

initial numeric type.

+56 -4

0 comment

4 changed files

disizali

pr closed time in a month

PR opened irandeno/interaction

expose numeric type

initial numeric type.

+56 -4

0 comment

4 changed files

pr created time in a month

create barnchdisizali/interaction

branch : numeric_type

created branch time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 43809c8aa339bec78c627c208e5ffed22a8345da

(core) init main Interaction class (#8)

view details

push time in a month

PR merged irandeno/interaction

init main Interaction class

this PR is going to initial Interaction class + move any type result to just string.

+22 -4

0 comment

3 changed files

disizali

pr closed time in a month

PR opened irandeno/interaction

init main Interaction class

initial Interaction class

+22 -4

0 comment

3 changed files

pr created time in a month

create barnchdisizali/interaction

branch : interaction_class

created branch time in a month

push eventdisizali/interaction

Ali Hasani

commit sha 2d584920385b45ea9d537d1ba04f96f74e77457a

init ci

view details

Ali Hasani

commit sha 968a9847e280eae69f1536fd11f62552b5c7684e

(ci) init (#2)

view details

Ali Hasani

commit sha 19fdcc0faf1d6bd2c401d5d653cec333778a5a10

Merge branch 'master' of https://github.com/irandeno/interaction

view details

Ali Hasani

commit sha 095fbfe87aa9c44985f676be7627ed84aeca52e0

(core) init interact (#3)

view details

Ali Hasani

commit sha 44075f0b23974f5587fd777bb843f9c22956f8b1

Merge branch 'master' of https://github.com/irandeno/interaction

view details

Ali Hasani

commit sha 1cb276ad9f3562fe71013c9c1af61575c52a08cc

(core) init logger (#4)

view details

Ali Hasani

commit sha b09dbb3798bb6bf55d4773f121481d42bc08300e

Merge branch 'master' of https://github.com/irandeno/interaction

view details

Ali Hasani

commit sha b65152b3ef3c1a367a385a11b7f4f3654433ee44

(core) print message and logger styles (#5)

view details

Ali Hasani

commit sha 3b7982a3ab8f4e24e5805ecb644b7c86df666aca

Merge branch 'master' of https://github.com/irandeno/interaction

view details

Ali Hasani

commit sha 6ce48a3f77a3dbe8a5f2b7d268eb799e77944634

(fix-core) required interact name (#6)

view details

Ali Hasani

commit sha d5a7271568bd49eecd107e882fb5741bddde11d7

Merge branch 'master' of https://github.com/irandeno/interaction

view details

Ali Hasani

commit sha ab32f6812cf33f04a524aa82e802633ddbfbf55d

remove reduntant interaction file

view details

Ali Hasani

commit sha 9fda74eec18bac827c8e89f3e8e39a6875e04017

(core) any interaction type (#7)

view details

Ali Hasani

commit sha 2ae87535dfc9fbe7006b505f9c1ba0c53bb41ba9

Merge branch 'master' of https://github.com/irandeno/interaction

view details

Ali Hasani

commit sha 2dddeb5b8cbc9298b2d702f712ba3b73c85c17a5

init main Interaction class

view details

push time in a month

delete branch disizali/interaction

delete branch : any_type

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 9fda74eec18bac827c8e89f3e8e39a6875e04017

(core) any interaction type (#7)

view details

push time in a month

PR merged irandeno/interaction

any type

init any type from interact types.

+20 -0

0 comment

1 changed file

disizali

pr closed time in a month

PR opened irandeno/interaction

any type

init any type from interact types.

+20 -0

0 comment

1 changed file

pr created time in a month

create barnchdisizali/interaction

branch : any_type

created branch time in a month

delete branch disizali/interaction

delete branch : name_required

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 6ce48a3f77a3dbe8a5f2b7d268eb799e77944634

(fix-core) required interact name (#6)

view details

push time in a month

PR merged irandeno/interaction

required name

name must be required

+11 -1

0 comment

1 changed file

disizali

pr closed time in a month

PR opened irandeno/interaction

required name

name must be required

+11 -1

0 comment

1 changed file

pr created time in a month

create barnchdisizali/interaction

branch : name_required

created branch time in a month

delete branch disizali/interaction

delete branch : print_message

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha b65152b3ef3c1a367a385a11b7f4f3654433ee44

(core) print message and logger styles (#5)

view details

push time in a month

PR merged irandeno/interaction

print message and logger styles

logger styles and print message method on interact

+16 -0

0 comment

2 changed files

disizali

pr closed time in a month

PR opened irandeno/interaction

print message and logger styles

logger styles and print message method on interact

+16 -0

0 comment

2 changed files

pr created time in a month

push eventdisizali/interaction

Ali Hasani

commit sha 24a55a94c0bca3c56f17e10d8fadf63b78140ded

fmt

view details

push time in a month

create barnchdisizali/interaction

branch : print_message

created branch time in a month

delete branch disizali/interaction

delete branch : logger

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 1cb276ad9f3562fe71013c9c1af61575c52a08cc

(core) init logger (#4)

view details

push time in a month

PR merged irandeno/interaction

init logger

init logger with default encoder & decoder

+15 -0

0 comment

1 changed file

disizali

pr closed time in a month

PR opened irandeno/interaction

init logger

init logger with default encoder & decoder

+15 -0

0 comment

1 changed file

pr created time in a month

create barnchdisizali/interaction

branch : logger

created branch time in a month

delete branch disizali/interaction

delete branch : init_interact

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 095fbfe87aa9c44985f676be7627ed84aeca52e0

(core) init interact (#3)

view details

push time in a month

PR merged irandeno/interaction

init interact

initial interact class and interface

+29 -0

0 comment

1 changed file

disizali

pr closed time in a month

PR opened irandeno/interaction

init interact

initial interact class and interface

+29 -0

0 comment

1 changed file

pr created time in a month

create barnchdisizali/interaction

branch : init_interact

created branch time in a month

delete branch disizali/interaction

delete branch : ci

delete time in a month

push eventirandeno/interaction

Ali Hasani

commit sha 2d584920385b45ea9d537d1ba04f96f74e77457a

init ci

view details

Ali Hasani

commit sha 968a9847e280eae69f1536fd11f62552b5c7684e

(ci) init (#2)

view details

push time in a month

PR merged irandeno/interaction

init ci

init ci with deno fmt --check

+22 -0

0 comment

1 changed file

disizali

pr closed time in a month

PR opened irandeno/interaction

init ci

init ci with deno fmt --check

+22 -0

0 comment

1 changed file

pr created time in a month

create barnchdisizali/interaction

branch : ci

created branch time in a month

push eventdisizali/interaction

Ali Hasani

commit sha c50362d9b541e1a96e580b735235da2b09c09030

init ci

view details

push time in a month

more