Repository navigation
Commit 27914f9
committed
Add AsciiArtEffect component and integrate it into home view and prompt field
- replicate the hover effect of .ascii-art container (enabled whenever the promt field is empty) [Pasted text] [Pasted text]
- copy the ascii art effect to Home > header > modes box
- extract 'ascii art' to a common component while making sure it will continue to work as expected in both places
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ └── frontend
│ └── Home
│ ├── Home.module.scss
│ └── Home.tsx
└── packages
└── ui
└── src
└── components
└── editor
├── common
│ ├── AsciiArtEffect
│ │ ├── AsciiArtEffect.module.scss
│ │ ├── AsciiArtEffect.tsx
│ │ └── index.ts
│ ├── Button
│ │ ├── Button.module.scss
│ │ ├── Button.stories.tsx
│ │ ├── Button.tsx
│ │ └── index.ts
│ └── Checkbox
│ ├── Checkbox.module.scss
│ ├── Checkbox.stories.tsx
│ ├── Checkbox.tsx
│ └── index.ts
└── prompt
└── prompts
└── PromptField
├── PromptField.module.scss
├── PromptField.stories.tsx
├── PromptField.tsx
├── components
│ ├── Tooltip.module.scss
│ ├── Tooltip.tsx
│ └── index.ts
├── hooks
│ ├── use-drag-drop.ts
│ ├── use-dropdown.ts
│ ├── use-ghost-text.ts
│ ├── use-handlers
│ │ ├── handle-copy.ts
│ │ ├── handle-cut.ts
│ │ ├── handle-input-change.ts
│ │ ├── handle-input-click.ts
│ │ ├── handle-key-down.ts
│ │ ├── handle-paste.ts
│ │ ├── handle-submit.ts
│ │ ├── index.ts
│ │ ├── types.ts
│ │ ├── use-handlers.ts
│ │ └── utils.ts
│ └── use-keyboard-shortcuts.ts
└── index.ts1 parent 08d8623 commit 27914f9
5 files changed
Lines changed: 84 additions & 1 deletion
File tree
- apps/editor/src/views/prompt/frontend/Home
- packages/ui/src/components/editor
- common/AsciiArtEffect
- prompt/prompts/PromptField
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
167 | 172 | | |
168 | 173 | | |
169 | 174 | | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
365 | 368 | | |
366 | 369 | | |
367 | 370 | | |
| 371 | + | |
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
373 | 377 | | |
374 | 378 | | |
| 379 | + | |
375 | 380 | | |
376 | 381 | | |
377 | 382 | | |
| |||
0 commit comments